Пример #1
0
        //删除检验类别
        public long DelCheckCategory(string strCategory)
        {
            long lngRes = 0;

            System.Security.Principal.IPrincipal p_objPrincipal = null;
            com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc objCheckItemSvc =
                (com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc));
            lngRes = objCheckItemSvc.m_lngDelCheckCategory(p_objPrincipal, strCategory);
            return(lngRes);
        }
Пример #2
0
        //新增检验类别
        public long AddCheckCategory(string strCheckCategory, out string strCategoryID)
        {
            long lngRes = 0;

            System.Security.Principal.IPrincipal p_objPrincipal = null;
            com.digitalwave.iCare.ValueObject.clsCheckCategory_VO objCheckCategoryVO = new com.digitalwave.iCare.ValueObject.clsCheckCategory_VO();
            objCheckCategoryVO.m_strCheck_Category_Name = strCheckCategory;
            com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc objCheckItemSvc =
                (com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc));
            lngRes        = objCheckItemSvc.m_lngAddCheckCategory(p_objPrincipal, ref objCheckCategoryVO);
            strCategoryID = objCheckCategoryVO.m_strCheck_Category_ID;
            return(lngRes);
        }
Пример #3
0
        //更新选中的检验类别
        public long SetCheckCategory(com.digitalwave.iCare.gui.LIS.frmCheckCategory infrmCheckCategory)
        {
            long lngRes = 0;

            System.Security.Principal.IPrincipal p_objPrincipal = null;
            string strCheckCategory   = infrmCheckCategory.txtCheckCategory.Text.ToString().Trim();
            string strCheckCategoryID = infrmCheckCategory.lsvCheckCategory.SelectedItems[0].SubItems[0].Text.ToString().Trim();

            com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc objCheckItemSvc =
                (com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.LIS.clsCheckItemSvc));
            lngRes = objCheckItemSvc.m_lngSetCheckCategoryInfo(p_objPrincipal, strCheckCategory, strCheckCategoryID);
            if (lngRes > 0)
            {
                MessageBox.Show("记录修改成功", "检验类别", MessageBoxButtons.OK);
                infrmCheckCategory.lsvCheckCategory.SelectedItems[0].SubItems[1].Text = strCheckCategory;
            }
//			objCheckItemSvc.Dispose();
            return(lngRes);
        }