public static ECR UdtChangeRequest(ECR _param) { _param.Type = EoConstant.TYPE_CHANGE_REQUEST; DaoFactory.SetUpdate("ChangeRequest.UdtChangeRequest", _param); return(_param); }
public static ECR SelChangeRequestObject(ECR _param) { _param.Type = EoConstant.TYPE_CHANGE_REQUEST; ECR lECR = DaoFactory.GetData <ECR>("ChangeRequest.SelChangeRequest", _param); lECR.Oem_Lib_Nm = LibraryRepository.SelLibraryObject(new Library { OID = lECR.Oem_Lib_OID }).KorNm; lECR.Car_Lib_Nm = LibraryRepository.SelLibraryObject(new Library { OID = lECR.Car_Lib_OID }).KorNm; lECR.Pms_Nm = LibraryRepository.SelLibraryObject(new Library { OID = lECR.Pms_OID }).KorNm; lECR.BPolicy = BPolicyRepository.SelBPolicy(new BPolicy { Type = lECR.Type, OID = lECR.BPolicyOID }).First(); return(lECR); }
public static List <ECR> SelChangeRequest(ECR _param) { _param.Type = EoConstant.TYPE_CHANGE_REQUEST; List <ECR> lECR = DaoFactory.GetList <ECR>("ChangeRequest.SelChangeRequest", _param); lECR.ForEach(obj => { obj.Oem_Lib_Nm = LibraryRepository.SelLibraryObject(new Library { OID = obj.Oem_Lib_OID }).KorNm; obj.Car_Lib_Nm = LibraryRepository.SelLibraryObject(new Library { OID = obj.Car_Lib_OID }).KorNm; obj.Pms_Nm = LibraryRepository.SelLibraryObject(new Library { OID = obj.Pms_OID }).KorNm; obj.BPolicy = BPolicyRepository.SelBPolicy(new BPolicy { Type = obj.Type, OID = obj.BPolicyOID }).First(); }); return(lECR); }