Exemplo n.º 1
0
        private void InitAccountSetSource()
        {
            IAccountSetFacade _IAccountSetFacade = InstanceFactory.CreateAccountSetFacade();
            List <AccountSet> AccountSetSource   = _IAccountSetFacade.GetAccountSetByCondition(string.Empty);

            listAccountSet.Items.Clear();
            ListItem itemAll = new ListItem(string.Empty, "-1", true);

            listAccountSet.Items.Add(itemAll);
            foreach (AccountSet accountSet in AccountSetSource)
            {
                ListItem item = new ListItem(accountSet.AccountSetName, accountSet.AccountSetID.ToString(), true);
                listAccountSet.Items.Add(item);
            }
        }
Exemplo n.º 2
0
        public void InitView(bool ispostback)
        {
            _ItsView.Message = string.Empty;
            _ItsView.btnGoToSetEmployeeSalaryEvent += btnGoToSetEmployeeSalaryEvent;
            _ItsView.GoToSetEmployeeSalaryPage     += GoToSetEmployeeSalaryPage;
            if (!ispostback)
            {
                _ItsView.SalaryTime = new HrmisUtility().CurrenMonthStartTime().ToShortDateString();

                _ItsView.CompanySource = _ICompanyFacade.GetAllCompanyHaveEmployee(_AccountOperator, HrmisPowers.A606);
                CompanyIndexChange();
                _ItsView.EmployeeTypeSource = EmployeeTypeUtility.GetAllEmployeeTypeEnum();
                _ItsView.AccountSetSource   = _IAccountSetFacade.GetAccountSetByCondition(string.Empty);
            }
            _ItsView.SalaryTimeDisplay = new HrmisUtility().StartMonthByYearMonth(Convert.ToDateTime(_ItsView.SalaryTime)).ToShortDateString() + "---" + new HrmisUtility().EndMonthByYearMonth(Convert.ToDateTime(_ItsView.SalaryTime)).ToShortDateString();
        }
 private void BindGridview(object sender, EventArgs e)
 {
     _IAccountSetListView.AccountSetListDataSource =
         _IAccountSetFacade.GetAccountSetByCondition(_IAccountSetListView.AccountSetName);
 }
Exemplo n.º 4
0
 private void GetData()
 {
     _ItsView.AccountSetSource = _IAccountSetFacade.GetAccountSetByCondition("");
 }