Bladeren bron

医保事前事中业务优化升级

837390164@qq.com 1 maand geleden
bovenliggende
commit
175eaed34d

+ 18 - 76
Business/HisMainBusiness.cs

@@ -2958,11 +2958,9 @@ namespace PTMedicalInsurance.Business
             }
         }
 
-        #region 事前事中
-
+        #region【事前事中服务】
         /// <summary>
-        /// 事前分析 
-        /// 触发场景:1	门诊挂号	2	门诊收费登记 3	住院登记	4	住院收费登记  5	住院执行医嘱
+        /// 事前分析
         /// </summary>
         /// <param name="outparam"></param>
         /// <returns></returns>
@@ -3002,32 +3000,20 @@ namespace PTMedicalInsurance.Business
                 else
                 {
                     JArray jaResult = JArray.Parse(JsonHelper.getDestValue(joRtn, "output.result"));
-                    if (jaResult.HasValues && jaResult.Count > 0)
+                    string HasValues = JsonHelper.getDestValue(joRtn, "output.result[0].HasValues").ToString();
+                    if (jaResult.HasValues)
                     {
                         PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(joRtn);
-                        if (tools.ShowAppDiaglog(paipaForm) == DialogResult.OK)
+                        if (paipaForm.ShowDialog() == DialogResult.OK)
                         {
-                            JObject joData = new JObject();
-                            JObject joTmp = new JObject();
-                            joTmp.Add("warn_type", 1);
-                            joTmp.Add("warns", paipaForm.jaWarns);
-                            joData.Add("data", joTmp);
-                            joRtn = invoker.invokeCenterService("3103", JsonHelper.setCenterInpar("3103", joData));
-                            if (JsonHelper.parseCenterRtnValue(joRtn, out outparam) != 0)
+                            //【3103】事前事中服务反馈服务
+                            if (PreAnalysisFeedBack("3101", paipaForm.JrID, out outparam) != 0)
                             {
+                                outparam = "【3103】事前事中服务反馈服务" + outparam;
                                 return -1;
                             }
                             else
                             {
-                                //if (JsonHelper.getDestValue(joRtn, "output.type") == "error")
-                                //{
-                                //    outparam = JsonHelper.getDestValue(joRtn, "output.message");
-                                //    return -1;
-                                //}
-                                //else
-                                //{
-                                //    return 0;
-                                //}
                                 return 0;
                             }
                         }
@@ -3038,7 +3024,15 @@ namespace PTMedicalInsurance.Business
                         }
                     }
                     else
+                    {
                         return 0;
+                    }
+
+                    if (HasValues == "")
+                    {
+                        outparam = "事前事中审核服务未返回详细说明!";
+                        return -1;
+                    }
                 }
 
 
@@ -3052,7 +3046,6 @@ namespace PTMedicalInsurance.Business
 
         /// <summary>
         /// 事中分析
-        /// 触发场景:6	门诊结算	7	门诊预结算8	住院结算	9	住院预结算10	购药划卡
         /// </summary>
         /// <param name="outparam"></param>
         /// <returns></returns>
@@ -3073,52 +3066,8 @@ namespace PTMedicalInsurance.Business
                     return -1;
                 }
                 outparam = preAnalysis.Get3101Inpar("5", Global.pat).ToString();
-                JObject joRtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", outparam));
-                if (JsonHelper.parseCenterRtnValue(joRtn, out outparam) != 0)
-                {
-                    return -1;
-                }
-                else
-                {
-                    JArray jaResult = JArray.Parse(JsonHelper.getDestValue(joRtn, "output.result"));
-                    if (jaResult.HasValues && jaResult.Count > 0)
-                    {
-                        PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(joRtn);
-                        if (tools.ShowAppDiaglog(paipaForm) == DialogResult.OK)
-                        {
-                            JObject joData = new JObject();
-                            JObject joTmp = new JObject();
-                            joTmp.Add("warn_type", 1);
-                            joTmp.Add("warns", paipaForm.jaWarns);
-                            joData.Add("data", joTmp);
-                            joRtn = invoker.invokeCenterService("3103", joData);
-                            if (JsonHelper.parseCenterRtnValue(joRtn, out outparam) != 0)
-                            {
-                                return -1;
-                            }
-                            else
-                            {
-                                //if (JsonHelper.getDestValue(joRtn, "output.type") == "error")
-                                //{
-                                //    outparam = JsonHelper.getDestValue(joRtn, "output.message");
-                                //    return -1;
-                                //}
-                                //else
-                                //{
-                                //    return 0;
-                                //}
-                                return 0;
-                            }
-                        }
-                        else
-                        {
-                            outparam = "事前事中审核不通过,操作员取消!";
-                            return -1;
-                        }
-                    }
-                    else
-                        return 0;
-                }
+                JObject joRtn = invoker.invokeCenterService("3102", JsonHelper.setCenterInpar("3102", outparam));
+                return JsonHelper.parseCenterRtnValue(joRtn, out outparam);
             }
             catch (Exception ex)
             {
@@ -3131,13 +3080,6 @@ namespace PTMedicalInsurance.Business
             }
         }
 
