453da6c084
SVN-Revision: r483
54 lines
1.4 KiB
C#
54 lines
1.4 KiB
C#
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 Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using System.Data;
|
|
|
|
namespace Lskj.PubApiSetModule
|
|
{
|
|
/// <summary>
|
|
/// c#库被调用统一接口类
|
|
/// </summary>
|
|
public sealed class DllBaseClass : IForm
|
|
{
|
|
public DllBaseClass()
|
|
{
|
|
|
|
}
|
|
public DllBaseClass(string[] obj)
|
|
{
|
|
try
|
|
{
|
|
DynamicApiSetModel dynamicModel = new DynamicApiSetModel(obj);
|
|
FrmMain main = new FrmMain();
|
|
this.SubForm = main;
|
|
main.Model = dynamicModel;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogUtil.WriteError("Lskj.PubApiSetModule.dll--参数错误-->" + obj.ToString(), ex);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 窗口
|
|
/// </summary>
|
|
public Form SubForm { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 入口模型
|
|
/// </summary>
|
|
public class DynamicApiSetModel : DynamicModel
|
|
{
|
|
/// <summary>
|
|
/// 初始化默认参数(1.标题、2、用户ID、3.用户名、4.权限、5.模块编号、6.菜单ID)
|
|
/// </summary>
|
|
/// <param name="args">The arguments.</param>
|
|
public DynamicApiSetModel(string[] args) : base(args)
|
|
{
|
|
|