DS7_JingHan
hanxuntao 2 years ago
parent 231cc305fa
commit f9c3a3a71d

@ -1110,7 +1110,9 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
this.gridListAppDetailAfterEdit(editor, e, eOpts);
}, this);
this.gridAppDetailCellEditing.on('beforeedit', function (editor, e) {
return this.gridAppDetailcellEditingBeforeEdit(editor, e);
}, this);
//#endregion
@ -1609,7 +1611,13 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
},
gridAppDetailcellEditingBeforeEdit: function (editor, e) {
var BILLSTATUS = e.record.get('BILLSTATUS');
if (BILLSTATUS == '已开') {
//Ext.Msg.show({ title: '提示', msg: '已开不允许修改!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return false;
}
},
onAddInvAppDetailClick: function () {

@ -1367,8 +1367,8 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
if (_bill.BLSTATUS == "扣单")
{
cmdupdate = db.GetSqlStringCommand("update op_blissue set BLSTATUS="
+ " (case when (select count(1) from worklog where BSNO=@GID and actname='提交提单')>0 then '提交提单' "
+ " else case when (select count(1) from worklog where BSNO=@GID and actname='提签入')>0 then '提单签入' "
+ " (case when (select count(1) from worklog where BSNO=@GID and actname='提签入')>0 then '提单签入' "
+ " else case when (select count(1) from worklog where BSNO=@GID and actname='提交提单')>0 then '提交提单' "
+ " else '' end end) where GID=@GID ");
}
else {

Loading…
Cancel
Save