692adaade6
SVN-Revision: r731
103 lines
2.8 KiB
C#
103 lines
2.8 KiB
C#
/******************************
|
|
* 说明:PubSpec 模块
|
|
* 创建人:龚宇超
|
|
* 创建日期:2018-01-02
|
|
* 修改人:
|
|
* 修改日期:
|
|
* 修改备注:
|
|
* 版本:1.0.0.0
|
|
******************************/
|
|
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 DevExpress.XtraGrid.Views.Grid;
|
|
using Newtonsoft.Json.Linq;
|
|
using Newtonsoft.Json;
|
|
using System.Data;
|
|
using Lskj.Business.Impl;
|
|
|
|
namespace Lskj.PubBomImportNew
|
|
{
|
|
/// <summary>
|
|
/// PubSpec 模块
|
|
/// </summary>
|
|
public class DllBaseClass : IForm
|
|
{
|
|
public DllBaseClass()
|
|
{
|
|
|
|
}
|
|
public DllBaseClass(string[] obj)
|
|
{
|
|
try
|
|
{
|
|
FrmMain main = new FrmMain();
|
|
this.SubForm = main;
|
|
main.Model = new DynamicBomImportNew(obj);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogUtil.WriteError("Lskj.PubSpecialImport.dll--参数错误-->" + obj.ToString(), ex);
|
|
}
|
|
}
|
|
public Form SubForm { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// PubSpecialImport入库参数
|
|
/// </summary>
|
|
public class DynamicBomImportNew : DynamicModel
|
|
{
|
|
/// <summary>
|
|
/// 标题行
|
|
/// </summary>
|
|
public string FirstRowIndex = "";
|
|
/// <summary>
|
|
/// 结束标识
|
|
/// </summary>
|
|
public string EndTableCond = "";
|
|
/// <summary>
|
|
/// sheet名称
|
|
/// </summary>
|
|
public string SheetName = "";
|
|
/// <summary>
|
|
/// 字段对照
|
|
/// </summary>
|
|
public string MainFieldDic = "";
|
|
/// <summary>
|
|
/// 读取筛选条件
|
|
/// </summary>
|
|
public string ReadTableCond = "";
|
|
/// <summary>
|
|
/// 忽略合并明细列标题行
|
|
/// </summary>
|
|
public bool CustomerServiceApp = false;
|
|
/// <summary>
|
|
/// 模块编码
|
|
/// </summary>
|
|
public string SaveModuleCode = "";
|
|
public DynamicBomImportNew(string[] args)
|
|
: base(args)
|
|
{
|
|
if (args.Length > 5 && !string.IsNullOrWhiteSpace(args[5]))
|
|
{
|
|
FirstRowIndex = args[5] + "";
|
|
}
|
|
if (args.Length > 6 && !string.IsNullOrWhiteSpace(args[6]))
|
|
{
|
|
EndTableCond = args[6] + "";
|
|
}
|
|
if (args.Length > 7 && !string.IsNullOrWhiteSpace(args[7]))
|
|
{
|
|
SheetName = args[7] + "";
|
|
}
|
|
if (args.Length > 8 && !string.IsNullOrWhiteSpace(args[8]))
|
|
{
|
|
MainFieldDic = args[8] + "";
|
|
}
|
|
if (args.Length > 9 && !string.IsNullOrWhiteSpace(args[9]))
|
|
{ |