|
4#
楼主 |
发表于 2009-12-12 10:04:15
|
只看该作者
login2()
login2()
{
lr_think_time(11);
web_url("closeAll.gif",
"URL=http://192.168.88.29:8080/emr/sysimage/closeAll.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.88.29:8080/emr/emr/EMR_menu.jsp",
"Snapshot=t7.inf",
LAST);
web_url("tab_left.gif",
"URL=http://192.168.88.29:8080/emr/sysimage/tab_left.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.88.29:8080/emr/emr/EMR_menu.jsp",
"Snapshot=t8.inf",
LAST);
web_url("tab_right.gif",
"URL=http://192.168.88.29:8080/emr/sysimage/tab_right.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.88.29:8080/emr/emr/EMR_menu.jsp",
"Snapshot=t9.inf",
LAST);
web_url("tab_left.gif_2",
"URL=http://192.168.88.29:8080/emr/sysimage/tab_left.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.88.29:8080/emr/emr/EMR_menu.jsp",
"Snapshot=t10.inf",
LAST);
web_url("login.jsp",
"URL=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/EMR_menu.jsp",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"URL=../images/opdbg.jpg", "Referer=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1", ENDITEM,
LAST);
web_custom_request("ajaxdo.do",
"URL=http://192.168.88.29:8080/emr/ajaxdo.do?dotype=1&code=000999",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1",
"Snapshot=t12.inf",
"Mode=HTML",
"EncType=",
LAST);
web_custom_request("ajaxdo2.do_3",
"URL=http://192.168.88.29:8080/emr/ajaxdo2.do?TMP_CDE=000999",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1",
"Snapshot=t13.inf",
"Mode=HTML",
"EncType=",
LAST);
web_custom_request("ajaxdo.do_2",
"URL=http://192.168.88.29:8080/emr/ajaxdo.do?dotype=1&code=000999",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1",
"Snapshot=t14.inf",
"Mode=HTML",
"EncType=",
LAST);
lr_think_time(4);
web_custom_request("ajaxdo.do_3",
"URL=http://192.168.88.29:8080/emr/ajaxdo.do?dotype=2&code=1125",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1",
"Snapshot=t15.inf",
"Mode=HTML",
"EncType=",
LAST);
web_submit_data("opd_login.do",
"Action=http://192.168.88.29:8080/emr/opd_login.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/opd/login.jsp?MENUID=472¬ename=notet1&tname=t1",
"Snapshot=t16.inf",
"Mode=HTML",
ITEMDATA,
"Name=MASH_IP", "Value=192.168.88.210", ENDITEM,
"Name=oei_type", "Value=O", ENDITEM,
"Name=user_id", "Value=000999", ENDITEM,
"Name=userpwd", "Value=1", ENDITEM,
"Name=usr_nm", "Value=应镇江", ENDITEM,
"Name=div_cde", "Value=1125", ENDITEM,
"Name=div_nm", "Value=骨科", ENDITEM,
"Name=MED_TEAM_CDE", "Value=", ENDITEM,
"Name=OPD_AREA", "Value=1", ENDITEM,
"Name=LOGIN_ROOM", "Value=1", ENDITEM,
"Name=Submit1", "Value= 登 陆 ", ENDITEM,
LAST);
web_add_cookie("gonum=12; DOMAIN=192.168.88.29");
/*web_reg_find("Text=新看诊记录",
"SaveCount=num",
"Search=body",
LAST);*/
web_reg_find("Text=你好:应镇江","SaveCount=num", "Search=body", LAST);
web_url("msgzz.jsp",
"URL=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/EMR_menu.jsp",
"Snapshot=t17.inf",
"Mode=HTML",
EXTRARES,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/interface.css", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/sysimage/1leftm1.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-point.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-tit.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-bd.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-tb.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-lr.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-resbar.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/sysimage/2gradient_tcat.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=../images/0overbut.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/ysz_left.jsp?id=13919&DR_CODE=100105&LOGIN_DIV=1125&PRO_FLG=&if_check=Y&OPD_AREA=1", ENDITEM,
"URL=../images/0thisbut.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/ysz_left.jsp?id=13919&DR_CODE=100105&LOGIN_DIV=1125&PRO_FLG=&if_check=Y&OPD_AREA=1", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/lv2/win-btn.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919", ENDITEM,
"URL=/emr/sysimage/2border_02.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/pat_lisy.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/interface.css", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-point.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-resbar.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-lr.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-tb.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-bd.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-tit.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
"URL=/emr/HtmSourse/ucren-widgets/common/skins/qq/win-btn.gif", "Referer=http://192.168.88.29:8080/emr/emr/opd/reg_opd.jsp", ENDITEM,
LAST);
web_custom_request("ajaxdo.do_4",
"URL=http://192.168.88.29:8080/emr/ajaxdo.do?dotype=4&div_cde=100105®_TICKET_ID=13919&selreq=&if_check=Y",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.88.29:8080/emr/emr/opd/msgzz.jsp?loginid=13919",
"Snapshot=t18.inf",
"Mode=HTML",
"EncType=",
LAST);
lr_log_message("用户名:%s", lr_eval_string("{username}"));
lr_log_message("%s", lr_eval_string("{num}"));
if(strcmp(lr_eval_string("{num}"),"0")==0)
lr_log_message("登陆失败!");
else
lr_log_message("登陆成功!");
return 0;
} |
|