Parcourir la source

医保事前事中业务优化

837390164@qq.com il y a 1 semaine
Parent
commit
55515ed0c3

+ 4 - 5
Business/HisMainBusiness.cs

@@ -1559,17 +1559,16 @@ namespace PTMedicalInsurance.Business
             }
             #endregion
 
-            #region 事中分析
-            string errMsg;
+            #region 【事中分析】      
             if (Global.curEvt.ext.isOpenAnalysis)
             {
-                if (InProcessAnalysis(out errMsg) != 0)
+                string outMsg;
+                if (InProcessAnalysis(out outMsg) != 0)
                 {
-                    outParam = JsonHelper.setExceptionJson(-1, "InProcessAnalysis", errMsg).ToString();
+                    outParam = "【3102】医保明细审核事中分析服务调用失败:" + outMsg;
                     return -1;
                 }
             }
-
             #endregion
 
             #region 出院登记

+ 92 - 19
Business/PreAndInProcessAnalysis.cs

@@ -1,14 +1,15 @@
 using Newtonsoft.Json.Linq;
-using PTMedicalInsurance.Common;
 using PTMedicalInsurance.Helper;
 using PTMedicalInsurance.Variables;
 using System;
 using System.Collections.Generic;
+using System.Globalization;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 
+
 namespace PTMedicalInsurance.Business
 {
     class PreAndInProcessAnalysis
@@ -29,7 +30,6 @@ namespace PTMedicalInsurance.Business
                 JObject jo = JObject.Parse(inpar);
                 JObject joResult = JObject.FromObject(jo["result"]);
                 patient_dtos = JArray.FromObject(joResult["patient_dtos"]);
-
                 fsi_encounter_dtos = JArray.FromObject(patient_dtos[0]["fsi_encounter_dtos"]);
                 fsi_diagnose_dtos = JArray.FromObject(fsi_encounter_dtos[0]["fsi_diagnose_dtos"]);
                 fsi_order_dtos = JArray.FromObject(fsi_encounter_dtos[0]["fsi_order_dtos"]);
@@ -76,10 +76,11 @@ namespace PTMedicalInsurance.Business
         {
             try
             {
+                JArray ruleIds = new JArray();
                 JObject joInpar = new JObject();
-                joInpar.Add("syscode", "YBJK");
+                joInpar.Add("syscode", "ims");
                 joInpar.Add("patient_dtos", GetPatient_dtos(trig_scen, p));
-                joInpar.Add("rule_ids", "");
+                joInpar.Add("rule_ids", ruleIds);
                 joInpar.Add("task_id", GetMsgID());
                 joInpar.Add("trig_scen", trig_scen);
                 JObject joData = new JObject();
@@ -113,12 +114,12 @@ namespace PTMedicalInsurance.Business
                 string gend = p.gend;
                 if (gend == "男") gend = "1";
                 if (gend == "女") gend = "2";
-                joInpar.Add("gend",gend);
+                joInpar.Add("gend", gend);
                 joInpar.Add("brdy", p.brdy);
-                if (p.insuplc_admdvs == "") p.insuplc_admdvs = Global.pat.insuplc_admdvs;
+                if (string.IsNullOrEmpty(p.insuplc_admdvs)) p.insuplc_admdvs = Global.pat.insuplc_admdvs;
                 joInpar.Add("poolarea", p.insuplc_admdvs);
                 joInpar.Add("curr_mdtrt_id", curr_mdtrt_id);
-                joInpar.Add("fsi_encounter_dtos", GetFsi_encounter_dtos(trig_scen,p));
+                joInpar.Add("fsi_encounter_dtos", GetFsi_encounter_dtos(trig_scen, p));
                 joInpar.Add("fsi_his_data_dto", new JArray());
                 JArray ja = new JArray();
                 ja.Add(joInpar);
@@ -136,7 +137,7 @@ namespace PTMedicalInsurance.Business
             try
             {
                 JObject jofsi_encounter_dtos = JObject.FromObject(fsi_encounter_dtos[0]);
-                JObject joInpar = new JObject(); 
+                JObject joInpar = new JObject();
                 string mdtrtID = p.mdtrtID;
                 if (string.IsNullOrEmpty(mdtrtID)) mdtrtID = Global.pat.adm_Dr.ToString();
                 joInpar.Add("mdtrt_id", mdtrtID);  //就诊标识
@@ -144,7 +145,7 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("medins_name", Global.inf.hospitalName);  //医疗机构名称
                 joInpar.Add("medins_admdvs", Global.inf.areaCode);  //医疗机构行政区划编码
                 joInpar.Add("medins_type", "A");  //医疗服务机构类型
-                joInpar.Add("medins_lv", "04");  //医疗机构等级
+                joInpar.Add("medins_lv", "03");  //医疗机构等级
                 joInpar.Add("wardarea_codg", JsonHelper.getDestValue(jofsi_encounter_dtos, "wardarea_codg"));  //病区标识
                 joInpar.Add("wardno", JsonHelper.getDestValue(jofsi_encounter_dtos, "wardno"));  //病房号
                 joInpar.Add("bedno", JsonHelper.getDestValue(jofsi_encounter_dtos, "bedno"));  //病床号
@@ -152,7 +153,7 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("dscg_date", JsonHelper.getDestValue(jofsi_encounter_dtos, "dscg_date"));  //出院日期
                 joInpar.Add("dscg_main_dise_codg", JsonHelper.getDestValue(jofsi_encounter_dtos, "dscg_main_dise_codg"));  //主诊断编码
                 joInpar.Add("dscg_main_dise_name", JsonHelper.getDestValue(jofsi_encounter_dtos, "dscg_main_dise_name"));  //主诊断名称
-                joInpar.Add("fsi_diagnose_dtos", GetFsi_diagnose__dtos(trig_scen, p));  //诊断信息DTO
+                joInpar.Add("fsi_diagnose_dtos", GetFsi_diagnose_dtos(trig_scen, p));  //诊断信息DTO
                 joInpar.Add("dr_codg", JsonHelper.getDestValue(jofsi_encounter_dtos, "dr_codg"));  //医师标识
                 joInpar.Add("adm_dept_codg", JsonHelper.getDestValue(jofsi_encounter_dtos, "adm_dept_codg"));  //入院科室标识
                 joInpar.Add("adm_dept_name", JsonHelper.getDestValue(jofsi_encounter_dtos, "adm_dept_name"));  //入院科室名称
@@ -161,10 +162,10 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("med_mdtrt_type", JsonHelper.getDestValue(jofsi_encounter_dtos, "med_mdtrt_type"));  //就诊类型
                 string med_type = JsonHelper.getDestValue(jofsi_encounter_dtos, "med_type");
                 joInpar.Add("med_type", med_type);  //医疗类别
-                joInpar.Add("fsi_order_dtos", GetFsi__order_dtos(trig_scen,p));  //处方(医嘱)信息
+                joInpar.Add("fsi_order_dtos", GetFsi_order_dtos(trig_scen, p));  //处方(医嘱)信息
                 string matn_stas = JsonHelper.getDestValue(jofsi_encounter_dtos, "matn_stas");
                 if (string.IsNullOrEmpty(matn_stas)) matn_stas = "0";
-                joInpar.Add("matn_stas",matn_stas );  //生育状态
+                joInpar.Add("matn_stas", matn_stas);  //生育状态
                 joInpar.Add("medfee_sumamt", JsonHelper.getDestValue(jofsi_encounter_dtos, "medfee_sumamt"));  //总费用
                 joInpar.Add("ownpay_amt", JsonHelper.getDestValue(jofsi_encounter_dtos, "ownpay_amt"));  //自费金额
                 joInpar.Add("selfpay_amt", JsonHelper.getDestValue(jofsi_encounter_dtos, "selfpay_amt"));  //自付金额
@@ -173,7 +174,7 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("hifp_payamt", JsonHelper.getDestValue(jofsi_encounter_dtos, "hifp_payamt"));  //统筹金支付金额
                 joInpar.Add("setl_totlnum", JsonHelper.getDestValue(jofsi_encounter_dtos, "setl_totlnum"));  //结算总次数
                 string insutype = JsonHelper.getDestValue(jofsi_encounter_dtos, "insutype");
-                if (insutype =="") insutype = Global.pat.insuType;
+                if (insutype == "") insutype = Global.pat.insuType;
                 joInpar.Add("insutype", insutype);  //险种
                 string reimFlag = JsonHelper.getDestValue(jofsi_encounter_dtos, "reim_flag");
                 // 报销标志(必填)
@@ -186,14 +187,14 @@ namespace PTMedicalInsurance.Business
                 string outSetlFlag = JsonHelper.getDestValue(jofsi_encounter_dtos, "out_setl_flag");
                 if (string.IsNullOrEmpty(outSetlFlag))
                 {
-                    outSetlFlag = Utils.isOtherCityPatient()?"1":"0";
+                    outSetlFlag = isOtherCity() ? "1" : "0";
                 }
                 joInpar.Add("out_setl_flag", outSetlFlag);
-                joInpar.Add("fsi_operation_dtos", GetFsi__operation__dtos(trig_scen,p));  //手术操作集合
+                joInpar.Add("fsi_operation_dtos", GetFsi__operation__dtos(trig_scen, p));  //手术操作集合
 
                 JArray ja = new JArray();
                 ja.Add(joInpar);
-                return ja; 
+                return ja;
             }
             catch (Exception ex)
             {
@@ -201,11 +202,57 @@ namespace PTMedicalInsurance.Business
                 return null;
             }
         }
-        public JArray GetFsi_diagnose__dtos(string trig_scen, Patients p)
+
+        public static bool isOtherCity()
+        {
+            return isOtherCity(getAreaCode());
+        }
+        /// <summary>
+        /// 省内异地
+        /// </summary>
+        /// <returns></returns>
+        public static bool isOtherCity(string areaCode)
+        {
+            if (!string.IsNullOrEmpty(areaCode) && areaCode.Length > 4 && areaCode.Substring(0, 4) != Global.inf.areaCode.Substring(0, 4))
+            {
+                return true;
+            }
+            return false;
+        }
+
+        private static string getAreaCode()
+        {
+            string areaCode = Global.pat.insuplc_admdvs ?? Global.inf.areaCode;
+            if (Global.pat.OtherProv == 1)
+            {
+                areaCode = Global.pat.card.SearchAdmCode;
+            }
+            return areaCode;
+        }
+
+        public JArray GetFsi_diagnose_dtos(string trig_scen, Patients p)
         {
             try
             {
-                return fsi_diagnose_dtos;
+                //JArray ja = new JArray();
+                for (int i = 0; i < fsi_diagnose_dtos.Count; i++)
+                {
+                    //JObject jo = new JObject();
+                    //jo.Add("dise_id", fsi_diagnose_dtos[i]["dise_id"].ToString());
+                    //jo.Add("inout_dise_type", fsi_diagnose_dtos[i]["inout_dise_type"].ToString());
+                    //jo.Add("maindise_flag", fsi_diagnose_dtos[i]["maindise_flag"].ToString());
+                    //jo.Add("dias_srt_no", fsi_diagnose_dtos[i]["dias_srt_no"].ToString());
+                    //jo.Add("dise_codg", fsi_diagnose_dtos[i]["dise_codg"].ToString());
+                    //jo.Add("dise_name", fsi_diagnose_dtos[i]["dise_name"].ToString());
+                    //jo.Add("dise_date", fsi_diagnose_dtos[i]["dise_date"].ToString());
+                    //ja.Add(jo);
+
+                    fsi_diagnose_dtos[i]["inout_dise_type"] = fsi_diagnose_dtos[i]["inout_dise_type"].ToString();
+                    fsi_diagnose_dtos[i]["maindise_flag"] = fsi_diagnose_dtos[i]["maindise_flag"].ToString();
+                    fsi_diagnose_dtos[i]["dias_srt_no"] = fsi_diagnose_dtos[i]["dias_srt_no"].ToString();                    
+                }
+
+                    return fsi_diagnose_dtos;
             }
             catch (Exception ex)
             {
@@ -229,7 +276,7 @@ namespace PTMedicalInsurance.Business
         }
 
         #region 组织入参
-        public JArray GetFsi__order_dtos(string trig_scen, Patients p)
+        public JArray GetFsi_order_dtos(string trig_scen, Patients p)
         {
             string errMsg = "";
             try
@@ -239,10 +286,36 @@ namespace PTMedicalInsurance.Business
                     decimal pric = decimal.Parse(fsi_order_dtos[i]["pric"].ToString());
                     fsi_order_dtos[i]["pric"] = pric.ToString("#0.00");
                     fsi_order_dtos[i]["hilist_pric"] = pric.ToString("#0.00");
+
+                    if (fsi_order_dtos[i]["drord_bhvr"].ToString() == "2")
+                        fsi_order_dtos[i]["drord_bhvr"] = "0";
+                    else
+                        fsi_order_dtos[i]["drord_bhvr"] = fsi_order_dtos[i]["drord_bhvr"].ToString(); //转成字符串类型
+
+                    string dateStr = fsi_order_dtos[i]["drord_begn_date"].ToString();
+                    if (DateTime.TryParseExact(dateStr, "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime date))
+                        fsi_order_dtos[i]["drord_begn_date"] = date.ToString("yyyy-MM-dd HH:mm:ss");
+
+                    if (fsi_order_dtos[i]["drord_dr_profttl"].ToString() == "231") //主任医师
+                        fsi_order_dtos[i]["drord_dr_profttl"] = "5";
+                    else if (fsi_order_dtos[i]["drord_dr_profttl"].ToString() == "232") //副主任医师
+                        fsi_order_dtos[i]["drord_dr_profttl"] = "4";
+                    else if (fsi_order_dtos[i]["drord_dr_profttl"].ToString() == "233") //主诊医师
+                        fsi_order_dtos[i]["drord_dr_profttl"] = "3";
+                    else if (fsi_order_dtos[i]["drord_dr_profttl"].ToString() == "234") //医师
+                        fsi_order_dtos[i]["drord_dr_profttl"] = "2";
+                    else if (fsi_order_dtos[i]["drord_dr_profttl"].ToString() == "235") //医士
+                        fsi_order_dtos[i]["drord_dr_profttl"] = "1";
+
+                    //fsi_order_dtos[i]["validFlag"].Remove();
                 }
+
+                //MessageBox.Show(fsi_order_dtos.ToString());
+
                 //调用医保平台进行转换
                 if (mis.convertFsiOrderDtos(fsi_order_dtos, out errMsg) != 0)
                 {
+                    MessageBox.Show(errMsg);
                     return null;
                 }
                 else

+ 27 - 1
Forms/PreAndInProcessAnalysis/PreAndInProcessAnalysisForm.cs

@@ -10,6 +10,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
+using PTMedicalInsurance.Variables;
 
 namespace PTMedicalInsurance.Forms
 {
@@ -20,6 +21,8 @@ namespace PTMedicalInsurance.Forms
 
         private GridViewSetter grdSetter = new GridViewSetter();
         private JArray jaVolaItems;
+        public string JrID = "";
+
         public PreAndInProcessAnalysisForm()
         {
             InitializeComponent();
@@ -32,6 +35,7 @@ namespace PTMedicalInsurance.Forms
             dtVolaItems = (DataTable)jo["output"]["result"].ToObject(typeof(DataTable));
             dgvVolaItems.DataSource = dtVolaItems;
             grdSetter.SetHeaderTextOfPAIPAVolaItem(dgvVolaItems);
+
             //tbJrID.Text = JsonHelper.getDestValue(jo, "output.result[0].jr_id");
             //tbRuleID.Text = JsonHelper.getDestValue(jo, "output.result[0].rule_id");
             //tbPatID.Text = JsonHelper.getDestValue(jo, "output.result[0].patn_id");
@@ -42,12 +46,13 @@ namespace PTMedicalInsurance.Forms
             //tbVolaBhvrType.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_bhvr_type");
             //tbVolaEvid.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_evid");
             //tbRuleName.Text = JsonHelper.getDestValue(jo, "output.result[0].rule_name");
-            //rbtVolaContent.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_cont");
+            //rbtVolaContent.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_cont");            
         }
 
         private void showVolaItemContent(JObject jo)
         {
             tbJrID.Text = JsonHelper.getDestValue(jo, "jr_id");
+            JrID = tbJrID.Text;
             tbRuleID.Text = JsonHelper.getDestValue(jo, "rule_id");
             tbPatID.Text = JsonHelper.getDestValue(jo, "patn_id");
             tbMdtrdID.Text = JsonHelper.getDestValue(jo, "mdtrt_id");
@@ -93,5 +98,26 @@ namespace PTMedicalInsurance.Forms
         {
 
         }
+
+        private void btnModify_Click(object sender, EventArgs e)
+        {
+            if (rtb_DspoWayRea.Text == "")
+            {
+                MessageBox.Show("处理方式为修改医嘱时,处理原因必填!");
+                return;
+            }
+
+            Global.Set.dspoWayRea = rtb_DspoWayRea.Text;
+
+            Global.Set.dspoWay = "2";
+            DialogResult = DialogResult.OK;
+        }
+
+        private void btn_Continue_Click(object sender, EventArgs e)
+        {
+            Global.Set.dspoWayRea = "继续执行医嘱";
+            Global.Set.dspoWay = "1";
+            DialogResult = DialogResult.OK;
+        }
     }
 }

+ 250 - 174
Forms/PreAndInProcessAnalysis/PreAndInProcessAnalysisForm.designer.cs

@@ -28,21 +28,26 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
             this.uiPanel1 = new Sunny.UI.UIPanel();
+            this.btnModify = new Sunny.UI.UIButton();
+            this.btn_Continue = new Sunny.UI.UIButton();
             this.btnCancle = new Sunny.UI.UIButton();
-            this.btnOK = new Sunny.UI.UIButton();
             this.uiPanel2 = new Sunny.UI.UIPanel();
+            this.uiGroupBox5 = new Sunny.UI.UIGroupBox();
+            this.rtb_DspoWayRea = new Sunny.UI.UIRichTextBox();
             this.uiGroupBox2 = new Sunny.UI.UIGroupBox();
+            this.dgvVolaDetailDtos = new Sunny.UI.UIDataGridView();
+            this.uiGroupBox1 = new Sunny.UI.UIGroupBox();
             this.tbRuleName = new Sunny.UI.UITextBox();
             this.tbVolaEvid = new Sunny.UI.UITextBox();
             this.tbVolaBhvrType = new Sunny.UI.UITextBox();
@@ -63,89 +68,85 @@
             this.uiLabel3 = new Sunny.UI.UILabel();
             this.uiLabel2 = new Sunny.UI.UILabel();
             this.uiLabel1 = new Sunny.UI.UILabel();
-            this.uiGroupBox1 = new Sunny.UI.UIGroupBox();
+            this.uiGroupBox4 = new Sunny.UI.UIGroupBox();
             this.rbtVolaContent = new Sunny.UI.UIRichTextBox();
             this.uiGroupBox3 = new Sunny.UI.UIGroupBox();
             this.dgvVolaItems = new Sunny.UI.UIDataGridView();
-            this.dgvVolaDetailDtos = new Sunny.UI.UIDataGridView();
             this.uiPanel1.SuspendLayout();
             this.uiPanel2.SuspendLayout();
+            this.uiGroupBox5.SuspendLayout();
             this.uiGroupBox2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).BeginInit();
             this.uiGroupBox1.SuspendLayout();
+            this.uiGroupBox4.SuspendLayout();
             this.uiGroupBox3.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvVolaItems)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).BeginInit();
             this.SuspendLayout();
             // 
             // uiPanel1
             // 
+            this.uiPanel1.Controls.Add(this.btnModify);
+            this.uiPanel1.Controls.Add(this.btn_Continue);
             this.uiPanel1.Controls.Add(this.btnCancle);
-            this.uiPanel1.Controls.Add(this.btnOK);
             this.uiPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
             this.uiPanel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiPanel1.Location = new System.Drawing.Point(0, 538);
+            this.uiPanel1.Location = new System.Drawing.Point(0, 676);
             this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiPanel1.Name = "uiPanel1";
-            this.uiPanel1.Size = new System.Drawing.Size(1302, 53);
+            this.uiPanel1.Size = new System.Drawing.Size(1258, 65);
             this.uiPanel1.TabIndex = 0;
             this.uiPanel1.Text = null;
             this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
             this.uiPanel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // btnModify
+            // 
+            this.btnModify.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.btnModify.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnModify.Location = new System.Drawing.Point(1137, 6);
+            this.btnModify.MinimumSize = new System.Drawing.Size(1, 1);
+            this.btnModify.Name = "btnModify";
+            this.btnModify.Size = new System.Drawing.Size(114, 53);
+            this.btnModify.TabIndex = 3;
+            this.btnModify.Text = "修改医嘱";
+            this.btnModify.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnModify.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.btnModify.Click += new System.EventHandler(this.btnModify_Click);
+            // 
+            // btn_Continue
+            // 
+            this.btn_Continue.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.btn_Continue.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btn_Continue.Location = new System.Drawing.Point(1013, 6);
+            this.btn_Continue.MinimumSize = new System.Drawing.Size(1, 1);
+            this.btn_Continue.Name = "btn_Continue";
+            this.btn_Continue.Size = new System.Drawing.Size(114, 53);
+            this.btn_Continue.TabIndex = 2;
+            this.btn_Continue.Text = "继续执行";
+            this.btn_Continue.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btn_Continue.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.btn_Continue.Click += new System.EventHandler(this.btn_Continue_Click);
+            // 
             // btnCancle
             // 
-            this.btnCancle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.btnCancle.Cursor = System.Windows.Forms.Cursors.Hand;
             this.btnCancle.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnCancle.Location = new System.Drawing.Point(1045, 3);
+            this.btnCancle.Location = new System.Drawing.Point(8, 6);
             this.btnCancle.MinimumSize = new System.Drawing.Size(1, 1);
             this.btnCancle.Name = "btnCancle";
-            this.btnCancle.Size = new System.Drawing.Size(100, 35);
+            this.btnCancle.Size = new System.Drawing.Size(114, 53);
             this.btnCancle.TabIndex = 1;
             this.btnCancle.Text = "取消";
             this.btnCancle.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnCancle.Visible = false;
             this.btnCancle.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             this.btnCancle.Click += new System.EventHandler(this.btnCancle_Click);
             // 
-            // btnOK
-            // 
-            this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.btnOK.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnOK.Location = new System.Drawing.Point(896, 4);
-            this.btnOK.MinimumSize = new System.Drawing.Size(1, 1);
-            this.btnOK.Name = "btnOK";
-            this.btnOK.Size = new System.Drawing.Size(100, 35);
-            this.btnOK.TabIndex = 0;
-            this.btnOK.Text = "确定";
-            this.btnOK.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnOK.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
-            // 
             // uiPanel2
             // 
+            this.uiPanel2.Controls.Add(this.uiGroupBox5);
             this.uiPanel2.Controls.Add(this.uiGroupBox2);
-            this.uiPanel2.Controls.Add(this.tbRuleName);
-            this.uiPanel2.Controls.Add(this.tbVolaEvid);
-            this.uiPanel2.Controls.Add(this.tbVolaBhvrType);
-            this.uiPanel2.Controls.Add(this.tbSevDeg);
-            this.uiPanel2.Controls.Add(this.tbVolaAmtStas);
-            this.uiPanel2.Controls.Add(this.tbVolaAmt);
-            this.uiPanel2.Controls.Add(this.tbMdtrdID);
-            this.uiPanel2.Controls.Add(this.tbPatID);
-            this.uiPanel2.Controls.Add(this.tbRuleID);
-            this.uiPanel2.Controls.Add(this.tbJrID);
-            this.uiPanel2.Controls.Add(this.uiLabel6);
-            this.uiPanel2.Controls.Add(this.uiLabel7);
-            this.uiPanel2.Controls.Add(this.uiLabel8);
-            this.uiPanel2.Controls.Add(this.uiLabel9);
-            this.uiPanel2.Controls.Add(this.uiLabel10);
-            this.uiPanel2.Controls.Add(this.uiLabel5);
-            this.uiPanel2.Controls.Add(this.uiLabel4);
-            this.uiPanel2.Controls.Add(this.uiLabel3);
-            this.uiPanel2.Controls.Add(this.uiLabel2);
-            this.uiPanel2.Controls.Add(this.uiLabel1);
             this.uiPanel2.Controls.Add(this.uiGroupBox1);
             this.uiPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
             this.uiPanel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -153,41 +154,162 @@
             this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.uiPanel2.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiPanel2.Name = "uiPanel2";
-            this.uiPanel2.Size = new System.Drawing.Size(1032, 538);
+            this.uiPanel2.Size = new System.Drawing.Size(988, 676);
             this.uiPanel2.TabIndex = 1;
             this.uiPanel2.Text = null;
             this.uiPanel2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
             this.uiPanel2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // uiGroupBox5
+            // 
+            this.uiGroupBox5.Controls.Add(this.rtb_DspoWayRea);
+            this.uiGroupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.uiGroupBox5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiGroupBox5.Location = new System.Drawing.Point(0, 569);
+            this.uiGroupBox5.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiGroupBox5.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiGroupBox5.Name = "uiGroupBox5";
+            this.uiGroupBox5.Padding = new System.Windows.Forms.Padding(0, 24, 0, 0);
+            this.uiGroupBox5.Size = new System.Drawing.Size(988, 107);
+            this.uiGroupBox5.TabIndex = 24;
+            this.uiGroupBox5.Text = "处理原因";
+            this.uiGroupBox5.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiGroupBox5.TitleInterval = 0;
+            this.uiGroupBox5.TitleTop = 8;
+            this.uiGroupBox5.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // rtb_DspoWayRea
+            // 
+            this.rtb_DspoWayRea.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.rtb_DspoWayRea.FillColor = System.Drawing.Color.White;
+            this.rtb_DspoWayRea.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.rtb_DspoWayRea.Location = new System.Drawing.Point(0, 24);
+            this.rtb_DspoWayRea.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.rtb_DspoWayRea.MinimumSize = new System.Drawing.Size(1, 1);
+            this.rtb_DspoWayRea.Name = "rtb_DspoWayRea";
+            this.rtb_DspoWayRea.Padding = new System.Windows.Forms.Padding(2);
+            this.rtb_DspoWayRea.ShowText = false;
+            this.rtb_DspoWayRea.Size = new System.Drawing.Size(988, 83);
+            this.rtb_DspoWayRea.TabIndex = 0;
+            this.rtb_DspoWayRea.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.rtb_DspoWayRea.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
             // uiGroupBox2
             // 
             this.uiGroupBox2.Controls.Add(this.dgvVolaDetailDtos);
-            this.uiGroupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.uiGroupBox2.Dock = System.Windows.Forms.DockStyle.Top;
             this.uiGroupBox2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiGroupBox2.Location = new System.Drawing.Point(0, 383);
+            this.uiGroupBox2.Location = new System.Drawing.Point(0, 389);
             this.uiGroupBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.uiGroupBox2.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiGroupBox2.Name = "uiGroupBox2";
             this.uiGroupBox2.Padding = new System.Windows.Forms.Padding(0, 24, 0, 0);
-            this.uiGroupBox2.Size = new System.Drawing.Size(1032, 155);
-            this.uiGroupBox2.TabIndex = 21;
+            this.uiGroupBox2.Size = new System.Drawing.Size(988, 180);
+            this.uiGroupBox2.TabIndex = 23;
             this.uiGroupBox2.Text = "违规明细";
             this.uiGroupBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
             this.uiGroupBox2.TitleInterval = 0;
             this.uiGroupBox2.TitleTop = 8;
             this.uiGroupBox2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // dgvVolaDetailDtos
+            // 
+            this.dgvVolaDetailDtos.AllowUserToAddRows = false;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvVolaDetailDtos.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaDetailDtos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            this.dgvVolaDetailDtos.ColumnHeadersHeight = 32;
+            this.dgvVolaDetailDtos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvVolaDetailDtos.DefaultCellStyle = dataGridViewCellStyle3;
+            this.dgvVolaDetailDtos.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.dgvVolaDetailDtos.EnableHeadersVisualStyles = false;
+            this.dgvVolaDetailDtos.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.dgvVolaDetailDtos.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.Location = new System.Drawing.Point(0, 24);
+            this.dgvVolaDetailDtos.Name = "dgvVolaDetailDtos";
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaDetailDtos.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
+            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            this.dgvVolaDetailDtos.RowsDefaultCellStyle = dataGridViewCellStyle5;
+            this.dgvVolaDetailDtos.RowTemplate.Height = 23;
+            this.dgvVolaDetailDtos.SelectedIndex = -1;
+            this.dgvVolaDetailDtos.Size = new System.Drawing.Size(988, 156);
+            this.dgvVolaDetailDtos.TabIndex = 1;
+            this.dgvVolaDetailDtos.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiGroupBox1
+            // 
+            this.uiGroupBox1.Controls.Add(this.tbRuleName);
+            this.uiGroupBox1.Controls.Add(this.tbVolaEvid);
+            this.uiGroupBox1.Controls.Add(this.tbVolaBhvrType);
+            this.uiGroupBox1.Controls.Add(this.tbSevDeg);
+            this.uiGroupBox1.Controls.Add(this.tbVolaAmtStas);
+            this.uiGroupBox1.Controls.Add(this.tbVolaAmt);
+            this.uiGroupBox1.Controls.Add(this.tbMdtrdID);
+            this.uiGroupBox1.Controls.Add(this.tbPatID);
+            this.uiGroupBox1.Controls.Add(this.tbRuleID);
+            this.uiGroupBox1.Controls.Add(this.tbJrID);
+            this.uiGroupBox1.Controls.Add(this.uiLabel6);
+            this.uiGroupBox1.Controls.Add(this.uiLabel7);
+            this.uiGroupBox1.Controls.Add(this.uiLabel8);
+            this.uiGroupBox1.Controls.Add(this.uiLabel9);
+            this.uiGroupBox1.Controls.Add(this.uiLabel10);
+            this.uiGroupBox1.Controls.Add(this.uiLabel5);
+            this.uiGroupBox1.Controls.Add(this.uiLabel4);
+            this.uiGroupBox1.Controls.Add(this.uiLabel3);
+            this.uiGroupBox1.Controls.Add(this.uiLabel2);
+            this.uiGroupBox1.Controls.Add(this.uiLabel1);
+            this.uiGroupBox1.Controls.Add(this.uiGroupBox4);
+            this.uiGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.uiGroupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiGroupBox1.Location = new System.Drawing.Point(0, 0);
+            this.uiGroupBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiGroupBox1.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiGroupBox1.Name = "uiGroupBox1";
+            this.uiGroupBox1.Padding = new System.Windows.Forms.Padding(0, 32, 0, 0);
+            this.uiGroupBox1.Size = new System.Drawing.Size(988, 389);
+            this.uiGroupBox1.TabIndex = 22;
+            this.uiGroupBox1.Text = "违规信息";
+            this.uiGroupBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiGroupBox1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
             // tbRuleName
             // 
             this.tbRuleName.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbRuleName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbRuleName.Location = new System.Drawing.Point(166, 324);
+            this.tbRuleName.Location = new System.Drawing.Point(164, 345);
             this.tbRuleName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbRuleName.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbRuleName.Name = "tbRuleName";
             this.tbRuleName.ShowText = false;
             this.tbRuleName.Size = new System.Drawing.Size(1123, 24);
-            this.tbRuleName.TabIndex = 20;
+            this.tbRuleName.TabIndex = 41;
             this.tbRuleName.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbRuleName.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -195,13 +317,13 @@
             // 
             this.tbVolaEvid.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbVolaEvid.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbVolaEvid.Location = new System.Drawing.Point(166, 289);
+            this.tbVolaEvid.Location = new System.Drawing.Point(164, 310);
             this.tbVolaEvid.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbVolaEvid.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbVolaEvid.Name = "tbVolaEvid";
             this.tbVolaEvid.ShowText = false;
             this.tbVolaEvid.Size = new System.Drawing.Size(1123, 24);
-            this.tbVolaEvid.TabIndex = 17;
+            this.tbVolaEvid.TabIndex = 38;
             this.tbVolaEvid.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbVolaEvid.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -209,13 +331,13 @@
             // 
             this.tbVolaBhvrType.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbVolaBhvrType.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbVolaBhvrType.Location = new System.Drawing.Point(166, 254);
+            this.tbVolaBhvrType.Location = new System.Drawing.Point(164, 275);
             this.tbVolaBhvrType.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbVolaBhvrType.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbVolaBhvrType.Name = "tbVolaBhvrType";
             this.tbVolaBhvrType.ShowText = false;
             this.tbVolaBhvrType.Size = new System.Drawing.Size(321, 24);
-            this.tbVolaBhvrType.TabIndex = 19;
+            this.tbVolaBhvrType.TabIndex = 40;
             this.tbVolaBhvrType.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbVolaBhvrType.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -223,13 +345,13 @@
             // 
             this.tbSevDeg.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbSevDeg.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbSevDeg.Location = new System.Drawing.Point(166, 219);
+            this.tbSevDeg.Location = new System.Drawing.Point(164, 240);
             this.tbSevDeg.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbSevDeg.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbSevDeg.Name = "tbSevDeg";
             this.tbSevDeg.ShowText = false;
             this.tbSevDeg.Size = new System.Drawing.Size(321, 24);
-            this.tbSevDeg.TabIndex = 18;
+            this.tbSevDeg.TabIndex = 39;
             this.tbSevDeg.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbSevDeg.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -237,13 +359,13 @@
             // 
             this.tbVolaAmtStas.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbVolaAmtStas.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbVolaAmtStas.Location = new System.Drawing.Point(166, 184);
+            this.tbVolaAmtStas.Location = new System.Drawing.Point(164, 205);
             this.tbVolaAmtStas.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbVolaAmtStas.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbVolaAmtStas.Name = "tbVolaAmtStas";
             this.tbVolaAmtStas.ShowText = false;
             this.tbVolaAmtStas.Size = new System.Drawing.Size(321, 24);
-            this.tbVolaAmtStas.TabIndex = 16;
+            this.tbVolaAmtStas.TabIndex = 37;
             this.tbVolaAmtStas.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbVolaAmtStas.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -251,13 +373,13 @@
             // 
             this.tbVolaAmt.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbVolaAmt.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbVolaAmt.Location = new System.Drawing.Point(166, 149);
+            this.tbVolaAmt.Location = new System.Drawing.Point(164, 170);
             this.tbVolaAmt.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbVolaAmt.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbVolaAmt.Name = "tbVolaAmt";
             this.tbVolaAmt.ShowText = false;
             this.tbVolaAmt.Size = new System.Drawing.Size(321, 24);
-            this.tbVolaAmt.TabIndex = 15;
+            this.tbVolaAmt.TabIndex = 36;
             this.tbVolaAmt.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbVolaAmt.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -265,13 +387,13 @@
             // 
             this.tbMdtrdID.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbMdtrdID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbMdtrdID.Location = new System.Drawing.Point(166, 114);
+            this.tbMdtrdID.Location = new System.Drawing.Point(164, 135);
             this.tbMdtrdID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbMdtrdID.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbMdtrdID.Name = "tbMdtrdID";
             this.tbMdtrdID.ShowText = false;
             this.tbMdtrdID.Size = new System.Drawing.Size(321, 24);
-            this.tbMdtrdID.TabIndex = 13;
+            this.tbMdtrdID.TabIndex = 34;
             this.tbMdtrdID.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbMdtrdID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -279,13 +401,13 @@
             // 
             this.tbPatID.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbPatID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbPatID.Location = new System.Drawing.Point(166, 79);
+            this.tbPatID.Location = new System.Drawing.Point(164, 100);
             this.tbPatID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbPatID.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbPatID.Name = "tbPatID";
             this.tbPatID.ShowText = false;
             this.tbPatID.Size = new System.Drawing.Size(321, 24);
-            this.tbPatID.TabIndex = 14;
+            this.tbPatID.TabIndex = 35;
             this.tbPatID.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbPatID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -293,13 +415,13 @@
             // 
             this.tbRuleID.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbRuleID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbRuleID.Location = new System.Drawing.Point(166, 44);
+            this.tbRuleID.Location = new System.Drawing.Point(164, 65);
             this.tbRuleID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbRuleID.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbRuleID.Name = "tbRuleID";
             this.tbRuleID.ShowText = false;
             this.tbRuleID.Size = new System.Drawing.Size(321, 24);
-            this.tbRuleID.TabIndex = 13;
+            this.tbRuleID.TabIndex = 33;
             this.tbRuleID.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbRuleID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
@@ -307,23 +429,23 @@
             // 
             this.tbJrID.Cursor = System.Windows.Forms.Cursors.IBeam;
             this.tbJrID.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbJrID.Location = new System.Drawing.Point(166, 9);
+            this.tbJrID.Location = new System.Drawing.Point(164, 30);
             this.tbJrID.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.tbJrID.MinimumSize = new System.Drawing.Size(1, 16);
             this.tbJrID.Name = "tbJrID";
             this.tbJrID.ShowText = false;
             this.tbJrID.Size = new System.Drawing.Size(321, 24);
-            this.tbJrID.TabIndex = 12;
+            this.tbJrID.TabIndex = 32;
             this.tbJrID.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
             this.tbJrID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
             // uiLabel6
             // 
             this.uiLabel6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel6.Location = new System.Drawing.Point(56, 324);
+            this.uiLabel6.Location = new System.Drawing.Point(54, 345);
             this.uiLabel6.Name = "uiLabel6";
             this.uiLabel6.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel6.TabIndex = 11;
+            this.uiLabel6.TabIndex = 31;
             this.uiLabel6.Text = "规则名称";
             this.uiLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel6.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -331,10 +453,10 @@
             // uiLabel7
             // 
             this.uiLabel7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel7.Location = new System.Drawing.Point(56, 289);
+            this.uiLabel7.Location = new System.Drawing.Point(54, 310);
             this.uiLabel7.Name = "uiLabel7";
             this.uiLabel7.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel7.TabIndex = 10;
+            this.uiLabel7.TabIndex = 30;
             this.uiLabel7.Text = "违规依据";
             this.uiLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel7.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -342,10 +464,10 @@
             // uiLabel8
             // 
             this.uiLabel8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel8.Location = new System.Drawing.Point(11, 254);
+            this.uiLabel8.Location = new System.Drawing.Point(9, 275);
             this.uiLabel8.Name = "uiLabel8";
             this.uiLabel8.Size = new System.Drawing.Size(135, 20);
-            this.uiLabel8.TabIndex = 9;
+            this.uiLabel8.TabIndex = 29;
             this.uiLabel8.Text = "违规行为分类";
             this.uiLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel8.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -353,10 +475,10 @@
             // uiLabel9
             // 
             this.uiLabel9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel9.Location = new System.Drawing.Point(56, 219);
+            this.uiLabel9.Location = new System.Drawing.Point(54, 240);
             this.uiLabel9.Name = "uiLabel9";
             this.uiLabel9.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel9.TabIndex = 8;
+            this.uiLabel9.TabIndex = 28;
             this.uiLabel9.Text = "严重程度";
             this.uiLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel9.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -364,10 +486,10 @@
             // uiLabel10
             // 
             this.uiLabel10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel10.Location = new System.Drawing.Point(7, 184);
+            this.uiLabel10.Location = new System.Drawing.Point(5, 205);
             this.uiLabel10.Name = "uiLabel10";
             this.uiLabel10.Size = new System.Drawing.Size(139, 20);
-            this.uiLabel10.TabIndex = 7;
+            this.uiLabel10.TabIndex = 27;
             this.uiLabel10.Text = "违规金额计算状态";
             this.uiLabel10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel10.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -375,10 +497,10 @@
             // uiLabel5
             // 
             this.uiLabel5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel5.Location = new System.Drawing.Point(56, 149);
+            this.uiLabel5.Location = new System.Drawing.Point(54, 170);
             this.uiLabel5.Name = "uiLabel5";
             this.uiLabel5.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel5.TabIndex = 6;
+            this.uiLabel5.TabIndex = 26;
             this.uiLabel5.Text = "违规金额";
             this.uiLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel5.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -386,10 +508,10 @@
             // uiLabel4
             // 
             this.uiLabel4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel4.Location = new System.Drawing.Point(56, 114);
+            this.uiLabel4.Location = new System.Drawing.Point(54, 135);
             this.uiLabel4.Name = "uiLabel4";
             this.uiLabel4.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel4.TabIndex = 5;
+            this.uiLabel4.TabIndex = 25;
             this.uiLabel4.Text = "就诊ID";
             this.uiLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -397,10 +519,10 @@
             // uiLabel3
             // 
             this.uiLabel3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel3.Location = new System.Drawing.Point(56, 79);
+            this.uiLabel3.Location = new System.Drawing.Point(54, 100);
             this.uiLabel3.Name = "uiLabel3";
             this.uiLabel3.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel3.TabIndex = 4;
+            this.uiLabel3.TabIndex = 24;
             this.uiLabel3.Text = "参保人ID";
             this.uiLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -408,10 +530,10 @@
             // uiLabel2
             // 
             this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel2.Location = new System.Drawing.Point(56, 44);
+            this.uiLabel2.Location = new System.Drawing.Point(54, 65);
             this.uiLabel2.Name = "uiLabel2";
             this.uiLabel2.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel2.TabIndex = 3;
+            this.uiLabel2.TabIndex = 23;
             this.uiLabel2.Text = "规则ID";
             this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.uiLabel2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
@@ -419,30 +541,30 @@
             // uiLabel1
             // 
             this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel1.Location = new System.Drawing.Point(56, 9);
+            this.uiLabel1.Location = new System.Drawing.Point(54, 30);
             this.uiLabel1.Name = "uiLabel1";
             this.uiLabel1.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel1.TabIndex = 2;
+            this.uiLabel1.TabIndex = 22;
             this.uiLabel1.Text = "违规标识";
             this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.TopRight;
             this.uiLabel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
-            // uiGroupBox1
-            // 
-            this.uiGroupBox1.Controls.Add(this.rbtVolaContent);
-            this.uiGroupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiGroupBox1.Location = new System.Drawing.Point(526, 5);
-            this.uiGroupBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
-            this.uiGroupBox1.MinimumSize = new System.Drawing.Size(1, 1);
-            this.uiGroupBox1.Name = "uiGroupBox1";
-            this.uiGroupBox1.Padding = new System.Windows.Forms.Padding(0, 24, 0, 0);
-            this.uiGroupBox1.Size = new System.Drawing.Size(763, 273);
-            this.uiGroupBox1.TabIndex = 1;
-            this.uiGroupBox1.Text = "违规内容";
-            this.uiGroupBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
-            this.uiGroupBox1.TitleInterval = 0;
-            this.uiGroupBox1.TitleTop = 8;
-            this.uiGroupBox1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // uiGroupBox4
+            // 
+            this.uiGroupBox4.Controls.Add(this.rbtVolaContent);
+            this.uiGroupBox4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiGroupBox4.Location = new System.Drawing.Point(524, 26);
+            this.uiGroupBox4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiGroupBox4.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiGroupBox4.Name = "uiGroupBox4";
+            this.uiGroupBox4.Padding = new System.Windows.Forms.Padding(0, 24, 0, 0);
+            this.uiGroupBox4.Size = new System.Drawing.Size(763, 273);
+            this.uiGroupBox4.TabIndex = 21;
+            this.uiGroupBox4.Text = "违规内容";
+            this.uiGroupBox4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiGroupBox4.TitleInterval = 0;
+            this.uiGroupBox4.TitleTop = 8;
+            this.uiGroupBox4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
             // rbtVolaContent
             // 
@@ -470,7 +592,7 @@
             this.uiGroupBox3.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiGroupBox3.Name = "uiGroupBox3";
             this.uiGroupBox3.Padding = new System.Windows.Forms.Padding(0, 26, 0, 0);
-            this.uiGroupBox3.Size = new System.Drawing.Size(270, 538);
+            this.uiGroupBox3.Size = new System.Drawing.Size(270, 676);
             this.uiGroupBox3.TabIndex = 2;
             this.uiGroupBox3.Text = "违规项目";
             this.uiGroupBox3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
@@ -525,69 +647,17 @@
             this.dgvVolaItems.RowsDefaultCellStyle = dataGridViewCellStyle10;
             this.dgvVolaItems.RowTemplate.Height = 23;
             this.dgvVolaItems.SelectedIndex = -1;
-            this.dgvVolaItems.Size = new System.Drawing.Size(270, 512);
+            this.dgvVolaItems.Size = new System.Drawing.Size(270, 650);
             this.dgvVolaItems.TabIndex = 0;
             this.dgvVolaItems.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             this.dgvVolaItems.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvVolaItems_CellContentClick);
             this.dgvVolaItems.SelectionChanged += new System.EventHandler(this.dgvVolaItems_SelectionChanged);
             // 
-            // dgvVolaDetailDtos
-            // 
-            this.dgvVolaDetailDtos.AllowUserToAddRows = false;
-            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
-            this.dgvVolaDetailDtos.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaDetailDtos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
-            this.dgvVolaDetailDtos.ColumnHeadersHeight = 32;
-            this.dgvVolaDetailDtos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvVolaDetailDtos.DefaultCellStyle = dataGridViewCellStyle3;
-            this.dgvVolaDetailDtos.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.dgvVolaDetailDtos.EnableHeadersVisualStyles = false;
-            this.dgvVolaDetailDtos.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.dgvVolaDetailDtos.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.Location = new System.Drawing.Point(0, 24);
-            this.dgvVolaDetailDtos.Name = "dgvVolaDetailDtos";
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaDetailDtos.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
-            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            this.dgvVolaDetailDtos.RowsDefaultCellStyle = dataGridViewCellStyle5;
-            this.dgvVolaDetailDtos.RowTemplate.Height = 23;
-            this.dgvVolaDetailDtos.SelectedIndex = -1;
-            this.dgvVolaDetailDtos.Size = new System.Drawing.Size(1032, 131);
-            this.dgvVolaDetailDtos.TabIndex = 1;
-            this.dgvVolaDetailDtos.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            this.dgvVolaDetailDtos.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uiDataGridView1_CellContentClick);
-            // 
             // PreAndInProcessAnalysisForm
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1302, 591);
+            this.ClientSize = new System.Drawing.Size(1258, 741);
             this.Controls.Add(this.uiPanel2);
             this.Controls.Add(this.uiGroupBox3);
             this.Controls.Add(this.uiPanel1);
