Ejemplo n.º 1
0
        private void PaymentToSupplierForm_Load(object sender, EventArgs e)
        {
            lblTodaysDate.Text            = DateTime.Today.ToShortDateString();
            lblPurchaseNotInvoiced.Text   = calculateBalance(false, false, false).ToString();
            lblArconInvoiceNotPaid.Text   = calculateBalance(true, false, false).ToString();
            lblPaymentDueForSupplier.Text = calculateBalance(false, false, true).ToString();
            APCContext         = new APCEntities();
            cbPaid.Enabled     = false;
            cbInvoiced.Enabled = false;
            cbALL.Checked      = true;
            DataTable dt = BLSupplierInvoice.GetSupplierInvoiceDueDatePOInvoicedAndPaid(DateTime.Today.AddDays(14), cbInvoiced.Checked, cbPaid.Checked, cbALL.Checked);

            dgReminderSupplierPayment.DataSource = dt;
        }
Ejemplo n.º 2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            DataTable dt = BLSupplierInvoice.GetSupplierInvoiceDueDatePOInvoicedAndPaid(DateTime.Today.AddDays(14), cbInvoiced.Checked, cbPaid.Checked, cbALL.Checked);

            dgReminderSupplierPayment.DataSource = dt;
        }