예제 #1
0
        /// <summary>
        /// 双击列表显示对应的附页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dataGvAppendPages_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            try
            {
                string cover_id   = dataGvAppendPages["Id", dataGvAppendPages.CurrentRow.Index].Value.ToString();
                string cover_type = dataGvAppendPages["Cover_type", dataGvAppendPages.CurrentRow.Index].Value.ToString();

                groupPanel7.Controls.Clear();
                if (cover_type == "COVER_APPEND_IN")
                {
                    //住院附页
                    cboType.SelectedIndex = 0;
                    temp_in = new ucCover_Append_In(inPatientInfo.Id.ToString(), cover_id);
                    App.UsControlStyle(temp_in);
                    // temp1.Dock = DockStyle.Fill;
                    temp_in.BackColor = System.Drawing.Color.Transparent;
                    groupPanel7.Controls.Add(temp_in);
                }
                else if (cover_type == "COVER_APPEND_OPER")
                {
                    //手术附页
                    cboType.SelectedIndex = 1;
                    temp_oper             = new ucCover_Append_OPER(inPatientInfo.Id.ToString(), cover_id);
                    //App.UsControlStyle(temp_oper);
                    //temp1.Dock = DockStyle.Fill;
                    temp_oper.BackColor = System.Drawing.Color.Transparent;
                    groupPanel7.Controls.Add(temp_oper);
                }
                else if (cover_type == "COVER_APPEND_ANTIBIOTICS")
                {//抗生素使用患者附页
                    cboType.SelectedIndex = 2;
                    temp_antibiotics      = new ucCover_Append_ANTIBIOTICS(inPatientInfo.Id.ToString(), cover_id);
                    App.UsControlStyle(temp_antibiotics);
                    //temp1.Dock = DockStyle.Fill;
                    temp_antibiotics.BackColor = System.Drawing.Color.Transparent;
                    groupPanel7.Controls.Add(temp_antibiotics);
                }
                else if (cover_type == "COVER_APPEND_GRAVE")
                {//重症医学科病历附页
                    cboType.SelectedIndex = 3;
                    temp_grave            = new ucCover_Append_GRAVE(inPatientInfo.Id.ToString(), cover_id);
                    //App.UsControlStyle(temp_grave);
                    //temp1.Dock = DockStyle.Fill;
                    temp_grave.BackColor = System.Drawing.Color.Transparent;
                    groupPanel7.Controls.Add(temp_grave);
                }
                else if (cover_type == "COVER_APPEND_PS")
                {//压疮和坠床/跌倒附页
                    cboType.SelectedIndex = 4;
                    temp_ps = new ucCover_Append_PS(inPatientInfo.Id.ToString(), cover_id);
                    //App.UsControlStyle(temp_grave);
                    //temp1.Dock = DockStyle.Fill;
                    temp_ps.BackColor = System.Drawing.Color.Transparent;
                    groupPanel7.Controls.Add(temp_ps);
                }
                else if (cover_type == "COVER_APPEND_DROP")
                {//压疮和坠床/跌倒附页
                    cboType.SelectedIndex = 5;
                    temp_drop             = new ucCover_Append_DROP(inPatientInfo.Id.ToString(), cover_id);
                    //App.UsControlStyle(temp_grave);
                    //temp1.Dock = DockStyle.Fill;
                    temp_drop.BackColor = System.Drawing.Color.Transparent;
                    groupPanel7.Controls.Add(temp_drop);
                }
            }
            catch
            {
                App.MsgWaring("请先选择要操作的记录!");
            }
        }
예제 #2
0
 /// <summary>
 /// 添加附页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAddAppendPage_Click(object sender, EventArgs e)
 {
     groupPanel7.Controls.Clear();
     if (cboType.SelectedIndex == 0)
     {
         if (GetSelectItemId("COVER_APPEND_IN", inPatientInfo.Id.ToString()) == false)
         {
             //住院附页
             temp_in = new ucCover_Append_In(inPatientInfo.Id.ToString());
             App.UsControlStyle(temp_in);
             // temp1.Dock = DockStyle.Fill;
             temp_in.BackColor = System.Drawing.Color.Transparent;
             groupPanel7.Controls.Add(temp_in);
         }
     }
     else if (cboType.SelectedIndex == 1)
     {
         //手术附页
         temp_oper = new ucCover_Append_OPER(inPatientInfo.Id.ToString());
         App.UsControlStyle(temp_oper);
         //temp1.Dock = DockStyle.Fill;
         temp_oper.BackColor = System.Drawing.Color.Transparent;
         groupPanel7.Controls.Add(temp_oper);
     }
     else if (cboType.SelectedIndex == 2)
     {//抗生素使用患者附页
      //if (GetSelectItemId("COVER_APPEND_ANTIBIOTICS", inPatientInfo.Id.ToString()) == false)
      //{
         temp_antibiotics = new ucCover_Append_ANTIBIOTICS(inPatientInfo.Id.ToString());
         App.UsControlStyle(temp_antibiotics);
         temp_antibiotics.BackColor = System.Drawing.Color.Transparent;
         groupPanel7.Controls.Add(temp_antibiotics);
         //}
     }
     else if (cboType.SelectedIndex == 3)
     {//重症医学科病历附页
         temp_grave = new ucCover_Append_GRAVE(inPatientInfo.Id.ToString());
         App.UsControlStyle(temp_grave);
         temp_grave.BackColor = System.Drawing.Color.Transparent;
         groupPanel7.Controls.Add(temp_grave);
     }
     else if (cboType.SelectedIndex == 4)
     {//压疮与坠床/跌倒附页
         if (GetSelectItemId("COVER_APPEND_PS", inPatientInfo.Id.ToString()) == false)
         {
             temp_ps = new ucCover_Append_PS(inPatientInfo.Id.ToString());
             App.UsControlStyle(temp_ps);
             temp_ps.BackColor = System.Drawing.Color.Transparent;
             groupPanel7.Controls.Add(temp_ps);
         }
     }
     else if (cboType.SelectedIndex == 5)
     {//坠床/跌倒附页
         if (GetSelectItemId("COVER_APPEND_DROP", inPatientInfo.Id.ToString()) == false)
         {
             temp_drop = new ucCover_Append_DROP(inPatientInfo.Id.ToString());
             App.UsControlStyle(temp_drop);
             temp_drop.BackColor = System.Drawing.Color.Transparent;
             groupPanel7.Controls.Add(temp_drop);
         }
     }
 }