Procházet zdrojové kódy

20250226CM提交更新

837390164@qq.com před 3 měsíci
rodič
revize
42f30304da

+ 2 - 0
Business/HisMainBusiness.cs

@@ -136,6 +136,7 @@ namespace PTMedicalInsurance.Business
             inf.MobilePay.secretKey = JsonHelper.getDestValue(joCenterURL2, "mobilePay.secretKey");
             inf.MobilePay.privateKey = JsonHelper.getDestValue(joCenterURL2, "mobilePay.privateKey");
             inf.MobilePay.publicKey = JsonHelper.getDestValue(joCenterURL2, "mobilePay.publicKey");
+            inf.MobilePay.devSafeInfo = JsonHelper.getDestValue(joCenterURL2, "mobilePay.devSafeInfo");
 
             inf.PresCir.ak = JsonHelper.getDestValue(joCenterURL2, "presCir.ak"); 
             inf.PresCir.sk = JsonHelper.getDestValue(joCenterURL2, "presCir.sk");
@@ -193,6 +194,7 @@ namespace PTMedicalInsurance.Business
             inf.MobilePay.secretKey = JsonHelper.getDestValue(joCenterURL2, "mobilePay.secretKey");
             inf.MobilePay.privateKey = JsonHelper.getDestValue(joCenterURL2, "mobilePay.privateKey");
             inf.MobilePay.publicKey = JsonHelper.getDestValue(joCenterURL2, "mobilePay.publicKey");
+            inf.MobilePay.devSafeInfo = JsonHelper.getDestValue(joCenterURL2, "mobilePay.devSafeInfo");
 
             inf.PresCir.ak = JsonHelper.getDestValue(joCenterURL2, "presCir.ak");
             inf.PresCir.sk = JsonHelper.getDestValue(joCenterURL2, "presCir.sk");

+ 13 - 7
Business/MobilePay.cs

@@ -38,12 +38,13 @@ namespace PTMedicalInsurance.Business
                 //西安普瑞眼视光医院测试环境
                 Global.curEvt.URL = Global.inf.MobilePay.url;
 
-                Global.inf.AK = Global.inf.MobilePay.ak;
-                Global.inf.SK = Global.inf.MobilePay.sk;
+                Global.inf.AK = Global.inf.MobilePay.secretKey;
+                Global.inf.SK = Global.inf.MobilePay.privateKey;
                 Global.inf.appId = Global.inf.MobilePay.appid;
                 Global.inf.Secret = Global.inf.MobilePay.secretKey;
                 Global.inf.privateKey = Global.inf.MobilePay.privateKey;
                 Global.inf.publicKey = Global.inf.MobilePay.publicKey;
+                Global.inf.devSafeInfo = Global.inf.MobilePay.devSafeInfo;
 
                 JObject joInpar = JObject.Parse(inpar);
                 joParam = JObject.Parse(JsonHelper.getDestValue(joInpar,"params[0]"));
@@ -85,7 +86,7 @@ namespace PTMedicalInsurance.Business
                     outPar = errMsg;
                     return -1;
                 }
-                Global.writeLog(errMsg);
+                Global.writeLog("8888:-1"+errMsg);
                 YH6201Inpar = errMsg;
                 //JObject joYH6201Rtn = invoker.invokeMPService("6201", eh.encrypt(errMsg));
 
@@ -97,7 +98,7 @@ namespace PTMedicalInsurance.Business
                 }
                 //JObject joEncData = JObject.Parse(eh.decrypt(errMsg));
                 JObject joEncData = JObject.Parse(errMsg);
-                Global.writeLog(JsonHelper.Compress(joEncData));
+                Global.writeLog(JsonHelper.Compress("8888:-2" + joEncData));
                 //设置
                 setPatientBy6201Rtn(joEncData);
                 //存入MI 患者表,登记表,费用表
@@ -559,7 +560,7 @@ namespace PTMedicalInsurance.Business
             MPat.name = JsonHelper.getDestValue(jo, "result.patName");
             MPat.brdy = JsonHelper.getDestValue(jo, "result.patBirthdate");
             MPat.gend = JsonHelper.getDestValue(jo, "result.patSex");
-            MPat.age = JsonHelper.getDestValue(jo, "result.Age");
+            MPat.age = JsonHelper.getDestValue(jo, "result.age");
             MPat.naty = JsonHelper.getDestValue(jo, "result.naty");
             MPat.certNO = JsonHelper.getDestValue(jo, "result.credNo");
             MPat.IDNO = MPat.certNO;
@@ -768,7 +769,10 @@ namespace PTMedicalInsurance.Business
                     ((JObject)jaFeedetailList[i]).Property("usedFrquDscr").Remove();
                     ((JObject)jaFeedetailList[i]).Property("prdDays").Remove();
                     ((JObject)jaFeedetailList[i]).Property("medcWayDscr").Remove();
+
                     //((JObject)jaFeedetailList[i]).Property("bilgDeptCodg").Remove();
+                    jaFeedetailList[i]["bilgDeptCodg"] = "100106";
+
                     ((JObject)jaFeedetailList[i]).Property("acordDeptCodg").Remove();
                     ((JObject)jaFeedetailList[i]).Property("acordDeptName").Remove();
                     ((JObject)jaFeedetailList[i]).Property("ordersDrCode").Remove();
