/// <summary> /// 获取药品类型 /// </summary> internal void m_mthGetMedicineTypeSet(out clsMS_MedicineTypeSetVO[] p_objMPVO) { p_objMPVO = null; clsDcl_MedicineTypeSet objMTDomain = new clsDcl_MedicineTypeSet(); long lngRes = objMTDomain.m_lngGetAllMedicinTypeSetInfo(out p_objMPVO); objMTDomain = null; }
/// <summary> /// 获取并添加药品类型设置信息 /// </summary> internal void m_mthGetAllMedicineTypeSetInfo() { clsMS_MedicineTypeSetVO[] objTypeArr = null; long lngRes = m_objDomain.m_lngGetAllMedicinTypeSetInfo(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_intMedicineTypeSetID.ToString()); lsiTemp.SubItems.Add(objTypeArr[iL].m_strMedicineTypeSetName); lstLSI.Add(lsiTemp); } if (lstLSI.Count > 0) { m_objViewer.m_lsvMedicineTypeSet.Items.AddRange(lstLSI.ToArray()); } } }
/// <summary> /// 获取药品类型设置 /// </summary> internal void m_mthGetMedicineTypeSet() { clsMS_MedicineTypeSetVO[] objMPVO = null; clsDcl_MedicineTypeSet objMTDomain = new clsDcl_MedicineTypeSet(); long lngRes = objMTDomain.m_lngGetAllMedicinTypeSetInfo(out objMPVO); objMTDomain = null; if (objMPVO == null || m_objViewer.m_cboType.Items.Count > 0) { return; } clsMS_MedicineTypeSetVO objAll = new clsMS_MedicineTypeSetVO(); objAll.m_intMedicineTypeSetID = 0; objAll.m_strMedicineTypeSetName = "全部"; m_objViewer.m_cboType.Items.Add(objAll); m_objViewer.m_cboType.Items.AddRange(objMPVO); m_objViewer.m_cboType.SelectedIndex = 0; }