Browse Source

1.增加市医保接口结算信息和退费信息删除992003

zzz 3 months ago
parent
commit
c9a1be2d76

+ 2 - 2
HuBeiMI/Business/HisMainBusiness.cs

@@ -1880,10 +1880,10 @@ namespace PTMedicalInsurance.Business
         {
             outParam = "";
 
-            //预结算  
+            //预结算
             JObject jo2206Data = new JObject();
             jo2206Data.Add("data", joSettlement);
-            JObject jo2206Rtn = invoker.invokeCenterService("2206", JsonHelper.setCenterInpar("2206", jo2206Data));
+            JObject jo2206Rtn = invoker.invokeCenterService("2206", JsonHelper.setCenterInpar("2206A", jo2206Data));
             if (JsonHelper.parseCenterRtnValue(jo2206Rtn, out outParam) != 0)
             {
                 outParam = JsonHelper.setExceptionJson(-1, "出院预结算", outParam).ToString();

+ 32 - 1
HuBeiMI/Forms/SettlementChecklist.cs

@@ -1772,7 +1772,38 @@ namespace PTMedicalInsurance.Forms
                 #endregion
             
         }
- }
+
+        private void SybDeleteToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+
+            if (dgvSettlRecord.RowCount <= 0)
+            {
+                MessageBox.Show("请先查询结算数据!");
+                return;
+            }
+            string sqlStr;
+            try
+            {
+                int m = dgvSettlRecord.CurrentRow.Index;
+                DataTable dt = (DataTable)dgvSettlRecord.DataSource;
+                string SettlementID = dt.Rows[m]["SettlementID"].ToString();
+                string MdtrtID = dt.Rows[m]["MdtrtID"].ToString();
+                string BillType = dt.Rows[m]["BillType"].ToString();
+                JObject joData = new JObject();
+                joData.Add("mdtrt_id", SettlementID);
+                joData.Add("setl_id", MdtrtID);
+                JObject Jo992003= new JObject();
+                Jo992003.Add("data", joData);
+
+                JObject OutJo = invoker.invokeCenterServiceJXC("992003", JObject.Parse(JsonHelper.setCenterInpar("992003", Jo992003)));
+                MessageBox.Show("上传成功!!!,上传返回:" + OutJo.ToString());
+            }
+            catch (Exception ex)
+            {
+                MessageBox.Show(ex.Message);
+                return;
+            }
+}
 
     // Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
     public class Classification

+ 15 - 7
HuBeiMI/Forms/SettlementChecklist.designer.cs

@@ -35,7 +35,6 @@ namespace PTMedicalInsurance.Forms
             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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettlementChecklist));
             this.panel1 = new System.Windows.Forms.Panel();
             this.dgvSettlRecord = new Sunny.UI.UIDataGridView();
             this.JXCMenuStrip = new Sunny.UI.UIContextMenuStrip();
@@ -61,14 +60,14 @@ namespace PTMedicalInsurance.Forms
             this.gbDateTime = new Sunny.UI.UIGroupBox();
             this.dpED = new Sunny.UI.UIDatetimePicker();
             this.dpST = new Sunny.UI.UIDatetimePicker();
+            this.SybDeleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvSettlRecord)).BeginInit();
+            this.JXCMenuStrip.SuspendLayout();
             this.uiPanel1.SuspendLayout();
             this.gbExactLocate.SuspendLayout();
             this.gbInterface.SuspendLayout();
             this.gbDateTime.SuspendLayout();
-           // ((System.ComponentModel.ISupportInitialize)(this.report1)).BeginInit();
-            this.JXCMenuStrip.SuspendLayout();
             this.SuspendLayout();
             // 
             // panel1
@@ -141,9 +140,10 @@ namespace PTMedicalInsurance.Forms
             this.SYBJXCTFToolStripMenuItem,
             this.FYMXToolStripMenuItem,
             this.cityToolStripMenuItem,
-            this.cityDesignToolStripMenuItem});
+            this.cityDesignToolStripMenuItem,
+            this.SybDeleteToolStripMenuItem});
             this.JXCMenuStrip.Name = "JXCMenuStrip";
-            this.JXCMenuStrip.Size = new System.Drawing.Size(359, 156);
+            this.JXCMenuStrip.Size = new System.Drawing.Size(359, 182);
             this.JXCMenuStrip.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
             // 市医保进销存992001结算信息上传ToolStripMenuItem
@@ -471,6 +471,13 @@ namespace PTMedicalInsurance.Forms
             this.dpST.Value = new System.DateTime(2022, 5, 22, 14, 3, 13, 266);
             this.dpST.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
+            // SybDeleteToolStripMenuItem
+            // 
+            this.SybDeleteToolStripMenuItem.Name = "SybDeleteToolStripMenuItem";
+            this.SybDeleteToolStripMenuItem.Size = new System.Drawing.Size(358, 26);
+            this.SybDeleteToolStripMenuItem.Text = "市医保结算/退费信息删除992003";
+            this.SybDeleteToolStripMenuItem.Click += new System.EventHandler(this.SybDeleteToolStripMenuItem_Click);
+            // 
             // SettlementChecklist
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -483,13 +490,13 @@ namespace PTMedicalInsurance.Forms
             this.Load += new System.EventHandler(this.SettlementChecklist_Load);
             this.panel1.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvSettlRecord)).EndInit();
+            this.JXCMenuStrip.ResumeLayout(false);
             this.uiPanel1.ResumeLayout(false);
             this.gbExactLocate.ResumeLayout(false);
             this.gbInterface.ResumeLayout(false);
             this.gbDateTime.ResumeLayout(false);
-            //((System.ComponentModel.ISupportInitialize)(this.report1)).EndInit();
-            this.JXCMenuStrip.ResumeLayout(false);
             this.ResumeLayout(false);
+
         }
 
         #endregion
@@ -520,5 +527,6 @@ namespace PTMedicalInsurance.Forms
         private System.Windows.Forms.ToolStripMenuItem FYMXToolStripMenuItem;
         private System.Windows.Forms.ToolStripMenuItem cityToolStripMenuItem;
         private System.Windows.Forms.ToolStripMenuItem cityDesignToolStripMenuItem;
+        private ToolStripMenuItem SybDeleteToolStripMenuItem;
     }
 }

+ 0 - 10
HuBeiMI/Forms/SettlementChecklist.resx

@@ -120,14 +120,4 @@
   <metadata name="JXCMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>113, 17</value>
   </metadata>
-  <metadata name="report1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
-  <data name="report1.ReportResourceString" xml:space="preserve">
-    <value>&lt;?xml version="1.0" encoding="utf-8"?&gt;
-&lt;Report ScriptLanguage="CSharp" ReportInfo.Created="07/20/2022 15:48:06" ReportInfo.Modified="10/23/2024 16:18:42" ReportInfo.CreatorVersion="2023.1.8.0"&gt;
-  &lt;Dictionary/&gt;
-&lt;/Report&gt;
-</value>
-  </data>
 </root>

+ 1 - 1
HuBeiMI/InsuBusiness.cs

@@ -947,7 +947,7 @@ namespace PTMedicalInsurance
                             //正式结算
                             JObject joData = new JObject();
                             joData.Add("data",joSettlement);
-                            JObject joRtn = invoker.invokeCenterService("2207", JsonHelper.setCenterInpar("2207", joData));
+                            JObject joRtn = invoker.invokeCenterService("2207", JsonHelper.setCenterInpar("2207A", joData));
                             if (JsonHelper.parseCenterRtnValue(joRtn, out errMsg) != 0)
                             {
                                 rtnResult = JsonHelper.setExceptionJson(-1, "结算失败", errMsg).ToString();