using Cksoft.Unity; using DllEapEntity; using DllPubInfo; using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DllXqManager { public class CallFunction { public static LayoutMst CallIULayoutMst(LayoutMst entity,List details) { try { Hashtable tempds = new Hashtable(); string str = JsonConvert.SerializeObject(entity); tempds.Add(nameof(LayoutMst), str); tempds.Add(nameof(LayoutDetail), JsonConvert.SerializeObject(details)); Hashtable reds = PubInfo.CallFunction("DllStatusShowBll.StatusShowBll", "IULayoutMst", tempds); if (reds == null) return null; LayoutMst reentity = JsonConvert.DeserializeObject(reds[nameof(LayoutMst)].ToString()); return reentity; } catch (Exception e) { MessageBox.Show("操作发生错误,错误信息为:" + e.Message.ToString(), "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); return null; } } } }