|
Action()
{
web_url("lTree-list-active.gif",
"URL=http://192.168.0.28:7001/ty-delta-user/css/images/lTree-list-active.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.0.28:7001/ty-delta-user/indexAction.action",
"Snapshot=t8.inf",
LAST);
web_url("invoice.action",
"URL=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.28:7001/ty-delta-user/indexAction.action",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=css/fp_template/sdpt.png", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=css/images/error.png", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=css/images/symbolIcon.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=css/images/percentIcon.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=css/images/formBtn.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=libz/ligerUI/skins/Aqua/images/win/dialog-bc.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=libz/ligerUI/skins/Aqua/images/win/dialog-tc.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=libz/ligerUI/skins/Aqua/images/win/box.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=libz/ligerUI/skins/Aqua/images/win/dialog-icons.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
"Url=libz/ligerUI/skins/Aqua/images/win/dialog.gif", "Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue", ENDITEM,
LAST);
lr_rendezvous("kaip001");
lr_start_transaction("kaip002");
web_reg_save_param("invoice_code",
"LB=<input type=\"hidden\" name=\"INVOICE_CODE\" value=\"",
"RB=\">",
LAST);
web_reg_save_param("invoice_no",
"LB=<input type=\"hidden\" name=\"INVOICE_NO\" value=\"",
"RB=\">",
LAST);
web_submit_data("blueInvoice.action",
"Action=http://192.168.0.28:7001/ty-delta-user/blueInvoice.action?sign=blueInvoice",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue",
"Snapshot=t10.inf",
"Mode=HTML",
ITEMDATA,
"Name=USER_NAME", "Value=001", ENDITEM,
"Name=USER_ID", "Value=2", ENDITEM,
"Name=CLIENT_ID", "Value=2", ENDITEM,
"Name=TAXPAYER_ID", "Value=2", ENDITEM,
"Name=TAX_ORGAN_CODE", "Value=13716020001", ENDITEM,
"Name=TAX_ORGAN_NAME", "Value=", ENDITEM,
"Name=PAYEE_NAME", "Value=性能测试2", ENDITEM,
"Name=PAYEE_REGISTER_NO", "Value=0000000002", ENDITEM,
"Name=TAX_REGISTER_NO", "Value=0000000002", ENDITEM,
"Name=TRADE_CODE", "Value=1", ENDITEM,
"Name=TRADE_CODE_TYPE", "Value=销售或进口货物", ENDITEM,
"Name=INVOICE_TYPE_CODE", "Value=1", ENDITEM,
"Name=TAX_FLAG", "Value=1", ENDITEM,
"Name=divsize", "Value=", ENDITEM,
"Name=INVOICE_CODE", "Value={invoice_code}", ENDITEM,
"Name=INVOICE_NO", "Value={invoice_no}", ENDITEM,
"Name=PAYER_NAME", "Value=中润四方", ENDITEM,
"Name=ITEM_NAME", "Value=主板", ENDITEM,
"Name=UNIT", "Value=个", ENDITEM,
"Name=NUMS", "Value=10", ENDITEM,
"Name=PRICE", "Value=102.00", ENDITEM,
"Name=AMT", "Value=1020.00", ENDITEM,
"Name=DISCOUNT", "Value=0", ENDITEM,
"Name=DISCOUNT_AMT", "Value=0", ENDITEM,
"Name=INVOICE_AMT", "Value=1020.00", ENDITEM,
"Name=AMT_UPPER", "Value=壹仟零贰拾元整", ENDITEM,
"Name=REMARK", "Value=备注", ENDITEM,
"Name=INVOICING_LIMIT", "Value=10000", ENDITEM,
"Name=DIV", "Value=", ENDITEM,
LAST);
web_submit_data("printConfiguration.action",
"Action=http://192.168.0.28:7001/ty-delta-user/printConfiguration.action",
"Method=POST",
"Referer=http://192.168.0.28:7001/ty-delta-user/blueInvoice.action?sign=blueInvoice",
"Snapshot=t11.inf",
"Mode=HTML",
ITEMDATA,
"Name=INVOICE_TYPE_CODE", "Value=1", ENDITEM,
LAST);
web_url("invoice.action_2",
"URL=http://192.168.0.28:7001/ty-delta-user/invoice.action?sign=getInvoice&type=blue",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.28:7001/ty-delta-user/blueInvoice.action?sign=blueInvoice",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
lr_end_transaction("kaip002",LR_AUTO);
return 0;
}
上面是脚本 |
|