private void btnQry_Click(object sender, EventArgs e) { DataTable dtl = new DataTable(); StatReportManage StatReportManage = new StatReportManage(); string strValue = ""; if (chkEnd.Checked == true) { strValue = "1"; //已勾结 } if (txtSupplierGuid.Tag == null) { txtSupplierGuid.Tag = ""; } dtl = StatReportManage.sp_GetStockInOrderStatus_Report(txtStockInOrderID.Text.Replace("'", "''"), dtpBeginDate.Text, dtpEndDate.Text, txtSupplierGuid.Tag.ToString(), strValue); this.gridControl1.DataSource = dtl; }