diff --git a/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs b/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs
index be95f9a..6ff7ada 100644
--- a/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs
+++ b/插件库/Lskj.PubBillSpecial/BillModule.Designer.cs
@@ -28,6 +28,7 @@
///
private void InitializeComponent()
{
+ this.components = new System.ComponentModel.Container();
this.ssc_main = new DevExpress.XtraEditors.SplitContainerControl();
this.ssc_main_top = new DevExpress.XtraEditors.SplitContainerControl();
this.pl_main = new DevExpress.XtraEditors.PanelControl();
@@ -40,7 +41,7 @@
this.pl_treeview_detault_search = new DevExpress.XtraEditors.PanelControl();
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
- this.barManager1 = new DevExpress.XtraBars.BarManager();
+ this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
this.barDockControl1 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl2 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl3 = new DevExpress.XtraBars.BarDockControl();
@@ -73,11 +74,11 @@
this.rdRed = new System.Windows.Forms.RadioButton();
this.pl_blue = new DevExpress.XtraEditors.PanelControl();
this.rdBlue = new System.Windows.Forms.RadioButton();
- this.pMprint = new DevExpress.XtraBars.PopupMenu();
- this.pmFP = new DevExpress.XtraBars.PopupMenu();
- this.pmBillExp = new DevExpress.XtraBars.PopupMenu();
- this.pmBill = new DevExpress.XtraBars.PopupMenu();
- this.pMenu = new DevExpress.XtraBars.PopupMenu();
+ this.pMprint = new DevExpress.XtraBars.PopupMenu(this.components);
+ this.pmFP = new DevExpress.XtraBars.PopupMenu(this.components);
+ this.pmBillExp = new DevExpress.XtraBars.PopupMenu(this.components);
+ this.pmBill = new DevExpress.XtraBars.PopupMenu(this.components);
+ this.pMenu = new DevExpress.XtraBars.PopupMenu(this.components);
this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker();
((System.ComponentModel.ISupportInitialize)(this.ssc_main)).BeginInit();
diff --git a/插件库/Lskj.PubBillSpecial/BillModule.cs b/插件库/Lskj.PubBillSpecial/BillModule.cs
index ea3c58b..2dbd243 100644
--- a/插件库/Lskj.PubBillSpecial/BillModule.cs
+++ b/插件库/Lskj.PubBillSpecial/BillModule.cs
@@ -1,6516 +1,6584 @@
-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 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