コード例 #1
0
 /// <summary>
 /// 获取药品字典最小元素集
 /// </summary>
 internal void m_mthGetMedicineInfo()
 {
     if (m_objViewer.m_cbbDrugType.SelectedIndex != -1)
     {
         clsDcl_MedicineLimit objIRDomain = new clsDcl_MedicineLimit();
         long lngRes = objIRDomain.m_lngGetBaseMedicine(string.Empty, m_strMedicineType[m_objViewer.m_cbbDrugType.SelectedIndex], out m_objViewer.m_dtbMedicinDict);
     }
 }
コード例 #2
0
        /// <summary>
        /// 加载药品类型
        /// </summary>
        internal void m_mthShowDrugType()
        {
            m_objViewer.m_cbbDrugType.Items.Clear();
            DataTable dtResult = null;
            int       m_index  = 0;

            string[]             m_strMedicineTypeArr = m_objViewer.m_strDrugType.Split('*');
            clsDcl_MedicineLimit objIRDomain          = new clsDcl_MedicineLimit();
            long lngRes = objIRDomain.m_lngGetMedicineType(out dtResult);

            m_strMedicineType = new string[dtResult.Rows.Count];
            for (int i1 = 0; i1 < dtResult.Rows.Count; i1++)
            {
                if (Array.IndexOf(m_strMedicineTypeArr, dtResult.Rows[i1]["medicinetypeid_chr"]) != -1)
                {
                    m_index = m_objViewer.m_cbbDrugType.Items.Add(dtResult.Rows[i1]["medicinetypename_vchr"]);
                    m_strMedicineType[m_index] = dtResult.Rows[i1]["medicinetypeid_chr"].ToString();
                }
            }
            if (m_objViewer.m_cbbDrugType.Items.Count > 0)
            {
                m_objViewer.m_cbbDrugType.SelectedIndex = 0;
            }
        }
コード例 #3
0
 /// <summary>
 /// 自动生成请领单控制层构造方法
 /// </summary>
 public clsCtl_MedicineLimit()
 {
     m_objDomain = new clsDcl_MedicineLimit();
 }