Exemple #1
0
 private void navBarItem4_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     PL.RetuenPruChase.FrmPurReturn frm = new PL.RetuenPruChase.FrmPurReturn();
     try
     {
         frm.txtId.Text     = ClsRetb.PurReturnItemsMaxId().Rows[0][0].ToString();
         frm.BtnNew.Enabled = false;
         frm.BtnAdd.Enabled = true;
     }
     catch
     {
         return;
     }
     frm.MdiParent = this;
     frm.Show();
 }
Exemple #2
0
        private void BtnNew_Click(object sender, EventArgs e)
        {
            PL.RetuenPruChase.FrmPurReturn frm = new PL.RetuenPruChase.FrmPurReturn();
            try
            {
                frm.txtId.Text     = ClsRet.PurReturnItemsMaxId().Rows[0][0].ToString();
                frm.BtnNew.Enabled = false;
                frm.BtnAdd.Enabled = true;
            }
            catch
            {
                return;
            }

            frm.ShowDialog();
        }
Exemple #3
0
 private void barButtonItem27_ItemClick(object sender, ItemClickEventArgs e)
 {
     PL.RetuenPruChase.FrmPurReturn frm = new PL.RetuenPruChase.FrmPurReturn();
     try
     {
         frm.txtId.Text     = ClsRetb.PurReturnItemsMaxId().Rows[0][0].ToString();
         frm.BtnNew.Enabled = false;
         frm.BtnAdd.Enabled = true;
     }
     catch
     {
         return;
     }
     frm.MdiParent = this;
     frm.Show();
 }
Exemple #4
0
 private void BtnEdit_Click(object sender, EventArgs e)
 {
     PL.RetuenPruChase.FrmPurReturn frm = new PL.RetuenPruChase.FrmPurReturn();
     frm.Text             = "تعديل";
     frm.BtnNew.Visible   = false;
     frm.BtnAdd.Visible   = false;
     frm.BtnAprof.Visible = false;
     //frm.BtnAdd.SendToBack();
     frm.BtnEdit.Location = new Point(301, 19);
     frm.BtnEdit.BringToFront();
     try
     {
         frm.txtId.Text              = DGV_SalesOrder.CurrentRow.Cells[0].Value.ToString();
         frm.txtPurOrder_Id.Text     = DGV_SalesOrder.CurrentRow.Cells[1].Value.ToString();
         frm.TxtOrg_Bill.Text        = DGV_SalesOrder.CurrentRow.Cells[2].Value.ToString();
         frm.txtBarCode.Text         = DGV_SalesOrder.CurrentRow.Cells[3].Value.ToString();
         frm.TxtIReturnName.Text     = DGV_SalesOrder.CurrentRow.Cells[4].Value.ToString();
         frm.TxtReturnPrice.Text     = DGV_SalesOrder.CurrentRow.Cells[5].Value.ToString();
         frm.TxtReturnQTE.Text       = DGV_SalesOrder.CurrentRow.Cells[6].Value.ToString();
         frm.TxtReturnTotal.Text     = DGV_SalesOrder.CurrentRow.Cells[7].Value.ToString();
         frm.TxtAmounTAR.Text        = DGV_SalesOrder.CurrentRow.Cells[8].Value.ToString();
         frm.TxtReturnUnitPrice.Text = DGV_SalesOrder.CurrentRow.Cells[9].Value.ToString();
         frm.txtSupName.Text         = DGV_SalesOrder.CurrentRow.Cells[11].Value.ToString();
         frm.DateReturn.Text         = DGV_SalesOrder.CurrentRow.Cells[10].Value.ToString();
         frm.UserReturn.Text         = DGV_SalesOrder.CurrentRow.Cells[14].Value.ToString();
         frm.TxtNotes.Text           = DGV_SalesOrder.CurrentRow.Cells[13].Value.ToString();
         frm.Calculate();
         frm.CalculateAmount();
         frm.ShowDialog();
         loaddata();
     }
     catch
     {
         return;
     }
 }