ReadCardInfo.cs 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  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 System.Xml;
  11. using PTMedicalInsurance.Variables;
  12. using Newtonsoft.Json.Linq;
  13. using PTMedicalInsurance.Common;
  14. using PTMedicalInsurance.Helper;
  15. namespace PTMedicalInsurance
  16. {
  17. public partial class ReadCardInfo : Form
  18. {
  19. AnalysisXML AnXML = new AnalysisXML();
  20. public ReadCardInfo()
  21. {
  22. InitializeComponent();
  23. this.StartPosition = FormStartPosition.CenterParent;
  24. }
  25. public ReadCardInfo(string patInfo,int iOtherProvLocal)
  26. {
  27. InitializeComponent();
  28. string OutMsg;
  29. string persontype = "", isspecifiedhosp = "", ischronichosp = "", isinredlist = "";
  30. string sex = "", hospflag = "", isyt = "", jclevel = "", fundtype = "";
  31. string ServantFlag = "", PoorFlag = "", InHospitalNumber = "", AreaCode = "";
  32. //解析返回值
  33. XmlDocument xmlDoc = AnXML.GetXmlDoc(patInfo);
  34. if (iOtherProvLocal == 0) //本地
  35. {
  36. XmlNode dataNodeIC = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/ic");
  37. XmlNode dataNodeNet = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/net");
  38. this.edt_YBBH.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "ic_no", 0);
  39. persontype = AnXML.FormatXMLElement(xmlDoc, dataNodeNet, "persontype", 0); //人员类别
  40. isspecifiedhosp = AnXML.FormatXMLElement(xmlDoc, dataNodeNet, "isspecifiedhosp", 0);
  41. ischronichosp = AnXML.FormatXMLElement(xmlDoc, dataNodeNet, "ischronichosp", 0);
  42. isinredlist = AnXML.FormatXMLElement(xmlDoc, dataNodeNet, "isinredlist", 0);
  43. sex = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "sex", 0);
  44. hospflag = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "hospflag", 0);
  45. isyt = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "isyt", 0);
  46. jclevel = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "jclevel", 0);
  47. fundtype = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "fundtype", 0);
  48. this.edt_XM.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "personname", 0);
  49. this.edt_KH.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "card_no", 0);
  50. this.edt_SFZH.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "id_no", 0);
  51. this.edt_CSRQ.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "birthday", 0);
  52. this.edt_ZZSX.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "fromhospdate", 0);
  53. this.edt_ZZYYBM.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "fromhosp", 0);
  54. this.edt_MBBM.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeNet, "chroniccode", 0); //慢病编码
  55. this.edt_ZHYE.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeNet, "personcount", 0);
  56. }
  57. else
  58. {
  59. XmlNode dataNodeIC = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/ic");
  60. this.edt_YBBH.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "Person_manage", 0);
  61. persontype = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "persontype", 0); //人员类别
  62. sex = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "sex", 0);
  63. hospflag = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "hospflag", 0);
  64. isyt = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "isyt", 0);
  65. jclevel = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "jclevel", 0);
  66. fundtype = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "fundtype", 0);
  67. ServantFlag= AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "ServantFlag", 0);
  68. PoorFlag = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "PoorFlag", 0);
  69. InHospitalNumber = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "InHospitalNumber", 0);
  70. AreaCode = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "AreaCode", 0);
  71. this.edt_XM.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "personname", 0);
  72. this.edt_KH.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "card_no", 0);
  73. this.edt_SFZH.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "id_no", 0);
  74. this.edt_CSRQ.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "birthday", 0);
  75. this.edt_ZZSX.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "fromhospdate", 0);
  76. this.edt_ZZYYBM.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "fromhosp", 0);
  77. this.edt_ZHYE.Text = AnXML.FormatXMLElement(xmlDoc, dataNodeIC, "personcount", 0);
  78. Global.pat.insuplc_admdvs = AreaCode; //参保地行政区划
  79. this.edt_AreaCode.Text = AreaCode;
  80. }
  81. Global.pat.psn_no = this.edt_YBBH.Text;
  82. switch (persontype)
  83. {
  84. case "10":
  85. {
  86. this.edt_RYLB.Text = "本市复读的学生";
  87. break;
  88. }
  89. case "11":
  90. {
  91. this.edt_RYLB.Text = "在职职工";
  92. break;
  93. }
  94. case "12":
  95. {
  96. this.edt_RYLB.Text = "在职长期驻外";
  97. break;
  98. }
  99. case "21":
  100. {
  101. this.edt_RYLB.Text = "退休";
  102. break;
  103. }
  104. case "22":
  105. {
  106. this.edt_RYLB.Text = "退休异地安置";
  107. break;
  108. }
  109. case "31":
  110. {
  111. this.edt_RYLB.Text = "离休";
  112. break;
  113. }
  114. case "32":
  115. {
  116. this.edt_RYLB.Text = "二等乙级伤残军人";
  117. break;
  118. }
  119. case "33":
  120. {
  121. this.edt_RYLB.Text = "离休异地安置";
  122. break;
  123. }
  124. case "41":
  125. {
  126. this.edt_RYLB.Text = "遗孀";
  127. break;
  128. }
  129. case "91":
  130. {
  131. this.edt_RYLB.Text = "其他人员";
  132. break;
  133. }
  134. }
  135. if (sex == "1")
  136. this.edt_XB.Text = "男";
  137. else
  138. this.edt_XB.Text = "女";
  139. if (isinredlist == "true")
  140. this.edt_SFHMD.Text = "是";
  141. else
  142. this.edt_SFHMD.Text = "不在红名单";
  143. if (isspecifiedhosp == "0")
  144. {
  145. this.edt_BRDDYY.Text = "本地红名单,默认为定点医院";
  146. }
  147. else if (isspecifiedhosp == "1")
  148. {
  149. this.edt_BRDDYY.Text = "是本人定点医院";
  150. }
  151. else if (isspecifiedhosp == "2")
  152. {
  153. this.edt_BRDDYY.Text = "不是本人定点医院";
  154. }
  155. else if (isspecifiedhosp == "3")
  156. {
  157. this.edt_BRDDYY.Text = "转诊医院";
  158. }
  159. switch (fundtype)
  160. {
  161. case "1":
  162. {
  163. this.edt_XZLX.Text = "基本养老保险";
  164. break;
  165. }
  166. case "2":
  167. {
  168. this.edt_XZLX.Text = "失业保险";
  169. break;
  170. }
  171. case "3":
  172. {
  173. this.edt_XZLX.Text = "基本医疗保险";
  174. break;
  175. }
  176. case "4":
  177. {
  178. this.edt_XZLX.Text = "工伤保险";
  179. break;
  180. }
  181. case "5":
  182. {
  183. this.edt_XZLX.Text = "生育保险";
  184. break;
  185. }
  186. case "6":
  187. {
  188. this.edt_XZLX.Text = "企业补充养老保险";
  189. break;
  190. }
  191. case "7":
  192. {
  193. this.edt_XZLX.Text = "个人储蓄性养老保险";
  194. break;
  195. }
  196. case "8":
  197. {
  198. this.edt_XZLX.Text = "预提补充医疗保险";
  199. break;
  200. }
  201. case "81":
  202. {
  203. this.edt_XZLX.Text = "退休人员统一补充医疗保险";
  204. break;
  205. }
  206. case "20":
  207. {
  208. this.edt_XZLX.Text = "大额医疗互助";
  209. break;
  210. }
  211. case "30":
  212. {
  213. this.edt_XZLX.Text = "公务员医疗补助";
  214. break;
  215. }
  216. case "31":
  217. {
  218. this.edt_XZLX.Text = "离休医疗费统筹";
  219. break;
  220. }
  221. case "32":
  222. {
  223. this.edt_XZLX.Text = "公费医疗";
  224. break;
  225. }
  226. case "33":
  227. {
  228. this.edt_XZLX.Text = "征地超转人员医疗保险";
  229. break;
  230. }
  231. case "91":
  232. {
  233. this.edt_XZLX.Text = "学生儿童大病医疗保险";
  234. break;
  235. }
  236. case "92":
  237. {
  238. this.edt_XZLX.Text = "城镇无保障老年人大病医疗保险";
  239. break;
  240. }
  241. case "93":
  242. {
  243. this.edt_XZLX.Text = "城镇居民基本医疗保险";
  244. break;
  245. }
  246. }
  247. Global.pat.insuTypeName = this.edt_XZLX.Text;
  248. if (isyt == "0")
  249. this.edt_YTRYBS.Text = "普通人员";
  250. else
  251. this.edt_YTRYBS.Text = "预提人员";
  252. switch (hospflag)
  253. {
  254. case "0":
  255. {
  256. this.edt_ZYBS.Text = "未住院状态";
  257. break;
  258. }
  259. case "1":
  260. {
  261. this.edt_ZYBS.Text = "住院状态";
  262. break;
  263. }
  264. case "2":
  265. {
  266. this.edt_ZYBS.Text = "急诊留观";
  267. break;
  268. }
  269. case "3":
  270. {
  271. this.edt_ZYBS.Text = "家庭病床";
  272. break;
  273. }
  274. case "4":
  275. {
  276. this.edt_ZYBS.Text = "住院计划生育手术";
  277. break;
  278. }
  279. case "41":
  280. {
  281. this.edt_ZYBS.Text = "工伤保险住院状态";
  282. break;
  283. }
  284. case "51":
  285. {
  286. this.edt_ZYBS.Text = "生育保险住院状态";
  287. break;
  288. }
  289. }
  290. switch (jclevel)
  291. {
  292. case "0":
  293. {
  294. this.edt_JCDJ.Text = "不享受伤残待遇";
  295. break;
  296. }
  297. case "1":
  298. {
  299. this.edt_JCDJ.Text = "享受一级伤残待遇";
  300. break;
  301. }
  302. case "2":
  303. {
  304. this.edt_JCDJ.Text = "享受二级伤残待遇";
  305. break;
  306. }
  307. case "3":
  308. {
  309. this.edt_JCDJ.Text = "享受三级伤残待遇";
  310. break;
  311. }
  312. case "4":
  313. {
  314. this.edt_JCDJ.Text = "享受四级伤残待遇";
  315. break;
  316. }
  317. case "5":
  318. {
  319. this.edt_JCDJ.Text = "享受五级伤残待遇";
  320. break;
  321. }
  322. case "6":
  323. {
  324. this.edt_JCDJ.Text = "享受六级伤残待遇";
  325. break;
  326. }
  327. }
  328. if (ischronichosp == "true")
  329. this.edt_MXBDDYY.Text = "是";
  330. else
  331. this.edt_MXBDDYY.Text = "否";
  332. }
  333. public ReadCardInfo(JObject joPatInfo, int iOtherProvLocal)
  334. {
  335. InitializeComponent();
  336. string persontype, sex, hospflag, isyt, jclevel, fundtype, ServantFlag, PoorFlag, InHospitalNumber, AreaCode;
  337. string isspecifiedhosp = "", isinredlist = "", ischronichosp = "";
  338. //解析返回值
  339. if (iOtherProvLocal == 0) //本地
  340. {
  341. this.TitleText.Text = "医保中心返回参保人员信息(本地)";
  342. this.edt_YBBH.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.ic_no");
  343. persontype = JsonHelper.getDestValue(joPatInfo, "root.output.net.persontype");
  344. isspecifiedhosp = JsonHelper.getDestValue(joPatInfo, "root.output.net.isspecifiedhosp");
  345. ischronichosp = JsonHelper.getDestValue(joPatInfo, "root.output.net.ischronichosp");
  346. isinredlist = JsonHelper.getDestValue(joPatInfo, "root.output.net.isinredlist");
  347. sex = JsonHelper.getDestValue(joPatInfo, "root.output.ic.sex");
  348. hospflag = JsonHelper.getDestValue(joPatInfo, "root.output.ic.hospflag");
  349. isyt = JsonHelper.getDestValue(joPatInfo, "root.output.ic.isyt");
  350. jclevel = JsonHelper.getDestValue(joPatInfo, "root.output.ic.jclevel");
  351. fundtype = JsonHelper.getDestValue(joPatInfo, "root.output.ic.fundtype");
  352. this.edt_XM.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.personname");
  353. this.edt_KH.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.card_no");
  354. this.edt_SFZH.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.id_no");
  355. this.edt_CSRQ.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.birthday");
  356. this.edt_ZZSX.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.fromhospdate");
  357. this.edt_ZZYYBM.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.fromhosp");
  358. this.edt_MBBM.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.chroniccode"); //慢病编码
  359. this.edt_ZHYE.Text = JsonHelper.getDestValue(joPatInfo, "root.output.net.personcount");
  360. }
  361. else
  362. {
  363. this.TitleText.Text = "医保中心返回参保人员信息(异地)";
  364. this.edt_YBBH.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.Person_manage");
  365. persontype = JsonHelper.getDestValue(joPatInfo, "root.output.ic.persontype");
  366. sex = JsonHelper.getDestValue(joPatInfo, "root.output.ic.sex");
  367. hospflag = JsonHelper.getDestValue(joPatInfo, "root.output.ic.hospflag");
  368. isyt = JsonHelper.getDestValue(joPatInfo, "root.output.ic.isyt");
  369. jclevel = JsonHelper.getDestValue(joPatInfo, "root.output.ic.jclevel");
  370. fundtype = JsonHelper.getDestValue(joPatInfo, "root.output.ic.fundtype");
  371. ServantFlag = JsonHelper.getDestValue(joPatInfo, "root.output.ic.ServantFlag");
  372. PoorFlag = JsonHelper.getDestValue(joPatInfo, "root.output.ic.PoorFlag");
  373. InHospitalNumber = JsonHelper.getDestValue(joPatInfo, "root.output.ic.InHospitalNumber");
  374. AreaCode = JsonHelper.getDestValue(joPatInfo, "root.output.ic.AreaCode");
  375. this.edt_XM.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.personname");
  376. this.edt_KH.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.card_no");
  377. this.edt_SFZH.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.id_no");
  378. this.edt_CSRQ.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.birthday");
  379. this.edt_ZZSX.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.fromhospdate");
  380. this.edt_ZZYYBM.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.fromhosp");
  381. this.edt_ZHYE.Text = JsonHelper.getDestValue(joPatInfo, "root.output.ic.personcount");
  382. this.edt_AreaCode.Text = AreaCode;
  383. Global.pat.insuplc_admdvs = AreaCode; //参保地行政区划
  384. }
  385. Global.pat.psn_no = this.edt_YBBH.Text;
  386. switch (persontype)
  387. {
  388. case "10":
  389. {
  390. this.edt_RYLB.Text = "本市复读的学生";
  391. break;
  392. }
  393. case "11":
  394. {
  395. this.edt_RYLB.Text = "在职职工";
  396. break;
  397. }
  398. case "12":
  399. {
  400. this.edt_RYLB.Text = "在职长期驻外";
  401. break;
  402. }
  403. case "21":
  404. {
  405. this.edt_RYLB.Text = "退休";
  406. break;
  407. }
  408. case "22":
  409. {
  410. this.edt_RYLB.Text = "退休异地安置";
  411. break;
  412. }
  413. case "31":
  414. {
  415. this.edt_RYLB.Text = "离休";
  416. break;
  417. }
  418. case "32":
  419. {
  420. this.edt_RYLB.Text = "二等乙级伤残军人";
  421. break;
  422. }
  423. case "33":
  424. {
  425. this.edt_RYLB.Text = "离休异地安置";
  426. break;
  427. }
  428. case "41":
  429. {
  430. this.edt_RYLB.Text = "遗孀";
  431. break;
  432. }
  433. case "91":
  434. {
  435. this.edt_RYLB.Text = "其他人员";
  436. break;
  437. }
  438. }
  439. Global.pat.psnTypeName = this.edt_RYLB.Text;
  440. if (sex == "1")
  441. this.edt_XB.Text = "男";
  442. else
  443. this.edt_XB.Text = "女";
  444. if (isinredlist == "true")
  445. this.edt_SFHMD.Text = "是";
  446. else
  447. this.edt_SFHMD.Text = "不在红名单";
  448. if (isspecifiedhosp == "0")
  449. {
  450. this.edt_BRDDYY.Text = "本地红名单,默认为定点医院";
  451. }
  452. else if (isspecifiedhosp == "1")
  453. {
  454. this.edt_BRDDYY.Text = "是本人定点医院";
  455. }
  456. else if (isspecifiedhosp == "2")
  457. {
  458. this.edt_BRDDYY.Text = "不是本人定点医院";
  459. }
  460. else if (isspecifiedhosp == "3")
  461. {
  462. this.edt_BRDDYY.Text = "转诊医院";
  463. }
  464. switch (fundtype)
  465. {
  466. case "1":
  467. {
  468. this.edt_XZLX.Text = "基本养老保险";
  469. break;
  470. }
  471. case "2":
  472. {
  473. this.edt_XZLX.Text = "失业保险";
  474. break;
  475. }
  476. case "3":
  477. {
  478. this.edt_XZLX.Text = "基本医疗保险";
  479. break;
  480. }
  481. case "4":
  482. {
  483. this.edt_XZLX.Text = "工伤保险";
  484. break;
  485. }
  486. case "5":
  487. {
  488. this.edt_XZLX.Text = "生育保险";
  489. break;
  490. }
  491. case "6":
  492. {
  493. this.edt_XZLX.Text = "企业补充养老保险";
  494. break;
  495. }
  496. case "7":
  497. {
  498. this.edt_XZLX.Text = "个人储蓄性养老保险";
  499. break;
  500. }
  501. case "8":
  502. {
  503. this.edt_XZLX.Text = "预提补充医疗保险";
  504. break;
  505. }
  506. case "81":
  507. {
  508. this.edt_XZLX.Text = "退休人员统一补充医疗保险";
  509. break;
  510. }
  511. case "20":
  512. {
  513. this.edt_XZLX.Text = "大额医疗互助";
  514. break;
  515. }
  516. case "30":
  517. {
  518. this.edt_XZLX.Text = "公务员医疗补助";
  519. break;
  520. }
  521. case "31":
  522. {
  523. this.edt_XZLX.Text = "离休医疗费统筹";
  524. break;
  525. }
  526. case "32":
  527. {
  528. this.edt_XZLX.Text = "公费医疗";
  529. break;
  530. }
  531. case "33":
  532. {
  533. this.edt_XZLX.Text = "征地超转人员医疗保险";
  534. break;
  535. }
  536. case "91":
  537. {
  538. this.edt_XZLX.Text = "学生儿童大病医疗保险";
  539. break;
  540. }
  541. case "92":
  542. {
  543. this.edt_XZLX.Text = "城镇无保障老年人大病医疗保险";
  544. break;
  545. }
  546. case "93":
  547. {
  548. this.edt_XZLX.Text = "城镇居民基本医疗保险";
  549. break;
  550. }
  551. case "310":
  552. {
  553. this.edt_XZLX.Text = "职工基本医疗保险";
  554. break;
  555. }
  556. case "320":
  557. {
  558. this.edt_XZLX.Text = "公务员医疗补助";
  559. break;
  560. }
  561. case "330":
  562. {
  563. this.edt_XZLX.Text = "大额医疗费用补助";
  564. break;
  565. }
  566. case "340":
  567. {
  568. this.edt_XZLX.Text = "离休人员医疗保障";
  569. break;
  570. }
  571. case "350":
  572. {
  573. this.edt_XZLX.Text = "一至六级残废军人医疗补助";
  574. break;
  575. }
  576. case "360":
  577. {
  578. this.edt_XZLX.Text = "老红军医疗保障";
  579. break;
  580. }
  581. case "370":
  582. {
  583. this.edt_XZLX.Text = "企业补充医疗保险";
  584. break;
  585. }
  586. case "380":
  587. {
  588. this.edt_XZLX.Text = "新型农村合作医疗";
  589. break;
  590. }
  591. case "390":
  592. {
  593. this.edt_XZLX.Text = "城乡居民基本医疗保险";
  594. break;
  595. }
  596. case "391":
  597. {
  598. this.edt_XZLX.Text = "城镇居民基本医疗保险";
  599. break;
  600. }
  601. case "392":
  602. {
  603. this.edt_XZLX.Text = "城乡居民大病医疗保险";
  604. break;
  605. }
  606. case "399":
  607. {
  608. this.edt_XZLX.Text = "其他特殊人员医疗保障";
  609. break;
  610. }
  611. case "510":
  612. {
  613. this.edt_XZLX.Text = "生育保险";
  614. break;
  615. }
  616. case "410":
  617. {
  618. this.edt_XZLX.Text = "长期照护保险";
  619. break;
  620. }
  621. case "39906":
  622. {
  623. this.edt_XZLX.Text = "意外伤害保险";
  624. break;
  625. }
  626. }
  627. Global.pat.insuTypeName = this.edt_XZLX.Text;
  628. if (isyt == "0")
  629. this.edt_YTRYBS.Text = "普通人员";
  630. else
  631. this.edt_YTRYBS.Text = "预提人员";
  632. switch (hospflag)
  633. {
  634. case "0":
  635. {
  636. this.edt_ZYBS.Text = "未住院状态";
  637. break;
  638. }
  639. case "1":
  640. {
  641. this.edt_ZYBS.Text = "住院状态";
  642. break;
  643. }
  644. case "2":
  645. {
  646. this.edt_ZYBS.Text = "急诊留观";
  647. break;
  648. }
  649. case "3":
  650. {
  651. this.edt_ZYBS.Text = "家庭病床";
  652. break;
  653. }
  654. case "4":
  655. {
  656. this.edt_ZYBS.Text = "住院计划生育手术";
  657. break;
  658. }
  659. case "41":
  660. {
  661. this.edt_ZYBS.Text = "工伤保险住院状态";
  662. break;
  663. }
  664. case "51":
  665. {
  666. this.edt_ZYBS.Text = "生育保险住院状态";
  667. break;
  668. }
  669. }
  670. switch (jclevel)
  671. {
  672. case "0":
  673. {
  674. this.edt_JCDJ.Text = "不享受伤残待遇";
  675. break;
  676. }
  677. case "1":
  678. {
  679. this.edt_JCDJ.Text = "享受一级伤残待遇";
  680. break;
  681. }
  682. case "2":
  683. {
  684. this.edt_JCDJ.Text = "享受二级伤残待遇";
  685. break;
  686. }
  687. case "3":
  688. {
  689. this.edt_JCDJ.Text = "享受三级伤残待遇";
  690. break;
  691. }
  692. case "4":
  693. {
  694. this.edt_JCDJ.Text = "享受四级伤残待遇";
  695. break;
  696. }
  697. case "5":
  698. {
  699. this.edt_JCDJ.Text = "享受五级伤残待遇";
  700. break;
  701. }
  702. case "6":
  703. {
  704. this.edt_JCDJ.Text = "享受六级伤残待遇";
  705. break;
  706. }
  707. }
  708. if (ischronichosp == "true")
  709. this.edt_MXBDDYY.Text = "是";
  710. else
  711. this.edt_MXBDDYY.Text = "否";
  712. }
  713. private void btnOK_Click(object sender, EventArgs e)
  714. {
  715. DialogResult = DialogResult.OK;
  716. }
  717. private void btnCancel_Click(object sender, EventArgs e)
  718. {
  719. DialogResult = DialogResult.Cancel;
  720. }
  721. }
  722. }