123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- using Newtonsoft.Json.Linq;
- using PTMedicalInsurance.Helper;
- using PTMedicalInsurance.Variables;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Xml.Linq;
- namespace PTMedicalInsurance.Business.Center
- {
- /// <summary>
- /// 下载业务
- /// </summary>
- class DownLoad
- {
- XmlHelper xh = new XmlHelper();
- ///对目录下载业务的封装 91A-E, 61,GB001-003
- ///
- public JObject DownloadDirectory(string funNO, XElement inParam)
- {
- string errorMsg = "", sRtn = "";
- JObject joRtn = new JObject();
- XDocument XDoc = new XDocument();
- try
- {
- string jysr = xh.setInput(inParam);
- //rtbIn_1.Text = jysr;
- YinHaiCom yinhaiCom = new YinHaiCom();
- yinhaiCom.Init(out errorMsg);
- string jylsh="", jyyzm="", jysc="", appmsg="";
- int appcode = -1;
- yinhaiCom.Call(funNO, jysr, ref jylsh, ref jyyzm, ref jysc, ref appcode, ref appmsg);
- if (appcode > 0)
- {
- joRtn = JsonHelper.setIrisReturnValue(0, "", JObject.Parse(xh.ToJSON(jysr)));
- }
- else
- {
- joRtn = JsonHelper.setIrisReturnValue(-1, appmsg, null);
- }
- return joRtn;
- }
- catch (Exception ex)
- {
- joRtn = JsonHelper.setExceptionJson(-100, "下载中心目录", ex.Message);
- return joRtn;
- }
- finally
- {
- Global.writeLog("PTMedicalInsurance.Business.Center.DownLoad.DownloadDirectory", inParam.ToString(), joRtn.ToString());
- }
- }
- public JObject DownloadDictionary(string funNO, XElement inParam)
- {
- string errorMsg = "", sRtn = "";
- JObject joRtn = new JObject();
- XDocument XDoc = new XDocument();
- try
- {
- string jysr = xh.setInput(inParam);
- YinHaiCom yinhaiCom = new YinHaiCom();
- yinhaiCom.Init(out errorMsg);
- string jylsh="", jyyzm="", jysc="", appmsg="";
- int appcode=-1;
- yinhaiCom.Call(funNO, jysr, ref jylsh, ref jyyzm, ref jysc, ref appcode, ref appmsg);
- if (appcode > 0)
- {
- joRtn = JsonHelper.setIrisReturnValue(0, "", JObject.Parse(xh.ToJSON(jysc)));
- }
- else
- {
- joRtn = JsonHelper.setIrisReturnValue(-1, appmsg, null);
- }
- return joRtn;
- }
- catch (Exception ex)
- {
- joRtn = JsonHelper.setExceptionJson(-100, "下载中心字典", ex.Message);
- return joRtn;
- }
- finally
- {
- Global.writeLog("PTMedicalInsurance.Business.Center.DownLoad.DownloadDictionary", inParam.ToString(), joRtn.ToString());
- }
- }
- }
- }
|