参数面板自定义按钮,添加点击事件,绑定js,js里写了调用数据库存储过程的代码: var sql = "exec LXGW_CustMtl_PDPackInfo_Sync '" + fbillnos[0] + "','','','','','','','','','','',0,0,0,0,'','','','','',''"; FR.remoteEvaluate('=SQL("LXGW_SPECIAL_KFMIC","'+sql+'",1,1)'); 存储过程是一个简单的测试存储过程, 内部接收到参数后只有一个insert语句: INSERT INTO KFMI_CUSTMTL_PDPACKINFO( pdname, fbillno, planneddateto, custpo, endcustnumber, endcustname, endcustshortname, kfmimtlnumber, kfmimtlname, kfmimtlmodel, kfmicodeno, pdqty, fqty, netweight, grossweight, volume, grossweightdetail, volumedetail, packagingmethod, packagingno, totalpackages, coapages, salesdd, salesddhrid, csdd, csddhrid, xxms, bsxz ) VALUES( @pdname, @fbillno, @planneddateto, @custpo, @endcustnumber, @endcustname, @endcustshortname, @kfmimtlnumber, @kfmimtlname, @kfmimtlmodel, @kfmicodeno, @pdqty, @fqty, @netweight, @grossweight, @volume, @grossweightdetail, @volumedetail, @packagingmethod, @packagingno, @totalpackages, @coapages, @salesdd, @salesddhrid, @csdd, @csddhrid, @xxms, @bsxz ) 预览点击按钮后,表里面被插入了两条一模一样的数据,insert语句被执行了两次,是什么原因,求帮忙啊 报表设计器版本是10.0的 |