| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- 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.UIM
- {
- public partial class UIM010370 : FrmBase
- {
- public UIM010370()
- {
- InitializeComponent();
- }
- public override void ToolBar_Click(object sender, string ToolbarKey)
- {
- switch (ToolbarKey)
- {
- case "Query":
- this.DoQuery();
- break;
- case "Save":
- this.DoSave();
- break;
- case "Exp":
- this.DoExp();
- break;
- case "Exit":
- this.Close();
- break;
- }
- }
- private void DoQuery()
- {
- try
- {
-
- ArrayList al = new ArrayList();
- al.Add("UIM010370_01.SELECT");
- al.Add(this.ultraDateTimeEditor1.DateTime.ToString("yyyyMMdd") + "000000");
- al.Add(this.ultraDateTimeEditor2.DateTime.ToString("yyyyMMdd") + "999999");
- al.Add(this.textBox1.Text.Trim());
- this.dataSet1.Tables[0].Clear();
- CoreClientParam ccp = new CoreClientParam();
- ccp.ServerName = "UIB.COM.ComDBQuery";
- ccp.MethodName = "doSimpleQuery";
- ccp.ServerParams = new object[] { al };
- ccp.SourceDataTable = this.dataSet1.Tables[0];
- ccp.IfShowErrMsg = false;
- this.ExecuteQueryToDataTable(ccp, CoreInvokeType.Internal);
- foreach (UltraGridRow ugr in this.ultraGrid1.Rows)
- {
- if (ugr.Cells["CUR_LOAD_LOC"].Text != "")
- {
- ugr.Appearance.ForeColor = Color.Red;//红色
- }
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show("系统发生未知异常,请联系管理员");
- }
- }
- private void DoExp()
- {
- }
- private void DoSave()
- {
- }
- }
- }
|