Ejemplo n.º 1
0
        void purchaseWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (PurchaseId == 0)
            {
                ClientHelper.ShowSuccessMessage(string.Format("PO number {0} successfully added.", PONumberTextbox.Text));
            }
            else
            {
                ClientHelper.ShowSuccessMessage(string.Format("PO number {0} successfully updated.", PONumberTextbox.Text));
            }

            ClearAll();

            SaveButton.Enabled  = true;
            ClearButton.Enabled = true;

            LoadImage.Visible = false;
            //PONumberTextbox.Focus();
            SupplierDropdown.Focus();

            if (PurchaseUpdated != null)
            {
                PurchaseUpdated(new object(), new EventArgs());
            }
        }
        private void PurchaseCounterControl_Load(object sender, EventArgs e)
        {
            if (!UserInfo.IsAdmin)
            {
                DeleteButton.Visible = false;
            }

            LoadSuppliers();
            SupplierDropdown.Focus();
        }
Ejemplo n.º 3
0
        private void SetAsNew()
        {
            //AddDetailBox.Visible = true;
            ErrorPanel.Visible = false;

            PONumberTextbox.ReadOnly = false;
            SupplierDropdown.Focus();

            SaveButton.Visible  = true;
            ClearButton.Visible = true;
        }
Ejemplo n.º 4
0
        void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (PaymentId == 0)
            {
                ClientHelper.ShowSuccessMessage("Payment successfully added.");
            }
            else
            {
                ClientHelper.ShowSuccessMessage("Payment successfully updated.");
            }

            SetupForm();

            if (PurchasePaymentUpdated != null)
            {
                PurchasePaymentUpdated(sender, new EventArgs());
            }

            LoadImage.Visible = false;
            ToggleButtons(true);
            SupplierDropdown.Focus();
        }