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,102 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubPageDetail", "Lskj.PubPageDetail\Lskj.PubPageDetail.csproj", "{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.Common", "..\..\..\..\..\V30\插件库\Lskj.PubModule\Lskj.Common\Lskj.Common.csproj", "{DE7EFD7F-2DFE-4D50-A578-452A2DBFD088}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.MyControl", "..\..\..\..\..\V30\插件库\Lskj.MyControl\Lskj.MyControl.csproj", "{F6502012-9A7C-44AE-AAC6-DE2AD02F5C11}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubModule", "..\Lskj.PubModule\Lskj.PubModule\Lskj.PubModule.csproj", "{EC847F73-0E0A-4828-9291-7195EF4C94DC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.Report", "..\Lskj.Report\Lskj.Report\Lskj.Report.csproj", "{516750E8-FFF8-499F-B167-C2B781E70F35}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubModuleTD", "Lskj.PubModuleTD\Lskj.PubModuleTD.csproj", "{DB68F0F2-2867-4669-B585-9C7834B10D9F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lskj.PubAdd3", "..\Lskj.PubAdd3\Lskj.PubAdd3\Lskj.PubAdd3.csproj", "{BD50FF9A-A360-4F32-9E51-A280B34072CC}"
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
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Debug|Any CPU.ActiveCfg = Debug|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Debug|Mixed Platforms.Build.0 = Debug|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Debug|x86.ActiveCfg = Debug|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Debug|x86.Build.0 = Debug|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Release|Any CPU.ActiveCfg = Release|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Release|Mixed Platforms.ActiveCfg = Release|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Release|Mixed Platforms.Build.0 = Release|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.Release|x86.ActiveCfg = Release|x86
{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}.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
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Debug|Any CPU.ActiveCfg = Debug|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Debug|Mixed Platforms.Build.0 = Debug|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Debug|x86.ActiveCfg = Debug|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Debug|x86.Build.0 = Debug|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Release|Any CPU.ActiveCfg = Release|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Release|Mixed Platforms.ActiveCfg = Release|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Release|Mixed Platforms.Build.0 = Release|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Release|x86.ActiveCfg = Release|x86
{EC847F73-0E0A-4828-9291-7195EF4C94DC}.Release|x86.Build.0 = Release|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Debug|Any CPU.ActiveCfg = Debug|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Debug|Mixed Platforms.Build.0 = Debug|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Debug|x86.ActiveCfg = Debug|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Debug|x86.Build.0 = Debug|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Release|Any CPU.ActiveCfg = Release|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Release|Mixed Platforms.ActiveCfg = Release|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Release|Mixed Platforms.Build.0 = Release|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Release|x86.ActiveCfg = Release|x86
{516750E8-FFF8-499F-B167-C2B781E70F35}.Release|x86.Build.0 = Release|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Debug|Any CPU.ActiveCfg = Debug|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Debug|Mixed Platforms.Build.0 = Debug|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Debug|x86.ActiveCfg = Debug|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Debug|x86.Build.0 = Debug|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Release|Any CPU.ActiveCfg = Release|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Release|Mixed Platforms.ActiveCfg = Release|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Release|Mixed Platforms.Build.0 = Release|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.Release|x86.ActiveCfg = Release|x86
{DB68F0F2-2867-4669-B585-9C7834B10D9F}.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
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;
using CommonLib.utils;
using System.Windows.Forms;
using Lskj.MyControl;
namespace Lskj.PubSearchInfo {
/// <summary>
/// c#库被调用统一接口类
/// </summary>
public sealed class DllBaseClass : IForm {
public DllBaseClass() {
}
//以数组传入参数,容易扩展
public DllBaseClass(string[] obj) {
try {
FrmMain _FrmMain = new FrmMain();
SubForm = _FrmMain;
_FrmMain.FormText = obj[0];
_FrmMain.OperatorId = obj[1];
_FrmMain.OperatorName = obj[2];
GridControlEx.OperatorId = _FrmMain.OperatorId;
GridControlEx.OperatorName = _FrmMain.OperatorName;
_FrmMain.Privilege = obj[3];
//_FrmMain.DLLCoid = obj[4];
_FrmMain.DLLCoid = obj[5];
_FrmMain.objectId = obj[6];
_FrmMain.FormText = obj[7];
_FrmMain.dllSql = obj[8];
if (!string.IsNullOrEmpty(obj[9]))
_FrmMain.isView = obj[9];
else
_FrmMain.isView = "0";
}
catch (Exception ex) {
MessageBox.Show(ex.Message);
}
}
/// <summary>
/// 窗口
/// </summary>
public Form SubForm { get; set; }
}
}
@@ -0,0 +1,77 @@
namespace Lskj.PubSearchInfo {
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.tabMain = new DevExpress.XtraTab.XtraTabControl();
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
((System.ComponentModel.ISupportInitialize)(this.tabMain)).BeginInit();
this.tabMain.SuspendLayout();
this.SuspendLayout();
//
// tabMain
//
this.tabMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabMain.Location = new System.Drawing.Point(0, 0);
this.tabMain.Name = "tabMain";
this.tabMain.SelectedTabPage = this.xtraTabPage1;
this.tabMain.Size = new System.Drawing.Size(836, 546);
this.tabMain.TabIndex = 0;
this.tabMain.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage1});
this.tabMain.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.tabMain_SelectedPageChanged);
//
// xtraTabPage1
//
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(830, 517);
this.xtraTabPage1.Text = "员工档案信息";
//
// FrmMain
//
this.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
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(836, 546);
this.Controls.Add(this.tabMain);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.LookAndFeel.SkinName = "Office 2010 Blue";
this.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Office2003;
this.Name = "FrmMain";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.tabMain)).EndInit();
this.tabMain.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraTab.XtraTabControl tabMain;
private DevExpress.XtraTab.XtraTabPage xtraTabPage1;
}
}
@@ -0,0 +1,132 @@
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;
using CommonLib.data;
using DevExpress.XtraTab;
using Lskj.PubPageDetail;
using System.Data.SqlClient;
namespace Lskj.PubSearchInfo {
public partial class FrmMain : FormBase {
#region
/// <summary>
/// 对象ID
/// </summary>
public string objectId { get; set; }
/// <summary>
/// dll 传入Sql 语句
/// </summary>
public string dllSql { get; set; }
public string isView { get; set; }
#endregion
#region
/// <summary>
/// 构造函数
/// </summary>
public FrmMain() {
//DevExpress.Skins.SkinManager.EnableFormSkins();//设置皮肤
//DevExpress.XtraGrid.Localization.GridResLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraGridCHS();
//DevExpress.XtraEditors.Controls.Localizer.Active = new Dxper.LocalizationCHS.Win.XtraEditorsCHS();
//DevExpress.XtraLayout.Localization.LayoutLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraLayoutCHS();
//DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new Dxper.LocalizationCHS.Win.XtraPrintingCHS();
InitializeComponent();
}
/// <summary>
/// 初始化数据
/// </summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e) {
this.Text = FormText;
CreateTabPage();//创建选项卡
}
/// <summary>
/// 创建选项卡
/// </summary>
public void CreateTabPage() {
//清空选项卡
tabMain.TabPages.Clear();
//查询选项卡
String sql = "select * from p_systemDlltabDetail where tab='" + DLLCoid + "' and isVisible=0 order by orderId";
DataTable dtTab = SqlHelper.ExecuteDataSet(sql).Tables[0];
foreach (DataRow row in dtTab.Rows) {
SqlParameter[] p =
{
new SqlParameter("@modid",SqlDbType.VarChar,20),
new SqlParameter("@operatorname",SqlDbType.VarChar,20)
};
p[0].Value = row["UnionModule"];
p[1].Value = OperatorName;
DataTable dtCol = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "[p_getBaseModuleField]", "temp", p).Tables[0];
XtraTabPage tabPage = new XtraTabPage();
tabPage.Text = row["detailName"] + "";
Panel_TabPage p_tabPage = new Panel_TabPage();
tabPage.Controls.Add(p_tabPage);
p_tabPage.Dock = DockStyle.Fill;
p_tabPage.BringToFront();
p_tabPage.nullableFields = dtCol.Rows.OfType<DataRow>().Where(x => x["tagid"] + "" == "1").ToArray();
p_tabPage.gridList.SetColumns2(dtCol);
p_tabPage.Name = "tab";
String idFileName = (row["unionValue"] + "").Replace("{", "").Replace("}", "");
DataTable dtMain = SqlHelper.ExecuteDataSet("select * from p_systemdlltab where dllcoid='" + row["UnionModule"] + "'").Tables[0];
if (dtMain != null && dtMain.Rows.Count > 0) {
String sqlData = dtMain.Rows[0]["SQL"] + "";
if (sqlData.IndexOf("where", StringComparison.OrdinalIgnoreCase) != -1) {
sqlData = sqlData + " and " + idFileName + "='" + objectId + "'";
}
else {
sqlData = sqlData + " where " + idFileName + "='" + objectId + "'";
}
p_tabPage.gridList.Sql = sqlData;
}
p_tabPage.DLLCoid = row["UnionModule"] + "";
//p_tabPage.FormText = FormText;
p_tabPage.FormText = row["detailName"] + "";
p_tabPage.OperatorId = OperatorId;
p_tabPage.OperatorName = OperatorName;
p_tabPage.Privilege = Privilege;
p_tabPage.objectId = idFileName; //EmployeeName
p_tabPage.objectValue = objectId;
p_tabPage.dllSql = dllSql.TrimStart('#');
p_tabPage.isView = isView;
p_tabPage.autoRefresh = row["autoRefresh"] + "";
p_tabPage.dtColumns = dtCol;
tabMain.TabPages.Add(tabPage);
}
}
#endregion
#region
/// <summary>
/// 选项卡点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tabMain_SelectedPageChanged(object sender, TabPageChangedEventArgs e) {
XtraTabPage page = e.Page;
if (page != null) {
Control[] ctrs = page.Controls.Find("tab", true);
if (ctrs != null && ctrs.Length > 0) {
Panel_TabPage tab = ctrs[0] as Panel_TabPage;
if (tab.autoRefresh == "1") {
tab.InitData(tab.gridList.Sql);
}
}
}
}
#endregion
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,146 @@
<?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>{46FC1EB9-D7B4-482B-8477-5CAD6C64266A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.PubPageDetail</RootNamespace>
<AssemblyName>Lskj.PubPageDetail</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>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</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="DevExpress.XtraScheduler.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
<Reference Include="DevExpress.XtraScheduler.v13.1.Core, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<Reference Include="DevExpress.XtraTreeList.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\publish\DevExpress.XtraTreeList.v13.1.dll</HintPath>
</Reference>
<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="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="Panel_TabPage.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Panel_TabPage.Designer.cs">
<DependentUpon>Panel_TabPage.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FrmMain.resx">
<DependentUpon>FrmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Panel_TabPage.resx">
<DependentUpon>Panel_TabPage.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.Excel\Lskj.Excel.csproj">
<Project>{BD7394C7-C5FA-4D94-9BA1-AD8AB8270370}</Project>
<Name>Lskj.Excel</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,234 @@
namespace Lskj.PubPageDetail {
partial class Panel_TabPage {
/// <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
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent() {
this.pl_down = new System.Windows.Forms.Panel();
this.btnImport = new DevExpress.XtraEditors.SimpleButton();
this.btnExport = new DevExpress.XtraEditors.SimpleButton();
this.btnPrint = new DevExpress.XtraEditors.SimpleButton();
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnDelete = new DevExpress.XtraEditors.SimpleButton();
this.btnUpdate = new DevExpress.XtraEditors.SimpleButton();
this.btnSave = new DevExpress.XtraEditors.SimpleButton();
this.gridList = new Lskj.MyControl.GridControlEx();
this.panel2 = new System.Windows.Forms.Panel();
this.btnCondSearch = new DevExpress.XtraEditors.SimpleButton();
this.txtKey = new System.Windows.Forms.TextBox();
this.cbField = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.pl_down.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// pl_down
//
this.pl_down.Controls.Add(this.btnImport);
this.pl_down.Controls.Add(this.btnExport);
this.pl_down.Controls.Add(this.btnPrint);
this.pl_down.Controls.Add(this.btnAdd);
this.pl_down.Controls.Add(this.btnDelete);
this.pl_down.Controls.Add(this.btnUpdate);
this.pl_down.Controls.Add(this.btnSave);
this.pl_down.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pl_down.Location = new System.Drawing.Point(0, 461);
this.pl_down.Name = "pl_down";
this.pl_down.Size = new System.Drawing.Size(704, 41);
this.pl_down.TabIndex = 1;
//
// btnImport
//
this.btnImport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnImport.Location = new System.Drawing.Point(497, 7);
this.btnImport.Name = "btnImport";
this.btnImport.Size = new System.Drawing.Size(63, 26);
this.btnImport.TabIndex = 7;
this.btnImport.Text = "导入(&I)";
this.btnImport.Click += new System.EventHandler(this.btnImport_Click);
//
// btnExport
//
this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnExport.Location = new System.Drawing.Point(566, 7);
this.btnExport.Name = "btnExport";
this.btnExport.Size = new System.Drawing.Size(63, 26);
this.btnExport.TabIndex = 6;
this.btnExport.Text = "导出(&E)";
this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
//
// btnPrint
//
this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnPrint.Location = new System.Drawing.Point(635, 7);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(63, 26);
this.btnPrint.TabIndex = 5;
this.btnPrint.Text = "打印(&P)";
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
//
// btnAdd
//
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnAdd.Location = new System.Drawing.Point(221, 6);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(63, 26);
this.btnAdd.TabIndex = 3;
this.btnAdd.Text = "增加(&A)";
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// btnDelete
//
this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnDelete.Location = new System.Drawing.Point(290, 6);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(63, 26);
this.btnDelete.TabIndex = 2;
this.btnDelete.Text = "删除(&D)";
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// btnUpdate
//
this.btnUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnUpdate.Location = new System.Drawing.Point(359, 7);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(63, 26);
this.btnUpdate.TabIndex = 1;
this.btnUpdate.Text = "修改(&U)";
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
//
// btnSave
//
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnSave.Location = new System.Drawing.Point(428, 7);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(63, 26);
this.btnSave.TabIndex = 0;
this.btnSave.Text = "保存(&S)";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// gridList
//
this.gridList.AdapterObj = null;
this.gridList.bomCaption = null;
this.gridList.bomSql = null;
this.gridList.ConstSql = null;
this.gridList.detailEnableCond = null;
this.gridList.detailEnableMsg = null;
this.gridList.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridList.loadBom = null;
this.gridList.Location = new System.Drawing.Point(0, 38);
this.gridList.Name = "gridList";
this.gridList.pnlMain = null;
this.gridList.RowColorCondtion = null;
this.gridList.Size = new System.Drawing.Size(704, 423);
this.gridList.SourceType = 0;
this.gridList.Sql = null;
this.gridList.sqlC = null;
this.gridList.SumFieldsTable = null;
this.gridList.TabIndex = 2;
this.gridList.UnAllowEditChangeColor = true;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(207)))), ((int)(((byte)(221)))), ((int)(((byte)(238)))));
this.panel2.Controls.Add(this.btnCondSearch);
this.panel2.Controls.Add(this.txtKey);
this.panel2.Controls.Add(this.cbField);
this.panel2.Controls.Add(this.label1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(704, 38);
this.panel2.TabIndex = 3;
//
// btnCondSearch
//
this.btnCondSearch.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnCondSearch.Appearance.Options.UseFont = true;
this.btnCondSearch.Location = new System.Drawing.Point(278, 7);
this.btnCondSearch.Name = "btnCondSearch";
this.btnCondSearch.Size = new System.Drawing.Size(63, 26);
this.btnCondSearch.TabIndex = 37;
this.btnCondSearch.Text = "查询";
this.btnCondSearch.Click += new System.EventHandler(this.btnCondSearch_Click);
//
// txtKey
//
this.txtKey.Location = new System.Drawing.Point(138, 9);
this.txtKey.Name = "txtKey";
this.txtKey.Size = new System.Drawing.Size(134, 21);
this.txtKey.TabIndex = 36;
//
// cbField
//
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbField.FormattingEnabled = true;
this.cbField.Location = new System.Drawing.Point(40, 9);
this.cbField.Name = "cbField";
this.cbField.Size = new System.Drawing.Size(92, 20);
this.cbField.TabIndex = 35;
this.cbField.Tag = "";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 34;
this.label1.Text = "查询";
//
// Panel_TabPage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.gridList);
this.Controls.Add(this.panel2);
this.Controls.Add(this.pl_down);
this.Name = "Panel_TabPage";
this.Size = new System.Drawing.Size(704, 502);
this.pl_down.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel pl_down;
private DevExpress.XtraEditors.SimpleButton btnAdd;
private DevExpress.XtraEditors.SimpleButton btnDelete;
private DevExpress.XtraEditors.SimpleButton btnUpdate;
private DevExpress.XtraEditors.SimpleButton btnSave;
private DevExpress.XtraEditors.SimpleButton btnImport;
private DevExpress.XtraEditors.SimpleButton btnExport;
private DevExpress.XtraEditors.SimpleButton btnPrint;
public MyControl.GridControlEx gridList;
private System.Windows.Forms.Panel panel2;
private DevExpress.XtraEditors.SimpleButton btnCondSearch;
private System.Windows.Forms.TextBox txtKey;
private System.Windows.Forms.ComboBox cbField;
private System.Windows.Forms.Label label1;
}
}
@@ -0,0 +1,859 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lskj.Common;
using CommonLib;
using CommonLib.utils;
using DevExpress.XtraGrid.Columns;
using ExcelPlus;
using System.Data.SqlClient;
using Lskj.MyControl;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraEditors;
namespace Lskj.PubPageDetail {
public partial class Panel_TabPage : UserControl {
//模块ID
public string DLLCoid { get; set; }
//管理员Id
public string OperatorId { get; set; }
//管理员名称
public string OperatorName { get; set; }
//权限
public string Privilege { get; set; }
//窗体标题
public string FormText { get; set; }
//对象Id
public string objectId { get; set; }
//对象值
public string objectValue { get; set; }
public String dllSql { get; set; }
public String autoRefresh { get; set; }
public string isView { get; set; }
//删除条件
private string deleteCond;
//主表数据
private DataTable dtSystemDlltab;
//主键数据
private DataTable idFiledKey;
private string idFieldName;
/// <summary>
///
/// </summary>
private string modifyCond;
private string exportCond;
private string addCond;
/// <summary>
///
/// </summary>
private bool needModified;
/// <summary>
///
/// </summary>
private DataTable dtData;
/// <summary>
/// 条件颜色
/// </summary>
private DataTable dtSysColorList;
/// <summary>
/// DbDataAdapter
/// </summary>
private SqlDataAdapter da { get; set; }
/// <summary>
/// 操作Dataset
/// </summary>
private DataSet ds { get; set; }
private DataTable dtSum = new DataTable();//统计列
private bool inSummary = false;
private bool gridEdited = false;
/// <summary>
/// 必须录入字段
/// </summary>
public DataRow[] nullableFields;
public DataTable dtColumns;
public Panel_TabPage() {
InitializeComponent();
}
/// <summary>
/// 初始化数据
/// </summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e) {
ds = new DataSet();
dtSystemDlltab = CommonLib.SqlHelper.ExecuteDataSet("select * from P_systemDlltab where DLLCoid='" + DLLCoid + "'").Tables[0];
if (dtSystemDlltab != null && dtSystemDlltab.Rows.Count > 0) {
deleteCond = dtSystemDlltab.Rows[0]["deleteCond"] + "";
modifyCond = dtSystemDlltab.Rows[0]["modifyCond"].ToString();
addCond = dtSystemDlltab.Rows[0]["addCond"] + "";
exportCond = "";
if ( dtSystemDlltab.Columns.Contains("exportCond") )
exportCond = dtSystemDlltab.Rows[0]["exportCond"] + "";
needModified = (dtSystemDlltab.Rows[0]["modifyEnable"].ToString() == "1")&&(isView=="0");
gridEdited = (string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["selfEdit"] + "") || dtSystemDlltab.Rows[0]["selfEdit"] + "" == "0" || dtSystemDlltab.Rows[0]["selfEdit"] + "" == "False") ? false : true;
gridList.gridView.OptionsBehavior.Editable = gridEdited;
bool addEnable = (dtSystemDlltab.Rows[0]["addEnable"] + "" == "1")&&(isView=="0");
bool deleteEnable = (dtSystemDlltab.Rows[0]["deleteEnable"] + "" == "1") && (isView == "0");
bool importEnable = (dtSystemDlltab.Rows[0]["importEnable"] + "" == "1")&&(isView=="0");
bool exportEnable = dtSystemDlltab.Rows[0]["exportEnable"] + "" == "1";
bool searchEnable = dtSystemDlltab.Rows[0]["searchEnable"] + "" == "1";
if (dtSystemDlltab.Columns.Contains("addEmptyRow"))
{
if (dtSystemDlltab.Rows[0]["addEmptyRow"].ToString() + "" == "1")
gridList.gridView.OptionsView.NewItemRowPosition = NewItemRowPosition.Bottom;
}
btnAdd.Enabled = addEnable;
btnDelete.Enabled = deleteEnable;
btnImport.Enabled = importEnable;
btnExport.Enabled = exportEnable;
btnCondSearch.Enabled = searchEnable;
btnUpdate.Enabled = needModified;
btnSave.Enabled = needModified;
}
idFiledKey = SqlHelper.ExecuteDataSet("select top 1 * from P_systemwordbooktab where tab='" + DLLCoid + "' order by orderid").Tables[0];
idFieldName = idFiledKey.Rows[0]["fieldname"]+"";
GridMenu gm = new GridMenu(FormText, OperatorId, OperatorName, Privilege, DLLCoid, "", gridList.gridControl);
gm.DirId = dtSystemDlltab.Rows[0]["dirid"] + "";
gm.filedKey = idFiledKey.Rows[0]["fieldname"].ToString();
gm.BindGridMenuWQ(DLLCoid);
gm.OnGridMenuClickRefreshData += new EventHandler(gm_OnGridMenuClickRefreshData);
gridList.gridControl.DoubleClick += new EventHandler(gridControl_DoubleClick);
gridList.gridView.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(gridView_RowCellClick);
gridList.gridView.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(gridBillInfo_CellValueChanged);
gridList.gridView.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(gridView_SelectionChanged);
gridList.gridView.InitNewRow += new InitNewRowEventHandler(gridView1_InitNewRow);
dtSysColorList = SqlHelper.ExecuteDataSet("select * from P_systemwordbookcolor where tab='" + DLLCoid + "' and useflag=0 order by orderid").Tables[0];
gridList.gridView.RowStyle += new RowStyleEventHandler(gridView_RowStyle);
DataTable cbSearchFiled = SqlHelper.ExecuteDataSet("select * from P_systemwordbooktab where tab='" + DLLCoid + "' and ifSearch =0 and isnull(username1,'')<>''").Tables[0];
//加载筛选框
cbField.DataSource = cbSearchFiled;
cbField.DisplayMember = "username1";
cbField.ValueMember = "fieldname";
if (autoRefresh == "1") {
InitData(gridList.Sql);
}
//查询统计列
string isSumSql = "select * from p_systemwordbooktab where tab='" + DLLCoid + "' and isnull(vislble,0)=0 and isnull(calcExpr,'')<>''order by calcOrder asc";
dtSum = SqlHelper.ExecuteDataSet(isSumSql).Tables[0];
}
private void gridView1_InitNewRow(object sender, InitNewRowEventArgs e)
{
DataTable dt = null;
if (!string.IsNullOrEmpty(dllSql) && dllSql.Contains("select"))
{
dt = SqlHelper.ExecuteDataSet(dllSql).Tables[0];
}
//默认值
GridView view = gridList.gridView;
foreach (GridColumn item in view.Columns)
{
if (item.Tag != null)
{
MyTagModel cmt = item.Tag as MyTagModel;
if (cmt != null)
{
string defaultValue = PubClass.GetDefaultValue(cmt.DefaultValue.ToString(), OperatorId, OperatorName);
if (item.FieldName.ToUpper().Equals(objectId.ToUpper()))
{
view.SetRowCellValue(view.FocusedRowHandle, item, objectValue);
}
else if (dt != null && dt.Rows.Count > 0)
{
foreach (DataColumn dc in dt.Columns)
{
if (dc.ColumnName.ToUpper() == item.FieldName.ToUpper())
{
view.SetRowCellValue(view.FocusedRowHandle, item, dt.Rows[0][dc.ColumnName]);
}
}
}
else
{
if (!string.IsNullOrEmpty(defaultValue))
{
view.SetRowCellValue(view.FocusedRowHandle, item, defaultValue);
}
}
}
}
}
}
private void gridView_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
{
setButtonStatus();
}
/// <summary>
/// 执行右键菜单后刷新表格数据
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void gm_OnGridMenuClickRefreshData(object sender, EventArgs e)
{
InitData(gridList.Sql);
}
/// <summary>
/// 点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void gridView_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) {
DataRow row = gridList.gridView.GetDataRow(e.RowHandle);
dtData = gridList.gridControl.DataSource as DataTable;
//DataColumn dc = dtData.Columns["ban"];
//if (dc != null) {
// String ban = row["ban"] + "";
// if (ban.Equals("1")) {
// btnDelete.Enabled = false;
// btnUpdate.Enabled = false;
// btnSave.Enabled = false;
// }
// else {
// btnDelete.Enabled = true;
// btnUpdate.Enabled = true;
// btnSave.Enabled = true;
// }
//}
}
private void setButtonStatus()
{
bool isAdd = true;
bool isDelete = true;
bool isUpdate = true;
bool isExport = true;
bool isPrint = true;
// 添加权限
if (!string.IsNullOrEmpty(addCond))
{
addCond = addCond.Replace("{billdocument_id}", objectValue);
string tempCond = PubClass.SqlToCode(PubClass.ReqSqlParam(addCond, OperatorId, OperatorName));
isAdd = Convert.ToBoolean(Evaluator.Eval(tempCond)) && (isView == "0");
}
if (!string.IsNullOrEmpty(exportCond))
{
exportCond = exportCond.Replace("{billdocument_id}", objectValue);
string tempCond = PubClass.SqlToCode(PubClass.ReqSqlParam(exportCond, OperatorId, OperatorName));
isExport = Convert.ToBoolean(Evaluator.Eval(tempCond));// && exportEnable;
}
//if (!string.IsNullOrEmpty(printCond))
//{
// string tempCond = PubClass.SqlToCode(PubClass.ReqSqlParam(printCond, OperatorId, OperatorName));
// isPrint = Convert.ToBoolean(Evaluator.Eval(tempCond));
//}
int[] rows = gridList.gridView.GetSelectedRows();
if (rows != null && rows.Length > 0)
{
DataRow row = gridList.gridView.GetDataRow(rows[0]);
// 添加权限
//if (!string.IsNullOrEmpty(addCond))
//{
// string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(addCond, OperatorId, OperatorName));
// isAdd = Convert.ToBoolean(Evaluator.Eval(tempCond)) && (Privilege == "0");
//}
// 删除权限
if (!string.IsNullOrEmpty(deleteCond))
{
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(deleteCond, OperatorId, OperatorName));
isDelete = Convert.ToBoolean(Evaluator.Eval(tempCond)) && (isView == "0");
}
// 修改、保存权限
if (!string.IsNullOrEmpty(modifyCond))
{
string tempCond = PubClass.ReqSqlWhere(row, PubClass.ReqSqlParam(modifyCond, OperatorId, OperatorName));
isUpdate = Convert.ToBoolean(Evaluator.Eval(tempCond)) && needModified;
gridList.gridView.OptionsBehavior.Editable = isUpdate;
}
//btnAdd.Enabled = isAdd;
//btnImport.Enabled = isAdd;
btnDelete.Enabled = isDelete;
btnUpdate.Enabled = btnSave.Enabled = isUpdate;
btnExport.Enabled = isExport;
btnPrint.Enabled = isPrint;
}
btnAdd.Enabled = isAdd;
btnExport.Enabled = isExport;
btnPrint.Enabled = isPrint;
btnImport.Enabled = isAdd;
}
#region
private void gridView_RowStyle(object sender, RowStyleEventArgs e) {
if (e.RowHandle >= 0) {
DataRow row = gridList.gridView.GetDataRow(e.RowHandle);
string cond = string.Empty;
string color = string.Empty;
string forecolor = string.Empty;
foreach (DataRow dr in dtSysColorList.Rows) {
//string[] strSplit = dr["condition"].ToString().Split('=');
//if (strSplit.Length >= 2)
//{
// string filed = strSplit[0].Replace("{", "").Replace("}", "");
// string value = strSplit[1];
// if (value == row[filed] + "")
// {
// System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(dr["backcolor"].ToString());
// System.Drawing.Color foreColor = System.Drawing.ColorTranslator.FromHtml(dr["forcecolor"].ToString());
// e.Appearance.BackColor = color;
// e.Appearance.ForeColor = foreColor;
// }
//}
List<string> condition = PubClass.GetParamValue(dr["condition"].ToString());
cond = dr["condition"].ToString();
foreach (string item in condition) {
string filedName = item.Replace("{", "").Replace("}", "");
cond = cond.Replace(item, row[filedName].ToString());
}
cond = PubClass.SqlToCode(cond);
color = dr["backcolor"] + "";
forecolor = dr["forcecolor"].ToString() + "";
string obj = Evaluator.Eval(cond) + "";
if (obj.IndexOf("true", StringComparison.OrdinalIgnoreCase) != -1) {
if (!string.IsNullOrEmpty(color)) {
System.Drawing.Color color1 = System.Drawing.ColorTranslator.FromHtml(color);
e.Appearance.BackColor = color1;
}
if (!string.IsNullOrEmpty(forecolor)) {
System.Drawing.Color foreColor = System.Drawing.ColorTranslator.FromHtml(forecolor);
e.Appearance.ForeColor = foreColor;
}
FontStyle fst = new FontStyle();
if (dr["ifBold"].ToString() == "1") {
fst = fst | FontStyle.Bold;
}
if (dr["ifItalic"].ToString() == "1") {
fst = fst | FontStyle.Italic;
}
if (dr["ifStrickOut"].ToString() == "1") {
fst = fst | FontStyle.Strikeout;
}
if (dr["ifUnderLine"].ToString() == "1") {
fst = fst | FontStyle.Underline;
}
e.Appearance.Font = new Font(e.Appearance.Font, fst);
}
}
}
}
#endregion
private void gridControl_DoubleClick(object sender, EventArgs e) {
if (!string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["AddDllName"] + ""))
UpdateModel();
}
private void btnPrint_Click(object sender, EventArgs e) {
PubClass.Preview(gridList.gridControl);
}
private void btnDelete_Click(object sender, EventArgs e) {
string noDeleteIds = string.Empty;
int[] rowid = gridList.gridView.GetSelectedRows();
if (rowid.Length == 0) {
MessageBox.Show("没有选择要删除数据", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
}
else {
if (MessageBox.Show("您确定要删除选中记录?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
string ids = string.Empty;
foreach (int rid in rowid) {
DataRow dr = gridList.gridView.GetDataRow(rid);
//判断删除条件是否符合
Boolean canDelete = string.IsNullOrEmpty(deleteCond);
string tempCond = deleteCond;
if (!canDelete) {
tempCond = PubClass.ReqSqlParam(tempCond, OperatorId, OperatorName);
tempCond = PubClass.ReqSqlWhere(dr, tempCond);
canDelete = Convert.ToBoolean(Evaluator.Eval(tempCond));
}
if (canDelete)
{
//删除检查
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
pMsg.Direction = ParameterDirection.Output;
SqlParameter returnValue = new SqlParameter("@return", SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
SqlParameter[] param =
{
new SqlParameter("@modid",SqlDbType.VarChar,20),
new SqlParameter("@keyvalue",SqlDbType.VarChar,40),
pMsg,
returnValue
};
param[0].Value = DLLCoid;
param[1].Value = dr[idFiledKey.Rows[0]["fieldname"] + ""];
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_VerifyCanDelete", "baseSave", param);
string msg = pMsg.Value.ToString();
int rVaule = Convert.ToInt32(returnValue.Value.ToString());
if (rVaule == 1)
{
ids += "'" + dr[idFiledKey.Rows[0]["fieldname"] + ""] + "',";
}
else
{
noDeleteIds += dr[idFiledKey.Rows[0]["fieldname"] + ""] + " >> " + msg + "\n";
}
}
else
{
noDeleteIds += dr[idFiledKey.Rows[0]["fieldname"] + ""] + " >>不符删除合条件\n";
}
}
if (ids != string.Empty) {
string sql = "delete from " + dtSystemDlltab.Rows[0]["SQLDT1"] + " where " + idFiledKey.Rows[0]["fieldname"] + " in(" + ids.Trim(',') + ")";
SqlHelper.ExecuteNonQuery(sql);
//InitData(gridList.Sql);
gridList.gridView.DeleteSelectedRows();
(gridList.gridControl.DataSource as DataTable).AcceptChanges();
string strHint = "记录删除成功";
if (!string.IsNullOrEmpty(noDeleteIds))
{
strHint = strHint + ",但是发现如下记录不符合删除条件\n" + noDeleteIds;
MessageBox.Show(strHint, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else {
string strHint = "没有符合删除条件的记录";
if (!string.IsNullOrEmpty(noDeleteIds))
strHint = strHint + ",发现如下记录不符合删除条件\n" + noDeleteIds;
MessageBox.Show(strHint, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
}
}
private void btnAdd_Click(object sender, EventArgs e) {
if (!string.IsNullOrEmpty(dtSystemDlltab.Rows[0]["AddDllName"] + "")) {
string[] args = {
FormText,
OperatorId,
OperatorName,
Privilege,
DLLCoid,
"",
"",
"",
objectId,
objectValue,
dllSql
};
IForm form = PubUtil.LoadDllForm(dtSystemDlltab.Rows[0]["AddDllName"] + "", args);
DialogResult result = form.SubForm.ShowDialog();
InitData(gridList.Sql);
}
else {
AddRow(gridList.gridView);
}
}
/// <summary>
/// 添加行
/// </summary>
/// <param name="view"></param>
protected void AddRow(DevExpress.XtraGrid.Views.Grid.GridView view) {
int prevDataRowIndex = view.GetFocusedDataSourceRowIndex();
view.AddNewRow();
DataTable dt = null;
if (!string.IsNullOrEmpty(dllSql) && dllSql.Contains("select")) {
dt = SqlHelper.ExecuteDataSet(dllSql).Tables[0];
}
//默认值
foreach (GridColumn item in view.Columns) {
if (item.Tag != null) {
MyTagModel cmt = item.Tag as MyTagModel;
if (cmt != null) {
string defaultValue = PubClass.GetDefaultValue(cmt.DefaultValue.ToString(), OperatorId, OperatorName);
if (item.FieldName.ToUpper().Equals(objectId.ToUpper())) {
view.SetRowCellValue(view.FocusedRowHandle, item, objectValue);
}
else if (dt != null && dt.Rows.Count > 0) {
foreach (DataColumn dc in dt.Columns) {
if (dc.ColumnName.ToUpper() == item.FieldName.ToUpper()) {
view.SetRowCellValue(view.FocusedRowHandle, item, dt.Rows[0][dc.ColumnName]);
}
}
}
else {
if (!string.IsNullOrEmpty(defaultValue))
{
view.SetRowCellValue(view.FocusedRowHandle, item, defaultValue);
}
}
}
}
}
}
/// <summary>
/// 导出Excel
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnExport_Click(object sender, EventArgs e) {
PubClass.SaveXls(gridList.gridControl);
}
/// <summary>
/// 导入Excel
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnImport_Click(object sender, EventArgs e) {
string columnPrefix = PubClass.GetColumnPrefix(dtSystemDlltab.Rows[0]["SQLDT1"].ToString());
frmImport frm = new frmImport(gridList, dtSystemDlltab.Rows[0]["SQLDT1"].ToString(), objectId, objectValue,OperatorId,OperatorName, columnPrefix);
DialogResult result = frm.ShowDialog();
InitData(gridList.Sql);
}
public bool UpdateModel() {
if (dtSystemDlltab.Rows[0]["AddDllName"] + "" == "")
{
return false;
}
int[] rows = gridList.gridView.GetSelectedRows();
if (rows.Length > 0) {
DataRow dr = gridList.gridView.GetDataRow(rows[0]);
//判断修改条件是否符合
Boolean canModify = string.IsNullOrEmpty(modifyCond);
if (needModified == true) {
string tempCond = modifyCond;
if (!canModify) {
tempCond = PubClass.ReqSqlParam(tempCond, OperatorId, OperatorName);
tempCond = PubClass.ReqSqlWhere(dr, tempCond);
canModify = Convert.ToBoolean(Evaluator.Eval(tempCond));
}
}
else {
canModify = false;
}
string productId = dr[idFiledKey.Rows[0]["fieldname"] + ""].ToString();
string[] args = {
FormText,
OperatorId,
OperatorName,
Privilege,
DLLCoid,
"",
Convert.ToInt32( !canModify).ToString(),
productId,
"",
"",
"",
dllSql
};
IForm form = PubUtil.LoadDllForm(dtSystemDlltab.Rows[0]["AddDllName"] + "", args);
form.SubForm.ShowDialog();
}
InitData(gridList.Sql);
return true;
}
private void btnUpdate_Click(object sender, EventArgs e) {
UpdateModel();
}
/// <summary>
/// 表格必须录入验证
/// </summary>
/// <returns></returns>
private bool gridRequired()
{
DataTable dtBillItem = gridList.gridControl.DataSource as DataTable;
DataColumnCollection dtBillRow = dtBillItem.Columns;
GridView gridView = gridList.gridView;
GridColumnCollection gridColumns = gridView.Columns;
foreach (DataRow drGrid in dtBillItem.Rows)
{
foreach (DataRow dr in nullableFields)
{
string fieldName = dr["fieldName"] + "";
string fieldText = dr["username1"] + "";
if (string.IsNullOrEmpty(drGrid[fieldName] + ""))
{
XtraMessageBox.Show(string.Format("[{0}] 不能为空", fieldText));
gridView.Focus();
gridView.FocusedRowHandle = dtBillItem.Rows.IndexOf(drGrid);
gridView.FocusedColumn = gridColumns[fieldName];
gridView.SelectCell(gridView.FocusedRowHandle, gridColumns[fieldName]);
gridView.ShowEditorByMouse();
return false;
}
}
}
return true;
}
private void btnSave_Click(object sender, EventArgs e)
{
try
{
if (gridRequired())
{
if (da != null)
{
DataTable dtTable = gridList.gridControl.DataSource as DataTable;
da.Update(dtTable);
XtraMessageBox.Show("修改成功");
}
else
{
gridSave();
}
//XtraMessageBox.Show("修改完成", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
catch (InvalidOperationException ioe)
{
//// 多表保存失败
gridSave();
//return;
}
catch (DBConcurrencyException dce)
{
// 并发异常
XtraMessageBox.Show("数据已更新,请刷新后重试.");
return;
}
catch (Exception ex)
{
if (ex.Message.IndexOf("ix", StringComparison.OrdinalIgnoreCase) != -1)
{
XtraMessageBox.Show("系统检测到录入信息重复,请检查", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
else
{
XtraMessageBox.Show(ex.Message);
return;
}
}
}
/// <summary>
/// 多表表格修改
/// </summary>
private void gridSave()
{
try
{
string tabName = dtSystemDlltab.Rows[0]["SQLDT1"] + "";
if (string.IsNullOrEmpty(tabName))
{
XtraMessageBox.Show("检测到未设置表名");
return;
}
List<string> mList = new List<string>();
StringBuilder mBuilder = new StringBuilder();
string rMsg =string.Empty;
DataColumnCollection columns = SqlHelper.ExecuteDataTable(string.Format("select * from {0} where 1<>1", tabName)).Columns;
DataTable dtTable = gridList.gridControl.DataSource as DataTable;
List<DataRow> modifiedRows = dtTable.Rows.Cast<DataRow>().Where(x => x.RowState == DataRowState.Modified || x.RowState == DataRowState.Added).ToList();
foreach (DataRow row in modifiedRows)
{
string updateSql = "update {0} set {1} where {2}='{3}';";
string insertSql = "insert into {0}({1}) values({2});";
string updateFields = string.Empty;
string insertFields = string.Empty;
string insertValues = string.Empty;
foreach (DataColumn col in columns)
{
// 区分大小写匹配列
DataRow hasContainRow = dtColumns.Rows.Cast<DataRow>().FirstOrDefault(x => x["fieldname"] + "" == col.ColumnName);
if (hasContainRow != null && col.ColumnName != idFieldName)
{
if (row.RowState == DataRowState.Modified)
{
// 禁编列不更新
//if (hasContainRow["edit"] + "" == "0")
//{
updateFields += string.Format("{0}='{1}',", col.ColumnName, row[col.ColumnName]);
//}
}
else if (row.RowState == DataRowState.Added)
{
insertFields += col.ColumnName + ",";
insertValues += "'" + row[col.ColumnName] + "',";
}
}
}
updateFields = updateFields.TrimEnd(',');
insertFields = insertFields.TrimEnd(',');
insertValues = insertValues.TrimEnd(',');
if (!string.IsNullOrEmpty(updateFields))
{
updateSql = string.Format(updateSql, tabName, updateFields, idFieldName, row[idFieldName]);
mList.Add(updateSql);
}
if (!string.IsNullOrEmpty(insertFields))
{
insertSql = string.Format(insertSql, tabName, insertFields, insertValues);
mList.Add(insertSql);
}
}
// 由于数据sql长度限制,每次只保存10条数据
int resultCount = 0;
for (int i = 0; i < mList.Count; i++)
{
if (i == mList.Count - 1 || (i != 0 && i % 10 == 0))
{
if (i == mList.Count - 1)
mBuilder.Append(mList[i]);
SqlParameter pMsg = new SqlParameter("@msg", SqlDbType.VarChar, 2000);
pMsg.Direction = ParameterDirection.Output;
SqlParameter returnValue = new SqlParameter("@return", SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
SqlParameter[] param =
{
new SqlParameter("@baseSql",SqlDbType.VarChar,8000),
new SqlParameter("@saveType",SqlDbType.Int),
new SqlParameter("@modid",SqlDbType.VarChar,20),
new SqlParameter("@tablename",SqlDbType.VarChar,50),
new SqlParameter("@keyfield",SqlDbType.VarChar,50),
new SqlParameter("@keyvalue",SqlDbType.VarChar,50),
new SqlParameter("@Operatorid",SqlDbType.Int),
new SqlParameter("@operatorname",SqlDbType.VarChar,50),
pMsg,
returnValue
};
param[0].Value = mBuilder.ToString();
param[1].Value = 1;// --8新增保存,9修改保存,10 删除条码
param[2].Value = DLLCoid;
param[3].Value = tabName;
param[4].Value = idFieldName;
param[5].Value = "";
param[6].Value = OperatorId;
param[7].Value = OperatorName;
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "P_BaseSave", "baseSave", param);
rMsg = pMsg.Value.ToString();
resultCount += Convert.ToInt32(returnValue.Value.ToString());
mBuilder.Clear();
}
mBuilder.Append(mList[i]);
}
if (resultCount > 0)
{
//if (resultCount == mList.Count)
//{
(gridList.gridControl.DataSource as DataTable).AcceptChanges();
XtraMessageBox.Show("操作成功");
//}
}
else
{
XtraMessageBox.Show(rMsg);
}
}
catch (Exception ex)
{
XtraMessageBox.Show(ex.Message);
}
}
/// <summary>
/// 初始化数据
/// </summary>
/// <param name="sql"></param>
public void InitData(string sql) {
int oldRowHandle = (gridList.gridView).FocusedRowHandle;
string field = cbField.SelectedValue + "";
string strWhere = " (dbo.P_getpy(" + field + ") like '%" + txtKey.Text + "%' or " + field + " like '%" + txtKey.Text + "%')";
if (sql.IndexOf("where", StringComparison.OrdinalIgnoreCase) != -1) {
sql = sql + " and " + strWhere;
}
else {
sql = sql + " where " + strWhere;
}
sql = PubClass.ReqSqlParam(sql, OperatorId, OperatorName);
//这个绑定数据源
da = SqlHelper.ExecuteAdapter(CommandType.Text, sql);
if (ds != null && ds.Tables.Count > 0)
ds.Clear();
da.Fill(ds);
SqlCommandBuilder cb = new SqlCommandBuilder(da);
gridList.gridControl.DataSource = ds.Tables[0];
(gridList.gridView).ClearSelection();
(gridList.gridView).FocusedRowHandle = oldRowHandle;
(gridList.gridView).SelectRow(oldRowHandle);
setButtonStatus();
}
private void btnCondSearch_Click(object sender, EventArgs e) {
InitData(gridList.Sql);
}
#region Grid计算
private void gridBillInfo_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
{
if (inSummary)
return;
inSummary = true;
try
{
DataRow gvRow = gridList.gridView.GetDataRow(e.RowHandle);
foreach (DataRow row in dtSum.Rows)
{
string calcExpr = row["calcExpr"].ToString();
if (e.Column.FieldName != row["fieldName"].ToString())
{
List<string> listParam = PubClass.GetParamValue(calcExpr);
foreach (string str in listParam)
{
string filed = str.Replace("{", "").Replace("}", "");
string filedValue = gvRow[filed].ToString();
if (string.IsNullOrEmpty(filedValue))
filedValue = "0";
calcExpr = calcExpr.Replace(str, filedValue + "");
}
calcExpr = calcExpr.Replace("=", "==").Replace("<>", "!=").Replace("and", "&&").Replace("or", "|");
string result = Evaluator.Eval(calcExpr).ToString();
gridList.gridView.SetRowCellValue(e.RowHandle, gridList.gridView.Columns[row["fieldName"].ToString()], Math.Round(double.Parse(result), 2, MidpointRounding.AwayFromZero));
}
}
}
catch
{
}
inSummary = false;
}
#endregion
}
}
@@ -0,0 +1,144 @@
<?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>
<metadata name="btnImport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="btnExport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>129, 17</value>
</metadata>
<metadata name="btnPrint.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>239, 17</value>
</metadata>
<metadata name="btnAdd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>338, 17</value>
</metadata>
<metadata name="btnDelete.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>434, 17</value>
</metadata>
<metadata name="btnUpdate.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>544, 17</value>
</metadata>
<metadata name="btnSave.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>659, 17</value>
</metadata>
<metadata name="btnCondSearch.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>758, 17</value>
</metadata>
</root>
@@ -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.13")]
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.18408
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace Lskj.PubPageDetail.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.PubPageDetail.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.PubPageDetail.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>
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB