示例#1
0
    protected void btnupdate_Click(object sender, EventArgs e)
    {
        Hashtable data = new Hashtable();

        data.Add("clientid", cbclientid .SelectedValue);
        data.Add("eqpid", txtassetid.Text);
        if (cbtype.SelectedItem.Text == "Other")
        {
            data.Add("eqptype", txttype.Text);

        }
        else
        {
            data.Add("eqptype", cbtype.SelectedItem.Text);
        }
        if (cbsubtype.SelectedItem.Text == "Other")
        {
            data.Add("eqpsubtype", txtsubtype.Text);

        }
        else
        {
            data.Add("eqpsubtype", cbsubtype.SelectedItem.Text);
        }

        data.Add("mfg", txtmfg.Text);
        data.Add("domfg", txtdofmfg.Text);
        data.Add("doinst", txtdoinst.Text);
        data.Add("lenwarranty", txtlenwarranty.Text);
        data.Add("extdwarranty", txtextwarranty.Text);
        data.Add("make", txtmake.Text);
        data.Add("model", txtmodel.Text);
        data.Add("serial", txtserial.Text);
        data.Add("tonnage", txttonnage.Text);
        data.Add("age", txtage.Text);
        data.Add("bldgno", txtbldgno.Text);
        data.Add("blockno", txtblockno.Text);
        data.Add("servingarea", txtservingarea.Text);
        data.Add("bldgname", txtbldgname.Text);
        data.Add("wind", txtwing.Text);
        data.Add("aptno", txtaptno.Text);
        data.Add("floor", txtfloor.Text);
        data.Add("zone", txtzone.Text);
        data.Add("roomtype", txtroomtype.Text);
        data.Add("roomdetails", txtroomdetails.Text);
        data.Add("optcrt", txtoptcrt.Text);
        data.Add("optvol", txtoptvol.Text);
        data.Add("amcperiod", txtamcperiod.Text);
        data.Add("otherdetails", txtotherdetails.Text);
        bll clickupd = new bll();
        clickupd.eqpupd (data);
        lblupdmes.Text = "Details Succesfully Updated";
    }