Пример #1
0
        private void frmPeriodTotailReport_Load(object sender, EventArgs e)
        {
            m_mthGetPeriodList();

            clsMedStore_VO[] objItems = new clsMedStore_VO[0];
            long             lngRes   = 0;
            clsDomainControlMedStoreBseInfo manage = new clsDomainControlMedStoreBseInfo();

            lngRes = manage.m_lngGetMedStoreList(out objItems);
            if (objItems.Length > 0)
            {
                for (int i1 = 0; i1 < objItems.Length; i1++)
                {
                    exComboBox1.Item.Add(objItems[i1].m_strMedStoreName, objItems[i1].m_strMedStoreID);
                }
            }
            this.exComboBox1.SelectedIndex = 1;
        }
Пример #2
0
        /// <summary>
        /// 获得药房
        /// </summary>
        private void m_mthGetMedStore()
        {
            long lngRes;

            clsMedStore_VO[] objMedStorearr           = new clsMedStore_VO[0];
            clsDomainControlMedStoreBseInfo objManage = new clsDomainControlMedStoreBseInfo();

            lngRes = objManage.m_lngGetMedStoreList(out objMedStorearr);

            if (objMedStorearr.Length > 0)
            {
                m_objMedStore = objMedStorearr[0];
                m_objViewer.m_txtMedStore.Text = m_objMedStore.m_strMedStoreName.Trim();
                m_objViewer.m_txtMedStore.Tag  = m_objMedStore;
            }
            else
            {
                m_objViewer.m_txtMedStore.Text = "获得库房出错";
                m_objViewer.m_txtMedStore.Tag  = null;
            }
        }