示例#1
0
        /// <summary>
        /// 公司id变换事件
        /// </summary>
        public void CompanyIndexChange()
        {
            List <Department> deptList = _ICompanyFacade.GetDepartmentByCompanyID(_ItsView.CompanyId);

            _ItsView.DepartmentSource =
                Tools.RemoteUnAuthDeparetment(deptList, AuthType.HRMIS, _AccountOperator, HrmisPowers.A606);
            _ItsView.PositionSource = _ICompanyFacade.GetPositionByCompanyID(_ItsView.CompanyId);
        }
示例#2
0
        private void InitPositionSource(int companyID, ICompanyInvolveFacade _ICompanyFacade)
        {
            List <Position> positionSource = _ICompanyFacade.GetPositionByCompanyID(companyID);

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

            listPossition.Items.Add(itemAll);
            foreach (Position position in positionSource)
            {
                ListItem item = new ListItem(position.Name, position.ParameterID.ToString(), true);
                listPossition.Items.Add(item);
            }
        }