Parcourir la source

门诊结算增加参保地返回给HIS

837390164@qq.com il y a 3 semaines
Parent
commit
ffe2d0b6d1

+ 7 - 0
Business/IrisServices.cs

@@ -465,6 +465,9 @@ namespace PTMedicalInsurance.Business
                     return -1;
                 }
 
+                joSetlInpar.Add("insuplc_admdvs", Global.pat.insuplc_admdvs);
+                joSetlInpar.Add("mdtrtarea_admvs", Global.inf.areaCode);
+
                 dynamic joTmp = new JObject();
                 joTmp.settleInfo = joSetlinfo;
                 joTmp.updateUserID = Global.user.ID;
@@ -1523,6 +1526,10 @@ namespace PTMedicalInsurance.Business
                     joSetlinfo.Add("MutualAidFlag", "0");
                 }
 
+                //医保钱包支付金额
+                JObject joExpContent = JObject.Parse(joSetlinfo["exp_content"].ToString());                
+                joSetlinfo.Add("medIns_wallet_pay", JsonHelper.getDestValue(joExpContent, "wltpay_amt")); //医保钱包支付金额
+
                 Global.pat.joSettlInfoOfMutualAid = (JObject)joSetlinfo.DeepClone();
 
                 JObject joRtn = invoker.invokeInsuService(JsonHelper.setIrisInpar("09010051", joSetlinfo).ToString(), "插入结算信息");

+ 34 - 34
Forms/Clearing.Designer.cs

@@ -100,6 +100,8 @@
             this.uiPanel1 = new Sunny.UI.UIPanel();
             this.tbTmp = new System.Windows.Forms.RichTextBox();
             this.gbConditionSet = new Sunny.UI.UIGroupBox();
+            this.tbCnt = new Sunny.UI.UITextBox();
+            this.uiLabel20 = new Sunny.UI.UILabel();
             this.cbxInterface = new Sunny.UI.UIComboBox();
             this.tbSettlOption = new Sunny.UI.UITextBox();
             this.cbxValid = new Sunny.UI.UIComboBox();
@@ -206,8 +208,6 @@
             this.uiGroupBox5 = new Sunny.UI.UIGroupBox();
             this.dpED_3 = new Sunny.UI.UIDatetimePicker();
             this.dpST_3 = new Sunny.UI.UIDatetimePicker();
-            this.tbCnt = new Sunny.UI.UITextBox();
-            this.uiLabel20 = new Sunny.UI.UILabel();
             this.uiTabControl1.SuspendLayout();
             this.tabPage1.SuspendLayout();
             this.uiPanel2.SuspendLayout();
@@ -568,7 +568,7 @@
             this.tsmAICheck,
             this.导出TXTToolStripMenuItem});
             this.cmsCheck.Name = "cmsCheck";
-            this.cmsCheck.Size = new System.Drawing.Size(235, 234);
+            this.cmsCheck.Size = new System.Drawing.Size(235, 212);
             this.cmsCheck.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
             // tsmCheck_Single
@@ -782,6 +782,31 @@
             this.gbConditionSet.TitleTop = 10;
             this.gbConditionSet.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // tbCnt
+            // 
+            this.tbCnt.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.tbCnt.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.tbCnt.Location = new System.Drawing.Point(67, 217);
+            this.tbCnt.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.tbCnt.MinimumSize = new System.Drawing.Size(1, 16);
+            this.tbCnt.Name = "tbCnt";
+            this.tbCnt.ShowText = false;
+            this.tbCnt.Size = new System.Drawing.Size(153, 25);
+            this.tbCnt.TabIndex = 13;
+            this.tbCnt.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbCnt.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel20
+            // 
+            this.uiLabel20.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel20.Location = new System.Drawing.Point(4, 220);
+            this.uiLabel20.Name = "uiLabel20";
+            this.uiLabel20.Size = new System.Drawing.Size(78, 23);
+            this.uiLabel20.TabIndex = 12;
+            this.uiLabel20.Text = "记录数";
+            this.uiLabel20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel20.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
             // cbxInterface
             // 
             this.cbxInterface.DataSource = null;
@@ -1004,10 +1029,10 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand;
             this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiButton4.Location = new System.Drawing.Point(39, 75);
+            this.uiButton4.Location = new System.Drawing.Point(25, 73);
             this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiButton4.Name = "uiButton4";
-            this.uiButton4.Size = new System.Drawing.Size(144, 27);
+            this.uiButton4.Size = new System.Drawing.Size(170, 33);
             this.uiButton4.TabIndex = 2;
             this.uiButton4.Text = "退出";
             this.uiButton4.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -1020,10 +1045,10 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.uiButton5.Cursor = System.Windows.Forms.Cursors.Hand;
             this.uiButton5.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiButton5.Location = new System.Drawing.Point(39, 39);
