Ejemplo n.º 1
0
        private void btnInventory_Click(object sender, EventArgs e)
        {
            foreach (Form fm in this.MdiChildren)
            {
                fm.Close();
            }
            if (inventoryPage.IsDisposed == true)
            {
                inventoryPage = new inventoryList();
            }

            inventoryPage.MdiParent = this;
            inventoryPage.Show();
        }
Ejemplo n.º 2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            inventoryList invPage = new inventoryList();

            StringBuilder where = new StringBuilder();
            StringBuilder param  = new StringBuilder();
            StringBuilder values = new StringBuilder();

            param.Append("gc_item_qty,gc_item_srp");
            where.Append("gc_item_name='" + itemName + "' AND gc_item_code='" + itemCode + "'");
            values.Append(
                int.Parse(txtQty.Text) + "," +
                float.Parse(txtItemPrice.Text)
                );

            db.GCUpdateDb("inventory", param, values, where);
        }