Beispiel #1
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private FilterResponseModel Convert(FilterDataModel resultObject)
        {
            // Local variable declaration
            FilterResponseModel       responseModel = null;
            IList <OutputAcceptModel> listAccepts   = null;
            MCodeCom          mCodeCom = null;
            OutputAcceptModel accept   = null;

            // Variable initialize
            responseModel = new FilterResponseModel();
            listAccepts   = new List <OutputAcceptModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var slipStatusName     = string.Empty;
            var paymentMethodsName = string.Empty;
            var deleteFlagName     = string.Empty;
            var cbSlipStatus       = new ComboModel();

            foreach (var obj in resultObject.ListAccepts)
            {
                accept = new OutputAcceptModel();
                accept.AcceptSlipNo       = DataHelper.ToString(obj.AcceptSlipNo);
                accept.SlipStatus         = DataHelper.ToString(obj.SlipStatus);
                slipStatusName            = mCodeCom.GetCodeName(Logics.GROUP_SLIP_STATUS, accept.SlipStatus);
                accept.SlipStatusName     = DataHelper.ToString(slipStatusName);
                accept.AcceptDate         = DataHelper.ToString(Formats.DATE, obj.AcceptDate);
                accept.DeliveryDate       = DataHelper.ToString(Formats.DATE, obj.DeliveryDate);
                accept.ClientCd           = DataHelper.ToString(obj.ClientCd);
                accept.ClientName         = DataHelper.ToString(obj.ClientName);
                accept.ClientAddress      = DataHelper.ToString(obj.ClientAddress);
                accept.ClientTel          = DataHelper.ToString(obj.ClientTel);
                accept.DeliveryCd         = DataHelper.ToString(obj.DeliveryCd);
                accept.DeliveryName       = DataHelper.ToString(obj.DeliveryName);
                accept.DeliveryAddress    = DataHelper.ToString(obj.DeliveryAddress);
                accept.DeliveryTel        = DataHelper.ToString(obj.DeliveryTel);
                accept.PaymentMethods     = DataHelper.ToString(obj.PaymentMethods);
                paymentMethodsName        = mCodeCom.GetCodeName(Logics.GROUP_PAYMENT_METHODS, accept.PaymentMethods);
                accept.PaymentMethodsName = DataHelper.ToString(paymentMethodsName);
                accept.GiftCd             = DataHelper.ToString(obj.GiftCd);
                accept.ViewId             = DataHelper.ToString(obj.ViewId);
                accept.Notes          = DataHelper.ToString(obj.Notes);
                accept.UpdateUser     = DataHelper.ToString(obj.UpdateUser);
                accept.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);
                accept.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName        = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, accept.DeleteFlag);
                accept.DeleteFlagName = DataHelper.ToString(deleteFlagName);
                cbSlipStatus          = MCodeCom.ToComboItems(resultObject.ListSlipStatus, accept.SlipStatus);
                accept.ListSlipStatus = cbSlipStatus.ListItems;
                accept.SlipStatus     = cbSlipStatus.SeletedValue;
                listAccepts.Add(accept);
            }

            // Set value
            responseModel.ListAccepts = listAccepts;

            // Return value
            return(responseModel);
        }
Beispiel #2
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private FilterResponseModel Convert(FilterDataModel resultObject)
        {
            // Local variable declaration
            FilterResponseModel     responseModel = null;
            IList <OutputItemModel> listItems     = null;
            MCodeCom        mCodeCom = null;
            OutputItemModel item     = null;

            // Variable initialize
            responseModel = new FilterResponseModel();
            listItems     = new List <OutputItemModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var itemDivName    = string.Empty;
            var deleteFlagName = string.Empty;

            foreach (var obj in resultObject.ListItems)
            {
                item = new OutputItemModel();

                item.ItemCd         = DataHelper.ToString(obj.ItemCd);
                item.ItemName       = DataHelper.ToString(obj.ItemName);
                item.CategoryCd     = DataHelper.ToString(obj.CategoryCd);
                item.CategoryName   = DataHelper.ToString(obj.Category.CategoryName);
                item.AgeCd          = DataHelper.ToString(obj.AgeCd);
                item.AgeName        = DataHelper.ToString(obj.Age.AgeName);
                item.GenderCd       = DataHelper.ToString(obj.GenderCd);
                item.GenderName     = DataHelper.ToString(obj.Gender.GenderName);
                item.BrandCd        = DataHelper.ToString(obj.BrandCd);
                item.BrandName      = DataHelper.ToString(obj.Brand.BrandName);
                item.CountryCd      = DataHelper.ToString(obj.CountryCd);
                item.CountryName    = DataHelper.ToString(obj.Country.CountryName);
                item.UnitCd         = DataHelper.ToString(obj.UnitCd);
                item.UnitName       = DataHelper.ToString(obj.Unit.UnitName);
                item.ItemDiv        = DataHelper.ToString(obj.ItemDiv);
                itemDivName         = mCodeCom.GetCodeName(Logics.GROUP_ITEM_DIV, item.ItemDiv);
                item.ItemDivName    = DataHelper.ToString(itemDivName);
                item.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);
                item.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName      = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, item.DeleteFlag);
                item.DeleteFlagName = DataHelper.ToString(deleteFlagName);
                listItems.Add(item);
            }

            // Set value
            responseModel.ListItems = listItems;

            // Return value
            return(responseModel);
        }
