فهرست منبع

1.事前事中增加反馈接口调用

zzz 2 هفته پیش
والد
کامیت
12b5998939

+ 69 - 1
HuBeiMI/Business/HisMainBusiness.cs

@@ -2176,9 +2176,27 @@ namespace PTMedicalInsurance.Business
                     if (jaResult.HasValues)
                     {
                         PreAndInProcessAnalysisForm paipaForm = new PreAndInProcessAnalysisForm(joRtn);
+                        //if (paipaForm.ShowDialog() == DialogResult.OK)
+                        //{
+                        //    return 0;
+                        //}
+                        //else
+                        //{
+                        //    outparam = "事前事中审核不通过,操作员取消!";
+                        //    return -1;
+                        //}
                         if (paipaForm.ShowDialog() == DialogResult.OK)
                         {
-                            return 0;
+                            //【3103】事前事中服务反馈服务
+                            if (PreAnalysisFeedBack("3101", paipaForm.JrID, out outparam) != 0)
+                            {
+                                outparam = "【3103】事前事中服务反馈服务" + outparam;
+                                return -1;
+                            }
+                            else
+                            {
+                                return 0;
+                            }
                         }
                         else
                         {
@@ -2199,5 +2217,55 @@ namespace PTMedicalInsurance.Business
             }
         }
 
+
+        public int PreAnalysisFeedBack(string funNo, string jrId, out string outparam)
+        {
+            outparam = "";
+            try
+            {
+                outparam = "";
+                string WarnType = "";
+                //【3103】事前事中服务反馈服务
+                if (funNo == "3101")
+                    WarnType = "1";
+                else
+                if (funNo == "3102")
+                    WarnType = "2";
+
+                JObject joInput3103Warns = new JObject();
+                joInput3103Warns.Add("warn_rslt_id", jrId);
+                joInput3103Warns.Add("dspo_way", Global.Set.dspoWay);
+                joInput3103Warns.Add("dspo_way_rea", Global.Set.dspoWayRea);
+
+                JArray ja3103Warns = new JArray();
+                ja3103Warns.Add(joInput3103Warns);
+
+                JObject joInput3103 = new JObject();
+                joInput3103.Add("warn_type", WarnType); //反馈类型 1.事前 2.事中
+                joInput3103.Add("warns", ja3103Warns);
+
+                JObject joInput = new JObject();
+                joInput.Add("data", joInput3103);
+
+                JObject jo3103Rtn = invoker.invokeCenterService(TradeEnum.PreAnalysisFeedback, joInput);
+                if (JsonHelper.parseCenterRtnValue(jo3103Rtn, out string errMsg) != 0)
+                {
+                    outparam = JsonHelper.setExceptionJson(-1, "【3103】事前事中服务反馈服务调用失败:", errMsg).ToString();
+                    return -1;
+                }
+
+                return 0;
+            }
+            catch (Exception ex)
+            {
+                outparam = ex.Message;
+                return -1;
+            }
+            finally
+            {
+                Global.writeLog("PreAnalysisFeedBack", "", outparam);
+            }
+        }
+
     }
 }

+ 139 - 70
HuBeiMI/Forms/PreAndInProcessAnalysisForm.Designer.cs

@@ -28,21 +28,26 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
             this.uiPanel1 = new Sunny.UI.UIPanel();
+            this.btnModify = new Sunny.UI.UIButton();
+            this.btn_Continue = new Sunny.UI.UIButton();
             this.btnCancle = new Sunny.UI.UIButton();
             this.btnOK = new Sunny.UI.UIButton();
             this.uiPanel2 = new Sunny.UI.UIPanel();
             this.uiGroupBox2 = new Sunny.UI.UIGroupBox();
+            this.rtb_DspoWayRea = new Sunny.UI.UIRichTextBox();
+            this.uiGroupBox4 = new Sunny.UI.UIGroupBox();
+            this.dgvVolaDetailDtos = new Sunny.UI.UIDataGridView();
             this.tbRuleName = new Sunny.UI.UITextBox();
             this.tbVolaEvid = new Sunny.UI.UITextBox();
             this.tbVolaBhvrType = new Sunny.UI.UITextBox();
@@ -67,38 +72,67 @@
             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();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).BeginInit();
             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.btnModify);
+            this.uiPanel1.Controls.Add(this.btn_Continue);
             this.uiPanel1.Controls.Add(this.btnCancle);
             this.uiPanel1.Controls.Add(this.btnOK);
             this.uiPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
             this.uiPanel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiPanel1.Location = new System.Drawing.Point(0, 538);
+            this.uiPanel1.Location = new System.Drawing.Point(0, 640);
             this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiPanel1.Name = "uiPanel1";
-            this.uiPanel1.Size = new System.Drawing.Size(1302, 53);
+            this.uiPanel1.Size = new System.Drawing.Size(1501, 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);
             // 