@@ -595,11 +665,13 @@
             this.Text = "事前事中智能审核";
             this.uiPanel1.ResumeLayout(false);
             this.uiPanel2.ResumeLayout(false);
+            this.uiGroupBox5.ResumeLayout(false);
             this.uiGroupBox2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).EndInit();
             this.uiGroupBox1.ResumeLayout(false);
+            this.uiGroupBox4.ResumeLayout(false);
             this.uiGroupBox3.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvVolaItems)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -608,6 +680,14 @@
 
         private Sunny.UI.UIPanel uiPanel1;
         private Sunny.UI.UIPanel uiPanel2;
+        private Sunny.UI.UIButton btnCancle;
+        private Sunny.UI.UIGroupBox uiGroupBox3;
+        private Sunny.UI.UIDataGridView dgvVolaItems;
+        private Sunny.UI.UIGroupBox uiGroupBox5;
+        private Sunny.UI.UIRichTextBox rtb_DspoWayRea;
+        private Sunny.UI.UIGroupBox uiGroupBox2;
+        private Sunny.UI.UIDataGridView dgvVolaDetailDtos;
+        private Sunny.UI.UIGroupBox uiGroupBox1;
         private Sunny.UI.UITextBox tbRuleName;
         private Sunny.UI.UITextBox tbVolaEvid;
         private Sunny.UI.UITextBox tbVolaBhvrType;
