Exemple #1
0
 private void BindCZ_User()
 {
     try
     {
         DataSet ds = InDoorParam.GetUser("");
         if (ds != null)
         {
             this.drpCZ_User.DataSource     = ds;
             this.drpCZ_User.DataTextField  = "UserID";
             this.drpCZ_User.ToolTip        = "操作人";
             this.drpCZ_User.DataValueField = "UserID";
             this.drpCZ_User.DataBind();
             this.drpCZ_User.Items.Insert(0, "请选择");
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }