Exemple #1
0
    protected void LinkButton1_Click1(object sender, EventArgs e)
    {
        string str;
        str = Request.QueryString["EQid"];
        int id = Convert.ToInt32(str);
        bll selvieweqpdet = new bll();
        Hashtable data = new Hashtable();

          data=  selvieweqpdet.seleqpdetbyid(id);

        txtassetid.Text = data["eqpid"].ToString ();
        cbtype.Text =  data["eqptype"].ToString ();

        if (data["eqptype"].ToString() != "Housing")
        {
            cbsubtype.SelectedValue.Replace(data["eqpsubtype"].ToString(), data["eqpsubtype"].ToString());
            txtmfg.Text = data["mfg"].ToString();
            txtdofmfg.Text = data["domfg"].ToString();
            txtdoinst.Text = data["doinst"].ToString();
            txtlenwarranty.Text = data["lenwarranty"].ToString();
            txtextwarranty.Text = data["extdwarranty"].ToString();
            txtmake.Text = data["make"].ToString();
            txtmodel.Text = data["model"].ToString();
            txtserial.Text = data["serial"].ToString();
            txttonnage.Text = data["tonnage"].ToString();
            txtage.Text = data["age"].ToString();
            txtservingarea.Text = data["servingarea"].ToString();
            txtoptcrt.Text = data["optcrt"].ToString();
            txtoptvol.Text = data["optvol"].ToString();
            txtamcperiod.Text = data["amcperiod"].ToString();

        }

        txtbldgno.Text = data["bldgno"].ToString();
        txtblockno.Text = data["blockno"].ToString();
        txtbldgname.Text = data["bldgname"].ToString();
        txtwing.Text = data["wind"].ToString();
        txtaptno.Text = data["aptno"].ToString();
        txtfloor.Text = data["floor"].ToString();
        txtzone.Text = data["zone"].ToString();
        txtroomtype.Text = data["roomtype"].ToString();
        txtroomdetails.Text = data["roomdetails"].ToString();
        txtotherdetails.Text = data["otherdetails"].ToString();

        TabContainer1.Visible = true;

        if (data["eqptype"].ToString() != "Housing")
        {
            upeqpdetshow.Visible = true;

        }
        btnupdate.Visible = true ;
        btndelete.Visible = true;
        btndelete0.Visible = true;
    }