Beispiel #3
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel  responseModel = null;
            OutputDetailsModel details       = null;
            IList <OutputAcceptDetailsModel> listAcceptDetails = null;
            OutputAcceptDetailsModel         acceptDetails     = null;
            MCodeCom mCodeCom = null;

            // Variable initialize
            responseModel     = new InitResponseModel();
            details           = new OutputDetailsModel();
            listAcceptDetails = new List <OutputAcceptDetailsModel>();
            mCodeCom          = new MCodeCom();

            // Get value
            var accept = resultObject.Accept;

            details.AcceptSlipNo = DataHelper.ToString(accept.AcceptSlipNo);
            var slipStatusName = mCodeCom.GetCodeName(Logics.GROUP_SLIP_STATUS, accept.SlipStatus);

            details.SlipStatus      = DataHelper.ToString(accept.SlipStatus);
            details.SlipStatusName  = DataHelper.ToString(slipStatusName);
            details.AcceptDate      = DataHelper.ToString(Formats.FULL_DATE, accept.AcceptDate);
            details.DeliveryName    = DataHelper.ToString(accept.DeliveryName);
            details.DeliveryAddress = DataHelper.ToString(accept.DeliveryAddress);
            details.ClientName      = DataHelper.ToString(accept.ClientName);
            details.ClientAddress   = DataHelper.ToString(accept.ClientAddress);
            var paymentMethodsName = mCodeCom.GetCodeContent(Logics.GROUP_PAYMENT_METHODS, accept.PaymentMethods);

            details.PaymentMethods     = DataHelper.ToString(accept.PaymentMethods);
            details.PaymentMethodsName = DataHelper.ToString(paymentMethodsName);
            var totalItem   = accept.AcceptDetails.Sum(o => o.DetailAmt);
            var totalAmount = accept.TotalAmt;

            details.TotalAmount = DataHelper.ToString(Formats.CURRENCY, totalAmount);
            details.ShipAmount  = DataHelper.ToString(Formats.CURRENCY, totalAmount - totalItem);
            foreach (var obj in accept.AcceptDetails)
            {
                acceptDetails          = new OutputAcceptDetailsModel();
                acceptDetails.ItemCd   = DataHelper.ToString(obj.ItemCd);
                acceptDetails.ItemName = DataHelper.ToString(obj.ItemName);
                acceptDetails.Price    = DataHelper.ToString(Formats.CURRENCY, obj.DetailPrice);
                acceptDetails.Quantty  = DataHelper.ToString(Formats.NUMBER, obj.DetailQtty);
                acceptDetails.Amount   = DataHelper.ToString(Formats.CURRENCY, obj.DetailAmt);

                listAcceptDetails.Add(acceptDetails);
            }
            details.ListAcceptDetails = listAcceptDetails;

            // Set value
            responseModel.Details = new List <OutputDetailsModel>()
            {
                details
            };

            // Return value
            return(responseModel);
        }