@@ -811,7 +815,7 @@ namespace PTMedicalInsurance.Business
                 joInpar.Add("iptOtpNo", JsonHelper.getDestValue(joMdtrtinfo, "ipt_no"));//住院/门诊号
                 joInpar.Add("atddrNo", JsonHelper.getDestValue(joMdtrtinfo, "atddr_no"));//医师编码
                 joInpar.Add("drName", JsonHelper.getDestValue(joMdtrtinfo, "chfpdr_name"));//医师姓名
-                joInpar.Add("deptCode", JsonHelper.getDestValue(joMdtrtinfo, "adm_dept_codg"));//科室编码
+                joInpar.Add("deptCode","100106" );//科室编码 JsonHelper.getDestValue(joMdtrtinfo, "adm_dept_codg")
                 joInpar.Add("deptName", JsonHelper.getDestValue(joMdtrtinfo, "adm_dept_name"));//科室名称
                 joInpar.Add("caty", "A10");//科别
                 joInpar.Add("mdtrtId", JsonHelper.getDestValue(joMdtrtinfo, "mdtrtId"));//就诊ID
@@ -852,6 +856,8 @@ namespace PTMedicalInsurance.Business
                 //joInpar.Add("midSetlFlag", JsonHelper.getDestValue(joInsuAdmObj, "midSetlFlag"));//中途结算标志 前端传入
                 joInpar.Add("diseinfoList", jaDiseinfoList);//诊断或症状明细
                 joInpar.Add("feedetailList", jaFeedetailList);//费用明细
+
+                joInpar.Add("devSafeInfo", Global.inf.devSafeInfo);//设备安全信息
                 //joInpar.Add("admDiagDscr", JsonHelper.getDestValue(joMdtrtinfo, "admDiagDscr"));//入院诊断描述
                 //joInpar.Add("admDeptCodg", JsonHelper.getDestValue(joMdtrtinfo, "admDeptCodg"));//入院科室编码
                 //joInpar.Add("admDeptName", JsonHelper.getDestValue(joMdtrtinfo, "admDeptName"));//入院科室名称
@@ -1116,7 +1122,7 @@ namespace PTMedicalInsurance.Business
                     joTmp.Add("diagSrtNo", jaDiagnoses[i]["diag_srt_no"]);//
                     joTmp.Add("diagCode", jaDiagnoses[i]["diag_code"]);//
                     joTmp.Add("diagName", jaDiagnoses[i]["diag_name"]);//
-                    joTmp.Add("diagDept", jaDiagnoses[i]["diag_dept"]);//
+                    joTmp.Add("diagDept", "综合眼病专科");//jaDiagnoses[i]["diag_dept"]
                     joTmp.Add("diseDorNo", jaDiagnoses[i]["dise_dor_no"]);//
                     joTmp.Add("diseDorName", jaDiagnoses[i]["dise_dor_name"]);//
                     joTmp.Add("diagTime", jaDiagnoses[i]["diag_time"]);//

+ 27 - 0
FormSetter/GridViewSetter.cs

@@ -1244,6 +1244,33 @@ namespace PTMedicalInsurance.FormSetter
 
         #endregion
 
