提交单据管理和修改密码功能

This commit is contained in:
cyf
2026-07-28 10:16:51 +08:00
parent e4b40a32d7
commit b893e8d8e4
75 changed files with 16227 additions and 309 deletions
@@ -0,0 +1,57 @@
using Lskj.Business;
using Lskj.Model;
using Lskj.Util;
using System;
using System.Windows.Forms;
namespace Lskj.PubUpdatePwd
{
/// <summary>
/// 动态链接库统一入口。
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
DynamicUpdatePwd moduleModel = new DynamicUpdatePwd(obj);
FrmMain main = new FrmMain();
main.Model = moduleModel;
SubForm = main;
}
catch (Exception ex)
{
LogUtil.WriteError("Lskj.PubUpdatePwd.dll--参数错误-->", ex);
}
}
public Form SubForm { get; set; }
}
public class DynamicUpdatePwd : DynamicModel
{
//打开时默认选中人员id
public string PersonnelID { get; private set; }
//修改后关闭
public string AfterClose = "";
public DynamicUpdatePwd(string[] args)
: base(args)
{
if (args != null && args.Length > 5 && !string.IsNullOrWhiteSpace(args[5]))
{
PersonnelID = args[5].Trim();
}
if (args != null && args.Length > 6 && !string.IsNullOrWhiteSpace(args[6]))
{
AfterClose = args[6].Trim();
}
}
}
}
+193
View File
@@ -0,0 +1,193 @@
namespace Lskj.PubUpdatePwd
{
partial class FrmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.newPwd = new DevExpress.XtraEditors.LabelControl();
this.txtNewPass = new DevExpress.XtraEditors.TextEdit();
this.ConfirmPwd = new DevExpress.XtraEditors.LabelControl();
this.txtPassConfirm = new DevExpress.XtraEditors.TextEdit();
this.btnOK = new DevExpress.XtraEditors.SimpleButton();
this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
this.lueUserName = new Lskj.Control.AutoGridLookUp();
this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.txtNewPass.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.txtPassConfirm.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).BeginInit();
this.SuspendLayout();
//
// newPwd
//
this.newPwd.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.newPwd.Location = new System.Drawing.Point(32, 56);
this.newPwd.Name = "newPwd";
this.newPwd.Size = new System.Drawing.Size(36, 14);
this.newPwd.TabIndex = 0;
this.newPwd.Text = "新密码";
//
// txtNewPass
//
this.txtNewPass.Location = new System.Drawing.Point(98, 53);
this.txtNewPass.Name = "txtNewPass";
this.txtNewPass.Size = new System.Drawing.Size(153, 20);
this.txtNewPass.TabIndex = 1;
//
// ConfirmPwd
//
this.ConfirmPwd.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.ConfirmPwd.Location = new System.Drawing.Point(32, 93);
this.ConfirmPwd.Name = "ConfirmPwd";
this.ConfirmPwd.Size = new System.Drawing.Size(48, 14);
this.ConfirmPwd.TabIndex = 3;
this.ConfirmPwd.Text = "确认密码";
//
// txtPassConfirm
//
this.txtPassConfirm.Location = new System.Drawing.Point(98, 90);
this.txtPassConfirm.Name = "txtPassConfirm";
this.txtPassConfirm.Size = new System.Drawing.Size(153, 20);
this.txtPassConfirm.TabIndex = 4;
//
// btnOK
//
this.btnOK.Location = new System.Drawing.Point(32, 187);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(80, 25);
this.btnOK.TabIndex = 8;
this.btnOK.Text = "确定";
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(171, 187);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(80, 25);
this.btnCancel.TabIndex = 9;
this.btnCancel.Text = "取消";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// lueUserName
//
this.lueUserName.DataSource = null;
this.lueUserName.EditValue = "";
this.lueUserName.Location = new System.Drawing.Point(98, 12);
this.lueUserName.Name = "lueUserName";
this.lueUserName.Properties.Appearance.Font = new System.Drawing.Font("微软雅黑", 11F);
this.lueUserName.Properties.Appearance.Options.UseFont = true;
this.lueUserName.Properties.NullValuePrompt = "请输入账号";
this.lueUserName.Properties.NullValuePromptShowForEmptyValue = true;
this.lueUserName.Size = new System.Drawing.Size(153, 26);
this.lueUserName.TabIndex = 10;
//
// labelControl1
//
this.labelControl1.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.labelControl1.Location = new System.Drawing.Point(32, 18);
this.labelControl1.Name = "labelControl1";
this.labelControl1.Size = new System.Drawing.Size(48, 14);
this.labelControl1.TabIndex = 11;
this.labelControl1.Text = "人员名称";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(96, 164);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(89, 12);
this.label4.TabIndex = 23;
this.label4.Text = "3、至少8个字符";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(96, 146);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(155, 12);
this.label3.TabIndex = 22;
this.label3.Text = "2、必须包含小写或大写字母";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(36, 126);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(155, 12);
this.label2.TabIndex = 21;
this.label2.Text = "密码要求:1、必须包含数字";
//
// FrmMain
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(290, 224);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.labelControl1);
this.Controls.Add(this.lueUserName);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.txtPassConfirm);
this.Controls.Add(this.ConfirmPwd);
this.Controls.Add(this.txtNewPass);
this.Controls.Add(this.newPwd);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmMain";
this.Text = "修改密码";
this.Load += new System.EventHandler(this.FrmMain_Load);
((System.ComponentModel.ISupportInitialize)(this.txtNewPass.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtPassConfirm.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lueUserName.Properties)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private DevExpress.XtraEditors.LabelControl newPwd;
private DevExpress.XtraEditors.TextEdit txtNewPass;
private DevExpress.XtraEditors.LabelControl ConfirmPwd;
private DevExpress.XtraEditors.TextEdit txtPassConfirm;
private DevExpress.XtraEditors.SimpleButton btnOK;
private DevExpress.XtraEditors.SimpleButton btnCancel;
private Control.AutoGridLookUp lueUserName;
private DevExpress.XtraEditors.LabelControl labelControl1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
}
}
+277
View File
@@ -0,0 +1,277 @@
using Lskj.Business;
using Lskj.Business.Impl;
using Lskj.Control;
using Lskj.Core;
using Lskj.Model;
using Lskj.Util;
using System;
using System.Data;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace Lskj.PubUpdatePwd
{
public partial class FrmMain : BaseForm
{
private static readonly Regex PasswordRegex = new Regex(
@"(?=.*[0-9])
(?=.*[a-zA-Z])
(?=.*[^a-zA-Z0-9])
.{8,18}",
RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);
public DynamicUpdatePwd Model;
public FrmMain()
{
InitializeComponent();
}
private void FrmMain_Load(object sender, EventArgs e)
{
try
{
txtNewPass.Text = string.Empty;
txtPassConfirm.Text = string.Empty;
txtNewPass.Properties.PasswordChar = '*';
txtPassConfirm.Properties.PasswordChar = '*';
BindUserSelectionEvents();
InitializeUsers();
UpdateConfirmButtonState();
}
catch (Exception ex)
{
string message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(message, ex.Message);
}
}
/// <summary>
/// 绑定人员选择事件,兼容鼠标选择和键盘回车选择。
/// </summary>
private void BindUserSelectionEvents()
{
lueUserName.TextChanged -= OnUserSelectionChanged;
lueUserName.TextChanged += OnUserSelectionChanged;
lueUserName.Popup.OnGridViewMouseClick -= OnUserSelectionChanged;
lueUserName.Popup.OnGridViewMouseClick += OnUserSelectionChanged;
lueUserName.Popup.OnGridViewEnter -= OnUserSelectionEnter;
lueUserName.Popup.OnGridViewEnter += OnUserSelectionEnter;
}
private void OnUserSelectionChanged(object sender, EventArgs e)
{
UpdateConfirmButtonState();
}
private void OnUserSelectionEnter(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
UpdateConfirmButtonState();
}
}
/// <summary>
/// 管理员不能在本模块中修改自己的密码。
/// </summary>
private void UpdateConfirmButtonState()
{
bool isAdministrator = string.Equals(
ERPInfo.Instance.UserName,
"管理员",
StringComparison.OrdinalIgnoreCase);
string personnelId = lueUserName.EditValue == null
? string.Empty
: lueUserName.EditValue.Trim();
bool isCurrentUser = !string.IsNullOrWhiteSpace(personnelId)
&& string.Equals(personnelId, ERPInfo.Instance.UserId, StringComparison.OrdinalIgnoreCase);
btnOK.Enabled = isAdministrator && !isCurrentUser;
}
/// <summary>
/// 初始化可修改密码的人员列表。
/// </summary>
private void InitializeUsers()
{
string displayName = "UserName";
string additionalFields = string.Empty;
if (!string.IsNullOrWhiteSpace(SystemInfo.Instance.LoginUsername)
&& BaseImpl.HasExistsColumn("P_EmployeeTab", SystemInfo.Instance.LoginUsername))
{
displayName = SystemInfo.Instance.LoginUsername;
additionalFields = " ," + displayName;
}
lueUserName.ValueField = lueUserName.ValueMember = "UserId";
lueUserName.TextMember = displayName;
lueUserName.SourceSQL = string.Format(
"select EmployeeId UserId,LoginAccount UserCode,EmployeeName UserName {0} "
+ "from P_EmployeeTab where sign=0 and UseFlag=1",
additionalFields);
DataTable userTable;
//if (SystemInfo.Instance.DisplayUserCode)
//{
// lueUserName.SourceSQL = string.Format(
// "select EmployeeId UserId,LoginAccount UserCode,EmployeeName UserName,LoginAccount 工号 {0} "
// + "from P_EmployeeTab where sign=0 and UseFlag=1",
// additionalFields);
// userTable = MainImpl.GetEmployeeListNew();
//}
//else
//{
// userTable = MainImpl.GetEmployeeList();
//}
userTable = MainImpl.GetEmployeeList();
lueUserName.DataSource = userTable;
lueUserName.Properties.NullValuePrompt = "请选择人员";
string personnelId = Model == null ? string.Empty : Model.PersonnelID;
if (string.IsNullOrWhiteSpace(personnelId))
{
lueUserName.Focus();
return;
}
DataRow userRow = userTable.Rows.Cast<DataRow>().FirstOrDefault(
row => string.Equals(row["UserId"] + string.Empty, personnelId, StringComparison.OrdinalIgnoreCase));
if (userRow == null)
{
lueUserName.Properties.ReadOnly = true;
MessageUtil.Show("未找到指定人员,无法修改密码!", "提示");
return;
}
lueUserName.EditValue = userRow["UserId"] + string.Empty;
lueUserName.Properties.ReadOnly = true;
txtNewPass.Focus();
}
/// <summary>
/// 确定按钮点击事件。
/// </summary>
private void btnOK_Click(object sender, EventArgs e)
{
string personnelId = lueUserName.EditValue == null
? string.Empty
: lueUserName.EditValue.Trim();
string newPassword = txtNewPass.Text.Trim();
string confirmPassword = txtPassConfirm.Text.Trim();
if (string.IsNullOrWhiteSpace(personnelId))
{
MessageUtil.Show("请选择需要修改密码的人员!", "提示");
lueUserName.Focus();
return;
}
if (string.Equals(personnelId, ERPInfo.Instance.UserId, StringComparison.OrdinalIgnoreCase))
{
btnOK.Enabled = false;
MessageUtil.Show("管理员不能在此模块中修改自己的密码!", "提示");
return;
}
if (string.IsNullOrWhiteSpace(newPassword))
{
MessageUtil.Show("新密码不能为空!");
txtNewPass.Focus();
return;
}
if (string.IsNullOrWhiteSpace(confirmPassword))
{
MessageUtil.Show("确认密码不能为空!");
txtPassConfirm.Focus();
return;
}
if (!newPassword.Equals(confirmPassword))
{
MessageUtil.Show("两次输入的密码不一致!");
txtPassConfirm.Focus();
return;
}
if (SystemInfo.Instance.VerfyPasswordStrength && !PasswordRegex.IsMatch(confirmPassword))
{
MessageUtil.Show("密码不符合要求!");
txtNewPass.Focus();
return;
}
try
{
btnOK.Enabled = false;
string tipMessage;
int result;
bool useChangePasswordProcedure = BaseImpl.HasExistsStoredProcedure("pr_sytemchangepsw");
if (useChangePasswordProcedure)
{
result = MainImpl.ChangePassword(personnelId, newPassword, out tipMessage);
}
else
{
result = MainImpl.ForceUpdatePassword(personnelId, newPassword);
tipMessage = result == 0 ? "用户不存在" : string.Empty;
}
if (result != 1)
{
MessageUtil.Show("修改失败:" + tipMessage);
return;
}
if (!useChangePasswordProcedure && SystemInfo.Instance.UpdPwdAllSystem)
{
if (MainImpl.UpdatePasswordAllSubsystem(personnelId, newPassword))
{
MessageUtil.Show("用户对应账套密码修改成功");
}
else
{
MessageUtil.Show("当前账套密码修改成功,但用户对应账套密码修改失败");
}
}
MainImpl.RecordPassword(newPassword,"修改密码,"+ ERPInfo.Instance.UserName + "修改"+ lueUserName.Text);
MessageUtil.Show("密码修改成功!");
if (Model.AfterClose.Equals("1"))
{
DialogResult = DialogResult.OK;
Close();
}
else
{
txtNewPass.Text = string.Empty;
txtPassConfirm.Text = string.Empty;
}
}
catch (Exception ex)
{
string message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show("修改密码出错!" + message);
}
finally
{
if (!IsDisposed)
{
UpdateConfirmButtonState();
}
}
}
/// <summary>
/// 取消按钮点击事件。
/// </summary>
private void btnCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
}
}
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{91470E21-B8FB-4A16-967A-912F9E4807E1}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Lskj.PubUpdatePwd</RootNamespace>
<AssemblyName>Lskj.PubUpdatePwd</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Debug\Lib\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Printing.v15.2.Core, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraPrinting.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DllBaseClass.cs" />
<Compile Include="FrmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmMain.Designer.cs">
<DependentUpon>FrmMain.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
<Project>{7eafccc2-a18f-49e9-85c6-a984966cfd01}</Project>
<Name>Lskj.Business</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
<Project>{447CDC40-659F-4CCA-9ED6-8E818B4CF8BF}</Project>
<Name>Lskj.Control</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
<Project>{2A1BE6AC-1077-491B-A754-C5822FE8121E}</Project>
<Name>Lskj.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
<Name>Lskj.Model</Name>
</ProjectReference>
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
<Project>{A51BF642-6543-4DE3-8948-83F558B72BD4}</Project>
<Name>Lskj.Util</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Lskj.PubTabDll
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmMain());
}
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.PubUpdatePwd")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Lskj.PubUpdatePwd")]
[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")]
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubUpdatePwd.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.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() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.PubUpdatePwd.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;
}
}
}
}
@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubUpdatePwd.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.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;
}
}
}
}
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
@@ -0,0 +1,3 @@
DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.CheckEdit, DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a