Esempio n. 1
0
        private void btnNewPO_Click(object sender, EventArgs e)
        {
            if (!User.UserInAction("New Purchase Order"))
            {
                return;
            }
            frmAddEditPurchaseOrder frm = new frmAddEditPurchaseOrder()
            {
                frmPurchaseOrders = this,
                MethodType        = MethodType.Add,
            };

            frm.ShowDialog();
            UcPOGrid.CreateUcControl();
        }
Esempio n. 2
0
        private void btnEditPo_Click(object sender, EventArgs e)
        {
            if (!User.UserInAction("Edit Purchase Order"))
            {
                return;
            }
            frmAddEditPurchaseOrder frm = new frmAddEditPurchaseOrder()
            {
                frmPurchaseOrders = this,
                POId       = this.PoId,
                MethodType = MethodType.Edit
            };

            frm.ShowDialog();
            //reload Details after saving
            UcPODetails.Details(new UnitOfWork().PurchaseOrdersRepo.Find(m => m.Id == PoId));
        }