+        #region 事前事中
+        public void SetHeaderTextOfPAIPAVolaItem(DataGridView dgv)
+        {
+            dgv.AutoGenerateColumns = false;
+            dgv.Columns.Clear();
+
+            AddDGVColumn(dgv, "规则名称", "rule_name", 500);
+            dgv.ColumnHeadersVisible = false;
+            dgv.RowHeadersVisible = false;
+        }
+
+        public void SetHeaderTextOfPAIPAVolaDetailDtos(DataGridView dgv)
+        {
+            dgv.AutoGenerateColumns = false;
+            dgv.Columns.Clear();
+
+            AddDGVColumn(dgv, "医保就诊号", "mdtrt_id", 200);
+            AddDGVColumn(dgv, "违规明细标识", "jrd_id", 300);
+            AddDGVColumn(dgv, "处方(医嘱)标识", "rx_id", 120);
+            AddDGVColumn(dgv, "HIS就真号", "patn_id", 200);
+            AddDGVColumn(dgv, "违规金额", "vola_amt", 200);
+            AddDGVColumn(dgv, "违规明细类型", "vola_item_type", 120);
+
+            dgv.RowHeadersVisible = false;
+        }
+        #endregion
+
         #region【设置dataGrideView列宽自适应】
         public void DatagridviewColumnWidthAdaptation(DataGridView dgv)
         {

+ 97 - 0
Forms/PreAndInProcessAnalysisForm.cs

@@ -0,0 +1,97 @@
+using Newtonsoft.Json.Linq;
+using PTMedicalInsurance.FormSetter;
+using PTMedicalInsurance.Helper;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace PTMedicalInsurance.Forms
+{
+    public partial class PreAndInProcessAnalysisForm : Form
+    {
+        private DataTable dtVolaItems;
+        private DataTable dtVolaDetail;
+
+        private GridViewSetter grdSetter = new GridViewSetter();
+        private JArray jaVolaItems;
+        public PreAndInProcessAnalysisForm()
+        {
+            InitializeComponent();
+        }
+
+        public PreAndInProcessAnalysisForm(JObject jo)
+        {
+            InitializeComponent();
+            jaVolaItems = JArray.Parse(JsonHelper.getDestValue(jo, "output.result"));
+            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");
+            //tbMdtrdID.Text = JsonHelper.getDestValue(jo, "output.result[0].mdtrt_id");
+            //tbVolaAmt.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_amt");
+            //tbVolaAmtStas.Text = JsonHelper.getDestValue(jo, "output.result[0].vola_amt_stas");
+            //tbSevDeg.Text = JsonHelper.getDestValue(jo, "output.result[0].sev_deg");
+            //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");
+        }
+
+        private void showVolaItemContent(JObject jo)
+        {
+            tbJrID.Text = JsonHelper.getDestValue(jo, "jr_id");
+            tbRuleID.Text = JsonHelper.getDestValue(jo, "rule_id");
+            tbPatID.Text = JsonHelper.getDestValue(jo, "patn_id");
+            tbMdtrdID.Text = JsonHelper.getDestValue(jo, "mdtrt_id");
+            tbVolaAmt.Text = JsonHelper.getDestValue(jo, "vola_amt");
+            tbVolaAmtStas.Text = JsonHelper.getDestValue(jo, "vola_amt_stas");
+            tbSevDeg.Text = JsonHelper.getDestValue(jo, "sev_deg");
+            tbVolaBhvrType.Text = JsonHelper.getDestValue(jo, "vola_bhvr_type");
+            tbVolaEvid.Text = JsonHelper.getDestValue(jo, "vola_evid");
+            tbRuleName.Text = JsonHelper.getDestValue(jo, "rule_name");
+            rbtVolaContent.Text = JsonHelper.getDestValue(jo, "vola_cont");
+            dtVolaDetail = (DataTable)jo["judge_result_detail_dtos"].ToObject(typeof(DataTable));
+            dgvVolaDetailDtos.DataSource = dtVolaDetail;
+            grdSetter.SetHeaderTextOfPAIPAVolaDetailDtos(dgvVolaDetailDtos);
+        }
+
+        private void btnOK_Click(object sender, EventArgs e)
+        {
+            DialogResult = DialogResult.OK;
+        }
+
+        private void btnCancle_Click(object sender, EventArgs e)
+        {
+            DialogResult = DialogResult.Cancel;
+        }
+
+        private void dgvVolaItems_SelectionChanged(object sender, EventArgs e)
+        {
+            int i = dgvVolaItems.CurrentRow.Index;
+            showVolaItemContent((JObject)jaVolaItems[i]);
+        }
+
+        private void dgvVolaItems_CellContentClick(object sender, DataGridViewCellEventArgs e)
+        {
+
+        }
+
+        private void uiRichTextBox1_TextChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void uiDataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
+        {
+
+        }
+    }
+}

+ 640 - 0
Forms/PreAndInProcessAnalysisForm.designer.cs

@@ -0,0 +1,640 @@
+namespace PTMedicalInsurance.Forms
+{
+    partial class PreAndInProcessAnalysisForm
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.uiPanel1 = new Sunny.UI.UIPanel();
+            this.btnCancle = new Sunny.UI.UIButton();
+            this.btnOK = new Sunny.UI.UIButton();
+            this.uiPanel2 = new Sunny.UI.UIPanel();
+            this.uiGroupBox2 = new Sunny.UI.UIGroupBox();
+            this.tbRuleName = new Sunny.UI.UITextBox();
+            this.tbVolaEvid = new Sunny.UI.UITextBox();
+            this.tbVolaBhvrType = new Sunny.UI.UITextBox();
+            this.tbSevDeg = new Sunny.UI.UITextBox();
+            this.tbVolaAmtStas = new Sunny.UI.UITextBox();
+            this.tbVolaAmt = new Sunny.UI.UITextBox();
+            this.tbMdtrdID = new Sunny.UI.UITextBox();
+            this.tbPatID = new Sunny.UI.UITextBox();
+            this.tbRuleID = new Sunny.UI.UITextBox();
+            this.tbJrID = new Sunny.UI.UITextBox();
+            this.uiLabel6 = new Sunny.UI.UILabel();
+            this.uiLabel7 = new Sunny.UI.UILabel();
+            this.uiLabel8 = new Sunny.UI.UILabel();
+            this.uiLabel9 = new Sunny.UI.UILabel();
+            this.uiLabel10 = new Sunny.UI.UILabel();
+            this.uiLabel5 = new Sunny.UI.UILabel();
+            this.uiLabel4 = new Sunny.UI.UILabel();
+            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.rbtVolaContent = new Sunny.UI.UIRichTextBox();
+            this.uiGroupBox3 = new Sunny.UI.UIGroupBox();
+            this.dgvVolaItems = new Sunny.UI.UIDataGridView();
+            this.dgvVolaDetailDtos = new Sunny.UI.UIDataGridView();
+            this.uiPanel1.SuspendLayout();
+            this.uiPanel2.SuspendLayout();
+            this.uiGroupBox2.SuspendLayout();
+            this.uiGroupBox1.SuspendLayout();
+            this.uiGroupBox3.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaItems)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // uiPanel1
+            // 
+            this.uiPanel1.Controls.Add(this.btnCancle);
+            this.uiPanel1.Controls.Add(this.btnOK);
+            this.uiPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.uiPanel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiPanel1.Location = new System.Drawing.Point(0, 538);
+            this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiPanel1.Name = "uiPanel1";
+            this.uiPanel1.Size = new System.Drawing.Size(1302, 53);
+            this.uiPanel1.TabIndex = 0;
+            this.uiPanel1.Text = null;
+            this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiPanel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // btnCancle
+            // 
+            this.btnCancle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnCancle.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.btnCancle.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnCancle.Location = new System.Drawing.Point(1045, 3);
+            this.btnCancle.MinimumSize = new System.Drawing.Size(1, 1);
+            this.btnCancle.Name = "btnCancle";
+            this.btnCancle.Size = new System.Drawing.Size(100, 35);
+            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.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.btnCancle.Click += new System.EventHandler(this.btnCancle_Click);
+            // 
+            // btnOK
+            // 
+            this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnOK.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.btnOK.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnOK.Location = new System.Drawing.Point(896, 4);
+            this.btnOK.MinimumSize = new System.Drawing.Size(1, 1);
+            this.btnOK.Name = "btnOK";
+            this.btnOK.Size = new System.Drawing.Size(100, 35);
+            this.btnOK.TabIndex = 0;
+            this.btnOK.Text = "确定";
+            this.btnOK.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btnOK.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
+            // 
+            // uiPanel2
+            // 
+            this.uiPanel2.Controls.Add(this.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)));
+            this.uiPanel2.Location = new System.Drawing.Point(270, 0);
+            this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiPanel2.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiPanel2.Name = "uiPanel2";
+            this.uiPanel2.Size = new System.Drawing.Size(1032, 538);
+            this.uiPanel2.TabIndex = 1;
+            this.uiPanel2.Text = null;
+            this.uiPanel2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiPanel2.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.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiGroupBox2.Location = new System.Drawing.Point(0, 383);
+            this.uiGroupBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiGroupBox2.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiGroupBox2.Name = "uiGroupBox2";
+            this.uiGroupBox2.Padding = new System.Windows.Forms.Padding(0, 24, 0, 0);
+            this.uiGroupBox2.Size = new System.Drawing.Size(1032, 155);
+            this.uiGroupBox2.TabIndex = 21;
+            this.uiGroupBox2.Text = "违规明细";
+            this.uiGroupBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiGroupBox2.TitleInterval = 0;
+            this.uiGroupBox2.TitleTop = 8;
+            this.uiGroupBox2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbRuleName.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbVolaEvid
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbVolaEvid.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbVolaBhvrType
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbVolaBhvrType.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbSevDeg
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbSevDeg.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbVolaAmtStas
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbVolaAmtStas.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbVolaAmt
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbVolaAmt.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbMdtrdID
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbMdtrdID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbPatID
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbPatID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbRuleID
+            // 
+            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.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.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbRuleID.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tbJrID
+            // 
+            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.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.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.Name = "uiLabel6";
+            this.uiLabel6.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel6.TabIndex = 11;
+            this.uiLabel6.Text = "规则名称";
+            this.uiLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel6.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel7";
+            this.uiLabel7.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel7.TabIndex = 10;
+            this.uiLabel7.Text = "违规依据";
+            this.uiLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel7.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel8";
+            this.uiLabel8.Size = new System.Drawing.Size(135, 20);
+            this.uiLabel8.TabIndex = 9;
+            this.uiLabel8.Text = "违规行为分类";
+            this.uiLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel8.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel9";
+            this.uiLabel9.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel9.TabIndex = 8;
+            this.uiLabel9.Text = "严重程度";
+            this.uiLabel9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel9.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel10";
+            this.uiLabel10.Size = new System.Drawing.Size(139, 20);
+            this.uiLabel10.TabIndex = 7;
+            this.uiLabel10.Text = "违规金额计算状态";
+            this.uiLabel10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel10.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel5";
+            this.uiLabel5.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel5.TabIndex = 6;
+            this.uiLabel5.Text = "违规金额";
+            this.uiLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel5.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel4";
+            this.uiLabel4.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel4.TabIndex = 5;
+            this.uiLabel4.Text = "就诊ID";
+            this.uiLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel3";
+            this.uiLabel3.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel3.TabIndex = 4;
+            this.uiLabel3.Text = "参保人ID";
+            this.uiLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel2";
+            this.uiLabel2.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel2.TabIndex = 3;
+            this.uiLabel2.Text = "规则ID";
+            this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // 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.Name = "uiLabel1";
+            this.uiLabel1.Size = new System.Drawing.Size(90, 20);
+            this.uiLabel1.TabIndex = 2;
+            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);
+            // 
+            // rbtVolaContent
+            // 
+            this.rbtVolaContent.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.rbtVolaContent.FillColor = System.Drawing.Color.White;
+            this.rbtVolaContent.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.rbtVolaContent.Location = new System.Drawing.Point(0, 24);
+            this.rbtVolaContent.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.rbtVolaContent.MinimumSize = new System.Drawing.Size(1, 1);
+            this.rbtVolaContent.Name = "rbtVolaContent";
+            this.rbtVolaContent.Padding = new System.Windows.Forms.Padding(2);
+            this.rbtVolaContent.ShowText = false;
+            this.rbtVolaContent.Size = new System.Drawing.Size(763, 249);
+            this.rbtVolaContent.TabIndex = 0;
+            this.rbtVolaContent.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.rbtVolaContent.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiGroupBox3
+            // 
+            this.uiGroupBox3.Controls.Add(this.dgvVolaItems);
+            this.uiGroupBox3.Dock = System.Windows.Forms.DockStyle.Left;
+            this.uiGroupBox3.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiGroupBox3.Location = new System.Drawing.Point(0, 0);
+            this.uiGroupBox3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.uiGroupBox3.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiGroupBox3.Name = "uiGroupBox3";
+            this.uiGroupBox3.Padding = new System.Windows.Forms.Padding(0, 26, 0, 0);
+            this.uiGroupBox3.Size = new System.Drawing.Size(270, 538);
+            this.uiGroupBox3.TabIndex = 2;
+            this.uiGroupBox3.Text = "违规项目";
+            this.uiGroupBox3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiGroupBox3.TitleInterval = 6;
+            this.uiGroupBox3.TitleTop = 10;
+            this.uiGroupBox3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // dgvVolaItems
+            // 
+            this.dgvVolaItems.AllowUserToAddRows = false;
+            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;
+            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;
+            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";
+            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, 512);
+            this.dgvVolaItems.TabIndex = 0;
+            this.dgvVolaItems.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.dgvVolaItems.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvVolaItems_CellContentClick);
+            this.dgvVolaItems.SelectionChanged += new System.EventHandler(this.dgvVolaItems_SelectionChanged);
+            // 
+            // dgvVolaDetailDtos
+            // 
+            this.dgvVolaDetailDtos.AllowUserToAddRows = false;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvVolaDetailDtos.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaDetailDtos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            this.dgvVolaDetailDtos.ColumnHeadersHeight = 32;
+            this.dgvVolaDetailDtos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvVolaDetailDtos.DefaultCellStyle = dataGridViewCellStyle3;
+            this.dgvVolaDetailDtos.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.dgvVolaDetailDtos.EnableHeadersVisualStyles = false;
+            this.dgvVolaDetailDtos.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.dgvVolaDetailDtos.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.Location = new System.Drawing.Point(0, 24);
+            this.dgvVolaDetailDtos.Name = "dgvVolaDetailDtos";
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaDetailDtos.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
+            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            this.dgvVolaDetailDtos.RowsDefaultCellStyle = dataGridViewCellStyle5;
+            this.dgvVolaDetailDtos.RowTemplate.Height = 23;
+            this.dgvVolaDetailDtos.SelectedIndex = -1;
+            this.dgvVolaDetailDtos.Size = new System.Drawing.Size(1032, 131);
+            this.dgvVolaDetailDtos.TabIndex = 1;
+            this.dgvVolaDetailDtos.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.dgvVolaDetailDtos.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uiDataGridView1_CellContentClick);
+            // 
+            // PreAndInProcessAnalysisForm
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1302, 591);
+            this.Controls.Add(this.uiPanel2);
+            this.Controls.Add(this.uiGroupBox3);
+            this.Controls.Add(this.uiPanel1);
+            this.Name = "PreAndInProcessAnalysisForm";
+            this.Text = "事前事中智能审核";
+            this.uiPanel1.ResumeLayout(false);
+            this.uiPanel2.ResumeLayout(false);
+            this.uiGroupBox2.ResumeLayout(false);
+            this.uiGroupBox1.ResumeLayout(false);
+            this.uiGroupBox3.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaItems)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private Sunny.UI.UIPanel uiPanel1;
+        private Sunny.UI.UIPanel uiPanel2;
+        private Sunny.UI.UITextBox tbRuleName;
+        private Sunny.UI.UITextBox tbVolaEvid;
+        private Sunny.UI.UITextBox tbVolaBhvrType;
+        private Sunny.UI.UITextBox tbSevDeg;
+        private Sunny.UI.UITextBox tbVolaAmtStas;
+        private Sunny.UI.UITextBox tbVolaAmt;
+        private Sunny.UI.UITextBox tbMdtrdID;
+        private Sunny.UI.UITextBox tbPatID;
+        private Sunny.UI.UITextBox tbRuleID;
+        private Sunny.UI.UITextBox tbJrID;
+        private Sunny.UI.UILabel uiLabel6;
+        private Sunny.UI.UILabel uiLabel7;
+        private Sunny.UI.UILabel uiLabel8;
+        private Sunny.UI.UILabel uiLabel9;
+        private Sunny.UI.UILabel uiLabel10;
+        private Sunny.UI.UILabel uiLabel5;
+        private Sunny.UI.UILabel uiLabel4;
+        private Sunny.UI.UILabel uiLabel3;
+        private Sunny.UI.UILabel uiLabel2;
+        private Sunny.UI.UILabel uiLabel1;
+        private Sunny.UI.UIGroupBox uiGroupBox1;
+        private Sunny.UI.UIRichTextBox rbtVolaContent;
+        private Sunny.UI.UIGroupBox uiGroupBox2;
+        private Sunny.UI.UIButton btnOK;
+        private Sunny.UI.UIButton btnCancle;
+        private Sunny.UI.UIGroupBox uiGroupBox3;
+        private Sunny.UI.UIDataGridView dgvVolaItems;
+        private Sunny.UI.UIDataGridView dgvVolaDetailDtos;
+    }
+}