@@ -628,13 +708,9 @@
         private Sunny.UI.UILabel uiLabel3;
         private Sunny.UI.UILabel uiLabel2;
         private Sunny.UI.UILabel uiLabel1;
-        private Sunny.UI.UIGroupBox uiGroupBox1;
+        private Sunny.UI.UIGroupBox uiGroupBox4;
         private Sunny.UI.UIRichTextBox rbtVolaContent;
-        private Sunny.UI.UIGroupBox uiGroupBox2;
-        private Sunny.UI.UIButton btnOK;
-        private Sunny.UI.UIButton btnCancle;
-        private Sunny.UI.UIGroupBox uiGroupBox3;
-        private Sunny.UI.UIDataGridView dgvVolaItems;
-        private Sunny.UI.UIDataGridView dgvVolaDetailDtos;
+        private Sunny.UI.UIButton btnModify;
+        private Sunny.UI.UIButton btn_Continue;
     }
 }

+ 9 - 56
InsuBusiness.cs

@@ -87,7 +87,6 @@ namespace PTMedicalInsurance
                 errMsg = "parseInparam 解析入参异常:" + e.Message;
                 return -1;
             }
-
         }
         
         /// <summary>
@@ -597,7 +596,8 @@ namespace PTMedicalInsurance
                             mIS.deleteFee(out errMsg);
 
                             #region【住院费用上传前调用3101事前服务】
