Example #1
0
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        ht["zcid"]   = ViewState["zcid"].ToString();
        ht["wpkind"] = ViewState["wpkind"].ToString();
        ht["wplb"]   = this.wplb.SelectedValue;
        ht["wpsl"]   = this.wpsl.Text;
        ht["wpdw"]   = this.wpdw.Text;
        if (this.wpjz.Text != "")
        {
            ht["wpjz"] = this.wpjz.Text;
        }
        U_ZCBU zc2 = new U_ZCBU();

        if (ViewState["id"] == null)
        {
            zc2.InsertDZYW(ht);
        }
        else
        {
            zc2.UpdateDZYWInfo(ViewState["id"].ToString(), ht);
        }
        zc2.Close();
        Response.Redirect("ZcDetail9.aspx?id=" + ViewState["zcid"].ToString(), true);
    }