+ 120 - 0
Forms/PreAndInProcessAnalysisForm.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 1 - 1
Helper/EncryptHelper.cs

@@ -39,7 +39,7 @@ namespace PTMedicalInsurance.Helper
             }
             finally
             {
-                //Global.writeLog("ak:" + appSecret + ";sk:" + privateKey + ";appid:" + appId, data, encryptData);
+                Global.writeLog("ak:" + Global.inf.AK + ";sk:" + Global.inf.SK + ";appid:" + Global.inf.appId, data, encryptData);
             }
         }
 

+ 2 - 2
Helper/InvokeHelper.cs

@@ -733,9 +733,9 @@ namespace PTMedicalInsurance.Helper
                 }
                 EncryptHelper encrypt = new EncryptHelper();
                 //西安医保移动支付测试环境
-                Global.inf.mobilePayURL = @"http:\\10.37.128.40:8086";
+                Global.inf.mobilePayURL = @"http://10.37.128.40:8086";
                 //西安医保移动支付正式环境
-                //Global.inf.mobilePayURL = @"http:\\10.37.128.41:8086";
+                //Global.inf.mobilePayURL = @"http://10.37.128.41:8086";
                 string data = JsonHelper.setMPCenterInpar(funNO, joInput);
                 // 移动支付地址
                 Global.curEvt.URL = Global.inf.mobilePayURL + url;

