Ejemplo n.º 1
0
 /// <summary>
 ///     把Request.QueryString提交过来的内容转化成为实体类
 /// </summary>
 /// <param name="prefix">控件前缀</param>
 /// <param name="tip">弹出框事务委托</param>
 /// <param name="url">跳转地址</param>
 public static TInfo QueryString(Action <string, string> tip = null, string url = "", string prefix = "hl")
 {
     return(Req.Fill <TInfo>(HttpContext.Current.Request.QueryString, tip, url, prefix));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     把Request.Form提交过来的内容转化成为实体类
 /// </summary>
 /// <param name="prefix">控件前缀</param>
 /// <param name="tip">弹出框事务委托</param>
 public static TInfo QueryString(Action <Dictionary <string, List <string> > > tip, string prefix = "hl")
 {
     return(Req.Fill <TInfo>(HttpContext.Current.Request.QueryString, tip, prefix));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     把Request.Form提交过来的内容转化成为实体类
 /// </summary>
 /// <param name="prefix">控件前缀</param>
 /// <param name="dicError">返回错误消息,key:属性名称;value:错误消息</param>
 public static TInfo Form(out Dictionary <string, List <string> > dicError, string prefix = "hl")
 {
     return(Req.Fill <TInfo>(HttpContext.Current.Request.Form, out dicError, prefix));
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     把Request.Form提交过来的内容转化成为实体类
 /// </summary>
 /// <param name="prefix">控件前缀</param>
 /// <param name="dicError">返回错误消息,key:属性名称;value:错误消息</param>
 public static TEntity QueryString <TEntity>(this ProcSet <TEntity> entity, out Dictionary <string, List <string> > dicError, string prefix = "hl") where TEntity : class, new()
 {
     return(Req.Fill <TEntity>(HttpContext.Current.Request.QueryString, out dicError, prefix));
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     把Request.Form提交过来的内容转化成为实体类
 /// </summary>
 /// <param name="prefix">控件前缀</param>
 /// <param name="tip">弹出框事务委托</param>
 public static TEntity QueryString <TEntity>(this TableSet <TEntity> entity, Action <Dictionary <string, List <string> > > tip, string prefix = "hl") where TEntity : class, new()
 {
     return(Req.Fill <TEntity>(HttpContext.Current.Request.QueryString, tip, prefix));
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     把Request.Form提交过来的内容转化成为实体类
 /// </summary>
 /// <param name="prefix">控件前缀</param>
 /// <param name="set">ISet接口</param>
 /// <param name="dicError">返回错误消息,key:属性名称;value:错误消息</param>
 public static TEntity Form <TEntity>(this IDbSet set, out Dictionary <string, List <string> > dicError, string prefix = "hl") where TEntity : class, new()
 {
     return(Req.Fill <TEntity>(HttpContext.Current.Request.Form, out dicError, prefix));
 }
Ejemplo n.º 7
0
//#if !IsMvc
//        /// <summary>
//        ///     通用的分页方法(多条件)
//        /// </summary>
//        /// <param name="set">ISet接口</param>
//        /// <param name="rpt">Repeater带分页控件</param>
//        /// <typeparam name="TEntity">实体类</typeparam>
//        public static List<TEntity> ToList<TEntity>(this IDbSet<TEntity> set, Repeater rpt) where TEntity : class, IEntity, new()
//        {
//            int recordCount;
//            var lst = set.ToList(rpt.PageSize, rpt.PageIndex, out recordCount);
//            rpt.PageCount = recordCount;

//            return lst;
//        }
//#endif
        /// <summary>
        ///     把Request.Form提交过来的内容转化成为实体类
        /// </summary>
        /// <param name="prefix">控件前缀</param>
        /// <param name="set">ISet接口</param>
        /// <param name="tip">弹出框事务委托</param>
        public static TEntity Form <TEntity>(this IDbSet <TEntity> set, Action <Dictionary <string, List <string> > > tip, string prefix = "hl") where TEntity : class, new()
        {
            return(Req.Fill <TEntity>(HttpContext.Current.Request.Form, tip, prefix));
        }