示例#1
0
 private void Bind()
 {
     if (Request["id"] != null)
     {
         string   id   = Request["id"].ToString();
         U_ZCBU   zc1  = new U_ZCBU();
         DataSet  ds   = zc1.GetZcsbbInfoByID(id);
         string[] arr1 = new string[] { "id", "zclx", "zcse", "xmbj", "fsxzly", "djyj" };
         for (int i = 0; i < arr1.Length; i++)
         {
             if (ds.Tables[0].Rows.Count > 0)
             {
                 Util.SetControlValue(this.zclx.Parent.FindControl(arr1[i]), ds.Tables[0].Rows[0][arr1[i]].ToString());
             }
         }
         this.BindZCCZDetail(zc1);
         U_ZCSPBU sp1 = new U_ZCSPBU();
         sp1.SetPC(this.pc1, id);
         sp1.Close();
         zc1.Close();
     }
 }