+ 114 - 69
InsuBusiness.cs

@@ -558,31 +558,41 @@ namespace PTMedicalInsurance
                             mIS.deleteFee(out errMsg);
 
                             #region【住院费用上传前调用3101事前服务】
-                            //1.获取3101入参报文
-                            /* 20221207 CM 朱鹏飞要求屏蔽调用事前事中服务交易
-                            if (hIS.GetInsuPatInfo("5", Global.pat, out outParam) != 0)
-                            {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3101医保明细审核事前分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
+                            //1.获取3101入参报文           
+                            if (Global.curEvt.ext.isOpenAnalysis)
                             {
-                                //2.调用医保3101明细审核事前分析服务
-                                JObject joInput = new JObject();
-                                joInput = JObject.Parse(outParam);
-                                JObject jo3101Rtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", joInput.ToString().Replace("\r\n", "")));
-                                if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
+                                if (hIS.GetInsuPatInfo("5", Global.pat, out outParam) != 0)
                                 {
-
-                                    DialogResult dr = MessageBox.Show("【3101】医保明细审核事前分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
+                                    rtnResult = JsonHelper.setExceptionJson(-1, "获取3101医保明细审核事前分析服务入参失败:", outParam).ToString();
+                                    return rtnResult;
+                                }
+                                else
+                                {
+                                    //2.调用医保3101明细审核事前分析服务
+                                    JObject joInput = new JObject();
+                                    joInput = JObject.Parse(outParam);
+                                    JObject jo3101Rtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", joInput.ToString().Replace("\r\n", "")));
+                                    if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
                                     {
                                         rtnResult = JsonHelper.setExceptionJson(-1, "【3101】医保明细审核事前分析服务调用失败:", errMsg).ToString();
                                         return rtnResult;
                                     }
+                                    else
+                                    {
+                                        JArray jaResult = JArray.Parse(JsonHelper.getDestValue(jo3101Rtn, "output.result"));
+                                        if (jaResult.HasValues)
+                                        {
+                                            PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(jo3101Rtn);
+                                            if (paipaForm.ShowDialog() != DialogResult.OK)
+                                            {
+                                                errMsg = "事前事中审核不通过,操作员取消!";
+                                                rtnResult = JsonHelper.setExceptionJson(-1, "【3101】医保明细审核事前分析服务调用失败:", errMsg).ToString();
+                                                return rtnResult;
+                                            }
+                                        }
+                                    }
                                 }
                             }
-                            */
                             #endregion
 
                             //开始进行费用传送
