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; namespace CoreDemo { public partial class RmsAreaForm : FrmBase { public RmsAreaForm() { InitializeComponent(); } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { } public override void ToolBar_Click(object sender, string ToolbarKey) { switch (ToolbarKey) { case "Query": this.DoQuery(); break; } } private void DoQuery() { try { string sqlid = "C0601010301"; this.dataSet1.Tables[0].Clear(); CoreClientParam ccp = new CoreClientParam(); //ccp.InvokeID = "C06010103"; ccp.ServerName = "CoreFs.Test.RmsAreaManager"; ccp.MethodName = "queryArea"; ccp.ServerParams = new object[] { sqlid }; ccp.SourceDataTable = this.dataSet1.Tables[0]; this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal); } catch (Exception EX) { MessageBox.Show(EX.ToString()); } } } }