51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using CommonLib;
|
|
using CommonLib.utils;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Lskj.PubBillAccraditation
|
|
{
|
|
/// <summary>
|
|
/// c#库被调用统一接口类
|
|
/// </summary>
|
|
public sealed class DllBaseClass : IForm
|
|
{
|
|
public DllBaseClass()
|
|
{
|
|
|
|
}
|
|
|
|
//以数组传入参数,容易扩展
|
|
public DllBaseClass(string[] obj)
|
|
{
|
|
try
|
|
{
|
|
FrmAccraditation frm = new FrmAccraditation();
|
|
SubForm = frm;
|
|
|
|
frm.FormText = obj[0];
|
|
frm.OperatorId = obj[1];
|
|
frm.OperatorName = obj[2];
|
|
frm.Privilege = obj[3];
|
|
frm.DLLCoid = obj[4];
|
|
|
|
frm.TargetDLLCoid = obj[5];
|
|
frm.billDocumentId = obj[6];
|
|
frm.FormText = obj[7];
|
|
frm.stepCode = obj[8];
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show(ex.Message);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 窗口
|
|
/// </summary>
|
|
public Form SubForm { get; set; }
|
|
}
|
|
}
|