Example #1
0
        private void btnDept_Click(object sender, EventArgs e)
        {
            frmAidDeptList fDept = new frmAidDeptList();

            if (fDept.ShowDialog() == DialogResult.OK)
            {
                DeptIDArr = fDept.DeptIDArr;
            }
        }
Example #2
0
 private void m_checkBoxArea_CheckedChanged(object sender, EventArgs e)
 {
     if (this.m_checkBoxArea.Checked == true)
     {
         frmAidDeptList fDept = new frmAidDeptList();
         if (fDept.ShowDialog() == DialogResult.OK)
         {
             m_deptIDArr = fDept.DeptIDArr;
         }
     }
 }
Example #3
0
        private void btnDept_Click(object sender, EventArgs e)
        {
            frmAidDeptList fDept = new frmAidDeptList();

            if (fDept.ShowDialog() == DialogResult.OK)
            {
                this.lstDeptId.Clear();
                foreach (object item in fDept.DeptIDArr)
                {
                    this.lstDeptId.Add(item.ToString());
                }
            }
        }
        private void btnDept_Click(object sender, EventArgs e)
        {
            frmAidDeptList fDept = new frmAidDeptList();

            if (fDept.ShowDialog() == DialogResult.OK)
            {
                if (fDept.DeptIDArr.Count == 0)
                {
                    MessageBox.Show("请选择病区!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                else if (fDept.DeptIDArr.Count > 1)
                {
                    MessageBox.Show("实收明细报表只能选择一个病区进行统计!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }

                DeptIDArr = fDept.DeptIDArr;
                DeptName  = fDept.DeptName;
            }
        }
        /// <summary>
        /// 病区按钮的Click事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void m_btnDept_Click(object sender, EventArgs e)
        {
            frmAidDeptList fDept = new frmAidDeptList();

            if (fDept.ShowDialog() == DialogResult.OK)
            {
                DeptIDArr = fDept.DeptIDArr;
                string strDeptName = fDept.DeptName.Trim();
                int    intIndex    = strDeptName.IndexOf(" ");
                if (intIndex == -1)
                {
                    m_strDeptName = strDeptName;
                }
                else
                {
                    m_strDeptName = strDeptName.Substring(0, intIndex);
                }


                m_dwRep.Modify(@"t_area.text = '科室:" + m_strDeptName + @"'");
            }
        }