private void Init() { OverWork OverWork = _IOverWork.GetOverWorkByOverWorkID(_View.ApplicationID); _View.EmployeeName = OverWork.Account.Name; _View.EmployeeID = OverWork.Account.Id; _View.TimeSpan = OverWork.FromDate + " ~ " + OverWork.ToDate; _View.CostTime = OverWork.CostTime.ToString(); _View.OutLocation = OverWork.ProjectName; _View.OperationType = OperationType.Cancel; _View.ApproveStatusSource = RequestUtility.GetCancelChose(); _View.Reason = OverWork.Reason; _View.ApplicationItemList = OverWork.Item; }
private void Init() { OutApplication outApplication = _IOutApplication.GetOutApplicationByOutApplicationID(_View.ApplicationID); _View.EmployeeName = outApplication.Account.Name; _View.EmployeeID = outApplication.Account.Id; _View.TimeSpan = outApplication.FromDate + " ~ " + outApplication.ToDate; _View.CostTime = outApplication.CostTime.ToString(); _View.OutLocation = outApplication.OutLocation; _View.OperationType = OperationType.Cancel; _View.ApproveStatusSource = RequestUtility.GetCancelChose(); _View.Reason = outApplication.Reason; _View.ApplicationItemList = outApplication.Item; _View.OutType = outApplication.OutType; }
private void GetDataSource() { _View.StatusSource = RequestUtility.GetCancelChose(); }