+            this.uiButton5.Location = new System.Drawing.Point(25, 37);
             this.uiButton5.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiButton5.Name = "uiButton5";
-            this.uiButton5.Size = new System.Drawing.Size(144, 27);
+            this.uiButton5.Size = new System.Drawing.Size(170, 33);
             this.uiButton5.TabIndex = 1;
             this.uiButton5.Text = "批量对总账";
             this.uiButton5.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -1035,10 +1060,10 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.Btn_Query.Cursor = System.Windows.Forms.Cursors.Hand;
             this.Btn_Query.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Btn_Query.Location = new System.Drawing.Point(39, 3);
+            this.Btn_Query.Location = new System.Drawing.Point(25, 1);
             this.Btn_Query.MinimumSize = new System.Drawing.Size(1, 1);
             this.Btn_Query.Name = "Btn_Query";
-            this.Btn_Query.Size = new System.Drawing.Size(144, 27);
+            this.Btn_Query.Size = new System.Drawing.Size(170, 33);
             this.Btn_Query.TabIndex = 0;
             this.Btn_Query.Text = "查询汇总数据";
             this.Btn_Query.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -2574,31 +2599,6 @@
             this.dpST_3.Value = new System.DateTime(2022, 6, 1, 0, 0, 0, 0);
             this.dpST_3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
-            // tbCnt
-            // 
-            this.tbCnt.Cursor = System.Windows.Forms.Cursors.IBeam;
-            this.tbCnt.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tbCnt.Location = new System.Drawing.Point(67, 217);
-            this.tbCnt.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
-            this.tbCnt.MinimumSize = new System.Drawing.Size(1, 16);
-            this.tbCnt.Name = "tbCnt";
-            this.tbCnt.ShowText = false;
-            this.tbCnt.Size = new System.Drawing.Size(153, 25);
-            this.tbCnt.TabIndex = 13;
-            this.tbCnt.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
-            this.tbCnt.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
-            // uiLabel20
-            // 
-            this.uiLabel20.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiLabel20.Location = new System.Drawing.Point(4, 220);
-            this.uiLabel20.Name = "uiLabel20";
-            this.uiLabel20.Size = new System.Drawing.Size(78, 23);
-            this.uiLabel20.TabIndex = 12;
-            this.uiLabel20.Text = "记录数";
-            this.uiLabel20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            this.uiLabel20.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
             // Clearing
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);

+ 2 - 2
Forms/OutpatientRegistration.cs

@@ -211,9 +211,9 @@ namespace PTMedicalInsurance.Forms
             //银海说二维码信息可以不填写了Global.pat.ExpContent = Global.pat.card.QrCode + "|" + Global.pat.CrossYearHosp + "||" + Global.pat.DisType + "|" + Global.inf.hospitalNO + "|" + iptTypeCode + "|就诊人群类型|" + traumaFlag + "|" + relTtpFlag+"|急诊标志|||处方号"+WltpayUsedFlag+"|";
             //"exp_content": "电子医保凭证卡串|跨年住院标志|门慢输血费标志|单病种类型|开方机构编码|住院类型|就诊人群类型|外伤标志|涉及第三方标志|急诊标志|||处方号|钱包账户使用标志|"
             if (Global.pat.mdtrtcertType == "01")
-                Global.pat.ExpContent = "|" + Global.pat.CrossYearHosp + "||" + Global.pat.DisType + "|" + Global.inf.hospitalNO + "|" + iptTypeCode + "||" + traumaFlag + "|" + relTtpFlag + "|||||" + WltpayUsedFlag;
+                Global.pat.ExpContent = "|" + Global.pat.CrossYearHosp + "||" + Global.pat.DisType + "|" + Global.inf.hospitalNO + "|" + iptTypeCode + "||" + traumaFlag + "|" + relTtpFlag + "|||||" + WltpayUsedFlag + "|";
             else
-                Global.pat.ExpContent = "|" + Global.pat.CrossYearHosp + "||" + Global.pat.DisType + "|" + Global.inf.hospitalNO + "|" + iptTypeCode + "||" + traumaFlag + "|" + relTtpFlag + "|||||" + WltpayUsedFlag;
+                Global.pat.ExpContent = "|" + Global.pat.CrossYearHosp + "||" + Global.pat.DisType + "|" + Global.inf.hospitalNO + "|" + iptTypeCode + "||" + traumaFlag + "|" + relTtpFlag + "|||||" + WltpayUsedFlag + "|";
 
             this.DialogResult = DialogResult.OK;
         }

+ 3 - 0
Forms/SettlementInfo.cs