-        /// <summary>
-        /// 反馈
-        /// </summary>
-        /// <param name="funNo"></param>
-        /// <param name="jrId"></param>
-        /// <param name="outparam"></param>
-        /// <returns></returns>
         public int PreAnalysisFeedBack(string funNo, string jrId, out string outparam)
         {
             outparam = "";

+ 113 - 122
Business/PreAndInProcessAnalysis.cs

@@ -1,14 +1,15 @@
 using Newtonsoft.Json.Linq;
 using PTMedicalInsurance.Helper;
 using PTMedicalInsurance.Variables;
-using Sunny.UI;
 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
@@ -71,19 +72,19 @@ namespace PTMedicalInsurance.Business
 
         #endregion
 
-        public JObject Get3101Inpar(string trig_scen, Patients p)
+        public JObject Get3101Inpar(string trig_scen,Patients p)
         {
             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));
-                JArray ruleid = new JArray();
-                joInpar.Add("rule_ids", ruleid);
+                joInpar.Add("rule_ids", ruleIds);
                 joInpar.Add("task_id", GetMsgID());
                 joInpar.Add("trig_scen", trig_scen);
                 JObject joData = new JObject();
-                joData.Add("data", joInpar);
+                joData.Add("data",joInpar);
                 return joData;
             }
             catch (Exception ex)
@@ -115,6 +116,7 @@ namespace PTMedicalInsurance.Business
                 if (gend == "女") gend = "2";
                 joInpar.Add("gend", gend);
                 joInpar.Add("brdy", p.brdy);
+                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));
@@ -141,8 +143,7 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("mdtrt_id", mdtrtID);  //就诊标识
                 joInpar.Add("medins_id", Global.inf.hospitalNO);  //医疗服务机构标识
                 joInpar.Add("medins_name", Global.inf.hospitalName);  //医疗机构名称
-                //joInpar.Add("medins_admdvs", Global.inf.areaCode);  //医疗机构行政区划编码
-                joInpar.Add("medins_admdvs",Global.inf.hospitalNO.Substring(1,6));  //医疗机构行政区划编码
+                joInpar.Add("medins_admdvs", Global.inf.areaCode);  //医疗机构行政区划编码
                 joInpar.Add("medins_type", "A");  //医疗服务机构类型
                 joInpar.Add("medins_lv", "03");  //医疗机构等级
                 joInpar.Add("wardarea_codg", JsonHelper.getDestValue(jofsi_encounter_dtos, "wardarea_codg"));  //病区标识
@@ -152,61 +153,43 @@ 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"));  //入院科室名称
                 joInpar.Add("dscg_dept_codg", JsonHelper.getDestValue(jofsi_encounter_dtos, "dscg_dept_codg"));  //出院科室标识
                 joInpar.Add("dscg_dept_name", JsonHelper.getDestValue(jofsi_encounter_dtos, "dscg_dept_name"));  //出院科室名称
                 joInpar.Add("med_mdtrt_type", JsonHelper.getDestValue(jofsi_encounter_dtos, "med_mdtrt_type"));  //就诊类型
-                //银海和基线版不一样
-                string med_type = Global.pat.medType;
-                if (trig_scen == "1") { med_type = "11"; }
-                if (trig_scen == "2") { med_type = "11"; }
-                if (trig_scen == "3") { med_type = "21"; }
-                if (trig_scen == "4") { med_type = "21"; }
-                if (trig_scen == "5") { med_type = "21"; }
-                //if (med_type == "31") med_type = "21";
-                //if (med_type == "12") med_type = "41";
-                //if (med_type == "37") med_type = "23";
-                //if (med_type == "11") med_type = "11";
-                //if (med_type == "36") med_type = "23";
-                //if (med_type == "18") med_type = "14";
-                //if (med_type == "32") med_type = "92";
-                //if (med_type == "1102") med_type = "91";
-                if(Global.pat.RYorCY == "2")
-                {
-                    joInpar.Add("med_type", "21");  //医疗类别
-                }
-                else
-                {
-                    joInpar.Add("med_type", "11");
-                }
-
-                    joInpar.Add("fsi_order_dtos", GetFsi__order_dtos(trig_scen, p));  //处方(医嘱)信息
+                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));  //处方(医嘱)信息
                 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("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"));  //自付金额
