65 lines
1.9 KiB
C#
65 lines
1.9 KiB
C#
/******************************
|
|
* 说明:单据审批入口
|
|
* 创建人:龚宇超
|
|
* 创建日期:2017-12-31
|
|
* 修改人:
|
|
* 修改日期:
|
|
* 修改备注:
|
|
* 版本:1.0.0.0
|
|
******************************/
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Lskj.Util;
|
|
using System.Windows.Forms;
|
|
using Lskj.Model;
|
|
using Lskj.Business;
|
|
using Lskj.PubAccraditation;
|
|
using System.Collections;
|
|
|
|
namespace Lskj.PubAccraditation
|
|
{
|
|
/// <summary>
|
|
/// 基础档案审批模板入口
|
|
/// </summary>
|
|
public class DllBaseClass : IForm
|
|
{
|
|
public DllBaseClass()
|
|
{
|
|
|
|
}
|
|
|
|
public DllBaseClass(string[] obj)
|
|
{
|
|
try
|
|
{
|
|
if (obj.Length >= 8 && !string.IsNullOrEmpty(obj[7]) && !string.IsNullOrEmpty(obj[8]) && !string.IsNullOrEmpty(obj[9]))
|
|
{
|
|
FrmAccraditation popupForm = new FrmAccraditation();
|
|
popupForm.SysModel = new DynamicPubAccraditionPopModel(obj);
|
|
popupForm.SysModel.DataCaches = new Dictionary<object, Hashtable>();
|
|
if (SystemInfo.Instance.OptimizationSpeed) popupForm.GetDataCaches(popupForm.SysModel.DataCaches);
|
|
this.SubForm = popupForm;
|
|
|
|
}
|
|
else
|
|
{
|
|
FrmMain main = new FrmMain();
|
|
this.SubForm = main;
|
|
main.SysModel = new DynamicPubAccraditionModel(obj);
|
|
main.SysModel.DataCaches = new Dictionary<object, Hashtable>();
|
|
if(SystemInfo.Instance.OptimizationSpeed) main.GetDataCaches(main.SysModel.DataCaches);
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogUtil.WriteError("Lskj.PubAccraditation.dll--参数错误-->" + obj.ToString(), ex);
|
|
}
|
|
|
|
}
|
|
|
|
public Form SubForm { get; set; }
|
|
}
|
|
}
|