SVN r1200
SVN-Revision: r1200
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.UserSkins;
|
||||
using DevExpress.Skins;
|
||||
using DevExpress.LookAndFeel;
|
||||
using Lskj.Util;
|
||||
using Lskj.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Business;
|
||||
using System.Collections;
|
||||
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
|
||||
DynamicModuleDetailModel moduleM
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.productionMain1 = new Lskj.PubModuleDetail5.ProductionMain();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// productionMain1
|
||||
//
|
||||
this.productionMain1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.productionMain1.Locatio
|
||||
@@ -0,0 +1,65 @@
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Data;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using DevExpress.XtraTab;
|
||||
using DevExpress.Utils;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using DevExpress.XtraGrid.Views.Base;
|
||||
using System.Collections;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 表格明细集合
|
||||
/// </summary>
|
||||
public List<GridDetailModel> GridDetailModelObjs;
|
||||
/// <summary>
|
||||
/// 基础模型
|
||||
/// </summary>
|
||||
public ModuleModel MoudleLeftObj;
|
||||
public DynamicModuleDetailModel Model;
|
||||
|
||||
/// <summary>
|
||||
///左上方查询条件控件
|
||||
/// </summary>
|
||||
public MyControl SearchLeftObj;
|
||||
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
this.Model.Privilege = this.Model.Privilege.Equals("3") ? "1" : Model.ModuleId > 0 ? BaseImpl.GetUserPurviewsByMenuId(Model.ModuleId + "") + "" : BaseImpl.GetUserPurviewsByMenuCode(Model.ModuleCode) + "";
|
||||
if (!this.Model.HasPrivilege())
|
||||
{
|
||||
MessageUtil.Show(ResourceKeys.UnPurview);
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
productionMain1.OnLoad(Model);
|
||||
|
||||
}
|
||||
}
|
||||
catch (E
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,167 @@
|
||||
<?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>{BF4BCE45-D6E5-4BC9-B8FC-75F2108BE702}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.PubModuleDetail5</RootNamespace>
|
||||
<AssemblyName>Lskj.PubModuleDetail5</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\Lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.PubModuleDetail5.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.BonusSkins.v15.2" />
|
||||
<Reference Include="DevExpress.Data.v15.2" />
|
||||
<Reference Include="DevExpress.Utils.v15.2" />
|
||||
<Reference Include="DevExpress.Sparkline.v15.2.Core" />
|
||||
<Reference Include="DevExpress.XtraBars.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2" />
|
||||
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\dev\Components\Bin\Framework\DevExpress.XtraGrid.v15.2.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net" />
|
||||
<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="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="ProductionMain.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ProductionMain.Designer.cs">
|
||||
<DependentUpon>ProductionMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="TabIntoAddControl.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TabIntoAddControl.Designer.cs">
|
||||
<DependentUpon>TabIntoAddControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TabIntoControl.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TabIntoControl.Designer.cs">
|
||||
<DependentUpon>TabIntoControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ProductionMain.resx">
|
||||
<DependentUpon>ProductionMain.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>
|
||||
<EmbeddedResource Include="TabIntoAddControl.resx">
|
||||
<DependentUpon>TabIntoAddControl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TabIntoControl.resx">
|
||||
<DependentUpon>TabIntoControl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
|
||||
<Project>{7eafccc2-a18f-49e9-85c6-a984966cfd01}</Project>
|
||||
<Name>Lskj.Business</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
|
||||
<Project>{447cdc40-659f-4cca-9ed6-8e818b4cf8bf}</Project>
|
||||
<Name>Lskj.Control</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Core\Lskj.Core.csproj">
|
||||
<Project>{2a1be6ac-1077-491b-a754-c5822fe8121e}</Project>
|
||||
<Name>Lskj.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Data\Lskj.Data.csproj">
|
||||
<Project>{308b9b18-9be2-495c-9c64-eed81d567813}</Project>
|
||||
<Name>Lskj.Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Help\Lskj.Help.csproj">
|
||||
<Project>{00899d25-c9cf-4d50-b6d2-e6f0da2d3d8c}</Project>
|
||||
<Name>Lskj.Help</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Interface.Api\Lskj.Interface.Api.csproj">
|
||||
<Project>{24e9a18a-baf8-4052-809e-582b4fc6a8c4}</Project>
|
||||
<Name>Lskj.Interface.Api</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
|
||||
<Project>{52bc40e0-c0c6-4f78-996b-cae028d209ca}</Project>
|
||||
<Name>Lskj.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
|
||||
<Project>{a51bf642-6543-4de3-8948-83f558b72bd4}</Project>
|
||||
<Name>Lskj.Util</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- 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>
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
partial class ProductionMain
|
||||
{
|
||||
/// <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.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.Tab_additional = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.mg_control = new Lskj.Control.ModuleGridEx();
|
||||
this.splitBottomControl = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.gridLeftButtom = new Lskj.Control.GridControlEx();
|
||||
this.pl_bottom = new DevExpress.XtraEditors.PanelControl();
|
||||
this.tcButtom = new Lskj.Control.TabControlEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
|
||||
this.splitContainerControl1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.Tab_additional)).BeginInit();
|
||||
this.Tab_additional.SuspendLayout();
|
||||
this.xtraTabPage1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitBottomControl)).BeginInit();
|
||||
this.splitBottomControl.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_bottom)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitContainerControl1
|
||||
//
|
||||
this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainerControl1.Horizontal = false;
|
||||
this.splitContainerControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainerControl1.Name = "splitContainerControl1";
|
||||
this.splitContainerControl1.Panel1.Controls.Add(this.Tab_additional);
|
||||
this.splitContainerControl1.Panel1.Text = "Panel1";
|
||||
this.splitContainerControl1.Panel2.Controls.Add(this.splitBottomControl);
|
||||
this.splitContainerControl1.Panel2.Text = "Panel2";
|
||||
this.splitContainerControl1.Size = new System.Drawing.Size(1249, 679);
|
||||
this.splitContainerControl1.SplitterPosition = 404;
|
||||
this.splitContainerControl1.TabIndex = 0;
|
||||
this.splitContainerControl1.Text = "splitContainerControl1";
|
||||
this.splitContainerControl1.SplitterPositionChanged += new System.EventHandler(this.splitContainer_SplitterPositionChanged);
|
||||
//
|
||||
// Tab_additional
|
||||
//
|
||||
this.Tab_additional.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.Tab_additional.Location = new System.Drawing.Point(0, 0);
|
||||
this.Tab_additional.Name = "Tab_additional";
|
||||
this.Tab_additional.SelectedTabPage = this.xtraTabPage1;
|
||||
this.Tab_additional.Size = new System.Drawing.Size(1249, 404);
|
||||
this.Tab_additional.TabIndex = 2;
|
||||
this.Tab_additional.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1});
|
||||
//
|
||||
// xtraTabPage1
|
||||
//
|
||||
this.xtraTabPage1.Controls.Add(this.mg_control);
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(1243, 375);
|
||||
this.xtraTabPage1.Text = "默认页签";
|
||||
//
|
||||
// mg_control
|
||||
//
|
||||
this.mg_control.BackColor = System.Drawing.Color.Transparent;
|
||||
this.mg_control.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.mg_control.Location = new System.Drawing.Point(0, 0);
|
||||
this.mg_control.Name = "mg_control";
|
||||
this.mg_control.OperShortMode = true;
|
||||
this.mg_control.Size = new System.Drawing.Size(1243, 375);
|
||||
this.mg_control.TabIndex = 1;
|
||||
this.mg_control.VisibleMrpSearchPanel = false;
|
||||
this.mg_control.VisibleOperPanel = true;
|
||||
this.mg_control.VisibleSearchPanel = true;
|
||||
//
|
||||
// splitBottomControl
|
||||
//
|
||||
this.splitBottomControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitBottomControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitBottomControl.Name = "splitBottomControl";
|
||||
this.splitBottomControl.Panel1.Controls.Add(this.gridLeftButtom);
|
||||
this.splitBottomControl.Panel1.Text = "Panel1";
|
||||
this.splitBottomControl.Panel2.Controls.Add(this.tcButtom);
|
||||
this.splitBottomControl.Panel2.Controls.Add(this.pl_bottom);
|
||||
this.splitBottomControl.Panel2.Text = "Panel2";
|
||||
this.splitBottomControl.Size = new System.Drawing.Size(1249, 270);
|
||||
this.splitBottomControl.SplitterPosition = 437;
|
||||
this.splitBottomControl.TabIndex = 0;
|
||||
this.splitBottomControl.Text = "splitContainerControl2";
|
||||
this.splitBottomControl.SplitterPositionChanged += new System.EventHandler(this.splitContainerBotton_SplitterPositionChanged);
|
||||
//
|
||||
// gridLeftButtom
|
||||
//
|
||||
this.gridLeftButtom.AdapterObj = null;
|
||||
this.gridLeftButtom.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gridLeftButtom.Location = new System.Drawing.Point(0, 0);
|
||||
this.gridLeftButtom.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.gridLeftButtom.Name = "gridLeftButtom";
|
||||
this.gridLeftButtom.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gridLeftButtom.Size = new System.Drawing.Size(437, 270);
|
||||
this.gridLeftButtom.SysModel = null;
|
||||
this.gridLeftButtom.TabIndex = 0;
|
||||
//
|
||||
// pl_bottom
|
||||
//
|
||||
this.pl_bottom.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_bottom.Appearance.Options.UseBackColor = true;
|
||||
this.pl_bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pl_bottom.Location = new System.Drawing.Point(0, 234);
|
||||
this.pl_bottom.Name = "pl_bottom";
|
||||
this.pl_bottom.Size = new System.Drawing.Size(807, 36);
|
||||
this.pl_bottom.TabIndex = 2;
|
||||
this.pl_bottom.Visible = false;
|
||||
//
|
||||
// tcButtom
|
||||
//
|
||||
this.tcButtom.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tcButtom.Location = new System.Drawing.Point(0, 0);
|
||||
this.tcButtom.Name = "tcButtom";
|
||||
this.tcButtom.Size = new System.Drawing.Size(807, 234);
|
||||
this.tcButtom.TabIndex = 3;
|
||||
//
|
||||
// ProductionMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.splitContainerControl1);
|
||||
this.Name = "ProductionMain";
|
||||
this.Size = new System.Drawing.Size(1249, 679);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
|
||||
this.splitContainerControl1.ResumeLayout(false);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Lskj.PubModuleDetail5")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[
|
||||
@@ -0,0 +1,39 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubModuleDetail5.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::Sys
|
||||
@@ -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,2 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-gene
|
||||
@@ -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,41 @@
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
partial class TabIntoAddControl
|
||||
{
|
||||
/// <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.splitMainControl = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitMainControl)).BeginInit();
|
||||
this.splitMainControl.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitMainControl
|
||||
//
|
||||
this.splitMainControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitMainControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitMainControl.Name = "splitMainControl";
|
||||
this.splitMainControl.
|
||||
@@ -0,0 +1,435 @@
|
||||
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.Control.Model;
|
||||
using Lskj.Model;
|
||||
using DevExpress.XtraReports.Design;
|
||||
using Lskj.Business.Impl;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using Lskj.Util;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using Lskj.Business;
|
||||
using Lskj.Data;
|
||||
using DevExpress.XtraEditors;
|
||||
using Lskj.Control;
|
||||
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
public partial class TabIntoAddControl : UserControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 分割条
|
||||
/// </summary>
|
||||
public SplitContainerControl splitContainerControl { get { return this.splitMainControl; } }
|
||||
|
||||
/// <summary>
|
||||
/// 初始化完成
|
||||
/// </summary>
|
||||
private bool _isInitFinish;
|
||||
|
||||
/// <summary>
|
||||
/// 是否加载明细刷新
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [_ un refresh]; otherwise, <c>false</c>.</value>
|
||||
private bool _UnRefresh
|
||||
{
|
||||
get
|
||||
{
|
||||
return Model is DynamicModuleDetailModel || Model is DynamicModuleModel || Model is DynamicProductionModel;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 表一
|
||||
/// </summary>
|
||||
public ModuleGridEx gridEx = new ModuleGridEx();
|
||||
/// <summary>
|
||||
/// 表二
|
||||
/// </summary>
|
||||
public ModuleGridEx gridEx2 = new ModuleGridEx();
|
||||
|
||||
/// <summary>
|
||||
/// 表一(动态表)
|
||||
/// </summary>
|
||||
public GridControlEx gridControlEx = new GridControlEx();
|
||||
/// <summary>
|
||||
/// 表二(动态表)
|
||||
/// </summary>
|
||||
public GridControlEx gridControlEx2 = new GridControlEx();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 拖拽模式
|
||||
/// </summary>
|
||||
public bool IsDragDetail;
|
||||
/// <summary>
|
||||
/// 拖拽目标主键字段
|
||||
/// </summary>
|
||||
public string DrgaParentPrimaryKey;
|
||||
/// <summary>
|
||||
/// 主键字段
|
||||
/// </summary>
|
||||
public string PrimaryKey;
|
||||
/// <summary>
|
||||
/// 添加数据sql赋值
|
||||
/// </summary>
|
||||
public string ControlSql;
|
||||
/// <summary>
|
||||
/// tab标签
|
||||
/// </summary>
|
||||
private List<GridDetailModel> _gridDetail;
|
||||
/// <summary>
|
||||
/// tab标签内页签
|
||||
/// </summary>
|
||||
private List<GridDetailModel> _gridDetail2;
|
||||
/// <summary>
|
||||
/// The system model
|
||||
/// </summary>
|
||||
public DynamicModel Model;
|
||||
/// <summary>
|
||||
/// 父表格
|
||||
/// </summary>
|
||||
public GridControlEx ParentGridEx;
|
||||
/// <summary>
|
||||
/// 父容器
|
||||
/// </summary>
|
||||
public MyControl ParentControlEx;
|
||||
|
||||
/// <summary>
|
||||
/// 右键菜单执行后调用
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public event EventHandler OnRightCallback;
|
||||
/// <summary>
|
||||
///第一个模块的模块编号(Model拿不到,所以使用第一个模块的模块编号设置ini文件分割条编号,)
|
||||
/// </summary>
|
||||
public string ModuleNumber;
|
||||
|
||||
|
||||
public TabIntoAddControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.splitContainerControl.Horizontal = false;//上下结构
|
||||
this.splitMainControl.SplitterPositionChanged += new System.EventHandler(this.splitContainer_SplitterPositionChanged);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:绑定选项卡</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void InitTabPages(List<GridDetailModel> gridDetail)
|
||||
{
|
||||
this._gridDetail = gridDetail;
|
||||
int i = 0;
|
||||
foreach (GridDetailModel model in this._gridDetail)
|
||||
{
|
||||
if (i == 0)
|
||||
{
|
||||
GroupBox groupBox = new GroupBox();
|
||||
groupBox.Dock = DockStyle.Fill;
|
||||
groupBox.Text = model.DetailName;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(model.UnionModule))
|
||||
{
|
||||
PanelControl plBottom = new PanelControl();
|
||||
plBottom.Dock = DockStyle.Bottom;
|
||||
plBottom.Visible = false;
|
||||
PanelControl plMain = new PanelControl();
|
||||
plMain.Dock = DockStyle.Fill;
|
||||
gridControlEx = new GridControlEx();
|
||||
gridControlEx = model.AutoMultiHeader == 1 ? new BandedGridControlEx() : new GridControlEx();
|
||||
gridControlEx.Dock = DockStyle.Fill;
|
||||
gridControlEx.Tag = model;
|
||||
gridControlEx.Parent = plMain;
|
||||
gridControlEx.Model = this.Model;
|
||||
gridControlEx.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
|
||||
//gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
//gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
gridControlEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
gridControlEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
if (Model != null && Model.IsDetailSearch)
|
||||
{
|
||||
plBottom.Visible = true;
|
||||
MyControl searchObj = new MyControl(model.DetailSql, gridControlEx);
|
||||
plBottom.Height = searchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(model.FormKey), plBottom);
|
||||
}
|
||||
groupBox.Controls.AddRange(new PanelControl[] { plBottom, plMain });
|
||||
splitMainControl.Panel1.Tag = gridControlEx;
|
||||
}
|
||||
else
|
||||
{
|
||||
DynamicModel dyncModel = new DynamicModuleModel(new string[] { model.DetailName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "1", model.UnionModule, "0" });
|
||||
model.SystemModel = new ModuleModel(MainImpl.GetSystemdllTab(model.UnionModule));
|
||||
ModuleNumber = model.UnionModule;
|
||||
if (Model != null)
|
||||
model.SystemModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(Model.ModuleCode);
|
||||
|
||||
gridEx = new ModuleGridEx();
|
||||
gridEx.Name = "gridEx1";
|
||||
gridEx.Dock = DockStyle.Fill;
|
||||
gridEx.OperShortMode = false; // 不显示简短模式
|
||||
gridEx.VisibleSearchPanel = false;
|
||||
gridEx.VisibleOperPanel = !model.IsReadOnly;
|
||||
gridEx.InitializeControl(model.SystemModel, dyncModel);
|
||||
gridEx.GridControlObj.Tag = model;
|
||||
gridEx.ParentControlEx = this.ParentControlEx;
|
||||
this.ParentGridEx = gridEx.GridControlObj;
|
||||
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
|
||||
gridEx.DetailKeyField = model.UnionValue;
|
||||
|
||||
if (model.AutoRefresh && !_UnRefresh)
|
||||
gridEx2.SearchObj.SearchGrid();
|
||||
|
||||
groupBox.Controls.Add(gridEx);
|
||||
splitMainControl.Panel1.Tag = gridEx;
|
||||
}
|
||||
|
||||
splitMainControl.Panel1.Controls.Add(groupBox);
|
||||
}
|
||||
else
|
||||
{
|
||||
GroupBox groupBox2 = new GroupBox();
|
||||
groupBox2.Dock = DockStyle.Fill;
|
||||
groupBox2.Text = model.DetailName;
|
||||
if (string.IsNullOrWhiteSpace(model.UnionModule))
|
||||
{
|
||||
PanelControl plBottom = new PanelControl();
|
||||
plBottom.Dock = DockStyle.Bottom;
|
||||
plBottom.Visible = false;
|
||||
PanelControl plMain = new PanelControl();
|
||||
plMain.Dock = DockStyle.Fill;
|
||||
gridControlEx2 = new GridControlEx();
|
||||
gridControlEx2 = model.AutoMultiHeader == 1 ? new BandedGridControlEx() : new GridControlEx();
|
||||
gridControlEx2.Dock = DockStyle.Fill;
|
||||
gridControlEx2.Tag = model;
|
||||
gridControlEx2.Parent = plMain;
|
||||
gridControlEx2.Model = this.Model;
|
||||
gridControlEx2.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
|
||||
//gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
//gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
gridControlEx2.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
gridControlEx2.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
if (Model != null && Model.IsDetailSearch)
|
||||
{
|
||||
plBottom.Visible = true;
|
||||
MyControl searchObj = new MyControl(model.DetailSql, gridControlEx2);
|
||||
plBottom.Height = searchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(model.FormKey), plBottom);
|
||||
}
|
||||
groupBox2.Controls.AddRange(new PanelControl[] { plBottom, plMain });
|
||||
splitMainControl.Panel2.Tag = gridControlEx2;
|
||||
}
|
||||
else
|
||||
{
|
||||
DynamicModel dyncModel = new DynamicModuleModel(new string[] { model.DetailName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "1", model.UnionModule, "0" });
|
||||
model.SystemModel = new ModuleModel(MainImpl.GetSystemdllTab(model.UnionModule));
|
||||
if (Model != null)
|
||||
model.SystemModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(Model.ModuleCode);
|
||||
|
||||
gridEx2 = new ModuleGridEx();
|
||||
gridEx2.Name = "gridEx2";
|
||||
gridEx2.Dock = DockStyle.Fill;
|
||||
gridEx2.OperShortMode = false; // 不显示简短模式
|
||||
gridEx2.VisibleSearchPanel = false;
|
||||
gridEx2.VisibleOperPanel = !model.IsReadOnly;
|
||||
gridEx2.InitializeControl(model.SystemModel, dyncModel);
|
||||
gridEx2.GridControlObj.Tag = model;
|
||||
gridEx2.ParentControlEx = this.ParentControlEx;
|
||||
this.ParentGridEx = gridEx2.GridControlObj;
|
||||
gridEx2.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
|
||||
gridEx2.DetailKeyField = model.UnionValue;
|
||||
//if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
|
||||
//{
|
||||
// // 拖拽模式,绑定拖拽对象
|
||||
// GridDragGrid dragGrid = new GridDragGrid(gridEx.GridControlObj.GridView, this.ParentGridEx.GridView);
|
||||
// dragGrid.OnDragComplete += new GridFragGridCompleteEventHandler(OnDragGridCompleted);
|
||||
//}
|
||||
|
||||
if (model.AutoRefresh && !_UnRefresh)
|
||||
gridEx2.SearchObj.SearchGrid();
|
||||
groupBox2.Controls.Add(gridEx2);
|
||||
splitMainControl.Panel2.Tag = gridEx2;
|
||||
}
|
||||
|
||||
splitMainControl.Panel2.Controls.Add(groupBox2);
|
||||
|
||||
}
|
||||
i++;
|
||||
}
|
||||
InitSpliterPosition();
|
||||
if (i==1) { splitMainControl.PanelVisibility = SplitPanelVisibility.Panel1; }
|
||||
_isInitFinish = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnGridViewRightCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.OnRightCallback != null)
|
||||
this.OnRightCallback(sender, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:加载tab标签里得明细数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2018-09-28 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="RowCellClickEventArgs"/> instance containing the event data.</param>
|
||||
protected void GridView_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
//try
|
||||
//{
|
||||
// WaitForm.ShowForm();
|
||||
// GridDetailModel model = gridEx2.GridControlObj.Tag as GridDetailModel;
|
||||
// DataRow rowItem = gridEx.GridView.GetFocusedDataRow();
|
||||
|
||||
// if (rowItem != null && model != null)
|
||||
// {
|
||||
// string searchSql = this.GetSearchSql(model, rowItem);
|
||||
// gridEx2.GridControlObj.LastSearchSql = searchSql;
|
||||
// gridEx2.GridControlObj.SetGridViewDataSource(MainImpl.GetDataTableResult(gridEx2.GridControlObj.LastSearchSql));
|
||||
// }
|
||||
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// LogHelper.Instance.WriteError(ex);
|
||||
// string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
// MessageUtil.Show(Message,ex.Message);
|
||||
//}
|
||||
//finally
|
||||
//{
|
||||
// WaitForm.HideForm();
|
||||
//}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取查询条件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="model">The model.</param>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
protected string GetSearchSql(GridDetailModel model, DataRow rowItem)
|
||||
{
|
||||
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : this.PrimaryKey;
|
||||
string sqlValue = model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
|
||||
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
|
||||
|
||||
if (ReplaceHelper.IsSelect(sqlValue) && !string.IsNullOrEmpty(model.UnionValue))
|
||||
{
|
||||
sqlValue = ReplaceHelper.ReplaceWhereCond(sqlValue) + string.Format(" and {0}='{1}'", model.UnionValue, rowItem[fieldName] + "");
|
||||
}
|
||||
return sqlValue;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:表格双击完成</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-08-29 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The e.</param>
|
||||
protected void OnDoubleGridClic(object sender, EventArgs e)
|
||||
{
|
||||
//try
|
||||
//{
|
||||
// DataRow[] rowItems = new DataRow[] { gridEx.GridView.GetFocusedDataRow() };
|
||||
// GridColumnCollection gridColumns = this.ParentGridEx.GridView.Columns;
|
||||
// DataTable table = this.ParentGridEx.gridControl.DataSource as DataTable;
|
||||
// foreach (DataRow rowItem in rowItems)
|
||||
// {
|
||||
// DataRow newRow = table.NewRow();
|
||||
// foreach (GridColumn col in gridColumns)
|
||||
// {
|
||||
// if ("id".Equals(col.FieldName) || col.FieldName.Equals(this.DrgaParentPrimaryKey)) continue;
|
||||
|
||||
// if (rowItem.Table.Columns.Contains(col.FieldName))
|
||||
// {
|
||||
// // 列中是否包含对应字段,包含则使用值
|
||||
// newRow[col.FieldName] = rowItem[col.FieldName];
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// // 未包含字段,则使用控件默认值.
|
||||
// GridColumnModel model = col.Tag as GridColumnModel;
|
||||
// string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
|
||||
|
||||
// if (!string.IsNullOrEmpty(model.DefaultValue))
|
||||
// {
|
||||
// newRow[col.FieldName] = fieldValue;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// table.Rows.Add(newRow);
|
||||
// }
|
||||
|
||||
// this.ParentGridEx.GridView.ClearSelection();
|
||||
// this.ParentGridEx.GridView.SelectRowHandler(table.Rows.Count - 1);
|
||||
// this.ParentGridEx.GridView.UpdateCurrentRow();
|
||||
// this.ParentGridEx.GridView.ShowEditor();
|
||||
//}
|
||||
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
// MessageUtil.Show(Message,ex.Message);
|
||||
// LogHelper.Instance.WriteError(ex);
|
||||
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:初始化分割条位置</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2020-06-19</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void InitSpliterPosition()
|
||||
{
|
||||
string spliterPosition = IniHelper.Read(string.Format("PubModuleDetail5RightLowerRight_SplitterPositionMain_{0}", ModuleNumber));
|
||||
if (!string.IsNullOrEmpty(spliterPosition)) this.splitMainControl.SplitterPosition = Conv
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,55 @@
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
partial class TabIntoControl
|
||||
{
|
||||
/// <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.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl();
|
||||
this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage();
|
||||
this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
|
||||
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
|
||||
this.xtraTabControl1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// xtraTabControl1
|
||||
//
|
||||
this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.xtraTabControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.xtraTabControl1.Name = "xtraTabControl1";
|
||||
this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
|
||||
this.xtraTabControl1.Size = new System.Drawing.Size(750, 502);
|
||||
this.xtraTabControl1.TabIndex = 0;
|
||||
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
|
||||
this.xtraTabPage1,
|
||||
this.xtraTabPage2});
|
||||
//
|
||||
// xtraTabPage1
|
||||
//
|
||||
this.xtraTabPage1.Name = "xtraTabPage1";
|
||||
this.xtraTabPage1.Size = new System.Drawing.Size(743, 466);
|
||||
this.xtraTabPage1.Text = "xtraTabPage1";
|
||||
//
|
||||
@@ -0,0 +1,884 @@
|
||||
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.Control;
|
||||
using Lskj.Business;
|
||||
using Lskj.Data;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using Lskj.Util;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using DevExpress.XtraTab;
|
||||
using Lskj.Model;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
|
||||
namespace Lskj.PubModuleDetail5
|
||||
{
|
||||
public partial class TabIntoControl : TabControlEx
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否加载明细刷新
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [_ un refresh]; otherwise, <c>false</c>.</value>
|
||||
private bool _UnRefresh
|
||||
{
|
||||
get
|
||||
{
|
||||
return Model is DynamicModuleDetailModel || Model is DynamicModuleModel || Model is DynamicProductionModel;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 拖拽模式
|
||||
/// </summary>
|
||||
public bool IsDragDetail;
|
||||
/// <summary>
|
||||
/// 拖拽目标主键字段
|
||||
/// </summary>
|
||||
public string DrgaParentPrimaryKey;
|
||||
/// <summary>
|
||||
/// 添加数据sql赋值
|
||||
/// </summary>
|
||||
public string ControlSql;
|
||||
/// <summary>
|
||||
/// tab标签
|
||||
/// </summary>
|
||||
private List<GridDetailModel> _gridDetail;
|
||||
/// <summary>
|
||||
/// tab标签里明细数据
|
||||
/// </summary>
|
||||
private List<GridDetailModel> _gridIntoDetail;
|
||||
/// <summary>
|
||||
/// The system model
|
||||
/// </summary>
|
||||
public DynamicModel Model;
|
||||
/// <summary>
|
||||
/// 父表格
|
||||
/// </summary>
|
||||
public GridControlEx ParentGridEx;
|
||||
/// <summary>
|
||||
/// 父容器
|
||||
/// </summary>
|
||||
public MyControl ParentControlEx;
|
||||
/// <summary>
|
||||
/// 明细数据里的主表格
|
||||
/// </summary>
|
||||
public ModuleGridEx ModuleGridObj;
|
||||
/// <summary>
|
||||
/// 选项卡
|
||||
/// </summary>
|
||||
public XtraTabControl TabIntoControlObj
|
||||
{
|
||||
get { return this.xtc_container; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 右键菜单执行后调用
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public event EventHandler OnRightCallback;
|
||||
/// <summary>
|
||||
/// 在保存网格回调
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public event EventHandler OnDetailRightCallback;
|
||||
/// <summary>
|
||||
/// 表格保存执行后调用
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
public event EventHandler OnAllGridCallback;
|
||||
/// <summary>
|
||||
/// 分割条
|
||||
/// </summary>
|
||||
public SplitContainerControl splitContainer { get; set; }
|
||||
/// <summary>
|
||||
/// 初始化完成
|
||||
/// </summary>
|
||||
private bool _isInitFinish;
|
||||
public TabIntoControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:绑定选项卡</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-09</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void InitTabPages(List<GridDetailModel> gridDetail)
|
||||
{
|
||||
this._gridDetail = gridDetail;
|
||||
this.xtc_container.TabPages.Clear();
|
||||
|
||||
foreach (GridDetailModel model in this._gridDetail)
|
||||
{
|
||||
XtraTabPage page = new XtraTabPage();
|
||||
page.Text = model.DetailName;
|
||||
|
||||
if (model.IsChart)
|
||||
{
|
||||
ChartControlEx chartEx = new ChartControlEx();
|
||||
chartEx.Dock = DockStyle.Fill;
|
||||
chartEx.SetCharts(BaseModuleImpl.GetChartParams(model.FormKey));
|
||||
chartEx.SetChartRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
chartEx.Tag = model;
|
||||
|
||||
page.Tag = chartEx;
|
||||
page.Controls.Add(chartEx);
|
||||
}
|
||||
else if (model.IsExcel)
|
||||
{
|
||||
ExcelControlEx excelEx = new ExcelControlEx();
|
||||
excelEx.Dock = DockStyle.Fill;
|
||||
excelEx.Tag = model;
|
||||
|
||||
page.Tag = excelEx;
|
||||
page.Controls.Add(excelEx);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (model.IsReadOnly)
|
||||
{
|
||||
PanelControl plBottom = new PanelControl();
|
||||
plBottom.Visible = false;
|
||||
plBottom.Dock = DockStyle.Bottom;
|
||||
|
||||
PanelControl plMain = new PanelControl();
|
||||
plMain.Dock = DockStyle.Fill;
|
||||
|
||||
GridControlEx gridEx = new GridControlEx();
|
||||
gridEx.Dock = DockStyle.Fill;
|
||||
gridEx.Tag = model;
|
||||
gridEx.Parent = plMain;
|
||||
|
||||
gridEx.Model = this.Model;
|
||||
gridEx.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
|
||||
gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
|
||||
{
|
||||
// 拖拽模式,绑定拖拽对象
|
||||
GridDragGrid dragGrid = new GridDragGrid(gridEx.GridView, this.ParentGridEx.GridView);
|
||||
dragGrid.OnDragComplete += new GridFragGridCompleteEventHandler(OnDragGridCompleted);
|
||||
}
|
||||
|
||||
// 加载配置查询条件
|
||||
if (model.IsSearch)
|
||||
{
|
||||
plBottom.Visible = true;
|
||||
MyControl searchObj = new MyControl(model.DetailSql, gridEx);
|
||||
plBottom.Height = searchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(model.SystemModel.CondKey), plBottom);
|
||||
}
|
||||
page.Tag = gridEx;
|
||||
page.Controls.AddRange(new PanelControl[] { plBottom, plMain });
|
||||
}
|
||||
else
|
||||
{
|
||||
DynamicModel dyncModel = new DynamicModuleModel(new string[] { model.DetailName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "1", model.UnionModule, "0" });
|
||||
model.SystemModel = new ModuleModel(MainImpl.GetSystemdllTab(model.UnionModule));
|
||||
if (Model != null)
|
||||
model.SystemModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(Model.ModuleCode);
|
||||
ModuleGridEx gridEx = new ModuleGridEx();
|
||||
|
||||
if (model.SystemModel.RefreshDetails)
|
||||
{
|
||||
gridEx.DetailRightGridCallBack += OnDetailRightCallback;
|
||||
}
|
||||
|
||||
gridEx.GridControlObj.GridView.OptionsSelection.MultiSelectMode = GridMultiSelectMode.CellSelect;
|
||||
gridEx.Name = "gridEx";
|
||||
gridEx.IsDetail = true;
|
||||
gridEx.Dock = DockStyle.Fill;
|
||||
gridEx.OperShortMode = false; // 不显示简短模式
|
||||
gridEx.VisibleSearchPanel = Model.IsDetailSearch;
|
||||
gridEx.VisibleOperPanel = !model.IsReadOnly;
|
||||
gridEx.InitializeControl(model.SystemModel, dyncModel);
|
||||
gridEx.GridControlObj.Tag = model;
|
||||
gridEx.ParentControlEx = this.ParentControlEx;
|
||||
gridEx.ParentGridEx = this.ParentGridEx;
|
||||
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
|
||||
gridEx.DetailKeyField = model.UnionValue;
|
||||
gridEx.OnSaveGridCallBack += new EventHandler(OnGridViewAllCallBack);
|
||||
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
|
||||
{
|
||||
// 拖拽模式,绑定拖拽对象
|
||||
GridDragGrid dragGrid = new GridDragGrid(gridEx.GridControlObj.GridView, this.ParentGridEx.GridView);
|
||||
dragGrid.OnDragComplete += new GridFragGridCompleteEventHandler(OnDragGridCompleted);
|
||||
}
|
||||
|
||||
if (model.AutoRefresh && !_UnRefresh)
|
||||
gridEx.SearchObj.SearchGrid();
|
||||
this._gridIntoDetail = GetDetails(model.UnionModule);
|
||||
if (_gridIntoDetail.Count > 0)
|
||||
{
|
||||
page.Tag = gridEx.GridControlObj;
|
||||
|
||||
SplitContainerControl splitLeftControl = new SplitContainerControl();
|
||||
splitLeftControl.Dock = DockStyle.Fill;
|
||||
splitContainer = splitLeftControl;
|
||||
splitLeftControl.Tag = model.UnionModule;
|
||||
splitLeftControl.SplitterPositionChanged += SplitLeftControl_SplitterMoved;
|
||||
|
||||
TabIntoAddControl tabAdd = new TabIntoAddControl();
|
||||
//tabAdd.splitContainerControl.Horizontal = false;//上下结构
|
||||
tabAdd.InitTabPages(_gridIntoDetail);
|
||||
tabAdd.Dock = DockStyle.Fill;
|
||||
splitLeftControl.Panel1.Controls.Add(gridEx);
|
||||
splitLeftControl.Panel2.Controls.Add(tabAdd);
|
||||
splitLeftControl.Panel1.Tag = gridEx;
|
||||
splitLeftControl.Panel2.Tag = tabAdd;
|
||||
page.Controls.AddRange(new SplitContainerControl[] { splitLeftControl });
|
||||
gridEx.GridControlObj.GridView.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(GridView_RowCellClick);
|
||||
}
|
||||
else
|
||||
{
|
||||
page.Tag = gridEx.GridControlObj;
|
||||
page.Controls.Add(gridEx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.xtc_container.TabPages.Add(page);
|
||||
|
||||
}
|
||||
InitSpliterPosition();
|
||||
_isInitFinish = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:特殊情况绑定选项卡</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-04-04 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="gridDetail">The grid detail.</param>
|
||||
/// <param name="parentValue">The parent value.</param>
|
||||
public void InitTabPages(List<GridDetailModel> gridDetail, string parentValue)
|
||||
{
|
||||
this._gridDetail = gridDetail;
|
||||
this.xtc_container.TabPages.Clear();
|
||||
|
||||
foreach (GridDetailModel model in this._gridDetail)
|
||||
{
|
||||
XtraTabPage page = new XtraTabPage();
|
||||
page.Text = model.DetailName;
|
||||
|
||||
if (model.IsChart)
|
||||
{
|
||||
ChartControlEx chartEx = new ChartControlEx();
|
||||
chartEx.Dock = DockStyle.Fill;
|
||||
chartEx.SetCharts(BaseModuleImpl.GetChartParams(model.FormKey));
|
||||
chartEx.SetChartRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
chartEx.Tag = model;
|
||||
|
||||
page.Tag = chartEx;
|
||||
page.Controls.Add(chartEx);
|
||||
}
|
||||
else if (model.IsExcel)
|
||||
{
|
||||
ExcelControlEx excelEx = new ExcelControlEx();
|
||||
excelEx.Dock = DockStyle.Fill;
|
||||
excelEx.Tag = model;
|
||||
|
||||
page.Tag = excelEx;
|
||||
page.Controls.Add(excelEx);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (model.IsReadOnly)
|
||||
{
|
||||
PanelControl plTop = new PanelControl();
|
||||
plTop.Dock = DockStyle.Top;
|
||||
|
||||
PanelControl plMain = new PanelControl();
|
||||
plMain.Dock = DockStyle.Fill;
|
||||
|
||||
GridControlEx gridEx = new GridControlEx();
|
||||
gridEx.Dock = DockStyle.Fill;
|
||||
gridEx.Tag = model;
|
||||
gridEx.Parent = plMain;
|
||||
|
||||
gridEx.Model = this.Model;
|
||||
gridEx.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
|
||||
gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
|
||||
// 加载配置查询条件
|
||||
if (model.IsSearch)
|
||||
{
|
||||
MyControl searchObj = new MyControl(model.DetailSql, gridEx);
|
||||
if (!string.IsNullOrEmpty(model.UnionValue) && !string.IsNullOrEmpty(parentValue))
|
||||
searchObj.WhereCond = string.Format(" and {0}='{1}'", model.UnionValue, parentValue);
|
||||
plTop.Height = searchObj.InitSearchControl(BaseModuleImpl.GetCustomQueryFields(model.SystemModel.CondKey), plTop);
|
||||
}
|
||||
|
||||
page.Tag = gridEx;
|
||||
page.Controls.AddRange(new PanelControl[] { plTop, plMain });
|
||||
}
|
||||
else
|
||||
{
|
||||
DynamicModel dyncModel = new DynamicModel(new string[] { model.DetailName, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, "1", model.UnionModule, "0" });
|
||||
model.SystemModel = new ModuleModel(MainImpl.GetSystemdllTab(model.UnionModule));
|
||||
|
||||
ModuleGridEx gridEx = new ModuleGridEx();
|
||||
gridEx.Name = "gridEx";
|
||||
gridEx.Dock = DockStyle.Fill;
|
||||
gridEx.OperShortMode = false; // 不显示简短模式
|
||||
gridEx.VisibleSearchPanel = model.IsSearch;
|
||||
gridEx.VisibleOperPanel = true;
|
||||
gridEx.ParentGridEx = this.ParentGridEx;
|
||||
gridEx.ParentControlEx = this.ParentControlEx;
|
||||
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.UnionValue : model.UnionParentField;
|
||||
gridEx.ParentKeyValue = parentValue;
|
||||
gridEx.DetailKeyField = model.UnionValue;
|
||||
gridEx.UnionKey = model.UnionValue;
|
||||
gridEx.UnionValue = parentValue; //Model.ObjectId;
|
||||
gridEx.InitializeControl(model.SystemModel, dyncModel);
|
||||
gridEx.GridControlObj.Tag = model;
|
||||
gridEx.ControlSql = ControlSql;
|
||||
|
||||
if (model.AutoRefresh)
|
||||
gridEx.SearchObj.SearchGrid();
|
||||
|
||||
page.Tag = gridEx.GridControlObj;
|
||||
page.Controls.Add(gridEx);
|
||||
|
||||
}
|
||||
}
|
||||
this.xtc_container.TabPages.Add(page);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:加载tab标签里得明细数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2018-09-28 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="RowCellClickEventArgs"/> instance containing the event data.</param>
|
||||
protected void GridView_RowCellClick(object sender, RowCellClickEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
|
||||
XtraTabPage tabPage = this.xtc_container.SelectedTabPage;
|
||||
foreach (System.Windows.Forms.Control control in tabPage.Controls)
|
||||
{
|
||||
if (control is SplitContainerControl)
|
||||
{
|
||||
SplitContainerControl splitContainer = control as SplitContainerControl;
|
||||
ModuleGridEx gcMain = splitContainer.Panel1.Tag as ModuleGridEx;
|
||||
TabIntoAddControl tabadd = splitContainer.Panel2.Tag as TabIntoAddControl;
|
||||
|
||||
GridDetailModel model = null;
|
||||
if (tabadd.splitContainerControl.Panel1.Tag is ModuleGridEx)
|
||||
{
|
||||
model = tabadd.gridEx.GridControlObj.Tag as GridDetailModel;
|
||||
}
|
||||
if (tabadd.splitContainerControl.Panel1.Tag is GridControlEx)
|
||||
{
|
||||
model = tabadd.gridControlEx.Tag as GridDetailModel;
|
||||
}
|
||||
|
||||
GridDetailModel model2 = null;
|
||||
if (tabadd.splitContainerControl.Panel2.Tag is ModuleGridEx)
|
||||
{
|
||||
model2 = tabadd.gridEx2.GridControlObj.Tag as GridDetailModel;
|
||||
}
|
||||
if (tabadd.splitContainerControl.Panel2.Tag is GridControlEx)
|
||||
{
|
||||
model2 = tabadd.gridControlEx2.Tag as GridDetailModel;
|
||||
}
|
||||
|
||||
DataRow rowItem = gcMain.GridControlObj.GridView.GetFocusedDataRow();
|
||||
this.ModuleGridObj = gcMain;
|
||||
tabadd.PrimaryKey = this.ModuleGridObj.ParmaryKey;
|
||||
if (rowItem != null)
|
||||
{
|
||||
if (model != null)
|
||||
{
|
||||
string searchSql = this.GetSearchSql(model, rowItem);
|
||||
if (tabadd.splitContainerControl.Panel1.Tag is ModuleGridEx)
|
||||
{
|
||||
tabadd.gridEx.GridControlObj.LastSearchSql = searchSql;
|
||||
tabadd.gridEx.SearchObj.SearchLastGrid();
|
||||
}
|
||||
if (tabadd.splitContainerControl.Panel1.Tag is GridControlEx)
|
||||
{
|
||||
tabadd.gridControlEx.LastSearchSql = searchSql;
|
||||
tabadd.gridControlEx.SetGridViewDataSource(MainImpl.GetDataTableResult(searchSql));
|
||||
}
|
||||
|
||||
}
|
||||
if (model2 != null)
|
||||
{
|
||||
string searchSql2 = this.GetSearchSql(model2, rowItem);
|
||||
if (tabadd.splitContainerControl.Panel2.Tag is ModuleGridEx)
|
||||
{
|
||||
tabadd.gridEx2.GridControlObj.LastSearchSql = searchSql2;
|
||||
tabadd.gridEx2.SearchObj.SearchLastGrid();
|
||||
}
|
||||
if (tabadd.splitContainerControl.Panel2.Tag is GridControlEx)
|
||||
{
|
||||
tabadd.gridControlEx2.LastSearchSql = searchSql2;
|
||||
tabadd.gridControlEx2.SetGridViewDataSource(MainImpl.GetDataTableResult(searchSql2));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (model != null)
|
||||
{
|
||||
|
||||
if (tabadd.splitContainerControl.Panel1.Tag is ModuleGridEx)
|
||||
{
|
||||
tabadd.gridEx.GridControlObj.gridControl.DataSource = null;
|
||||
}
|
||||
if (tabadd.splitContainerControl.Panel1.Tag is GridControlEx)
|
||||
{
|
||||
tabadd.gridControlEx.gridControl.DataSource = null;
|
||||
}
|
||||
|
||||
}
|
||||
if (model2 != null)
|
||||
{
|
||||
if (tabadd.splitContainerControl.Panel2.Tag is ModuleGridEx)
|
||||
{
|
||||
tabadd.gridEx2.GridControlObj.gridControl.DataSource = null;
|
||||
}
|
||||
if (tabadd.splitContainerControl.Panel2.Tag is GridControlEx)
|
||||
{
|
||||
tabadd.gridControlEx2.gridControl.DataSource = null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//MessageUtil.Show("加载明细数据失败!" + ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取查询条件</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="model">The model.</param>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
protected string GetSearchSql(GridDetailModel model, DataRow rowItem)
|
||||
{
|
||||
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : ModuleGridObj.ParmaryKey;
|
||||
string sqlValue = model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
|
||||
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
|
||||
|
||||
//if (ReplaceHelper.IsSelect(sqlValue) && !string.IsNullOrEmpty(model.UnionValue))
|
||||
//{
|
||||
// sqlValue = ReplaceHelper.ReplaceWhereCond(sqlValue) + string.Format(" and {0}='{1}'", model.UnionValue, rowItem[fieldName] + "");
|
||||
//}
|
||||
return sqlValue;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:判断多标签里是否有明细表</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-12-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>List<GridDetailModel>.</returns>
|
||||
private List<GridDetailModel> GetDetails(string ModuleCode)
|
||||
{
|
||||
List<GridDetailModel> details = new List<GridDetailModel>();
|
||||
|
||||
DataTable table = BaseModuleImpl.GetBaseDetailPages(ModuleCode);
|
||||
foreach (DataRow item in table.Rows)
|
||||
{
|
||||
DataTable gridColumns = ReportImpl.GetReportDetailColumns(ModuleCode, item["id"] + "");
|
||||
details.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
|
||||
}
|
||||
|
||||
return details;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取TabPage绑定的实体对象</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="tabPage">The tab page.</param>
|
||||
/// <returns>GridDetailModel.</returns>
|
||||
public GridDetailModel GetGridDetailModel(XtraTabPage tabPage)
|
||||
{
|
||||
if (tabPage == null) return null;
|
||||
|
||||
if (tabPage.Tag is GridControlEx)
|
||||
return (tabPage.Tag as GridControlEx).Tag as GridDetailModel;
|
||||
if (tabPage.Tag is ChartControlEx)
|
||||
return (tabPage.Tag as ChartControlEx).Tag as GridDetailModel;
|
||||
|
||||
return null;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取选中TabPage绑定的实体对象</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>GridDetailModel.</returns>
|
||||
public GridDetailModel GetFocusTabPageGridDetailModel()
|
||||
{
|
||||
return this.GetGridDetailModel(this.xtc_container.SelectedTabPage);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置指定TabPage数据源</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="tabPage">The tab page.</param>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public void SetGridDataSource(XtraTabPage tabPage, DataTable table)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (tabPage == null) return;
|
||||
|
||||
if (tabPage.Tag is GridControlEx)
|
||||
{
|
||||
this.SetGridViewTabPage(tabPage, table);
|
||||
//GridView_RowCellClick(null,null);
|
||||
}
|
||||
else if (tabPage.Tag is ChartControlEx)
|
||||
{
|
||||
this.SetChartViewTabPage(tabPage, table);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("TabPage配置错误-->" + tabPage.Text, ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//MessageUtil.Show(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置指定TabPage中表格明细的数据源</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-15 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void SetGridDetailsDataSource()
|
||||
{
|
||||
GridView_RowCellClick(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置选中TabPage数据源</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="table">The table.</param>
|
||||
public void SetGridDataSource(DataTable table)
|
||||
{
|
||||
this.SetGridDataSource(this.xtc_container.SelectedTabPage, table);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置表格数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-29 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="tabPage">The tab page.</param>
|
||||
/// <param name="gridControl">The grid control.</param>
|
||||
protected void SetGridViewTabPage(XtraTabPage tabPage, DataTable table)
|
||||
{
|
||||
GridControlEx gridControl = tabPage.Tag as GridControlEx;
|
||||
GridDetailModel model = gridControl.Tag as GridDetailModel;
|
||||
gridControl.SetGridViewDataSource(table);
|
||||
gridControl.GridView.DoubleClick -= new EventHandler(OnGridCompleted);
|
||||
int dataRowCount = gridControl.GridView.DataRowCount;
|
||||
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
|
||||
{
|
||||
gridControl.GridView.DoubleClick += new EventHandler(OnGridCompleted);
|
||||
}
|
||||
tabPage.Text = model.DetailName + "(" + dataRowCount + ")";
|
||||
tabPage.Appearance.Header.ForeColor = gridControl.GridView.DataRowCount > 0 ? Color.Red : Color.FromArgb(0, 0, 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:设置图表数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-29 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="tabPage">The tab page.</param>
|
||||
/// <param name="chartControl">The chart control.</param>
|
||||
protected void SetChartViewTabPage(XtraTabPage tabPage, DataTable table)
|
||||
{
|
||||
ChartControlEx chartEx = tabPage.Tag as ChartControlEx;
|
||||
GridDetailModel model = chartEx.Tag as GridDetailModel;
|
||||
|
||||
chartEx.CreateChart(table);
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnGridViewRightCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.OnRightCallback != null)
|
||||
this.OnRightCallback(sender, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-02-24 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnGridViewAllCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.OnAllGridCallback != null)
|
||||
this.OnAllGridCallback(sender, e);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:表格双击完成</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2019-08-29 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The e.</param>
|
||||
protected void OnGridCompleted(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
XtraTabPage tabPage = this.xtc_container.SelectedTabPage;
|
||||
GridControlEx ge = tabPage.Tag as GridControlEx;
|
||||
DataRow[] rowItems = new DataRow[] { ge.GridView.GetFocusedDataRow() };
|
||||
GridColumnCollection gridColumns = this.ParentGridEx.GridView.Columns;
|
||||
DataTable table = this.ParentGridEx.gridControl.DataSource as DataTable;
|
||||
foreach (DataRow rowItem in rowItems)
|
||||
{
|
||||
DataRow newRow = table.NewRow();
|
||||
foreach (GridColumn col in gridColumns)
|
||||
{
|
||||
if ("id".Equals(col.FieldName) || col.FieldName.Equals(this.DrgaParentPrimaryKey)) continue;
|
||||
|
||||
if (rowItem.Table.Columns.Contains(col.FieldName))
|
||||
{
|
||||
// 列中是否包含对应字段,包含则使用值
|
||||
newRow[col.FieldName] = rowItem[col.FieldName];
|
||||
}
|
||||
else
|
||||
{
|
||||
// 未包含字段,则使用控件默认值.
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
|
||||
|
||||
if (!string.IsNullOrEmpty(model.DefaultValue))
|
||||
{
|
||||
newRow[col.FieldName] = fieldValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(newRow);
|
||||
}
|
||||
|
||||
this.ParentGridEx.GridView.ClearSelection();
|
||||
this.ParentGridEx.GridView.SelectRowHandler(table.Rows.Count - 1);
|
||||
this.ParentGridEx.GridView.UpdateCurrentRow();
|
||||
this.ParentGridEx.GridView.ShowEditor();
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("表格双击移动错误", ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
// MessageUtil.Show(ResourceKeys.OperFault);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:表格拖拽完成</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-14 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The sender.</param>
|
||||
/// <param name="e">The e.</param>
|
||||
protected void OnDragGridCompleted(object sender, GridDragGridArgs e)
|
||||
{
|
||||
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0 || this.ParentGridEx == null) return;
|
||||
|
||||
try
|
||||
{
|
||||
if (MessageUtil.Show(ResourceKeys.DragSelectRow, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
GridColumnCollection gridColumns = this.ParentGridEx.GridView.Columns;
|
||||
DataTable table = this.ParentGridEx.gridControl.DataSource as DataTable;
|
||||
foreach (DataRow rowItem in e.GridViewSelectRows)
|
||||
{
|
||||
DataRow newRow = table.NewRow();
|
||||
foreach (GridColumn col in gridColumns)
|
||||
{
|
||||
if ("id".Equals(col.FieldName) || col.FieldName.Equals(this.DrgaParentPrimaryKey)) continue;
|
||||
|
||||
if (rowItem.Table.Columns.Contains(col.FieldName))
|
||||
{
|
||||
// 列中是否包含对应字段,包含则使用值
|
||||
newRow[col.FieldName] = rowItem[col.FieldName];
|
||||
}
|
||||
else
|
||||
{
|
||||
// 未包含字段,则使用控件默认值.
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
|
||||
|
||||
if (!string.IsNullOrEmpty(model.DefaultValue))
|
||||
{
|
||||
newRow[col.FieldName] = fieldValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(newRow);
|
||||
}
|
||||
|
||||
this.ParentGridEx.GridView.ClearSelection();
|
||||
this.ParentGridEx.GridView.SelectRowHandler(table.Rows.Count - 1);
|
||||
this.ParentGridEx.GridView.UpdateCurrentRow();
|
||||
this.ParentGridEx.GridView.ShowEditor();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("表格拖拽错误", ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//MessageUtil.Show(ResourceKeys.OperFault);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:初始化分割条位置</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2020-06-19</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void InitSpliterPosition()
|
||||
{
|
||||
if (this.splitContainer != null)
|
||||
{
|
||||
string spliterPosition = IniHelper.Read(string.Format("PubModuleDetail5RightLower_SplitterPositionMain_{0}", this.splitContainer.Tag + ""));
|
||||
if (!string.IsNullOrEmpty(spliterPosition)) this.splitContainer.SplitterPosition = Convert.ToInt32(spliterPosition);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
///
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user