Example #1
0
 private void FrInventory_Load(object sender, EventArgs e)
 {
     inventory = new Inventory_Controller();
     this.LoadSaleTeam();
     this.LoadDivision();
     dataGridView1.DataSource = inventory.Getdata();
 }
Example #2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     Inventory_Controller item_clv = new Inventory_Controller();
     item_clv.DeleteProduct(txtInvtID.Text.Trim());
     dataGridView1.DataSource = item_clv.Getdata();
     InitialForm();
 }
Example #3
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     Inventory_Controller item_clv = new Inventory_Controller();
     Inventory it = new Inventory();
     it.InvtID = txtInvtID.Text.Trim();
     it.Descr = txtDescr.Text;
     it.ShortDescr = txtShort.Text;
     it.DfltSite = textSiteID.Text;
     it.User1 = textUser1.Text;
     it.DfltWhseLoc = textPriceClassID.Text;
     it.Style = textStyle.Text;
     it.StkBasePrc = textSalesPrice.Text;
     it.ListPrice = textPurchasePrice.Text;
     it.UOM1 = txtuom.Text;
     it.StkUnit = txtuom.Text;
     it.CnvFact2 = txtCnvFact2.Text;
     it.PriceClassID = textpriceclass.Text;
     it.SalesTeam = cbsalesteam.Text;
     it.Division = cbDivision.Text;
     it.Category = cbCategory.Text;
     it.Brand = cbBrand.Text;
     it.Brandy = cbBrandy.Text;
     it.Variant = cbVariant.Text;
     it.Status = cbstatus.Text;
     item_clv.insertProduct(it);
     dataGridView1.DataSource = item_clv.Getdata();
 }