示例#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));
        }