/// <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; AdminUserListDao adminUserListDao = null; // Variable initialize getResult = new InitDataModel(); mCodeCom = new MCodeCom(); adminUserListDao = new AdminUserListDao(); // Get data var listCity = mCodeCom.GetListCity(true, false); var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, true, false); var listGroup = mCodeCom.GetListGroup(true, false); var listUsers = adminUserListDao.GetListUsers(); // Set value getResult.ListCity = listCity; getResult.ListDeleteFlag = listDeleteFlag; getResult.ListGroup = listGroup; getResult.ListUsers = listUsers; // 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); }