@@ -788,34 +798,45 @@ namespace PTMedicalInsurance
                                 return rtnResult;
                             }
 
-                            #region【门诊就诊信息上传成功后调用3101事前服务】
+                            #region【门诊就诊信息上传成功后调用3101事前服务】                            
                             //1.获取3101入参报文
-                            /*
-                            if (hIS.GetInsuPatInfo("1", Global.pat, out outParam) != 0)
+                            if (Global.curEvt.ext.isOpenAnalysis)
                             {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3101医保明细审核事前分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
-                            {
-                                //2.调用医保3101明细审核事前分析服务
-                                JObject joInput = new JObject();
-                                //joInput.Add("data", JObject.Parse(outParam));
-                                joInput = JObject.Parse(outParam);
-
-                                JObject jo3101Rtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", joInput.ToString().Replace("\r\n", ""))); //.Replace(" ", "")
-                                if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
+                                if (hIS.GetInsuPatInfo("1", Global.pat, out outParam) != 0)
                                 {
+                                    rtnResult = JsonHelper.setExceptionJson(-1, "获取3101医保明细审核事前分析服务入参失败:", outParam).ToString();
+                                    return rtnResult;
+                                }
+                                else
+                                {
+                                    //2.调用医保3101明细审核事前分析服务
+                                    JObject joInput = new JObject();
+                                    //joInput.Add("data", JObject.Parse(outParam));
+                                    joInput = JObject.Parse(outParam);
 
-                                    DialogResult dr = MessageBox.Show("【3101】医保明细审核事前分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
+                                    JObject jo3101Rtn = invoker.invokeCenterService("3101", JsonHelper.setCenterInpar("3101", joInput.ToString().Replace("\r\n", ""))); //.Replace(" ", "")
+                                    if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
                                     {
                                         rtnResult = JsonHelper.setExceptionJson(-1, "【3101】医保明细审核事前分析服务调用失败:", errMsg).ToString();
                                         return rtnResult;
                                     }
+                                    else
+                                    {
+                                        JArray jaResult = JArray.Parse(JsonHelper.getDestValue(jo3101Rtn, "output.result"));
+                                        if (jaResult.HasValues)
+                                        {
+                                            PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(jo3101Rtn);
+                                            if (paipaForm.ShowDialog() != DialogResult.OK)
+                                            {
+                                                errMsg = "事前事中审核不通过,操作员取消!";
+                                                rtnResult = JsonHelper.setExceptionJson(-1, "【3101】医保明细审核事前分析服务调用失败:", errMsg).ToString();
+                                                return rtnResult;
+                                            }
+                                        }
+                                    }
                                 }
                             }
-                            */
+
                             #endregion
 
                             //费用上传
