protected void Page_Load(object sender, EventArgs e) { Account LoginUser = Session[SessionKeys.LOGININFO] as Account; ComeAndLeaveIndexPresenter comeAndLeaveIndexPresenter = new ComeAndLeaveIndexPresenter(this, LoginUser); comeAndLeaveIndexPresenter.InitPresent(IsPostBack); comeAndLeaveIndexPresenter.StatisticsEmployee(null, null); }
override protected void OnInit(EventArgs e) { base.OnInit(e); Account LoginUser = Session[SessionKeys.LOGININFO] as Account; ComeAndLeaveIndexPresenter comeAndLeaveIndexPresenter = new ComeAndLeaveIndexPresenter(this, LoginUser); comeAndLeaveIndexPresenter.InitPresent(false); }