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 frmShipBill : Stone.WinModule.BasicData.frmBaseMain { public frmShipBill() { InitializeComponent(); this.tlbAdd.Visible = false; this.tlbAddCopy.Visible = false; this.tlbDelete.Visible = false; this.tlbEdit.Visible = false; this.tlbInput.Visible = false; } private void frmShipBill_Load(object sender, EventArgs e) { } public override void Search(string code) { if (code != "") { strWhere = " [AsnNumber] like '%" + code + "%'"; strWhere += " or [PackageNo] 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 + ")"; } } }