Пример #1
0
        private void btnAddSupplier_Click(object sender, EventArgs e)
        {
            frmSupplier _frmSupplier = new frmSupplier();

            if (_frmSupplier.ShowDialog() == DialogResult.Cancel)
            {
                supplierBindingSource.DataSource = SupplierBUS.getAll();
            }
        }
Пример #2
0
 private void frmSupplier_Load(object sender, EventArgs e)
 {
     supplierTBBindingSource.DataSource = SupplierBUS.getAll();
     supplierBindingSource.DataSource   = new Supplier();
 }
Пример #3
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     SupplierBUS.update(supplierBindingSource.Current as Supplier);
     supplierTBBindingSource.DataSource = SupplierBUS.getAll();
     supplierBindingSource.DataSource   = new Supplier();
 }
Пример #4
0
        public JsonResult getNCC()
        {
            List <Supplier> ldt = supplierBUS.getAll();

            return(Json(ldt, JsonRequestBehavior.AllowGet));
        }