/// <summary> /// 安全方式绑定对象表单 /// </summary> public Lebi_Express SafeBindForm(Lebi_Express model) { if (HttpContext.Current.Request["Background"] != null) { model.Background = LB.Tools.RequestTool.RequestSafeString("Background"); } if (HttpContext.Current.Request["Height"] != null) { model.Height = LB.Tools.RequestTool.RequestSafeString("Height"); } if (HttpContext.Current.Request["Name"] != null) { model.Name = LB.Tools.RequestTool.RequestSafeString("Name"); } if (HttpContext.Current.Request["Pos"] != null) { model.Pos = LB.Tools.RequestTool.RequestSafeString("Pos"); } if (HttpContext.Current.Request["Sort"] != null) { model.Sort = LB.Tools.RequestTool.RequestInt("Sort", 0); } if (HttpContext.Current.Request["Status"] != null) { model.Status = LB.Tools.RequestTool.RequestInt("Status", 0); } if (HttpContext.Current.Request["Transport_id"] != null) { model.Transport_id = LB.Tools.RequestTool.RequestInt("Transport_id", 0); } if (HttpContext.Current.Request["Width"] != null) { model.Width = LB.Tools.RequestTool.RequestSafeString("Width"); } return(model); }
/// <summary> /// 增加一条数据 /// </summary> public static int Add(Lebi_Express model) { return(D_Lebi_Express.Instance.Add(model)); }
/// <summary> /// 更新一条数据 /// </summary> public static void Update(Lebi_Express model) { D_Lebi_Express.Instance.Update(model); }
/// <summary> /// 安全方式绑定表单数据 /// </summary> public static Lebi_Express SafeBindForm(Lebi_Express model) { return(D_Lebi_Express.Instance.SafeBindForm(model)); }