Browse Source

调整工序时间验证,改成工位时间验证

master
songnan.zhang 2 years ago
parent
commit
92de2c6c33
  1. 2
      APPQ5/QMAPP.FJC.TRACING/DataValidators/TimeValidator.cs

2
APPQ5/QMAPP.FJC.TRACING/DataValidators/TimeValidator.cs

@ -15,7 +15,7 @@ namespace QMAPP.FJC.TRACING.DataValidators
public ValidateResult Validate(DAObject data, DAIValidation validOption) public ValidateResult Validate(DAObject data, DAIValidation validOption)
{ {
ProductTimeDAL dal = new ProductTimeDAL(); ProductTimeDAL dal = new ProductTimeDAL();
ProductTime timeCheck = dal.GetTimeCheckCfg(data.WorkLocState.WORKCELL_CODE, data.DAI.DA_CODE); ProductTime timeCheck = dal.GetTimeCheckCfg(data.WorkLocState.WORKLOC_CODE, data.DAI.DA_CODE);
if (timeCheck == null) return new ValidateResult(true, ""); if (timeCheck == null) return new ValidateResult(true, "");
DataTable checkTable = dal.GetConfigValue(timeCheck, data.DAValue.ToString()); DataTable checkTable = dal.GetConfigValue(timeCheck, data.DAValue.ToString());
if (checkTable == null || checkTable.Rows.Count == 0) if (checkTable == null || checkTable.Rows.Count == 0)

Loading…
Cancel
Save