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

        ht["zcid"] = ViewState["zcid"].ToString();
        ht["czid"] = ViewState["czid"].ToString();
        ht["czfs"] = this.czfs.Text;
        if (this.czjg.Text != "")
        {
            ht["czjg"] = this.czjg.Text;
        }
        if (this.czss.Text != "")
        {
            ht["czss"] = this.czss.Text;
        }
        if (this.qcl.Text != "")
        {
            ht["qcl"] = this.qcl.Text;
        }
        if (this.yjfy.Text != "")
        {
            ht["yjfy"] = this.yjfy.Text;
        }
        U_ZCBU zc2 = new U_ZCBU();

        zc2.InsertCZFS(ht);
        zc2.Close();
        Response.Redirect("ZcDetail3.aspx?id=" + ViewState["zcid"].ToString(), true);
    }