Beispiel #4
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel       responseModel = null;
            IList <OutputUserModel> listUsers     = null;
            MCodeCom        mCodeCom = null;
            OutputUserModel user     = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listUsers     = new List <OutputUserModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var deleteFlagName = string.Empty;

            foreach (var obj in resultObject.ListUsers)
            {
                user = new OutputUserModel();

                user.UserCd         = DataHelper.ToString(obj.UserCd);
                user.Email          = DataHelper.ToString(obj.Email);
                user.FullName       = DataHelper.ToString(obj.FullName);
                user.Address        = DataHelper.ToString(obj.Address);
                user.CityCd         = DataHelper.ToString(obj.CityCd);
                user.CityName       = DataHelper.ToString(obj.City.CityName);
                user.Phone1         = DataHelper.ToString(obj.Phone1);
                user.Phone2         = DataHelper.ToString(obj.Phone2);
                user.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);
                user.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName      = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, user.DeleteFlag);
                user.DeleteFlagName = DataHelper.ToString(deleteFlagName);
                if (obj.UserGroups.Count > decimal.Zero)
                {
                    user.GroupCd   = DataHelper.ToString(obj.UserGroups[0].GroupCd);
                    user.GroupName = DataHelper.ToString(obj.UserGroups[0].Group.GroupName);
                }
                listUsers.Add(user);
            }

            // Set value
            var cbCity = MCodeCom.ToComboItems(resultObject.ListCity, null);

            responseModel.ListCity = cbCity.ListItems;
            responseModel.CityCd   = cbCity.SeletedValue;
            var cbDeleteFlag = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, null);

            responseModel.ListDeleteFlag = cbDeleteFlag.ListItems;
            responseModel.DeleteFlag     = cbDeleteFlag.SeletedValue;
            var cbGroup = MCodeCom.ToComboItems(resultObject.ListGroup, null);

            responseModel.ListGroup = cbGroup.ListItems;
            responseModel.GroupCd   = cbGroup.SeletedValue;
            responseModel.ListUsers = listUsers;

            // Return value
            return(responseModel);
        }
Beispiel #5
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel        responseModel = null;
            IList <OutputOfferModel> listOffers    = null;
            OutputOfferModel         offer         = null;
            MCodeCom mCodeCom = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listOffers    = new List <OutputOfferModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var cbDeleteFlag = new ComboModel();
            var offerDivName = string.Empty;

            foreach (var obj in resultObject.ListOffers)
            {
                offer              = new OutputOfferModel();
                offer.OfferCd      = DataHelper.ToString(obj.OfferCd);
                offer.OfferGroupCd = DataHelper.ToString(obj.OfferGroupCd);
                offer.ItemCd       = DataHelper.ToString(obj.ItemCd);
                offer.StartDate    = DataHelper.ToString(Formats.DATE, obj.StartDate);
                offer.EndDate      = DataHelper.ToString(Formats.DATE, obj.EndDate);
                offer.Percent      = DataHelper.ToString(Formats.NUMBER, obj.Percent);
                offer.Notes        = DataHelper.ToString(obj.Notes);
                offer.DeleteFlag   = DataHelper.ToString(obj.DeleteFlag);
                offer.UpdateDate   = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);

                offerDivName       = mCodeCom.GetCodeName(Logics.GROUP_OFFER_DIV, obj.OfferDiv);
                offer.OfferDiv     = DataHelper.ToString(obj.OfferDiv);
                offer.OfferDivName = DataHelper.ToString(offerDivName);

                cbDeleteFlag         = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, offer.DeleteFlag);
                offer.ListDeleteFlag = cbDeleteFlag.ListItems;
                offer.DeleteFlag     = cbDeleteFlag.SeletedValue;

                listOffers.Add(offer);
            }

            var cbOfferDiv = MCodeCom.ToComboItems(resultObject.ListOfferDiv, null);

            cbDeleteFlag = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, null);

            // Set value
            responseModel.ListOfferDiv   = cbOfferDiv.ListItems;
            responseModel.ListDeleteFlag = cbDeleteFlag.ListItems;
            responseModel.ListOffers     = listOffers;

            // Return value
            return(responseModel);
        }
