コード例 #1
0
        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();
        }
コード例 #2
0
        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;
        }