Пример #1
0
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        ht["xmbj"]   = this.xmbj.Text;
        ht["zclx"]   = this.zclx.Text;
        ht["zcse"]   = this.zcse.Text;
        ht["fsxzly"] = this.fsxzly.Text;
        ht["djyj"]   = this.djyj.Text;

        U_ZCBU zc3 = new U_ZCBU();

        if (this.zcczid.Text != "")
        {
            zc3.UpdateZcBCzsbbByCZID(this.zcczid.Text, ht);
        }
        else
        {
            if (Request["id"] != null)
            {
                ht["zcid"] = Request["id"].ToString();
            }
            ht["status"] = "04";
            zc3.InsertZcBsbb(ht);
        }
        zc3.Close();

        Response.Redirect(Request.RawUrl, true);
    }