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
@@ -0,0 +1,66 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubGroupAdd", "Lskj.PubGroupAdd\Lskj.PubGroupAdd.csproj", "{94651DFD-5227-43E4-B735-7FB8D643AE00}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubAdd3", "..\Lskj.PubAdd3\Lskj.PubAdd3\Lskj.PubAdd3.csproj", "{BD50FF9A-A360-4F32-9E51-A280B34072CC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.Common", "..\Lskj.Common\Lskj.Common.csproj", "{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.MyControl", "..\Lskj.MyControl\Lskj.MyControl.csproj", "{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Debug|Any CPU.ActiveCfg = Debug|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Debug|Mixed Platforms.Build.0 = Debug|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Debug|x86.ActiveCfg = Debug|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Debug|x86.Build.0 = Debug|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Release|Any CPU.ActiveCfg = Release|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Release|Mixed Platforms.ActiveCfg = Release|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Release|Mixed Platforms.Build.0 = Release|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Release|x86.ActiveCfg = Release|x86
{94651DFD-5227-43E4-B735-7FB8D643AE00}.Release|x86.Build.0 = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|Any CPU.ActiveCfg = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|Mixed Platforms.Build.0 = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|x86.ActiveCfg = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Debug|x86.Build.0 = Debug|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|Any CPU.ActiveCfg = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|Mixed Platforms.ActiveCfg = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|Mixed Platforms.Build.0 = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|x86.ActiveCfg = Release|x86
{BD50FF9A-A360-4F32-9E51-A280B34072CC}.Release|x86.Build.0 = Release|x86
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Debug|x86.ActiveCfg = Debug|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Any CPU.Build.0 = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}.Release|x86.ActiveCfg = Release|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Debug|x86.ActiveCfg = Debug|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Release|Any CPU.Build.0 = Release|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;
using CommonLib.utils;
using System.Windows.Forms;
namespace Lskj.PubGroupAdd
{
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm
{
public DllBaseClass()
{
}
public DllBaseClass(string[] obj)
{
try
{
FrmMain add = new FrmMain();
this.SubForm = add;
add.FormText = obj[0].ToString();
add.OperatorId = obj[1].ToString();
add.OperatorName = obj[2].ToString();
add.Privilege = obj[3].ToString();
add.DLLCoid = obj[4].ToString();
add.ModuleDllCoid = obj[5].ToString();
add.IsView = obj[6].ToString();
add.ObjectId = obj[7].ToString();
if (obj.Length > 8) {
add.key = obj[8];
}
if (obj.Length > 9) {
add.keyValue = obj[9];
}
}
catch (Exception ex)
{
PubUtil.WriteLog("Lskj.ProductSpecies.dll----参数错误" + ex.Message);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
@@ -0,0 +1,298 @@
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;
using CommonLib.data;
using CommonLib;
using Lskj.Common;
using CommonLib.utils;
using Lskj.MyControl;
using System.Data.SqlClient;
namespace Lskj.PubGroupAdd
{
public partial class FrmMain : FormBase
{
#region
public string ModuleDllCoid { get; set; }
public string IsView { get; set; }
public string ObjectId { get; set; }
public string key { get; set; }
public string keyValue { get; set; }
#endregion
#region
/// <summary>
/// 加载表单key
/// </summary>
private string Formkey = string.Empty;
/// <summary>
/// 查询分类Sql
/// </summary>
private string fieldsql = string.Empty;
/// <summary>
/// 操作表名
/// </summary>
private string TableName = string.Empty;
/// <summary>
/// 上传附件目录Id
/// </summary>
private int dirid = 0;
/// <summary>
/// 主键名称
/// </summary>
private string FiledNameKey = string.Empty;
/// <summary>
/// 操作字段
/// </summary>
private DataTable dtFileds;
#endregion
#region
public FrmMain()
{
InitializeComponent();
}
#endregion
#region
protected override void OnLoad(EventArgs e)
{
DLLCoid = !string.IsNullOrEmpty(ModuleDllCoid) ? ModuleDllCoid : DLLCoid;
DataTable dtSystemdlltab = SqlHelper.ExecuteDataSet(string.Format("select * from p_systemdlltab where DllCoid='{0}'", DLLCoid)).Tables[0];
if (dtSystemdlltab.Rows.Count > 0)
Formkey = dtSystemdlltab.Rows[0]["formKey"] + "";
if (string.IsNullOrEmpty(Formkey))
{
PubUtil.WriteLog("模块配置不正确", "PubAdd2.dll");
return;
}
this.Text = FormText;
//dtFileds = SqlHelper.ExecuteDataSet(string.Format("select * from v_systemcontrolLocation where formKey='{0}' order by orderid asc", Formkey)).Tables[0];
SqlParameter[] p =
{
new SqlParameter("@formkey",SqlDbType.VarChar,200),
new SqlParameter("@modid",SqlDbType.VarChar,50),
new SqlParameter("@operatorname",SqlDbType.VarChar,50)
};
p[0].Value = Formkey;
p[1].Value = DLLCoid;
p[2].Value = OperatorName;
dtFileds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_getControlLocation", "temp", p).Tables[0];
int parentHeight = 0;
int parentWidth = 0;
DataTable dtParentControl = SqlHelper.ExecuteDataSet(string.Format("select * from p_systemControlParent where formKey='{0}'", Formkey)).Tables[0];
if (dtParentControl.Rows.Count > 0)
{
parentHeight = Convert.ToInt32(dtParentControl.Rows[0]["parentHeight"]);
parentWidth = Convert.ToInt32(dtParentControl.Rows[0]["parentWidth"]);
this.Height = parentHeight + 50;
this.Width = parentWidth;
}
DataRow row_systemwordbook_key = SqlHelper.ExecuteDataSet("select top 1 * from P_systemwordbooktab where tab='" + DLLCoid + "' order by orderid").Tables[0].Rows[0];
DataRow row_systemDll = SqlHelper.ExecuteDataSet("select * from P_systemDlltab where DLLCoid='" + DLLCoid + "'").Tables[0].Rows[0];
DataTable dtTag3 = SqlHelper.ExecuteDataSet("select * from P_systemwordbooktab where tab='" + DLLCoid + "' and fieldsqlTag=3").Tables[0];
if (dtTag3 != null && dtTag3.Rows.Count > 0)
fieldsql = dtTag3.Rows[0]["fieldsql"] + "";
TableName = row_systemDll["SQLDT1"] + "";
dirid = Convert.ToInt32(row_systemDll["dirid"]);
FiledNameKey = row_systemwordbook_key["fieldname"] + "";
CreateControlModel ccm = new CreateControlModel(plMain, "", OperatorId, OperatorName, dtFileds);
MyCreateControl createCtr = new MyCreateControl();
createCtr.ParentCtr = plMain;
createCtr.LoginId = OperatorId;
createCtr.LoginName = OperatorName;
//objectId 不为空标示修改
if (!string.IsNullOrEmpty(ObjectId))
{
DataTable dt = SqlHelper.ExecuteDataSet("select * from " + TableName + " where " + FiledNameKey + "='" + ObjectId + "'").Tables[0];
if (dt != null && dt.Rows.Count > 0)
{
createCtr.CreateControlByModel(ccm);
//控件设置参数
MyControlText myctext = new MyControlText();
myctext.dr = dt.Rows[0];
myctext.dt = dtFileds;
myctext.ctr = this;
createCtr.SetControlText(myctext);
}
btnAdd.Enabled = false;
btnClear.Enabled = false;
}
else
{
btnUpdate.Enabled = false;
btnFile.Enabled = false;
createCtr.CreateControlByModel(ccm);
}
if (IsView == "1")
{
btnAdd.Enabled = false;
btnClear.Enabled = false;
btnUpdate.Enabled = false;
}
if (!string.IsNullOrEmpty(key)) {
//关联字段赋值
Control[] ctrKeys = plMain.Controls.Find("txt_" + key, true);
if (ctrKeys != null && ctrKeys.Length > 0) {
ctrKeys[0].Text = keyValue;
}
}
this.CenterToScreen();
}
#endregion
#region
private void btnFile_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(ObjectId))
{
MessageBox.Show("物料编码不存在", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
string[] str = {
FormText,
OperatorId,
OperatorName,
Privilege,
DLLCoid,
ObjectId,
IsView,
dirid.ToString(),
""
};
IForm form = PubUtil.LoadDllForm2("Lskj.PhotoView.dll", str);
form.SubForm.ShowDialog();
}
#endregion
#region
private void btnSave_Click(object sender, EventArgs e)
{
try
{
MyControlText cct = new MyControlText();
cct.dt = dtFileds;
cct.TableName = TableName;
cct.KeyFieldName = FiledNameKey;
cct.modid = DLLCoid;
cct.ctr = this;
cct.IsAdd = true;
MyCreateControl mm = new MyCreateControl();
mm.LoginId = OperatorId;
mm.LoginName = OperatorName;
int result = mm.SaveOrUpdateForm(cct, true);
if (result > 0)
{
SaveBmp();
MessageBox.Show("添加数据成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
Control[] c = this.Controls.Find("txt_" + FiledNameKey, true);
if (c.Length > 0)
{
ObjectId = c[0].Text;
}
btnAdd.Enabled = false;
btnUpdate.Enabled = true;
btnFile.Enabled = true;
}
}
catch (Exception ex)
{
if (ex.Message.IndexOf("ix", StringComparison.OrdinalIgnoreCase) != -1)
{
MessageBox.Show("系统检测到录入信息重复,请检查", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
else
{
MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
}
}
#endregion
#region
private void btnUpdate_Click(object sender, EventArgs e)
{
MyControlText cct = new MyControlText();
cct.dt = dtFileds;
cct.TableName = TableName;
cct.KeyFieldName = FiledNameKey;
cct.modid = DLLCoid;
cct.where = FiledNameKey + "='" + ObjectId + "'";
cct.ctr = this;
MyCreateControl mm = new MyCreateControl();
mm.LoginName = OperatorName;
mm.LoginId = OperatorId;
int result = mm.SaveOrUpdateForm(cct, false);
if (result > 0)
{
SaveBmp();
MessageBox.Show("修改数据成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.DialogResult = DialogResult.OK;
}
}
#endregion
#region
public void SaveBmp()
{
string fieldName = string.Empty;
foreach (DataRow row in dtFileds.Rows)
{
int fieldTypeId = Convert.ToInt32(row["fieldTypeId"]);
if (fieldTypeId == 99)
{
fieldName = row["fieldName"] + "";
Control[] ctrs = this.Controls.Find("txt_" + fieldName, true);
if (ctrs.Length > 0)
{
LabelPicEx pic = ctrs[0] as LabelPicEx;
if (pic.GetPictureBox.Image != null)
{
SqlHelper.ExecuteSqlInsertImg("update " + TableName + " set " + fieldName + "=@fs where " + FiledNameKey + "='" + ObjectId + "'", PubClass.ConvertImage(pic.GetPictureBox.Image));
}
}
}
}
}
#endregion
#region 退
private void btnClose_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
}
#endregion
#region
private void btnClear_Click(object sender, EventArgs e)
{
MyControlText cct = new MyControlText();
cct.dt = dtFileds;
cct.ctr = this;
MyCreateControl mm = new MyCreateControl();
mm.LoginId = OperatorId;
mm.LoginName = OperatorName;
mm.ClearForm(cct);
btnAdd.Enabled = true;
btnUpdate.Enabled = false;
btnFile.Enabled = false;
}
#endregion
}
}
@@ -0,0 +1,163 @@
namespace Lskj.PubGroupAdd
{
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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
this.plBotton = new System.Windows.Forms.Panel();
this.btnClear = new DevExpress.XtraEditors.SimpleButton();
this.btnFile = new DevExpress.XtraEditors.SimpleButton();
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.btnUpdate = new DevExpress.XtraEditors.SimpleButton();
this.plMain = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.plBotton.SuspendLayout();
this.SuspendLayout();
//
// plBotton
//
this.plBotton.Controls.Add(this.btnClear);
this.plBotton.Controls.Add(this.btnFile);
this.plBotton.Controls.Add(this.btnAdd);
this.plBotton.Controls.Add(this.btnClose);
this.plBotton.Controls.Add(this.btnUpdate);
this.plBotton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.plBotton.Location = new System.Drawing.Point(0, 464);
this.plBotton.Name = "plBotton";
this.plBotton.Size = new System.Drawing.Size(676, 40);
this.plBotton.TabIndex = 2;
//
// btnClear
//
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClear.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnClear.Appearance.Options.UseFont = true;
this.btnClear.Location = new System.Drawing.Point(380, 8);
this.btnClear.Name = "btnClear";
this.btnClear.Size = new System.Drawing.Size(67, 24);
this.btnClear.TabIndex = 4;
this.btnClear.Text = "清除页面";
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
//
// btnFile
//
this.btnFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnFile.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnFile.Appearance.Options.UseFont = true;
this.btnFile.Location = new System.Drawing.Point(307, 8);
this.btnFile.Name = "btnFile";
this.btnFile.Size = new System.Drawing.Size(67, 24);
this.btnFile.TabIndex = 3;
this.btnFile.Text = "附件管理";
this.btnFile.Click += new System.EventHandler(this.btnFile_Click);
//
// btnAdd
//
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnAdd.Appearance.Options.UseFont = true;
this.btnAdd.Location = new System.Drawing.Point(453, 8);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(67, 24);
this.btnAdd.TabIndex = 2;
this.btnAdd.Text = "增加保存";
this.btnAdd.Click += new System.EventHandler(this.btnSave_Click);
//
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnClose.Appearance.Options.UseFont = true;
this.btnClose.Location = new System.Drawing.Point(599, 8);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(67, 24);
this.btnClose.TabIndex = 1;
this.btnClose.Text = "退出";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnUpdate
//
this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnUpdate.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnUpdate.Appearance.Options.UseFont = true;
this.btnUpdate.Location = new System.Drawing.Point(526, 8);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(67, 24);
this.btnUpdate.TabIndex = 0;
this.btnUpdate.Text = "修改保存";
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
//
// plMain
//
this.plMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.plMain.Location = new System.Drawing.Point(0, 0);
this.plMain.Name = "plMain";
this.plMain.Size = new System.Drawing.Size(676, 463);
this.plMain.TabIndex = 3;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Gray;
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 463);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(676, 1);
this.panel1.TabIndex = 4;
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(676, 504);
this.Controls.Add(this.plMain);
this.Controls.Add(this.panel1);
this.Controls.Add(this.plBotton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "FrmMain";
this.Text = "添加模块";
this.plBotton.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel plBotton;
private DevExpress.XtraEditors.SimpleButton btnClear;
private DevExpress.XtraEditors.SimpleButton btnFile;
private DevExpress.XtraEditors.SimpleButton btnAdd;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraEditors.SimpleButton btnUpdate;
private System.Windows.Forms.Panel plMain;
private System.Windows.Forms.Panel panel1;
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{94651DFD-5227-43E4-B735-7FB8D643AE00}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.PubGroupAdd</RootNamespace>
<AssemblyName>Lskj.PubGroupAdd</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\publish\lib\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</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.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Printing.v13.1.Core, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.Utils.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraEditors.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraLayout.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraPrinting.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="Dxper.LocalizationCHS.Win.v13.1.5, Version=13.1.5.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\引用DLL\Dxper.LocalizationCHS.Win.v13.1.5.dll</HintPath>
</Reference>
<Reference Include="Lskj.DevFx, Version=2.1.156.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\引用DLL\Lskj.DevFx.dll</HintPath>
</Reference>
<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" />
<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\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>
<Content Include="a.ico" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\CommonLib\CommonLib.csproj">
<Project>{3E8E6529-5D8A-4F17-8C41-27CD7380178D}</Project>
<Name>CommonLib</Name>
</ProjectReference>
<ProjectReference Include="..\..\ControlLib\ControlLib.csproj">
<Project>{73C024E7-D9DC-44C3-BABC-2AA1544ECCF9}</Project>
<Name>ControlLib</Name>
</ProjectReference>
<ProjectReference Include="..\..\Lskj.Common\Lskj.Common.csproj">
<Project>{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}</Project>
<Name>Lskj.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\Lskj.MyControl\Lskj.MyControl.csproj">
<Project>{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}</Project>
<Name>Lskj.MyControl</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Lskj.Attachment")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Lskj.Attachment")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("8d043aea-aeb3-4672-8686-0b0fd6549cee")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [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.18408
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubGroupAdd.Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 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() {
}
/// <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.PubGroupAdd.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.18408
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubGroupAdd.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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;
}
}
}
}
@@ -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.Patch.InMemoryPatch, DevExpress.Patch.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7fc7bfca2443de66
DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.Registration.LicenseHelper, DevExpress.Registration, Version=12.1.5.0, Culture=neutral, PublicKeyToken=940cfcde86f32efd
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB