init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;
using Ls;
namespace EmployeeManager
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass
{
public DllBaseClass()
{
}
//以数组传入参数,容易扩展
public DllBaseClass(string[] args)
{
FrmMain _FrmMain = new FrmMain();
//------------------自定义的参数解析过程----------------
try
{
if (args.Length == 0)
_FrmMain.Text = "没有参数";
else
{
Ls.sysstr.str1 = (string)args[0];
Ls.sysstr.str2 = (string)args[1];
Ls.sysstr.str3 = (string)args[2];
Ls.sysstr.str4 = (string)args[3];
Ls.sysstr.str5 = (string)args[4];
Ls.sysstr.str6 = (string)args[5];
Ls.sysstr.str7 = (string)args[6];
Ls.sysstr.str8 = (string)args[7];
_FrmMain.Text = Ls.sysstr.str1;
}
}
catch (Exception ex)
{
PubUtil.WriteLog("ModuleInit错误:" + ex.Message);
}
//------------------解析完毕,准备调用有关窗体----------------
_FrmMain.ShowDialog();
_FrmMain.Close();
_FrmMain.Dispose();
_FrmMain = null;
}
}
}