public static MSupplier MSupplierById(this BoSupplier pBoSupplier) { var lMSupplier = new MSupplier { LObject = new MObject { LIdObject = pBoSupplier.LObject.LIdObject, LNameObject = pBoSupplier.LObject.LNameObject }, LStatus = new MStatus { LDsEstado = pBoSupplier.LStatus.LDsEstado, LIdStatus = pBoSupplier.LStatus.LIdStatus }, LTypeIdentification = new MTypeIdentification { LIdTypeIdentification = pBoSupplier.LTypeIdentification.LIdTypeIdentification, LTypeIdentification = pBoSupplier.LTypeIdentification.LTypeIdentification }, LListTypeIdentification = new List <SelectListItem>(), LListStatus = new List <SelectListItem>(), LNameSupplier = pBoSupplier.LNameSupplier, LNoIdentification = pBoSupplier.LNoIdentification, LIdSupplier = pBoSupplier.LIdSupplier, LCreationDate = pBoSupplier.LCreationDate, LModificationDate = pBoSupplier.LModificationDate }; lMSupplier.LListTypeIdentification = LiTypeIdentification.bll_getListTypeIdentification().MListAllTypeIdentification(); lMSupplier.LListStatus = LiStatus.Bll_getListStatusByIdObject(pBoSupplier.LObject.LIdObject).MListAllStatus(); return(lMSupplier); }
public static MCustomer MCustomerById(this BoCustomer oBCustomer) { var oMCustomer = new MCustomer { LObject = new MObject { LIdObject = oBCustomer.LObject.LIdObject, LNameObject = oBCustomer.LObject.LNameObject }, LStatus = new MStatus { LDsEstado = oBCustomer.LStatus.LDsEstado, LIdStatus = oBCustomer.LStatus.LIdStatus }, LTypeIdentification = new MTypeIdentification { LIdTypeIdentification = oBCustomer.LTypeIdentification.LIdTypeIdentification, LTypeIdentification = oBCustomer.LTypeIdentification.LTypeIdentification }, LListTypeIdentification = new List <SelectListItem>(), LListStatus = new List <SelectListItem>(), LNameCustomer = oBCustomer.LNameCustomer, LLastNameCustomer = oBCustomer.LLastNameCustomer, LNoIdentification = oBCustomer.LNoIdentification, LIdCustomer = oBCustomer.LIdCustomer, LCreationDate = oBCustomer.LCreationDate, LModificationDate = oBCustomer.LModificationDate }; oMCustomer.LListTypeIdentification = LiTypeIdentification.bll_getListTypeIdentification().MListAllTypeIdentification(); oMCustomer.LListStatus = LiStatus.Bll_getListStatusByIdObject(oBCustomer.LObject.LIdObject).MListAllStatus(); return(oMCustomer); }
private static void ListEmptySupplier(MSupplier pMsupplier) { pMsupplier.LListTypeIdentification = new List <SelectListItem>(); pMsupplier.LListTypeIdentification = LiTypeIdentification.bll_getListTypeIdentification().MListAllTypeIdentification(); pMsupplier.LListStatus = new List <SelectListItem>(); pMsupplier.LListStatus = LiStatus.Bll_getListStatusByIdObject(pMsupplier.LObject.LIdObject).MListAllStatus(); }
private static void ListEmptyCustomer(MCustomer pMCustomer) { pMCustomer.LListTypeIdentification = new List <SelectListItem>(); pMCustomer.LListTypeIdentification = LiTypeIdentification.bll_getListTypeIdentification().MListAllTypeIdentification(); pMCustomer.LListStatus = new List <SelectListItem>(); }