@@ -825,33 +846,46 @@ namespace PTMedicalInsurance
                                 return rtnResult;
                             }
 
-                            #region【门诊预结算2206前调用3102医保明细审核事中服务】                            
-                            //1.获取3102入参报文
-                            /*
-                            if (hIS.GetInsuPatInfo("2", Global.pat, out outParam) != 0)
-                            {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3102医保明细审核事中分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
-                            {
-                                //2.调用医保3102明细审核事前分析服务
-                                JObject joInput = new JObject();
-                                //joInput.Add("data", JObject.Parse(outParam));
-                                joInput = JObject.Parse(outParam);
+                            #region【门诊预结算2206前调用3102医保明细审核事中服务】     
 
-                                JObject jo3101Rtn = invoker.invokeCenterService("3102", JsonHelper.setCenterInpar("3102", joInput.ToString().Replace("\r\n", "")));
-                                if (JsonHelper.parseCenterRtnValue(jo3101Rtn, out errMsg) != 0)
+                            if (Global.curEvt.ext.isOpenAnalysis)
+                            {
+                                //1.获取3102入参报文
+                                if (hIS.GetInsuPatInfo("2", Global.pat, out outParam) != 0)
                                 {
-                                    DialogResult dr = MessageBox.Show("【3102】医保明细审核事中分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
+                                    rtnResult = JsonHelper.setExceptionJson(-1, "获取3102医保明细审核事中分析服务入参失败:", outParam).ToString();
+                                    return rtnResult;
+                                }
+                                else
+                                {
+                                    //2.调用医保3102明细审核事前分析服务
+                                    JObject joInput = new JObject();
+                                    //joInput.Add("data", JObject.Parse(outParam));
+                                    joInput = JObject.Parse(outParam);
+
+                                    JObject jo3102Rtn = invoker.invokeCenterService("3102", JsonHelper.setCenterInpar("3102", joInput.ToString().Replace("\r\n", "")));
+                                    if (JsonHelper.parseCenterRtnValue(jo3102Rtn, out errMsg) != 0)
                                     {
                                         rtnResult = JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事中分析服务调用失败:", errMsg).ToString();
                                         return rtnResult;
                                     }
+                                    else
+                                    {
+                                        JArray jaResult = JArray.Parse(JsonHelper.getDestValue(jo3102Rtn, "output.result"));
+                                        if (jaResult.HasValues)
+                                        {
+                                            PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(jo3102Rtn);
+                                            if (paipaForm.ShowDialog() != DialogResult.OK)
+                                            {
+                                                errMsg = "事前事中审核不通过,操作员取消!";
+                                                rtnResult = JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事中分析服务调用失败:", errMsg).ToString();
+                                                return rtnResult;
+                                            }
+                                        }
+                                    }
                                 }
                             }
-                            */
+
                             #endregion
 
                             //调用IRIS获取医保各项金额
@@ -1205,29 +1239,40 @@ namespace PTMedicalInsurance
 
                             #region【住院预结算2303前调用3102医保明细审核事中服务】                            
                             //1.获取3102入参报文
