用户Z5120170(提问者)您好,非常感谢,但是我的按钮里面已经写了js了,按您的方法加上上面这句话,虽然报了成功,但是没有更改数据,js如下:
var user = prompt(\"请输入用户名\", \"\");
var psw = prompt(\"请输入密码\", \"\");
var a = contentPane.gotoPage(1,{\"pass_word\": psw }, \'F\')
var b = contentPane.gotoPage(1,{\"user_name\": user }, \'F\')
var c=this.options.form.getWidgetByName(\'start_time\').getValue();
var e=this.options.form.getWidgetByName(\'work_shift_code\').getValue();
var sqlJudge = \"select 1 from user_logins where user_name = \'\"+user+\"\' and password = \'\"+psw+\"\'\"
var mark = FR.remoteEvaluate(\'=sql(\"PTS\",\"\'+sqlJudge+\'\",1,1)\')
if (mark!=\"\") {
var sql=\"call cxplan_to_cxdemand_pkg.DJLB_UPDATE_USER (\'\"+b+\"\',\'\"+c+\"\',\'\"+e+\"\')\";
var res=FR.remoteEvaluate(\'=sql(\"PTS\",\"\'+sql+\'\",1,1)\');
_g(\'${sessionID}\').verifyAndWriteReport();
alert(\"点击确定后生成计划\")
} else {
alert(\"密码错误!\");
}