SettlementChecklist.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  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 PTMedicalInsurance.Helper;
  11. using PTMedicalInsurance.Common;
  12. using Newtonsoft.Json.Linq;
  13. using PTMedicalInsurance.FormSetter;
  14. using PTMedicalInsurance.Variables;
  15. using FastReport;
  16. using Newtonsoft.Json;
  17. using System.Threading;
  18. using PTMedicalInsurance.Business;
  19. using System.Xml.Linq;
  20. using System.Diagnostics;
  21. using System.Management;
  22. namespace PTMedicalInsurance.Forms
  23. {
  24. public partial class SettlementChecklist : Form
  25. {
  26. private int hospitalDr;
  27. private int interfaceDr;
  28. private string hospitalNO;
  29. private string interfaceNO;
  30. private string hospitalName;
  31. private string hospitalAreaCode;
  32. private bool disposed = false;
  33. Thread thread_test;
  34. private InvokeHelper invoker = new InvokeHelper();
  35. public SettlementChecklist()
  36. {
  37. InitializeComponent();
  38. hospitalDr = Global.inf.hospitalDr;
  39. hospitalNO = Global.inf.hospitalNO;
  40. hospitalName = Global.inf.hospitalName;
  41. hospitalAreaCode = Global.inf.areaCode;
  42. interfaceDr = Global.inf.interfaceDr;
  43. }
  44. public SettlementChecklist(JObject joParam)
  45. {
  46. InitializeComponent();
  47. hospitalDr = Global.inf.hospitalDr;
  48. hospitalNO = Global.inf.hospitalNO;
  49. hospitalName = Global.inf.hospitalName;
  50. hospitalAreaCode = Global.inf.areaCode;
  51. if (joParam == null) return;
  52. string setl_id = JsonHelper.getDestValue(joParam, "setl_id");
  53. if (setl_id == "")
  54. {
  55. MessageBox.Show("根据传入的结算编号为查询到相关信息,请手动输入查询!");
  56. return;
  57. }
  58. string sqlStr = "SELECT * FROM bs_medinsusettlement WHERE Hospital_Dr=" + Global.inf.hospitalDr;
  59. sqlStr = sqlStr + " and SettlementID='" + setl_id + "'";
  60. JObject joSqlStr = new JObject();
  61. joSqlStr.Add("sqlStr", sqlStr);
  62. MIIrisServices mIS = new MIIrisServices();
  63. JObject joRtn = mIS.QuerySettlementInfo(joSqlStr);
  64. DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
  65. dgvSettlRecord.DataSource = dt;
  66. }
  67. public void Dispose()
  68. {
  69. Dispose1(true);
  70. GC.SuppressFinalize(this);
  71. }
  72. protected virtual void Dispose1(bool disposing)
  73. {
  74. if (thread_test == null) return;
  75. if (disposed == false)
  76. {
  77. if (disposing == true)
  78. {
  79. Thread.Sleep(100);
  80. Global.writeLog("Main - aborting my thread.");
  81. thread_test.Abort();//终止线程myThread
  82. thread_test.Join();//等待线程myThread结束
  83. Global.writeLog("Main - ending.");
  84. }
  85. //
  86. //释放托管资源的代码
  87. }
  88. disposed = true;
  89. }
  90. private void btnQuery_Click_1(object sender, EventArgs e)
  91. {
  92. string sqlStr = "SELECT * FROM BS_MedInsuSettlement WHERE Hospital_Dr=" + hospitalDr + " AND Interface_Dr=" + Global.inf.interfaceDr;
  93. sqlStr = sqlStr + " and OccurTime>'" + dpST.Text + "'";
  94. sqlStr = sqlStr + " and OccurTime<'" + dpED.Text + "'";
  95. if (tbName.Text != "")
  96. {
  97. sqlStr = sqlStr + " and PatientName='" + tbName.Text + "'";
  98. }
  99. if (tbPatSettlID.Text != "")
  100. {
  101. sqlStr = sqlStr + " and SettlementID='" + tbPatSettlID.Text + "'";
  102. }
  103. if (tbHisNO.Text != "")
  104. {
  105. sqlStr = sqlStr + " and Adm_Dr='" + tbHisNO.Text + "'";
  106. }
  107. if (rbgAdmType.SelectedIndex == 1)
  108. {
  109. sqlStr = sqlStr + " and AdmType=1";
  110. }
  111. if (rbgAdmType.SelectedIndex == 2)
  112. {
  113. sqlStr = sqlStr + " and AdmType=2";
  114. }
  115. if (rbgBillType.SelectedIndex == 1)
  116. {
  117. sqlStr = sqlStr + " and BillType=1";
  118. }
  119. if (rbgBillType.SelectedIndex == 2)
  120. {
  121. sqlStr = sqlStr + " and BillType=-1";
  122. }
  123. JObject joSqlStr = new JObject();
  124. joSqlStr.Add("sqlStr", sqlStr);
  125. MIIrisServices mIS = new MIIrisServices();
  126. JObject joRtn = mIS.QuerySettlementInfo(joSqlStr);
  127. DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
  128. dgvSettlRecord.DataSource = dt;
  129. }
  130. private void SettlementChecklist_Load(object sender, EventArgs e)
  131. {
  132. dpST.Text = DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
  133. dpED.Text = DateTime.Now.ToString("yyyy-MM-dd 23:59:59");
  134. GridViewSetter grdSetter = new GridViewSetter();
  135. grdSetter.SetHeaderTextOfSettlList(dgvSettlRecord);
  136. rbgAdmType.SelectedIndex = 0;
  137. rbgBillType.SelectedIndex = 1;
  138. }
  139. private JObject getPatCheckList()
  140. {
  141. try
  142. {
  143. int i = dgvSettlRecord.CurrentRow.Index;
  144. DataTable dt = (DataTable)dgvSettlRecord.DataSource;
  145. JObject joSettel = new JObject();
  146. joSettel.Add("HospitalDr", Global.inf.hospitalDr);
  147. joSettel.Add("interfaceDr", Global.inf.interfaceDr);
  148. joSettel.Add("admID", dt.Rows[i]["AdmID"].ToString());
  149. joSettel.Add("SettlementID", dt.Rows[i]["SettlementID"].ToString());
  150. joSettel.Add("ValidFlag", dt.Rows[i]["ValidFlag"].ToString());
  151. JObject joRtn = invoker.invokeInsuService(JsonHelper.setIrisInpar("09010066", joSettel).ToString(), "获取结算单信息");
  152. return joRtn;
  153. }
  154. catch (Exception ex)
  155. {
  156. JObject joRtn = new JObject();
  157. joRtn.Add("errorCode", -1);
  158. joRtn.Add("errorMessage", ex.Message);
  159. return joRtn;
  160. }
  161. }
  162. private void uiPanel1_Click(object sender, EventArgs e)
  163. {
  164. }
  165. [STAThread]
  166. public void design()
  167. {
  168. try
  169. {
  170. string chineseSimpleFrl = Global.curEvt.path + @"\Chinese (Simplified).frl";
  171. FastReport.Utils.Res.LoadLocale(chineseSimpleFrl);
  172. JObject joSettleCheckList = getPatCheckList();
  173. string errMsg;
  174. if (JsonHelper.parseIrisRtnValue(joSettleCheckList, out errMsg) != 0)
  175. {
  176. MessageBox.Show("查询结算信息异常:" + errMsg);
  177. return;
  178. }
  179. Report report = new Report();
  180. try
  181. {
  182. var json = JsonConvert.DeserializeObject<Root>(getPatCheckList().ToString());
  183. report.RegisterData(json.result.data.classification, "classification");
  184. report.RegisterData(json.result.data.settlement, "settlement");
  185. report.RegisterData(json.result.data.reginfo, "reginfo");
  186. report.RegisterData(json.result.data.patinsuinfo, "patinsuinfo");
  187. }
  188. catch (Exception ex)
  189. {
  190. MessageBox.Show(ex.Message);
  191. return;
  192. }
  193. report.Load(Global.curEvt.path + "\\frx\\黑龙江结算单.frx");
  194. PrintDesign pf = new PrintDesign();
  195. pf.designerControl1.Report = report;
  196. report.Design();
  197. pf.WindowState = FormWindowState.Maximized;
  198. pf.ShowDialog();
  199. }
  200. catch (Exception ex)
  201. {
  202. MessageBox.Show(ex.Message);
  203. }
  204. }
  205. [STAThread]
  206. private void print()
  207. {
  208. string chineseSimpleFrl = Global.curEvt.path + @"\Chinese (Simplified).frl";
  209. FastReport.Utils.Res.LoadLocale(chineseSimpleFrl);
  210. JObject joSettleCheckList = getPatCheckList();
  211. string errMsg;
  212. if (JsonHelper.parseIrisRtnValue(joSettleCheckList, out errMsg) != 0)
  213. {
  214. MessageBox.Show("查询结算信息异常:" + errMsg);
  215. return;
  216. }
  217. Report report = new Report();
  218. try
  219. {
  220. var json = JsonConvert.DeserializeObject<Root>(getPatCheckList().ToString());
  221. report.RegisterData(json.result.data.classification, "classification");
  222. report.RegisterData(json.result.data.settlement, "settlement");
  223. report.RegisterData(json.result.data.reginfo, "reginfo");
  224. report.RegisterData(json.result.data.patinsuinfo, "patinsuinfo");
  225. }
  226. catch (Exception ex)
  227. {
  228. MessageBox.Show(ex.Message);
  229. return;
  230. }
  231. //report.Design();
  232. report.Load(Global.curEvt.path + "\\frx\\黑龙江结算单.frx");
  233. this.ShowInTaskbar = true;
  234. PrintPreview pf = new PrintPreview();
  235. report.Preview = pf.previewControl1;
  236. report.Show();
  237. pf.WindowState = FormWindowState.Maximized;
  238. pf.ShowDialog();
  239. }
  240. [STAThread]
  241. private void print_yh(object o)
  242. {
  243. string outParam = "", errMsg = "";
  244. try
  245. {
  246. int i = dgvSettlRecord.CurrentRow.Index;
  247. DataTable dt = (DataTable)dgvSettlRecord.DataSource;
  248. Global.pat.insuplc_admdvs = dt.Rows[i]["insuplc_admdvs"].ToString();//
  249. Global.pat.insuType = dt.Rows[i]["InsuranceType"].ToString();//JsonHelper.getDestValue(joSettlInfo, "result.data[0].InsuranceType");
  250. Global.pat.medType = dt.Rows[i]["MedicalType"].ToString();//JsonHelper.getDestValue(joSettlInfo, "result.data[0].MedicalType");
  251. Global.pat.psn_type = dt.Rows[i]["PersonType"].ToString();//JsonHelper.getDestValue(joSettlInfo, "result.data[0].PersonType");
  252. dynamic joTmp = new JObject();
  253. joTmp.prm_akc190 = Global.pat.mdtrtID;
  254. joTmp.prm_yab003 = Global.pat.insuplc_admdvs;
  255. joTmp.prm_aka130 = Global.pat.medType;
  256. joTmp.prm_akc021 = Global.pat.psn_type;
  257. joTmp.prm_yka103 = Global.pat.settlID;
  258. joTmp.prm_ykb065 = Global.pat.insuType;
  259. joTmp.prm_yabtch = Global.pat.insuplc_admdvs;
  260. YinHaiCom yhcom = new YinHaiCom();
  261. yhcom.Init(out errMsg);
  262. string jylsh = "", jyyzm = "", jysc = "", appmsg = string.Empty;
  263. JObject joInput = new JObject();
  264. joInput.Add("input", joTmp);
  265. XmlHelper xmler = new XmlHelper();
  266. string input = xmler.ToXML(joInput.ToString());
  267. XElement xe = XElement.Parse(input);
  268. string jysr = xmler.setInput(xe);
  269. int appcode = -1;
  270. yhcom.Call("44", jysr, ref jylsh, ref jyyzm, ref jysc, ref appcode, ref appmsg);
  271. KillChildProcessByName("conhost");
  272. if (appcode > 0)
  273. {
  274. outParam = jysc;
  275. }
  276. else
  277. {
  278. outParam = appmsg;
  279. CallBack(outParam);
  280. }
  281. //if (invoker.invokeYHCom("44", joTmp, out errMsg) != 0)
  282. //{
  283. // outParam = JsonHelper.setIrisReturnValue(-1, errMsg, null).ToString();
  284. //}
  285. //else
  286. //{
  287. // outParam = JsonHelper.setIrisReturnValue(0, "", null).ToString();
  288. //}
  289. }
  290. catch (Exception ex)
  291. {
  292. CallBack(ex.Message);
  293. }
  294. }
  295. private void print_exe()
  296. {
  297. string outParam = "", errMsg = "";
  298. try
  299. {
  300. int i = dgvSettlRecord.CurrentRow.Index;
  301. DataTable dt = (DataTable)dgvSettlRecord.DataSource;
  302. Global.pat.insuplc_admdvs = dt.Rows[i]["insuplc_admdvs"].ToString();//
  303. Global.pat.insuType = dt.Rows[i]["InsuranceType"].ToString();//JsonHelper.getDestValue(joSettlInfo, "result.data[0].InsuranceType");
  304. Global.pat.medType = dt.Rows[i]["MedicalType"].ToString();//JsonHelper.getDestValue(joSettlInfo, "result.data[0].MedicalType");
  305. Global.pat.psn_type = dt.Rows[i]["PersonType"].ToString();//JsonHelper.getDestValue(joSettlInfo, "result.data[0].PersonType");
  306. dynamic joTmp = new JObject();
  307. joTmp.prm_akc190 = Global.pat.mdtrtID;
  308. joTmp.prm_yab003 = Global.pat.insuplc_admdvs;
  309. joTmp.prm_aka130 = Global.pat.medType;
  310. joTmp.prm_akc021 = Global.pat.psn_type;
  311. joTmp.prm_yka103 = Global.pat.settlID;
  312. joTmp.prm_ykb065 = Global.pat.insuType;
  313. joTmp.prm_yabtch = Global.pat.insuplc_admdvs;
  314. JObject joInput = new JObject();
  315. joInput.Add("input", joTmp);
  316. string inpar = joInput.ToString();
  317. inpar =inpar.Replace(@"""", @"""""""");
  318. //inpar = @"""" + inpar + @"""";
  319. inpar = "\"" + inpar + "\"";
  320. MessageBox.Show(inpar);
  321. Process p = new Process();
  322. p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; //把窗口隐藏,使其在后台运行
  323. p.StartInfo.FileName = Global.curEvt.path + "\\SettlList.exe ";
  324. p.StartInfo.Arguments = inpar;
  325. p.Start();
  326. //Process p = Process.Start(Global.curEvt.path + "\\SettlList.exe " ,inpar);
  327. }
  328. catch (Exception ex)
  329. {
  330. }
  331. }
  332. [STAThread]
  333. private void preview()
  334. {
  335. //JObject joCheckList = getPatCheckList();
  336. Report report = new Report();
  337. try
  338. {
  339. var json = JsonConvert.DeserializeObject<Root>(getPatCheckList().ToString());
  340. report.RegisterData(json.result.data.classification, "classification");
  341. report.RegisterData(json.result.data.settlement, "settlement");
  342. report.RegisterData(json.result.data.reginfo, "reginfo");
  343. report.RegisterData(json.result.data.patinsuinfo, "patinsuinfo");
  344. }
  345. catch (Exception ex)
  346. {
  347. MessageBox.Show(ex.Message);
  348. return;
  349. }
  350. //report.Design();
  351. report.Load(Global.curEvt.path + "\\frx\\黑龙江结算单.frx");
  352. //report.Show();
  353. PrintPreview preview1 = new PrintPreview();
  354. preview1.Show();
  355. report.Preview = preview1.previewControl1;
  356. report.Prepare(); //准备
  357. report.ShowPrepared(); //显示
  358. preview1.Show();
  359. }
  360. private void uiButton2_Click(object sender, EventArgs e)
  361. {
  362. KillChildProcessByName("conhost");
  363. Close();
  364. }
  365. public void btnPrint_Click(object sender, EventArgs e)
  366. {
  367. try
  368. {
  369. Thread thread = new Thread(new ThreadStart(print));
  370. thread.SetApartmentState(ApartmentState.STA); //重点
  371. thread.Start();
  372. thread.Join();
  373. }
  374. catch (Exception ex)
  375. {
  376. Global.writeLog("结算单打印异常:" + ex.Message);
  377. MessageBox.Show("打印异常:" + ex.Message);
  378. }
  379. }
  380. private void btnDesign_Click(object sender, EventArgs e)
  381. {
  382. thread_test = new Thread(new ThreadStart(design));
  383. thread_test.SetApartmentState(ApartmentState.STA); //重点
  384. thread_test.Start();
  385. }
  386. private void SettlementChecklist_FormClosed(object sender, FormClosedEventArgs e)
  387. {
  388. Dispose();
  389. }
  390. public void KillChildProcessByName(string processName)
  391. {
  392. try
  393. {
  394. Process p = Process.GetCurrentProcess();
  395. ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * From Win32_Process Where ParentProcessID=" + p.Id);
  396. ManagementObjectCollection moc = searcher.Get();
  397. foreach (ManagementObject mo in moc)
  398. {
  399. //MessageBox.Show(mo["ProcessID"].ToString());
  400. Process p1 = Process.GetProcessById(Convert.ToInt32(mo["ProcessID"]));
  401. if (p1.ProcessName == processName)
  402. {
  403. //MessageBox.Show(p1.ProcessName + ":" + p1.Id.ToString());
  404. p1.Kill();
  405. p1.WaitForExit(); // possibly with a timeout
  406. }
  407. }
  408. }
  409. catch (Exception ex)
  410. {
  411. MessageBox.Show("KillChildProcessByName:" + ex.Message);
  412. }
  413. }
  414. public void CallBack(string errMsg)
  415. {
  416. MessageBox.Show(errMsg);
  417. }
  418. public delegate void callBack(string errMsg);
  419. private void btPrintYH_Click(object sender, EventArgs e)
  420. {
  421. //Thread thread = new Thread(print_yh);
  422. //callBack cb = new callBack(CallBack);
  423. //thread.SetApartmentState(ApartmentState.STA); //重点
  424. //thread.IsBackground = true;
  425. //thread.Start(cb);
  426. //thread.Join();
  427. print_exe();
  428. }
  429. }
  430. // Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
  431. public class Classification
  432. {
  433. public string cwfSummat { get; set; }
  434. public string cwfInScope { get; set; }
  435. public string cwfPreSelfPay { get; set; }
  436. public string cwfOverLimit { get; set; }
  437. public string cwfFullOwnPay { get; set; }
  438. public string zcfSummat { get; set; }
  439. public string zcfInScope { get; set; }
  440. public string zcfPreSelfPay { get; set; }
  441. public string zcfOverLimit { get; set; }
  442. public string zcfFullOwnPay { get; set; }
  443. public string jcfSummat { get; set; }
  444. public string jcfInScope { get; set; }
  445. public string jcfPreSelfPay { get; set; }
  446. public string jcfOverLimit { get; set; }
  447. public string jcfFullOwnPay { get; set; }
  448. public string hyfSummat { get; set; }
  449. public string hyfInScope { get; set; }
  450. public string hyfPreSelfPay { get; set; }
  451. public string hyfOverLimit { get; set; }
  452. public string hyfFullOwnPay { get; set; }
  453. public string zlfSummat { get; set; }
  454. public string zlfInScope { get; set; }
  455. public string zlfPreSelfPay { get; set; }
  456. public string zlfOverLimit { get; set; }
  457. public string zlfFullOwnPay { get; set; }
  458. public string ssfSummat { get; set; }
  459. public string ssfInScope { get; set; }
  460. public string ssfPreSelfPay { get; set; }
  461. public string ssfOverLimit { get; set; }
  462. public string ssfFullOwnPay { get; set; }
  463. public string hlfSummat { get; set; }
  464. public string hlfInScope { get; set; }
  465. public string hlfPreSelfPay { get; set; }
  466. public string hlfOverLimit { get; set; }
  467. public string hlfFullOwnPay { get; set; }
  468. public string wsclfSummat { get; set; }
  469. public string wsclfInScope { get; set; }
  470. public string wsclfPreSelfPay { get; set; }
  471. public string wsclfOverLimit { get; set; }
  472. public string wsclfFullOwnPay { get; set; }
  473. public string xyfSummat { get; set; }
  474. public string xyfInScope { get; set; }
  475. public string xyfPreSelfPay { get; set; }
  476. public string xyfOverLimit { get; set; }
  477. public string xyfFullOwnPay { get; set; }
  478. public string zyypfSummat { get; set; }
  479. public string zyypfInScope { get; set; }
  480. public string zyypfPreSelfPay { get; set; }
  481. public string zyypfOverLimit { get; set; }
  482. public string zyypfFullOwnPay { get; set; }
  483. public string zcyfSummat { get; set; }
  484. public string zcyfInScope { get; set; }
  485. public string zcyfPreSelfPay { get; set; }
  486. public string zcyfOverLimit { get; set; }
  487. public string zcyfFullOwnPay { get; set; }
  488. public string ybzlfSummat { get; set; }
  489. public string ybzlfInScope { get; set; }
  490. public string ybzlfPreSelfPay { get; set; }
  491. public string ybzlfOverLimit { get; set; }
  492. public string ybzlfFullOwnPay { get; set; }
  493. public string ghfSummat { get; set; }
  494. public string ghfInScope { get; set; }
  495. public string ghfPreSelfPay { get; set; }
  496. public string ghfOverLimit { get; set; }
  497. public string ghfFullOwnPay { get; set; }
  498. public string qtSummat { get; set; }
  499. public string qtInScope { get; set; }
  500. public string qtPreSelfPay { get; set; }
  501. public string qtOverLimit { get; set; }
  502. public string qtFullOwnPay { get; set; }
  503. public string totalSummat { get; set; }
  504. public string totalInScope { get; set; }
  505. public string totalPreSelfPay { get; set; }
  506. public string totalOverLimit { get; set; }
  507. public string totalFullOwnPay { get; set; }
  508. }
  509. public class Data
  510. {
  511. public List<Classification> classification { get; set; }
  512. public List<Settlement> settlement { get; set; }
  513. public List<Reginfo> reginfo { get; set; }
  514. public List<Patinsuinfo> patinsuinfo { get; set; }
  515. }
  516. public class Patinsuinfo
  517. {
  518. public string PsnCertType { get; set; }
  519. public string PsnCertNO { get; set; }
  520. public string Gend { get; set; }
  521. public string Naty { get; set; }
  522. public string Brdy { get; set; }
  523. public string Age { get; set; }
  524. public string Balc { get; set; }
  525. public string PsnType { get; set; }
  526. public string Cvlservflag { get; set; }
  527. public string insuplcAdmdvs { get; set; }
  528. public string EmpName { get; set; }
  529. public string PsnIdettype { get; set; }
  530. public string PsnTypeLv { get; set; }
  531. }
  532. public class Reginfo
  533. {
  534. public string OccurTime { get; set; }
  535. public string InsuranceAreaCode { get; set; }
  536. public string AttendDoctorNO { get; set; }
  537. public string ChiefPhyDocName { get; set; }
  538. public string AdmitDepartmentCode { get; set; }
  539. public string AdmitDepartmentName { get; set; }
  540. public string AdmBed { get; set; }
  541. public string MainDiagCode { get; set; }
  542. public string MainDiagName { get; set; }
  543. public string RegDate { get; set; }
  544. public string ConerName { get; set; }
  545. public string Tel { get; set; }
  546. }
  547. public class Result
  548. {
  549. public Data data { get; set; }
  550. }
  551. public class Root
  552. {
  553. public Result result { get; set; }
  554. public int errorCode { get; set; }
  555. public string errorMessage { get; set; }
  556. }
  557. public class Settlement
  558. {
  559. public string AdmID { get; set; }
  560. public string MdtrtID { get; set; }
  561. public string SettlementID { get; set; }
  562. public string PersonnelNO { get; set; }
  563. public string PatientName { get; set; }
  564. public string birth { get; set; }
  565. public string CertificateNO { get; set; }
  566. public string Gender { get; set; }
  567. public string InsuranceType { get; set; }
  568. public string PersonType { get; set; }
  569. public string CivilserviceFlag { get; set; }
  570. public string SettlementTime { get; set; }
  571. public string MedicalType { get; set; }
  572. public string Sumamt { get; set; }
  573. public string OwnPayAmount { get; set; }
  574. public string OverLimitAmount { get; set; }
  575. public string PreSelfPayAmount { get; set; }
  576. public string InPolicyRangeAmount { get; set; }
  577. public double ActualPayDeductible { get; set; }
  578. public string HealthInsurancePay { get; set; }
  579. public string HealthInsuranceRatio { get; set; }
  580. public double CivilserviceAllowancePay { get; set; }
  581. public string EnterpriseSupplementPay { get; set; }
  582. public string SeriousIllnessPay { get; set; }
  583. public string LargeExpensesSupplementPay { get; set; }
  584. public string MedicalAssistPay { get; set; }
  585. public string HospitalPartAmount { get; set; }
  586. public string OtherPay { get; set; }
  587. public string FundPaySumamt { get; set; }
  588. public string PersonPaySumamt { get; set; }
  589. public string AccountPaySumamt { get; set; }
  590. public string PersonCashPay { get; set; }
  591. public string Balance { get; set; }
  592. public string AccountMutualAidAmount { get; set; }
  593. public string OrganSettlementID { get; set; }
  594. public string ClearingOrgan { get; set; }
  595. public string ClearingWay { get; set; }
  596. public string ClearingType { get; set; }
  597. public string ValidFlag { get; set; }
  598. public string msgid { get; set; }
  599. public string HospitalizationsTimes { get; set; }
  600. public string HospitalizationsDays { get; set; }
  601. public string HISAdmTime { get; set; }
  602. public string HISDischargeTime { get; set; }
  603. public int BillType { get; set; }
  604. public string BillID { get; set; }
  605. public string admType { get; set; }
  606. public string RecordID { get; set; }
  607. public string insuplc_admdvs { get; set; }
  608. }
  609. }