Prechádzať zdrojové kódy

pref:调试电子结算凭证上传

zhanfei 3 mesiacov pred
rodič
commit
267cf79da2

+ 2 - 1
Business/ElectronicSettlementCertificate.cs

@@ -145,7 +145,8 @@ namespace PTMedicalInsurance.Business
                 ecSettlCertNo = JsonHelper.getDestValue(jo, "tktextinfo.billInfo.elecSetlCertNo");
                 string setlId = JsonHelper.getDestValue(jo, "tktextinfo.mdtrtInfo.setlId");
                 //xmlName = $"{ecSettlCertNo}-{setlId}-extinfo.xml";
-                xmlName = $"{ecSettlCertNo}-extinfo.xml";
+                //xmlName = $"{ecSettlCertNo}-extinfo.xml";
+                xmlName = $"{ecSettlCertNo}.xml";
                 pdfName = $"{ecSettlCertNo}.pdf";
                 // 创建临时XML文件
                 folderPath = $@"{savePath}\ElecXml\{ecSettlCertNo}";

+ 2 - 0
Forms/ElectronicSettlementCertificate/EcSettlCertUpload.cs

@@ -115,6 +115,8 @@ namespace PTMedicalInsurance.Forms.ElectronicSettlementCertificates
             {
                 jo["tktextinfo"]["mdtrtInfo"]["fixmedinsCode"] = Global.inf.hospitalNO;
                 jo["tktextinfo"]["mdtrtInfo"]["fixmedinsName"] = Global.inf.hospitalName;
+                jo["tktextinfo"]["mdtrtInfo"]["fixBlngAdmdvs"] = Global.inf.areaCode;  //票据监管机构区划代码
+                jo["tktextinfo"]["billInfo"]["supninsCode"] = "420000";  //票据监管机构区划代码
             }
            
             joNeedConvertData["xml"] = jaXML;

+ 9 - 9
Forms/HandleException.cs

@@ -430,15 +430,15 @@ namespace PTMedicalInsurance.Forms
                 joTmp.Add("billID", "");
                 joTmp.Type = 3;
                 joTmp.CancleRegDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
-                JObject jo2404IrisRtn = hIS.cancleRegister(joTmp);
-                if (JsonHelper.parseIrisRtnValue(jo2404IrisRtn, out errorMessage) != 0)
-                {
-                    MessageBox.Show(errorMessage);
-                }
-                else
-                {
-                    MessageBox.Show("取消挂号成功");
-                }
+                //JObject jo2404IrisRtn = hIS.cancleRegister(joTmp);
+                //if (JsonHelper.parseIrisRtnValue(jo2404IrisRtn, out errorMessage) != 0)
+                //{
+                //    MessageBox.Show(errorMessage);
+                //}
+                //else
+                //{
+                //    MessageBox.Show("取消挂号成功");
+                //}
             }
         }
 

+ 2 - 1
Helper/XmlHelper.cs

@@ -23,7 +23,8 @@ namespace PTMedicalInsurance.Helper
         {
             XDocument XDoc = new XDocument();
             XDoc.Add(xInput);
-            XDoc.Declaration = new XDeclaration("1.0", "GBK", "yes");
+            //XDoc.Declaration = new XDeclaration("1.0", "GBK", "yes");
+            XDoc.Declaration = new XDeclaration("1.0", "UTF-8", "yes");
             return XDoc.ToStringWithDeclaration(); //扩展方法 https://learn.microsoft.com/zh-cn/dotnet/csharp/programming-guide/classes-and-structs/extension-methods
         }