+            // 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(1050, 4);
+            this.btnModify.MinimumSize = new System.Drawing.Size(1, 1);
+            this.btnModify.Name = "btnModify";
+            this.btnModify.Size = new System.Drawing.Size(126, 42);
+            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(866, 4);
+            this.btn_Continue.MinimumSize = new System.Drawing.Size(1, 1);
+            this.btn_Continue.Name = "btn_Continue";
+            this.btn_Continue.Size = new System.Drawing.Size(125, 42);
+            this.btn_Continue.TabIndex = 2;
+            this.btn_Continue.Text = "继续执行";
+            this.btn_Continue.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.btn_Continue.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.btn_Continue.Click += new System.EventHandler(this.btn_Continue_Click);
+            // 
             // btnCancle
             // 
             this.btnCancle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.btnCancle.Cursor = System.Windows.Forms.Cursors.Hand;
             this.btnCancle.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btnCancle.Location = new System.Drawing.Point(1045, 3);
+            this.btnCancle.Location = new System.Drawing.Point(1266, 8);
             this.btnCancle.MinimumSize = new System.Drawing.Size(1, 1);
             this.btnCancle.Name = "btnCancle";
             this.btnCancle.Size = new System.Drawing.Size(100, 35);
@@ -113,13 +147,14 @@
             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.Location = new System.Drawing.Point(603, 8);
             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.Visible = false;
             this.btnOK.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
             // 
@@ -153,7 +188,7 @@
             this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.uiPanel2.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiPanel2.Name = "uiPanel2";
-            this.uiPanel2.Size = new System.Drawing.Size(1032, 538);
+            this.uiPanel2.Size = new System.Drawing.Size(1231, 640);
             this.uiPanel2.TabIndex = 1;
             this.uiPanel2.Text = null;
             this.uiPanel2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
@@ -161,15 +196,17 @@
             // 
             // uiGroupBox2
             // 
+            this.uiGroupBox2.Controls.Add(this.rtb_DspoWayRea);
+            this.uiGroupBox2.Controls.Add(this.uiGroupBox4);
             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.Location = new System.Drawing.Point(0, 358);
             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.Size = new System.Drawing.Size(1231, 282);
             this.uiGroupBox2.TabIndex = 21;
             this.uiGroupBox2.Text = "违规明细";
             this.uiGroupBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
@@ -177,6 +214,86 @@
             this.uiGroupBox2.TitleTop = 8;
             this.uiGroupBox2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // rtb_DspoWayRea
+            // 
+            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, 189);
+            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(1228, 89);
+            this.rtb_DspoWayRea.TabIndex = 3;
+            this.rtb_DspoWayRea.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.rtb_DspoWayRea.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiGroupBox4
+            // 
+            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(0, 152);
+            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, 32, 0, 0);
+            this.uiGroupBox4.Size = new System.Drawing.Size(1231, 34);
+            this.uiGroupBox4.TabIndex = 2;
+            this.uiGroupBox4.Text = "uiGroupBox4";
+            this.uiGroupBox4.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiGroupBox4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // dgvVolaDetailDtos
+            // 
+            this.dgvVolaDetailDtos.AllowUserToAddRows = false;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvVolaDetailDtos.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvVolaDetailDtos.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvVolaDetailDtos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            this.dgvVolaDetailDtos.ColumnHeadersHeight = 32;
+            this.dgvVolaDetailDtos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvVolaDetailDtos.DefaultCellStyle = dataGridViewCellStyle3;
+            this.dgvVolaDetailDtos.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(1228, 120);
+            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);
+            // 
             // tbRuleName
             // 
             this.tbRuleName.Cursor = System.Windows.Forms.Cursors.IBeam;
@@ -470,7 +587,7 @@
             this.uiGroupBox3.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiGroupBox3.Name = "uiGroupBox3";
             this.uiGroupBox3.Padding = new System.Windows.Forms.Padding(0, 26, 0, 0);
-            this.uiGroupBox3.Size = new System.Drawing.Size(270, 538);
+            this.uiGroupBox3.Size = new System.Drawing.Size(270, 640);
             this.uiGroupBox3.TabIndex = 2;
             this.uiGroupBox3.Text = "违规项目";
             this.uiGroupBox3.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
@@ -525,69 +642,17 @@
             this.dgvVolaItems.RowsDefaultCellStyle = dataGridViewCellStyle10;
             this.dgvVolaItems.RowTemplate.Height = 23;
             this.dgvVolaItems.SelectedIndex = -1;
-            this.dgvVolaItems.Size = new System.Drawing.Size(270, 512);
+            this.dgvVolaItems.Size = new System.Drawing.Size(270, 614);
             this.dgvVolaItems.TabIndex = 0;
             this.dgvVolaItems.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             this.dgvVolaItems.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvVolaItems_CellContentClick);
             this.dgvVolaItems.SelectionChanged += new System.EventHandler(this.dgvVolaItems_SelectionChanged);
             // 
