HopitalAppeal.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using FastReport.Editor;
  2. using Newtonsoft.Json.Linq;
  3. using PTMedicalInsurance.Helper;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13. namespace HuBeiMI.Forms
  14. {
  15. public partial class HopitalAppeal : Form
  16. {
  17. public HopitalAppeal()
  18. {
  19. InitializeComponent();
  20. }
  21. private void HopitalAppeal_Load(object sender, EventArgs e)
  22. {
  23. //uiTextBox1.Text = "";
  24. //uiTextBox2.Text = "";
  25. }
  26. private void adate1_ValueChanged(object sender, DateTime value)
  27. {
  28. }
  29. private void adate2_ValueChanged(object sender, DateTime value)
  30. {
  31. }
  32. private void aButton1_Click(object sender, EventArgs e)
  33. {
  34. string alb1 = "";
  35. if (acbx1.SelectedIndex == 0)
  36. {
  37. alb1 = "1";
  38. }else if(acbx1.SelectedIndex == 1)
  39. {
  40. alb1 = "2";
  41. }
  42. //JArray ainput1 = new JArray();
  43. JObject adata1 = new JObject();
  44. adata1.Add("startTime",adate1.Text);
  45. adata1.Add("endTime",adate2.Text);
  46. adata1.Add("medinsCodg",uiTextBox1.Text);
  47. adata1.Add("medinsName",uiTextBox2.Text);
  48. adata1.Add("currentPage", uiTextBox3.Text);
  49. adata1.Add("pageSize", uiTextBox4.Text);
  50. adata1.Add("stage", alb1);
  51. // ainput1.Add(adata1);
  52. JObject ainput = new JObject();
  53. ainput.Add("IntlgSupnApplInput", adata1);//FsiIntlgSupnApplEvtCQueryDTO
  54. JObject input3= new JObject();
  55. input3.Add("input", ainput);
  56. JObject Fjon = new JObject();
  57. Fjon.Add("FsiIntlgSupnApplEvtCQueryDTO", input3);//
  58. InvokeHelper invoker = new InvokeHelper();
  59. JObject joRtn = invoker.invokeCenterService("3701", JsonHelper.setCenterInpar("3701", Fjon.ToString()));
  60. //DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
  61. //dgvSettlSummary.DataSource = dt;
  62. }
  63. private void uiPanel1_Click(object sender, EventArgs e)
  64. {
  65. }
  66. }
  67. }