SettlementInfoOP.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Newtonsoft.Json.Linq;
  11. using PTMedicalInsurance.Variables;
  12. using PTMedicalInsurance.Business;
  13. using System.Xml;
  14. using Newtonsoft.Json.Linq;
  15. using PTMedicalInsurance.Common;
  16. using PTMedicalInsurance.Helper;
  17. namespace PTMedicalInsurance.Forms
  18. {
  19. public partial class SettlementInfo : Form
  20. {
  21. //1.声明自适应类实例
  22. AutoResizeForm asc = new AutoResizeForm();
  23. AnalysisXML AnXML = new AnalysisXML();
  24. ReadCardClass rcl = new ReadCardClass();
  25. public DataTable dtSettlmentDetail;
  26. //险种
  27. public string insuType { get; set; }
  28. public SettlementInfo()
  29. {
  30. InitializeComponent();
  31. this.StartPosition = FormStartPosition.CenterParent;
  32. asc.controllInitializeSize(this);
  33. asc.controlAutoSize(this);
  34. }
  35. public SettlementInfo(XmlDocument xmlDoc)
  36. {
  37. InitializeComponent();
  38. SettlementInfoOP(xmlDoc);
  39. }
  40. public void SettlementInfoOP(XmlDocument xmlDoc)
  41. {
  42. //交易信息(tradeinfo)
  43. XmlNode TradeInfoNode = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/tradeinfo");
  44. string tradeno = AnXML.FormatXMLElement(xmlDoc, TradeInfoNode, "tradeno", 0); //交易流水号
  45. string feeno = AnXML.FormatXMLElement(xmlDoc, TradeInfoNode, "feeno", 0); //收费单据号
  46. string tradedate = AnXML.FormatXMLElement(xmlDoc, TradeInfoNode, "tradedate", 0); //交易时间 格式为:YYYYMMDDHHMMSS
  47. //汇总支付信息(sumpay)
  48. XmlNode SumPayNode = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/sumpay");
  49. string feeall = AnXML.FormatXMLElement(xmlDoc, SumPayNode, "feeall", 1); //费用总金额
  50. string fund = AnXML.FormatXMLElement(xmlDoc, SumPayNode, "fund", 1); //基金支付
  51. string cash = AnXML.FormatXMLElement(xmlDoc, SumPayNode, "cash", 1); //现金支付
  52. string personcountpay = AnXML.FormatXMLElement(xmlDoc, SumPayNode, "personcountpay", 1); //个人帐户支付
  53. //支付信息(payinfo)
  54. XmlNode PayInfoNode = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/payinfo");
  55. string mzfee = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzfee", 1); //费用总金额
  56. string mzfeein = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzfeein", 1); //医保内总金额
  57. string mzfeeout = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzfeeout", 1); //医保外总金额
  58. string mzpayfirst = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzpayfirst", 1); //本次付起付线金额
  59. string mzselfpay2 = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzselfpay2", 1);//个人自付2
  60. string mzbigpay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzbigpay", 1); //门诊大额支付金额
  61. string mzbigselfpay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzbigselfpay", 1); //门诊大额自付金额
  62. string mzoutofbig = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "mzoutofbig", 1); //超大额自付金额
  63. string bcpay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "bcpay", 1); //补充保险支付
  64. string jcbz = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "jcbz", 1); //军残补助保险支付
  65. string big_ill_pay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "big_ill_pay", 1); //大病支付金额
  66. string civil_pay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "civil_pay", 1); //民政救助支付金额
  67. string ExServicePay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "ExServicePay", 1); //退役军转干部退役医疗费支付
  68. //string txbz = PayInfoNode.SelectNodes("txbz")[0].InnerText; //退休补助金额
  69. //string offi_true = PayInfoNode.SelectNodes("offi_true")[0].InnerText; //单位补充医疗保险(原公疗)支付金额
  70. //string year_mzfeein = PayInfoNode.SelectNodes("year_mzfeein")[0].InnerText; //年度门诊医保内费用累计
  71. //string year_mzbigpay = PayInfoNode.SelectNodes("year_mzbigpay")[0].InnerText; //年度门诊大额支付累计
  72. //string year_mzoutofbig = PayInfoNode.SelectNodes("year_mzoutofbig")[0].InnerText; //门诊大额封顶后医保内金额累计
  73. //string first_year_mzfeein = PayInfoNode.SelectNodes("first_year_mzfeein")[0].InnerText; //一级医院年度门诊医保内费用累计
  74. //string first_year_mzbigpay = PayInfoNode.SelectNodes("first_year_mzbigpay")[0].InnerText; //一级医院年度门诊大额支付累计
  75. //string first_year_mzoutofbig = PayInfoNode.SelectNodes("first_year_mzoutofbig")[0].InnerText; //一级医院门诊大额封顶后医保内金额累计
  76. //string selfpay1 = PayInfoNode.SelectNodes("selfpay1")[0].InnerText; //自付一
  77. //string bigillcomm = PayInfoNode.SelectNodes("bigillcomm")[0].InnerText; //年度大病内累计金额
  78. string txbz = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "txbz", 1); //退休补助金额
  79. string offi_true = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "offi_true", 1); //单位补充医疗保险(原公疗)支付金额
  80. string year_mzfeein = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "year_mzfeein", 1); //年度门诊医保内费用累计
  81. string year_mzbigpay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "year_mzbigpay", 1); //年度门诊大额支付累计
  82. string year_mzoutofbig = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "year_mzoutofbig", 1); //门诊大额封顶后医保内金额累计
  83. string first_year_mzfeein = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "first_year_mzfeein", 1); //一级医院年度门诊医保内费用累计
  84. string first_year_mzbigpay = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "first_year_mzbigpay", 1); //一级医院年度门诊大额支付累计
  85. string first_year_mzoutofbig = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "first_year_mzoutofbig", 1); //一级医院门诊大额封顶后医保内金额累计
  86. string selfpay1 = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "selfpay1", 1); //自付一
  87. string bigillcomm = AnXML.FormatXMLElement(xmlDoc, PayInfoNode, "bigillcomm", 1); //年度大病内累计金额
  88. this.tb1.Text = Global.pat.name;
  89. if (Global.pat.iOtherProvLocal == 0)
  90. this.tb2.Text = "本地";
  91. else
  92. this.tb2.Text = "异地";
  93. this.tb3.Text = Global.pat.card.NO;
  94. this.tb4.Text = Global.pat.certNO;
  95. this.tb5.Text = Global.pat.psn_type;
  96. this.tb6.Text = Global.pat.insuTypeName;
  97. this.tb7.Text = Global.pat.psn_no;
  98. this.tb8.Text = Global.pat.balc;
  99. this.tb9.Text = feeall;
  100. this.tb10.Text = fund;
  101. this.tb11.Text = cash;
  102. this.tb12.Text = personcountpay;
  103. this.tb13.Text = tradeno;
  104. this.tb14.Text = feeno;
  105. this.tb15.Text = tradedate;
  106. this.tb16.Text = mzfee;
  107. this.tb17.Text = jcbz;
  108. this.tb18.Text = ExServicePay;
  109. this.tb19.Text = mzfeein;
  110. this.tb20.Text = big_ill_pay;
  111. this.tb21.Text = year_mzfeein;
  112. this.tb22.Text = mzfeeout;
  113. this.tb23.Text = txbz;
  114. this.tb24.Text = mzoutofbig;
  115. this.tb25.Text = mzselfpay2;
  116. this.tb26.Text = civil_pay;
  117. this.tb27.Text = mzbigselfpay;
  118. this.tb28.Text = selfpay1;
  119. this.tb29.Text = bcpay;
  120. this.tb30.Text = bigillcomm;
  121. this.tb31.Text = mzpayfirst;
  122. this.tb32.Text = mzbigpay;
  123. this.tb33.Text = year_mzbigpay;
  124. this.tb34.Text = offi_true;
  125. this.tb35.Text = year_mzoutofbig;
  126. this.tb36.Text = first_year_mzoutofbig;
  127. this.tb37.Text = first_year_mzbigpay;
  128. this.tb38.Text = first_year_mzfeein;
  129. Global.Set.acctPay = personcountpay;
  130. Global.Set.settlID = tradeno; //医保返回交易流水号
  131. }
  132. public void SettlementInfoOP(JObject joInput)
  133. {
  134. //交易信息(tradeinfo)
  135. string tradeno = JsonHelper.getDestValue(joInput, "root.output.tradeinfo.tradeno"); //交易流水号
  136. string feeno = JsonHelper.getDestValue(joInput, "root.output.tradeinfo.feeno"); //收费单据号
  137. string tradedate = JsonHelper.getDestValue(joInput, "root.output.tradeinfo.tradedate"); //交易时间 格式为:YYYYMMDDHHMMSS
  138. //汇总支付信息(sumpay)
  139. string feeall = JsonHelper.getDestValue(joInput, "root.output.sumpay.feeall"); //费用总金额
  140. string fund = JsonHelper.getDestValue(joInput, "root.output.sumpay.fund"); //基金支付
  141. string cash = JsonHelper.getDestValue(joInput, "root.output.sumpay.cash"); //现金支付
  142. string personcountpay = JsonHelper.getDestValue(joInput, "root.output.sumpay.personcountpay"); //个人帐户支付
  143. //支付信息(payinfo)
  144. string mzfee = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzfee"); //费用总金额
  145. string mzfeein = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzfeein"); //医保内总金额
  146. string mzfeeout = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzfeeout"); //医保外总金额
  147. string mzpayfirst = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzpayfirst"); //本次付起付线金额
  148. string mzselfpay2 = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzselfpay2");//个人自付2
  149. string mzbigpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzbigpay"); //门诊大额支付金额
  150. string mzbigselfpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzbigselfpay"); //门诊大额自付金额
  151. string mzoutofbig = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzoutofbig"); //超大额自付金额
  152. string bcpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.bcpay"); //补充保险支付
  153. string jcbz = JsonHelper.getDestValue(joInput, "root.output.payinfo.jcbz"); //军残补助保险支付
  154. string big_ill_pay = JsonHelper.getDestValue(joInput, "root.output.payinfo.big_ill_pay"); //大病支付金额
  155. string civil_pay = JsonHelper.getDestValue(joInput, "root.output.payinfo.civil_pay"); //民政救助支付金额
  156. string ExServicePay = JsonHelper.getDestValue(joInput, "root.output.payinfo.ExServicePay"); //退役军转干部退役医疗费支付
  157. string txbz = JsonHelper.getDestValue(joInput, "root.output.payinfo.txbz"); //退休补助金额
  158. string offi_true = JsonHelper.getDestValue(joInput, "root.output.payinfo.offi_true"); //单位补充医疗保险(原公疗)支付金额
  159. string year_mzfeein = JsonHelper.getDestValue(joInput, "root.output.payinfo.year_mzfeein"); //年度门诊医保内费用累计
  160. string year_mzbigpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.year_mzbigpay"); //年度门诊大额支付累计
  161. string year_mzoutofbig = JsonHelper.getDestValue(joInput, "root.output.payinfo.year_mzoutofbig"); //门诊大额封顶后医保内金额累计
  162. string first_year_mzfeein = JsonHelper.getDestValue(joInput, "root.output.payinfo.first_year_mzfeein"); //一级医院年度门诊医保内费用累计
  163. string first_year_mzbigpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.first_year_mzbigpay"); //一级医院年度门诊大额支付累计
  164. string first_year_mzoutofbig = JsonHelper.getDestValue(joInput, "root.output.payinfo.first_year_mzoutofbig"); //一级医院门诊大额封顶后医保内金额累计
  165. string selfpay1 = JsonHelper.getDestValue(joInput, "root.output.payinfo.selfpay1"); //自付一
  166. string bigillcomm = JsonHelper.getDestValue(joInput, "root.output.payinfo.bigillcomm"); //年度大病内累计金额
  167. //分类汇总信息
  168. string diagnosis = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.diagnosis"); //诊察费
  169. string examine = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.examine"); //检查费
  170. string labexam = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.labexam"); //化验费
  171. string treatment = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.treatment"); //治疗费
  172. string operation = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.operation"); //手术费
  173. string material = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.material"); //卫生材料费
  174. string medicine = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.medicine"); //西药费
  175. string therb = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.therb"); //中草药
  176. string tmedicine = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.tmedicine"); //中成药费
  177. string medicalservice = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.medicalservice"); //医事服务费
  178. string commonservice = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.commonservice"); //一般诊疗费
  179. string registfee = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.registfee"); //挂号费
  180. string otheropfee = JsonHelper.getDestValue(joInput, "root.output.medicatalog2.otheropfee"); //其他门诊收费
  181. this.tb1.Text = Global.pat.name;
  182. if (Global.pat.iOtherProvLocal == 0)
  183. this.tb2.Text = "本地";
  184. else
  185. this.tb2.Text = "异地";
  186. this.tb3.Text = Global.pat.card.NO;
  187. this.tb4.Text = Global.pat.certNO;
  188. this.tb5.Text = Global.pat.psn_type;
  189. this.tb6.Text = Global.pat.insuTypeName;
  190. this.tb7.Text = Global.pat.psn_no;
  191. this.tb8.Text = Global.pat.balc;
  192. this.tb9.Text = feeall;
  193. this.tb10.Text = fund;
  194. this.tb11.Text = cash;
  195. this.tb12.Text = personcountpay;
  196. this.tb13.Text = tradeno;
  197. this.tb14.Text = feeno;
  198. this.tb15.Text = tradedate;
  199. this.tb16.Text = mzfee;
  200. this.tb17.Text = jcbz;
  201. this.tb18.Text = ExServicePay;
  202. this.tb19.Text = mzfeein;
  203. this.tb20.Text = big_ill_pay;
  204. this.tb21.Text = year_mzfeein;
  205. this.tb22.Text = mzfeeout;
  206. this.tb23.Text = txbz;
  207. this.tb24.Text = mzoutofbig;
  208. this.tb25.Text = mzselfpay2;
  209. this.tb26.Text = civil_pay;
  210. this.tb27.Text = mzbigselfpay;
  211. this.tb28.Text = selfpay1;
  212. this.tb29.Text = bcpay;
  213. this.tb30.Text = bigillcomm;
  214. this.tb31.Text = mzpayfirst;
  215. this.tb32.Text = mzbigpay;
  216. this.tb33.Text = year_mzbigpay;
  217. this.tb34.Text = offi_true;
  218. this.tb35.Text = year_mzoutofbig;
  219. this.tb36.Text = first_year_mzoutofbig;
  220. this.tb37.Text = first_year_mzbigpay;
  221. this.tb38.Text = first_year_mzfeein;
  222. this.rtb_Medicatalog_BD.Text = "诊察费:" + diagnosis + ","
  223. + "检查费:" + examine + ","
  224. + "化验费:" + labexam + ","
  225. + "治疗费:" + treatment + ","
  226. + "手术费:" + operation + ","
  227. + "卫生材料费:" + material + ","
  228. + "西药费:" + medicine + ","
  229. + "中草药费:" + therb + ","
  230. + "中成药费:" + tmedicine + ","
  231. + "医事服务费:" + medicalservice + ","
  232. + "一般诊疗费:" + commonservice + ","
  233. + "挂号费:" + registfee + ","
  234. + "其他门诊收费:" + otheropfee;
  235. Global.Set.acctPay = personcountpay;
  236. Global.Set.settlID = tradeno; //医保返回交易流水号
  237. }
  238. public void SettlementInfoOPOther(JObject joInput)
  239. {
  240. //交易信息(tradeinfo)
  241. string tradeno = JsonHelper.getDestValue(joInput, "root.output.tradeinfo.tradeno"); //交易流水号
  242. string feeno = JsonHelper.getDestValue(joInput, "root.output.tradeinfo.feeno"); //收费单据号
  243. string tradedate = JsonHelper.getDestValue(joInput, "root.output.tradeinfo.tradedate"); //交易时间 格式为:YYYYMMDDHHMMSS
  244. //汇总支付信息(sumpay)
  245. string feeall = JsonHelper.getDestValue(joInput, "root.output.sumpay.feeall"); //费用总金额
  246. string fund = JsonHelper.getDestValue(joInput, "root.output.sumpay.fund"); //基金支付
  247. string cash = JsonHelper.getDestValue(joInput, "root.output.sumpay.cash"); //现金支付
  248. string personcountpay = JsonHelper.getDestValue(joInput, "root.output.sumpay.personcountpay"); //个人帐户支付
  249. //支付信息(payinfo)
  250. string mzpayfirst = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzpayfirst");//本次付起付线金额
  251. string mzfee = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzfee"); //费用总金额
  252. string mzfeein = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzfeein"); //医保内总金额
  253. string mzfeeout = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzfeeout"); //医保外总金额
  254. string BasePay = JsonHelper.getDestValue(joInput, "root.output.payinfo.BasePay"); //基本医疗保险统筹基金支付金额
  255. string GwybzPay = JsonHelper.getDestValue(joInput, "root.output.payinfo.GwybzPay"); //公务员医疗补助基金
  256. string bcpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.bcpay"); //补充保险支付金额
  257. string mzbigpay = JsonHelper.getDestValue(joInput, "root.output.payinfo.mzbigpay"); //门诊大额支付金额
  258. string jcbz = JsonHelper.getDestValue(joInput, "root.output.payinfo.jcbz"); //军残补助保险金额
  259. string MzbzPay = JsonHelper.getDestValue(joInput, "root.output.payinfo.MzbzPay"); //民政补助基金
  260. string OtherPay = JsonHelper.getDestValue(joInput, "root.output.payinfo.OtherPay"); //其他基金支付
  261. string Cash = JsonHelper.getDestValue(joInput, "root.output.payinfo.Cash"); //个人现金支付
  262. string PersonCountPay = JsonHelper.getDestValue(joInput, "root.output.payinfo.PersonCountPay"); //个人账户支付
  263. string PersonCountBalance = JsonHelper.getDestValue(joInput, "root.output.payinfo.PersonCountBalance"); //个人账户余额
  264. string CLAB_PRESELFPAY_FEE = JsonHelper.getDestValue(joInput, "root.output.payinfo.CLAB_PRESELFPAY_FEE"); //乙类先行自付费用
  265. string OVERLMT_SELFPAY = JsonHelper.getDestValue(joInput, "root.output.payinfo.OVERLMT_SELFPAY"); //超限价自付费用
  266. string PSN_OWNPAY_FEE = JsonHelper.getDestValue(joInput, "root.output.payinfo.PSN_OWNPAY_FEE"); //个人自费费用
  267. string PSN_SELFPAY_FEE = JsonHelper.getDestValue(joInput, "root.output.payinfo.PSN_SELFPAY_FEE"); //个人自付费用
  268. string SelfPayFlag = JsonHelper.getDestValue(joInput, "root.output.payinfo.SelfPayFlag"); //全额垫付标志
  269. string PromptMessage = JsonHelper.getDestValue(joInput, "root.output.payinfo.PromptMessage"); //提示信息
  270. string diagnosis = JsonHelper.getDestValue(joInput, "root.output.medicatalog.diagnosis"); //诊察费
  271. string examine = JsonHelper.getDestValue(joInput, "root.output.medicatalog.examine"); //检查费
  272. string labexam = JsonHelper.getDestValue(joInput, "root.output.medicatalog.labexam"); //化验费
  273. string treatment = JsonHelper.getDestValue(joInput, "root.output.medicatalog.treatment"); //治疗费
  274. string operation = JsonHelper.getDestValue(joInput, "root.output.medicatalog.operation"); //手术费
  275. string material = JsonHelper.getDestValue(joInput, "root.output.medicatalog.material"); //卫生材料费
  276. string medicine = JsonHelper.getDestValue(joInput, "root.output.medicatalog.medicine"); //西药费
  277. string therb = JsonHelper.getDestValue(joInput, "root.output.medicatalog.therb"); //中草药
  278. string tmedicine = JsonHelper.getDestValue(joInput, "root.output.medicatalog.tmedicine"); //中成药费
  279. string medicalservice = JsonHelper.getDestValue(joInput, "root.output.medicatalog.medicalservice"); //医事服务费
  280. string commonservice = JsonHelper.getDestValue(joInput, "root.output.medicatalog.commonservice"); //一般诊疗费
  281. string registfee = JsonHelper.getDestValue(joInput, "root.output.medicatalog.registfee"); //挂号费
  282. string otheropfee = JsonHelper.getDestValue(joInput, "root.output.medicatalog.otheropfee"); //其他门诊收费
  283. this.utb1.Text = Global.pat.name;
  284. if (Global.pat.iOtherProvLocal == 0)
  285. this.utb2.Text = "本地";
  286. else
  287. this.utb2.Text = "异地";
  288. this.utb3.Text = Global.pat.card.NO;
  289. this.utb4.Text = Global.pat.certNO;
  290. this.utb5.Text = Global.pat.psn_type;
  291. this.utb6.Text = Global.pat.insuTypeName;
  292. this.utb7.Text = Global.pat.psn_no;
  293. this.utb8.Text = Global.pat.balc;
  294. this.utb9.Text = feeall;
  295. this.utb10.Text = fund;
  296. this.utb11.Text = cash;
  297. this.utb12.Text = personcountpay;
  298. this.utb13.Text = tradeno;
  299. this.utb14.Text = feeno;
  300. this.utb15.Text = tradedate;
  301. this.utb16.Text = mzfee;
  302. this.utb17.Text = mzfeein;
  303. this.utb18.Text = mzfeeout;
  304. this.utb19.Text = BasePay;
  305. this.utb20.Text = GwybzPay;
  306. this.utb21.Text = bcpay;
  307. this.utb22.Text = mzbigpay;
  308. this.utb23.Text = jcbz;
  309. this.utb24.Text = MzbzPay;
  310. this.utb25.Text = OtherPay;
  311. this.utb26.Text = cash;
  312. this.utb27.Text = PersonCountPay;
  313. this.utb28.Text = PersonCountBalance;
  314. this.utb29.Text = CLAB_PRESELFPAY_FEE;
  315. this.utb30.Text = OVERLMT_SELFPAY;
  316. this.utb31.Text = PSN_OWNPAY_FEE;
  317. this.utb32.Text = PSN_SELFPAY_FEE;
  318. this.utb33.Text = SelfPayFlag;
  319. this.utb34.Text = PromptMessage;
  320. this.utb35.Text = mzpayfirst;
  321. this.rtb_Medicatalog_YD.Text = "诊察费:" + diagnosis + ","
  322. + "检查费:" + examine + ","
  323. + "化验费:" + labexam + ","
  324. + "治疗费:" + treatment + ","
  325. + "手术费:" + operation + ","
  326. + "卫生材料费:" + material + ","
  327. + "西药费:" + medicine + ","
  328. + "中草药费:" + therb + ","
  329. + "中成药费:" + tmedicine + ","
  330. + "医事服务费:" + medicalservice + ","
  331. + "一般诊疗费:" + commonservice + ","
  332. + "挂号费:" + registfee + ","
  333. + "其他门诊收费:" + otheropfee;
  334. Global.Set.acctPay = personcountpay;
  335. Global.Set.settlID = tradeno; //医保返回交易流水号
  336. }
  337. public SettlementInfo(JObject joInput,int iOtherProvLocal)
  338. {
  339. InitializeComponent();
  340. //本地加载
  341. if (iOtherProvLocal == 0)
  342. {
  343. tcMain.SelectedIndex = 0;
  344. SettlementInfoOP(joInput);
  345. }
  346. else
  347. {
  348. tcMain.SelectedIndex = 1;
  349. SettlementInfoOPOther(joInput);
  350. }
  351. //tcMain.Enabled = false;
  352. }
  353. private void uiButton1_Click(object sender, EventArgs e)
  354. {
  355. DialogResult = DialogResult.OK;
  356. }
  357. private void uiButton2_Click(object sender, EventArgs e)
  358. {
  359. DialogResult = DialogResult.Cancel;
  360. }
  361. }
  362. }