| | |
| | | this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; |
| | | this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnPrintClick += ToolBarMenu1_btnPrintClick; |
| | | toolBarMenu1.btnTBPrintClick += ToolBarMenu1_btnTBPrintClick; |
| | | this.toolBarMenu1.getXmlConfig(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, this, "", "", (value) => |
| | | { |
| | |
| | | + "}"; |
| | | this.toolBarMenu1.guidKey = null; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 这是托板打印 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnTBPrintClick(object sender, EventArgs e) |
| | | { |
| | | //System.Text.StringBuilder sb = new System.Text.StringBuilder(); |
| | | gridView1.PostEditor(); |
| | | gridView1.UpdateCurrentRow(); |
| | | |
| | | /*if (string.IsNullOrEmpty(sb.ToString())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("提示:请先选择物料!"); |
| | | this.toolBarMenu1.rptParameter = "return false"; |
| | | return; |
| | | }*/ |
| | | this.toolBarMenu1.rptParameter = "rpt_TB_Print{" |
| | | + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "," + "" |
| | | + "}"; |
| | | this.toolBarMenu1.guidKey = null; |
| | | } |
| | | } |
| | | } |