-                //joInpar.Add("acct_payamt", JsonHelper.getDestValue(jofsi_encounter_dtos, "acct_payamt"));  //个人账户支付金额
-                //joInpar.Add("ma_amt", JsonHelper.getDestValue(jofsi_encounter_dtos, "ma_amt"));  //救助金支付金额
-                //joInpar.Add("hifp_payamt", JsonHelper.getDestValue(jofsi_encounter_dtos, "hifp_payamt"));  //统筹金支付金额
-                joInpar.Add("ownpay_amt", null);  //自费金额
-                joInpar.Add("selfpay_amt", null);  //自付金额
-                joInpar.Add("acct_payamt", null);  //个人账户支付金额
-                joInpar.Add("ma_amt", null);  //救助金支付金额
-                joInpar.Add("hifp_payamt", null);  //统筹金支付金额
+                joInpar.Add("ownpay_amt", JsonHelper.getDestValue(jofsi_encounter_dtos, "ownpay_amt"));  //自费金额
+                joInpar.Add("selfpay_amt", JsonHelper.getDestValue(jofsi_encounter_dtos, "selfpay_amt"));  //自付金额
+                joInpar.Add("acct_payamt", JsonHelper.getDestValue(jofsi_encounter_dtos, "acct_payamt"));  //个人账户支付金额
+                joInpar.Add("ma_amt", JsonHelper.getDestValue(jofsi_encounter_dtos, "ma_amt"));  //救助金支付金额
+                joInpar.Add("hifp_payamt", JsonHelper.getDestValue(jofsi_encounter_dtos, "hifp_payamt"));  //统筹金支付金额
                 joInpar.Add("setl_totlnum", JsonHelper.getDestValue(jofsi_encounter_dtos, "setl_totlnum"));  //结算总次数
-                //string insutype = Global.pat.insuType;
-                //if (insutype == "1") insutype = "310";
-                //if (insutype == "2") insutype = "310";
-                //if (insutype == "3") insutype = "390";
-                //if (insutype == "4") insutype = "340";
-                joInpar.Add("insutype", JsonHelper.getDestValue(jofsi_encounter_dtos, "insutype"));  //险种
-                joInpar.Add("reim_flag", JsonHelper.getDestValue(jofsi_encounter_dtos, "reim_flag"));  //报销标志
-                joInpar.Add("out_setl_flag", JsonHelper.getDestValue(jofsi_encounter_dtos, "out_setl_flag"));  //异地结算标志
+                string insutype = JsonHelper.getDestValue(jofsi_encounter_dtos, "insutype");
+                if (insutype == "") insutype = Global.pat.insuType;
+                joInpar.Add("insutype", insutype);  //险种
+                string reimFlag = JsonHelper.getDestValue(jofsi_encounter_dtos, "reim_flag");
+                // 报销标志(必填)
+                if (string.IsNullOrEmpty(reimFlag))
+                {
+                    reimFlag = "1";
+                }
+                joInpar.Add("reim_flag", reimFlag);
+                // 异地结算标志(必填)
+                string outSetlFlag = JsonHelper.getDestValue(jofsi_encounter_dtos, "out_setl_flag");
+                if (string.IsNullOrEmpty(outSetlFlag))
+                {
+                    outSetlFlag = isOtherCity() ? "1" : "0";
+                }
+                joInpar.Add("out_setl_flag", outSetlFlag);
                 joInpar.Add("fsi_operation_dtos", GetFsi__operation__dtos(trig_scen, p));  //手术操作集合
 
                 JArray ja = new JArray();
@@ -219,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)
             {
@@ -231,7 +260,7 @@ namespace PTMedicalInsurance.Business
                 return null;
             }
         }