-            // dgvVolaDetailDtos
-            // 
-            this.dgvVolaDetailDtos.AllowUserToAddRows = false;
-            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
-            this.dgvVolaDetailDtos.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaDetailDtos.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
-            this.dgvVolaDetailDtos.ColumnHeadersHeight = 32;
-            this.dgvVolaDetailDtos.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvVolaDetailDtos.DefaultCellStyle = dataGridViewCellStyle3;
-            this.dgvVolaDetailDtos.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.dgvVolaDetailDtos.EnableHeadersVisualStyles = false;
-            this.dgvVolaDetailDtos.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.dgvVolaDetailDtos.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
-            this.dgvVolaDetailDtos.Location = new System.Drawing.Point(0, 24);
-            this.dgvVolaDetailDtos.Name = "dgvVolaDetailDtos";
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvVolaDetailDtos.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
-            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
-            dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
-            this.dgvVolaDetailDtos.RowsDefaultCellStyle = dataGridViewCellStyle5;
-            this.dgvVolaDetailDtos.RowTemplate.Height = 23;
-            this.dgvVolaDetailDtos.SelectedIndex = -1;
-            this.dgvVolaDetailDtos.Size = new System.Drawing.Size(1032, 131);
-            this.dgvVolaDetailDtos.TabIndex = 1;
-            this.dgvVolaDetailDtos.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            this.dgvVolaDetailDtos.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uiDataGridView1_CellContentClick);
-            // 
             // PreAndInProcessAnalysisForm
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1302, 591);
+            this.ClientSize = new System.Drawing.Size(1501, 693);
             this.Controls.Add(this.uiPanel2);
             this.Controls.Add(this.uiGroupBox3);
             this.Controls.Add(this.uiPanel1);
@@ -596,10 +661,10 @@
             this.uiPanel1.ResumeLayout(false);
             this.uiPanel2.ResumeLayout(false);
             this.uiGroupBox2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).EndInit();
             this.uiGroupBox1.ResumeLayout(false);
             this.uiGroupBox3.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvVolaItems)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvVolaDetailDtos)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -636,5 +701,9 @@
         private Sunny.UI.UIGroupBox uiGroupBox3;
         private Sunny.UI.UIDataGridView dgvVolaItems;
         private Sunny.UI.UIDataGridView dgvVolaDetailDtos;
+        private Sunny.UI.UIButton btnModify;
+        private Sunny.UI.UIButton btn_Continue;
+        private Sunny.UI.UIRichTextBox rtb_DspoWayRea;
+        private Sunny.UI.UIGroupBox uiGroupBox4;
     }
 }

+ 24 - 1
HuBeiMI/Forms/PreAndInProcessAnalysisForm.cs

@@ -10,6 +10,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
+using PTMedicalInsurance.Variables;
 
 namespace PTMedicalInsurance.Forms
 {
@@ -20,6 +21,7 @@ namespace PTMedicalInsurance.Forms
 
         private GridViewSetter grdSetter = new GridViewSetter();
         private JArray jaVolaItems;
+        public string JrID = "";
         public PreAndInProcessAnalysisForm()
         {
             InitializeComponent();
@@ -47,7 +49,7 @@ namespace PTMedicalInsurance.Forms
 
         private void showVolaItemContent(JObject jo)
         {
-            tbJrID.Text = JsonHelper.getDestValue(jo, "jr_id");
+            tbJrID.Text = JrID = 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");
@@ -93,5 +95,26 @@ namespace PTMedicalInsurance.Forms
         {
 
         }
+
+        private void btnModify_Click(object sender, EventArgs e)
+        {
+            if (rtb_DspoWayRea.Text == "")
+            {
+                MessageBox.Show("处理方式为修改医嘱时,处理原因必填!");
+                return;
+            }
+
+            Global.Set.dspoWayRea = rtb_DspoWayRea.Text;
+
+            Global.Set.dspoWay = "2";
+            DialogResult = DialogResult.OK;
+        }
+
+        private void btn_Continue_Click(object sender, EventArgs e)
+        {
+            Global.Set.dspoWayRea = "继续执行医嘱";
+            Global.Set.dspoWay = "1";
+            DialogResult = DialogResult.OK;
+        }
     }
 }

+ 3 - 0
HuBeiMI/Variables/Struct.cs

@@ -253,6 +253,9 @@ namespace PTMedicalInsurance.Variables
         public string onlineYBFalg; //线上线下标志  Y  N
         public string payOrdId; //订单编号
         public string medinsSetlId; //医疗结构结算ID
+
+        public string dspoWay; //1继续执行 2修改医嘱
+        public string dspoWayRea;
     }
 
     //当前环境实时信息