|
|
@ -15,7 +15,7 @@ namespace QMAPP.FJC.TRACING.DataValidators |
|
|
|
public ValidateResult Validate(DAObject data, DAIValidation validOption) |
|
|
|
{ |
|
|
|
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, ""); |
|
|
|
DataTable checkTable = dal.GetConfigValue(timeCheck, data.DAValue.ToString()); |
|
|
|
if (checkTable == null || checkTable.Rows.Count == 0) |
|
|
|