-
+        
 
         public JArray GetFsi__operation__dtos(string trig_scen, Patients p)
         {
@@ -247,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
@@ -257,82 +286,44 @@ 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");
-                    fsi_order_dtos[i]["lv1_hosp_item_pric"] = pric.ToString("#0.00");
-                    fsi_order_dtos[i]["lv2_hosp_item_pric"] = pric.ToString("#0.00");
-                    fsi_order_dtos[i]["lv3_hosp_item_pric"] = pric.ToString("#0.00");
-                    fsi_order_dtos[i]["ownpay_amt"] = null;
-                    fsi_order_dtos[i]["selfpay_amt"] = null;
-                    fsi_order_dtos[i]["drord_stop_date"] = null;
-                    //MessageBox.Show("提示" + Convert.ToString(fsi_order_dtos[i]["spec"])+"阿萨");
-                    // if ((string.IsNullOrEmpty(Convert.ToString(fsi_order_dtos[i]["spec"])))| (Convert.ToString(fsi_order_dtos[i]["spec"])==""))
-                    //if (fsi_order_dtos[i]["spec"] == null || fsi_order_dtos[i]["spec"].ToString() == "")
-                    //{
-                    //    fsi_order_dtos[i]["spec"] = fsi_order_dtos[i]["spec_unt"];
-                    //}
-                    /*if (fsi_order_dtos[i]["hilist_code"].ToString().Substring(0, 1) == "C")
-                    {
-                        fsi_order_dtos[i]["chrg_type"] = "08";
-                    }else if (fsi_order_dtos[i]["hilist_code"].ToString().Substring(0, 1) == "X")
-                    {
-                        fsi_order_dtos[i]["chrg_type"] = "09";
-                    }
-                    else if (fsi_order_dtos[i]["hilist_code"].ToString().Substring(0, 1) == "Z")
-                    {
-                        fsi_order_dtos[i]["chrg_type"] = "11";
-                    }else
-                    {
-                        fsi_order_dtos[i]["chrg_type"] = "14";
-                    }*/
-                    fsi_order_dtos[i]["chrg_type"] = "14";//HIS未传收费类别,临时全部默认位其他费
+
+                    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
                 {
                     JObject joRtn = JObject.Parse(errMsg);
-                    JArray jarry = JArray.FromObject(joRtn["data"]);
-
-                    for (int m = 0; m < jarry.Count; m++)
-                    {
-                        jarry[m]["drord_dr_profttl"] = "2";
-                        if (string.IsNullOrEmpty(Convert.ToString(jarry[m]["hilist_lv"])))
-                        {
-                            MessageBox.Show(Convert.ToString(jarry[m]["hosplist_name"]));
-                        }
-                        if (string.IsNullOrEmpty(Convert.ToString(jarry[m]["hilist_code"]))) continue;
-
-                        if (jarry[m]["hilist_code"].ToString().Substring(0, 1) == "C")
-                        {
-                            jarry[m]["chrg_type"] = "08";
-                            jarry[m]["hilist_type"] = "301";
-                        }
-                        else if (jarry[m]["hilist_code"].ToString().Substring(0, 1) == "X")
-                        {
-                            jarry[m]["chrg_type"] = "09";
-                            jarry[m]["hilist_type"] = "101";
-                        }
-                        else if (jarry[m]["hilist_code"].ToString().Substring(0, 1) == "Z")
-                        {
-                            jarry[m]["chrg_type"] = "11";
-                            jarry[m]["hilist_type"] = "101";
-                        }
-                        else
-                        {
-                            jarry[m]["chrg_type"] = "14";
-                            jarry[m]["hilist_type"] = "201";
-                        }
-                        if (jarry[m]["spec"] == null || jarry[m]["spec"].ToString() == "")
-                        {
-                            jarry[m]["spec"] = jarry[m]["spec_unt"];
-                        }
-                    }
-
-                    //return JArray.FromObject(joRtn["data"]);
-                    return jarry;
+                    return JArray.FromObject(joRtn["data"]);
                 }
+
             }
             catch (Exception ex)
             {

+ 1 - 1
CCunMI.csproj

@@ -360,7 +360,7 @@
     <Compile Include="Forms\PreAndInProcessAnalysisForm.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\PreAndInProcessAnalysisForm.Designer.cs">
+    <Compile Include="Forms\PreAndInProcessAnalysisForm.designer.cs">
       <DependentUpon>PreAndInProcessAnalysisForm.cs</DependentUpon>
     </Compile>
     <Compile Include="Forms\PrescriptionCirculation\GridViewSetter.cs" />

+ 250 - 270
Forms/PreAndInProcessAnalysisForm.Designer.cs

@@ -28,27 +28,26 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = 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.uiLabel11 = new Sunny.UI.UILabel();
-            this.tbDspoWay = new Sunny.UI.UITextBox();
             this.uiGroupBox5 = new Sunny.UI.UIGroupBox();
-            this.rtbDspoWayRea = new Sunny.UI.UIRichTextBox();
-            this.cbxDspoWay = new Sunny.UI.UIComboBox();
+            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();
@@ -69,7 +68,7 @@
             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();
@@ -79,83 +78,75 @@
             this.uiGroupBox2.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).BeginInit();
             this.uiGroupBox1.SuspendLayout();
