Exemple #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     PL.Sandat.FrmFinancialSupport frm = new PL.Sandat.FrmFinancialSupport();
     frm.Text            = "تعديل سند الدفع";
     frm.BtnNew.Visible  = false;
     frm.BtnSave.Visible = false;
     //frm.BtnAdd.SendToBack();
     frm.BtnEdit.Location = new Point(138, 308);
     frm.BtnEdit.BringToFront();
     try
     {
         frm.VoucherCode.Text     = this.DGV_PruChaseOrder.CurrentRow.Cells[0].Value.ToString();
         frm.VoucherDate.Text     = this.DGV_PruChaseOrder.CurrentRow.Cells[1].Value.ToString();
         frm.VoucherAmount.Text   = this.DGV_PruChaseOrder.CurrentRow.Cells[2].Value.ToString();
         frm.VoucherAmountAr.Text = this.DGV_PruChaseOrder.CurrentRow.Cells[3].Value.ToString();
         frm.VoucherFrom.Text     = this.DGV_PruChaseOrder.CurrentRow.Cells[4].Value.ToString();
         frm.statement.Text       = this.DGV_PruChaseOrder.CurrentRow.Cells[5].Value.ToString();
         frm.UserVoucher.Text     = this.DGV_PruChaseOrder.CurrentRow.Cells[6].Value.ToString();
         frm.TxtNewDofaa.Text     = this.DGV_PruChaseOrder.CurrentRow.Cells[7].Value.ToString();
         frm.TxtNewDofaaAr.Text   = this.DGV_PruChaseOrder.CurrentRow.Cells[8].Value.ToString();
         frm.txtBaqi.Text         = this.DGV_PruChaseOrder.CurrentRow.Cells[9].Value.ToString();
         frm.txtBaqiAr.Text       = this.DGV_PruChaseOrder.CurrentRow.Cells[10].Value.ToString();
         frm.ShowDialog();
         StData();
     }
     catch
     {
         return;
     }
 }
Exemple #2
0
 private void BtnNew_Click(object sender, EventArgs e)
 {
     PL.Sandat.FrmFinancialSupport frm = new PL.Sandat.FrmFinancialSupport();
     try
     {
         frm.VoucherCode.Text = Clsfs.GetAllFinancialSupportaMax().Rows[0][0].ToString();
         frm.BtnSave.Enabled  = true;
         frm.BtnNew.Enabled   = false;
     }
     catch
     {
         return;
     }
     frm.ShowDialog();
     StData();
 }
Exemple #3
0
        private void barButtonItem31_ItemClick(object sender, ItemClickEventArgs e)
        {
            PL.Sandat.FrmFinancialSupport frm = new PL.Sandat.FrmFinancialSupport();
            try
            {
                frm.VoucherCode.Text = Clsfs.GetAllFinancialSupportaMax().Rows[0][0].ToString();
                frm.BtnSave.Enabled  = true;
                frm.BtnNew.Enabled   = false;
            }
            catch
            {
                return;
            }

            frm.MdiParent = this;
            frm.Show();
        }