コード例 #1
0
        private void EditBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (Sectionlbl.Text == "Nothing")
            {
                MessageBox.Show("Please click on the grid to select Section.", "Insufficient information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            else
            {
                frmSection Sect = new frmSection();
                Sect._theConnection  = TConnections.GetConnectionString(theSystemDBTag, UserCurrentInfo.Connection);
                Sect.PM1lbl.Text     = TMinewasteGlobal.ProdMonthAsString(Convert.ToDateTime(editProdmonth.EditValue)).ToString();
                Sect.PMlbl.Text      = TMinewasteGlobal.ProdMonthAsString(Convert.ToDateTime(editProdmonth.EditValue)).ToString();
                Sect.SecIDTxt.Text   = Sectionlbl.Text;
                Sect.SecNameTxt.Text = Secnamelbl.Text;
                Sect.Heirlbl.Text    = Heirlbl.Text;
                Sect.Reptolbl.Text   = RepTolbl.Text;

                Sect.SecIDTxt.Enabled = false;

                Sect.ShowDialog();

                LoadSections();
            }
        }
コード例 #2
0
        /// <summary>
        /// 添加执行病区
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnExecSickAeras_Click(object sender, EventArgs e)
        {
            frmSection sec = new frmSection(1);

            if (txtExecSickAeras.Tag != null && txtExecSickAeras.Tag.ToString() != "")
            {
                sec.SetSelected(txtExecSickAeras.Tag.ToString());
            }
            sec.ShowDialog();
            txtExecSickAeras.Text = sec.GetNames();
            txtExecSickAeras.Tag  = sec.GetIds();
        }
コード例 #3
0
        private void AddBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmSection Sect = new frmSection();

            Sect._theConnection = TConnections.GetConnectionString(theSystemDBTag, UserCurrentInfo.Connection);
            Sect.PM1lbl.Text    = TMinewasteGlobal.ProdMonthAsString(Convert.ToDateTime(editProdmonth.EditValue)).ToString();
            Sect.PMlbl.Text     = TMinewasteGlobal.ProdMonthAsString(Convert.ToDateTime(editProdmonth.EditValue)).ToString();

            Sect.ShowDialog();

            LoadSections();
        }
コード例 #4
0
        /// <summary>
        /// 管辖科室
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSectionAdd_Click(object sender, EventArgs e)
        {
            frmSection us = new frmSection(0);

            if (txtSection.Tag != null && txtSection.Tag.ToString() != "")
            {
                us.SetSelected((string)txtSection.Tag);
            }
            us.ShowDialog();
            txtSection.Text = us.GetNames();
            txtSection.Tag  = us.GetIds();
        }