-                            ////事前分析
+                            //1.获取3101入参报文                
+                            //事前分析                           
                             if (Global.curEvt.ext.isOpenAnalysis)
                             {
                                 if (hBus.PreAnalysis("4", "", out errMsg) != 0)
@@ -837,33 +837,16 @@ namespace PTMedicalInsurance
                             #endregion
 
                             #region【门诊就诊信息上传成功后调用3101事前服务】
-                            //1.获取3101入参报文
-                            /*
-                            if (hIS.GetInsuPatInfo("1", Global.pat, out outParam) != 0)
-                            {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3101医保明细审核事前分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
+                            //事前分析
+                            if (Global.curEvt.ext.isOpenAnalysis)
                             {
-                                //2.调用医保3101明细审核事前分析服务
-                                JObject joInput = new JObject();
-                                //joInput.Add("data", JObject.Parse(outParam));
-                                joInput = JObject.Parse(outParam);
-
-                                JObject jo3101Rtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", joInput.ToString().Replace("\r\n", ""))); //.Replace(" ", "")
-                                if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
+                                //1.门诊挂号 2.门诊收费登记 3.住院登记 4.住院收费登记 5.住院执行医嘱 6.门诊结算 7.门诊预结算 8.住院结算 9.住院预结算 10.购药划卡
+                                if (hBus.PreAnalysis("1", "", out errMsg) != 0)
                                 {
-
-                                    DialogResult dr = MessageBox.Show("【3101】医保明细审核事前分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
-                                    {
-                                        rtnResult = JsonHelper.setExceptionJson(-1, "【3101】医保明细审核事前分析服务调用失败:", errMsg).ToString();
-                                        return rtnResult;
-                                    }
+                                    rtnResult = JsonHelper.setExceptionJson(-1, "门诊就诊信息上传成功后调用3101事前服务失败:", errMsg).ToString();
+                                    //return rtnResult;
                                 }
                             }
-                            */
                             #endregion
 
                             #region 费用上传[2204]
@@ -872,39 +855,9 @@ namespace PTMedicalInsurance
                                 rtnResult = JsonHelper.setExceptionJson(-1, "费用上传", outParam).ToString();
                                 return rtnResult;
                             }