@@ -74,6 +74,9 @@ namespace PTMedicalInsurance.Forms
             this.tbownpayhosppart.Text = JsonHelper.getDestValue(joSettlmentInfo, "output.setlinfo.ownpay_hosp_part");
             if (this.tbownpayhosppart.Text == "") this.tbownpayhosppart.Text = "0";
 
+            JObject joExpContent = JObject.Parse(joSettlmentInfo["exp_content"].ToString());            
+            tbWltpayAmt.Text = JsonHelper.getDestValue(joExpContent, "wltpay_amt");
+
             Global.Set.acctPay = joSettlmentInfo["acct_pay"].ToString();
             setDgvSettlDetailHeader();
             dgvSetlDetail.DataSource = dtSettlmentDetail;           

+ 37 - 6
Forms/SettlementInfo.designer.cs

@@ -119,6 +119,8 @@ namespace PTMedicalInsurance.Forms
             this.uiLabel30 = new Sunny.UI.UILabel();
             this.gbSetldetail = new Sunny.UI.UIGroupBox();
             this.dgvSetlDetail = new Sunny.UI.UIDataGridView();
+            this.tbWltpayAmt = new Sunny.UI.UITextBox();
+            this.uiLabel32 = new Sunny.UI.UILabel();
             this.pnlBottom.SuspendLayout();
             this.pnlClient.SuspendLayout();
             this.gbSetlinfo.SuspendLayout();
@@ -163,12 +165,12 @@ namespace PTMedicalInsurance.Forms
             this.uiButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand;
             this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiButton2.Location = new System.Drawing.Point(878, 16);
+            this.uiButton2.Location = new System.Drawing.Point(873, 6);
             this.uiButton2.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiButton2.Name = "uiButton2";
-            this.uiButton2.Size = new System.Drawing.Size(100, 38);
+            this.uiButton2.Size = new System.Drawing.Size(106, 53);
             this.uiButton2.TabIndex = 1;
-            this.uiButton2.Text = "放弃";
+            this.uiButton2.Text = "放  弃";
             this.uiButton2.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.uiButton2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click);
@@ -178,12 +180,12 @@ namespace PTMedicalInsurance.Forms
             this.uiButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
             this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.uiButton1.Location = new System.Drawing.Point(753, 16);
+            this.uiButton1.Location = new System.Drawing.Point(757, 6);
             this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
             this.uiButton1.Name = "uiButton1";
-            this.uiButton1.Size = new System.Drawing.Size(100, 38);
+            this.uiButton1.Size = new System.Drawing.Size(106, 53);
             this.uiButton1.TabIndex = 0;
-            this.uiButton1.Text = "结算";
+            this.uiButton1.Text = "结  算";
             this.uiButton1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.uiButton1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);
@@ -224,6 +226,8 @@ namespace PTMedicalInsurance.Forms
             // 
             // pnlPayInfo
             // 
+            this.pnlPayInfo.Controls.Add(this.tbWltpayAmt);
+            this.pnlPayInfo.Controls.Add(this.uiLabel32);
             this.pnlPayInfo.Controls.Add(this.tbownpayhosppart);
             this.pnlPayInfo.Controls.Add(this.uiLabel31);
             this.pnlPayInfo.Controls.Add(this.tbAccountMutualAidAmount);
@@ -1140,6 +1144,31 @@ namespace PTMedicalInsurance.Forms
             this.dgvSetlDetail.TabIndex = 1;
             this.dgvSetlDetail.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // tbWltpayAmt
+            // 
+            this.tbWltpayAmt.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.tbWltpayAmt.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.tbWltpayAmt.Location = new System.Drawing.Point(609, 225);
+            this.tbWltpayAmt.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.tbWltpayAmt.MinimumSize = new System.Drawing.Size(1, 16);
+            this.tbWltpayAmt.Name = "tbWltpayAmt";
+            this.tbWltpayAmt.ShowText = false;
+            this.tbWltpayAmt.Size = new System.Drawing.Size(100, 29);
+            this.tbWltpayAmt.TabIndex = 45;
+            this.tbWltpayAmt.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.tbWltpayAmt.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel32
+            // 
+            this.uiLabel32.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel32.Location = new System.Drawing.Point(502, 228);
+            this.uiLabel32.Name = "uiLabel32";
+            this.uiLabel32.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel32.TabIndex = 44;
+            this.uiLabel32.Text = "个人现金支付";
+            this.uiLabel32.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel32.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
             // SettlementInfo
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -1234,5 +1263,7 @@ namespace PTMedicalInsurance.Forms
         private Sunny.UI.UITextBox tbownpayhosppart;
         private Sunny.UI.UILabel uiLabel31;
         private Sunny.UI.UICheckBox cbxMutualAidPay;
+        private Sunny.UI.UITextBox tbWltpayAmt;
+        private Sunny.UI.UILabel uiLabel32;
     }
 }