using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.CA06; using System.Collections; using Infragistics.Win.UltraWinGrid; namespace Core.LZMes.Client.QCM { public partial class QCM030717 : FrmBase { public QCM030717() { InitializeComponent(); } public string bacthno = ""; private void QCM0307_Load(object sender, EventArgs e) { try { this.dataSet7.Clear(); CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "QCM.QCM03.QCM0302.QcmJhyPhyresultServiceImpl"; ccp.MethodName = "getPRejudgeInfo"; ccp.ServerParams = new object[] { bacthno }; ccp.SourceDataTable = this.dataSet7.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); MessageBox.Show("系统出错,请联系管理人员", "警告"); } } private void button2_Click(object sender, EventArgs e) { try { this.Close(); } catch (System.Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); } } private void button1_Click(object sender, EventArgs e) { foreach(UltraGridRow ugr in this.ultraGrid6.Rows) { if(ugr.Cells["CHECK"].Text.ToString() == "True") { string billetid = ugr.Cells["BILLETID"].Value.ToString(); CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl"; ccp.MethodName = "JudgeF"; ccp.ServerParams = new object[] { billetid,this.UserInfo.GetUserName(),"4"}; ccp.SourceDataTable = this.dataSet7.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } } doQuery(); } private void doQuery() { try { this.dataSet7.Clear(); CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "QCM.QCM03.QCM0302.QcmJhyPhyresultServiceImpl"; ccp.MethodName = "getPRejudgeInfo"; ccp.ServerParams = new object[] { bacthno }; ccp.SourceDataTable = this.dataSet7.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); MessageBox.Show("系统出错,请联系管理人员", "警告"); } } private void button3_Click(object sender, EventArgs e) { doQuery(); } private void button4_Click(object sender, EventArgs e) { foreach(UltraGridRow ugr in this.ultraGrid6.Rows) { if(ugr.Cells["CHECK"].Text.ToString() == "True") { string billetid = ugr.Cells["BILLETID"].Value.ToString(); CoreClientParam ccp = new CoreClientParam(); ccp.ServerName = "QCM.QCM03.QCM0307.QcmRejudgeApplyServiceImpl"; ccp.MethodName = "JudgeF"; ccp.ServerParams = new object[] { billetid,this.UserInfo.GetUserName(),"3"}; ccp.SourceDataTable = this.dataSet7.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } } doQuery(); } } }