private void BindData()
        {
            DataTable tb = SPDayReportWrapper.QueryClientInvoiceReport(StartDate, EndDate, SPClientID, CodeID).Tables[0];


            string clientName = "所有";

            if (SPClientID.HasValue && SPClientID > 0)
            {
                clientName = "【" + SPSClientWrapper.FindById(SPClientID.Value).Name + "】";
            }

            string codeName = "";

            if (CodeID.HasValue && CodeID > 0)
            {
                codeName = "【" + SPCodeWrapper.FindById(CodeID.Value).MoCode + "】指令";
            }

            string reportName = string.Format("【{0}】-【{1}】 {2} 客户 {3} 结算报表", StartDate.Value.ToString("yyyy-MM-dd"),
                                              EndDate.Value.ToString("yyyy-MM-dd"), clientName, codeName);

            ReportViewHelper.BindDataTableToReport(rptvContainer, tb, "DataSet1", reportName);
        }