using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Stone.Common; namespace Stone.WinModule.JISData { public partial class frmJISLog : Stone.WinModule.BasicData.frmBaseMain { public frmJISLog() { InitializeComponent(); this.tlbAdd.Visible = false; this.tlbAddCopy.Visible = false; this.tlbEdit.Visible = false; this.tlbDelete.Visible = false; this.tlbInput.Visible = false; } public override void init() { this.strWhere = "ID = 0"; try { strWhere = "convert(varchar(10),StartTime,120)='" + MyDateTime.Format( MyDateTimeType.Date) + "'"; } catch { } base.init(); } public override void Search(string code) { string d1 = MyDateTime.Format(this.dateTimePicker1.Value, MyDateTimeType.Date) + " 00:00:00"; string d2 = MyDateTime.Format(this.dateTimePicker2.Value, MyDateTimeType.Date) + " 23:59:59"; if (code == "") { strWhere = "1=1"; } else { strWhere = " [FileType] like '%" + code + "%' or "; strWhere += " [FileName] like '%" + code + "%' or "; strWhere += " [Memo] like '%" + code + "%' "; } strWhere = "[StartTime]>='" + d1 + "' and [StartTime]<='" + d2 + "' and (" + strWhere + ")"; if (this.chkError.Checked) { strWhere += " and ([ProcessState]<>'Success' or [ProcessState] is null)"; } } private void frmJISLog_Load(object sender, EventArgs e) { } } }