提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+241
View File
@@ -0,0 +1,241 @@
namespace Lskj.PubModelAdd3
{
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.gridLeft = new Lskj.Control.GridControlEx();
this.pl_left_top = new DevExpress.XtraEditors.PanelControl();
this.pl_right = new DevExpress.XtraEditors.PanelControl();
this.sccRight_container = new DevExpress.XtraEditors.SplitContainerControl();
this.TabControl = new Lskj.Control.TabControlEx();
this.mg_control = new Lskj.Control.ModuleGridEx();
this.mg_bandcontrol = new Lskj.Control.ModuleGridEx();
this.mg_Bottom = new Lskj.Control.ModuleGridEx();
((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.pl_left_top)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pl_right)).BeginInit();
this.pl_right.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sccRight_container)).BeginInit();
this.sccRight_container.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 = 381;
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(381, 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.Controls.Add(this.pl_left_top);
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(381, 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.gridLeft);
this.pl_gridandtree_container.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_gridandtree_container.Location = new System.Drawing.Point(0, 36);
this.pl_gridandtree_container.Name = "pl_gridandtree_container";
this.pl_gridandtree_container.Size = new System.Drawing.Size(381, 623);
this.pl_gridandtree_container.TabIndex = 9;
//
// gridLeft
//
this.gridLeft.AdapterObj = null;
this.gridLeft.BackColor = System.Drawing.SystemColors.Control;
this.gridLeft.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridLeft.Location = new System.Drawing.Point(0, 0);
this.gridLeft.Margin = new System.Windows.Forms.Padding(4);
this.gridLeft.Name = "gridLeft";
this.gridLeft.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
this.gridLeft.Size = new System.Drawing.Size(381, 623);
this.gridLeft.TabIndex = 6;
//
// pl_left_top
//
this.pl_left_top.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.pl_left_top.Appearance.Options.UseBackColor = true;
this.pl_left_top.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_left_top.Dock = System.Windows.Forms.DockStyle.Top;
this.pl_left_top.Location = new System.Drawing.Point(0, 0);
this.pl_left_top.Name = "pl_left_top";
this.pl_left_top.Size = new System.Drawing.Size(381, 36);
this.pl_left_top.TabIndex = 8;
//
// pl_right
//
this.pl_right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.pl_right.Controls.Add(this.sccRight_container);
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(860, 659);
this.pl_right.TabIndex = 0;
//
// sccRight_container
//
this.sccRight_container.Dock = System.Windows.Forms.DockStyle.Fill;
this.sccRight_container.Horizontal = false;
this.sccRight_container.Location = new System.Drawing.Point(0, 0);
this.sccRight_container.Name = "sccRight_container";
this.sccRight_container.Panel1.Controls.Add(this.mg_Bottom);
this.sccRight_container.Panel1.Controls.Add(this.TabControl);
this.sccRight_container.Panel1.Text = "Panel1";
this.sccRight_container.Panel2.Controls.Add(this.mg_control);
this.sccRight_container.Panel2.Controls.Add(this.mg_bandcontrol);
this.sccRight_container.Panel2.Text = "Panel2";
this.sccRight_container.Size = new System.Drawing.Size(860, 659);
this.sccRight_container.SplitterPosition = 327;
this.sccRight_container.TabIndex = 0;
this.sccRight_container.Text = "splitContainerControl1";
//
// TabControl
//
this.TabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabControl.Location = new System.Drawing.Point(0, 0);
this.TabControl.Name = "TabControl";
this.TabControl.Size = new System.Drawing.Size(860, 327);
this.TabControl.TabIndex = 2;
//
// 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(860, 327);
this.mg_control.TabIndex = 0;
this.mg_control.VisibleMrpSearchPanel = false;
this.mg_control.VisibleOperPanel = true;
this.mg_control.VisibleSearchPanel = true;
//
// mg_bandcontrol
//
this.mg_bandcontrol.BackColor = System.Drawing.Color.Transparent;
this.mg_bandcontrol.Dock = System.Windows.Forms.DockStyle.Fill;
this.mg_bandcontrol.Location = new System.Drawing.Point(0, 0);
this.mg_bandcontrol.Name = "mg_bandcontrol";
this.mg_bandcontrol.OperShortMode = true;
this.mg_bandcontrol.Size = new System.Drawing.Size(860, 327);
this.mg_bandcontrol.TabIndex = 1;
this.mg_bandcontrol.VisibleMrpSearchPanel = false;
this.mg_bandcontrol.VisibleOperPanel = true;
this.mg_bandcontrol.VisibleSearchPanel = true;
//
// mg_Bottom
//
this.mg_Bottom.BackColor = System.Drawing.Color.Transparent;
this.mg_Bottom.Dock = System.Windows.Forms.DockStyle.Fill;
this.mg_Bottom.Location = new System.Drawing.Point(0, 0);
this.mg_Bottom.Name = "mg_Bottom";
this.mg_Bottom.OperShortMode = true;
this.mg_Bottom.Size = new System.Drawing.Size(860, 327);
this.mg_Bottom.TabIndex = 1;
this.mg_Bottom.VisibleMrpSearchPanel = false;
this.mg_Bottom.VisibleOperPanel = true;
this.mg_Bottom.VisibleSearchPanel = true;
//
// 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.pl_left_top)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pl_right)).EndInit();
this.pl_right.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.sccRight_container)).EndInit();
this.sccRight_container.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 Control.GridControlEx gridLeft;
private DevExpress.XtraEditors.PanelControl pl_left_top;
private DevExpress.XtraEditors.PanelControl pl_right;
private DevExpress.XtraEditors.SplitContainerControl sccRight_container;
private Control.ModuleGridEx mg_bandcontrol;
private Control.ModuleGridEx mg_control;
private Control.TabControlEx TabControl;
private Control.ModuleGridEx mg_Bottom;
}
}
+906
View File
@@ -0,0 +1,906 @@
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.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid.ViewInfo;
using DevExpress.XtraEditors;
using DevExpress.XtraTab;
namespace Lskj.PubModelAdd3
{
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>
public ModuleGridEx MoudleBottomObj { get; set; }
public GridDetailModel BottomDetailModel;
/// <summary>
///左上方查询条件控件
/// </summary>
public MyControl SearchLeftObj;
/// <summary>
/// 顶部表格控件
/// </summary>
public ModuleGridEx ModuleGridObj;
/// <summary>
/// 系统模块实体对象
/// </summary>
/// <value>The system model.</value>
public ModuleModel SysModel { get; private set; }
/// <summary>
/// 底部多标签表格数据
/// </summary>
public List<GridDetailModel> GridDetailList;
/// <summary>
/// 系统模块下部分实体对象
/// </summary>
/// <value>The system model.</value>
public ModuleModel BottomModel { get; set; }
/// <summary>
/// 左侧条件
/// </summary>
public string LeftCond;
#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._isInitFinish = false;
if (Model.isBandGrid)
{
this.mg_control.Visible = false;
this.mg_bandcontrol.Visible = true;
this.ModuleGridObj = this.mg_bandcontrol;
}
else
{
this.mg_control.Visible = true;
this.mg_bandcontrol.Visible = false;
this.ModuleGridObj = this.mg_control;
}
this.Model = Model;
this.BandModel = Model;
DataRow modelRow = MainImpl.GetSystemdllTab(this.Model.ModuleCode);
if (modelRow == null)
{
MessageUtil.Show("模块编号[" + this.Model.ModuleCode + "],配置错误!\r\n该模块信息未找到!");
return;
}
this.SysModel = new ModuleModel(modelRow);
this.SetLeftGridView();
InitializeGrid();
//初始化单表GridView
this.mg_control._leftGridSearchObj = _leftGridSearchObj;
this.mg_control.InitializeControl(SysModel, Model);
this.mg_control.LeftGridEx = gridLeft;
this.mg_control.AfterDeleteGridCallBack += mg_control_AfterDeleteGridCallBack;
this.mg_control.RightGridCallBack += OnGridAfterRightCallBack;
this.BandModel.GridEnumObj = GridEnum.BandedGridView;
//初始化多表头GridView
this.mg_bandcontrol._leftGridSearchObj = _leftGridSearchObj;
this.mg_bandcontrol.LeftGridEx = gridLeft;
this.mg_bandcontrol.InitializeControl(SysModel, BandModel);
this.ModuleGridObj.SearchObj.OnDataSourceBindCallBack += new EventHandler(OnDataSourceBindCallBack);
this.ModuleGridObj.VisibleSearchPanel = false;
InitSpliterPosition();
this.sccMain_container.SplitterPositionChanged += new EventHandler(OnSccMain_container_LocationChanged);
this.sccRight_container.SplitterPositionChanged += new EventHandler(OnSccRight_container_LocationChanged);
//this.pl_left_main.Parent = pl_right;
//this.sccRight_container.Parent = pl_left;
if (this.SysModel.MenuType == 5)
{
this.pl_left_main.Parent = pl_right;
this.sccRight_container.Parent = pl_left;
}
switch (this.SysModel.MenuType)
{
case 5: // 左侧为表格
this.pl_left_main.Parent = pl_right;
this.sccRight_container.Parent = pl_left;
break;
case 2: // 左侧为表格
this.pl_left_main.Parent = pl_left;
this.sccRight_container.Parent = pl_right;
break;
case 3: // 左侧为空
default:
this.sccMain_container.PanelVisibility = SplitPanelVisibility.Panel2;
break;
}
}
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();
}
#endregion
#region
/// <summary>
/// <para>说明:判断多标签里是否有明细表</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2019-12-19 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns>List&lt;GridDetailModel&gt;.</returns>
private List<GridDetailModel> GetDetails(string ModuleCode)
{
List<GridDetailModel> details = new List<GridDetailModel>();
DataTable table = BaseModuleImpl.GetBaseDetailPages(ModuleCode);
foreach (DataRow item in table.Rows)
{
if (int.Parse(item["orderId"] + "") <= -1 && int.Parse(item["orderId"] + "") >= -9)
{
DataTable gridColumns = ReportImpl.GetReportDetailColumns(ModuleCode, item["id"] + "");
details.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
}
}
return details;
}
/// <summary>
/// <para>说明:加载下部分表格</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-09-08 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitializeGrid()
{
this.GridDetailList = GetDetails(this.Model.ModuleCode);// 底部多标签表格数据
//DataTable moduleDetailTable = BaseModuleImpl.GetBaseDetailPages(this.Model.ModuleCode);//通过明细获取动态表格
//DataRow LeftItem = moduleDetailTable.Rows.Cast<DataRow>().FirstOrDefault(x => int.Parse(x["orderId"] + "") <= -1 && int.Parse(x["orderId"] + "") >= -9);
if (GridDetailList.Count > 0)
{
this.mg_Bottom.Visible = false;
Model.IsDetailSearch = true;
this.TabControl.Model = this.Model;
this.TabControl.InitTabPages(this.GridDetailList);
int i = 0;
this.TabControl.TabControlObj.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.OnSelectedPageChanged);
foreach (XtraTabPage page in this.TabControl.TabControlObj.TabPages)
{
Object moduleObject = page.Controls.Cast<Object>().FirstOrDefault();
ModuleGridEx moduleGridEx = null;
if (moduleObject is ModuleGridEx)
{
moduleGridEx = moduleObject as ModuleGridEx;
//moduleGridEx.VisibleMrpSearchPanel = false;
//moduleGridEx.VisibleOperPanel = true;
//moduleGridEx.VisibleSearchPanel = true;
GridDetailModel DetailModel = moduleGridEx.GridControlObj.Tag as GridDetailModel;
ModuleModel BottomModel = new ModuleModel(MainImpl.GetSystemdllTab(DetailModel.UnionModule));
//moduleGridEx.GridControlObj.GridView.DoubleClick += new EventHandler(OnBottomDoubleClick);
moduleGridEx.SearchObj.OnSourceRefrshCallBack += OnRefreshBillSource;
if (BottomModel.DragToLeft)
{
if (i == 0)
{
this.BottomModel = BottomModel;
this.MoudleBottomObj = moduleGridEx;
this.BottomDetailModel = DetailModel;
}
if (this.SysModel.DoubleClickMode)
{
moduleGridEx.GridControlObj.GridView.DoubleClick += new EventHandler(OnBottomDoubleClick);
}
else
{
GridDragGrid dragMainGrid = new GridDragGrid(moduleGridEx.GridControlObj.GridView, this.gridLeft.GridView);
dragMainGrid.OnDragComplete += new GridFragGridCompleteEventHandler(OnDragMainGridCompleted);
}
}
if (BottomModel.GridObjIsCheck == 1)//加载复选框
{
GridDragGrid.GridAddCheckBox(moduleGridEx.GridControlObj.GridView);
}
if (this.SysModel.GridObjIsCheck == 1)
{
GridDragGrid.GridAddCheckBox(moduleGridEx.GridControlObj.GridView);
}
if (this.SysModel.LeftGridIsCheck == 1)
{
GridDragGrid.GridAddCheckBox(this.gridLeft.GridView);
}
i++;
}
}
}
}
/// <summary>
/// 切换页签赋予选中页签
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnSelectedPageChanged(object sender, TabPageChangedEventArgs e)
{
Object moduleObject = e.Page.Controls.Cast<Object>().FirstOrDefault();
ModuleGridEx moduleGridEx = null;
if (moduleObject is ModuleGridEx)
{
this.MoudleBottomObj = moduleObject as ModuleGridEx;
GridDetailModel DetailModel = MoudleBottomObj.GridControlObj.Tag as GridDetailModel;
this.BottomModel = new ModuleModel(MainImpl.GetSystemdllTab(DetailModel.UnionModule));
this.BottomDetailModel = DetailModel;
}
}
#endregion
#region
/// <summary>
/// <para>说明:设置左侧表格数据</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-09-08 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
protected void SetLeftGridView()
{
this.LeftRowObj = BaseModuleImpl.GetBaseLeftTreeField(this.Model.ModuleCode);
if (LeftRowObj != null)
{
this.mg_control.ParentKeyField = LeftRowObj["fieldsqlid"] + "";
this.mg_control.ParentUnionField = LeftRowObj["fieldname"] + "";
this.mg_control.LeftGridEx = this.gridLeft;
this.mg_control.ParentGridEx = this.gridLeft; // 方便右侧添加数据自动带出相同字段值
this.mg_bandcontrol.ParentKeyField = LeftRowObj["fieldsqlid"] + "";
this.mg_bandcontrol.ParentUnionField = LeftRowObj["fieldname"] + "";
this.mg_bandcontrol.LeftGridEx = this.gridLeft;
this.mg_bandcontrol.ParentGridEx = this.gridLeft; // 方便右侧添加数据自动带出相同字段值
DataTable dtTable = BaseModuleImpl.GetBaseLeftGridField(this.Model.ModuleCode);
DataTable dtColorTable = BaseModuleImpl.GetBaseGridRowColors(LeftRowObj["fieldKey"] + "");
this.gridLeft.GridView.RowClick += new DevExpress.XtraGrid.Views.Grid.RowClickEventHandler(OnGridViewRowClick);
this.gridLeft.GridView.FocusedRowObjectChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventHandler(OnGridFocuseRowChange);
this.gridLeft.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(LeftRowObj["fieldKey"] + ""), this.Model, OnGridViewRightCallBack, this._leftGridSearchObj);
this.gridLeft.SetGridRowColors(dtColorTable);
this.gridLeft.SetReadOnlyColumns(dtTable, GridCustomColumnStruct.BaseLeftGridView + this.Model.ModuleCode);
DataTable table = BaseModuleImpl.GetCustomQueryFields(LeftRowObj["fieldKey"] + "");
string searchSql = LeftRowObj["fieldsql"] + " " + LeftCond;
if (table != null && table.Rows.Count > 0)
{
// 自定义查询条件
this._leftGridSearchObj = new MyControl(searchSql, this.gridLeft);
this._leftGridSearchObj.OtherParams = Model.OtherParams();
this.pl_left_top.Height = this._leftGridSearchObj.InitSearchControl(table, this.pl_left_top);
this._leftGridSearchObj.OnDataSourceBindCallBack += new EventHandler(OnLeftControlObjDataSourceBindCallBack);
}
else
{
this.pl_left_top.Visible = false;
this.gridLeft.GridControl.DataSource = BaseImpl.GetDataTableResult(searchSql);
}
}
}
#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
{
if (_leftGridSearchObj != null) this._leftGridSearchObj.SearchGrid();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
#endregion
#region
/// <summary>
/// <para>说明:刷新右侧表格数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-19 </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="DevExpress.Data.SelectionChangedEventArgs"/> instance containing the event data.</param>
protected void OnGridViewRowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
{
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.SysModel.MenuSql);
sqlValue = this.SysModel.MenuSql.StartsWith("select", StringComparison.OrdinalIgnoreCase) ? sqlValue : sqlValue;
DataRow dataRow = this.gridLeft.GridView.GetFocusedDataRow();
// 左侧gridView时,需要替换sql参数(包含查询条件、表格选中行).
sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
sqlValue = ReplaceHelper.ReplaceRowParam(dataRow, sqlValue);
this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.ReplaceLeftOrGridValue(sqlValue, true);
this.ModuleGridObj.SearchObj.SearchLastGrid();
bool Replacement = false;
//右侧表格条件构建
if (this.MoudleBottomObj == null) return;
foreach (ControlModel model in this.MoudleBottomObj.SearchObj._models)
{
if (dataRow.Table.Columns.Contains(model.FieldName))
{
this.MoudleBottomObj.SearchObj.SetControlValue(model, dataRow[model.FieldName] + "");
Replacement = true;
}
}
if (Replacement) this.MoudleBottomObj.SearchObj.SearchGrid();
}
/// <summary>
/// <para>说明:刷新右侧表格数据</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-19 </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="DevExpress.Data.SelectionChangedEventArgs"/> instance containing the event data.</param>
protected void OnGridFocuseRowChange(object sender, FocusedRowObjectChangedEventArgs e)
{
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.SysModel.MenuSql);
sqlValue = this.SysModel.MenuSql.StartsWith("select", StringComparison.OrdinalIgnoreCase) ? sqlValue : sqlValue;
// 左侧gridView时,需要替换sql参数(包含查询条件、表格选中行).
sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
sqlValue = ReplaceHelper.ReplaceRowParam(this.gridLeft.GridView.GetFocusedDataRow(), sqlValue);
this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.ReplaceLeftOrGridValue(sqlValue, true);
this.ModuleGridObj.SearchObj.SearchLastGrid();
}
#endregion
//#region 选中刷新右侧表格数据
///// <summary>
///// <para>说明:刷新右侧表格数据</para>
///// <para>创建人:龚宇超</para>
///// <para>创建日期:2018-03-19 </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="DevExpress.Data.SelectionChangedEventArgs"/> instance containing the event data.</param>
//protected void OnGridFocuseRowChange(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventArgs e)
//{
// string sqlValue = ReplaceHelper.ReplaceWhereCond(this.SysModel.MenuSql);
// sqlValue = this.SysModel.MenuSql.StartsWith("select", StringComparison.OrdinalIgnoreCase) ? sqlValue : sqlValue;
// // 左侧gridView时,需要替换sql参数(包含查询条件、表格选中行).
// sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
// sqlValue = ReplaceHelper.ReplaceRowParam(this.gridLeft.GridView.GetFocusedDataRow(), sqlValue);
// this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.ReplaceLeftOrGridValue(sqlValue, true);
// this.ModuleGridObj.SearchObj.SearchLastGrid();
//}
//#endregion
#endregion
#region
#region
/// <summary>
/// <para>说明:初始化分割条位置</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-12-15</para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
private void InitSpliterPosition()
{
string spliterPosition = IniHelper.Read(string.Format("Step_spliterPositionMain_{0}", this.Model.ModuleCode));
string spliterRightPosition = IniHelper.Read(string.Format("Step_spliterRightPositionMain_{0}", this.Model.ModuleCode));
if (!string.IsNullOrEmpty(spliterPosition)) this.sccMain_container.SplitterPosition = Convert.ToInt32(spliterPosition);
if (!string.IsNullOrEmpty(spliterRightPosition)) this.sccRight_container.SplitterPosition = Convert.ToInt32(spliterRightPosition);
}
#endregion
#endregion
#region
#region
/// <summary>
/// <para>说明:下方选择模板动态刷新列</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-09-11 </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>
private void OnRefreshBillSource(object sender, EventArgs e)
{
BaseUserControl baseControl = (sender as System.Windows.Forms.Control).ToBaseUserControl();
ControlModel model = baseControl.Model as ControlModel;
string ConditionValue = this.MoudleBottomObj.SearchObj.GetControlValue(model.FieldName);//获取同它条件的替换值
DataTable columns = BillImpl.GetBillDetailBrpColumns(ConditionValue);
string colorUnion = string.Format("MODULECOLOR_{0}", ConditionValue);
if (columns != null && columns.Rows.Count > 0)
{
if ((columns.Rows.Cast<DataRow>().FirstOrDefault(x => (x["userName"] + "").Contains("|")) != null))
{
this.mg_control.Visible = false;
this.mg_bandcontrol.Visible = true;
this.ModuleGridObj = this.mg_bandcontrol;
}
else
{
this.mg_control.Visible = true;
this.mg_bandcontrol.Visible = false;
this.ModuleGridObj = this.mg_control;
}
this.ModuleGridObj.GridControlObj.SetEditColumns(columns);
this.ModuleGridObj.GridControlObj.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(colorUnion));
}
else
{
this._gridColumns = BaseModuleImpl.GetBaseGridColumns(this.Model.ModuleCode);
if (Model.isBandGrid)
{
this.mg_control.Visible = false;
this.mg_bandcontrol.Visible = true;
this.ModuleGridObj = this.mg_bandcontrol;
}
else
{
this.mg_control.Visible = true;
this.mg_bandcontrol.Visible = false;
this.ModuleGridObj = this.mg_control;
}
if (SysModel.CanEdit)
{
this.ModuleGridObj.GridControlObj.SetEditColumns(this._gridColumns, GridCustomColumnStruct.BaseMainGridView + this.SysModel.FormKey);
}
else
{
this.ModuleGridObj.GridControlObj.SetReadOnlyColumns(this._gridColumns, GridCustomColumnStruct.BaseMainGridView + this.SysModel.FormKey);
}
this.ModuleGridObj.GridControlObj.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(this.Model.ModuleCode));
}
string sql = this.SysModel.MenuSql + "and " + this.MoudleBottomObj.SearchObj.RefreshControl + "='" + ConditionValue + "'";
//左侧上下结构刷新
this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.SetSearchSqlValue(sql);
this.ModuleGridObj.GridControlObj.SetGridViewDataSource(MainImpl.GetDataTableResult(this.ModuleGridObj.GridControlObj.LastSearchSql));
}
#endregion
/// <summary>
/// <para>说明:明细拖拽保存主表方法</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2021-03-10 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The e.</param>
private void OnDragMainGridCompleted(object sender, GridDragGridArgs e)
{
if (e.GridViewSelectRows == null || e.GridViewSelectRows.Length == 0) return;
try
{
if (MessageUtil.Show(ResourceKeys.DragSelectRow, MessageBoxButtons.YesNo) == DialogResult.Yes)
{
GridView ge = sender as GridView;
DataRow[] rowItems = e.GridViewSelectRows;
DataRow GridLeftItem = this.gridLeft.GridView.GetFocusedDataRow();
GridColumnCollection gridColumns = this.ModuleGridObj.GridControlObj.GridView.Columns;
DataTable table = this.ModuleGridObj.GridControlObj.gridControl.DataSourceTable();
foreach (DataRow rowItem in rowItems)
{
DataRow newRow = table.NewRow();
foreach (GridColumn col in gridColumns)
{
if ("id".Equals(col.FieldName) || col.FieldName.Equals(this.BottomModel.ParmaryKey)) continue;
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;
}
if (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);
}
this.ModuleGridObj.GridControlObj.GridView.ClearSelection();
this.ModuleGridObj.GridControlObj.GridView.UpdateCurrentRow();
this.ModuleGridObj.GridControlObj.GridView.ShowEditor();
string sql = this.SysModel.MenuSql;
//左侧上下结构刷新
//this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.SetSearchSqlValue(sql, true, false);
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.SysModel.MenuSql);
sqlValue = this.SysModel.MenuSql.StartsWith("select", StringComparison.OrdinalIgnoreCase) ? sqlValue : sqlValue;
// 左侧gridView时,需要替换sql参数(包含查询条件、表格选中行).
sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
sqlValue = ReplaceHelper.ReplaceRowParam(this.gridLeft.GridView.GetFocusedDataRow(), sqlValue);
this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.ReplaceLeftOrGridValue(sqlValue, true);
this.ModuleGridObj.SaveGridRecord(false);
this.ModuleGridObj.GridControlObj.GridView.SelectRowHandler(table.Rows.Count - 1);
if (this.BottomDetailModel != null && this.BottomDetailModel.AutoRefresh)
{
this.MoudleBottomObj.SearchObj.SearchLastGrid();
if (this.BottomModel.GridObjIsCheck == 1)
{
this.MoudleBottomObj.GridControlObj.GridView.ClearSelection();
}
}
this._leftGridSearchObj.SearchLastGrid();
}
}
catch (Exception ex)
{
LogHelper.Instance.WriteError(ex);
LogUtil.WriteError("单据来源表格拖拽完出错!", ex);
//MessageUtil.Show(ResourceKeys.OperFault);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
#region
/// <summary>
/// <para>说明:下部分表双击添加事件</para>
/// <para>创建人:王一帆</para>
/// <para>创建日期:2020-09-08</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>
private void OnBottomDoubleClick(object sender, EventArgs e)
{
try
{
Point mouseDowmPoint = this.MoudleBottomObj.GridControlObj.gridControl.PointToClient(System.Windows.Forms.Control.MousePosition);
GridHitInfo info = this.MoudleBottomObj.GridControlObj.GridView.CalcHitInfo(mouseDowmPoint);
//在列标题栏内则退出该方法
if (info.InColumnPanel) return;
DataRow[] rowItems = null;
if (this.BottomModel.GridObjIsCheck == 1)
{
rowItems = this.MoudleBottomObj.GridControlObj.GetViewFocusedDataRows();
}
else
{
rowItems = new DataRow[] { this.mg_Bottom.GridControlObj.GridView.GetFocusedDataRow() };
}
if (!ValidateDetailCond(rowItems, BottomModel.DoubleClickAddCond)) return;//不满足条件则退出该方法
DataRow GridLeftItem = this.gridLeft.GridView.GetFocusedDataRow();
GridColumnCollection gridColumns = this.ModuleGridObj.GridControlObj.GridView.Columns;
DataTable table = this.ModuleGridObj.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) || col.FieldName.Equals(this.BottomModel.ParmaryKey)) continue;
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);
}
this.ModuleGridObj.GridControlObj.GridView.ClearSelection();
this.ModuleGridObj.GridControlObj.GridView.UpdateCurrentRow();
this.ModuleGridObj.GridControlObj.GridView.ShowEditor();
string sql = this.SysModel.MenuSql;
//左侧上下结构刷新
//this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.SetSearchSqlValue(sql, true, false);
string sqlValue = ReplaceHelper.ReplaceWhereCond(this.SysModel.MenuSql);
sqlValue = this.SysModel.MenuSql.StartsWith("select", StringComparison.OrdinalIgnoreCase) ? sqlValue : sqlValue;
// 左侧gridView时,需要替换sql参数(包含查询条件、表格选中行).
sqlValue = this._leftGridSearchObj != null ? this._leftGridSearchObj.ReplaceParentControlValue(sqlValue) : sqlValue;
sqlValue = ReplaceHelper.ReplaceRowParam(this.gridLeft.GridView.GetFocusedDataRow(), sqlValue);
this.ModuleGridObj.GridControlObj.LastSearchSql = this.ModuleGridObj.SearchObj.ReplaceLeftOrGridValue(sqlValue, true);
this.ModuleGridObj.SaveGridRecord(false);
this.ModuleGridObj.GridControlObj.GridView.SelectRowHandler(table.Rows.Count - 1);
if (this.BottomDetailModel != null && this.BottomDetailModel.AutoRefresh)
{
this.MoudleBottomObj.SearchObj.SearchLastGrid();
if (this.BottomModel.GridObjIsCheck == 1)
{
this.MoudleBottomObj.GridControlObj.GridView.ClearSelection();
}
}
if (_leftGridSearchObj != null) this._leftGridSearchObj.SearchLastGrid();
}
catch (Exception ex)
{
LogUtil.WriteError("表格双击移动错误", ex);
LogHelper.Instance.WriteError(ex);
//MessageUtil.Show(ResourceKeys.OperFault);
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
#endregion
#region
private void mg_control_AfterDeleteGridCallBack(object sender, EventArgs e)
{
if (this.BottomDetailModel != null && this.BottomDetailModel.AutoRefresh)
{
this.MoudleBottomObj.SearchObj.SearchLastGrid();
if (this.BottomModel.GridObjIsCheck == 1)
{
this.MoudleBottomObj.GridControlObj.GridView.ClearSelection();
}
}
if (_leftGridSearchObj != null) this._leftGridSearchObj.SearchLastGrid();
}
/// <summary>
/// 右键回调刷新所有
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnGridAfterRightCallBack(object sender, EventArgs e)
{
if (this.BottomDetailModel != null && this.BottomDetailModel.AutoRefresh)
{
this.MoudleBottomObj.SearchObj.SearchLastGrid();
if (this.BottomModel.GridObjIsCheck == 1)
{
this.MoudleBottomObj.GridControlObj.GridView.ClearSelection();
}
}
this._leftGridSearchObj.SearchLastGrid();
}
#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();
if (_leftGridSearchObj != null) this._leftGridSearchObj.SearchLastGrid();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
#endregion
#endregion
#region
/// <summary>
/// 分隔条位置改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnSccMain_container_LocationChanged(object sender, EventArgs e)
{
IniHelper.Write(string.Format("Step_spliterPositionMain_{0}", this.Model.ModuleCode), this.sccMain_container.SplitterPosition + "");
}
/// <summary>
/// 分隔条右边位置改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnSccRight_container_LocationChanged(object sender, EventArgs e)
{
IniHelper.Write(string.Format("Step_spliterRightPositionMain_{0}", this.Model.ModuleCode), this.sccRight_container.SplitterPosition + "");
}
#endregion
#region
/// <summary>
/// <para>说明:条件判断</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2017-11-30 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
private bool ValidateDetailCond(DataRow[] rowItems, string conditions)
{
bool validate = false;
try
{
foreach (DataRow rowItem in rowItems)
{
string detailCond = ReplaceHelper.ReplaceRowParam(rowItem, conditions);
if (detailCond.Contains("#"))
{
List<string> condition = ReplaceHelper.GetParamFields(detailCond);
foreach (string item in condition)
{
string fieldValue = this.MoudleBottomObj.SearchObj.GetControlValue(item.Replace("{#", "").Replace("}", ""));
detailCond = detailCond.Replace(item, fieldValue);
}
}
if (detailCond.StartsWith("@") || detailCond.StartsWith("!"))
{
validate = "1".Equals(BaseImpl.GetDefaultValue(detailCond));
}
else
{
validate = ReplaceHelper.EvalCond(detailCond);
}
if (!validate)
{
break;
}
}
}
catch (Exception ex)
{
LogHelper.Instance.WriteLog(ex.StackTrace);
LogUtil.WriteError("验证多条添加条件出错!", ex);
//MessageUtil.Show(ResourceKeys.CondtionError + "\r\n" + unionModel.ModelObj.DetailEnableCond);
}
return validate;
}
#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.PubModelAdd3
{
/// <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; }
}
}
+63
View File
@@ -0,0 +1,63 @@
namespace Lskj.PubModelAdd3
{
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.PubModelAdd3.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;
}
}
+69
View File
@@ -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.PubModelAdd3
{
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();
}
}
}
}
+120
View File
@@ -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,148 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\Lskj.LserpAll\packages\cef.redist.x86.114.2.10\build\cef.redist.x86.props" Condition="Exists('..\Lskj.LserpAll\packages\cef.redist.x86.114.2.10\build\cef.redist.x86.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E840FDDE-7F05-4260-8B56-A97EC4D9046B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lskj.PubModelAdd3</RootNamespace>
<AssemblyName>Lskj.PubModelAdd3</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.PubModelAdd2.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" />
<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" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\Lskj.LserpAll\packages\cef.redist.x86.114.2.10\build\cef.redist.x86.props')" Text="$([System.String]::Format('$(ErrorText)', '..\Lskj.LserpAll\packages\cef.redist.x86.114.2.10\build\cef.redist.x86.props'))" />
</Target>
<!-- 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.PubModelAdd3.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.PubModelAdd3.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.PubModelAdd3.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,3 @@
DevExpress.Patch.InMemoryPatch, DevExpress.Patch.Common, Version=6.1.0.0, Culture=neutral, PublicKeyToken=7fc7bfca2443de66
DevExpress.XtraEditors.TextEdit, DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
+36
View File
@@ -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="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>
<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>
</assemblyBinding>
</runtime>
</configuration>