private void BindStockTakingMaster() { StockTakingMasterQueryAgrs agrs = new StockTakingMasterQueryAgrs(); agrs.StartTime = dateEditStartTime1.DateTime; agrs.EndTime = dateEditStartTime2.DateTime; agrs.UserName = txtUserName.Text; agrs.Number = txtNumber.Text; agrs.StoreID = UserInfo.Instance.StoreID; var result = stock.StockTakingMasterQuery(agrs); this.gridStockTaking.DataSource = result; }