Prechádzať zdrojové kódy

fix: 待遇检查提示

zhengjie 1 rok pred
rodič
commit
c3c1a2f992

+ 30 - 12
Forms/OutpatientRegistration.cs

@@ -277,10 +277,10 @@ namespace PTMedicalInsurance.Forms
             }
         }
 
-        public int DealFor2001(string funNO, out string OutMsg)
+        public void DealFor2001()
         {
             //人员待遇享受检查
-            string errMsg = "";
+            string errorMsg = "";
             JObject joData2001 = new JObject();
             joData2001.Add("psn_no", Global.pat.psn_no);
             joData2001.Add("insutype", insuType);
@@ -298,26 +298,44 @@ namespace PTMedicalInsurance.Forms
             JObject joInput = new JObject();
             joInput.Add("data", joData2001);
             InvokeHelper invoker = new InvokeHelper();
-            JObject joRtn2001 = invoker.invokeCenterService("2001", JsonHelper.setCenterInpar("2001", joInput));
 
-            if (JsonHelper.parseCenterRtnValue(joRtn2001, out errMsg) != 0)
+            string sInput = JsonHelper.setCenterInpar("2001", joInput);
+            JObject joRtn = invoker.invokeCenterService("2001", sInput);
+            if (JsonHelper.parseCenterRtnValue(joRtn, out errorMsg) != 0)
             {
-                OutMsg = "人员待遇享受检查调用失败,中心返回错误信息:" + errMsg;
-                return -1;
+                MessageBox.Show("人员待遇享受检查失败:" + errorMsg);
             }
             else
             {
-                OutMsg = "人员待遇享受检查调用成功:" + joRtn2001.ToString();
-                return 0;
+                string treatInfo = JsonHelper.getDestValue(joRtn, "output.trtinfo");
+                if (!string.IsNullOrEmpty(treatInfo))
+                {
+                    JArray jarray = JArray.Parse(treatInfo);
+                    StringBuilder sb = new StringBuilder();
+                    foreach (JObject obj in jarray)
+                    {
+                        string flag = JsonHelper.getDestValue(obj, "trt_enjymnt_flag");
+                        if ("0".Equals(flag))
+                        {
+                            string fundType = JsonHelper.getDestValue(obj, "fund_pay_type");
+                            string msg = JsonHelper.getDestValue(obj, "trt_chk_rslt");
+                            sb.Append("基金类型:【" + fundType + "】" + msg);
+                        }
+                    }
+                    if (sb.Length > 0)
+                    {
+                        MessageBox.Show("人员待遇享受检查结果:" + sb.ToString());
+                        return ;
+                    }
+                }
+
+                MessageBox.Show("人员待遇享受检查结果:【正常】!");
             }
         }
 
         private void uiButton1_Click(object sender, EventArgs e)
         {
-            string OutMsg = "";
-            DealFor2001("", out OutMsg);
-
-            MessageBox.Show(OutMsg);
+            DealFor2001();
         }
 
         private void dblkcbxHospType_AfterSelector(object sender, PTControl.AfterSelectorEventArgs e)

+ 25 - 20
Forms/OutpatientRegistration.designer.cs

@@ -121,7 +121,7 @@ namespace PTMedicalInsurance.Forms
             "6\t非体外循环"});
             this.cbxUnifPayStdType.Location = new System.Drawing.Point(163, 223);
             this.cbxUnifPayStdType.Name = "cbxUnifPayStdType";
-            this.cbxUnifPayStdType.Size = new System.Drawing.Size(257, 30);
+            this.cbxUnifPayStdType.Size = new System.Drawing.Size(257, 26);
             this.cbxUnifPayStdType.TabIndex = 50;
             // 
             // label7
@@ -131,7 +131,7 @@ namespace PTMedicalInsurance.Forms
             this.label7.Location = new System.Drawing.Point(35, 226);
             this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(142, 22);
+            this.label7.Size = new System.Drawing.Size(129, 19);
             this.label7.TabIndex = 49;
             this.label7.Text = "包干标准类型";
             // 