+            this.uiGroupBox4.SuspendLayout();
             this.uiGroupBox3.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvVolaItems)).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, 875);
+            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(1545, 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(1288, 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(1139, 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.uiLabel11);
-            this.uiPanel2.Controls.Add(this.tbDspoWay);
             this.uiPanel2.Controls.Add(this.uiGroupBox5);
-            this.uiPanel2.Controls.Add(this.cbxDspoWay);
             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)));
@@ -163,106 +154,58 @@
             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(1275, 875);
+            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);
             // 
-            // uiLabel11
-            // 
-            this.uiLabel11.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel11.Location = new System.Drawing.Point(54, 360);
-            this.uiLabel11.Name = "uiLabel11";
-            this.uiLabel11.Size = new System.Drawing.Size(90, 20);
-            this.uiLabel11.TabIndex = 25;
-            this.uiLabel11.Text = "处理方式";
-            this.uiLabel11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            this.uiLabel11.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
-            // tbDspoWay
-            // 
-            this.tbDspoWay.Cursor = System.Windows.Forms.Cursors.IBeam;
-            this.tbDspoWay.Enabled = false;
-            this.tbDspoWay.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbDspoWay.Location = new System.Drawing.Point(432, 358);
-            this.tbDspoWay.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
-            this.tbDspoWay.MinimumSize = new System.Drawing.Size(1, 16);
-            this.tbDspoWay.Name = "tbDspoWay";
-            this.tbDspoWay.ShowText = false;
-            this.tbDspoWay.Size = new System.Drawing.Size(321, 24);
-            this.tbDspoWay.TabIndex = 24;
-            this.tbDspoWay.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
-            this.tbDspoWay.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
             // uiGroupBox5
             // 
-            this.uiGroupBox5.Controls.Add(this.rtbDspoWayRea);
-            this.uiGroupBox5.Dock = System.Windows.Forms.DockStyle.Bottom;
+            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, 443);
+            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(1275, 223);
-            this.uiGroupBox5.TabIndex = 23;
-            this.uiGroupBox5.Text = "请填写采用此种处理方式的原因,处理方式为继续执行医嘱时必填";
+            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);
             // 
-            // rtbDspoWayRea
-            // 
-            this.rtbDspoWayRea.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.rtbDspoWayRea.FillColor = System.Drawing.Color.White;
-            this.rtbDspoWayRea.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.rtbDspoWayRea.Location = new System.Drawing.Point(0, 24);
-            this.rtbDspoWayRea.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
-            this.rtbDspoWayRea.MinimumSize = new System.Drawing.Size(1, 1);
-            this.rtbDspoWayRea.Name = "rtbDspoWayRea";
-            this.rtbDspoWayRea.Padding = new System.Windows.Forms.Padding(2);
-            this.rtbDspoWayRea.ShowText = false;
-            this.rtbDspoWayRea.Size = new System.Drawing.Size(1275, 199);
-            this.rtbDspoWayRea.TabIndex = 0;
-            this.rtbDspoWayRea.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
-            this.rtbDspoWayRea.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            this.rtbDspoWayRea.TextChanged += new System.EventHandler(this.rtbDspoWayRea_TextChanged);
-            // 
-            // cbxDspoWay
-            // 
-            this.cbxDspoWay.DataSource = null;
-            this.cbxDspoWay.FillColor = System.Drawing.Color.White;
-            this.cbxDspoWay.FilterMaxCount = 50;
-            this.cbxDspoWay.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.cbxDspoWay.Items.AddRange(new object[] {
-            "",
-            "1.继续执行医嘱",
-            "2.返回修改医嘱"});
-            this.cbxDspoWay.Location = new System.Drawing.Point(166, 358);
-            this.cbxDspoWay.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
-            this.cbxDspoWay.MinimumSize = new System.Drawing.Size(63, 0);
-            this.cbxDspoWay.Name = "cbxDspoWay";
-            this.cbxDspoWay.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
-            this.cbxDspoWay.Size = new System.Drawing.Size(244, 24);
-            this.cbxDspoWay.TabIndex = 22;
-            this.cbxDspoWay.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
-            this.cbxDspoWay.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            this.cbxDspoWay.SelectedIndexChanged += new System.EventHandler(this.cbxDspoWay_SelectedIndexChanged);
+            // 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, 666);
+            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(1275, 209);
-            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;
@@ -272,65 +215,101 @@
             // dgvVolaDetailDtos
             // 
             this.dgvVolaDetailDtos.AllowUserToAddRows = false;
