예제 #1
0
        public override void btn_Add_Click(object sender, EventArgs e)
        {
            frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit();

            frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed;
            frm.ShowDialog();
        }
예제 #2
0
 public frmPurchaseLineAddEdit(frmPurchaseOrderAddEdit _frmPurchaseOrderAddEdit)
 {
     InitializeComponent();
     _bDProductGroupWrapper          = new BDProductGroupWrapper();
     _bDProductWrapper               = new BDProductWrapper();
     this.frmPurchaseOrderAddEditObj = _frmPurchaseOrderAddEdit;
     FillProductGroupCBX();
 }
예제 #3
0
 public frmPurchaseLineAddEdit(frmPurchaseOrderAddEdit _frmPurchaseOrderAddEdit)
 {
     InitializeComponent();
     _bDProductGroupWrapper = new BDProductGroupWrapper();
     _bDProductWrapper = new BDProductWrapper();
     this.frmPurchaseOrderAddEditObj = _frmPurchaseOrderAddEdit;
     FillProductGroupCBX();
 }
예제 #4
0
 public override void btn_Edit_Click(object sender, EventArgs e)
 {
     if (dgrid_Result.SelectedRows.Count != 0)
     {
         if (!Convert.ToBoolean(dgrid_Result.SelectedRows[0].Cells["IsClosed"].Value))
         {
             frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit();
             frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed;
             frm.ShowDialog();
         }
         else
         {
             MessageBox.Show("لا يمكنك تعديل هذه الفاتوره حيث انها مغلقه");
         }
     }
 }
예제 #5
0
        public override void btn_Edit_Click(object sender, EventArgs e)
        {
            if (dgrid_Result.SelectedRows.Count != 0)
                //if (!Convert.ToBoolean(dgrid_Result.SelectedRows[0].Cells["IsClosed"].Value))
                {
                    int headerID=Convert.ToInt32(dgrid_Result.SelectedRows[0].Cells[0].Value);

                    frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit(headerID);
                    //frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed;
                    frm.ShowDialog();
                }
                else
                    MessageBox.Show("لا يمكنك تعديل هذه الفاتوره حيث انها مغلقه");
        }
예제 #6
0
 public override void btn_Add_Click(object sender, EventArgs e)
 {
     frmPurchaseOrderAddEdit frm = new frmPurchaseOrderAddEdit();
        // frm.FormClosed += frmPurchaseOrderAddEdit_FormClosed;
     frm.ShowDialog();
 }