private void ClearAll()
        {
            if (SaleId == 0)
            {
                CustomerDropdown.ComboBox.SelectedIndex = -1;
                CustomerDropdown.SelectedIndex          = -1;
                SaleDate.Value = DateTime.Today;
                InvoiceNumberTextbox.Clear();
                //CashRB.Checked = true;
                TypeDropdown.SelectedIndex          = -1;
                TypeDropdown.ComboBox.SelectedIndex = -1;
                CommentTextbox.Clear();

                PRTextbox.Clear();
                POTextbox.Clear();

                //list.Clear();
                addItemControl1.ClearAll();

                SetAsNew();
            }
            else
            {
                LoadSaleDetails();
            }
        }
Esempio n. 2
0
 private void ClearSearch()
 {
     CustomerDropdown.ComboBox.SelectedIndex = -1;
     CustomerDropdown.SelectedIndex          = -1;
     InvoiceTextbox.Clear();
     AmountTypeDropdown.SelectedIndex          = -1;
     AmountTypeDropdown.ComboBox.SelectedIndex = -1;
     AllDateRB.Checked                   = true;
     AmountTextbox.Text                  = "0.00";
     DateToPicker.Value                  = DateTime.Now;
     DateFromPicker.Value                = DateTime.Now;
     AllPaidRB.Checked                   = true;
     TypeDropdown.SelectedIndex          = -1;
     TypeDropdown.ComboBox.SelectedIndex = -1;
     PRTextbox.Clear();
     POTextbox.Clear();
 }
        private void ClearAll()
        {
            if (PurchaseId == 0)
            {
                SupplierDropdown.ComboBox.SelectedIndex = -1;
                SupplierDropdown.SelectedIndex          = -1;
                PurchaseDate.Value = DateTime.Today;
                PONumberTextbox.Clear();
                TypeDropdown.SelectedIndex          = -1;
                TypeDropdown.ComboBox.SelectedIndex = -1;
                PickupRB.Checked = true;
                CommentTextbox.Clear();
                PRTextbox.Clear();
                POTextbox.Clear();

                addItemControl1.ClearAll();

                SetAsNew();
            }
            else
            {
                LoadPurchaseDetails();
            }
        }
 private void POButton_Click(object sender, EventArgs e)
 {
     POTextbox.Focus();
 }