/****************************** * 说明:Lskj.PubModuleDetailInfo 入口函数 * 创建人:龚宇超 * 创建日期:2018-04-03 * 修改人: * 修改日期: * 修改备注: * 版本: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; namespace Lskj.PubModuleDetailInfo2 { /// /// c#库被调用统一接口类 /// public sealed class DllBaseClass : IForm { public DllBaseClass() { } public DllBaseClass(string[] obj) { try { FrmMain main = new FrmMain(); this.SubForm = main; main.Model = new DynamicModuleDetailInfo2(obj); } catch (Exception ex) { LogUtil.WriteError("Lskj.PubModuleDetail.dll--参数错误-->" + obj.ToString(), ex); } } /// /// 窗口 /// public Form SubForm { get; set; } } public class DynamicModuleDetailInfo2 : DynamicModel { /// /// 扩展参数 /// private string[] Params; /// /// 控件参数 /// /// The control SQL. public string ControlSql { get; private set; } /// /// 模块保存方式(0=保存后新增,1=复制新增,2=成功后关闭) /// /// The state of the menu save. public int MenuSaveState { get; private set; } /// /// 下方模块编号 /// //public string BottomModuleCode { get; private set; } /// /// 是否为基础档案 /// /// true if this instance is base module; otherwise, false. public override bool IsBaseModule { get { return true; } } /// /// 说明:传入特殊参数处理 /// 创建人:龚宇超 /// 创建日期:2018-04-03 /// 修改人: /// 修改日期: /// 修改备注: /// 版本:1.0 /// /// System.String[]. public override string[] OtherParams() { return Params; } public DynamicModuleDetailInfo2(string[] args) : base(args) { if (args.Length > 5) base.ModuleId = string.IsNullOrEmpty(args[5]) ? 0 : Convert.ToInt32(args[5]); if (args.Length > 6) base.ModuleCode = args[6]; //if(args.Length > 7) // this.BottomModuleCode = args[7]; if (args.Length >7) this.ControlSql = args[7]; if (args.Length > 8) { this.Params = new string[args.Length]; for (int i = 8; i < args.Length; i++) { Params[i - 8] = args[i]; } } if (args.Length > 15) this.MenuSaveState = string.IsNullOrEmpty(args[15]) ? 0 : Convert.ToInt32(args[15]); } } }