This commit is contained in:
PastSaid
2025-01-01 08:21:58 +08:00
parent 9725ab5376
commit 3d15fd4b7e
59 changed files with 3013 additions and 1324 deletions

View File

@@ -2,6 +2,8 @@
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
@@ -63,5 +65,35 @@ WHERE t0.FISCHECK = 1
}
}
public override void BeforeUpdateValue(BeforeUpdateValueEventArgs e)
{
base.BeforeUpdateValue(e);
if (e.Key.ToUpperInvariant().Equals("FAACVALUE"))
{
var barCode = e.Value.ToString();
var sqlL = $@"/*dialect*/
SELECT t0.FBARCODE,t0.FBillNo,t0.FBILLSEQ,t0.FBILLFORMID,t0.FLOT
FROM T_UNW_WMS_BARCODE t0
WHERE t0.FBARCODE = '{barCode}'
AND t0.FBILLFORMID = 'PRD_MO'
";
var dataList = DBServiceHelper.ExecuteDynamicObject(this.Context, sqlL);
if (dataList == null || dataList.Count == 0)
{
this.View.Model.SetValue("FverifyRes", "无效的二维码!");
this.View.GetControl("FverifyRes").SetCustomPropertyValue("ForeColor", "#FF3300");
}
else
{
}
e.Value = "";
var control = this.View.GetControl("FAACValue");
control.SetFocus();
e.Cancel = true;
}
}
}
}