Exemple #1
0
        /// <summary>
        /// 科室编号双击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void uTxt_DtpCode_DoubleClick(object sender, EventArgs e)
        {
            FrmClinicarDpt frmClinicarDpt = new FrmClinicarDpt();

            frmClinicarDpt.StartPosition  = FormStartPosition.CenterScreen;
            frmClinicarDpt.operationPower = false;
            frmClinicarDpt.ShowDialog();
            if (frmClinicarDpt.DialogResult == DialogResult.OK)
            {
                uTxt_DtpCode.Text = frmClinicarDpt.F_StringCode;
                uTxt_DtpName.Text = frmClinicarDpt.F_StringName;
            }
        }
Exemple #2
0
 private void uTxt_deptCode_DoubleClick(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(uTxt_hospitalcode.Text) && !"双击选择医院".Equals(uTxt_hospitalcode.Text))
     {
         FrmClinicarDpt frmClinicarDpt = new FrmClinicarDpt();
         frmClinicarDpt.StartPosition  = FormStartPosition.CenterScreen;
         frmClinicarDpt.hospitalcod    = uTxt_hospitalcode.Text;
         frmClinicarDpt.operationPower = false;
         frmClinicarDpt.ShowDialog();
         if (frmClinicarDpt.DialogResult == DialogResult.OK)
         {
             uTxt_deptCode.Text = frmClinicarDpt.F_StringCode;
             uTxt_deptName.Text = frmClinicarDpt.F_StringName;
         }
     }
     else
     {
         MessageBox.Show("请先选择医院!");
         return;
     }
 }