diff --git a/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs b/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs
index 2ae66e9..dddc9de 100644
--- a/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs
+++ b/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs
@@ -49,8 +49,7 @@
this.lceCombobox = new Lskj.Control.LabelComboxEdit();
this.panelControl3 = new DevExpress.XtraEditors.PanelControl();
this.btnTreeSearch = new DevExpress.XtraEditors.SimpleButton();
- this.pl_Right = new DevExpress.XtraEditors.PanelControl();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.pl_buttom = new DevExpress.XtraEditors.PanelControl();
this.pl_main_bottom = new DevExpress.XtraEditors.PanelControl();
this.btnPrint = new DevExpress.XtraEditors.SimpleButton();
this.pl_templete = new DevExpress.XtraEditors.PanelControl();
@@ -69,8 +68,6 @@
this.pl_main_top_center = new DevExpress.XtraEditors.PanelControl();
this.lbTitle = new System.Windows.Forms.Label();
this.pl_main_top_right = new DevExpress.XtraEditors.PanelControl();
- this.lblOrderNo = new DevExpress.XtraEditors.LabelControl();
- this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
this.pl_main_top_left = new DevExpress.XtraEditors.PanelControl();
this.pl_red = new DevExpress.XtraEditors.PanelControl();
this.rdRed = new System.Windows.Forms.RadioButton();
@@ -83,6 +80,8 @@
this.pMenu = new DevExpress.XtraBars.PopupMenu(this.components);
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker();
+ this.lblOrderNo = new DevExpress.XtraEditors.LabelControl();
+ this.labelControl1 = new DevExpress.XtraEditors.LabelControl();
((System.ComponentModel.ISupportInitialize)(this.ssc_main)).BeginInit();
this.ssc_main.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.ssc_main_top)).BeginInit();
@@ -105,8 +104,7 @@
((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).BeginInit();
this.panelControl3.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pl_Right)).BeginInit();
- this.pl_Right.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pl_main_bottom)).BeginInit();
this.pl_main_bottom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pl_templete)).BeginInit();
@@ -193,7 +191,7 @@
this.pl_main_center.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_main_center.Location = new System.Drawing.Point(2, 40);
this.pl_main_center.Name = "pl_main_center";
- this.pl_main_center.Size = new System.Drawing.Size(1501, 620);
+ this.pl_main_center.Size = new System.Drawing.Size(1501, 641);
this.pl_main_center.TabIndex = 2;
//
// pl_main_center_detail
@@ -205,7 +203,7 @@
this.pl_main_center_detail.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_main_center_detail.Location = new System.Drawing.Point(0, 215);
this.pl_main_center_detail.Name = "pl_main_center_detail";
- this.pl_main_center_detail.Size = new System.Drawing.Size(1501, 405);
+ this.pl_main_center_detail.Size = new System.Drawing.Size(1501, 426);
this.pl_main_center_detail.TabIndex = 26;
//
// gcMain
@@ -217,7 +215,7 @@
this.gcMain.Margin = new System.Windows.Forms.Padding(5);
this.gcMain.Name = "gcMain";
this.gcMain.SiftEnumObj = Lskj.Control.GridControlEx.HeaderSiftEnum.Sum;
- this.gcMain.Size = new System.Drawing.Size(1501, 405);
+ this.gcMain.Size = new System.Drawing.Size(1501, 426);
this.gcMain.TabIndex = 0;
//
// splitMainControl
@@ -226,7 +224,6 @@
this.splitMainControl.Location = new System.Drawing.Point(0, 0);
this.splitMainControl.Name = "splitMainControl";
this.splitMainControl.Panel1.Controls.Add(this.panel1);
- this.splitMainControl.Panel1.Controls.Add(this.pl_Right);
this.splitMainControl.Panel1.Text = "Panel1";
this.splitMainControl.Panel2.Text = "Panel2";
this.splitMainControl.Size = new System.Drawing.Size(1501, 215);
@@ -237,22 +234,24 @@
// panel1
//
this.panel1.Controls.Add(this.pl_main_center_master);
+ this.panel1.Controls.Add(this.pl_buttom);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(636, 155);
+ this.panel1.Size = new System.Drawing.Size(636, 215);
this.panel1.TabIndex = 8;
//
// pl_main_center_master
//
+ this.pl_main_center_master.Appearance.BackColor = System.Drawing.Color.White;
+ this.pl_main_center_master.Appearance.Options.UseBackColor = true;
this.pl_main_center_master.AutoScroll = false;
this.pl_main_center_master.Controls.Add(this.pl_treeview_detault_search);
this.pl_main_center_master.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_main_center_master.Location = new System.Drawing.Point(0, 0);
this.pl_main_center_master.Name = "pl_main_center_master";
- this.pl_main_center_master.Size = new System.Drawing.Size(636, 155);
- this.pl_main_center_master.TabIndex = 6;
- this.pl_main_center_master.Click += new System.EventHandler(this.OnMainFocusAfter);
+ this.pl_main_center_master.Size = new System.Drawing.Size(636, 179);
+ this.pl_main_center_master.TabIndex = 7;
//
// pl_treeview_detault_search
//
@@ -369,29 +368,14 @@
this.btnTreeSearch.TabIndex = 21;
this.btnTreeSearch.Text = "查询";
//
- // pl_Right
+ // pl_buttom
//
- this.pl_Right.Appearance.BackColor = System.Drawing.Color.Transparent;
- this.pl_Right.Appearance.Options.UseBackColor = true;
- this.pl_Right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
- this.pl_Right.Controls.Add(this.groupBox1);
- this.pl_Right.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.pl_Right.Location = new System.Drawing.Point(0, 155);
- this.pl_Right.Name = "pl_Right";
- this.pl_Right.Padding = new System.Windows.Forms.Padding(0, 0, 0, 5);
- this.pl_Right.Size = new System.Drawing.Size(636, 60);
- this.pl_Right.TabIndex = 7;
- //
- // groupBox1
- //
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox1.Font = new System.Drawing.Font("Tahoma", 1F);
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 5);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(636, 55);
- this.groupBox1.TabIndex = 0;
- this.groupBox1.TabStop = false;
+ this.pl_buttom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
+ this.pl_buttom.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.pl_buttom.Location = new System.Drawing.Point(0, 179);
+ this.pl_buttom.Name = "pl_buttom";
+ this.pl_buttom.Size = new System.Drawing.Size(636, 36);
+ this.pl_buttom.TabIndex = 23;
//
// pl_main_bottom
//
@@ -406,20 +390,20 @@
this.pl_main_bottom.Controls.Add(this.btnDelete);
this.pl_main_bottom.Controls.Add(this.btnBillSave);
this.pl_main_bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.pl_main_bottom.Location = new System.Drawing.Point(2, 660);
+ this.pl_main_bottom.Location = new System.Drawing.Point(2, 681);
this.pl_main_bottom.Name = "pl_main_bottom";
- this.pl_main_bottom.Size = new System.Drawing.Size(1501, 63);
+ this.pl_main_bottom.Size = new System.Drawing.Size(1501, 42);
this.pl_main_bottom.TabIndex = 1;
//
// btnPrint
//
this.btnPrint.AllowFocus = false;
this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.btnPrint.Appearance.Font = new System.Drawing.Font("宋体", 10F);
+ this.btnPrint.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnPrint.Appearance.Options.UseFont = true;
- this.btnPrint.Location = new System.Drawing.Point(1418, 11);
+ this.btnPrint.Location = new System.Drawing.Point(1420, 9);
this.btnPrint.Name = "btnPrint";
- this.btnPrint.Size = new System.Drawing.Size(80, 40);
+ this.btnPrint.Size = new System.Drawing.Size(72, 26);
this.btnPrint.TabIndex = 30;
this.btnPrint.Text = "打印单据";
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
@@ -518,11 +502,11 @@
//
this.btnBillAdd.AllowFocus = false;
this.btnBillAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.btnBillAdd.Appearance.Font = new System.Drawing.Font("宋体", 10F);
+ this.btnBillAdd.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnBillAdd.Appearance.Options.UseFont = true;
- this.btnBillAdd.Location = new System.Drawing.Point(1074, 11);
+ this.btnBillAdd.Location = new System.Drawing.Point(1108, 9);
this.btnBillAdd.Name = "btnBillAdd";
- this.btnBillAdd.Size = new System.Drawing.Size(80, 40);
+ this.btnBillAdd.Size = new System.Drawing.Size(72, 26);
this.btnBillAdd.TabIndex = 19;
this.btnBillAdd.Text = "新建单据";
this.btnBillAdd.Click += new System.EventHandler(this.OnBillAddClick);
@@ -531,11 +515,11 @@
//
this.btnBillApply.AllowFocus = false;
this.btnBillApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.btnBillApply.Appearance.Font = new System.Drawing.Font("宋体", 10F);
+ this.btnBillApply.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnBillApply.Appearance.Options.UseFont = true;
- this.btnBillApply.Location = new System.Drawing.Point(1332, 11);
+ this.btnBillApply.Location = new System.Drawing.Point(1342, 8);
this.btnBillApply.Name = "btnBillApply";
- this.btnBillApply.Size = new System.Drawing.Size(80, 40);
+ this.btnBillApply.Size = new System.Drawing.Size(72, 26);
this.btnBillApply.TabIndex = 25;
this.btnBillApply.Text = "提交单据";
this.btnBillApply.Click += new System.EventHandler(this.OnBillApplyClick);
@@ -544,11 +528,11 @@
//
this.btnDelete.AllowFocus = false;
this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.btnDelete.Appearance.Font = new System.Drawing.Font("宋体", 10F);
+ this.btnDelete.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnDelete.Appearance.Options.UseFont = true;
- this.btnDelete.Location = new System.Drawing.Point(1160, 11);
+ this.btnDelete.Location = new System.Drawing.Point(1186, 9);
this.btnDelete.Name = "btnDelete";
- this.btnDelete.Size = new System.Drawing.Size(80, 40);
+ this.btnDelete.Size = new System.Drawing.Size(72, 26);
this.btnDelete.TabIndex = 20;
this.btnDelete.Text = "删除记录";
this.btnDelete.Click += new System.EventHandler(this.OnDeleteClick);
@@ -557,11 +541,11 @@
//
this.btnBillSave.AllowFocus = false;
this.btnBillSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.btnBillSave.Appearance.Font = new System.Drawing.Font("宋体", 10F);
+ this.btnBillSave.Appearance.Font = new System.Drawing.Font("宋体", 9F);
this.btnBillSave.Appearance.Options.UseFont = true;
- this.btnBillSave.Location = new System.Drawing.Point(1246, 11);
+ this.btnBillSave.Location = new System.Drawing.Point(1264, 9);
this.btnBillSave.Name = "btnBillSave";
- this.btnBillSave.Size = new System.Drawing.Size(80, 40);
+ this.btnBillSave.Size = new System.Drawing.Size(72, 26);
this.btnBillSave.TabIndex = 21;
this.btnBillSave.Text = "保存单据";
this.btnBillSave.Click += new System.EventHandler(this.OnBillSaveClick);
@@ -588,7 +572,7 @@
this.pl_main_top_center.Dock = System.Windows.Forms.DockStyle.Fill;
this.pl_main_top_center.Location = new System.Drawing.Point(202, 2);
this.pl_main_top_center.Name = "pl_main_top_center";
- this.pl_main_top_center.Size = new System.Drawing.Size(891, 34);
+ this.pl_main_top_center.Size = new System.Drawing.Size(1006, 34);
this.pl_main_top_center.TabIndex = 3;
//
// lbTitle
@@ -599,7 +583,7 @@
this.lbTitle.ForeColor = System.Drawing.Color.Blue;
this.lbTitle.Location = new System.Drawing.Point(0, 0);
this.lbTitle.Name = "lbTitle";
- this.lbTitle.Size = new System.Drawing.Size(891, 34);
+ this.lbTitle.Size = new System.Drawing.Size(1006, 34);
this.lbTitle.TabIndex = 1;
this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbTitle.Paint += new System.Windows.Forms.PaintEventHandler(this.OnLabelTitlePaint);
@@ -609,36 +593,15 @@
this.pl_main_top_right.Appearance.BackColor = System.Drawing.Color.Transparent;
this.pl_main_top_right.Appearance.Options.UseBackColor = true;
this.pl_main_top_right.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
- this.pl_main_top_right.Controls.Add(this.lblOrderNo);
this.pl_main_top_right.Controls.Add(this.labelControl1);
+ this.pl_main_top_right.Controls.Add(this.lblOrderNo);
this.pl_main_top_right.Dock = System.Windows.Forms.DockStyle.Right;
- this.pl_main_top_right.Location = new System.Drawing.Point(1093, 2);
+ this.pl_main_top_right.Location = new System.Drawing.Point(1208, 2);
this.pl_main_top_right.Name = "pl_main_top_right";
- this.pl_main_top_right.Size = new System.Drawing.Size(406, 34);
+ this.pl_main_top_right.Padding = new System.Windows.Forms.Padding(0, 10, 10, 0);
+ this.pl_main_top_right.Size = new System.Drawing.Size(291, 34);
this.pl_main_top_right.TabIndex = 2;
//
- // lblOrderNo
- //
- this.lblOrderNo.Appearance.BackColor = System.Drawing.Color.Transparent;
- this.lblOrderNo.Appearance.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Underline);
- this.lblOrderNo.Appearance.ForeColor = System.Drawing.Color.Blue;
- this.lblOrderNo.Location = new System.Drawing.Point(85, 15);
- this.lblOrderNo.Name = "lblOrderNo";
- this.lblOrderNo.Size = new System.Drawing.Size(120, 16);
- this.lblOrderNo.TabIndex = 1;
- this.lblOrderNo.Text = "XTC170112010001";
- //
- // labelControl1
- //
- this.labelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
- this.labelControl1.Appearance.Font = new System.Drawing.Font("宋体", 12F);
- this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Blue;
- this.labelControl1.Location = new System.Drawing.Point(7, 15);
- this.labelControl1.Name = "labelControl1";
- this.labelControl1.Size = new System.Drawing.Size(72, 16);
- this.labelControl1.TabIndex = 0;
- this.labelControl1.Text = "单据编号:";
- //
// pl_main_top_left
//
this.pl_main_top_left.Appearance.BackColor = System.Drawing.Color.Transparent;
@@ -729,6 +692,32 @@
this.pMenu.Manager = this.barManager1;
this.pMenu.Name = "pMenu";
//
+ // lblOrderNo
+ //
+ this.lblOrderNo.Appearance.BackColor = System.Drawing.Color.Transparent;
+ this.lblOrderNo.Appearance.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Underline);
+ this.lblOrderNo.Appearance.ForeColor = System.Drawing.Color.Blue;
+ this.lblOrderNo.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
+ this.lblOrderNo.Dock = System.Windows.Forms.DockStyle.Right;
+ this.lblOrderNo.Location = new System.Drawing.Point(161, 10);
+ this.lblOrderNo.Name = "lblOrderNo";
+ this.lblOrderNo.Size = new System.Drawing.Size(120, 16);
+ this.lblOrderNo.TabIndex = 2;
+ this.lblOrderNo.Text = "XTC170112010001";
+ //
+ // labelControl1
+ //
+ this.labelControl1.Appearance.BackColor = System.Drawing.Color.Transparent;
+ this.labelControl1.Appearance.Font = new System.Drawing.Font("宋体", 12F);
+ this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Blue;
+ this.labelControl1.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Bottom;
+ this.labelControl1.Dock = System.Windows.Forms.DockStyle.Right;
+ this.labelControl1.Location = new System.Drawing.Point(89, 10);
+ this.labelControl1.Name = "labelControl1";
+ this.labelControl1.Size = new System.Drawing.Size(72, 16);
+ this.labelControl1.TabIndex = 8;
+ this.labelControl1.Text = "单据编号:";
+ //
// BillModule
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -762,8 +751,7 @@
((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.panelControl3)).EndInit();
this.panelControl3.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.pl_Right)).EndInit();
- this.pl_Right.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.pl_buttom)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pl_main_bottom)).EndInit();
this.pl_main_bottom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pl_templete)).EndInit();
@@ -830,8 +818,6 @@
private DevExpress.XtraEditors.PanelControl pl_main_top_center;
private System.Windows.Forms.Label lbTitle;
private DevExpress.XtraEditors.PanelControl pl_main_top_right;
- private DevExpress.XtraEditors.LabelControl lblOrderNo;
- private DevExpress.XtraEditors.LabelControl labelControl1;
private DevExpress.XtraEditors.PanelControl pl_main_top_left;
private DevExpress.XtraEditors.PanelControl pl_red;
private System.Windows.Forms.RadioButton rdRed;
@@ -840,4 +826,5 @@
private DevExpress.XtraEditors.TextEdit txt_input;
private DevExpress.XtraBars.PopupMenu pmFP;
private DevExpress.XtraEditors.SimpleButton btnBillAdd;
- private DevExpress.XtraEditors.SimpleButton btnPrin
\ No newline at end of file
+ private DevExpress.XtraEditors.SimpleButton btnPrint;
+ private System.ComponentModel.BackgroundWorker backgroundWorker1
\ No newline at end of file
diff --git a/插件库/Lskj.PubBillSpecial/BillModule.cs b/插件库/Lskj.PubBillSpecial/BillModule.cs
index 9b02ced..63b7c40 100644
--- a/插件库/Lskj.PubBillSpecial/BillModule.cs
+++ b/插件库/Lskj.PubBillSpecial/BillModule.cs
@@ -1,6748 +1,6777 @@
-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.Model;
-using Lskj.Control.Model;
-using Lskj.Util;
-using Lskj.Business.Impl;
-using DevExpress.XtraGrid.Views.Grid;
-using Lskj.Data;
-using DevExpress.XtraBars;
-using DevExpress.XtraTab;
-using DevExpress.XtraEditors;
-using System.Collections;
-using Lskj.PubBillSpecial.Model;
-using DevExpress.Data;
-using DevExpress.XtraGrid.Columns;
-using System.IO;
-using Lskj.Business;
-using System.Text.RegularExpressions;
-using DevExpress.XtraTreeList.Nodes;
-using DevExpress.XtraEditors.Repository;
-using DevExpress.XtraGrid.Views.Base;
-using System.Threading;
-using DevExpress.XtraGrid.Views.Grid.ViewInfo;
-using Lskj.Core;
-using DevExpress.XtraTreeList.Columns;
-using System.Threading.Tasks;
-using DevExpress.Utils;
-using System.Data.SqlClient;
-using Newtonsoft.Json.Linq;
-using Newtonsoft.Json;
-
-namespace Lskj.PubBillSpecial
-{
- public partial class BillModule : UserControl
- {
- ///
- /// 是否为初始化创建
- ///
- private bool _isInitFinish;
- ///
- /// 是否加载右侧控件数据
- ///
- private bool _isLoadRightControlValue = true;
- ///
- /// 是否手动选择了模版
- ///
- private bool _isSelectedTemplete;
- ///
- /// 是否直接打印
- ///
- private bool _isExcPrint;
- ///
- /// 是否选择关联下发
- ///
- private bool _isCheck;
- ///
- /// 主打印Sql
- ///
- private string _mainPrintSql;
- private string guidField = "xxxxx_guid";
- ///
- /// 主键字段
- ///
- private string mRecordPrimaryField;
- ///
- /// 单据水印
- ///
- private WaterMark _waterMark;
- ///
- /// 导入单据明细数据、导入单据明细并更新
- ///
- private BarButtonItem _itemImport, _itemImportUpdate;
- ///
- /// 打印主sql中关联打印次数返回条件
- ///
- private string _printModeCond;
- ///
- /// 打印完成后添加数据用到的参数: 表名,列前缀,主键字段,主键值,模块编号,主打印Sql
- ///
- private List _printSaveParams;
- ///
- /// 单据明细列
- ///
- private DataTable _detailColumns;
- private bool IsCopying = false;
- ///
- /// 单据来源明细拖拽删除当前行数据集合
- ///
- private List RemoveRowitem = new List();
-
- protected DataRow BillRowItem;
- ///
- /// 主表控件
- ///
- public MyControl ControlObj;
- ///
- /// 入口参数
- ///
- protected DynamicBillModel SysModel;
- ///
- /// 是否为Brp模版
- ///
- /// true if this instance is BRP templete; otherwise, false.
- protected bool IsBrpTemplete { get { return SysModel is DynamicBillBrpModel; } }
- ///
- ///
- ///
- public BillModel BillModel;
- ///
- /// 快速扫码控件
- ///
- /// The main bottom input object.
- public PanelControl MainBottomInputObj { get { return this.pl_input; } }
- ///
- /// Brp模版控件
- ///
- /// The main bottom templete object.
- public PanelControl MainBottomTempleteObj { get { return this.pl_templete; } }
- ///
- /// 明细表格数据
- ///
- /// The main bottom templete object.
- public GridControlEx gcMainDetilObj { get { return this.gcMain; } }
-
- ///
- /// Brp模版控件
- ///
- /// 扫码框
- public TextEdit txtinputobj { get { return this.txt_input; } }
- ///
- /// 数量名称
- ///
- public string NumberMc;
- ///
- /// 红字单据的分配管理模块
- ///
- public string rdRedUnionCode;
- ///
- /// 蓝字单据的分配管理模块
- ///
- public string rdBlueUnionCode;
- ///
- /// 蓝字单据的分配管理模块
- ///
- Dictionary pageNumKey = new Dictionary();
- ///
- /// 是否拖拽换行展示
- ///
- public bool isDragWrap = true;
- ///
- /// 触发主表改变刷新来源限制
- ///
- private bool IsBillMaster = true;
- ///
- /// 是否执行了加载储存过程
- ///
- //public bool ProcessExists = false;
- ///
- /// 保存或修改时报错信息
- ///
- public string SaveErrorMessage = string.Empty;
- ///
- /// 单据明细删除的行
- ///
- // private Dictionary ToWithdrawRows = new Dictionary();
- private List> ToWithdrawRows = new List>();
- ///
- ///改变颜色行
- ///
- private List ChangeColorRow = new List();
- ///
- ///
- ///
- public string AssociatedField = string.Empty;
- ///
- /// 注册设置公共事件私有类
- ///
- private static PubEvenImpl _eventHandler;
- ///
- /// 注册设置公共事件类
- ///
- private static PubEvenImpl eventHandler;
- ///
- /// 当前人员是否有导出权限
- ///
- public bool ExportPermission;
- ///
- /// 是否显示单据管理条数
- ///
- public bool IsBillShowCount = false;
- ///
- /// 来源明细的页面名字后缀(设置成全局变量,更好的处理语言翻译的情况)
- ///
- public string DetailedSuffix = Business.Impl.LanguageTranslation.Translatable ? Business.Impl.LanguageTranslation.GetTranslatedText("-明细") : "-明细";
- ///
- /// 单据来源控件集合
- ///
- public Dictionary BillModuleModelDic = new Dictionary();
- ///
- /// 主表动态生成的日期列
- ///
- public List DateColumnList = new List();
- ///
- /// 主表动态生成的合计列
- ///
- public GridColumn SumGridColumn = new GridColumn();
-
- ///
- /// 是否已经添加了多行汇总
- ///
- public bool MultiLineSummary;
- ///
- /// 扫码框
- ///
- public TextEdit ScanCodeTextEdit = null;
- ///
- /// 右侧表格
- ///
- public ModuleGridEx gridEx = null;
-
- public BillModule()
- {
- InitializeComponent();
- }
-
- #region 初始化操作
- ///
- /// 说明:窗口加载
- /// 创建人:龚宇超
- /// 创建日期:2017-11-23
- /// 修改人:
- /// 修改日期:
- /// 修改备注:
- /// 版本:1.0
- ///
- /// The instance containing the event data.
- public void OnLoad(DynamicBillModel Model)
- {
- try
- {
- this.SysModel = Model;// 单据动态链接库参数,入口参数
- this._isInitFinish = false;// 是否为初始化创建
- this.ssc_main.Visible = false; //获取或设置一个值,该值指示是否显示该控件及其所有子控件。
- //this.ProcessExists = (Lskj.Data.Caches.CacheSYSConfig.Instance().JudgeProcessExists() && SystemInfo.Instance.isExecload);
-
- if (true)//5.0控件样式
- {
- this.pl_main_bottom.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
- this.pl_main_bottom.BackColor = Color.FromArgb(240, 240, 240);
- this.pl_main_bottom.LookAndFeel.UseDefaultLookAndFeel = false;
- this.pl_main_bottom.LookAndFeel.UseWindowsXPTheme = true;
- }
-
- Dictionary