|
@ -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) |
|
|