public void BindCompany()
        {
            List <Department> deptList = new List <Department>();

            deptList.Add(new Department(-1, "全部"));
            deptList.AddRange(_ICompanyInvolveFacade.GetAllCompanyHaveEmployee(_Operator, HrmisPowers.A607));
            _IStatisticsConditionView.CompanyList = deptList;
        }
Exemple #2
0
        private void GetData()
        {
            List <Department> deptList = _IDepartmentBll.GetAllDepartment();

            _View.DepartmentSource =
                Tools.RemoteUnAuthDeparetment(deptList, AuthType.HRMIS, _Operator, HrmisPowers.A605);
            _View.PositionSource     = _IPositionBll.GetAllPosition();
            _View.EmployeeTypeSource = EmployeeTypeUtility.GetAllEmployeeTypeEnum();
            _View.EmployeeType       = EmployeeTypeEnum.All;
            _View.CompanySource      = _ICompanyFacade.GetAllCompanyHaveEmployee(_Operator, HrmisPowers.A605);
        }
Exemple #3
0
 public override void Initialize(bool isPostBack)
 {
     AttachViewEvent();
     if (!isPostBack)
     {
         _View.SearchReimburseView.ReimburseStatus = GetReimburseStatusEnum();
         _View.SearchReimburseView.ReimburseCategoriesEnumDataSrc = ReimburseCategoriesEnum.GetAll();
         //_IGetDepartment = new GetDepartment();
         List <Department> departmentList = BllInstance.DepartmentBllInstance.GetAllDepartment();
         _View.SearchReimburseView.DepartmentSource = Tools.RemoteUnAuthDeparetment(departmentList, AuthType.HRMIS, _LoginUser, HrmisPowers.A901);
         _View.SearchReimburseView.CompanySource    = _ICompanyInvolveFacade.GetAllCompanyHaveEmployee();
         BindReimburse(null, null);
     }
 }
Exemple #4
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();
        }
Exemple #5
0
 public override void Initialize(bool isPostBack)
 {
     AttachViewEvent();
     if (!isPostBack)
     {
         _View.ReimburseCategoriesEnumDataSrc = ReimburseCategoriesEnum.GetAll();
         List <Department> deptList = _IDepartmentBll.GetAllDepartment();
         _View.DepartmentSource =
             Tools.RemoteUnAuthDeparetment(deptList, AuthType.HRMIS, _LoginUser, HrmisPowers.A902);
         _View.CompanySource   = _ICompanyInvolveFacade.GetAllCompanyHaveEmployee();
         _View.BillingTimeFrom = DateTime.Now.Year + "-" + DateTime.Now.Month + "-1";
         _View.BillingTimeTo   =
             Convert.ToDateTime(DateTime.Now.Year + "-" + DateTime.Now.Month + "-1").AddMonths(1).AddDays(-1).
             ToShortDateString();
         BindReimburse(null, null);
     }
 }