@@ -199,12 +199,12 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxHospType.sDisplayField = "";
             this.dblkcbxHospType.sDisplayMember = "";
             this.dblkcbxHospType.SeparatorChar = "|";
-            this.dblkcbxHospType.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxHospType.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxHospType.sKeyWords = "";
             this.dblkcbxHospType.sValueMember = "";
             this.dblkcbxHospType.TabIndex = 44;
             this.dblkcbxHospType.Value = "";
-            this.dblkcbxHospType.AfterSelector += new PTControl.AfterSelectorEventHandler(this.dblkcbxHospType_AfterSelector);
+            this.dblkcbxHospType.AfterSelector += DblkcbxHospType_AfterSelector;
             // 
             // label8
             // 
@@ -213,7 +213,7 @@ namespace PTMedicalInsurance.Forms
             this.label8.Location = new System.Drawing.Point(506, 177);
             this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(98, 22);
+            this.label8.Size = new System.Drawing.Size(89, 19);
             this.label8.TabIndex = 43;
             this.label8.Text = "住院类型";
             // 
@@ -227,7 +227,7 @@ namespace PTMedicalInsurance.Forms
             "4.无症状感染者"});
             this.cbxMdtrtGrpType.Location = new System.Drawing.Point(163, 174);
             this.cbxMdtrtGrpType.Name = "cbxMdtrtGrpType";
-            this.cbxMdtrtGrpType.Size = new System.Drawing.Size(257, 30);
+            this.cbxMdtrtGrpType.Size = new System.Drawing.Size(257, 26);
             this.cbxMdtrtGrpType.TabIndex = 42;
             // 
             // label9
@@ -237,7 +237,7 @@ namespace PTMedicalInsurance.Forms
             this.label9.Location = new System.Drawing.Point(35, 177);
             this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(142, 22);
+            this.label9.Size = new System.Drawing.Size(129, 19);
             this.label9.TabIndex = 41;
             this.label9.Text = "就诊人群类型";
             // 
@@ -252,7 +252,7 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxDiseaseType.sDisplayField = "";
             this.dblkcbxDiseaseType.sDisplayMember = "";
             this.dblkcbxDiseaseType.SeparatorChar = "|";
-            this.dblkcbxDiseaseType.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxDiseaseType.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxDiseaseType.sKeyWords = "";
             this.dblkcbxDiseaseType.sValueMember = "";
             this.dblkcbxDiseaseType.TabIndex = 23;
@@ -270,7 +270,7 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxSettelmentWay.sDisplayField = "";
             this.dblkcbxSettelmentWay.sDisplayMember = "";
             this.dblkcbxSettelmentWay.SeparatorChar = "|";
-            this.dblkcbxSettelmentWay.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxSettelmentWay.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxSettelmentWay.sKeyWords = "";
             this.dblkcbxSettelmentWay.sValueMember = "";
             this.dblkcbxSettelmentWay.TabIndex = 22;
@@ -288,7 +288,7 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxOperation.sDisplayField = "";
             this.dblkcbxOperation.sDisplayMember = "";
             this.dblkcbxOperation.SeparatorChar = "|";
-            this.dblkcbxOperation.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxOperation.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxOperation.sKeyWords = "";
             this.dblkcbxOperation.sValueMember = "";
             this.dblkcbxOperation.TabIndex = 21;
@@ -306,7 +306,7 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxDisease.sDisplayField = "";
             this.dblkcbxDisease.sDisplayMember = "";
             this.dblkcbxDisease.SeparatorChar = "|";
-            this.dblkcbxDisease.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxDisease.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxDisease.sKeyWords = "";
             this.dblkcbxDisease.sValueMember = "";
             this.dblkcbxDisease.TabIndex = 20;
@@ -324,7 +324,7 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxMedicalType.sDisplayField = "";
             this.dblkcbxMedicalType.sDisplayMember = "";
             this.dblkcbxMedicalType.SeparatorChar = "|";
