HandleException.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. using Newtonsoft.Json.Linq;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using PTMedicalInsurance.Common;
  12. using PTMedicalInsurance.Helper;
  13. using PTMedicalInsurance.FormSetter;
  14. using PTMedicalInsurance.Business;
  15. using PTMedicalInsurance.Variables;
  16. using FastReport;
  17. namespace PTMedicalInsurance.Forms
  18. {
  19. public partial class HandleException : Form
  20. {
  21. private int iLog = 0;
  22. private int iSettl = 0;
  23. private int iReg = 0;
  24. //设置业务实例
  25. CenterBusiness cBus = new CenterBusiness();
  26. HisMainBusiness hBus = new HisMainBusiness();
  27. HisIrisServices hIS = new HisIrisServices();
  28. MIIrisServices mIS = new MIIrisServices();
  29. InvokeHelper invoker = new InvokeHelper();
  30. public HandleException()
  31. {
  32. InitializeComponent();
  33. }
  34. private void HandleException_Load(object sender, EventArgs e)
  35. {
  36. dpST_Log.Text = DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
  37. dpED_Log.Text = DateTime.Now.ToString("yyyy-MM-dd 23:59:59");
  38. dpST_Settl.Text = DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
  39. dpED_Settl.Text = DateTime.Now.ToString("yyyy-MM-dd 23:59:59");
  40. dpST_OutPatReg.Text = DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
  41. dpED_OutPatReg.Text = DateTime.Now.ToString("yyyy-MM-dd 23:59:59");
  42. dgvSettlRecord.AutoGenerateColumns = false;
  43. GridViewSetter grdSetter = new GridViewSetter();
  44. grdSetter.SetHeaderTextOfSettlList(dgvSettlRecord);
  45. grdSetter.SetHeaderTextOfCenterLog(dgvLog);
  46. grdSetter.SetHeaderTextOfRegister(dgvOutPatReg);
  47. rbgAdmType.SelectedIndex = 0;
  48. rbgBillType.SelectedIndex = 1;
  49. }
  50. #region 结算异常
  51. private void btnQuerySettleRec_Click(object sender, EventArgs e)
  52. {
  53. if (tbName.Text == "")
  54. {
  55. MessageBox.Show("请输入患者姓名!");
  56. return;
  57. }
  58. string sqlStr = "SELECT * FROM BS_MedInsuSettlement WHERE Hospital_Dr=" + Global.inf.hospitalDr + " and 1=1 ";
  59. if (tbName.Text != "")
  60. {
  61. sqlStr = sqlStr + " and PatientName='" + tbName.Text + "'";
  62. }
  63. if (tbPatSettlID.Text != "")
  64. {
  65. sqlStr = sqlStr + " and SettlementID='" + tbPatSettlID.Text + "'";
  66. }
  67. if (tbHisNO.Text != "")
  68. {
  69. sqlStr = sqlStr + " and Adm_Dr='" + tbHisNO.Text + "'";
  70. }
  71. if (rbgAdmType.SelectedIndex == 1)
  72. {
  73. sqlStr = sqlStr + " and admType=1";
  74. }
  75. if (rbgAdmType.SelectedIndex == 2)
  76. {
  77. sqlStr = sqlStr + " and admType=2";
  78. }
  79. if (rbgBillType.SelectedIndex == 1)
  80. {
  81. sqlStr = sqlStr + " and BillType=1";
  82. }
  83. if (rbgBillType.SelectedIndex == 2)
  84. {
  85. sqlStr = sqlStr + " and BillType=-1";
  86. }
  87. sqlStr = sqlStr + " and OccurTime>'" + dpST_Settl.Text + "'";
  88. sqlStr = sqlStr + " and OccurTime<'" + dpED_Settl.Text + "'";
  89. JObject joSqlstr = new JObject();
  90. joSqlstr.Add("sqlStr", sqlStr);
  91. JArray jaParam = new JArray();
  92. jaParam.Add(joSqlstr);
  93. JObject joSettlQuery = new JObject();
  94. joSettlQuery.Add("params", jaParam);
  95. joSettlQuery.Add("code", "09010059");
  96. InvokeHelper invoker = new InvokeHelper();
  97. JObject joRtn = invoker.invokeInsuService(joSettlQuery.ToString(), "查询结算信息");
  98. DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
  99. dgvSettlRecord.DataSource = dt;
  100. }
  101. private void btnReverseBySettl_Click(object sender, EventArgs e)
  102. {
  103. InvokeHelper invoker = new InvokeHelper();
  104. DataTable dt = (DataTable)dgvSettlRecord.DataSource;
  105. string errorMessage = "";
  106. int a = dgvOutPatReg.CurrentRow.Index;
  107. //GlobalVariables.patientAreaCode = dt.Rows[a]["insuplc_admdvs"].ToString();
  108. Global.pat.insuplc_admdvs = "510106";
  109. string mdtrt_id = dt.Rows[a]["MdtrtID"].ToString();
  110. string psn_no = dt.Rows[a]["PersonnelNO"].ToString();
  111. string adm_Dr = dt.Rows[a]["AdmID"].ToString();
  112. string setl_id = dt.Rows[a]["SettlementID"].ToString();
  113. JObject joInparam = new JObject();
  114. JObject joData = new JObject();
  115. joData.Add("omsgid", dt.Rows[a]["msgid"].ToString());
  116. joData.Add("psn_no", dt.Rows[a]["PersonnelNO"].ToString());
  117. string infno = "";
  118. if (dt.Rows[a]["admType"].ToString() == "1") infno = "2207A";
  119. if (dt.Rows[a]["admType"].ToString() == "2") infno = "2304";
  120. joData.Add("oinfno", infno);
  121. joInparam.Add("data", joData);
  122. MessageBox.Show(joInparam.ToString());
  123. JObject joRtn = invoker.invokeCenterService("2601", joInparam);
  124. //将中心返回的结果返回HIS 调用HIS服务进行保存
  125. if (JsonHelper.parseIrisRtnValue(joRtn, out errorMessage) != 0)
  126. {
  127. MessageBox.Show("冲正失败:" + errorMessage);
  128. }
  129. else
  130. {
  131. dynamic joTmp = new JObject();
  132. joTmp.admID = adm_Dr;
  133. joTmp.PersonalNO = psn_no;
  134. joTmp.mdtrt_id = mdtrt_id;
  135. joTmp.setl_id = setl_id;
  136. //JObject jo2305IrisRtn = mIS.cancleSettlement(joTmp);
  137. JObject jo2305IrisRtn = new JObject();
  138. if (JsonHelper.parseIrisRtnValue(jo2305IrisRtn, out errorMessage) != 0)
  139. {
  140. errorMessage = "中心取消结算成功但云HIS平台取消失败,请联系管理员!" + errorMessage;
  141. MessageBox.Show(errorMessage);
  142. }
  143. }
  144. }
  145. private void btCancleSettl_Click(object sender, EventArgs e)
  146. {
  147. string outParam;
  148. String funNO;
  149. DataTable dt = (DataTable)dgvSettlRecord.DataSource;
  150. string errorMessage = "";
  151. int a = dgvSettlRecord.CurrentRow.Index;
  152. Global.pat.insuplc_admdvs = dt.Rows[a]["insuplc_admdvs"].ToString();
  153. Global.pat.mdtrtID = dt.Rows[a]["MdtrtID"].ToString();
  154. Global.pat.psn_no = dt.Rows[a]["PersonnelNO"].ToString();
  155. Global.pat.settlID = dt.Rows[a]["SettlementID"].ToString();
  156. Global.pat.adm_Dr = int.Parse(dt.Rows[a]["AdmID"].ToString());
  157. string admType = dt.Rows[a]["admType"].ToString();
  158. if (admType == "1")
  159. {
  160. funNO = "2208";
  161. }
  162. else
  163. {
  164. funNO = "2305";
  165. }
  166. //取消中心结算信息
  167. if (cBus.cancleSettlement(funNO, out outParam) != 0)
  168. {
  169. MessageBox.Show( "取消中心结算信息失败!" + outParam);
  170. return;
  171. }
  172. else
  173. {
  174. string newSettleID = JsonHelper.getDestValue(JObject.Parse(outParam), "output.setlinfo.setl_id");
  175. //取消平台结算信息
  176. if (mIS.cancleSettlement(newSettleID,out outParam) != 0)
  177. {
  178. MessageBox.Show("中心结算取消成功,医保平台结算信息取消失败!" + outParam);
  179. return ;
  180. }
  181. if (admType == "2")
  182. {
  183. //取消出院登记
  184. if (cBus.cancleRegister("2405", out outParam) != 0)
  185. {
  186. MessageBox.Show("中心,医保平台及HIS结算信息取消成功,取消出院登记失败!请手工取消出院登记!" + outParam);
  187. return;
  188. }
  189. }
  190. }
  191. }
  192. #endregion
  193. #region 日志异常
  194. private void btnQueryLog_Click(object sender, EventArgs e)
  195. {
  196. string errMsg;
  197. string sqlStr = "SELECT * FROM BS_MedInsuTransactionLog WHERE Hospital_Dr=" + Global.inf.hospitalDr + " and 1=1 ";
  198. if (tbPsnNO.Text != "")
  199. {
  200. sqlStr = sqlStr + " and PSNNO='" + tbPsnNO.Text + "'";
  201. }
  202. if (tbTransNO.Text != "")
  203. {
  204. sqlStr = sqlStr + " and Infno='" + tbTransNO.Text + "'";
  205. }
  206. sqlStr = sqlStr + " and InfDate>='" + dpST_Log.Value.ToString("yyyy-MM-dd") + "'";
  207. sqlStr = sqlStr + " and InfDate<='" + dpED_Log.Value.ToString("yyyy-MM-dd") + "'";
  208. JObject joSqlstr = new JObject();
  209. joSqlstr.Add("sqlStr", sqlStr);
  210. JObject joRtn = mIS.QueryTransactionLog(joSqlstr);
  211. //if (JsonHelper.parseIrisRtnValue(joRtn, out errMsg) != 0)
  212. //{
  213. // MessageBox.Show(errMsg);
  214. // return;
  215. //}
  216. try
  217. {
  218. DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
  219. dgvLog.DataSource = dt;
  220. }
  221. catch (Exception eX)
  222. {
  223. MessageBox.Show(eX.Message);
  224. }
  225. }
  226. private void btnReverseByLog_Click(object sender, EventArgs e)
  227. {
  228. InvokeHelper invoker = new InvokeHelper();
  229. DataTable dt = (DataTable)dgvLog.DataSource;
  230. JObject joInparam = new JObject();
  231. JObject joData = new JObject();
  232. int a = dgvLog.CurrentRow.Index;
  233. if (tbCBD_Log.Text != "")
  234. { Global.pat.insuplc_admdvs = tbCBD_Log.Text; }
  235. else
  236. Global.pat.insuplc_admdvs = dt.Rows[a]["insuplc_admdvs"].ToString();
  237. joData.Add("omsgid", dt.Rows[a]["msgid"].ToString());
  238. joData.Add("psn_no", dt.Rows[a]["psn_no"].ToString());
  239. joData.Add("oinfno", dt.Rows[a]["infno"].ToString());
  240. //joData.Add("oinfno", "2207");
  241. joInparam.Add("data", joData);
  242. JObject joRtn = invoker.invokeCenterService("2601", joInparam);
  243. string errorMessage = "";
  244. if (JsonHelper.parseCenterRtnValue(joRtn, out errorMessage) != 0)
  245. {
  246. MessageBox.Show("冲正失败" + errorMessage);
  247. }
  248. else
  249. {
  250. MessageBox.Show("冲正成功");
  251. }
  252. }
  253. #endregion
  254. #region 手工
  255. private void btPatInfo_ex_Click(object sender, EventArgs e)
  256. {
  257. rtbInparam.Text = @"{""data"":{""omsgid"":""H51010604235202205280848088230"",""psn_no"":""1530541881"",""oinfno"":""2201""}}";
  258. JObject joTmp = JObject.Parse(rtbInparam.Text);
  259. rtbInparam.Text = joTmp.ToString();
  260. }
  261. private void btnPatInfoShow_Click(object sender, EventArgs e)
  262. {
  263. //string errorMsg = "";
  264. //Global.pat.insuplc_admdvs = tbCBD_Hand.Text;
  265. //JObject joRtn = invoker.invokeCenterService("2601",rtbInparam.Text);
  266. //if (JsonHelper.parseCenterRtnValue(joRtn, out errorMsg) != 0)
  267. //{
  268. // MessageBox.Show("冲正失败:" + errorMsg);
  269. //}
  270. //else
  271. //{
  272. // MessageBox.Show("冲正成功!:");
  273. //}
  274. string errorMsg = "";
  275. JObject joRtn = new JObject();
  276. Global.pat.insuplc_admdvs = tbCBD_Hand.Text;
  277. if (Chk_DealNo.Checked)
  278. {
  279. //自定义交易
  280. joRtn = invoker.invokeCenterService(tb_DealNo.Text, JObject.Parse(rtbInparam.Text));
  281. }
  282. else
  283. {
  284. joRtn = invoker.invokeCenterService("2601", JObject.Parse(rtbInparam.Text));
  285. }
  286. rtbOutparam.Text = joRtn.ToString();
  287. if (JsonHelper.parseCenterRtnValue(joRtn, out errorMsg) != 0)
  288. {
  289. MessageBox.Show("调用失败:" + errorMsg);
  290. }
  291. else
  292. {
  293. MessageBox.Show("调用成功!:");
  294. }
  295. }
  296. #endregion
  297. #region 门诊登记
  298. private void btnQueryOutPatReg_Click(object sender, EventArgs e)
  299. {
  300. string sqlStr = "SELECT * FROM BS_MedInsuRegisterInfo WHERE Hospital_Dr=" + Global.inf.hospitalDr + " and 1=1 ";
  301. if (tbOutPatName.Text != "")
  302. {
  303. sqlStr = sqlStr + " and PatientName='" + tbOutPatName.Text + "'";
  304. }
  305. if (tbOutPatRegID.Text != "")
  306. {
  307. sqlStr = sqlStr + " and InsuRegID='" + tbOutPatRegID.Text + "'";
  308. }
  309. if (tbOutPatPsnNO.Text != "")
  310. {
  311. sqlStr = sqlStr + " and PersonalNO='" + tbOutPatPsnNO.Text + "'";
  312. }
  313. sqlStr = sqlStr + " and OccurTime>'" + dpST_OutPatReg.Text + "'";
  314. sqlStr = sqlStr + " and OccurTime<'" + dpED_OutPatReg.Text + "'";
  315. JObject joSqlstr = new JObject();
  316. joSqlstr.Add("sqlStr", sqlStr);
  317. JArray jaParam = new JArray();
  318. jaParam.Add(joSqlstr);
  319. JObject joSettlQuery = new JObject();
  320. joSettlQuery.Add("params", jaParam);
  321. joSettlQuery.Add("code", "09010062");
  322. InvokeHelper invoker = new InvokeHelper();
  323. JObject joRtn = invoker.invokeInsuService(joSettlQuery.ToString(), "查询门诊挂号");
  324. try
  325. {
  326. DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
  327. dgvOutPatReg.DataSource = dt;
  328. }
  329. catch (Exception eX)
  330. {
  331. MessageBox.Show(eX.Message);
  332. }
  333. }
  334. private void btnCancleOutPatReg_Click(object sender, EventArgs e)
  335. {
  336. InvokeHelper invoker = new InvokeHelper();
  337. DataTable dt = (DataTable)dgvOutPatReg.DataSource;
  338. string errorMessage = "";
  339. int a = dgvOutPatReg.CurrentRow.Index;
  340. string admType = dt.Rows[a]["insuplc_admdvs"].ToString();
  341. Global.pat.psn_no = dt.Rows[a]["PersonalNO"].ToString();
  342. Global.pat.mdtrtID = dt.Rows[a]["InsuRegID"].ToString();
  343. Global.pat.adm_Dr = int.Parse(dt.Rows[a]["AdmID"].ToString());
  344. if (admType == "3")
  345. {
  346. //组织挂号入参
  347. JObject joCancleRegInpar = new JObject();
  348. Global.pat.insuplc_admdvs = dt.Rows[a]["insuplc_admdvs"].ToString();
  349. joCancleRegInpar.Add("psn_no", dt.Rows[a]["PersonalNO"].ToString());
  350. joCancleRegInpar.Add("mdtrt_id", dt.Rows[a]["InsuRegID"].ToString());
  351. joCancleRegInpar.Add("ipt_otp_no", dt.Rows[a]["AdmID"].ToString());
  352. JObject joRegInput = new JObject();
  353. joRegInput.Add("data", joCancleRegInpar);
  354. //取消挂号信息
  355. JObject jo2202Rtn = invoker.invokeCenterService("2202", joRegInput);
  356. if (JsonHelper.parseCenterRtnValue(jo2202Rtn, out errorMessage) != 0)
  357. {
  358. MessageBox.Show("取消挂号失败" + errorMessage);
  359. }
  360. else
  361. {
  362. dynamic joTmp = new JObject();
  363. joTmp.admID = dt.Rows[a]["AdmID"].ToString();
  364. joTmp.PersonalNO = dt.Rows[a]["PersonalNO"].ToString();
  365. joTmp.InsuRegID = dt.Rows[a]["InsuRegID"].ToString();
  366. joTmp.Add("billID", "");
  367. joTmp.Type = 3;
  368. joTmp.CancleRegDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
  369. //JObject jo2404IrisRtn = hIS.cancleRegister(joTmp);
  370. //if (JsonHelper.parseIrisRtnValue(jo2404IrisRtn, out errorMessage) != 0)
  371. //{
  372. // MessageBox.Show(errorMessage);
  373. //}
  374. //else
  375. //{
  376. // MessageBox.Show("取消挂号成功");
  377. //}
  378. }
  379. }
  380. else
  381. {
  382. if (cBus.cancleRegister("2404", out errorMessage) != 0)
  383. {
  384. MessageBox.Show(errorMessage);
  385. }
  386. else
  387. {
  388. if (mIS.cancleRegister(1, out errorMessage) != 0)
  389. {
  390. MessageBox.Show(errorMessage);
  391. }
  392. else
  393. {
  394. MessageBox.Show("取消登记成功");
  395. }
  396. }
  397. }
  398. }
  399. private void btnCancleOutPatFee_Click(object sender, EventArgs e)
  400. {
  401. InvokeHelper invoker = new InvokeHelper();
  402. DataTable dt = (DataTable)dgvOutPatReg.DataSource;
  403. string errorMessage = "";
  404. int a = dgvOutPatReg.CurrentRow.Index;
  405. string admType = dt.Rows[a]["insuplc_admdvs"].ToString();
  406. Global.pat.insuplc_admdvs = dt.Rows[a]["insuplc_admdvs"].ToString();
  407. Global.pat.psn_no = dt.Rows[a]["PersonalNO"].ToString();
  408. Global.pat.mdtrtID = dt.Rows[a]["InsuRegID"].ToString();
  409. Global.pat.adm_Dr = int.Parse(dt.Rows[a]["AdmID"].ToString());
  410. if (admType == "3")
  411. {
  412. string mdtrt_id = dt.Rows[a]["InsuRegID"].ToString();
  413. string psn_no = dt.Rows[a]["PersonalNO"].ToString();
  414. string adm_Dr = dt.Rows[a]["AdmID"].ToString();
  415. //组织入参
  416. dynamic joTmp = new JObject();
  417. joTmp.chrg_bchno = "0000";
  418. joTmp.mdtrt_id = mdtrt_id;
  419. joTmp.psn_no = psn_no;
  420. joTmp.expContent = "";
  421. JObject joData = new JObject();
  422. joData.Add("data", joTmp);
  423. //组织好后上传给中心
  424. JObject joCenterRtn = invoker.invokeCenterService("2205", joData);
  425. if (joCenterRtn["infcode"].ToString() == "0")
  426. {
  427. //删除医保传送表的数据
  428. joTmp = new JObject();
  429. joTmp.code = "09010048";
  430. joTmp.HospitalDr = Global.inf.hospitalDr;
  431. joTmp.admID = adm_Dr;
  432. joTmp.mdtrt_id = mdtrt_id;
  433. joTmp.updateUserID = Global.user.ID;
  434. JObject joIris2301DeleteRtn = invoker.invokeInsuService(joTmp.ToString(), "删除门诊明细");
  435. if (JsonHelper.parseCenterRtnValue(joIris2301DeleteRtn, out errorMessage) != 0)
  436. {
  437. MessageBox.Show("取消门诊费用失败" + errorMessage);
  438. }
  439. else
  440. {
  441. MessageBox.Show("取消门诊费用成功");
  442. }
  443. }
  444. else
  445. {
  446. MessageBox.Show("取消门诊费用失败");
  447. }
  448. }
  449. else
  450. {
  451. if (cBus.cancleFeeUpload("2302", out errorMessage) != 0)
  452. {
  453. MessageBox.Show("取消住院费用失败" + errorMessage);
  454. }
  455. else
  456. {
  457. if (mIS.deleteFee(out errorMessage) != 0)
  458. {
  459. MessageBox.Show("删除平台费用失败");
  460. }
  461. else
  462. {
  463. MessageBox.Show("取消住院费用成功");
  464. }
  465. }
  466. }
  467. }
  468. #endregion
  469. private void uiButton1_Click(object sender, EventArgs e)
  470. {
  471. string data = rtbInparam.Text;
  472. InvokeHelper invoker = new InvokeHelper();
  473. rtbOutparam.Text = invoker.invokeHISService(data,"").ToString();
  474. }
  475. private void dgvSettlRecord_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
  476. {
  477. if (e.RowIndex > -1)
  478. {
  479. int validFlag = Convert.ToInt32(this.dgvSettlRecord.Rows[e.RowIndex].Cells["ValidFlag"].Value);
  480. if (validFlag == 0)
  481. {
  482. dgvSettlRecord.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Red;
  483. }
  484. }
  485. }
  486. private void uiButton2_Click(object sender, EventArgs e)
  487. {
  488. if (Global.inf.interfaceDr == 5)
  489. {
  490. RealNameAuthentication rna = new RealNameAuthentication();
  491. JObject joParam = JObject.Parse(rtbInparam.Text);
  492. JObject joRealNameRtn = rna.DoctorAttendance(joParam);
  493. string errMsg = "";
  494. if (JsonHelper.parseRealNameRtnValue(joRealNameRtn, out errMsg) != 0)
  495. {
  496. rtbOutparam.Text = JsonHelper.setExceptionJson(-1, "人脸验证未通过", errMsg).ToString();
  497. }
  498. }
  499. else
  500. {
  501. rtbOutparam.Text = JsonHelper.setExceptionJson(-1, "人脸验证:", "暂支持省医保").ToString();
  502. }
  503. }
  504. private void uiButton3_Click(object sender, EventArgs e)
  505. {
  506. if (Global.inf.interfaceDr == 5)
  507. {
  508. RealNameAuthentication rna = new RealNameAuthentication();
  509. JObject joParam = JObject.Parse(rtbInparam.Text);
  510. JObject joRealNameRtn = rna.CallFace(joParam);
  511. string errMsg = "";
  512. if (JsonHelper.parseRealNameRtnValue(joRealNameRtn, out errMsg) != 0)
  513. {
  514. rtbOutparam.Text = JsonHelper.setExceptionJson(-1, "人脸验证未通过", errMsg).ToString();
  515. }
  516. }
  517. else
  518. {
  519. rtbOutparam.Text = JsonHelper.setExceptionJson(-1, "人脸验证:", "暂支持省医保").ToString();
  520. }
  521. }
  522. private void Chk_DealNo_ValueChanged(object sender, bool value)
  523. {
  524. if (Chk_DealNo.Checked)
  525. tb_DealNo.Visible = true;
  526. else
  527. tb_DealNo.Visible = false;
  528. }
  529. }
  530. }