You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

3 years ago
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 + ")";
}
}
}