|
3#
楼主 |
发表于 2005-3-30 13:08:04
|
只看该作者
#include "web_api.h"
Action()
{
web_url("ECMCorpMgmtLogin.html",
"URL=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtLogin.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/login_6.gif", ENDITEM,
LAST);
lr_think_time( 10 );
web_submit_data("ECMCorpMgmtLogin.html_2",
"Action=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtLogin.html",
"Method=POST",
"RecContentType=text/html",
"Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtLogin.html",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=UserID", "Value=liu", ENDITEM,
"Name=UserPassword", "Value=111111", ENDITEM,
"Name=ECMCorpMgmtLogin_action", "Value=Login", ENDITEM,
"Name=CompID", "Value=ECMCorpMgmtLogin", ENDITEM,
"Name=CompName", "Value=ECMCorpMgmtLoginName", ENDITEM,
"Name=Login.x", "Value=0", ENDITEM,
"Name=Login.y", "Value=0", ENDITEM,
LAST);
web_submit_form("ECMCorpMgmtMain.html",
"Snapshot=t7.inf",
ITEMDATA,
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/top_bg.jpg", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtTop.html", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/left_bg.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtLeft.html", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/dot_4.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtLeft.html", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/dot_6.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpMgmtLeft.html", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic2.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpInfoMaint.html", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic5.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpInfoMaint.html", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic4.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMCorpInfoMaint.html", ENDITEM,
LAST);
/*
* 显示部门列表
*/
/* lr_think_time( 3 );
web_link("閮ㄩ棬鍒楄〃",
"Text=閮ㄩ棬鍒楄〃",
"Snapshot=t4.inf",
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic2.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgList.html?clearCache=true", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic5.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgList.html?clearCache=true", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic4.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgList.html?clearCache=true", ENDITEM,
LAST);*/
lr_think_time( 6 );
/*
* 添加部门
*/
lr_think_time( 3 );
web_link("娣诲姞閮ㄩ棬",
"Text=娣诲姞閮ㄩ棬",
"Snapshot=t5.inf",
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic5.gif", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic2.gif", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic4.gif", ENDITEM,
LAST);
web_link("娣诲姞閮ㄩ棬_2",
"Text=娣诲姞閮ㄩ棬",
"Snapshot=t6.inf",
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic2.gif", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic5.gif", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic4.gif", ENDITEM,
LAST);
lr_think_time( 44 );
/* web_submit_form("ECMCorpMgmtMain.html",
"Snapshot=t3.inf",
ITEMDATA,
EXTRARES,*/
web_submit_form("ECMOrgMaint.html",
"Snapshot=t7.inf",
ITEMDATA,
"Name=ECMOrgMaint_OrgParentID", "Value=---", ENDITEM,
"Name=ECMOrgMaint_OrgName", "Value=ann", ENDITEM,
"Name=ECMOrgMaint_OrgCode", "Value=123", ENDITEM,
"Name=ECMOrgMaint_OrgRank", "Value=1" ENDITEM,
"Name=ECMOrgMaint_OrgDirector", "Value=wang", ENDITEM,
"Name=ECMOrgMaint_OrgDuty", "Value=wu" ENDITEM,
"Name=ECMOrgMaint_OrgDescription", "Value=nihao", ENDITEM,
"Name=ECMOrgMaint_SubOrgs", "Value=0", ENDITEM,
"Name=Submit", "Value=淇濆瓨", ENDITEM,
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic2.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgMaint.html?ECMOrgMaint_action=add", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic5.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgMaint.html?ECMOrgMaint_action=add", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic4.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgMaint.html?ECMOrgMaint_action=add", ENDITEM,
LAST);
lr_think_time( 6 );
/*
* 显示部门
lr_think_time( 4 );
web_link("閮ㄩ棬鍒楄〃_2",
"Text=閮ㄩ棬鍒楄〃",
"Snapshot=t8.inf",
EXTRARES,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic2.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgList.html?clearCache=true", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic5.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgList.html?clearCache=true", ENDITEM,
"Url=/ECManager/CorpMgmtResourceSet/images/right_pic4.gif", "Referer=http://www.liuwl02.com:5000/ECManager/CorpMgmtPortal/portal/html/ECMOrgList.html?clearCache=true", ENDITEM,
LAST);*/
return 0; |
|