private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddUpdatePurchasePayment fmAdd = new frmAddUpdatePurchasePayment();

            fmAdd.MdiParent = this.MdiParent;
            fmAdd.Show();

            this.Close();
        }
Esempio n. 2
0
        private void btnPayment_Click(object sender, EventArgs e)
        {
            CloseAll();
            Datalayer.sPaymentMode = "R";

            frmAddUpdatePurchasePayment fmPayment = new frmAddUpdatePurchasePayment();

            fmPayment.MdiParent = this;
            fmPayment.Show();
        }
        void EditData()
        {
            if (dgDisplayData.SelectedRows.Count > 0)
            {
                int ID = 0;
                int.TryParse(dgDisplayData.CurrentRow.Cells["T009_PAYMENTID"].Value.ToString(), out ID);

                Datalayer.iT009_PURCHASEPAYMENTID = ID;


                frmAddUpdatePurchasePayment frmAddSTD = new frmAddUpdatePurchasePayment();
                frmAddSTD.MdiParent = this.MdiParent;
                frmAddSTD.Show();

                this.Close();
            }
            else
            {
                Datalayer.InformationMessageBox(Datalayer.sMeessgeSelection);
            }
        }