-                            /*
-                            if (hIS.GetInsuPatInfo("9", Global.pat, out outParam) != 0)
-                            {
-                                rtnResult = JsonHelper.setExceptionJson(-1, "获取3102医保明细审核事中分析服务入参失败:", outParam).ToString();
-                                return rtnResult;
-                            }
-                            else
+                            if (Global.curEvt.ext.isOpenAnalysis)
                             {
-                                //2.调用医保3102明细审核事前分析服务
-                                JObject joInput = new JObject();      
-                                joInput = JObject.Parse(outParam);
-                                JObject jo3102Rtn = invoker.invokeCenterService("3102", JsonHelper.setCenterInpar("3102", joInput.ToString().Replace("\r\n", "")));
-                                if (JsonHelper.parseCenterRtnValue(jo3102Rtn, out errMsg) != 0)
+                                if (hIS.GetInsuPatInfo("9", Global.pat, out outParam) != 0)
                                 {
-                                    DialogResult dr = MessageBox.Show("【3102】医保明细审核事中分析服务医保中心返回结果1:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
-                                    if (dr != DialogResult.OK)
+                                    rtnResult = JsonHelper.setExceptionJson(-1, "获取3102医保明细审核事中分析服务入参失败:", outParam).ToString();
+                                    return rtnResult;
+                                }
+                                else
+                                {
+                                    //2.调用医保3102明细审核事前分析服务
+                                    JObject joInput = new JObject();
+                                    joInput = JObject.Parse(outParam);
+                                    JObject jo3102Rtn = invoker.invokeCenterService("3102", JsonHelper.setCenterInpar("3102", joInput.ToString().Replace("\r\n", "")));
+                                    if (JsonHelper.parseCenterRtnValue(jo3102Rtn, out errMsg) != 0)
                                     {
                                         rtnResult = JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事中分析服务调用失败:", errMsg).ToString();
                                         return rtnResult;
                                     }
+                                    else
+                                    {
+                                        JArray jaResult = JArray.Parse(JsonHelper.getDestValue(jo3102Rtn, "output.result"));
+                                        if (jaResult.HasValues)
+                                        {
+                                            PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(jo3102Rtn);
+                                            if (paipaForm.ShowDialog() != DialogResult.OK)
+                                            {
+                                                errMsg = "事前事中审核不通过,操作员取消!";
+                                                rtnResult = JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事中分析服务调用失败:", errMsg).ToString();
+                                                return rtnResult;
+                                            }
+                                        }
+                                    }
                                 }
                             }
-                            */
                             #endregion
 
                             Global.pat.admType = 2;

+ 10 - 0
ShanXiMI.csproj

@@ -206,6 +206,12 @@
     <Compile Include="Forms\InformationOfSelfPatients.Designer.cs">
       <DependentUpon>InformationOfSelfPatients.cs</DependentUpon>
     </Compile>
+    <Compile Include="Forms\PreAndInProcessAnalysisForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\PreAndInProcessAnalysisForm.designer.cs">
+      <DependentUpon>PreAndInProcessAnalysisForm.cs</DependentUpon>
+    </Compile>
     <Compile Include="Forms\PrescriptionCirculation.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -337,6 +343,7 @@
     <Compile Include="Variables\Global.cs" />
     <Compile Include="Variables\ModeEnum.cs" />
     <Compile Include="Variables\Struct.cs" />
+    <Compile Include="Variables\StructExtend.cs" />
   </ItemGroup>
   <ItemGroup>
     <Folder Include="ControlSetter\" />
@@ -369,6 +376,9 @@
     <EmbeddedResource Include="Forms\InformationOfSelfPatients.resx">
       <DependentUpon>InformationOfSelfPatients.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Forms\PreAndInProcessAnalysisForm.resx">
+      <DependentUpon>PreAndInProcessAnalysisForm.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Forms\PrescriptionCirculation.resx">
       <DependentUpon>PrescriptionCirculation.cs</DependentUpon>
     </EmbeddedResource>

+ 4 - 0
Variables/Struct.cs

@@ -52,6 +52,7 @@ namespace PTMedicalInsurance.Variables
         public string privateKey;
         public string publicKey;
         public string Secret;
+        public string devSafeInfo;
 
         public string AK;
         public string SK;
@@ -92,6 +93,7 @@ namespace PTMedicalInsurance.Variables
         public string privateKey; //私钥  渠道私钥
         public string channelPublicKey;// 渠道公钥
         public string publicKey; //平台公钥
+        public string devSafeInfo; //设备安全信息
     }
 
     //患者信息
@@ -278,5 +280,7 @@ namespace PTMedicalInsurance.Variables
         /// 调试模式
         /// </summary>
         public bool enabledDebug;
+        public CurEvtExtend ext;
+        public bool testMode;
     }
 }

+ 22 - 0
Variables/StructExtend.cs

@@ -0,0 +1,22 @@
+namespace PTMedicalInsurance.Variables
+{
+
+    /* public struct PatExtend
+     {
+         public string prm_auther_no; //账户共济授权人编码
+         public string prm_auther_certno;//账 户 共 济 授 权 人 证 件 号 码
+         public string prm_auther_name;//账 户 共 济 授 权 人 姓 名
+         public string prm_auther_insu_admdvs;//账 户 共 济 授 权 人 参 保 区 划
+         public bool isMutualAid;//是否共济
+         public string ykc296;//居民类别
+         public String prm_yabtch;//同城化标识
+     }*/
+
+    public struct CurEvtExtend
+    {
+        public bool isOpenAnalysis;
+    }
+
+
+}
+