//private double GetDueAmount() //{ // TestRequest testRequest=new TestRequest(); // decimal total = testRequest.TotalAmount; // double amount= Convert.ToDouble(amountTextBox.Text); // double totalamount = total - amount; // return totalamount; //} private void loadAllTestData() { paymentGridView.DataSource = testSetupManager.GetAllTestSetups(); paymentGridView.DataBind(); paidAmount.Text = ""; dueAmountLabel.Text = ""; }
private void LoadTest() { List <TestSetup> testLists = testSetupManager.GetAllTestSetups(); testDropDown.DataSource = testLists; testDropDown.DataValueField = "Id"; testDropDown.DataTextField = "TestName"; testDropDown.DataBind(); testDropDown.Items.Insert(0, " ---- Select ---- "); }