| | |
| | | using DevExpress.Utils; |
| | | using Gs.DevApp.DevFrm.WW; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using DevExpress.Utils; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | namespace Gs.DevApp.DevFrm.WW |
| | | namespace Gs.DevApp.DevFrm |
| | | { |
| | | public partial class Frm_WwGd : DevExpress.XtraEditors.XtraForm |
| | | { |
| | |
| | | this.toolBarMenu1.btnTzblClick += ToolBarMenu1_btnTzblClick; |
| | | this.toolBarMenu1.btnKgClick += ToolBarMenu1_btnKgClick; |
| | | this.toolBarMenu1.btnWgClick += ToolBarMenu1_btnWgClick; |
| | | this.toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; |
| | | toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick; |
| | | this.toolBarMenu1.getXmlConfig(); |
| | | gvMx1.Columns["barbl"].DisplayFormat.FormatType = FormatType.Numeric; |
| | |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | } |
| | | |
| | | private void ToolBarMenu1_btnPrintClick(object sender, EventArgs e) |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_daa001, gridView1); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | this.toolBarMenu1.rptParameter = "return false"; |
| | | MsgHelper.Warning("请先选择你要打印的单据!"); |
| | | return; |
| | | } |
| | | string rptParameter = "rpt_Wwgd{" |
| | | + rowGuid // @inOrderGuid - 单据guid |
| | | + "," + "100" // @isDesign - 重打都是传100 |
| | | + "," + "" // @in1 - 入库时间(扩展用) |
| | | + "," + "" // @in2 - 特采(扩展用) |
| | | + "," + "" // @in3 - 供应商id(扩展用) |
| | | + "," + "" // @in4 - 张数(扩展用) |
| | | + "," + "" // @in5 - 数量(扩展用) |
| | | + "," + "" // @in6 - 扩展用 |
| | | + "}"; |
| | | this.toolBarMenu1.rptParameter = rptParameter; |
| | | this.toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | | _filterList = Gs.DevApp.ToolBox.UtilityHelper.GetDilter(gridView1.Columns, gridView1); |