/// <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 var group = resultObject.Group; details.GroupCd = DataHelper.ToString(group.GroupCd); details.GroupName = DataHelper.ToString(group.GroupName); details.RoleCd = DataHelper.ToString(resultObject.RoleCd); details.DeleteFlag = DataHelper.ToString(resultObject.DeleteFlag); var cbRole = MCodeCom.ToComboItems(resultObject.ListRole, details.RoleCd); details.ListRole = cbRole.ListItems; details.RoleCd = cbRole.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; }