Beispiel #1
0
        /// <summary>
        /// 检查是否有药库管理权限
        /// </summary>
        /// <param name="strEmpID">员工ID</param>
        /// <param name="p_blnHasRole">是否有权限</param>
        internal void m_mthCheckHasAdminRole(string strEmpID, out bool p_blnHasRole)
        {
            clsDcl_Purchase objPDomain = new clsDcl_Purchase();
            long            lngRes     = objPDomain.m_lngCheckEmpHasRole(strEmpID, out p_blnHasRole);

            objPDomain = null;
        }
Beispiel #2
0
        /// <summary>
        /// 获取药品制剂类型
        /// </summary>
        internal void m_mthGetMedicinePreptype()
        {
            com.digitalwave.iCare.ValueObject.clsMEDICINEPREPTYPE_VO[] objMPVO = null;
            clsDcl_Purchase objPDomain = new clsDcl_Purchase();
            long            lngRes     = objPDomain.m_lngGetMedicinePreptype(out objMPVO);

            if (objMPVO != null && objMPVO.Length > 0)
            {
                m_objViewer.m_cboMediciePreptype.Items.Clear();
                com.digitalwave.iCare.ValueObject.clsMEDICINEPREPTYPE_VO objAll = new com.digitalwave.iCare.ValueObject.clsMEDICINEPREPTYPE_VO();
                objAll.m_intFLAGA_INT                 = 0;
                objAll.m_strMEDICINEPREPTYPE_CHR      = string.Empty;
                objAll.m_strMEDICINEPREPTYPENAME_VCHR = "全部";
                m_objViewer.m_cboMediciePreptype.Items.Add(objAll);
                m_objViewer.m_cboMediciePreptype.Items.AddRange(objMPVO);
            }

            //填充药品分类ListView
            com.digitalwave.iCare.ValueObject.clsMedicineType_VO[] objResultArr = null;
            lngRes = objPDomain.m_lngGetMedType(out objResultArr);
            if (objResultArr != null && objResultArr.Length > 0)
            {
                ListViewItem itemTmp = null;
                foreach (com.digitalwave.iCare.ValueObject.clsMedicineType_VO obj in objResultArr)
                {
                    itemTmp = new ListViewItem();
                    itemTmp.SubItems.Add(obj.m_strMedicineTypeName);
                    itemTmp.Tag = obj.m_strMedicineTypeID;
                    m_objViewer.lsvMedType.Items.Add(itemTmp);
                }
            }
            m_objViewer.lsvMedType.Visible = false;
        }
        /// <summary>
        /// 获取仓库可见药品类型
        /// </summary>
        internal void m_mthGetMedicineType()
        {
            com.digitalwave.iCare.ValueObject.clsMS_MedicineType_VO[] objMTVO = null;
            clsDcl_Purchase objPDomain = new clsDcl_Purchase();
            long            lngRes     = objPDomain.m_lngGetStorageMedicineType(m_objViewer.m_strStorageID, out objMTVO);

            objPDomain = null;

            if (objMTVO != null && objMTVO.Length > 0)
            {
                m_objViewer.m_cboMedicineType.Items.Clear();
                com.digitalwave.iCare.ValueObject.clsMS_MedicineType_VO objAll = new com.digitalwave.iCare.ValueObject.clsMS_MedicineType_VO();
                objAll.m_strMedicineTypeID_CHR    = string.Empty;
                objAll.m_strMedicineTypeName_VCHR = "全部";
                m_objViewer.m_cboMedicineType.Items.Add(objAll);
                m_objViewer.m_cboMedicineType.Items.AddRange(objMTVO);
            }
        }
        /// <summary>
        /// 获取药品制剂类型
        /// </summary>
        internal void m_mthGetMedicinePreptype()
        {
            com.digitalwave.iCare.ValueObject.clsMEDICINEPREPTYPE_VO[] objMPVO = null;
            clsDcl_Purchase objPDomain = new clsDcl_Purchase();
            long            lngRes     = objPDomain.m_lngGetMedicinePreptype(out objMPVO);

            objPDomain = null;

            if (objMPVO != null && objMPVO.Length > 0)
            {
                m_objViewer.m_cboMediciePreptype.Items.Clear();
                com.digitalwave.iCare.ValueObject.clsMEDICINEPREPTYPE_VO objAll = new com.digitalwave.iCare.ValueObject.clsMEDICINEPREPTYPE_VO();
                objAll.m_intFLAGA_INT                 = 0;
                objAll.m_strMEDICINEPREPTYPE_CHR      = string.Empty;
                objAll.m_strMEDICINEPREPTYPENAME_VCHR = "全部";
                m_objViewer.m_cboMediciePreptype.Items.Add(objAll);
                m_objViewer.m_cboMediciePreptype.Items.AddRange(objMPVO);
            }
        }