Beispiel #6
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel       responseModel = null;
            IList <OutputGiftModel> listGifts     = null;
            MCodeCom        mCodeCom = null;
            OutputGiftModel gift     = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listGifts     = new List <OutputGiftModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var        deleteFlagName = string.Empty;
            ComboModel cbGiftStatus   = null;

            foreach (var obj in resultObject.ListGifts)
            {
                gift = new OutputGiftModel();

                gift.GiftCd         = DataHelper.ToString(obj.GiftCd);
                gift.GiftStatus     = DataHelper.ToString(obj.GiftStatus);
                gift.StartDate      = DataHelper.ToString(Formats.DATE, obj.StartDate);
                gift.EndDate        = DataHelper.ToString(Formats.DATE, obj.EndDate);
                gift.Price          = DataHelper.ToString(Formats.CURRENCY, obj.Price);
                gift.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);
                gift.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName      = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, gift.DeleteFlag);
                gift.DeleteFlagName = DataHelper.ToString(deleteFlagName);
                cbGiftStatus        = MCodeCom.ToComboItems(resultObject.ListGiftStatus, gift.GiftStatus);
                gift.ListGiftStatus = cbGiftStatus.ListItems;
                gift.GiftStatus     = cbGiftStatus.SeletedValue;
                listGifts.Add(gift);
            }

            // Set value
            cbGiftStatus = MCodeCom.ToComboItems(resultObject.ListGiftStatus, null);
            responseModel.ListGiftStatus = cbGiftStatus.ListItems;
            responseModel.GiftStatus     = cbGiftStatus.SeletedValue;
            var cbDeleteFlag = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, null);

            responseModel.ListDeleteFlag = cbDeleteFlag.ListItems;
            responseModel.DeleteFlag     = cbDeleteFlag.SeletedValue;
            responseModel.ListGifts      = listGifts;

            // Return value
            return(responseModel);
        }
Beispiel #7
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel        responseModel = null;
            IList <OutputBrandModel> listBrands    = null;
            MCodeCom         mCodeCom = null;
            OutputBrandModel brand    = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listBrands    = new List <OutputBrandModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var deleteFlagName = string.Empty;

            foreach (var obj in resultObject.ListBrands)
            {
                brand = new OutputBrandModel();

                brand.BrandCd        = DataHelper.ToString(obj.BrandCd);
                brand.BrandName      = DataHelper.ToString(obj.BrandName);
                brand.FileId         = DataHelper.ToString(obj.FileId);
                brand.SortKey        = DataHelper.ToString(Formats.NUMBER, obj.SortKey);
                brand.Notes          = DataHelper.ToString(obj.Notes);
                brand.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);
                brand.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName       = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, brand.DeleteFlag);
                brand.DeleteFlagName = DataHelper.ToString(deleteFlagName);

                listBrands.Add(brand);
            }

            // Set value
            var cbDeleteFlag = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, null);

            responseModel.ListDeleteFlag = cbDeleteFlag.ListItems;
            responseModel.DeleteFlag     = cbDeleteFlag.SeletedValue;
            responseModel.ListBrands     = listBrands;

            // Return value
            return(responseModel);
        }
Beispiel #8
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel         responseModel = null;
            IList <OutputAcceptModel> listAccepts   = null;
            OutputAcceptModel         accept        = null;
            MCodeCom mCodeCom = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listAccepts   = new List <OutputAcceptModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            string slipStatusName = null;

            foreach (var obj in resultObject.ListAccepts)
            {
                accept = new OutputAcceptModel();

                accept.AcceptSlipNo   = DataHelper.ToString(obj.AcceptSlipNo);
                accept.AcceptDate     = DataHelper.ToString(Formats.DATE, obj.AcceptDate);
                accept.DeliveryName   = DataHelper.ToString(obj.DeliveryName);
                accept.TotalAmount    = DataHelper.ToString(Formats.CURRENCY, obj.TotalAmount);
                slipStatusName        = mCodeCom.GetCodeName(Logics.GROUP_SLIP_STATUS, obj.SlipStatus);
                accept.SlipStatus     = DataHelper.ToString(obj.SlipStatus);
                accept.SlipStatusName = DataHelper.ToString(slipStatusName);

                listAccepts.Add(accept);
            }

            // Set value
            responseModel.ListAccepts = listAccepts;
            responseModel.AcceptCount = DataHelper.ToString(Formats.NUMBER, listAccepts.Count);

            // Return value
            return(responseModel);
        }
Beispiel #9
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel         responseModel = null;
            IList <OutputBannerModel> listBanners   = null;
            OutputBannerModel         banner        = null;
            MCodeCom mCodeCom = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listBanners   = new List <OutputBannerModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var deleteFlagName = string.Empty;

            foreach (var obj in resultObject.ListBanners)
            {
                banner = new OutputBannerModel();

                banner.BannerCd       = DataHelper.ToString(obj.BannerCd);
                banner.BannerName     = DataHelper.ToString(obj.BannerName);
                banner.OfferGroupCd   = DataHelper.ToString(obj.OfferGroupCd);
                banner.SortKey        = DataHelper.ToString(obj.SortKey);
                banner.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName        = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, banner.DeleteFlag);
                banner.DeleteFlagName = DataHelper.ToString(deleteFlagName);
                banner.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);

                listBanners.Add(banner);
            }

            // Set value
            responseModel.ListBanners = listBanners;

            // Return value
            return(responseModel);
        }
