基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
/******************************
|
||||
* 说明:单据模版入口
|
||||
* 创建人:龚宇超
|
||||
* 创建日期: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.PubBill
|
||||
{
|
||||
/// <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.PubBill.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user