123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- using Newtonsoft.Json.Linq;
- 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 MedicalInsurance.Common;
- namespace ChengDuMedInsu2
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- dynamic Jo = new JObject();
- string HosptialID = "H51010604235", HospitalName = "成都普瑞眼科医院", signno = "", ErrorMessage = "", result = "";
- string CurrentPath;
- string LogName;
- private void button2_Click(object sender, EventArgs e)
- {
- }
- private void button3_Click(object sender, EventArgs e)
- {
- dynamic jo = new JObject();
- dynamic jo1 = new JObject();
- jo.ver = textBox3.Text;
- //jo.list_type = "";
- jo1.data = jo;
- string InParam = jo1.ToString();
- string funName = textBox2.Text;
- string InParm_A = GlobalVariables.SetJsonParam(funName, InParam);
- CenterServices Invoke = new CenterServices();
- GlobalVariables.writeLog("入参:" + InParm_A);
- string outParam = Invoke.Post(GlobalVariables.centerURL, InParm_A);
- GlobalVariables.writeLog("出参:" + outParam);
- JObject joRtn = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(outParam);
- string file_qury_no = (string)joRtn["output"]["file_qury_no"];
- string filename = (string)joRtn["output"]["filename"];
- JObject jo2 = new JObject(); JObject jo3 = new JObject();
- jo2["fixmedins_code"] = GlobalVariables.hospitalNO;
- jo2["file_qury_no"] = file_qury_no;
- jo2["filename"] = filename;
- jo3["fsDownloadIn"] = jo2;
- InParam = jo3.ToString();
- MessageBox.Show(InParam);
- InParm_A = GlobalVariables.SetJsonParam("9102", InParam);
- MessageBox.Show("2");
- GlobalVariables.writeLog("入参:" + InParm_A);
- Invoke.Download(GlobalVariables.centerURL, InParm_A);
- }
- private void button4_Click(object sender, EventArgs e)
- {
- signno = textBox1.Text;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- Log Log;
- Common common = new Common();
-
- private void button1_Click(object sender, EventArgs e)
- {
- signno = textBox1.Text;
- dynamic jo = new JObject();
- dynamic jo1 = new JObject();
- jo.ver = "0";
- //jo.list_type = "";
- jo1.data = jo;
- string InParam = jo1.ToString();
- string url = "http://10.109.103.59:8080/mss/web/api/fsi/callService", InParm_A = GlobalVariables.SetJsonParam("1301", InParam);
- CurrentPath = System.Environment.CurrentDirectory + "\\Log";
- LogName = DateTime.Now.ToString("yyyy-MM-dd") + "_YW.Log";
- Log = new Log(CurrentPath, LogName);
- Log.Write("入参:" + InParam);
- Log.Write("Url:" + url);
- Log.Write("入参:" + InParm_A);
- CenterServices Invoke = new CenterServices();
- string outParam = Invoke.Post(url, InParm_A);
- Log.Write("出参:" + outParam);
- JObject joRtn = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(outParam);
- MessageBox.Show(joRtn.ToString());
- string file_qury_no = (string)joRtn["output"]["file_qury_no"];
- string filename = (string)joRtn["output"]["filename"];
- JObject jo2 = new JObject(); JObject jo3 = new JObject();
- jo2["fixmedins_code"] = "H51010604235";
- jo2["file_qury_no"] = file_qury_no;
- jo2["filename"] = filename;
- jo3["fsDownloadIn"] = jo2;
- InParam = jo3.ToString();
- MessageBox.Show(InParam);
- InParm_A = GlobalVariables.SetJsonParam("9102", InParam);
- Log.Write("Url:" + url);
- Log.Write("入参:" + InParm_A);
- Invoke.Download(url, InParm_A);
- }
- }
- }
|