Exemple #1
0
    private void Bind()
    {
        if (Request["czid"] != null && Request["pc"] != null)
        {
            string   czid = Request["czid"].ToString();
            string   pc   = Request["pc"].ToString();
            U_ZCSPBU sp1  = new U_ZCSPBU();
            DataSet  ds1  = sp1.GetZcSPListByPC(czid, pc);
            this.Repeater1.DataSource = ds1;
            this.Repeater1.DataBind();
            sp1.Close();

            U_ZCBU  zc1 = new U_ZCBU();
            DataSet ds2 = zc1.GetShenBaoInfo(Request["czid"]);
            zc1.Close();


            this.lab1.Text = ds2.Tables[0].Rows[0]["xmsbh"].ToString();
            this.lab2.Text = ds2.Tables[0].Rows[0]["num2"].ToString();
            this.lab3.Text = ds2.Tables[0].Rows[0]["danwei"].ToString();
        }
    }