本帖最后由 a11andqq 于 2012-12-5 11:40 编辑
我们有这样一个场景,保存表单时会将原有的数据先加载出来然后再一起保存,也就是说,在回放多次时,脚本中的参数值会进行递增,比如如下:
"Name=ctl00$List$rp_NotFeedback$ctl01$HidSendBankID", "Value={ct101ID}", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl01$hidCashType", "Value=10", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl01$txtAdjustmentSum", "Value=0", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl01$SendBankRemark", "Value=", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$HidSendBankID", "Value={ct102ID}", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$hidCashType", "Value=10", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$txtAdjustmentSum", "Value=0", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$SendBankRemark", "Value=", ENDITEM, 初始状态有ctl01和ctl02这两个参数,但是在第二次回放时,它会变成这样 "Name=ctl00$List$rp_NotFeedback$ctl01$HidSendBankID", "Value={ct101ID}", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl01$hidCashType", "Value=10", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl01$txtAdjustmentSum", "Value=0", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl01$SendBankRemark", "Value=", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$HidSendBankID", "Value={ct102ID}", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$hidCashType", "Value=10", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$txtAdjustmentSum", "Value=0", ENDITEM,
"Name=ctl00$List$rp_NotFeedback$ctl02$SendBankRemark", "Value=", ENDITEM "Name=ctl00$List$rp_NotFeedback$ctl03$HidSendBankID", "Value={ct103ID}", ENDITEM, "Name=ctl00$List$rp_NotFeedback$ctl03$hidCashType", "Value=10", ENDITEM, "Name=ctl00$List$rp_NotFeedback$ctl03$txtAdjustmentSum", "Value=0", ENDITEM, "Name=ctl00$List$rp_NotFeedback$ctl03$SendBankRemark", "Value=1", ENDITEM, 会自动在原有的基础上增加ctl03的相关参数,如果再往下,后面会ctl04,ctl05这样一直往下增加参数,敢问各位大神,对于这种情况该如何处理??
|