Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Context.Items["id"] != null)
            {
                U_ZCBU  zc1 = new U_ZCBU();
                DataSet ds1 = zc1.GetBCZFSInfoByID(Context.Items["id"].ToString());
                zc1.Close();

                ViewState["id"] = Context.Items["id"];

                Util.SetControlValue(czfs, ds1.Tables[0].Rows[0]["czfs"]);
                Util.SetControlValue(czjg, ds1.Tables[0].Rows[0]["czjg"]);
                Util.SetControlValue(czss, ds1.Tables[0].Rows[0]["czss"]);
                Util.SetControlValue(qcl, ds1.Tables[0].Rows[0]["qcl"]);
                Util.SetControlValue(yjfy, ds1.Tables[0].Rows[0]["yjfy"]);
            }
            if (Context.Items["zcid"] != null)
            {
                ViewState["zcid"] = Context.Items["zcid"];
            }
            if (Context.Items["czid"] != null)
            {
                ViewState["czid"] = Context.Items["czid"];
            }
        }
    }