Example #1
0
        private void LoadEmptyTestGridView()
        {
            DataTable dataTable = new DataTable();

            TestWiseReportGridView.DataSource = dataTable;
            TestWiseReportGridView.DataBind();
        }
Example #2
0
        protected void showButton_Click(object sender, EventArgs e)
        {
            string toDate   = toDateTextBox.Text;
            string fromDate = fromDateTextBox.Text;

            List <TestWiseReport> aTestWiseReports = aTestWiseReportManager.GetAllTestReports(toDate, fromDate);
            int totalMoney = 0;

            foreach (var item in aTestWiseReports)
            {
                totalMoney += item.TotalAmount;
            }

            totalMoneyTextBox.Text            = totalMoney.ToString();
            TestWiseReportGridView.DataSource = aTestWiseReports;
            TestWiseReportGridView.DataBind();
        }
Example #3
0
        private void LoadTestGridView(string startDate, string endDate)
        {
            //throw new NotImplementedException();

            List <View_Model.TestWiseReport> testWiseReportList = _testWiseReportManager.GetAllTypeWiseReport(startDate, endDate);

            if (testWiseReportList.Count != 0)
            {
                TestWiseReportGridView.DataSource = testWiseReportList;
                TestWiseReportGridView.DataBind();
                //display pdf button
                PdfButton.Visible = true;
                //total items
            }
            else
            {
                TestWiseReportGridView.DataSource = null;
                TestWiseReportGridView.DataBind();
                PdfButton.Visible = false;
            }
        }