Exemplo n.º 1
0
        public frmManageDocAndNur()
        {
            InitializeComponent();

            //m_objBorderTool = new clsBorderTool(Color.White);
            //m_objBorderTool.m_mthChangedControlsArrayBorder(new Control[] {lstAllEmployee,lstDoc,lstNur});
            m_objHighLight = new ctlHighLightFocus(clsHRPColor.s_ClrHightLight);
            m_objHighLight.m_mthAddControlInContainer(this);

            m_objDomain = new clsManageDocAndNurDomain();

            #region 初始化listBox
            clsDocAndNur[] objArr = m_objDomain.m_objGetSpecialEmployeeInDept(0);
            if (objArr != null && objArr.Length > 0)
            {
                lstAllEmployee.Items.AddRange(objArr);
            }

            clsDocAndNur[] objArr1 = m_objDomain.m_objGetSpecialEmployeeInDept(1);
            if (objArr1 != null && objArr1.Length > 0)
            {
                lstDoc.Items.AddRange(objArr1);
            }

            clsDocAndNur[] objArr2 = m_objDomain.m_objGetSpecialEmployeeInDept(2);
            if (objArr2 != null && objArr2.Length > 0)
            {
                lstNur.Items.AddRange(objArr2);
            }
            #endregion

            m_arlAddOrRemove = new ArrayList();
            m_arlValue       = new ArrayList();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 添加或删除员工常用值
        /// </summary>
        private void m_mthAddOrRemoveCommonEmployeesInDept(bool p_blnAddOrRemove, clsDocAndNur p_objValue)
        {
            bool[] blnArr = new bool[1] {
                p_blnAddOrRemove
            };
            clsDocAndNur[] objArr = new clsDocAndNur[1];
            objArr[0] = p_objValue;
            long lngRes = new clsManageDocAndNurDomain().m_lngSave(blnArr, objArr);

            if (lngRes < 0)
            {
                clsPublicFunction.ShowInformationMessageBox(clsHRPMessage.c_strSaveFail);
            }
        }