基线 SVN r240
SVN-Revision: r240
This commit is contained in:
+209
@@ -0,0 +1,209 @@
|
||||
namespace Lskj.PubModelAdd
|
||||
{
|
||||
partial class BaseModelAdd
|
||||
{
|
||||
/// <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.sccMain_container = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.pl_left = new DevExpress.XtraEditors.PanelControl();
|
||||
this.pl_left_main = new System.Windows.Forms.Panel();
|
||||
this.pl_gridandtree_container = new DevExpress.XtraEditors.PanelControl();
|
||||
this.sccLeft_container = new DevExpress.XtraEditors.SplitContainerControl();
|
||||
this.mg_control = new Lskj.Control.ModuleGridEx();
|
||||
this.mg_BottomControl = new Lskj.Control.ModuleGridEx();
|
||||
this.pl_right = new DevExpress.XtraEditors.PanelControl();
|
||||
this.mg_DetailPage = new Lskj.Control.TabControlEx();
|
||||
this.group = new System.Windows.Forms.GroupBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.sccMain_container)).BeginInit();
|
||||
this.sccMain_container.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_left)).BeginInit();
|
||||
this.pl_left.SuspendLayout();
|
||||
this.pl_left_main.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_gridandtree_container)).BeginInit();
|
||||
this.pl_gridandtree_container.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.sccLeft_container)).BeginInit();
|
||||
this.sccLeft_container.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_right)).BeginInit();
|
||||
this.pl_right.SuspendLayout();
|
||||
this.group.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// sccMain_container
|
||||
//
|
||||
this.sccMain_container.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default;
|
||||
this.sccMain_container.CollapsePanel = DevExpress.XtraEditors.SplitCollapsePanel.Panel1;
|
||||
this.sccMain_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sccMain_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.sccMain_container.Name = "sccMain_container";
|
||||
this.sccMain_container.Panel1.Controls.Add(this.pl_left);
|
||||
this.sccMain_container.Panel1.Text = "Panel1";
|
||||
this.sccMain_container.Panel2.Controls.Add(this.pl_right);
|
||||
this.sccMain_container.Panel2.Text = "Panel2";
|
||||
this.sccMain_container.Size = new System.Drawing.Size(1246, 659);
|
||||
this.sccMain_container.SplitterPosition = 380;
|
||||
this.sccMain_container.TabIndex = 12;
|
||||
this.sccMain_container.Text = "splitContainerControl1";
|
||||
//
|
||||
// pl_left
|
||||
//
|
||||
this.pl_left.Appearance.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_left.Appearance.Options.UseBackColor = true;
|
||||
this.pl_left.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_left.Controls.Add(this.pl_left_main);
|
||||
this.pl_left.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_left.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_left.Name = "pl_left";
|
||||
this.pl_left.Size = new System.Drawing.Size(380, 659);
|
||||
this.pl_left.TabIndex = 0;
|
||||
//
|
||||
// pl_left_main
|
||||
//
|
||||
this.pl_left_main.BackColor = System.Drawing.Color.Transparent;
|
||||
this.pl_left_main.Controls.Add(this.pl_gridandtree_container);
|
||||
this.pl_left_main.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_left_main.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_left_main.Name = "pl_left_main";
|
||||
this.pl_left_main.Size = new System.Drawing.Size(380, 659);
|
||||
this.pl_left_main.TabIndex = 6;
|
||||
//
|
||||
// pl_gridandtree_container
|
||||
//
|
||||
this.pl_gridandtree_container.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_gridandtree_container.Controls.Add(this.sccLeft_container);
|
||||
this.pl_gridandtree_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pl_gridandtree_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.pl_gridandtree_container.Name = "pl_gridandtree_container";
|
||||
this.pl_gridandtree_container.Size = new System.Drawing.Size(380, 659);
|
||||
this.pl_gridandtree_container.TabIndex = 9;
|
||||
//
|
||||
// sccLeft_container
|
||||
//
|
||||
this.sccLeft_container.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sccLeft_container.Horizontal = false;
|
||||
this.sccLeft_container.Location = new System.Drawing.Point(0, 0);
|
||||
this.sccLeft_container.Name = "sccLeft_container";
|
||||
this.sccLeft_container.Panel1.Controls.Add(this.mg_control);
|
||||
this.sccLeft_container.Panel1.Text = "Panel1";
|
||||
this.sccLeft_container.Panel2.Controls.Add(this.group);
|
||||
this.sccLeft_container.Panel2.Text = "Panel2";
|
||||
this.sccLeft_container.Size = new System.Drawing.Size(380, 659);
|
||||
this.sccLeft_container.SplitterPosition = 327;
|
||||
this.sccLeft_container.TabIndex = 1;
|
||||
this.sccLeft_container.Text = "splitContainerControl1";
|
||||
//
|
||||
// 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(380, 327);
|
||||
this.mg_control.TabIndex = 2;
|
||||
this.mg_control.VisibleMrpSearchPanel = false;
|
||||
this.mg_control.VisibleOperPanel = true;
|
||||
this.mg_control.VisibleSearchPanel = true;
|
||||
//
|
||||
// mg_BottomControl
|
||||
//
|
||||
this.mg_BottomControl.BackColor = System.Drawing.Color.Transparent;
|
||||
this.mg_BottomControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.mg_BottomControl.Location = new System.Drawing.Point(3, 18);
|
||||
this.mg_BottomControl.Name = "mg_BottomControl";
|
||||
this.mg_BottomControl.OperShortMode = true;
|
||||
this.mg_BottomControl.Size = new System.Drawing.Size(374, 306);
|
||||
this.mg_BottomControl.TabIndex = 1;
|
||||
this.mg_BottomControl.VisibleMrpSearchPanel = false;
|
||||
this.mg_BottomControl.VisibleOperPanel = true;
|
||||
this.mg_BottomControl.VisibleSearchPanel = true;
|
||||
//
|
||||
// pl_right
|
||||
//
|
||||
this.pl_right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
||||
this.pl_right.Controls.Add(this.mg_DetailPage);
|
||||
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(861, 659);
|
||||
this.pl_right.TabIndex = 0;
|
||||
//
|
||||
// mg_DetailPage
|
||||
//
|
||||
this.mg_DetailPage.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.mg_DetailPage.Location = new System.Drawing.Point(0, 0);
|
||||
this.mg_DetailPage.Name = "mg_DetailPage";
|
||||
this.mg_DetailPage.Size = new System.Drawing.Size(861, 659);
|
||||
this.mg_DetailPage.TabIndex = 27;
|
||||
//
|
||||
// group
|
||||
//
|
||||
this.group.Controls.Add(this.mg_BottomControl);
|
||||
this.group.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.group.Location = new System.Drawing.Point(0, 0);
|
||||
this.group.Name = "group";
|
||||
this.group.Size = new System.Drawing.Size(380, 327);
|
||||
this.group.TabIndex = 2;
|
||||
this.group.TabStop = false;
|
||||
this.group.Text = "groupBox1";
|
||||
//
|
||||
// BaseModelAdd
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.sccMain_container);
|
||||
this.Name = "BaseModelAdd";
|
||||
this.Size = new System.Drawing.Size(1246, 659);
|
||||
((System.ComponentModel.ISupportInitialize)(this.sccMain_container)).EndInit();
|
||||
this.sccMain_container.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_left)).EndInit();
|
||||
this.pl_left.ResumeLayout(false);
|
||||
this.pl_left_main.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_gridandtree_container)).EndInit();
|
||||
this.pl_gridandtree_container.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.sccLeft_container)).EndInit();
|
||||
this.sccLeft_container.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pl_right)).EndInit();
|
||||
this.pl_right.ResumeLayout(false);
|
||||
this.group.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private DevExpress.XtraEditors.SplitContainerControl sccMain_container;
|
||||
private DevExpress.XtraEditors.PanelControl pl_left;
|
||||
private System.Windows.Forms.Panel pl_left_main;
|
||||
private DevExpress.XtraEditors.PanelControl pl_gridandtree_container;
|
||||
private DevExpress.XtraEditors.PanelControl pl_right;
|
||||
private DevExpress.XtraEditors.SplitContainerControl sccLeft_container;
|
||||
private Control.ModuleGridEx mg_BottomControl;
|
||||
private Control.TabControlEx mg_DetailPage;
|
||||
private Control.ModuleGridEx mg_control;
|
||||
private System.Windows.Forms.GroupBox group;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,622 @@
|
||||
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.Model;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Util;
|
||||
using Lskj.Data;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Control;
|
||||
using Lskj.Business;
|
||||
using DevExpress.XtraGrid.Columns;
|
||||
using DevExpress.XtraGrid.Views.Grid;
|
||||
using DevExpress.XtraTab;
|
||||
using DevExpress.XtraGrid.Views.Grid.ViewInfo;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.XtraEditors;
|
||||
|
||||
namespace Lskj.PubModelAdd
|
||||
{
|
||||
public partial class BaseModelAdd : UserControl
|
||||
{
|
||||
public BaseModelAdd()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
#region 私有变量
|
||||
/// <summary>
|
||||
/// 模块初始化完成
|
||||
/// </summary>
|
||||
private bool _isInitFinish;
|
||||
/// <summary>
|
||||
/// 表格列
|
||||
/// </summary>
|
||||
private DataTable _gridColumns = new DataTable();
|
||||
/// <summary>
|
||||
/// 主键名
|
||||
/// </summary>
|
||||
private string _primaryLeftKey;
|
||||
/// <summary>
|
||||
/// 左侧表格查询条件
|
||||
/// </summary>
|
||||
private MyControl _leftGridSearchObj;
|
||||
#endregion
|
||||
#region 公共变量
|
||||
/// <summary>
|
||||
/// 左侧树数据
|
||||
/// </summary>
|
||||
public DataRow LeftRowObj;
|
||||
/// <summary>
|
||||
/// 基础添加模块的入口参数
|
||||
/// </summary>
|
||||
public DynamicPubModelAdd Model;
|
||||
/// <summary>
|
||||
/// 基础添加模块的入口参数
|
||||
/// </summary>
|
||||
public DynamicPubModelAdd BandModel;
|
||||
/// <summary>
|
||||
/// 明细集合
|
||||
/// </summary>
|
||||
List<GridDetailModel> details = new List<GridDetailModel>();//表格明细对象的集合
|
||||
/// <summary>
|
||||
/// 明细集合
|
||||
/// </summary>
|
||||
List<GridDetailModel> detailChildren = new List<GridDetailModel>();//表格明细子明细对象的集合
|
||||
/// <summary>
|
||||
///左上方查询条件控件
|
||||
/// </summary>
|
||||
public MyControl SearchLeftObj;
|
||||
/// <summary>
|
||||
/// 顶部表格控件
|
||||
/// </summary>
|
||||
public ModuleGridEx ModuleGridObj;
|
||||
|
||||
/// <summary>
|
||||
/// 左侧明细类型
|
||||
/// </summary>
|
||||
public GridDetailModel LeftgridDetail;
|
||||
/// <summary>
|
||||
/// 系统模块实体对象
|
||||
/// </summary>
|
||||
/// <value>The system model.</value>
|
||||
public ModuleModel SysModel { get; private set; }
|
||||
/// <summary>
|
||||
/// 主表模块明细数据源
|
||||
/// </summary>
|
||||
/// <value>The system model.</value>
|
||||
public DataTable moduleDetailTable { get; private set; }
|
||||
/// <summary>
|
||||
/// 系统模块下部分实体对象
|
||||
/// </summary>
|
||||
/// <value>The system model.</value>
|
||||
public ModuleModel BottomModel { get; private set; }
|
||||
/// <summary>
|
||||
/// 左侧条件
|
||||
/// </summary>
|
||||
public string LeftCond;
|
||||
|
||||
/// <summary>
|
||||
/// 是否第一次点击加载
|
||||
/// </summary>
|
||||
public bool isFirstCilk;
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// <para>说明:窗口加载</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2019-06-28 </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>
|
||||
public void OnLoad(DynamicPubModelAdd Model)
|
||||
{
|
||||
WaitForm.ShowForm();
|
||||
try
|
||||
{
|
||||
this.sccLeft_container.SplitterPositionChanged += OnSplitterPositionChanged;
|
||||
this.sccMain_container.SplitterPositionChanged += OnSplitterPositionChanged;
|
||||
this._isInitFinish = false;
|
||||
this.Model = Model;
|
||||
InitlizeSpiltLocation();
|
||||
DataRow modelRow = MainImpl.GetSystemdllTab(this.Model.ModuleCode);
|
||||
if (modelRow == null)
|
||||
{
|
||||
MessageUtil.Show("模块编号[" + this.Model.ModuleCode + "],配置错误!\r\n该模块信息未找到!");
|
||||
return;
|
||||
}
|
||||
this.SysModel = new ModuleModel(modelRow);//主模块参数
|
||||
this.moduleDetailTable = BaseModuleImpl.GetBaseDetailPages(this.Model.ModuleCode);//通过明细获取动态表格
|
||||
foreach (DataRow item in moduleDetailTable.Rows)
|
||||
{
|
||||
if (item["orderId"].ToString() == "-1") continue;
|
||||
DataTable gridColumns = ReportImpl.GetReportDetailColumns(this.Model.ModuleCode, item["id"] + "");//获取报表明细列
|
||||
details.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
|
||||
}
|
||||
InitializeGrid();//初始化主表和-1明细模块
|
||||
InitializeDetail();//初始化主表明细
|
||||
this.mg_control.SearchObj.OnDataSourceBindCallBack += new EventHandler(OnDataSourceBindCallBack);//主模块条件绑定完成后触发查询操作
|
||||
//this.mg_BottomControl.SearchObj.OnDataSourceBindCallBack += new EventHandler(OnleftBindCallBack);//主模块条件绑定完成后触发查询操作
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex, ResourceKeys.BaseModule);
|
||||
//MessageUtil.Show(ex.Message + "\r\n" + ex.StackTrace);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
this._isInitFinish = true;
|
||||
|
||||
}
|
||||
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
#region 方法
|
||||
#region 数据源绑定完成后执行
|
||||
/// <summary>
|
||||
/// <para>说明:数据源绑定完成后执行</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期: </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="EventArgs"/> instance containing the event data.</param>
|
||||
void OnDataSourceBindCallBack(object sender, EventArgs e)
|
||||
{
|
||||
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.SysModel.MenuSql);
|
||||
this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.SetSearchSqlValue(sqlValue, true, false);
|
||||
this.ModuleGridObj.SearchObj.SearchLastGrid();
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:数据源绑定完成后执行</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期: </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="EventArgs"/> instance containing the event data.</param>
|
||||
void OnleftBindCallBack(object sender, EventArgs e)
|
||||
{
|
||||
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.mg_BottomControl.SysModel.MenuSql);
|
||||
this.mg_BottomControl.GridControlObj.LastSearchSql = this.mg_BottomControl.SearchObj.SetSearchSqlValue(sqlValue, true, false);
|
||||
this.mg_BottomControl.SearchObj.SearchLastGrid();
|
||||
}
|
||||
#endregion
|
||||
#region 初始化配置表格表
|
||||
/// <summary>
|
||||
/// <para>说明:加载下部分表格</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2020-09-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void InitializeGrid()
|
||||
{
|
||||
mg_control.InitializeControl(SysModel, Model);
|
||||
this.ModuleGridObj = mg_control;
|
||||
this.ModuleGridObj.GridControlObj.GridView.RowClick += new DevExpress.XtraGrid.Views.Grid.RowClickEventHandler(OnGridViewRowClick);//单击主表刷新所有数据
|
||||
DataRow LeftItem = moduleDetailTable.Rows.Cast<DataRow>().FirstOrDefault(x => int.Parse(x["orderId"] + "") == -1);//获取所有明细为1的集合数据
|
||||
if (LeftItem != null)
|
||||
{
|
||||
DataTable gridColumns = ReportImpl.GetReportDetailColumns(this.Model.ModuleCode, LeftItem["id"] + "");//获取报表明细列
|
||||
this.LeftgridDetail = new GridDetailModel(LeftItem, gridColumns, GridCustomColumnStruct.BaseDetailGridView);
|
||||
if (LeftgridDetail != null)
|
||||
{
|
||||
this.BottomModel = new ModuleModel(MainImpl.GetSystemdllTab(LeftgridDetail.UnionModule));
|
||||
LeftgridDetail.SystemModel = BottomModel;
|
||||
DynamicModel dynamicPubModelAdd = new DynamicPubModelAdd(new string[] { BottomModel.MenuText, ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, this.Model.Privilege, LeftgridDetail.UnionModule, "0" });
|
||||
//this.mg_BottomControl.OperShortMode = true; // 不显示简短模式
|
||||
this.mg_BottomControl.ParentGridEx = mg_control.GridControlObj;
|
||||
this.mg_BottomControl.ParentKeyField = string.IsNullOrEmpty(LeftgridDetail.UnionParentField) ? LeftgridDetail.SystemModel.ParmaryKey : LeftgridDetail.UnionParentField;
|
||||
this.mg_BottomControl.DetailKeyField = LeftgridDetail.UnionValue;
|
||||
this.mg_BottomControl.VisibleSearchPanel = false;
|
||||
//this.mg_BottomControl.VisibleOperPanel = false;
|
||||
this.mg_BottomControl.InitializeControl(BottomModel, dynamicPubModelAdd);
|
||||
group.Text = LeftgridDetail.DetailName;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.sccLeft_container.PanelVisibility = SplitPanelVisibility.Panel1;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 单击主表数据刷新所有明细数据源
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnGridViewRowClick(object sender, RowClickEventArgs e)
|
||||
{
|
||||
//左下数据源刷新
|
||||
if (this.BottomModel != null)
|
||||
{
|
||||
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.BottomModel.MenuSql);
|
||||
DataRow rowItem = this.mg_control.GridControlObj.GetViewFocusedDataRow();
|
||||
sqlValue = this.GetSearchSql(LeftgridDetail, rowItem);//关联主表
|
||||
this.mg_BottomControl.GridControlObj.LastSearchSql = sqlValue;
|
||||
this.mg_BottomControl.SearchObj.SearchLastGrid();
|
||||
}
|
||||
Refresh(this.mg_DetailPage.TabControlObj);
|
||||
isFirstCilk = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 递归父结构让他以gridcontrlEx展示
|
||||
/// </summary>
|
||||
public ModuleGridEx isParentModelCtrEx(System.Windows.Forms.Control myControl)
|
||||
{
|
||||
if (myControl == null) return null;
|
||||
if (myControl.Parent is ModuleGridEx)
|
||||
{
|
||||
return myControl.Parent as ModuleGridEx;
|
||||
}
|
||||
return isParentModelCtrEx(myControl);
|
||||
}
|
||||
public void Refresh(XtraTabControl xtraTabControl, bool isUnionCode = true)
|
||||
{
|
||||
//右侧所有明细刷新
|
||||
foreach (XtraTabPage tabPage in xtraTabControl.TabPages)
|
||||
{
|
||||
if (tabPage.Tag is GridControlEx)
|
||||
{
|
||||
GridControlEx gridControlEx = tabPage.Tag as GridControlEx;
|
||||
GridDetailModel model = gridControlEx.Tag as GridDetailModel;
|
||||
string DetailSql = model.IsReadOnly || model.IsChart ? model.DetailSql : model.SystemModel.MenuSql;
|
||||
|
||||
if (model.IsDrag && !isFirstCilk)
|
||||
{
|
||||
gridControlEx.LastSearchSql = DetailSql;
|
||||
DataTable dataTable = MainImpl.GetDataTableResult(DetailSql);//明细数据源
|
||||
gridControlEx.SetGridViewDataSource(dataTable);
|
||||
}
|
||||
if (!model.IsDrag && isUnionCode)
|
||||
{
|
||||
DataRow rowItem = this.mg_control.GridControlObj.GetViewFocusedDataRow();
|
||||
DetailSql = this.GetSearchSql(model, rowItem);
|
||||
gridControlEx.LastSearchSql = DetailSql;
|
||||
DataTable dataTable = MainImpl.GetDataTableResult(DetailSql);//明细数据源
|
||||
gridControlEx.SetGridViewDataSource(dataTable);
|
||||
}
|
||||
|
||||
//配置明细直接根据条件加载
|
||||
if (model.SystemModel != null)
|
||||
{
|
||||
tabPage.Text = model.DetailName + "(" + gridControlEx.DataRowCount() + "条)";
|
||||
}
|
||||
if (model.DetailType == 4)
|
||||
{
|
||||
if (tabPage.Controls[0] is ModuleGridDetailEx)
|
||||
{
|
||||
ModuleGridDetailEx moduleGridDetailEx = tabPage.Controls[0] as ModuleGridDetailEx;
|
||||
Refresh(moduleGridDetailEx.TabObj, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
/// <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, bool isLeft = false)
|
||||
{
|
||||
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);
|
||||
DataRow row = this.ModuleGridObj.GridControlObj.GetViewFocusedDataRow();
|
||||
if (row != null && isLeft)
|
||||
{
|
||||
//先替换左侧选中行,在替换主表
|
||||
sqlValue = ReplaceHelper.ReplaceRowParam(row, sqlValue);
|
||||
}
|
||||
|
||||
if (ReplaceHelper.IsSelect(sqlValue) && !string.IsNullOrEmpty(model.UnionValue))
|
||||
{
|
||||
string Conditions = string.Empty;
|
||||
//是左侧选中行,并且没有替换字段,则使用主表选中行
|
||||
Conditions = isLeft ? rowItem.Table.Columns.Contains(fieldName) ? rowItem[fieldName] + "" : row[fieldName] + "" : rowItem[fieldName] + "";
|
||||
|
||||
sqlValue = ReplaceHelper.ReplaceWhereCond(sqlValue) + string.Format(" and {0}='{1}'", model.UnionValue, Conditions);
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(model.UnionCond))
|
||||
{
|
||||
string UnionCond = ReplaceHelper.ReplaceRowParam(rowItem, model.UnionCond);
|
||||
sqlValue += UnionCond;
|
||||
}
|
||||
return sqlValue;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:加载下部分表格</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2020-09-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void InitializeDetail()
|
||||
{
|
||||
this.mg_DetailPage.Model = this.Model;
|
||||
this.mg_DetailPage.DrgaParentPrimaryKey = this.SysModel.ParmaryKey;
|
||||
//this.mg_DetailPage.IsDragDetail = true;
|
||||
this.mg_DetailPage.ParentControlEx = this.mg_control.SearchObj;
|
||||
this.mg_DetailPage.ParentGridEx = this.mg_control.GridControlObj;
|
||||
this.mg_DetailPage.OnDragCompleteCallback += OnDetailPageDragCompleteCallback;
|
||||
this.mg_DetailPage.OnDetailViewDoubleClickCallBack += OnDetailPageViewDoubleClickCallBack;
|
||||
this.mg_DetailPage.InitTabPages(details);
|
||||
}
|
||||
private void InitlizeSpiltLocation()
|
||||
{
|
||||
try
|
||||
{
|
||||
string mainWidth = IniHelper.Read(string.Format("PubMultipleTabsMain_{0}", this.Model.ModuleCode));//通过Key获取Value值
|
||||
string leftWidth = IniHelper.Read(string.Format("PubMultipleTabsLeft_{0}", this.Model.ModuleCode));//通过Key获取Value值
|
||||
if (!string.IsNullOrEmpty(mainWidth))
|
||||
{
|
||||
this.sccMain_container.SplitterPosition = Convert.ToInt32(mainWidth);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(leftWidth))
|
||||
{
|
||||
this.sccLeft_container.SplitterPosition = Convert.ToInt32(leftWidth);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定完成后加载数据
|
||||
/// <summary>
|
||||
/// <para>说明:数据绑定完成后加载数据</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期: </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="EventArgs"/> instance containing the event data.</param>
|
||||
protected void OnLeftControlObjDataSourceBindCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._leftGridSearchObj.SearchGrid();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 事件
|
||||
|
||||
#endregion
|
||||
|
||||
#region 右键菜单执行后刷新数据,刷新规则按照上一次查询条件刷新
|
||||
/// <summary>
|
||||
/// <para>说明:右键菜单执行后刷新数据,刷新规则按照上一次查询条件刷新</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2020-09-09 </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
|
||||
{
|
||||
DataRow item = this.ModuleGridObj.GridControlObj.GridView.GetFocusedDataRow();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 明细拖拽回调
|
||||
/// <summary>
|
||||
/// 明细拖拽回调
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnDetailPageDragCompleteCallback(object sender, GridDragGridArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (MessageUtil.Show(ResourceKeys.DragSelectRow, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
XtraTabPage selectPage = mg_DetailPage.TabControlObj.SelectedTabPage;
|
||||
ModuleGridDetailEx moduleGridDetail = (ModuleGridDetailEx)selectPage.Controls[0];
|
||||
ModuleGridEx mainModuleGridEx = moduleGridDetail.ModuleGridObj;
|
||||
DataRow[] rowItems = e.GridViewSelectRows;
|
||||
//if (!ValidateDetailCond(rowItems, BottomModel.DoubleClickAddCond)) return;//不满足条件则退出该方法
|
||||
DataRow GridLeftItem = this.mg_control.GridControlObj.GridView.GetFocusedDataRow();
|
||||
GridColumnCollection gridColumns = e.TargetGridViewObj.Columns;
|
||||
DataTable table = e.TargetGridViewObj.GridControl.DataSourceTable();
|
||||
foreach (DataRow rowItem in rowItems)
|
||||
{
|
||||
if (rowItem == null) continue;
|
||||
DataRow newRow = table.NewRow();
|
||||
foreach (GridColumn col in gridColumns)
|
||||
{
|
||||
if ("id".Equals(col.FieldName)) continue;
|
||||
string ConditionValue = "";
|
||||
//string ConditionValue = this.MoudleBottomObj.SearchObj.GetControlValue(col.FieldName);//获取同它条件的替换值
|
||||
if (rowItem.Table.Columns.Contains(col.FieldName))
|
||||
{
|
||||
// 列中是否包含对应字段,包含则使用值
|
||||
newRow[col.FieldName] = string.IsNullOrWhiteSpace(ConditionValue) ? rowItem[col.FieldName] : ConditionValue;
|
||||
}
|
||||
else if (GridLeftItem != null && GridLeftItem.Table.Columns.Contains(col.FieldName))
|
||||
{
|
||||
newRow[col.FieldName] = GridLeftItem[col.FieldName];
|
||||
}
|
||||
else
|
||||
{
|
||||
// 未包含字段,则使用控件默认值.
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
|
||||
if (!string.IsNullOrEmpty(model.DefaultValue) || !string.IsNullOrEmpty(ConditionValue))
|
||||
{
|
||||
newRow[col.FieldName] = string.IsNullOrWhiteSpace(ConditionValue) ? fieldValue : ConditionValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(newRow);
|
||||
}
|
||||
e.TargetGridViewObj.ClearSelection();
|
||||
e.TargetGridViewObj.UpdateCurrentRow();
|
||||
e.TargetGridViewObj.ShowEditor();
|
||||
mainModuleGridEx.SaveGridRecord(false);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 双击回调
|
||||
/// <summary>
|
||||
/// 双击回调
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void OnDetailPageViewDoubleClickCallBack(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
XtraTabPage selectPage = mg_DetailPage.TabControlObj.SelectedTabPage;
|
||||
if (selectPage != null && selectPage.Controls[0] is ModuleGridDetailEx)
|
||||
{
|
||||
ModuleGridDetailEx moduleGridDetail = (ModuleGridDetailEx)selectPage.Controls[0];
|
||||
ModuleGridEx mainModuleGridEx = moduleGridDetail.ModuleGridObj;
|
||||
ModuleGridEx detailModuleGridEx = (ModuleGridEx)moduleGridDetail.TabObj.SelectedTabPage.Controls[0];
|
||||
ModuleGridEx sourceModuleGridEx = null;
|
||||
ModuleGridEx targetModuleGridEx = null;
|
||||
if ((sender + "").Equals("Main"))
|
||||
{
|
||||
sourceModuleGridEx = mainModuleGridEx;
|
||||
targetModuleGridEx = detailModuleGridEx;
|
||||
}
|
||||
else if ((sender + "").Equals("Detail"))
|
||||
{
|
||||
sourceModuleGridEx = detailModuleGridEx;
|
||||
targetModuleGridEx = mainModuleGridEx;
|
||||
}
|
||||
Point mouseDowmPoint = sourceModuleGridEx.GridControlObj.gridControl.PointToClient(MousePosition);
|
||||
GridHitInfo info = sourceModuleGridEx.GridControlObj.GridView.CalcHitInfo(mouseDowmPoint);
|
||||
//在列标题栏内则退出该方法
|
||||
if (info.InColumnPanel) return;
|
||||
DataRow[] rowItems = new DataRow[] { sourceModuleGridEx.GridControlObj.GridView.GetFocusedDataRow() };
|
||||
//if (!ValidateDetailCond(rowItems, BottomModel.DoubleClickAddCond)) return;//不满足条件则退出该方法
|
||||
DataRow GridLeftItem = this.mg_control.GridControlObj.GridView.GetFocusedDataRow();
|
||||
GridColumnCollection gridColumns = targetModuleGridEx.GridControlObj.GridView.Columns;
|
||||
DataTable table = targetModuleGridEx.GridControlObj.GridControl.DataSourceTable();
|
||||
foreach (DataRow rowItem in rowItems)
|
||||
{
|
||||
if (rowItem == null) continue;
|
||||
DataRow newRow = table.NewRow();
|
||||
foreach (GridColumn col in gridColumns)
|
||||
{
|
||||
if ("id".Equals(col.FieldName)) continue;
|
||||
string ConditionValue = "";
|
||||
//string ConditionValue = this.MoudleBottomObj.SearchObj.GetControlValue(col.FieldName);//获取同它条件的替换值
|
||||
if (rowItem.Table.Columns.Contains(col.FieldName))
|
||||
{
|
||||
// 列中是否包含对应字段,包含则使用值
|
||||
newRow[col.FieldName] = string.IsNullOrWhiteSpace(ConditionValue) ? rowItem[col.FieldName] : ConditionValue;
|
||||
}
|
||||
else if (GridLeftItem != null && GridLeftItem.Table.Columns.Contains(col.FieldName))
|
||||
{
|
||||
newRow[col.FieldName] = GridLeftItem[col.FieldName];
|
||||
}
|
||||
else
|
||||
{
|
||||
// 未包含字段,则使用控件默认值.
|
||||
GridColumnModel model = col.Tag as GridColumnModel;
|
||||
string fieldValue = BaseImpl.GetDefaultValue(model.DefaultValue);
|
||||
if (!string.IsNullOrEmpty(model.DefaultValue) || !string.IsNullOrEmpty(ConditionValue))
|
||||
{
|
||||
newRow[col.FieldName] = string.IsNullOrWhiteSpace(ConditionValue) ? fieldValue : ConditionValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
table.Rows.Add(newRow);
|
||||
}
|
||||
targetModuleGridEx.GridControlObj.GridView.ClearSelection();
|
||||
targetModuleGridEx.GridControlObj.GridView.UpdateCurrentRow();
|
||||
targetModuleGridEx.GridControlObj.GridView.ShowEditor();
|
||||
targetModuleGridEx.SaveGridRecord(false);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
private void OnSplitterPositionChanged(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SplitContainerControl splitContainerControl = (SplitContainerControl)sender;
|
||||
if (this.Model != null)
|
||||
{
|
||||
if (splitContainerControl == sccMain_container)
|
||||
{
|
||||
IniHelper.Write(string.Format("PubMultipleTabsMain_{0}", this.Model.ModuleCode), this.sccMain_container.SplitterPosition + "");
|
||||
}
|
||||
else if (splitContainerControl == sccLeft_container)
|
||||
{
|
||||
IniHelper.Write(string.Format("PubMultipleTabsLeft_{0}", this.Model.ModuleCode), this.sccLeft_container.SplitterPosition + "");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -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,48 @@
|
||||
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;
|
||||
using Lskj.Business.Impl;
|
||||
|
||||
namespace Lskj.PubModelAdd
|
||||
{
|
||||
/// <summary>
|
||||
/// c#库被调用统一接口类
|
||||
/// </summary>
|
||||
public sealed class DllBaseClass : IForm
|
||||
{
|
||||
public DllBaseClass()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public DllBaseClass(string[] obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
DynamicPubModelAdd moduleModel = new DynamicPubModelAdd(obj);
|
||||
int formType = ReportImpl.GetBaseType(moduleModel.ModuleCode);
|
||||
if (formType == 1) moduleModel.isBandGrid = true;
|
||||
FrmMain main = new FrmMain();
|
||||
this.SubForm = main;
|
||||
main.Model = moduleModel;
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PubModelAdd.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
namespace Lskj.PubModelAdd
|
||||
{
|
||||
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.baseModelAdd = new Lskj.PubModelAdd.BaseModelAdd();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// baseModelAdd
|
||||
//
|
||||
this.baseModelAdd.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.baseModelAdd.Location = new System.Drawing.Point(0, 0);
|
||||
this.baseModelAdd.Name = "baseModelAdd";
|
||||
this.baseModelAdd.Size = new System.Drawing.Size(1425, 828);
|
||||
this.baseModelAdd.TabIndex = 0;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.Appearance.Options.UseBackColor = true;
|
||||
this.Appearance.Options.UseFont = true;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1425, 828);
|
||||
this.Controls.Add(this.baseModelAdd);
|
||||
this.Name = "FrmMain";
|
||||
this.Text = "Form1";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private BaseModelAdd baseModelAdd;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
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 Lskj.Control;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Data;
|
||||
using Lskj.Util;
|
||||
|
||||
namespace Lskj.PubModelAdd
|
||||
{
|
||||
public partial class FrmMain : BaseForm
|
||||
{
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
/// <summary>
|
||||
/// 基础模型
|
||||
/// </summary>
|
||||
public DynamicPubModelAdd Model;
|
||||
/// <summary>
|
||||
/// <para>说明:初始化基础档案上下增加</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2019-12-23 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
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
|
||||
{
|
||||
this.baseModelAdd.LeftCond = Model.LeftCond;
|
||||
this.baseModelAdd.OnLoad(Model);
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
//MessageUtil.Show(ex);
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Lskj.Control.Model.AutoSizeChange.ControllInitializeSize(this);
|
||||
WaitForm.HideForm();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,143 @@
|
||||
<?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>{40D7E8AA-63D9-47BC-A830-199AE517A28F}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Lskj.PubMultipleTabs</RootNamespace>
|
||||
<AssemblyName>Lskj.PubMultipleTabs</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Debug\Lib\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>..\..\Debug\AllMethodXml\Lskj.PubModelAdd.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.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.XtraEditors.v15.2" />
|
||||
<Reference Include="DevExpress.XtraGrid.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>C:\Program Files (x86)\DevExpress 15.2\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="BaseModelAdd.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BaseModelAdd.Designer.cs">
|
||||
<DependentUpon>BaseModelAdd.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DllBaseClass.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="BaseModelAdd.resx">
|
||||
<DependentUpon>BaseModelAdd.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<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.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>
|
||||
@@ -0,0 +1,36 @@
|
||||
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.PubModelAdd")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Lskj.PubModelAdd")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2013")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("9006f149-aa49-4b8e-ba69-386d945fa738")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubMultipleTabs.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Lskj.PubMultipleTabs.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Lskj.PubMultipleTabs.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.1.3.1" newVersion="2.1.3.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.6.10.0" newVersion="2.6.10.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.XLS" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-10.3.8.0" newVersion="10.3.8.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.Presentation" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-5.3.6.0" newVersion="5.3.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Spire.Doc" publicKeyToken="663f351905198cb3" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-8.3.15.0" newVersion="8.3.15.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user