-            dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21;
+            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;
-            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle22.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle22.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle22.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaDetailDtos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22;
+            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;
-            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle23.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle23.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle23.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle23.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle23.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvVolaDetailDtos.DefaultCellStyle = dataGridViewCellStyle23;
+            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";
-            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle24.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle24.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle24.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaDetailDtos.RowHeadersDefaultCellStyle = dataGridViewCellStyle24;
-            dataGridViewCellStyle25.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle25.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle25.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle25.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle25.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            this.dgvVolaDetailDtos.RowsDefaultCellStyle = dataGridViewCellStyle25;
+            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(1275, 185);
+            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);
             // 
@@ -338,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);
             // 
@@ -352,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);
             // 
@@ -366,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);
             // 
@@ -380,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);
             // 
@@ -394,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);
             // 
@@ -408,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);
             // 
@@ -422,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);
             // 
@@ -436,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);
             // 
@@ -450,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);
@@ -474,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);
@@ -485,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);
@@ -496,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);
@@ -507,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);
@@ -518,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);
@@ -529,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);
@@ -540,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);
@@ -551,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);
@@ -562,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
             // 
@@ -613,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, 875);
+            this.uiGroupBox3.Size = new System.Drawing.Size(270, 676);
             this.uiGroupBox3.TabIndex = 2;
             this.uiGroupBox3.Text = "违规项目";
             this.uiGroupBox3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
@@ -624,60 +603,61 @@
             // dgvVolaItems
             // 
             this.dgvVolaItems.AllowUserToAddRows = false;
-            dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            this.dgvVolaItems.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle26;
+            dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaItems.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
             this.dgvVolaItems.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
             this.dgvVolaItems.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle27.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle27.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle27.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaItems.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle27;
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaItems.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
             this.dgvVolaItems.ColumnHeadersHeight = 32;
             this.dgvVolaItems.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle28.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle28.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle28.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle28.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle28.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvVolaItems.DefaultCellStyle = dataGridViewCellStyle28;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle8.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvVolaItems.DefaultCellStyle = dataGridViewCellStyle8;
             this.dgvVolaItems.Dock = System.Windows.Forms.DockStyle.Fill;
             this.dgvVolaItems.EnableHeadersVisualStyles = false;
             this.dgvVolaItems.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.dgvVolaItems.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
             this.dgvVolaItems.Location = new System.Drawing.Point(0, 26);
             this.dgvVolaItems.Name = "dgvVolaItems";
-            dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle29.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle29.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle29.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle29.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle29.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaItems.RowHeadersDefaultCellStyle = dataGridViewCellStyle29;
-            dataGridViewCellStyle30.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle30.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle30.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle30.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle30.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            this.dgvVolaItems.RowsDefaultCellStyle = dataGridViewCellStyle30;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaItems.RowHeadersDefaultCellStyle = dataGridViewCellStyle9;
+            dataGridViewCellStyle10.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            this.dgvVolaItems.RowsDefaultCellStyle = dataGridViewCellStyle10;
             this.dgvVolaItems.RowTemplate.Height = 23;
             this.dgvVolaItems.SelectedIndex = -1;
-            this.dgvVolaItems.Size = new System.Drawing.Size(270, 849);
+            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);
             // 
             // PreAndInProcessAnalysisForm
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1545, 928);
+            this.ClientSize = new System.Drawing.Size(1258, 741);
             this.Controls.Add(this.uiPanel2);
             this.Controls.Add(this.uiGroupBox3);
             this.Controls.Add(this.uiPanel1);
@@ -689,6 +669,7 @@
             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();
             this.ResumeLayout(false);
@@ -699,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;
@@ -719,18 +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.UIButton btnOK;
-        private Sunny.UI.UIButton btnCancle;
-        private Sunny.UI.UIGroupBox uiGroupBox3;
-        private Sunny.UI.UIDataGridView dgvVolaItems;
-        private Sunny.UI.UIGroupBox uiGroupBox2;
-        private Sunny.UI.UIDataGridView dgvVolaDetailDtos;
-        private Sunny.UI.UIGroupBox uiGroupBox5;
-        private Sunny.UI.UIRichTextBox rtbDspoWayRea;
-        private Sunny.UI.UIComboBox cbxDspoWay;
-        private Sunny.UI.UILabel uiLabel11;
-        private Sunny.UI.UITextBox tbDspoWay;
+        private Sunny.UI.UIButton btnModify;
+        private Sunny.UI.UIButton btn_Continue;
     }
 }

