|
楼主 |
发表于 2021-12-30 10:35:58
|
显示全部楼层
本帖最后由 leechin 于 2021-12-30 10:54 编辑
我不是要赋值啊,我是要做复核唯一约束,现在这样就新建报错,到底要怎么改?
var currentJGQSR = justep.Date.toString(this.comp("mainData").getValue("fJGQSR"), justep.Date.STANDART_FORMAT_SHOT);
var currentJGZZR = justep.Date.toString(this.comp("mainData").getValue("fJGZZR"), justep.Date.STANDART_FORMAT_SHOT);
var length = this.comp("mainData").find([ "fHTID","fItemLB","fItemName","fGG","fUnit","fJGQSR","fJGZZR" ]
, [ currentHTID,currentItemLB,currentItemName,currentGG,currentUnit,currentJGQSR,currentJGZZR]).length;
var sql="select count(*) as c from JY_YBCGJGDA where fHTID = '"+currentHTID+"' and fItemLB='"+currentItemLB+"'"
+" and fItemName='"+currentItemName+"' and fGG='"+currentGG+"' and fUnit='"+currentUnit+"' "
+" and fJGQSR='"+currentJGQSR+"' and fJGZZR='"+currentJGZZR+"' ";
|
|