Beispiel #10
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel       responseModel = null;
            IList <OutputItemModel> listItems     = null;
            MCodeCom        mCodeCom = null;
            OutputItemModel item     = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listItems     = new List <OutputItemModel>();
            mCodeCom      = new MCodeCom();

            // Get value
            var itemDivName    = string.Empty;
            var deleteFlagName = string.Empty;

            foreach (var obj in resultObject.ListItems)
            {
                item = new OutputItemModel();

                item.ItemCd         = DataHelper.ToString(obj.ItemCd);
                item.ItemName       = DataHelper.ToString(obj.ItemName);
                item.CategoryCd     = DataHelper.ToString(obj.CategoryCd);
                item.CategoryName   = DataHelper.ToString(obj.Category.CategoryName);
                item.AgeCd          = DataHelper.ToString(obj.AgeCd);
                item.AgeName        = DataHelper.ToString(obj.Age.AgeName);
                item.GenderCd       = DataHelper.ToString(obj.GenderCd);
                item.GenderName     = DataHelper.ToString(obj.Gender.GenderName);
                item.BrandCd        = DataHelper.ToString(obj.BrandCd);
                item.BrandName      = DataHelper.ToString(obj.Brand.BrandName);
                item.CountryCd      = DataHelper.ToString(obj.CountryCd);
                item.CountryName    = DataHelper.ToString(obj.Country.CountryName);
                item.UnitCd         = DataHelper.ToString(obj.UnitCd);
                item.UnitName       = DataHelper.ToString(obj.Unit.UnitName);
                item.ItemDiv        = DataHelper.ToString(obj.ItemDiv);
                itemDivName         = mCodeCom.GetCodeName(Logics.GROUP_ITEM_DIV, item.ItemDiv);
                item.ItemDivName    = DataHelper.ToString(itemDivName);
                item.UpdateDate     = DataHelper.ToString(Formats.UPDATE_DATE, obj.UpdateDate);
                item.DeleteFlag     = DataHelper.ToString(obj.DeleteFlag);
                deleteFlagName      = mCodeCom.GetCodeName(Logics.GROUP_DELETE_FLAG, item.DeleteFlag);
                item.DeleteFlagName = DataHelper.ToString(deleteFlagName);

                listItems.Add(item);
            }

            // Set value
            var cbCategory = MCodeCom.ToComboItems(resultObject.ListCategory, null);

            responseModel.ListCategory = cbCategory.ListItems;
            responseModel.CategoryCd   = cbCategory.SeletedValue;
            var cbAge = MCodeCom.ToComboItems(resultObject.ListAge, null);

            responseModel.ListAge = cbAge.ListItems;
            responseModel.AgeCd   = cbAge.SeletedValue;
            var cbGender = MCodeCom.ToComboItems(resultObject.ListGender, null);

            responseModel.ListGender = cbGender.ListItems;
            responseModel.GenderCd   = cbGender.SeletedValue;
            var cbBrand = MCodeCom.ToComboItems(resultObject.ListBrand, null);

            responseModel.ListBrand = cbBrand.ListItems;
            responseModel.BrandCd   = cbBrand.SeletedValue;
            var cbCountry = MCodeCom.ToComboItems(resultObject.ListCountry, null);

            responseModel.ListCountry = cbCountry.ListItems;
            responseModel.CountryCd   = cbCountry.SeletedValue;
            var cbUnit = MCodeCom.ToComboItems(resultObject.ListUnit, null);

            responseModel.ListUnit = cbUnit.ListItems;
            responseModel.UnitCd   = cbUnit.SeletedValue;
            var cbItemDiv = MCodeCom.ToComboItems(resultObject.ListItemDiv, null);

            responseModel.ListItemDiv = cbItemDiv.ListItems;
            responseModel.ItemDiv     = cbItemDiv.SeletedValue;
            var cbDeleteFlag = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, null);

            responseModel.ListDeleteFlag = cbDeleteFlag.ListItems;
            responseModel.DeleteFlag     = cbDeleteFlag.SeletedValue;
            responseModel.ListItems      = listItems;

            // Return value
            return(responseModel);
        }