/****************************** * 说明:PubSpec 模块 * 创建人:龚宇超 * 创建日期:2018-01-02 * 修改人: * 修改日期: * 修改备注: * 版本:1.0.0.0 ******************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Lskj.Util; using Lskj.Business; using System.Windows.Forms; using Lskj.Model; using DevExpress.XtraGrid.Views.Grid; using Newtonsoft.Json.Linq; using Newtonsoft.Json; using System.Data; using Lskj.Business.Impl; namespace Lskj.PubBomImportNew { /// /// PubSpec 模块 /// public class DllBaseClass : IForm { public DllBaseClass() { } public DllBaseClass(string[] obj) { try { FrmMain main = new FrmMain(); this.SubForm = main; main.Model = new DynamicBomImportNew(obj); } catch (Exception ex) { LogUtil.WriteError("Lskj.PubSpecialImport.dll--参数错误-->" + obj.ToString(), ex); } } public Form SubForm { get; set; } } /// /// PubSpecialImport入库参数 /// public class DynamicBomImportNew : DynamicModel { /// /// 标题行 /// public string FirstRowIndex = ""; /// /// 结束标识 /// public string EndTableCond = ""; /// /// sheet名称 /// public string SheetName = ""; /// /// 字段对照 /// public string MainFieldDic = ""; /// /// 读取筛选条件 /// public string ReadTableCond = ""; /// /// 忽略合并明细列标题行 /// public bool CustomerServiceApp = false; /// /// 模块编码 /// public string SaveModuleCode = ""; public DynamicBomImportNew(string[] args) : base(args) { if (args.Length > 5 && !string.IsNullOrWhiteSpace(args[5])) { FirstRowIndex = args[5] + ""; } if (args.Length > 6 && !string.IsNullOrWhiteSpace(args[6])) { EndTableCond = args[6] + ""; } if (args.Length > 7 && !string.IsNullOrWhiteSpace(args[7])) { SheetName = args[7] + ""; } if (args.Length > 8 && !string.IsNullOrWhiteSpace(args[8])) { MainFieldDic = args[8] + ""; } if (args.Length > 9 && !string.IsNullOrWhiteSpace(args[9])) {