65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
/******************************
|
|
* 说明:单据模版入口
|
|
* 创建人:龚宇超
|
|
* 创建日期:2017-11-23
|
|
* 修改人:
|
|
* 修改日期:
|
|
* 修改备注:
|
|
* 版本: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.Business.Impl;
|
|
using System.Collections;
|
|
|
|
namespace Lskj.PubBillManagement
|
|
{
|
|
/// <summary>
|
|
/// 单据模版入口
|
|
/// </summary>
|
|
public class DllBaseClass : IForm
|
|
{
|
|
public DllBaseClass()
|
|
{
|
|
|
|
}
|
|
|
|
public DllBaseClass(string[] obj)
|
|
{
|
|
try
|
|
{
|
|
FrmMain main = new FrmMain();
|
|
DynamicBillModel moduleModel = new DynamicBillModel(obj);
|
|
main.SysModel = moduleModel;
|
|
moduleModel.DataCaches = new Dictionary<object, Hashtable>();
|
|
if (SystemInfo.Instance.OptimizationSpeed) main.GetDataCaches(moduleModel.DataCaches);
|
|
GridEnum gridEnum = GridEnum.GridView;
|
|
if (!moduleModel.DataCaches.GetValue(main, "FormType", out int formType))
|
|
{
|
|
formType = BaseImpl.GetBillDetailType(moduleModel.ModuleCode);
|
|
}
|
|
if (formType == 1)
|
|
{
|
|
gridEnum = GridEnum.BandedGridView;
|
|
}
|
|
main.SysModel.GridEnumObj = gridEnum;
|
|
this.SubForm = main;
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogUtil.WriteError("Lskj.PubBillManagement.dll--参数错误-->" + obj.ToString(), ex);
|
|
}
|
|
|
|
}
|
|
|
|
public Form SubForm { get; set; }
|
|
}
|
|
}
|