/// <summary> /// Execute convert ouput. /// </summary> /// <param name="resultObject">DataModel</param> /// <returns>ResponseModel</returns> private InitResponseModel Convert(InitDataModel resultObject) { // Local variable declaration InitResponseModel response = null; OutputDetailsModel details = null; // Variable initialize response = new InitResponseModel(); details = new OutputDetailsModel(); // Get value details.CategoryDiv = DataHelper.ToString(resultObject.CategoryDiv); details.DeleteFlag = DataHelper.ToString(resultObject.DeleteFlag); var cbCategoryDiv = MCodeCom.ToComboItems(resultObject.ListCategoryDiv, details.CategoryDiv); details.ListCategoryDiv = cbCategoryDiv.ListItems; details.CategoryDiv = cbCategoryDiv.SeletedValue; var cbDeleteFlag = MCodeCom.ToComboItems(resultObject.ListDeleteFlag, details.DeleteFlag); details.ListDeleteFlag = cbDeleteFlag.ListItems; details.DeleteFlag = cbDeleteFlag.SeletedValue; // Set value response.Details = new List<OutputDetailsModel>() { details }; // Return value return response; }
/// <summary> /// Execute processing. /// </summary> /// <param name="request">RequestModel</param> /// <returns>ResponseModel</returns> private InitResponseModel Execute(InitRequestModel request) { // Local variable declaration InitResponseModel response = null; InitDataModel inputObject = null; InitDataModel resultObject = null; // Variable initialize response = new InitResponseModel(); // Execute convert input. inputObject = Convert(request); // Check processing Check(inputObject); // Get infomation resultObject = GetInfo(inputObject); // Execute convert ouput. response = Convert(resultObject); return response; }