using Stone.Common; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Stone.WinModule.VerifyData { public partial class frmVerifyBill : Stone.WinModule.BasicData.frmBaseMain { public frmVerifyBill() { InitializeComponent(); this.tlbAdd.Visible = false; this.tlbAddCopy.Visible = false; this.tlbDelete.Visible = false; this.tlbEdit.Visible = false; this.tlbInput.Visible = false; } public override void Search(string code) { if (code != "") { strWhere = " [AsnNumber] like '%" + code + "%'"; strWhere += " or [PackageNo] like '%" + code + "%'"; strWhere += " or [BarCode] like '%" + code + "%'"; strWhere += " or [UserName] like '%" + code + "%'"; } else { strWhere = "1=1"; } string d1 = this.dateTimePicker1.Value.ToString("yyy-MM-dd 00:00:00"); string d2 = this.dateTimePicker2.Value.ToString("yyy-MM-dd 23:59:59"); strWhere = $"[AddTime]>='{d1}' and [AddTime]<='{d2}' and (" + strWhere + ")"; } private void frmVerifyBill_Load(object sender, EventArgs e) { } } }