Ejemplo n.º 1
0
        /// <summary>
        /// 获取并添加药品基本类型信息

        /// </summary>
        internal void m_mthGetMedicineType()
        {
            clsDcl_MedicineStoreroomSet objMSDomain = new clsDcl_MedicineStoreroomSet();

            clsMS_MedicineType_VO[] objTypeArr = null;
            long lngRes = objMSDomain.m_lngGetMedicineInfo(out objTypeArr);

            if (objTypeArr != null && objTypeArr.Length > 0)
            {
                List <System.Windows.Forms.ListViewItem> lstLSI  = new List <System.Windows.Forms.ListViewItem>();
                System.Windows.Forms.ListViewItem        lsiTemp = null;
                for (int iL = 0; iL < objTypeArr.Length; iL++)
                {
                    lsiTemp     = new System.Windows.Forms.ListViewItem(objTypeArr[iL].m_strMedicineTypeName_VCHR);
                    lsiTemp.Tag = objTypeArr[iL].m_strMedicineTypeID_CHR;
                    lstLSI.Add(lsiTemp);
                }

                if (lstLSI.Count > 0)
                {
                    m_objViewer.m_lsvMedicineName.Items.AddRange(lstLSI.ToArray());
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取药品类型信息.
 /// </summary>
 /// <param name="m_objMedicineTypeArr">返回结果.</param>
 internal void m_mthGetMedicineTypeInfo(out clsMS_MedicineType_VO[] m_objMedicineTypeArr)
 {
     m_objDomain.m_lngGetMedicineInfo(out m_objMedicineTypeArr);
 }