/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminOfferListDao adminOfferListDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminOfferListDao = new AdminOfferListDao(); // Get data var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, true, false); var listOfferDiv = mCodeCom.GetListCode(Logics.GROUP_OFFER_DIV, null, true, false); var listOffers = adminOfferListDao.GetListOffers(); // Set value getResult.ListDeleteFlag = listDeleteFlag; getResult.ListOfferDiv = listOfferDiv; getResult.ListOffers = listOffers; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminGiftListDao adminGiftListDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminGiftListDao = new AdminGiftListDao(); // Get data var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, true, false); var listGiftStatus = mCodeCom.GetListCode(Logics.GROUP_GIFT_STATUS, null, true, false); var listGifts = adminGiftListDao.GetListGifts(); // Set value getResult.ListGiftStatus = listGiftStatus; getResult.ListDeleteFlag = listDeleteFlag; getResult.ListGifts = listGifts; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminBrandEntryDao adminBrandEntryDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminBrandEntryDao = new AdminBrandEntryDao(); // Get data var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, false, false); var brand = new Brand(); if (!IsAdd) { brand = adminBrandEntryDao.GetSingleBrand(inputObject.BrandCd); } else { brand.FileId = DataHelper.GetUniqueKey(); } // Set value getResult.ListDeleteFlag = listDeleteFlag; getResult.Brand = brand; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminGroupRoleEntryDao adminGroupRoleEntryDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminGroupRoleEntryDao = new AdminGroupRoleEntryDao(); // Get data var group = adminGroupRoleEntryDao.GetGroup(inputObject.GroupCd); var listRole = mCodeCom.GetListRole(false, false); var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, false, false); // Set value getResult.Group = group; getResult.ListRole = listRole; getResult.ListDeleteFlag = listDeleteFlag; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminOfferEntryDao adminOfferEntryDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminOfferEntryDao = new AdminOfferEntryDao(); // Get sysdate var currentDate = DateTime.Now; // Get data var offerCd = adminOfferEntryDao.GetOfferCd(); var listOfferDiv = mCodeCom.GetListCode(Logics.GROUP_OFFER_DIV, null, false, false); var listBrand = mCodeCom.GetListBrand(false, false); // Set value getResult.OfferCd = offerCd; getResult.StartDate = currentDate; getResult.EndDate = currentDate; getResult.ListOfferDiv = listOfferDiv; getResult.ListBrand = listBrand; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminAcceptListDao adminAcceptListDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminAcceptListDao = new AdminAcceptListDao(); // Get data var listSlipStatus = mCodeCom.GetListCode(Logics.GROUP_SLIP_STATUS, null, true, false); var acceptDateStart = DataHelper.GetFirstDayOfMonth(); var acceptDateEnd = DataHelper.GetLastDayOfMonth(); var listAccepts = adminAcceptListDao.GetListAccepts(); // Set value getResult.ListSlipStatus = listSlipStatus; getResult.AcceptDateStart = acceptDateStart; getResult.AcceptDateEnd = acceptDateEnd; getResult.ListAccepts = listAccepts; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminUserEntryDao adminUserEntryDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminUserEntryDao = new AdminUserEntryDao(); // Get data var listCity = mCodeCom.GetListCity(false, false); var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, false, false); var listGroup = mCodeCom.GetListGroup(false, false); var user = new User(); if (!IsAdd) { user = adminUserEntryDao.GetSingle(inputObject.UserCd); } // Set value getResult.ListCity = listCity; getResult.ListDeleteFlag = listDeleteFlag; getResult.ListGroup = listGroup; getResult.User = user; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminItemEntryDao adminItemEntryDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminItemEntryDao = new AdminItemEntryDao(); // Get data var listCategory = mCodeCom.GetListCategory(false, false); var listAge = mCodeCom.GetListAge(false, false); var listGender = mCodeCom.GetListGender(false, false); var listBrand = mCodeCom.GetListBrand(false, false); var listCountry = mCodeCom.GetListCountry(false, false); var listUnit = mCodeCom.GetListUnit(false, false); var listItemDiv = mCodeCom.GetListCode(Logics.GROUP_ITEM_DIV, null, false, false); var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, false, false); var item = new Item(); if (!IsAdd) { item = adminItemEntryDao.GetSingleItem(inputObject.ItemCd); } else { item.FileId = DataHelper.GetUniqueKey(); } // Set value getResult.ListCategory = listCategory; getResult.ListAge = listAge; getResult.ListGender = listGender; getResult.ListBrand = listBrand; getResult.ListCountry = listCountry; getResult.ListUnit = listUnit; getResult.ListItemDiv = listItemDiv; getResult.ListDeleteFlag = listDeleteFlag; getResult.Item = item; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); // Get data var listCategoryDiv = mCodeCom.GetListCode(Logics.GROUP_CATEGORY_DIV, null, false, false); var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, false, false); // Set value getResult.ListCategoryDiv = listCategoryDiv; getResult.ListDeleteFlag = listDeleteFlag; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private InitDataModel GetInfo(InitDataModel inputObject) { // Local variable declaration InitDataModel getResult = null; MCodeCom mCodeCom = null; AdminItemListDao adminItemListDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminItemListDao = new AdminItemListDao(); // Get data var listCategory = mCodeCom.GetListCategory(true, false); var listAge = mCodeCom.GetListAge(true, false); var listGender = mCodeCom.GetListGender(true, false); var listBrand = mCodeCom.GetListBrand(true, false); var listCountry = mCodeCom.GetListCountry(true, false); var listUnit = mCodeCom.GetListUnit(true, false); var listItemDiv = mCodeCom.GetListCode(Logics.GROUP_ITEM_DIV, null, true, false); var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, true, false); var listItems = adminItemListDao.GetListItems(); // Set value getResult.ListCategory = listCategory; getResult.ListAge = listAge; getResult.ListGender = listGender; getResult.ListBrand = listBrand; getResult.ListCountry = listCountry; getResult.ListUnit = listUnit; getResult.ListItemDiv = listItemDiv; getResult.ListDeleteFlag = listDeleteFlag; getResult.ListItems = listItems; // Return value return(getResult); }
/// <summary> /// Get infomation /// </summary> /// <param name="inputObject">DataModel</param> /// <returns>DataModel</returns> private FilterDataModel GetInfo(FilterDataModel inputObject) { // Local variable declaration FilterDataModel getResult = null; MCodeCom mCodeCom = null; AdminAcceptListDao adminAcceptListDao = null; // Variable initialize getResult = new FilterDataModel(); mCodeCom = new MCodeCom(); adminAcceptListDao = new AdminAcceptListDao(); // Get data var listSlipStatus = mCodeCom.GetListCode(Logics.GROUP_SLIP_STATUS, null, true, false); var listAccepts = adminAcceptListDao.GetListAccepts(inputObject); // Set value getResult.ListSlipStatus = listSlipStatus; getResult.ListAccepts = listAccepts; // Return value return(getResult); }