protected void Page_Load(object sender, EventArgs e)
        {
            DropDownList ddl = dataLab.readLabName();

            ddlLab.DataSource     = ddl.DataSource;
            ddlLab.DataTextField  = "name";
            ddlLab.DataValueField = "name";
            ddlLab.DataBind();
            ddlLab.DataTextField  = "id";
            ddlLab.DataValueField = "id";
            ddlLab.DataBind();
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DropDownList ddl1 = dataLab.readLabName();

            DropDownList1.DataSource     = ddl1.DataSource;
            DropDownList1.DataTextField  = "name";
            DropDownList1.DataValueField = "name";
            DropDownList1.DataBind();

            DropDownList ddl2 = dataDate.readDateName();

            DropDownList2.DataSource     = ddl2.DataSource;
            DropDownList2.DataTextField  = "date";
            DropDownList2.DataValueField = "date";
            DropDownList2.DataBind();
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            User user = (User)Session["User"];

            if ((User)Session["User"] == null)
            {
                Response.Redirect("/index.aspx");
            }

            DataLab dataLab = new DataLab();


            DropDownList ddl = dataLab.readLabName();

            ddlLab.DataSource     = ddl.DataSource;
            ddlLab.DataTextField  = "name";
            ddlLab.DataValueField = "name";
            ddlLab.DataBind();
        }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WorkStation workStation = (WorkStation)Session["workStationSession"];
            DataLab     dataLab     = new DataLab();
            int         idLab       = workStation.IdLab;

            if (!IsPostBack)
            {
                lblIDEDIT.Text              = Convert.ToString(workStation.Id);
                txtDescripcionEDIT.Text     = workStation.Description;
                DropDownList1.SelectedValue = dataLab.changeIdToName(idLab);
                chbxRESERVADOEDIT.Checked   = workStation.Busy;
            }
            DropDownList ddl = dataLab.readLabName();

            DropDownList1.DataSource     = ddl.DataSource;
            DropDownList1.DataTextField  = "name";
            DropDownList1.DataValueField = "name";
            DropDownList1.DataBind();
        }
Esempio n. 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            User user = (User)Session["User"];

            if ((User)Session["User"] == null || user.Role != 1)
            {
                Response.Redirect("/Welcome.aspx");
            }

            DataTable dt = dataWorkStation.readWorkStation();

            GridView1.DataSource = dt;
            GridView1.DataBind();
            DropDownList ddl = dataLab.readLabName();

            ddlIdLab.DataSource     = ddl.DataSource;
            ddlIdLab.DataTextField  = "name";
            ddlIdLab.DataValueField = "name";
            ddlIdLab.DataBind();
        }