private void ResetTextBoxes() { radio_PaymentType.SelectedValue = "Debit Voucher"; txt_ThirdParty.Text = string.Empty; DropDown_TrsndID.ClearSelection(); DropDown_TrsndID.Items.Insert(0, MicroConstants.DROPDOWNLIST_DEFAULT_ITEMTEXT); txt_BankName.Text = string.Empty; txt_ChqDAte.Text = string.Empty; txt_ChqNo.Text = string.Empty; radio_Trans_Category.SelectedValue = "Guest"; txt_Amount.Text = string.Empty; txt_Reference.Text = string.Empty; txt_Remark.Text = string.Empty; BindDropDown(); ResetVoucherType(); }
protected void radio_Trans_Category_SelectedIndexChanged(object sender, EventArgs e) { DropDown_TrsndID.Items.Clear(); if (radio_Trans_Category.SelectedValue == "Employee") { DropDown_TrsndID.DataSource = StaffMasterManagement.GetInstance.GetCompanyEmployeeList(); DropDown_TrsndID.DataMember = StaffMasterManagement.GetInstance.ValueMember; DropDown_TrsndID.DataTextField = StaffMasterManagement.GetInstance.DisplayMember; DropDown_TrsndID.DataBind(); DropDown_TrsndID.Items.Insert(0, MicroConstants.DROPDOWNLIST_DEFAULT_ITEMTEXT); } else if (radio_Trans_Category.SelectedValue == "Student") { DropDown_TrsndID.DataSource = StudentManagement.GetInstance.GetStudentList(); DropDown_TrsndID.DataMember = StudentManagement.DisplayValue; DropDown_TrsndID.DataTextField = StudentManagement.DisplayMember; DropDown_TrsndID.DataBind(); DropDown_TrsndID.Items.Insert(0, MicroConstants.DROPDOWNLIST_DEFAULT_ITEMTEXT); } else { DropDown_TrsndID.Items.Insert(0, MicroConstants.DROPDOWNLIST_DEFAULT_ITEMTEXT); } }