Example #1
0
        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;
            }
            }
        }
Example #2
0
        private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
        {
            if (e.Tool.Key == "查询")
            {
                QueryBCWeightMainData();
            }

            if (e.Tool.Key == "修改")
            {
                UpdateSteelWeightMain();
            }
            if (e.Tool.Key == "补录")
            {
                DoHandSaveMainForGP();
            }
            if (e.Tool.Key == "删除")
            {
                DeleteSteelWeightMain();
            }

            //if (e.Tool.Key == "修改从表")
            //{
            //    UpdateSteelWeightDetail();
            //}
            if (e.Tool.Key == "补录从表")
            {
                //DoHandSaveForGP();
            }
            if (e.Tool.Key == "删除从表")
            {
                //DeleteSteelWeightDetail();
            }
            if (e.Tool.Key == "Export")
            {
                CommonMethod.ExportDataWithSaveDialog2(ref this.ultraGrid1, this.Text);
            }

            if (e.Tool.Key == "修改炉号")
            {
                UpdateStoveno();
            }
        }