提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+42 -1
View File
@@ -1,2 +1,43 @@
using System;
using Syste
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DevExpress.UserSkins;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using Lskj.Model;
using Lskj.Util;
using Lskj.Business;
namespace Lskj.PubTabDll
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicModel moduleModel = new DynamicModel(obj);
FrmMain main = new FrmMain();
main.Model = moduleModel;
this.SubForm = main;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.PubTabDll.dll--参数错误-->" + obj.ToString(), ex);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
+30 -1
View File
@@ -29,4 +29,33 @@ namespace Lskj.PubTabDll
/// </summary>
private void InitializeComponent()
{
this.tabDllEx = new Lskj.PubTabDll.TabDllEx();
this.SuspendLayout();
//
// tabDllEx
//
this.tabDllEx.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabDllEx.Location = new System.Drawing.Point(0, 0);
this.tabDllEx.Name = "tabDllEx";
this.tabDllEx.Size = new System.Drawing.Size(907, 549);
this.tabDllEx.TabIndex = 0;
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(907, 549);
this.Controls.Add(this.tabDllEx);
this.Name = "FrmMain";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
private TabDllEx tabDllEx;
}
}
Binary file not shown.
Binary file not shown.
@@ -6,4 +6,31 @@ using System.Runtime.InteropServices;
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubTabDll")]
[assembly: Assembl
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.PubTabDll")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("aeb20c62-d8de-4adc-85c7-4bcf3d6aa950")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+31 -1
View File
@@ -37,4 +37,34 @@ namespace Lskj.PubTabDll.Properties
/// 返回此类使用的缓存 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceM
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.PubTabDll.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
+29 -1
View File
@@ -1 +1,29 @@
//----------------------------------------------------------------------
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubTabDll.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
+24 -1
View File
@@ -36,4 +36,27 @@ namespace Lskj.PubTabDll
// xtraTabControl
//
this.xtraTabControl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this
this.xtraTabControl.BorderStylePage = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.xtraTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.xtraTabControl.Location = new System.Drawing.Point(0, 0);
this.xtraTabControl.Name = "xtraTabControl";
this.xtraTabControl.Size = new System.Drawing.Size(561, 442);
this.xtraTabControl.TabIndex = 6;
//
// TabDllEx
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.xtraTabControl);
this.Name = "TabDllEx";
this.Size = new System.Drawing.Size(561, 442);
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl)).EndInit();
this.ResumeLayout(false);
}
#endregion
public DevExpress.XtraTab.XtraTabControl xtraTabControl;
}
}
+33
View File
@@ -44,3 +44,36 @@ namespace Lskj.PubTabDll
XtraTabPage tp = new XtraTabPage();
IForm iform = FormHelper.LoadDllForm(dataRow["DllFileName"] + "", args);
iform.SubForm.WindowState = FormWindowState.Normal; ;
Form form = iform.SubForm; // 表示组成应用程序的用户界面的窗口或对话框。
form.Tag = item;
// 这个必须有不然会提示:"不能向tabControl中添加顶级控件"
form.TopLevel = false;
form.Dock = DockStyle.Fill;//客户需要缩放
form.AutoSize = true;
form.FormBorderStyle = FormBorderStyle.None;
tp.Text = dataRow["MenuCaption"] + "";
//tp.Tag = guid;
tp.AutoScroll = true;
tp.Controls.Add(form);
tp.ShowCloseButton = DefaultBoolean.True;
tp.Dock = DockStyle.Fill;
form.Show();
this.xtraTabControl.TabPages.Add(tp);
}
this.xtraTabControl.SelectedTabPageIndex = 0;
}
}
}