示例#1
0
        private long m_lngDeptAddEmployeeSub()
        {
            clsDept_Employee objDept = new clsDept_Employee();

            objDept.m_dtmModifyDate = DateTime.Parse(new clsPublicDomain().m_strGetServerTime());
            objDept.m_dtmEndDate    = DateTime.Parse("1900-1-1- 00:00:00");

            objDept.m_strDeptID     = clsSystemContext.s_ObjCurrentContext.m_ObjDepartment.m_StrDeptID;
            objDept.m_strEmployeeID = m_txtEmployeeID.Text;

            long lngRes = 1;

            lngRes = m_objHandlerDomain.m_lngAssignDept_Employee2(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, objDept, m_strRoleName);
            if (lngRes <= 0)
            {
                clsPublicFunction.ShowInformationMessageBox("无法调入员工。");
                return(lngRes);
            }

            #region 添加员工常用值
            clsDocAndNur obj = new clsDocAndNur();
            obj.m_intFlag         = m_intFlag;
            obj.m_strDeptID       = clsSystemContext.s_ObjCurrentContext.m_ObjDepartment.m_StrDeptID;
            obj.m_strEmployeeID   = m_txtEmployeeID.Text.Trim();
            obj.m_strEmployeeName = m_txtEmployeeName.Text.Trim();
            m_mthAddOrRemoveCommonEmployeesInDept(true, obj);
            #endregion

            return(1);
        }
示例#2
0
        private long m_lngEmployeeDeleteDeptSub()
        {
            clsDept_Employee objDept = new clsDept_Employee();

            objDept.m_dtmEndDate    = DateTime.Parse(new clsPublicDomain().m_strGetServerTime());
            objDept.m_strDeptID     = clsSystemContext.s_ObjCurrentContext.m_ObjDepartment.m_StrDeptID;
            objDept.m_strEmployeeID = m_lsvCurDeptEmployees.SelectedItems[0].SubItems[0].Text;
            return(m_objHandlerDomain.m_lngDeleteDept_Employee(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, objDept));
        }