/// <summary> /// Make ViewModel for AssignmentByUser /// </summary> /// <returns>Assignment By User View Model</returns> private AssignmentByUserViewModel MakeAssignmentByUserViewModel() { var model = new AssignmentByUserViewModel(); var currentUser = GetLoginUser(); model.EFFORT_LIST = MakeCmbEffort(); model.GROUP_LIST = this._commonService.GetUserGroupSelectList(currentUser.CompanyCode); model.Condition = new UserCondition(); model.STATUS_LIST = this._commonService.GetStatusSelectList(currentUser.CompanyCode); model.Condition.GROUP_ID = currentUser.GroupId; model.BRANCH_LIST = this._commonService.GetBranchSelectList(currentUser.CompanyCode); return(model); }
/// <summary> /// Make ViewModel for AssignmentByUser /// </summary> /// <returns>Assignment By User View Model</returns> private AssignmentByUserViewModel UnitPriceInforViewModel() { var model = new AssignmentByUserViewModel(); var currentUser = GetLoginUser(); model.EFFORT_LIST = MakeCmbEffort(); model.GROUP_LIST = this._commonService.GetUserGroupSelectList(currentUser.CompanyCode); model.Condition = new UserCondition(); var d = Utility.GetCurrentDateTime(); var endDate = new DateTime(d.Year, d.Month, 15, 0, 0, 0); var startDate = endDate.AddMonths(-5); model.Condition.END_DATE = endDate.Year.ToString() + "/" + endDate.Month.ToString(); model.Condition.START_DATE = startDate.Year.ToString() + "/" + startDate.Month.ToString(); model.STATUS_LIST = this._commonService.GetStatusSelectList(currentUser.CompanyCode); model.Condition.GROUP_ID = currentUser.GroupId; model.BRANCH_LIST = this._commonService.GetBranchSelectList(currentUser.CompanyCode); return(model); }