예제 #1
0
        private void btnNewDelivery_Click(object sender, EventArgs e)
        {
            frmAddEditDeliveries frm = new frmAddEditDeliveries(null, MethodType.Add);

            frm.ShowDialog();
            Details(new UnitOfWork().DeliveriesRepo.Fetch().OrderByDescending(x => x.Id).FirstOrDefault());
        }
예제 #2
0
        private void btnNewPO_Click(object sender, EventArgs e)
        {
            frmAddEditDeliveries frm = new frmAddEditDeliveries(null, MethodType.Add);

            frm.ShowDialog();
            DeliveryGrid.CreateUcControl();
            detail();
        }
예제 #3
0
 private void btnEditDeliveries_Click(object sender, EventArgs e)
 {
     if (DeliveriesGrid.GetFocusedRow() is Deliveries item)
     {
         frmAddEditDeliveries frm = new frmAddEditDeliveries(item, MethodType.Edit);
         frm.ShowDialog();
         Details();
     }
 }
예제 #4
0
 private void btnEditPo_Click(object sender, EventArgs e)
 {
     if (DeliveryGrid.GridView.GetFocusedRow() is Deliveries item)
     {
         frmAddEditDeliveries frm = new frmAddEditDeliveries(item, MethodType.Edit);
         frm.ShowDialog();
         DeliveryGrid.CreateUcControl();
         detail();
     }
 }