Beispiel #1
0
        public long m_lngGetAllCommonUseValue(string p_strCommonUseTypeID, out clsCommonUseValue[] p_objCommonUseValueArr)
        {
            p_objCommonUseValueArr = null;

            DataTable dtbResult;

            clsCommonUseServ m_objServ =
                (clsCommonUseServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsCommonUseServ));

            long lngRes = 0;

            try
            {
                lngRes = m_objServ.m_lngGetAllCommonUseValue(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strCommonUseTypeID, clsSystemContext.s_ObjCurrentContext.m_ObjDepartment.m_StrDeptID, out dtbResult);
                if (lngRes >= 0 && dtbResult != null && dtbResult.Rows.Count > 0)
                {
                    p_objCommonUseValueArr = new clsCommonUseValue[dtbResult.Rows.Count];
                    for (int i = 0; i < dtbResult.Rows.Count; i++)
                    {
                        p_objCommonUseValueArr[i]                     = new clsCommonUseValue();
                        p_objCommonUseValueArr[i].m_strTypeID         = p_strCommonUseTypeID;
                        p_objCommonUseValueArr[i].m_strCommonUseValue = dtbResult.Rows[i][0].ToString();
                    }
                }
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(lngRes);
        }
Beispiel #2
0
        /// <summary>
        /// 删除记录
        /// </summary>
        /// <param name="p_objPrincipal"></param>
        /// <param name="p_objRecordContent"></param>
        /// <returns></returns>
        public long m_lngDeleteRecord2DB(clsCommonUseValue p_objRecordContent)
        {
            clsCommonUseServ m_objServ =
                (clsCommonUseServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsCommonUseServ));

            long lngRes = 0;

            try
            {
                lngRes = m_objServ.m_lngDeleteRecord2DB(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objRecordContent);
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(lngRes);
        }