public static bool Validation(IVacationBaseView vacationBaseView) { bool validation = true; if (!vacationBaseView.ViewValidation) { validation = false; } if (String.IsNullOrEmpty(vacationBaseView.VacationDayNum)) { vacationBaseView.ValidateDayNum = "年假天数不能为空!"; validation = false; } if (String.IsNullOrEmpty(vacationBaseView.UsedDayNum)) { vacationBaseView.ValidateUsedDayNum = "年假已用天数不能为空!"; validation = false; } if (String.IsNullOrEmpty(vacationBaseView.VacationStartDate)) { vacationBaseView.ValidateStartDate = "年假开始时间不能为空!"; validation = false; } return(validation); }
public VacationInfoListPresenter(IVacationInfoListView view, IVacationBaseView vacationView, bool isPostBack) { _ItsView = view; _VacationBaseView = vacationView; AttachViewEvent(); InitInfoList(isPostBack); InitVacationView(); }
public VacationListPresenter(IVacationBaseListView view, bool isPostBack, Account _operator) { _IVacationBaseListView = view; _IVacationBaseView = view.IVacationBaseView; _Operator = _operator; AttachEvents(); InitVacationList(isPostBack); }
/// <summary> /// ²âÊÔÓà /// </summary> public VacationInfoListPresenter(IVacationInfoListView view, IVacationBaseView vacationView, bool isPostBack, IVacationFacade mockIVacationFacade, IEmployeeAttendanceFacade mockIEmployeeAttendanceFacade) { _IVacationFacade = mockIVacationFacade; _IEmployeeAttendanceFacade = mockIEmployeeAttendanceFacade; _ItsView = view; _VacationBaseView = vacationView; AttachViewEvent(); InitInfoList(isPostBack); InitVacationView(); }
public VacationListPresenter(IVacationBaseListView view, bool isPostBack, Account _operator, IVacationFacade mockGetVacation, IEmployeeAttendanceFacade mockIEmployeeAttendanceFacade) { _IEmployeeAttendanceFacade = mockIEmployeeAttendanceFacade; _IVacationFacade = mockGetVacation; _IVacationBaseListView = view; _IVacationBaseView = view.IVacationBaseView; _Operator = _operator; AttachEvents(); InitVacationList(isPostBack); }
public ShowVacationPresenter(IVacationBaseView view) { _IVacationBaseView = view; }