| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.ComponentModel;
 
- using System.Data;
 
- using System.Drawing;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows.Forms;
 
- using System.Xml;
 
- namespace BJShouXinYB_Demo
 
- {
 
-     public partial class ReadCardInfo : Form
 
-     {
 
-         AnalysisXML AnXML = new AnalysisXML();
 
-         public ReadCardInfo()
 
-         {
 
-             InitializeComponent();
 
-         }
 
-         public ReadCardInfo(string patInfo,int iOtherProvLocal)
 
-         {
 
-             InitializeComponent();
 
-             string OutMsg;
 
-             //解析返回值
 
-             XmlDocument xmlDoc = AnXML.GetXmlDoc(patInfo);
 
-             XmlNode dataNodeIC = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/ic");
 
-             XmlNode dataNodeNet = AnXML.GetNodeFromPath(xmlDoc.DocumentElement, "output/net");
 
-             if (iOtherProvLocal == 0)
 
-             {
 
-                 this.edt_YBBH.Text = dataNodeIC.SelectNodes("ic_no")[0].InnerText;
 
-             }
 
-             else
 
-             {
 
-                 this.edt_YBBH.Text = dataNodeIC.SelectNodes("Person_manage")[0].InnerText;
 
-             }                     
 
-             this.edt_XM.Text = dataNodeIC.SelectNodes("personname")[0].InnerText;
 
-             this.edt_KH.Text = dataNodeIC.SelectNodes("card_no")[0].InnerText;
 
-             this.edt_SFZH.Text = dataNodeIC.SelectNodes("id_no")[0].InnerText;
 
-             this.edt_CSRQ.Text = dataNodeIC.SelectNodes("birthday")[0].InnerText;
 
-             this.edt_ZZSX.Text = dataNodeIC.SelectNodes("fromhospdate")[0].InnerText;
 
-             this.edt_ZZYYBM.Text = dataNodeIC.SelectNodes("fromhosp")[0].InnerText;
 
-             this.edt_MBBM.Text = dataNodeNet.SelectNodes("chroniccode")[0].InnerText;      //慢病编码
 
-             this.edt_ZHYE.Text = dataNodeNet.SelectNodes("personcount")[0].InnerText;
 
-             this.edt_RYLB.Text = dataNodeNet.SelectNodes("persontype")[0].InnerText;
 
-             string sex = dataNodeIC.SelectNodes("sex")[0].InnerText;
 
-             string hospflag = dataNodeIC.SelectNodes("hospflag")[0].InnerText;
 
-             string isyt = dataNodeIC.SelectNodes("isyt")[0].InnerText;
 
-             string jclevel = dataNodeIC.SelectNodes("jclevel")[0].InnerText;
 
-             string fundtype = dataNodeIC.SelectNodes("fundtype")[0].InnerText;
 
-             string isspecifiedhosp = dataNodeNet.SelectNodes("isspecifiedhosp")[0].InnerText;
 
-             string ischronichosp = dataNodeNet.SelectNodes("ischronichosp")[0].InnerText;
 
-             string isinredlist = dataNodeNet.SelectNodes("isinredlist")[0].InnerText;
 
-             if (sex == "1")
 
-                 this.edt_XB.Text = "男";
 
-             else
 
-                 this.edt_XB.Text = "女";
 
-             if (isinredlist == "true")
 
-                 this.edt_SFHMD.Text = "是";
 
-             else
 
-                 this.edt_SFHMD.Text = "不在红名单";
 
-             
 
-             if (isspecifiedhosp == "0")
 
-             {
 
-                 this.edt_BRDDYY.Text = "本地红名单,默认为定点医院";
 
-             }
 
-             else if (isspecifiedhosp == "1")
 
-             {
 
-                 this.edt_BRDDYY.Text = "是本人定点医院";
 
-             }
 
-             else if (isspecifiedhosp == "2")
 
-             {
 
-                 this.edt_BRDDYY.Text = "不是本人定点医院";
 
-             }
 
-             else if (isspecifiedhosp == "3")
 
-             {
 
-                 this.edt_BRDDYY.Text = "转诊医院";
 
-             }
 
-             
 
-             switch (fundtype)
 
-             {
 
-                 case "1":
 
-                     {
 
-                         this.edt_XZLX.Text = "基本养老保险";
 
-                         break;
 
-                     }
 
-                 case "2":
 
-                     {
 
-                         this.edt_XZLX.Text = "失业保险";
 
-                         break;
 
-                     }
 
-                 case "3":
 
-                     {
 
-                         this.edt_XZLX.Text = "基本医疗保险";
 
-                         break;
 
-                     }
 
-                 case "4":
 
-                     {
 
-                         this.edt_XZLX.Text = "工伤保险";
 
-                         break;
 
-                     }
 
-                 case "5":
 
-                     {
 
-                         this.edt_XZLX.Text = "生育保险";
 
-                         break;
 
-                     }
 
-                 case "6":
 
-                     {
 
-                         this.edt_XZLX.Text = "企业补充养老保险";
 
-                         break;
 
-                     }
 
-                 case "7":
 
-                     {
 
-                         this.edt_XZLX.Text = "个人储蓄性养老保险";
 
-                         break;
 
-                     }
 
-                 case "8":
 
-                     {
 
-                         this.edt_XZLX.Text = "预提补充医疗保险";
 
-                         break;
 
-                     }
 
-                 case "81":
 
-                     {
 
-                         this.edt_XZLX.Text = "退休人员统一补充医疗保险";
 
-                         break;
 
-                     }
 
-                 case "20":
 
-                     {
 
-                         this.edt_XZLX.Text = "大额医疗互助";
 
-                         break;
 
-                     }
 
-                 case "30":
 
-                     {
 
-                         this.edt_XZLX.Text = "公务员医疗补助";
 
-                         break;
 
-                     }
 
-                 case "31":
 
-                     {
 
-                         this.edt_XZLX.Text = "离休医疗费统筹";
 
-                         break;
 
-                     }
 
-                 case "32":
 
-                     {
 
-                         this.edt_XZLX.Text = "公费医疗";
 
-                         break;
 
-                     }
 
-                 case "33":
 
-                     {
 
-                         this.edt_XZLX.Text = "征地超转人员医疗保险";
 
-                         break;
 
-                     }
 
-                 case "91":
 
-                     {
 
-                         this.edt_XZLX.Text = "学生儿童大病医疗保险";
 
-                         break;
 
-                     }
 
-                 case "92":
 
-                     {
 
-                         this.edt_XZLX.Text = "城镇无保障老年人大病医疗保险";
 
-                         break;
 
-                     }
 
-                 case "93":
 
-                     {
 
-                         this.edt_XZLX.Text = "城镇居民基本医疗保险";
 
-                         break;
 
-                     }
 
-             }
 
-             if (isyt == "0")
 
-                 this.edt_YTRYBS.Text = "普通人员";
 
-             else
 
-                 this.edt_YTRYBS.Text = "预提人员";
 
-             
 
-             switch (hospflag)
 
-             {
 
-                 case "0": 
 
-                     {
 
-                         this.edt_ZYBS.Text = "未住院状态";
 
-                         break;
 
-                     }
 
-                 case "1":
 
-                     {
 
-                         this.edt_ZYBS.Text = "住院状态";
 
-                         break;
 
-                     }
 
-                 case "2":
 
-                     {
 
-                         this.edt_ZYBS.Text = "急诊留观";
 
-                         break;
 
-                     }
 
-                 case "3":
 
-                     {
 
-                         this.edt_ZYBS.Text = "家庭病床";
 
-                         break;
 
-                     }
 
-                 case "4":
 
-                     {
 
-                         this.edt_ZYBS.Text = "住院计划生育手术";
 
-                         break;
 
-                     }
 
-                 case "41":
 
-                     {
 
-                         this.edt_ZYBS.Text = "工伤保险住院状态";
 
-                         break;
 
-                     }
 
-                 case "51":
 
-                     {
 
-                         this.edt_ZYBS.Text = "生育保险住院状态";
 
-                         break;
 
-                     }
 
-             }
 
-             switch (jclevel)
 
-             {
 
-                 case "0":
 
-                     {
 
-                         this.edt_JCDJ.Text = "不享受伤残待遇";
 
-                         break;
 
-                     }
 
-                 case "1":
 
-                     {
 
-                         this.edt_JCDJ.Text = "享受一级伤残待遇";
 
-                         break;
 
-                     }
 
-                 case "2":
 
-                     {
 
-                         this.edt_JCDJ.Text = "享受二级伤残待遇";
 
-                         break;
 
-                     }
 
-                 case "3":
 
-                     {
 
-                         this.edt_JCDJ.Text = "享受三级伤残待遇";
 
-                         break;
 
-                     }
 
-                 case "4":
 
-                     {
 
-                         this.edt_JCDJ.Text = "享受四级伤残待遇";
 
-                         break;
 
-                     }
 
-                 case "5":
 
-                     {
 
-                         this.edt_JCDJ.Text = "享受五级伤残待遇";
 
-                         break;
 
-                     }
 
-                 case "6":
 
-                     {
 
-                         this.edt_JCDJ.Text = "享受六级伤残待遇";
 
-                         break;
 
-                     }
 
-             }
 
-             
 
-             if (ischronichosp == "true")
 
-                 this.edt_MXBDDYY.Text = "是";
 
-             else
 
-                 this.edt_MXBDDYY.Text = "否";
 
-         }
 
-         private void btnOK_Click(object sender, EventArgs e)
 
-         {
 
-             DialogResult = DialogResult.OK;
 
-         }
 
-         private void uiButton2_Click(object sender, EventArgs e)
 
-         {
 
-             DialogResult = DialogResult.Cancel;
 
-         }
 
-     }
 
- }
 
 
  |