public void InitView(string from, string to) { _IReplaceDutyClassView.Message = string.Empty; _IReplaceDutyClassView.From = from; _IReplaceDutyClassView.To = to; List <DutyClass> dutyClassList = _IPlanDutyFacade.GetDutyClassByCondition(-1, ""); dutyClassList.Add(new DutyClass()); dutyClassList[dutyClassList.Count - 1].DutyClassID = -1; dutyClassList[dutyClassList.Count - 1].DutyClassName = "ÐÝÏ¢"; _IReplaceDutyClassView.DutyClassList = dutyClassList; List <DutyClassReplace> dutyClassReplaceList = new List <DutyClassReplace>(); foreach (DutyClass dutyClass in dutyClassList) { DutyClassReplace dutyClassReplace = new DutyClassReplace(); dutyClassReplace.OldDutyClass = dutyClass; dutyClassReplace.NewDutyClassID = dutyClass.DutyClassID; dutyClassReplaceList.Add(dutyClassReplace); } _IReplaceDutyClassView.DutyClassReplaceList = dutyClassReplaceList; }
public void InitView(bool IsPostBack) { specialDateList = BllInstance.SpecialDateBllInstance.GetAllSpecialDate(_Account); dutyClassList = _IPlanDutyFacade.GetDutyClassByCondition(-1, ""); if (!IsPostBack) { if (specialDateList.Count > 0) { _ItsView.SetPlanDutyView.SpecialDates = specialDateList; } _ItsView.SetPlanDutyView.DutyClassList = dutyClassList; } _ItsView.SetPlanDutyView.SetbtnPlasterPlanDuty = _ItsView.SetPlanDutyView.SessionCopyPlanDutyTable != null; _ItsView.SetPlanDutyView.Message = string.Empty; _ItsView.ReplaceDutyClassView.Message = string.Empty; _ItsView.SetPlanDutyView.PlanDutyNameMessage = string.Empty; _ItsView.SetPlanDutyView.TimeMessage = string.Empty; _ItsView.SetPlanDutyView.PeriodMessage = string.Empty; }