public void goodsIOSearchView_SearchBlockInDetailEvent(object sender, GoodsIOSearchEventArgs e) { var criteria = new ObjectCriteria(); if (!string.IsNullOrEmpty(e.BlockDetailId)) { criteria.AddLikeCriteria("BlockInDetailPK.BlockDetailId", string.Format("{0}%", e.BlockDetailId)); } criteria.AddGreaterOrEqualsCriteria("ImportDate", DateUtility.ZeroTime(e.ImportDateFrom)); criteria.AddLesserOrEqualsCriteria("ImportDate", DateUtility.MaxTime(e.ImportDateTo)); if (!e.IsNeedDelete) { criteria.AddEqCriteria("DelFlg", (Int64)0); } e.BlockDetailList = BlockInDetailLogic.FindAll(criteria); }
public void goodsIOSearchView_LoadBlockInDetailEvent(object sender, GoodsIOSearchEventArgs e) { }
private void btnSearch_Click(object sender, EventArgs e) { var eventArgs = new GoodsIOSearchEventArgs { BlockDetailId = txtBlockInDetailId.Text, ImportDateFrom = chkImportDateFrom.Checked ? dtpImportDateFrom.Value : DateTime.MinValue, ImportDateTo = chkImportDateTo.Checked ? dtpImportDateTo.Value : DateTime.MaxValue, IsNeedDelete = chkDelete.Checked }; EventUtility.fireEvent(SearchBlockInDetailEvent, this, eventArgs); _currentSearchCriteria = eventArgs; BlockInDetailList = eventArgs.BlockDetailList; PopulateDataGrid(); }