基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.UserSkins;
|
||||
using DevExpress.Skins;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Util;
|
||||
using Lskj.Model;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using Lskj.Core;
|
||||
|
||||
namespace Lskj.MesGumDip
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
main.SysModel = new DynamicMesProduct(obj);
|
||||
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
SqlParameter[] param =
|
||||
{
|
||||
new SqlParameter("@userId",SqlDbType.Int,4),
|
||||
new SqlParameter("@operatorName",SqlDbType.VarChar,20),
|
||||
new SqlParameter("@FormText",SqlDbType.VarChar,20),
|
||||
new SqlParameter("@Privilege",SqlDbType.Int,4),
|
||||
new SqlParameter("@moduleId",SqlDbType.Int,4),
|
||||
new SqlParameter("@moduleCode",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@settingTableName",SqlDbType.VarChar,50),
|
||||
};
|
||||
|
||||
|
||||
//DataTable a2 = new DataTable();
|
||||
//if (a2.Rows.Count==0)
|
||||
//{
|
||||
// string a = Lskj.Data.Caches.CacheSYSConfig.Instance().GetBasePrimaryKey();
|
||||
//}
|
||||
param[0].Value = ERPInfo.Instance.UserId;
|
||||
param[1].Value = ERPInfo.Instance.UserName;
|
||||
param[2].Value = obj[0];
|
||||
param[3].Value = obj[3];
|
||||
param[4].Value = obj[5];
|
||||
param[5].Value = obj[4];
|
||||
param[6].Value = Lskj.Data.ResourceKeys.SettingTableName;
|
||||
ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_Get_NewDesignPlatform_SweepCode", "cacheSYSConfig", param);
|
||||
Lskj.Data.Caches.CacheSYSConfig.Instance().SetData(ds);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.SweepCode.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user