+ 24 - 144
Forms/PreAndInProcessAnalysisForm.cs

@@ -1,9 +1,6 @@
-
-using Newtonsoft.Json.Linq;
+using Newtonsoft.Json.Linq;
 using PTMedicalInsurance.FormSetter;
 using PTMedicalInsurance.Helper;
-using PTMedicalInsurance.Variables;
-using Sunny.UI;
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -13,6 +10,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
+using PTMedicalInsurance.Variables;
 
 namespace PTMedicalInsurance.Forms
 {
@@ -20,18 +18,14 @@ namespace PTMedicalInsurance.Forms
     {
         private DataTable dtVolaItems;
         private DataTable dtVolaDetail;
-        private JObject currentItem;
 
         private GridViewSetter grdSetter = new GridViewSetter();
         private JArray jaVolaItems;
-        public JArray jaWarns ;
+        public string JrID = "";
 
-        private bool _isUpdatingProgrammatically = false; //使用标志位防止代码触发
         public PreAndInProcessAnalysisForm()
         {
             InitializeComponent();
-            cbxDspoWay.SelectedIndex = 1;
-            
         }
 
         public PreAndInProcessAnalysisForm(JObject jo)
@@ -41,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");
@@ -51,17 +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");
-
-            this.StartPosition = FormStartPosition.CenterParent;
+            //rbtVolaContent.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_cont");            
         }
 
         private void showVolaItemContent(JObject jo)
         {
-            _isUpdatingProgrammatically = true;
-            cbxDspoWay.Text = "";
-            _isUpdatingProgrammatically = false;
             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");
@@ -72,8 +63,6 @@ namespace PTMedicalInsurance.Forms
             tbVolaEvid.Text = JsonHelper.getDestValue(jo, "vola_evid");
             tbRuleName.Text = JsonHelper.getDestValue(jo, "rule_name");
             rbtVolaContent.Text = JsonHelper.getDestValue(jo, "vola_cont");
-            tbDspoWay.Text = JsonHelper.getDestValue(jo, "dspo_way_desc");
-            rtbDspoWayRea.Text = JsonHelper.getDestValue(jo, "dspo_way_rea");
             dtVolaDetail = (DataTable)jo["judge_result_detail_dtos"].ToObject(typeof(DataTable));
             dgvVolaDetailDtos.DataSource = dtVolaDetail;
             grdSetter.SetHeaderTextOfPAIPAVolaDetailDtos(dgvVolaDetailDtos);
@@ -81,33 +70,6 @@ namespace PTMedicalInsurance.Forms
 
         private void btnOK_Click(object sender, EventArgs e)
         {
-
-            jaWarns = new JArray();
-            foreach (JObject joSub in jaVolaItems)
-            {
-                JObject joTmp = new JObject();
-                string dspo_way = JsonHelper.getDestValue(joSub, "dspo_way");
-                string dspo_way_rea = JsonHelper.getDestValue(joSub, "dspo_way_rea");
-                string warn_rslt_id = JsonHelper.getDestValue(joSub, "jr_id");
-                string rule_name = JsonHelper.getDestValue(joSub, "rule_name");
-                joTmp.Add("warn_rslt_id",warn_rslt_id);
-                joTmp.Add("dspo_way", dspo_way);
-                joTmp.Add("dspo_way_rea",dspo_way_rea );
-                jaWarns.Add(joTmp);
-
-                if (dspo_way == "")
-                {
-                    MessageBox.Show($"检测到违规名称:{rule_name},违规标识:{warn_rslt_id}的违规条目未填写处理方式");
-                    return;
-                }
-
-                if ((dspo_way == "1") && (dspo_way_rea == ""))
-                {
-                    MessageBox.Show($"检测到违规名称:{rule_name},违规标识:{warn_rslt_id}的违规条目处理方式为【继续执行医嘱】,但未填写处理原因");
-                    return;
-                }
-            }
-
             DialogResult = DialogResult.OK;
         }
 
@@ -119,125 +81,43 @@ namespace PTMedicalInsurance.Forms
         private void dgvVolaItems_SelectionChanged(object sender, EventArgs e)
         {
             int i = dgvVolaItems.CurrentRow.Index;
-            currentItem = (JObject)jaVolaItems[i];
-            showVolaItemContent(currentItem);
+            showVolaItemContent((JObject)jaVolaItems[i]);
         }
 
-        private void btnSave_Click(object sender, EventArgs e)
+        private void dgvVolaItems_CellContentClick(object sender, DataGridViewCellEventArgs e)
         {
-            if (cbxDspoWay.SelectedIndex == 1)
-            {
-                if (string.IsNullOrEmpty(rtbDspoWayRea.Text))
-                {
-                    MessageBox.Show("请输入原因");
-                    return;
-                }
-            }
-
-            int i = dgvVolaItems.CurrentRow.Index;
-            JObject jo = (JObject)jaVolaItems[i];
-            JObject joTmp = new JObject();
-            joTmp.Add("warn_rslt_id", JsonHelper.getDestValue(jo, "jr_id"));
-            joTmp.Add("dspo_way", cbxDspoWay.SelectedIndex);
-            joTmp.Add("dspo_way_rea", rtbDspoWayRea.Text);
-
 
-            bool isExist = false;
-            foreach (JObject joSub in jaWarns)
-            {
-
-                if (joSub["warn_rslt_id"].ToString() == joTmp["warn_rslt_id"].ToString())
-                {
-                    isExist = true;
-                }
-
-            }
+        }
 
-            if (!isExist)
-            {
-                jaWarns.Add(joTmp);
-                dgvVolaItems.Rows[i].DefaultCellStyle.BackColor = Color.Red;
-                MessageBox.Show("保存成功,请继续下一条");//如果重复点击,则覆盖,同时有标识标识改数据已经添加成功
-            }
+        private void uiRichTextBox1_TextChanged(object sender, EventArgs e)
+        {
 
+        }
 
+        private void uiDataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
+        {
 
         }
 
-       
-
-        private void cbxDspoWay_SelectedIndexChanged(object sender, EventArgs e)
+        private void btnModify_Click(object sender, EventArgs e)
         {
-            if (_isUpdatingProgrammatically)
+            if (rtb_DspoWayRea.Text == "")
             {
+                MessageBox.Show("处理方式为修改医嘱时,处理原因必填!");
                 return;
             }
 
-            if (currentItem == null)
-            {
-                return;
-            }
-
-            if (cbxDspoWay.SelectedIndex == 1)
-            {
-                if (string.IsNullOrEmpty(rtbDspoWayRea.Text))
-                {
-                    MessageBox.Show(this,"请输入原因");
-                    return;
-                }
-            }
-
-            string dspo_way_desc = "";
-
-            if (currentItem.ContainsKey("dspo_way"))
-            {
-                if (cbxDspoWay.Text != "")
-                {
-                    dspo_way_desc = cbxDspoWay.Text.Substring(2);
-                }
-
-                currentItem["dspo_way"] = cbxDspoWay.SelectedIndex;
-                currentItem["dspo_way_desc"] = dspo_way_desc;
-                tbDspoWay.Text = dspo_way_desc;
-            }
-            else
-            {
-                if (cbxDspoWay.Text != "")
-                {
-                    dspo_way_desc = cbxDspoWay.Text.Substring(2);
-                }
-
-                currentItem.Add("dspo_way", cbxDspoWay.SelectedIndex);
-                currentItem.Add("dspo_way_desc", dspo_way_desc);
-                tbDspoWay.Text = dspo_way_desc;
-            }
-
-            if (currentItem.ContainsKey("dspo_way_rea"))
-            {
-                currentItem["dspo_way_rea"] = rtbDspoWayRea.Text;
-            }
-            else
-            {
-                currentItem.Add("dspo_way_rea", rtbDspoWayRea.Text);
-            }
+            Global.Set.dspoWayRea = rtb_DspoWayRea.Text;
 
+            Global.Set.dspoWay = "2";
+            DialogResult = DialogResult.OK;
         }
 
-        private void rtbDspoWayRea_TextChanged(object sender, EventArgs e)
+        private void btn_Continue_Click(object sender, EventArgs e)
         {
-            if (currentItem == null)
-            {
-                return;
-            }
-
-            if (currentItem.ContainsKey("dspo_way_rea"))
-            {
-                currentItem["dspo_way_rea"] = rtbDspoWayRea.Text;
-            }
-            else
-            {
-                currentItem.Add("dspo_way_rea", rtbDspoWayRea.Text);
-            }
+            Global.Set.dspoWayRea = "继续执行医嘱";
+            Global.Set.dspoWay = "1";
+            DialogResult = DialogResult.OK;
         }
     }
 }