-                            #endregion
-
-                            #region【门诊预结算2206前调用3102医保明细审核事中服务】                            
-                            //1.获取3102入参报文
-                            /*
-                            if (hIS.GetInsuPatInfo("2", Global.pat, out outParam) != 0)
-                            {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3102医保明细审核事中分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
-                            {
-                                //2.调用医保3102明细审核事前分析服务
-                                JObject joInput = new JObject();
-                                //joInput.Add("data", JObject.Parse(outParam));
-                                joInput = JObject.Parse(outParam);
-
-                                JObject jo3101Rtn = invoker.invokeCenterService("3102", JsonHelper.setCenterInpar("3102", joInput.ToString().Replace("\r\n", "")));
-                                if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
-                                {
-                                    DialogResult dr = MessageBox.Show("【3102】医保明细审核事中分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
-                                    {
-                                        rtnResult = JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事中分析服务调用失败:", errMsg).ToString();
-                                        return rtnResult;
-                                    }
-                                }
-                            }
-                            */
-                            #endregion
+                            #endregion                           
 
                             #region 门诊预结算[2206]
-
                             //调用IRIS获取医保各项金额
                             if (mIS.getSumFee(out outParam) != 0)
                             {

+ 3 - 0
Variables/Struct.cs

@@ -258,6 +258,9 @@ namespace PTMedicalInsurance.Variables
         public decimal accountPaySumamt;//个人账户支出
         public string acctPay;
 
+        public string dspoWay; //1继续执行 2修改医嘱
+        public string dspoWayRea;
+
         public string wltpayAmt;
 
         public decimal personCashPay;//个人现金支出

BIN
obj/Debug/WuLuMuQiMI.csproj.GenerateResource.cache


BIN
obj/Debug/WuLuMuQiMI.dll


BIN
obj/Debug/WuLuMuQiMI.pdb