private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "Query": { this.GetWeightInfo(""); break; } case "导出": { CommonMethod.ExportDataWithSaveDialog2(ref this.ultraGrid1, "棒材计量数据"); break; } case "判定不合格": { this.Save(); break; } case "撤销不合格": { this.Cancel(); break; } case "补打": { this.Reprint(); break; } } }
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "查询": query(); break; case "修改": update(); query(); break; case "删除": delete(); query(); break; case "新增": addnew(); query(); break; case "取样": sample(); query(); break; case "精整": jingzheng(); query(); break; case "复磅": reweight(); query(); break; case "导出": CommonMethod.ExportDataWithSaveDialog2(ref this.ultraGrid1, this.Text); break; case "修改订单": updatePro(); query(); break; } }
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "Query": { this.GetFlowCardInfo(); break; } case "导出": { CommonMethod.ExportDataWithSaveDialog2(ref this.ultraGrid1, this.Text); break; } } }
private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { switch (e.Tool.Key) { case "Query": { this.GetFlowCardInfo(""); break; } case "置为返回坯": { if (ultraGrid1.ActiveRow != null) { DialogResult result = MessageBox.Show(this, "是否将炉号:" + ultraGrid1.ActiveRow.Cells["FS_GP_STOVENO"].Text.ToString() + "置为返回坯?", "提示", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { setStoveAsReturnBillet(ultraGrid1.ActiveRow.Cells["FS_GP_STOVENO"].Text.ToString()); this.GetFlowCardInfo(""); } } else { MessageBox.Show("请先选择要置为返回坯的炉号!"); } break; } case "Export": { CommonMethod.ExportDataWithSaveDialog2(ref this.ultraGrid1, this.Text); break; } } }