using Lskj.Business; using Lskj.Model; using Lskj.Util; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace Lskj.PubArgoxPrint { /// /// c#库被调用统一接口类 /// public sealed class DllBaseClass : IForm { public DllBaseClass() { } public DllBaseClass(string[] obj) { try { DynamicArgoxPrintModel dynamicArgoxPrintModel = new DynamicArgoxPrintModel(obj); FrmMain main = new FrmMain(); main.Model = dynamicArgoxPrintModel; this.SubForm = main; } catch (Exception ex) { LogUtil.WriteError("Lskj.PubArgoxPrint.dll--参数错误-->" + obj.ToString(), ex); } } /// /// 窗口 /// public Form SubForm { get; set; } } /// /// 入口模型 /// public class DynamicArgoxPrintModel : DynamicModel { /// /// 列起始X坐标 /// public string LocationX = ""; /// /// 打印列参数 /// public string PrintArgs = ""; /// /// 打印数据sql /// public string MainPrintSql = ""; /// /// 执行后的语句 /// public string AfterSql = ""; /// /// 初始化默认参数(1.标题、2、用户ID、3.用户名、4.权限、5.模块编号、6.菜单ID) /// /// The arguments. public DynamicArgoxPrintModel(string[] args) : base(args) { if (args.Length > 5 && !string.IsNullOrWhiteSpace(args[5])) { LocationX = args[5]; } if (args.Length > 6 &