SVN r797
SVN-Revision: r797
This commit is contained in:
+72
-85
@@ -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
|
||||
private DevExpress.XtraEditors.SimpleButton btnPrint;
|
||||
private System.ComponentModel.BackgroundWorker backgroundWorker1
|
||||
@@ -224,6 +224,10 @@ namespace Lskj.PubBillSpecial
|
||||
/// 右侧表格
|
||||
/// </summary>
|
||||
public ModuleGridEx gridEx = null;
|
||||
/// <summary>
|
||||
/// 右侧表格Model
|
||||
/// </summary>
|
||||
public DynamicModel gridExModel = null;
|
||||
|
||||
public BillModule()
|
||||
{
|
||||
@@ -260,16 +264,15 @@ namespace Lskj.PubBillSpecial
|
||||
|
||||
Dictionary<object, Hashtable> dataCaches = Model != null ? Model.DataCaches : null;
|
||||
dataCaches.GetValue(this, "DataCaches", out bool _);//等待缓存数据加载完成
|
||||
this.InitlizeSpiltLocation();
|
||||
this.InitializeSetting();//初始化系统配置
|
||||
this.InitializeControl();//初始化控件
|
||||
this.InitlizeSpiltLocation();
|
||||
|
||||
|
||||
this.gcMain.GridView.KeyDown += new KeyEventHandler(OnToWithdraw);
|
||||
this.gcMain.GridView.GridControl.ProcessGridKey += new KeyEventHandler(OnGridControlKye);
|
||||
|
||||
this.gcMain.ExportPermission = this.BillModel.ExportPermission;
|
||||
|
||||
this.CalculateCoordinates();
|
||||
|
||||
//单据明细推拽
|
||||
@@ -285,10 +288,6 @@ namespace Lskj.PubBillSpecial
|
||||
this.rdRed.Text = Business.Impl.LanguageTranslation.GetTranslatedText(this.rdRed.Text);
|
||||
this.labelControl1.Text = Business.Impl.LanguageTranslation.GetTranslatedText(this.labelControl1.Text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -306,11 +305,9 @@ namespace Lskj.PubBillSpecial
|
||||
this.pl_main_center_master.VerticalScroll.Visible = this.BillModel.MainVerticalScroll;//隐藏纵向滚动条
|
||||
this.pl_main_center_master.HorizontalScroll.Visible = this.BillModel.MainHorizontalScrolling;//隐藏横向滚动条
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取数据源缓存
|
||||
/// </summary>
|
||||
@@ -472,7 +469,6 @@ namespace Lskj.PubBillSpecial
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:初始化分割条位置</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
@@ -490,7 +486,16 @@ namespace Lskj.PubBillSpecial
|
||||
this.ssc_main_top.PanelVisibility = SplitPanelVisibility.Panel2;
|
||||
// 隐藏来源明细
|
||||
this.ssc_main.PanelVisibility = SplitPanelVisibility.Panel1;
|
||||
|
||||
int maxPosition = 0;
|
||||
foreach (System.Windows.Forms.Control item in this.pl_main_center_master.Controls)
|
||||
{
|
||||
if (item is BaseUserControl baseUserControl && (baseUserControl.Location.X + baseUserControl.Width) > maxPosition)
|
||||
{
|
||||
maxPosition = baseUserControl.Location.X + baseUserControl.Width;
|
||||
}
|
||||
}
|
||||
this.splitMainControl.SplitterPosition = maxPosition + 10;
|
||||
this.splitMainControl.IsSplitterFixed = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -638,7 +643,7 @@ namespace Lskj.PubBillSpecial
|
||||
/// </summary>
|
||||
private void InitializeModuleGridex()
|
||||
{
|
||||
DynamicModel dyncModel = new DynamicModel(new string[] { "", ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, this.SysModel.Privilege, this.BillModel.RightModuleCode, "0" });
|
||||
gridExModel = new DynamicModel(new string[] { "", ERPInfo.Instance.UserId, ERPInfo.Instance.UserName, this.SysModel.Privilege, this.BillModel.RightModuleCode, "0" });
|
||||
DataRow moduleInformation = MainImpl.GetSystemdllTab(this.BillModel.RightModuleCode);
|
||||
if (moduleInformation == null)
|
||||
{
|
||||
@@ -656,7 +661,7 @@ namespace Lskj.PubBillSpecial
|
||||
gridEx.OperShortMode = false; // 不显示简短模式
|
||||
gridEx.VisibleSearchPanel = false;
|
||||
gridEx.VisibleOperPanel = true;
|
||||
gridEx.InitializeControl(model, dyncModel);
|
||||
gridEx.InitializeControl(model, gridExModel);
|
||||
gridEx.GridControlObj.Tag = model;//都在本地图可留着备用
|
||||
//gridEx.ParentControlEx = this.gcMain;
|
||||
gridEx.ParentControlObj = this.ControlObj;
|
||||
@@ -665,10 +670,31 @@ namespace Lskj.PubBillSpecial
|
||||
//gridEx.DetailKeyField = model.UnionValue;//新增关联可拖拽刷新数据源
|
||||
|
||||
gridEx.VisibleSearchPanel = false;
|
||||
|
||||
gridEx.ObjPanel.Enabled = false;
|
||||
gridEx.GridControlObj.ParentControl = gridEx.SearchObj;
|
||||
this.splitMainControl.Panel2.Controls.Add(gridEx);
|
||||
gridEx.SearchObj.SearchGrid();
|
||||
|
||||
List<System.Windows.Forms.Control> deleteControls = new List<System.Windows.Forms.Control>();
|
||||
foreach (System.Windows.Forms.Control item in gridEx.ObjPanel.Controls)
|
||||
{
|
||||
if (item.Name.Equals("dpbTools") || item.Name.Equals("btnUpdate") || item.Name.Equals("btnImport") || item.Name.Equals("btnExport") || item.Name.Equals("btnPrint"))
|
||||
{
|
||||
deleteControls.Add(item);
|
||||
}
|
||||
}
|
||||
foreach (System.Windows.Forms.Control item in deleteControls)
|
||||
{
|
||||
gridEx.ObjPanel.Controls.Remove(item);
|
||||
}
|
||||
int j = 0, x = 72;
|
||||
foreach (System.Windows.Forms.Control item in gridEx.ObjPanel.Controls)
|
||||
{
|
||||
item.Location = new Point(gridEx.ObjPanel.Width - x - 10, item.Location.Y);
|
||||
item.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
x += 79;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
||||
#region 衍生表格数据操作
|
||||
@@ -782,7 +808,7 @@ namespace Lskj.PubBillSpecial
|
||||
{
|
||||
tableCommon = BaseModuleImpl.GetBaseGridRightMenus(this.SysModel.ModuleCode, ModuleType.BillDetail);//获取右键菜单数据
|
||||
}
|
||||
int j = 0, x = 95;
|
||||
int j = 0, x = 72;
|
||||
foreach (DataRow item in tableCommon.Rows)
|
||||
{
|
||||
SimpleButton itemCommon = new SimpleButton();
|
||||
@@ -790,14 +816,14 @@ namespace Lskj.PubBillSpecial
|
||||
//itemCommon.AutoSize = true;
|
||||
itemCommon.Text = item["menuname"] + "";
|
||||
itemCommon.Tag = item;
|
||||
itemCommon.Size = new System.Drawing.Size(80, 35);
|
||||
itemCommon.Font = new Font("宋体", 10);
|
||||
itemCommon.Size = new System.Drawing.Size(72, 26);
|
||||
itemCommon.Font = new Font("宋体", 9);
|
||||
itemCommon.Click += new EventHandler(itemCommon_Click);
|
||||
|
||||
itemCommon.Location = new Point(groupBox1.Width - x - 10, (groupBox1.Height - itemCommon.Height) / 2);
|
||||
itemCommon.Location = new Point(pl_buttom.Width - x - 10, (pl_buttom.Height - itemCommon.Height) / 2);
|
||||
itemCommon.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
groupBox1.Controls.Add(itemCommon);
|
||||
x += 90;
|
||||
pl_buttom.Controls.Add(itemCommon);
|
||||
x += 79;
|
||||
if (tableCommon.Columns.Contains("menuCond"))
|
||||
{
|
||||
itemCommon.Enabled = ValidateCond(item["menuCond"] + "", null);
|
||||
@@ -1506,7 +1532,8 @@ namespace Lskj.PubBillSpecial
|
||||
}
|
||||
if (rowItem != null)
|
||||
{
|
||||
|
||||
gridExModel.MaintabFocusedRow = rowItem;
|
||||
gridEx.ObjPanel.Enabled = true;
|
||||
// 单据为修改状态,无需设置赋值时不需要计算面板属性
|
||||
bool isReadOnly = !string.IsNullOrEmpty(this.BillModel.ModifyCond) && !ReplaceHelper.ReplaceRowParamCond(rowItem, this.BillModel.ModifyCond);
|
||||
this.ControlObj.CanExecControl = false; // 单据为修改状态时,无需计算面板属性
|
||||
@@ -1581,7 +1608,8 @@ namespace Lskj.PubBillSpecial
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
gridExModel.MaintabFocusedRow = null;
|
||||
gridEx.ObjPanel.Enabled = false;
|
||||
// 单据为新增状态
|
||||
this.btnDelete.Enabled = this.btnBillSave.Enabled = this.btnBillApply.Enabled = true;
|
||||
this.lbTitle.Text = this.BillModel.TypeName + "(新增)";
|
||||
@@ -6539,6 +6567,7 @@ namespace Lskj.PubBillSpecial
|
||||
if (modelRow.Table.Columns.Contains("countSql") && !string.IsNullOrWhiteSpace(modelRow["countSql"] + ""))
|
||||
{
|
||||
string sql = modelRow["countSql"] + "";
|
||||
sql = ReplaceHelper.ReplaceUserInfo(sql);
|
||||
sql = ReplaceHelper.ReplaceParamToValue(sql, "{value}", inputText);
|
||||
string num = SqlHelper.ExecuteScalar(sql) + "";
|
||||
num = this.IsNumberic(num) ? num : "0";
|
||||
@@ -6694,7 +6723,7 @@ namespace Lskj.PubBillSpecial
|
||||
/// <param name="state"></param>
|
||||
public void SetButtonStatus(DataRow rowItem = null)
|
||||
{
|
||||
foreach (System.Windows.Forms.Control control in groupBox1.Controls)
|
||||
foreach (System.Windows.Forms.Control control in pl_buttom.Controls)
|
||||
{
|
||||
if (control is SimpleButton)
|
||||
{
|
||||
@@ -6745,4 +6774,4 @@ namespace Lskj.PubBillSpecial
|
||||
if (rightEdge > maxRightEdge)
|
||||
{
|
||||
maxRightEdge = rightEdge;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.1.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\lserp_cs_6.0\引用DLL\Newtonsoft.Json.dll</HintPath>
|
||||
<HintPath>..\..\引用DLL\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spire.Doc, Version=8.3.15.0, Culture=neutral, PublicKeyToken=663f351905198cb3, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
|
||||
Reference in New Issue
Block a user