Exemple #1
0
        public static ECO SelChangeOrderObject(ECO _param)
        {
            _param.Type = EoConstant.TYPE_CHANGE_ORDER;
            ECO lECO = DaoFactory.GetData <ECO>("ChangeOrder.SelChangeOrder", _param);

            lECO.Oem_Lib_OID_KorNm = LibraryRepository.SelLibraryObject(new Library {
                OID = lECO.Oem_Lib_OID
            }).KorNm;
            lECO.Car_Lib_OID_KorNm = LibraryRepository.SelLibraryObject(new Library {
                OID = lECO.Car_Lib_OID
            }).KorNm;
            lECO.Pms_OID_KorNm = LibraryRepository.SelLibraryObject(new Library {
                OID = lECO.Pms_OID
            }).KorNm;

            lECO.BPolicy = BPolicyRepository.SelBPolicy(new BPolicy {
                Type = lECO.Type, OID = lECO.BPolicyOID
            }).First();
            return(lECO);
        }
Exemple #2
0
        public static List <ECO> SelChangeOrder(ECO _param)
        {
            _param.Type = EoConstant.TYPE_CHANGE_ORDER;
            List <ECO> lECO = DaoFactory.GetList <ECO>("ChangeOrder.SelChangeOrder", _param);

            lECO.ForEach(obj =>
            {
                obj.Oem_Lib_OID_KorNm = LibraryRepository.SelLibraryObject(new Library {
                    OID = obj.Oem_Lib_OID
                }).KorNm;
                obj.Car_Lib_OID_KorNm = LibraryRepository.SelLibraryObject(new Library {
                    OID = obj.Car_Lib_OID
                }).KorNm;
                obj.Pms_OID_KorNm = LibraryRepository.SelLibraryObject(new Library {
                    OID = obj.Pms_OID
                }).KorNm;

                obj.BPolicy = BPolicyRepository.SelBPolicy(new BPolicy {
                    Type = obj.Type, OID = obj.BPolicyOID
                }).First();
            });
            return(lECO);
        }
Exemple #3
0
        public static ECO UdtChangeOrderObject(ECO _param)
        {
            DaoFactory.SetUpdate("ChangeOrder.UdtChangeOrder", _param);

            return(_param);
        }