diff --git a/插件库/Lskj.PubBill/BillModule.Designer.cs b/插件库/Lskj.PubBill/BillModule.Designer.cs index 0d49b50..ff7c205 100644 --- a/插件库/Lskj.PubBill/BillModule.Designer.cs +++ b/插件库/Lskj.PubBill/BillModule.Designer.cs @@ -190,9 +190,9 @@ this.xtc_left_container.Appearance.Options.UseBackColor = true; this.xtc_left_container.Dock = System.Windows.Forms.DockStyle.Fill; this.xtc_left_container.HeaderLocation = DevExpress.XtraTab.TabHeaderLocation.Bottom; - this.xtc_left_container.Location = new System.Drawing.Point(3, 3); + this.xtc_left_container.Location = new System.Drawing.Point(2, 2); this.xtc_left_container.Name = "xtc_left_container"; - this.xtc_left_container.Size = new System.Drawing.Size(285, 439); + this.xtc_left_container.Size = new System.Drawing.Size(287, 441); this.xtc_left_container.TabIndex = 0; this.xtc_left_container.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.OnTabSelectedPageChanged); // @@ -206,7 +206,7 @@ this.pl_main.Dock = System.Windows.Forms.DockStyle.Fill; this.pl_main.Location = new System.Drawing.Point(0, 0); this.pl_main.Name = "pl_main"; - this.pl_main.Size = new System.Drawing.Size(1212, 445); + this.pl_main.Size = new System.Drawing.Size(1215, 445); this.pl_main.TabIndex = 1; // // pl_main_center @@ -217,9 +217,9 @@ this.pl_main_center.Controls.Add(this.pl_main_center_detail); this.pl_main_center.Controls.Add(this.pl_main_center_master); this.pl_main_center.Dock = System.Windows.Forms.DockStyle.Fill; - this.pl_main_center.Location = new System.Drawing.Point(3, 41); + 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(1206, 364); + this.pl_main_center.Size = new System.Drawing.Size(1211, 366); this.pl_main_center.TabIndex = 2; // // pl_main_center_detail @@ -231,7 +231,7 @@ this.pl_main_center_detail.Dock = System.Windows.Forms.DockStyle.Fill; this.pl_main_center_detail.Location = new System.Drawing.Point(0, 164); this.pl_main_center_detail.Name = "pl_main_center_detail"; - this.pl_main_center_detail.Size = new System.Drawing.Size(1206, 200); + this.pl_main_center_detail.Size = new System.Drawing.Size(1211, 202); this.pl_main_center_detail.TabIndex = 5; // // gcMain @@ -243,7 +243,8 @@ 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(1206, 200); + this.gcMain.Size = new System.Drawing.Size(1211, 202); + this.gcMain.SysModel = null; this.gcMain.TabIndex = 0; // // pl_main_center_master @@ -253,7 +254,7 @@ this.pl_main_center_master.Dock = System.Windows.Forms.DockStyle.Top; 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(1206, 164); + this.pl_main_center_master.Size = new System.Drawing.Size(1211, 164); this.pl_main_center_master.TabIndex = 6; this.pl_main_center_master.Click += new System.EventHandler(this.OnMainFocusAfter); // @@ -291,7 +292,7 @@ this.textEdit1.Name = "textEdit1"; this.textEdit1.Properties.Appearance.Font = new System.Drawing.Font("宋体", 10F); this.textEdit1.Properties.Appearance.Options.UseFont = true; - this.textEdit1.Size = new System.Drawing.Size(0, 26); + this.textEdit1.Size = new System.Drawing.Size(0, 20); this.textEdit1.TabIndex = 5; // // barManager1 @@ -340,7 +341,7 @@ this.lceCombobox.FontSize = 0F; this.lceCombobox.LabelText = "查询"; this.lceCombobox.Location = new System.Drawing.Point(2, 4); - this.lceCombobox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.lceCombobox.Margin = new System.Windows.Forms.Padding(4); this.lceCombobox.Model = null; this.lceCombobox.Name = "lceCombobox"; this.lceCombobox.NullText = ""; @@ -393,9 +394,9 @@ 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(3, 405); + this.pl_main_bottom.Location = new System.Drawing.Point(2, 406); this.pl_main_bottom.Name = "pl_main_bottom"; - this.pl_main_bottom.Size = new System.Drawing.Size(1206, 37); + this.pl_main_bottom.Size = new System.Drawing.Size(1211, 37); this.pl_main_bottom.TabIndex = 1; // // dbpFP @@ -405,7 +406,7 @@ this.dbpFP.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dbpFP.Appearance.Options.UseFont = true; this.dbpFP.DropDownControl = this.pmFP; - this.dbpFP.Location = new System.Drawing.Point(345, 7); + this.dbpFP.Location = new System.Drawing.Point(350, 7); this.dbpFP.Name = "dbpFP"; this.dbpFP.Size = new System.Drawing.Size(58, 26); this.dbpFP.TabIndex = 34; @@ -423,7 +424,7 @@ this.btnRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnRefresh.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnRefresh.Appearance.Options.UseFont = true; - this.btnRefresh.Location = new System.Drawing.Point(409, 7); + this.btnRefresh.Location = new System.Drawing.Point(414, 7); this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Size = new System.Drawing.Size(74, 26); this.btnRefresh.TabIndex = 33; @@ -436,7 +437,7 @@ this.btnHiding.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnHiding.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnHiding.Appearance.Options.UseFont = true; - this.btnHiding.Location = new System.Drawing.Point(485, 7); + this.btnHiding.Location = new System.Drawing.Point(490, 7); this.btnHiding.Name = "btnHiding"; this.btnHiding.Size = new System.Drawing.Size(67, 26); this.btnHiding.TabIndex = 32; @@ -450,7 +451,7 @@ this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnHelp.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnHelp.Appearance.Options.UseFont = true; - this.btnHelp.Location = new System.Drawing.Point(554, 7); + this.btnHelp.Location = new System.Drawing.Point(559, 7); this.btnHelp.Name = "btnHelp"; this.btnHelp.Size = new System.Drawing.Size(67, 26); this.btnHelp.TabIndex = 30; @@ -477,7 +478,7 @@ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.cb_templete.Properties.DropDownRows = 8; this.cb_templete.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.cb_templete.Size = new System.Drawing.Size(133, 28); + this.cb_templete.Size = new System.Drawing.Size(133, 20); this.cb_templete.TabIndex = 19; this.cb_templete.QueryCloseUp += new System.ComponentModel.CancelEventHandler(this.cb_templete_QueryCloseUp); this.cb_templete.Click += new System.EventHandler(this.OnTempleteClick); @@ -487,7 +488,7 @@ this.lbl_templete.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbl_templete.Location = new System.Drawing.Point(5, 8); this.lbl_templete.Name = "lbl_templete"; - this.lbl_templete.Size = new System.Drawing.Size(72, 18); + this.lbl_templete.Size = new System.Drawing.Size(48, 12); this.lbl_templete.TabIndex = 16; this.lbl_templete.Text = "选择模版"; // @@ -513,7 +514,7 @@ new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.cb_input.Properties.DropDownRows = 8; this.cb_input.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; - this.cb_input.Size = new System.Drawing.Size(79, 28); + this.cb_input.Size = new System.Drawing.Size(79, 20); this.cb_input.TabIndex = 19; // // txt_input @@ -523,7 +524,7 @@ this.txt_input.Name = "txt_input"; this.txt_input.Properties.Appearance.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txt_input.Properties.Appearance.Options.UseFont = true; - this.txt_input.Size = new System.Drawing.Size(98, 28); + this.txt_input.Size = new System.Drawing.Size(98, 20); this.txt_input.TabIndex = 18; this.txt_input.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnInputKeyDown); // @@ -532,7 +533,7 @@ this.labelControl2.Appearance.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelControl2.Location = new System.Drawing.Point(5, 8); this.labelControl2.Name = "labelControl2"; - this.labelControl2.Size = new System.Drawing.Size(72, 18); + this.labelControl2.Size = new System.Drawing.Size(48, 12); this.labelControl2.TabIndex = 16; this.labelControl2.Text = "快速录入"; // @@ -555,7 +556,7 @@ this.dpbImport.Appearance.Options.UseFont = true; this.dpbImport.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show; this.dpbImport.DropDownControl = this.pmBillExp; - this.dpbImport.Location = new System.Drawing.Point(699, 7); + this.dpbImport.Location = new System.Drawing.Point(704, 7); this.dpbImport.Name = "dpbImport"; this.dpbImport.Size = new System.Drawing.Size(74, 26); this.dpbImport.TabIndex = 26; @@ -572,7 +573,7 @@ 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("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnBillAdd.Appearance.Options.UseFont = true; - this.btnBillAdd.Location = new System.Drawing.Point(851, 7); + this.btnBillAdd.Location = new System.Drawing.Point(856, 7); this.btnBillAdd.Name = "btnBillAdd"; this.btnBillAdd.Size = new System.Drawing.Size(67, 26); this.btnBillAdd.TabIndex = 19; @@ -585,7 +586,7 @@ 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("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnBillApply.Appearance.Options.UseFont = true; - this.btnBillApply.Location = new System.Drawing.Point(1058, 7); + this.btnBillApply.Location = new System.Drawing.Point(1063, 7); this.btnBillApply.Name = "btnBillApply"; this.btnBillApply.Size = new System.Drawing.Size(67, 26); this.btnBillApply.TabIndex = 25; @@ -600,7 +601,7 @@ this.dpCopyBill.Appearance.Options.UseFont = true; this.dpCopyBill.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show; this.dpCopyBill.DropDownControl = this.pmBill; - this.dpCopyBill.Location = new System.Drawing.Point(775, 7); + this.dpCopyBill.Location = new System.Drawing.Point(780, 7); this.dpCopyBill.Name = "dpCopyBill"; this.dpCopyBill.Size = new System.Drawing.Size(74, 26); this.dpCopyBill.TabIndex = 24; @@ -619,7 +620,7 @@ this.btnPrint.Appearance.Options.UseFont = true; this.btnPrint.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show; this.btnPrint.DropDownControl = this.pMprint; - this.btnPrint.Location = new System.Drawing.Point(1127, 7); + this.btnPrint.Location = new System.Drawing.Point(1132, 7); this.btnPrint.Name = "btnPrint"; this.btnPrint.Size = new System.Drawing.Size(74, 26); this.btnPrint.TabIndex = 23; @@ -638,7 +639,7 @@ this.dpbTools.Appearance.Options.UseFont = true; this.dpbTools.DropDownArrowStyle = DevExpress.XtraEditors.DropDownArrowStyle.Show; this.dpbTools.DropDownControl = this.pMenu; - this.dpbTools.Location = new System.Drawing.Point(623, 7); + this.dpbTools.Location = new System.Drawing.Point(628, 7); this.dpbTools.Name = "dpbTools"; this.dpbTools.Size = new System.Drawing.Size(74, 26); this.dpbTools.TabIndex = 22; @@ -656,7 +657,7 @@ 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("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnDelete.Appearance.Options.UseFont = true; - this.btnDelete.Location = new System.Drawing.Point(920, 7); + this.btnDelete.Location = new System.Drawing.Point(925, 7); this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new System.Drawing.Size(67, 26); this.btnDelete.TabIndex = 20; @@ -669,7 +670,7 @@ 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("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnBillSave.Appearance.Options.UseFont = true; - this.btnBillSave.Location = new System.Drawing.Point(989, 7); + this.btnBillSave.Location = new System.Drawing.Point(994, 7); this.btnBillSave.Name = "btnBillSave"; this.btnBillSave.Size = new System.Drawing.Size(67, 26); this.btnBillSave.TabIndex = 21; @@ -684,9 +685,9 @@ this.pl_main_top.Controls.Add(this.pl_main_top_right); this.pl_main_top.Controls.Add(this.pl_main_top_left); this.pl_main_top.Dock = System.Windows.Forms.DockStyle.Top; - this.pl_main_top.Location = new System.Drawing.Point(3, 3); + this.pl_main_top.Location = new System.Drawing.Point(2, 2); this.pl_main_top.Name = "pl_main_top"; - this.pl_main_top.Size = new System.Drawing.Size(1206, 38); + this.pl_main_top.Size = new System.Drawing.Size(1211, 38); this.pl_main_top.TabIndex = 0; // // pl_main_top_center @@ -696,9 +697,9 @@ this.pl_main_top_center.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.pl_main_top_center.Controls.Add(this.lbTitle); this.pl_main_top_center.Dock = System.Windows.Forms.DockStyle.Fill; - this.pl_main_top_center.Location = new System.Drawing.Point(163, 3); + this.pl_main_top_center.Location = new System.Drawing.Point(162, 2); this.pl_main_top_center.Name = "pl_main_top_center"; - this.pl_main_top_center.Size = new System.Drawing.Size(857, 32); + this.pl_main_top_center.Size = new System.Drawing.Size(864, 34); this.pl_main_top_center.TabIndex = 3; // // lbTitle @@ -709,7 +710,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(857, 32); + this.lbTitle.Size = new System.Drawing.Size(864, 34); this.lbTitle.TabIndex = 1; this.lbTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbTitle.Paint += new System.Windows.Forms.PaintEventHandler(this.OnLabelTitlePaint); @@ -722,9 +723,9 @@ this.pl_main_top_right.Controls.Add(this.lblOrderNo); this.pl_main_top_right.Controls.Add(this.labelControl1); this.pl_main_top_right.Dock = System.Windows.Forms.DockStyle.Right; - this.pl_main_top_right.Location = new System.Drawing.Point(1020, 3); + this.pl_main_top_right.Location = new System.Drawing.Point(1026, 2); this.pl_main_top_right.Name = "pl_main_top_right"; - this.pl_main_top_right.Size = new System.Drawing.Size(183, 32); + this.pl_main_top_right.Size = new System.Drawing.Size(183, 34); this.pl_main_top_right.TabIndex = 2; // // lblOrderNo @@ -734,7 +735,7 @@ this.lblOrderNo.Appearance.ForeColor = System.Drawing.Color.Blue; this.lblOrderNo.Location = new System.Drawing.Point(67, 19); this.lblOrderNo.Name = "lblOrderNo"; - this.lblOrderNo.Size = new System.Drawing.Size(135, 18); + this.lblOrderNo.Size = new System.Drawing.Size(90, 12); this.lblOrderNo.TabIndex = 1; this.lblOrderNo.Text = "XTC170112010001"; // @@ -745,7 +746,7 @@ this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Blue; this.labelControl1.Location = new System.Drawing.Point(7, 19); this.labelControl1.Name = "labelControl1"; - this.labelControl1.Size = new System.Drawing.Size(81, 18); + this.labelControl1.Size = new System.Drawing.Size(54, 12); this.labelControl1.TabIndex = 0; this.labelControl1.Text = "单据编号:"; // @@ -757,9 +758,9 @@ this.pl_main_top_left.Controls.Add(this.pl_red); this.pl_main_top_left.Controls.Add(this.pl_blue); this.pl_main_top_left.Dock = System.Windows.Forms.DockStyle.Left; - this.pl_main_top_left.Location = new System.Drawing.Point(3, 3); + this.pl_main_top_left.Location = new System.Drawing.Point(2, 2); this.pl_main_top_left.Name = "pl_main_top_left"; - this.pl_main_top_left.Size = new System.Drawing.Size(160, 32); + this.pl_main_top_left.Size = new System.Drawing.Size(160, 34); this.pl_main_top_left.TabIndex = 1; // // pl_red @@ -771,7 +772,7 @@ this.pl_red.Dock = System.Windows.Forms.DockStyle.Left; this.pl_red.Location = new System.Drawing.Point(80, 0); this.pl_red.Name = "pl_red"; - this.pl_red.Size = new System.Drawing.Size(80, 32); + this.pl_red.Size = new System.Drawing.Size(80, 34); this.pl_red.TabIndex = 3; // // rdRed @@ -781,7 +782,7 @@ this.rdRed.ForeColor = System.Drawing.Color.Red; this.rdRed.Location = new System.Drawing.Point(6, 12); this.rdRed.Name = "rdRed"; - this.rdRed.Size = new System.Drawing.Size(105, 22); + this.rdRed.Size = new System.Drawing.Size(71, 16); this.rdRed.TabIndex = 3; this.rdRed.Text = "红字单据"; this.rdRed.UseVisualStyleBackColor = true; @@ -796,7 +797,7 @@ this.pl_blue.Dock = System.Windows.Forms.DockStyle.Left; this.pl_blue.Location = new System.Drawing.Point(0, 0); this.pl_blue.Name = "pl_blue"; - this.pl_blue.Size = new System.Drawing.Size(80, 32); + this.pl_blue.Size = new System.Drawing.Size(80, 34); this.pl_blue.TabIndex = 2; // // rdBlue @@ -807,7 +808,7 @@ this.rdBlue.ForeColor = System.Drawing.Color.Blue; this.rdBlue.Location = new System.Drawing.Point(7, 12); this.rdBlue.Name = "rdBlue"; - this.rdBlue.Size = new System.Drawing.Size(105, 22); + this.rdBlue.Size = new System.Drawing.Size(71, 16); this.rdBlue.TabIndex = 2; this.rdBlue.TabStop = true; this.rdBlue.Text = "蓝字单据"; @@ -819,7 +820,7 @@ this.tb_buttom.Dock = System.Windows.Forms.DockStyle.Fill; this.tb_buttom.Location = new System.Drawing.Point(0, 0); this.tb_buttom.Name = "tb_buttom"; - this.tb_buttom.Size = new System.Drawing.Size(1511, 277); + this.tb_buttom.Size = new System.Drawing.Size(1511, 280); this.tb_buttom.TabIndex = 25; this.tb_buttom.Load += new System.EventHandler(this.tb_buttom_Load); // diff --git a/插件库/Lskj.PubBill/BillModule.cs b/插件库/Lskj.PubBill/BillModule.cs index 52a5dcf..27cabb5 100644 --- a/插件库/Lskj.PubBill/BillModule.cs +++ b/插件库/Lskj.PubBill/BillModule.cs @@ -1,43 +1,39 @@ -using System; +using DevExpress.Data; +using DevExpress.Utils; +using DevExpress.XtraBars; +using DevExpress.XtraEditors; +using DevExpress.XtraGrid.Columns; +using DevExpress.XtraGrid.Views.Base; +using DevExpress.XtraGrid.Views.Grid; +using DevExpress.XtraTab; +using DevExpress.XtraTreeList.Columns; +using DevExpress.XtraTreeList.Nodes; +using Lskj.Business; +using Lskj.Business.Impl; +using Lskj.Control; +using Lskj.Control.BrowserSetting; +using Lskj.Control.Model; +using Lskj.Core; +using Lskj.Data; +using Lskj.Model; +using Lskj.PubBill.Model; +using Lskj.Util; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections; 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.PubBill.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; -using Lskj.Control.BrowserSetting; +using System.Drawing; +using System.IO; +using System.Linq; using System.Net; -using System.Web; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; +using System.Windows.Forms; namespace Lskj.PubBill { @@ -824,7 +820,7 @@ namespace Lskj.PubBill //父节点编号 (this.gcMain as TreeGridControlEx).TreeListObj.ParentFieldName = "tap_pid"; (this.gcMain as TreeGridControlEx).SortField = this.BillModel.DetailOrderField; - (this.gcMain as TreeGridControlEx).TreeTableDragCondition = this.BillModel.TreeTableDragCondition; + //(this.gcMain as TreeGridControlEx).TreeTableDragCondition = this.BillModel.TreeTableDragCondition; (this.gcMain as TreeGridControlEx).InitializedragState(); } @@ -5616,7 +5612,18 @@ namespace Lskj.PubBill string tipMsg = string.Empty; string billNo = this.lblOrderNo.Text.Trim(); - + #region 提交审核前调用API + if (ApiHelper.IsExecEventApi(Interface.Api.OperateEvent.BeforeModuleAuditStateChange, this.SysModel.ModuleCode, 0)) + { + ApiHelper apiHelper = new ApiHelper(this.SysModel.ModuleCode, billNo, this.BillModel.PrimaryKey, this.BillModel.MasterTable, 0); + apiHelper.OnEvent(Interface.Api.OperateEvent.BeforeModuleAuditStateChange, Interface.Api.ActionType.Submit);//提交 + if (!apiHelper.apiHandler.GetApiSuccess(apiHelper.apiHandlerModels)) + { + MessageUtil.Show(ResourceKeys.ApplyFault + "\r\n" + apiHelper.apiResutMsg); + return; + } + } + #endregion int result = BillImpl.BillApply(this.SysModel.ModuleCode, billNo, "", 1, out tipMsg, comfirm); WaitForm.HideForm(); switch (result) @@ -9705,7 +9712,7 @@ namespace Lskj.PubBill string postUrl = "{0}Api/FileUploadApi.ashx?moduleId={1}&idValue={2}&folder={3}&totsize={4}&position={5}&filename={6}&method={7}"; Dictionary headerDic = new Dictionary(); headerDic.Add("Authorization", $"Bearer {token}"); - postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, this.SysModel.ModuleCode, this.lblOrderNo.Text, "UploadFilesTemp", fileBytes.Length, 0, HttpUtility.UrlEncode($"{Guid.NewGuid()}_{Path.GetFileName(_imageEdit.CurrentImagePath)}"), "DoWebUpload"); + postUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, this.SysModel.ModuleCode, this.lblOrderNo.Text, "UploadFilesTemp", fileBytes.Length, 0, System.Web.HttpUtility.UrlEncode($"{Guid.NewGuid()}_{Path.GetFileName(_imageEdit.CurrentImagePath)}"), "DoWebUpload"); HttpTools.setting("application/x-www-form-urlencoded", null, null); HttpWebResponse webResponse = HttpTools.Post(postUrl, fileBase64Str, null, headerDic, HttpTools.Method.POST, out CookieCollection cookieCollection, out string result); if (webResponse != null && !string.IsNullOrEmpty(result)) @@ -9811,5 +9818,38 @@ namespace Lskj.PubBill /// 设置打印按钮条件 /// /// - public bool SetPrintButton(DataRow rowItem) - \ No newline at end of file + public bool SetPrintButton(DataRow rowItem) + { + try + { + bool result = false; + //判断打印按钮条件 + if (!string.IsNullOrWhiteSpace(this.BillModel.PrintingConditions)) + { + if (rowItem == null) return result; + + string cond = ReplaceHelper.ReplaceRowParam(rowItem, this.BillModel.PrintingConditions); + if (cond.StartsWith("@") || cond.StartsWith("!")) + { + result = "1".Equals(BaseImpl.GetDefaultValue(cond)); + } + else + { + result = ReplaceHelper.ReplaceRowParamCond(rowItem, cond); + } + return result; + } + else + { + return true; + } + } + catch (Exception ex) + { + return false; + } + } + + + } +} \ No newline at end of file diff --git a/插件库/Lskj.PubBill/Lskj.PubBill.csproj b/插件库/Lskj.PubBill/Lskj.PubBill.csproj index 0957499..6b2f1bc 100644 --- a/插件库/Lskj.PubBill/Lskj.PubBill.csproj +++ b/插件库/Lskj.PubBill/Lskj.PubBill.csproj @@ -35,6 +35,7 @@ + @@ -64,10 +65,16 @@ False ..\..\引用DLL\Lskj.WebErp.Core.dll + + False + ..\..\引用DLL\Newtonsoft.Json.dll + + + @@ -82,12 +89,30 @@ BillModule.cs + + Form + + + FrmAdd.cs + Form FrmBomSelect.cs + + Form + + + FrmDocumentSource.cs + + + Form + + + FrmScanCodeAssociation.cs + @@ -106,12 +131,21 @@ BillModule.cs Designer + + FrmAdd.cs + FrmBomSelect.cs + + FrmDocumentSource.cs + FrmMain.cs + + FrmScanCodeAssociation.cs +