using FastReport.Editor; using Newtonsoft.Json.Linq; using PTMedicalInsurance.Helper; 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; namespace HuBeiMI.Forms { public partial class HopitalAppeal : Form { public HopitalAppeal() { InitializeComponent(); } private void HopitalAppeal_Load(object sender, EventArgs e) { //uiTextBox1.Text = ""; //uiTextBox2.Text = ""; } private void adate1_ValueChanged(object sender, DateTime value) { } private void adate2_ValueChanged(object sender, DateTime value) { } private void aButton1_Click(object sender, EventArgs e) { string alb1 = ""; if (acbx1.SelectedIndex == 0) { alb1 = "1"; }else if(acbx1.SelectedIndex == 1) { alb1 = "2"; } //JArray ainput1 = new JArray(); JObject adata1 = new JObject(); adata1.Add("startTime",adate1.Text); adata1.Add("endTime",adate2.Text); adata1.Add("medinsCodg",uiTextBox1.Text); adata1.Add("medinsName",uiTextBox2.Text); adata1.Add("currentPage", uiTextBox3.Text); adata1.Add("pageSize", uiTextBox4.Text); adata1.Add("stage", alb1); // ainput1.Add(adata1); JObject ainput = new JObject(); ainput.Add("IntlgSupnApplInput", adata1);//FsiIntlgSupnApplEvtCQueryDTO JObject input3= new JObject(); input3.Add("input", ainput); JObject Fjon = new JObject(); Fjon.Add("FsiIntlgSupnApplEvtCQueryDTO", input3);// InvokeHelper invoker = new InvokeHelper(); JObject joRtn = invoker.invokeCenterService("3701", JsonHelper.setCenterInpar("3701", Fjon.ToString())); //DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable)); //dgvSettlSummary.DataSource = dt; } private void uiPanel1_Click(object sender, EventArgs e) { } } }