Beispiel #1
0
    private void showhouse()
    {
        string pcroom = tcook.Hroom;

        if (!LearnSite.Common.XmlHelp.GetHouseMode())
        {
            LearnSite.BLL.Computers cbll = new LearnSite.BLL.Computers();
            DDLhouse.DataSource     = cbll.CmpRoom();
            DDLhouse.DataTextField  = "Pm";
            DDLhouse.DataValueField = "Pm";
            DDLhouse.DataBind();
            HyperLinkSeat.Visible = false;
        }
        else
        {
            HyperLinkSeat.Visible = true;
            LearnSite.BLL.House hbll = new LearnSite.BLL.House();
            DDLhouse.DataSource     = hbll.GetListHouse();
            DDLhouse.DataTextField  = "Hname";
            DDLhouse.DataValueField = "Hid";
            DDLhouse.DataBind();
        }
        if (DDLhouse.Items.FindByValue(pcroom) != null)
        {
            DDLhouse.SelectedValue = pcroom;
        }
    }
Beispiel #2
0
 private void showhouse()
 {
     LearnSite.BLL.Computers cbll = new LearnSite.BLL.Computers();
     DDLhouse.DataSource     = cbll.CmpRoom();
     DDLhouse.DataTextField  = "Pm";
     DDLhouse.DataValueField = "Pm";
     DDLhouse.DataBind();
 }