| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 | 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;namespace PTMedicalInsurance.Services{    /// <summary>    /// 医保平台Iris服务的封装,根据表结构分区    /// </summary>    class MIIrisServices    {        private InvokeHelper invoker = new InvokeHelper();        #region 医保目录表        /// <summary>        /// 根据HisType获取当前目录最大版本号        /// </summary>        /// <param name="directoryType"></param>        /// <returns></returns>        public JObject getDirectoryMaxVersionNO(int directoryType)        {            try            {                dynamic joParam = new JObject();                joParam.HospitalDr = Global.inf.hospitalDr;                joParam.InterfaceDr = Global.inf.interfaceDr;                joParam.HisType = directoryType + 1;                JObject joInparam = JsonHelper.setIrisInpar("09010037", joParam);                JObject joRtn = invoker.invokeInsuService("09010037", joInparam.ToString());                return joRtn;            }            catch (Exception ex)            {                return JsonHelper.setExceptionJson(-1, "获取版本号异常:", ex.Message);            }        }        public JObject insertDirectory(JArray jaParam)        {            JObject joIn = new JObject();            JObject joRtn = new JObject();            string outParam = "";            try            {                joIn.Add(new JProperty("params", jaParam));                joIn.Add("code", "09010035");                joIn.Add("updateUserID", Global.user.ID);                string sInput = joIn.ToString();                joRtn = invoker.invokeInsuService(sInput, "插入医保目录");                outParam = joRtn.ToString();                return joRtn;            }            catch (Exception ex)            {                joRtn = JsonHelper.setExceptionJson(-1, "PTMedicalInsurance.Services.MIIrisServices.insertDirectory", ex.Message);                outParam = joRtn.ToString();                return joRtn;            }        }        #endregion        #region 字典表        /// <summary>        /// 插入字典主表        /// </summary>        /// <param name="joData"></param>        /// <returns></returns>        public JObject insertDictionarys(JObject joData)        {            try            {                JObject joInparam = JsonHelper.setIrisInpar("09010074", joData);                JObject joRtn = invoker.invokeInsuService(joInparam.ToString(), "插入字典表");                return joRtn;            }            catch (Exception ex)            {                return JsonHelper.setExceptionJson(-1, "插入字典表异常:", ex.Message);            }        }                #endregion    }}
 |