SVN r337
SVN-Revision: r337
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
using Lskj.Business;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.PubControlDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础档案审批模板入口
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
FrmMain main = new FrmMain();
|
||||
DynamicControlDetailModel moduleModel = new DynamicControlDetailModel(obj);
|
||||
main.Model = moduleModel;
|
||||
//moduleModel.DataCaches = new Dictionary<object, Hashtable>();
|
||||
//if (SystemInfo.Instance.OptimizationSpeed) main.GetDataCaches(moduleModel.DataCaches);
|
||||
this.SubForm = main;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.ProductSched.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 入口模型
|
||||
/// </summary>
|
||||
public class DynamicControlDetailModel : DynamicModel
|
||||
{
|
||||
public override string[] OtherParams()
|
||||
{
|
||||
return this.Params;
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化默认参数(1.标题、2、用户ID、3.用户名、4.权限、5.模块编号、6.菜单ID)
|
||||
/// </summary>
|
||||
/// <param name="args">The arguments.</param>
|
||||
public DynamicControlDetailModel(string[] args)
|
||||
: base(args)
|
||||
{
|
||||
// 右键菜单打开的模块没有moduleId,部分特殊模块没有moduleId比如添加界面.
|
||||
if (!string.IsNullOrEmpty(args[5]))
|
||||
{
|
||||
base.ModuleId = Convert.ToInt32(args[5]);
|
||||
}
|
||||
if (a
|
||||
+233
@@ -0,0 +1,233 @@
|
||||
|
||||
namespace Lskj.PubControlDetail
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.splitMainControl = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.pl_mainSearch = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_search = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_top_fix_search = new DevExpress.XtraEditors.PanelControl();
|
||||
this.cbField = new System.Windows.Forms.ComboBox();
|
||||
this.btnFixSearch = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.txtFixKey = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pl_main = new DevExpress.XtraEditors.XtraScrollableControl();
|
||||
this.pl_buttom = new DevExpress.XtraEditors.PanelControl();
|
||||
this.btnClear = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.btnAdd = new DevExpress.XtraEditors.SimpleButton();
|
||||
this.pl_right = new DevExpress.XtraEditors.PanelControl();
|
||||
this.gcMain = new Lskj.Control.GridControlEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitMainControl)).BeginInit();
|
||||
this.splitMainControl.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_mainSearch)).BeginInit();
|
||||
this.pl_mainSearch.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_search)).BeginInit();
|
||||
this.pl_search.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).BeginInit();
|
||||
this.pl_top_fix_search.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).BeginInit();
|
||||
this.pl_buttom.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_right)).BeginInit();
|
||||
this.pl_right.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// splitMainControl
|
||||
//
|
||||
this.splitMainControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitMainControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitMainControl.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.splitMainControl.Name = "splitMainControl";
|
||||
this.splitMainControl.Panel1.Controls.Add(this.gcMain);
|
||||
this.splitMainControl.Panel1.Controls.Add(this.pl_mainSearch);
|
||||
this.splitMainControl.Panel1.Text = "Panel1";
|
||||
this.splitMainControl.Panel2.Controls.Add(this.pl_right);
|
||||
this.splitMainControl.Panel2.Controls.Add(this.pl_buttom);
|
||||
this.splitMainControl.Panel2.Text = "Panel2";
|
||||
this.splitMainControl.Size = new System.Drawing.Size(974, 565);
|
||||
this.splitMainControl.SplitterPosition = 500;
|
||||
this.splitMainControl.TabIndex = 2;
|
||||
//
|
||||
// pl_mainSearch
|
||||
//
|
||||
this.pl_mainSearch.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_mainSearch.Appearance.Options.UseBackColor = true;
|
||||
this.pl_mainSearch.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_mainSearch.Controls.Add(this.pl_search);
|
||||
this.pl_mainSearch.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pl_mainSearch.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_mainSearch.LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
this.pl_mainSearch.Name = "pl_mainSearch";
|
||||
this.pl_mainSearch.Size = new System.Drawing.Size(500, 33);
|
||||
this.pl_mainSearch.TabIndex = 13;
|
||||
//
|
||||
// pl_search
|
||||
//
|
||||
this.pl_search.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_search.Appearance.Options.UseBackColor = true;
|
||||
this.pl_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_search.Controls.Add(this.pl_top_fix_search);
|
||||
this.pl_search.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_search.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_search.LookAndFeel.UseDefaultLookAndFeel = false;
|
||||
this.pl_search.Name = "pl_search";
|
||||
this.pl_search.Size = new System.Drawing.Size(442, 33);
|
||||
this.pl_search.TabIndex = 14;
|
||||
//
|
||||
// pl_top_fix_search
|
||||
//
|
||||
this.pl_top_fix_search.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_top_fix_search.Controls.Add(this.cbField);
|
||||
this.pl_top_fix_search.Controls.Add(this.btnFixSearch);
|
||||
this.pl_top_fix_search.Controls.Add(this.txtFixKey);
|
||||
this.pl_top_fix_search.Controls.Add(this.label1);
|
||||
this.pl_top_fix_search.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.pl_top_fix_search.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_top_fix_search.Name = "pl_top_fix_search";
|
||||
this.pl_top_fix_search.Size = new System.Drawing.Size(391, 33);
|
||||
this.pl_top_fix_search.TabIndex = 10;
|
||||
//
|
||||
// cbField
|
||||
//
|
||||
this.cbField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbField.FormattingEnabled = true;
|
||||
this.cbField.Location = new System.Drawing.Point(38, 6);
|
||||
this.cbField.Name = "cbField";
|
||||
this.cbField.Size = new System.Drawing.Size(107, 22);
|
||||
this.cbField.TabIndex = 1;
|
||||
this.cbField.Tag = "";
|
||||
//
|
||||
// btnFixSearch
|
||||
//
|
||||
this.btnFixSearch.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnFixSearch.Appearance.Options.UseFont = true;
|
||||
this.btnFixSearch.Location = new System.Drawing.Point(307, 4);
|
||||
this.btnFixSearch.Name = "btnFixSearch";
|
||||
this.btnFixSearch.Size = new System.Drawing.Size(63, 24);
|
||||
this.btnFixSearch.TabIndex = 33;
|
||||
this.btnFixSearch.Text = "查询(&Q)";
|
||||
//
|
||||
// txtFixKey
|
||||
//
|
||||
this.txtFixKey.Location = new System.Drawing.Point(149, 6);
|
||||
this.txtFixKey.Name = "txtFixKey";
|
||||
this.txtFixKey.Size = new System.Drawing.Size(154, 22);
|
||||
this.txtFixKey.TabIndex = 32;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(7, 10);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(31, 14);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "查询";
|
||||
//
|
||||
// pl_main
|
||||
//
|
||||
this.pl_main.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_main.Appearance.Options.UseBackColor = true;
|
||||
this.pl_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_main.Location = new System.Drawing.Point(2, 2);
|
||||
this.pl_main.Name = "pl_main";
|
||||
this.pl_main.Size = new System.Drawing.Size(465, 525);
|
||||
this.pl_main.TabIndex = 13;
|
||||
//
|
||||
// pl_buttom
|
||||
//
|
||||
this.pl_buttom.Controls.Add(this.btnAdd);
|
||||
this.pl_buttom.Controls.Add(this.btnClear);
|
||||
this.pl_buttom.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pl_buttom.Location = new System.Drawing.Point(0, 529);
|
||||
this.pl_buttom.Name = "pl_buttom";
|
||||
this.pl_buttom.Size = new System.Drawing.Size(469, 36);
|
||||
this.pl_buttom.TabIndex = 15;
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnClear.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnClear.Appearance.Options.UseFont = true;
|
||||
this.btnClear.Location = new System.Drawing.Point(305, 5);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(72, 26);
|
||||
this.btnClear.TabIndex = 38;
|
||||
this.btnClear.Text = "清理(&C)";
|
||||
//
|
||||
// btnAdd
|
||||
//
|
||||
this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnAdd.Appearance.Options.UseFont = true;
|
||||
this.btnAdd.Location = new System.Drawing.Point(383, 4);
|
||||
this.btnAdd.Name = "btnAdd";
|
||||
this.btnAdd.Size = new System.Drawing.Size(80, 28);
|
||||
this.btnAdd.TabIndex = 39;
|
||||
this.btnAdd.TabStop = false;
|
||||
this.btnAdd.Text = "添加保存(&A)";
|
||||
//
|
||||
// pl_right
|
||||
//
|
||||
this.pl_right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
|
||||
this.pl_right.Controls.Add(this.pl_main);
|
||||
this.pl_right.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_right.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_right.Name = "pl_right";
|
||||
this.pl_right.Size = new System.Drawing.Size(469, 529);
|
||||
this.pl_right.TabIndex = 16;
|
||||
//
|
||||
// gcMain
|
||||
//
|
||||
this.gcMain.AdapterObj = null;
|
||||
this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.gcMain.Location = new System.Drawing.Point(0, 33);
|
||||
this.gcMain.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||
this.gcMain.Name = "gcMain";
|
||||
this.gcMain.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
|
||||
this.gcMain.Size = new System.Drawing.Size(500, 532);
|
||||
this.gcMain.TabIndex = 14;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(974, 565);
|
||||
this.Controls.Add(this.splitMainControl);
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "FrmMain";
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitMainControl)).EndInit();
|
||||
this.splitMainControl.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_mainSearch)).EndInit();
|
||||
this.pl_mainSearch.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_search)).EndInit();
|
||||
this.pl_search.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_top_fix_search)).EndInit();
|
||||
this.pl_top_fix_search.ResumeLayout(false);
|
||||
this.pl_top_fix_search.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).EndInit();
|
||||
this.pl_buttom.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_right)).EndInit()
|
||||
@@ -0,0 +1,333 @@
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Model;
|
||||
using Lskj.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Lskj.PubControlDetail
|
||||
{
|
||||
public partial class FrmMain : Form
|
||||
{
|
||||
public DynamicControlDetailModel Model;
|
||||
public MainDataModel DataModel;
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Load += OnFrmMainLoad;
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化时
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnFrmMainLoad(object sender, EventArgs e)
|
||||
{
|
||||
GetControlData(Model);
|
||||
InitSpiltLocation();
|
||||
InitControlView();
|
||||
InitControlEvents();
|
||||
SetControlData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取数据
|
||||
/// </summary>
|
||||
public void GetControlData(DynamicControlDetailModel mainModel)
|
||||
{
|
||||
DataModel = new MainDataModel();
|
||||
DataModel.MainSysModel = mainModel;
|
||||
DataRow topSysRow = MainImpl.GetSystemdllTab(DataModel.MainSysModel.ModuleCode);
|
||||
DataModel.MainModuleModel = new ModuleModel(topSysRow);
|
||||
DataModel.MainModuleModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(DataModel.MainSysModel.ModuleCode);
|
||||
DataModel.MainGridColumns = BaseModuleImpl.GetBaseGridColumns(DataModel.MainSysModel.ModuleCode);
|
||||
DataModel.MainRightMenus = BaseModuleImpl.GetBaseGridRightMenus(DataModel.MainModuleModel.FormKey);
|
||||
DataModel.MainRowColors = BaseModuleImpl.GetBaseGridRowColors(DataModel.MainModuleModel.FormKey);
|
||||
DataModel.MainSearchTab = BaseModuleImpl.GetCustomQueryFields(DataModel.MainModuleModel.CondKey);
|
||||
DataModel.MainFixedSearchTab = BaseModuleImpl.GetFixedQueryFields(DataModel.MainSysModel.ModuleCode);//固定查询条件
|
||||
DataModel.MainSchemesTable = BaseModuleImpl.GetSchemesList(DataModel.MainSysModel.ModuleId);
|
||||
DataModel.MainSearchObj = new MyControl(DataModel.MainModuleModel.MenuSql, gcMain);
|
||||
DataModel.MainSearchObj.Model = DataModel.MainSysModel;
|
||||
DataTable detailsTab = BaseModuleImpl.GetBaseDetailPages(DataModel.MainSysModel.ModuleCode);
|
||||
if (detailsTab != null && detailsTab.Rows.Count > 0)
|
||||
{
|
||||
string moduleCode = detailsTab.Rows[0]["unionModule"] + "";
|
||||
DataModel.DetailDetailModel = new GridDetailModel(detailsTab.Rows[0], null, GridCustomColumnStruct.BaseDetailGridView);
|
||||
DataModel.DetailSysModel = new DynamicModel(new string[] { DataModel.MainSysModel.FormText, DataModel.MainSysModel.UserId, DataModel.MainSysModel.UserName, DataModel.MainSysModel.Privilege, moduleCode });
|
||||
DataRow sysRow = MainImpl.GetSystemdllTab(DataModel.DetailSysModel.ModuleCode);
|
||||
DataModel.DetailModuleModel = new ModuleModel(sysRow);
|
||||
DataModel.DetailDetailModel.SystemModel = DataModel.DetailModuleModel;
|
||||
DataModel.DetailModuleModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(DataModel.DetailSysModel.ModuleCode);
|
||||
DataModel.DetailControlTab = BaseModuleImpl.GetControlLocation(DataModel.DetailModuleModel.FormKey, DataModel.DetailModuleModel.ModeCode);
|
||||
DataModel.DetailControlObj = new MyControl()
|
||||
{
|
||||
SystemModel = DataModel.DetailModuleModel,
|
||||
OtherParams = DataModel.DetailSysModel.OtherParams(),
|
||||
Model = DataModel.DetailSysModel
|
||||
};
|
||||
DataModel.DetailControlObj.SetGridLeft(gcMain);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化位置
|
||||
/// </summary>
|
||||
private void InitSpiltLocation()
|
||||
{
|
||||
try
|
||||
{
|
||||
string splitMainWidth = IniHelper.Read(string.Format("ControlDetail_SplitMain_{0}", DataModel.MainSysModel.ModuleCode));
|
||||
if (!string.IsNullOrEmpty(splitMainWidth))
|
||||
{
|
||||
splitMainControl.SplitterPosition = Convert.ToInt32(splitMainWidth);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化控件
|
||||
/// </summary>
|
||||
public void InitControlView()
|
||||
{
|
||||
//搜索控件
|
||||
bool fixedQuery = DataModel.MainSearchTab == null || DataModel.MainSearchTab.Rows.Count == 0;
|
||||
if (!fixedQuery)
|
||||
{
|
||||
pl_top_fix_search.Visible = false;
|
||||
pl_mainSearch.Height = DataModel.MainSearchObj.InitSearchControl(DataModel.MainSearchTab, this.pl_search, true, DataModel.MainSchemesTable, DataModel.MainSysModel);
|
||||
pl_search.Width = DataModel.MainSearchObj.ParentPanel.Controls.Cast<System.Windows.Forms.Control>().Max(n => n.Location.X + n.Width) + 5;
|
||||
}
|
||||
else
|
||||
{
|
||||
pl_top_fix_search.Visible = true;
|
||||
cbField.DisplayMember = "fieldText";
|
||||
cbField.ValueMember = "fieldName";
|
||||
cbField.DataSource = DataModel.MainFixedSearchTab;
|
||||
DataModel.MainSearchObj.InitDefaultSearchControl(DataModel.MainFixedSearchTab, pl_top_fix_search);
|
||||
}
|
||||
//左侧表格
|
||||
gcMain.Model = DataModel.MainSysModel;
|
||||
gcMain.SetEditColumns(DataModel.MainGridColumns, GridCustomColumnStruct.BaseMainGridView + DataModel.MainModuleModel.FormKey);
|
||||
gcMain.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(DataModel.MainModuleModel.FormKey), DataModel.MainSysModel);
|
||||
gcMain.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(DataModel.MainModuleModel.FormKey));
|
||||
//右侧控件
|
||||
DataModel.DetailControlObj.InitControl(DataModel.DetailControlTab, pl_main, BaseModuleImpl.GetAddGroupData(DataModel.DetailModuleModel.FormKey), true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 绑定控件事件
|
||||
/// </summary>
|
||||
public void InitControlEvents()
|
||||
{
|
||||
splitMainControl.SplitterPositionChanged += OnSplitContainerPositionChanged;
|
||||
gcMain.GridView.RowCellClick += OnGridViewRowCellClick;
|
||||
GridDragControl dragGrid = new GridDragControl(gcMain.GridView, pl_main);
|
||||
dragGrid.OnDragComplete += OnDragGridOnDragComplete;
|
||||
btnClear.Click += OnBtnClearClick;
|
||||
btnAdd.Click += OnBtnAddClick;
|
||||
btnUpdate.Click += OnBtnUpdateClick;
|
||||
}
|
||||
/// <summary>
|
||||
/// 设置数据
|
||||
/// </summary>
|
||||
public void SetControlData()
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 分隔条位置改变时
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnSplitContainerPositionChanged(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (DataModel.MainSysModel != null)
|
||||
{
|
||||
IniHelper.Write(string.Format("ControlDetail_SplitMain_{0}", DataModel.MainSysModel.ModuleCode), splitMainControl.SplitterPosition + "");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 表格行点击时
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnGridViewRowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataRow rowItem = gcMain.GridView.GetFocusedDataRow();
|
||||
string searchSql = GetSearchSql(DataModel.DetailDetailModel, rowItem);
|
||||
DataRow dataRow = BaseImpl.GetDataRowResult(searchSql);
|
||||
DataModel.DetailControlObj.SetAllControlValue(dataRow);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 表格拖拽到控件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnDragGridOnDragComplete(object sender, GridDragControlArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataRow dataRow = e.SourceGridViewObj.GetFocusedDataRow();
|
||||
if (dataRow != null)
|
||||
{
|
||||
DataModel.DetailControlObj.SetAllControlValue(dataRow);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public void UpdateControlRecord()
|
||||
{
|
||||
if (DataModel.DetailControlObj.VerifyNull())
|
||||
{
|
||||
string primaryKey = DataModel.DetailControlObj.GetControlValue(DataModel.DetailModuleModel.ParmaryKey);
|
||||
string PrimaryValue = "";
|
||||
if (DataModel.DetailControlObj.SaveBaseModuleData(DataModel.DetailSysModel.ModuleCode, DataModel.DetailModuleModel.MenuTable, DataModel.DetailModuleModel.ParmaryKey, ref PrimaryValue, false, "", true, DataModel.DetailModuleModel.NewVer))
|
||||
{
|
||||
SetUpdateData(primaryKey, PrimaryValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加数据
|
||||
/// </summary>
|
||||
/// <param name="isTip"></param>
|
||||
/// <returns></returns>
|
||||
public void AddControlRecord(bool isTip = true)
|
||||
{
|
||||
if (DataModel.DetailControlObj.VerifyNull())
|
||||
{
|
||||
string primaryKey = DataModel.DetailControlObj.GetControlValue(DataModel.DetailModuleModel.ParmaryKey);
|
||||
if (DataModel.DetailControlObj.SaveBaseModuleData(DataModel.DetailSysModel.ModuleCode, DataModel.DetailModuleModel.MenuTable, DataModel.DetailModuleModel.ParmaryKey, ref primaryKey, true, "", isTip, DataModel.DetailModuleModel.NewVer))
|
||||
{
|
||||
string PrimaryValue = DataModel.MainModuleModel.NewVer == 0 ? DataModel.DetailControlObj.GetControlValue(DataModel.DetailModuleModel.ParmaryKey) : primaryKey;
|
||||
if (primaryKey.Contains("LskjIdebtity"))
|
||||
{
|
||||
PrimaryValue = primaryKey.Replace("LskjIdebtity", "");
|
||||
}
|
||||
DataModel.DetailControlObj.SetControlValue(DataModel.DetailModuleModel.ParmaryKey, PrimaryValue);
|
||||
DataRow rowItem = BaseImpl.GetDataRowResult(string.Format("select * from {0} where {1}='{2}'", DataModel.DetailModuleModel.MenuTable, DataModel.DetailModuleModel.ParmaryKey, PrimaryValue));
|
||||
DataModel.DetailControlObj.CanExecControl = false;
|
||||
DataModel.DetailControlObj.SetAllControlValue(rowItem);
|
||||
DataModel.DetailControlObj.CanExecControl = true;
|
||||
DataModel.DetailControlObj.SyncLocalModel();
|
||||
SetUpdateData(primaryKey, PrimaryValue);//重新加载数据
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:设置修改数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-09 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SetUpdateData(string primaryKey, string PrimaryValue)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(PrimaryValue))
|
||||
{
|
||||
// 修改默认赋值
|
||||
string sqlValue = ReplaceHelper.ReplaceWhereCond(DataModel.DetailModuleModel.MenuSql);
|
||||
sqlValue = string.Format("{0} AND {1}='{2}'", sqlValue, primaryKey, PrimaryValue);
|
||||
DataTable tableResult = BaseImpl.GetDataTableResult(sqlValue);
|
||||
if (tableResult != null && tableResult.Rows.Count > 0)
|
||||
{
|
||||
DataRow rowItem = tableResult.Rows[0];
|
||||
DataModel.DetailControlObj.CurrentData = rowItem;
|
||||
DataModel.DetailControlObj.SetAllControlValue(rowItem);
|
||||
// 同步本地数据,用于关闭时检查数据是否已修改.
|
||||
DataModel.DetailControlObj.SyncLocalModel();
|
||||
}
|
||||
}
|
||||
DataModel.DetailControlObj.CanExecControl = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存按钮点击
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnBtnClearClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
DataModel.DetailControlObj.ResetControlValue();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 新增按钮点击
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnBtnAddClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
AddControlRecord();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改按钮点击
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnBtnUpdateClick(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
UpdateControlRecord();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取查询条件
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <param name="rowItem"></param>
|
||||
/// <param name="isLeft"></param>
|
||||
/// <returns></returns>
|
||||
protected string GetSearchSql(GridDetailModel model, DataRow rowItem, bool isLeft = false)
|
||||
{
|
||||
string fieldName = !string.IsNullOrEmpty(model.UnionParentField) && rowItem.Table.Columns.Contains(model.UnionParentField) ? model.UnionParentField : DataModel.DetailModuleModel.ParmaryKey;
|
||||
string sqlValue = model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(rowItem, sqlValue);
|
||||
DataRow row = gcMain.GridView.GetFocusedDataRow
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{5B1FE500-405E-4E3C-8B5F-48D5BC45F85F}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>Lskj.PubControlDetail</RootNamespace>
|
||||
<AssemblyName>Lskj.PubControlDetail</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</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>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Data.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Utils.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MainDataModel.cs" />
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\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>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Lskj.Business\Lskj.Business.csproj">
|
||||
<Project>{7EAFCCC2-A18F-49E9-85C6-A984966CFD01}</Project>
|
||||
<Name>Lskj.Business</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Control\Lskj.Control.csproj">
|
||||
<Project>{447cdc40-659f-4cca-9ed6-8e818b4cf8bf}</Project>
|
||||
<Name>Lskj.Control</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Model\Lskj.Model.csproj">
|
||||
<Project>{52BC40E0-C0C6-4F78-996B-CAE028D209CA}</Project>
|
||||
<Name>Lskj.Model</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.ProductSched\Lskj.ProductSched.csproj">
|
||||
<Project>{2971D75B-B55D-49A3-898B-11D032A06232}</Project>
|
||||
<Name>Lskj.ProductSched</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Lskj.Util\Lskj.Util.csproj">
|
||||
<Project>{A51BF642-6543-4DE3-8948-83F558B72BD4}</Project>
|
||||
<Name>Lskj.Util</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Lskj.PubControlDetail")]
|
||||
[assembly: AssemblyDescri
|
||||
@@ -0,0 +1,40 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本: 4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace Lskj.PubControlDetail.Properties
|
||||
{
|
||||
/// <summary>
|
||||
/// 强类型资源类,用于查找本地化字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
@@ -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 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user