-            this.dblkcbxMedicalType.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxMedicalType.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxMedicalType.sKeyWords = "";
             this.dblkcbxMedicalType.sValueMember = "";
             this.dblkcbxMedicalType.TabIndex = 19;
@@ -342,7 +342,7 @@ namespace PTMedicalInsurance.Forms
             this.dblkcbxInsuranceType.sDisplayField = "";
             this.dblkcbxInsuranceType.sDisplayMember = "";
             this.dblkcbxInsuranceType.SeparatorChar = "|";
-            this.dblkcbxInsuranceType.Size = new System.Drawing.Size(257, 30);
+            this.dblkcbxInsuranceType.Size = new System.Drawing.Size(257, 26);
             this.dblkcbxInsuranceType.sKeyWords = "";
             this.dblkcbxInsuranceType.sValueMember = "";
             this.dblkcbxInsuranceType.TabIndex = 18;
@@ -356,7 +356,7 @@ namespace PTMedicalInsurance.Forms
             this.label6.Location = new System.Drawing.Point(506, 128);
             this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(98, 22);
+            this.label6.Size = new System.Drawing.Size(89, 19);
             this.label6.TabIndex = 17;
             this.label6.Text = "病种类型";
             // 
@@ -367,7 +367,7 @@ namespace PTMedicalInsurance.Forms
             this.label5.Location = new System.Drawing.Point(506, 79);
             this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(98, 22);
+            this.label5.Size = new System.Drawing.Size(89, 19);
             this.label5.TabIndex = 16;
             this.label5.Text = "手术操作";
             // 
@@ -378,7 +378,7 @@ namespace PTMedicalInsurance.Forms
             this.label4.Location = new System.Drawing.Point(506, 30);
             this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(98, 22);
+            this.label4.Size = new System.Drawing.Size(89, 19);
             this.label4.TabIndex = 15;
             this.label4.Text = "医疗类别";
             // 
@@ -389,7 +389,7 @@ namespace PTMedicalInsurance.Forms
             this.label3.Location = new System.Drawing.Point(67, 128);
             this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(98, 22);
+            this.label3.Size = new System.Drawing.Size(89, 19);
             this.label3.TabIndex = 14;
             this.label3.Text = "结算方式";
             // 
@@ -400,7 +400,7 @@ namespace PTMedicalInsurance.Forms
             this.label2.Location = new System.Drawing.Point(67, 79);
             this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(98, 22);
+            this.label2.Size = new System.Drawing.Size(89, 19);
             this.label2.TabIndex = 13;
             this.label2.Text = "病种名称\r\n";
             // 
@@ -411,7 +411,7 @@ namespace PTMedicalInsurance.Forms
             this.label1.Location = new System.Drawing.Point(67, 30);
             this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(98, 22);
+            this.label1.Size = new System.Drawing.Size(89, 19);
             this.label1.TabIndex = 12;
             this.label1.Text = "险种类型";
             // 
@@ -600,7 +600,7 @@ namespace PTMedicalInsurance.Forms
             // 
             // OutpatientRegistration
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 22F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(1197, 527);
             this.Controls.Add(this.panel3);
@@ -620,6 +620,11 @@ namespace PTMedicalInsurance.Forms
 
         }
 
+        private void DblkcbxHospType_AfterSelector(object sender, PTControl.AfterSelectorEventArgs e)
+        {
+            throw new System.NotImplementedException();
+        }
+
         #endregion
 
 

+ 5 - 2
Forms/PatientInsuInfo.cs

@@ -174,8 +174,11 @@ namespace PTMedicalInsurance.Forms
                             sb.Append("基金类型:【"+fundType+"】"+msg);
                         }
                     }
-                    MessageBox.Show("人员待遇享受检查结果:" + sb.ToString());
-                    return;
+                    if (sb.Length > 0)
+                    {
+                        MessageBox.Show("人员待遇享受检查结果:" + sb.ToString());
+                        return;
+                    }
                 }
 
                 MessageBox.Show("人员待遇享受检查结果:【正常】!");