Example #1
0
        private void FormMedicine_Load(object sender, EventArgs e)
        {
            m_SqlManger = new SqlManger(m_app);

            m_dataTable = m_SqlManger.GetMedicaine();

            MakeTree();

            this.ActiveControl = txtName;
        }
Example #2
0
 /// <summary>
 /// 页面加载
 /// edit by 王冀 2012-10-30
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCMedicineDirect_Load(object sender, EventArgs e)
 {
     try
     {
         m_WaitDialog = new WaitDialogForm("创建用户界面……", "请稍等。");
         m_SqlManger  = new SqlManger(m_app);
         MakeTree();
         this.ActiveControl = txtDirectTitle;
         txtFind.Focus();
     }
     catch (Exception ex)
     {
         MyMessageBox.Show(1, ex);
     }
 }
Example #3
0
        /// <summary>
        /// 页面加载
        /// edit 王冀 2012 10 31
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCMedicine_Load(object sender, EventArgs e)
        {
            try
            {
                m_SqlManger = new SqlManger(m_app);

                m_dataTable = m_SqlManger.GetMedicaine();

                MakeTree();

                this.ActiveControl = txtName;
                this.tbQuery.Focus();
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }