private void DoView(int id) { var ins = Kiosk.SelectKioskByID(id); hdnKioskID.Value = Convert.ToString(id); lblKioskLabel.Text = ins.Name; gvInventory.DataSource = Inventory.GetAllByKiosk(id); gvInventory.DataBind(); }
private void DoEdit(int id) { hdnKioskID.Value = id + ""; var ins = Kiosk.SelectKioskByID(id); tbKioskCode.Text = ins.KioskCode; tbKioskCode.Enabled = false; tbKioskName.Text = ins.Name; tbKioskLocation.Text = ins.Location; tbKioskRemarks.Text = ins.Remarks; // ddlClass.ClearSelection(); ddlClass.Items.FindByValue(ins.ClassID + "").Selected = true; }