From 926fa0e0644123a5d3686b9d6c2b99b305189732 Mon Sep 17 00:00:00 2001 From: cyf Date: Wed, 5 Mar 2025 07:09:25 +0000 Subject: [PATCH] SVN r294 SVN-Revision: r294 --- 插件库/Lskj.PubTabDll/DllBaseClass.cs | 2 + 插件库/Lskj.PubTabDll/FrmMain.Designer.cs | 32 +++++ 插件库/Lskj.PubTabDll/FrmMain.cs | Bin 0 -> 644 bytes 插件库/Lskj.PubTabDll/FrmMain.resx | 120 ++++++++++++++++++ 插件库/Lskj.PubTabDll/Lskj.PubTabDll.csproj | 112 ++++++++++++++++ 插件库/Lskj.PubTabDll/Program.cs | Bin 0 -> 497 bytes .../Lskj.PubTabDll/Properties/AssemblyInfo.cs | 9 ++ .../Properties/Resources.Designer.cs | 40 ++++++ .../Lskj.PubTabDll/Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 1 + .../Properties/Settings.settings | 7 + 插件库/Lskj.PubTabDll/TabDllEx.Designer.cs | 39 ++++++ 插件库/Lskj.PubTabDll/TabDllEx.cs | 45 +++++++ 插件库/Lskj.PubTabDll/TabDllEx.resx | 120 ++++++++++++++++++ 14 files changed, 644 insertions(+) create mode 100644 插件库/Lskj.PubTabDll/DllBaseClass.cs create mode 100644 插件库/Lskj.PubTabDll/FrmMain.Designer.cs create mode 100644 插件库/Lskj.PubTabDll/FrmMain.cs create mode 100644 插件库/Lskj.PubTabDll/FrmMain.resx create mode 100644 插件库/Lskj.PubTabDll/Lskj.PubTabDll.csproj create mode 100644 插件库/Lskj.PubTabDll/Program.cs create mode 100644 插件库/Lskj.PubTabDll/Properties/AssemblyInfo.cs create mode 100644 插件库/Lskj.PubTabDll/Properties/Resources.Designer.cs create mode 100644 插件库/Lskj.PubTabDll/Properties/Resources.resx create mode 100644 插件库/Lskj.PubTabDll/Properties/Settings.Designer.cs create mode 100644 插件库/Lskj.PubTabDll/Properties/Settings.settings create mode 100644 插件库/Lskj.PubTabDll/TabDllEx.Designer.cs create mode 100644 插件库/Lskj.PubTabDll/TabDllEx.cs create mode 100644 插件库/Lskj.PubTabDll/TabDllEx.resx diff --git a/插件库/Lskj.PubTabDll/DllBaseClass.cs b/插件库/Lskj.PubTabDll/DllBaseClass.cs new file mode 100644 index 0000000..f25ab17 --- /dev/null +++ b/插件库/Lskj.PubTabDll/DllBaseClass.cs @@ -0,0 +1,2 @@ +using System; +using System.Collections.Generi \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/FrmMain.Designer.cs b/插件库/Lskj.PubTabDll/FrmMain.Designer.cs new file mode 100644 index 0000000..e3db47c --- /dev/null +++ b/插件库/Lskj.PubTabDll/FrmMain.Designer.cs @@ -0,0 +1,32 @@ + +namespace Lskj.PubTabDll +{ + partial class FrmMain + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows 窗体设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/FrmMain.cs b/插件库/Lskj.PubTabDll/FrmMain.cs new file mode 100644 index 0000000000000000000000000000000000000000..9b0f5d0b3a7059ec17cdb1a21b628176799ccbc1 GIT binary patch literal 644 zcmV-~0(<=!8v_~@5E*<584i4Da%@~#TwGjSTwGjWFdbZ6TwGiL0001|icsD#!Oe`v zhvdI;nUv0QX<&NFheYj9K1c^T?b)5M-cqEl9@+D(AhM&YceJU{GW{8-|LrFcK<8=) z$rIX;Dczi0ib+`8bL5qQV{Ds3jdSpPD}=L8IyW$w-Z1-{R#O0+zwp zC=l+;ooDP7VPu(GK7VLFTw34`q23FEmYwBj&zB5zX4!`(g~=S|_;j8JjDLywTgcv8 z8`AWdI#Yc*9?f={sUbhsINelky{;ZM75?X%RfC6u@6L?GfjWZFrgVJh0#oLb=ud)0 zQ|8BTWZq9#J0h2!W=3-q{kO!Nn-ZY?*UhG5$k7*Z2A-!sYXY0Qs>Bu}pMr{U=vNBU z*bNMRS1If<^5pP3$ytD-gr`&x9_I5rI04R+Q-7i-UGVNVQ<(6YTY^}iSPb#y%8t^1 zmj~{Hewaz|Xgd{uJwf%{7-EHP$s(Wp^M@o+22G_+@Xo4Fu^u~Z= zEjM&fb8P5v6DUGf(yCIR#W<^GPm32$w|x#nSoyl8yXs=V73PyQ!m{`a2J)KOH#uhuY4xx#xzU@@jdL2+=` zVvk5HWo_C)l3wG8#^CGb8hllNB$hd#6% emNj + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/Lskj.PubTabDll.csproj b/插件库/Lskj.PubTabDll/Lskj.PubTabDll.csproj new file mode 100644 index 0000000..16e9604 --- /dev/null +++ b/插件库/Lskj.PubTabDll/Lskj.PubTabDll.csproj @@ -0,0 +1,112 @@ + + + + + Debug + AnyCPU + {AEB20C62-D8DE-4ADC-85C7-4BCF3D6AA950} + Library + Lskj.PubTabDll + Lskj.PubTabDll + v4.0 + 512 + true + + + x86 + true + full + false + ..\..\Debug\Lib\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + FrmMain.cs + + + + + UserControl + + + TabDllEx.cs + + + FrmMain.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + TabDllEx.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + {7eafccc2-a18f-49e9-85c6-a984966cfd01} + Lskj.Business + + + {52BC40E0-C0C6-4F78-996B-CAE028D209CA} + Lskj.Model + + + {A51BF642-6543-4DE3-8948-83F558B72BD4} + Lskj.Util + + + + \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/Program.cs b/插件库/Lskj.PubTabDll/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..780f5afa09c43c062925d17ab6cb4df3803be1c1 GIT binary patch literal 497 zcmV^ZKifMj#`Q4K+MM}P`qnck-}H;NlzcO?#@hD@zq>vZ0qm~|f35-x zd&IF3G`dl(;m)A)ulP&Ohzs({Hta=yPizQpNG6Gk$HcX4{5hK?kI`J1Okk1FyFJBS z&em&N0KiHZZ8Ri>Y3^8O<4NzRF>za2?M9&o6E(S<^(uu#K`&aMTi+?G;wBp4fxuJ6 z6k@29ZQV*>T19Q@=pqc?u`#Hp3)U&0gWBD&OI(bED%uMRl!KR+ zrXZ0(#)c???AN&|f3+x@Wp1HpV{=Zj_l6;0z9MjZQzYn-0`1a4?0G^=f>A<#05t=&Ioh3!7gEtVO_7^>M6V^p<-ZCGs zw}#WIY*eyF?z;HH`#X`U#5{D^z#V;>J{mWF((^ik@;(&J@uCPr4lAb{GkeagL*U~(HgQ}JZJ-LWii+;U literal 0 HcmV?d00001 diff --git a/插件库/Lskj.PubTabDll/Properties/AssemblyInfo.cs b/插件库/Lskj.PubTabDll/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..360cf8f --- /dev/null +++ b/插件库/Lskj.PubTabDll/Properties/AssemblyInfo.cs @@ -0,0 +1,9 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("Lskj.PubTabDll")] +[assembly: Assembl \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/Properties/Resources.Designer.cs b/插件库/Lskj.PubTabDll/Properties/Resources.Designer.cs new file mode 100644 index 0000000..466ddab --- /dev/null +++ b/插件库/Lskj.PubTabDll/Properties/Resources.Designer.cs @@ -0,0 +1,40 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// 运行时版本: 4.0.30319.42000 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + + +namespace Lskj.PubTabDll.Properties +{ + /// + /// 强类型资源类,用于查找本地化字符串等。 + /// + // 此类是由 StronglyTypedResourceBuilder + // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 + // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen + // (以 /str 作为命令选项),或重新生成 VS 项目。 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// 返回此类使用的缓存 ResourceManager 实例。 + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceM \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/Properties/Resources.resx b/插件库/Lskj.PubTabDll/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/插件库/Lskj.PubTabDll/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/Properties/Settings.Designer.cs b/插件库/Lskj.PubTabDll/Properties/Settings.Designer.cs new file mode 100644 index 0000000..9e34e97 --- /dev/null +++ b/插件库/Lskj.PubTabDll/Properties/Settings.Designer.cs @@ -0,0 +1 @@ +//---------------------------------------------------------------------- \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/Properties/Settings.settings b/插件库/Lskj.PubTabDll/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/插件库/Lskj.PubTabDll/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/插件库/Lskj.PubTabDll/TabDllEx.Designer.cs b/插件库/Lskj.PubTabDll/TabDllEx.Designer.cs new file mode 100644 index 0000000..0c634f1 --- /dev/null +++ b/插件库/Lskj.PubTabDll/TabDllEx.Designer.cs @@ -0,0 +1,39 @@ + +namespace Lskj.PubTabDll +{ + partial class TabDllEx + { + /// + /// 必需的设计器变量。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清理所有正在使用的资源。 + /// + /// 如果应释放托管资源,为 true;否则为 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region 组件设计器生成的代码 + + /// + /// 设计器支持所需的方法 - 不要修改 + /// 使用代码编辑器修改此方法的内容。 + /// + private void InitializeComponent() + { + this.xtc_container = new DevExpress.XtraTab.XtraTabControl(); + ((System.ComponentModel.ISupportInitialize)(this.xtc_container)).BeginInit(); + this.SuspendLayout(); + // + // xtc_container + // + this.xtc_container.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; + \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/TabDllEx.cs b/插件库/Lskj.PubTabDll/TabDllEx.cs new file mode 100644 index 0000000..946bb43 --- /dev/null +++ b/插件库/Lskj.PubTabDll/TabDllEx.cs @@ -0,0 +1,45 @@ +using DevExpress.Utils; +using DevExpress.XtraTab; +using Lskj.Business.Impl; +using Lskj.Model; +using Lskj.Util; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Lskj.PubTabDll +{ + public partial class TabDllEx : UserControl + { + public TabDllEx() + { + InitializeComponent(); + } + + public void InitTabPages(List gridDetail) + { + foreach (string item in gridDetail) + { + DataRow dataRow= MainImpl.GetModuleInformation(item); + if (dataRow == null) continue; + + // 验证权限 + int purview = MainImpl.GetUserPurviewsByMenuId(dataRow["MenuId"] + ""); + if (purview == 0) continue; + + string[] args = new string[]{ + dataRow["MenuCaption"] + "", + ERPInfo.Instance.UserId, + ERPInfo.Instance.UserName, + purview + "", + dataRow["UrlParams"] + "", + dataRow["MenuId"] + "" + }; + + XtraTabPage tp = new XtraTabPage(); + IForm iform = FormHelper.LoadDllForm(dataRow["DllFileName"] + "", args); \ No newline at end of file diff --git a/插件库/Lskj.PubTabDll/TabDllEx.resx b/插件库/Lskj.PubTabDll/TabDllEx.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/插件库/Lskj.PubTabDll/TabDllEx.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file