public List <Lebi_PickUp> GetPickups(BasketShop shop) { //自提点 List <Lebi_PickUp> pickups = B_Lebi_PickUp.GetList("(','+Language_ids+',' like ',%" + CurrentLanguage.id + "%,' or Language_ids='') and Supplier_id=" + shop.Shop.id + "", "Sort desc"); return(pickups); }
public string pickuplist(int sid) { List <Lebi_PickUp> models = B_Lebi_PickUp.GetList("Supplier_id=0", "Sort desc"); string str = ""; foreach (Lebi_PickUp m in models) { string sel = ""; if (m.id == sid) { sel = "selected"; } str += "<option value=\"" + m.id + "\" " + sel + ">" + m.Name + "</option>"; } return(str); }
protected void Page_Load(object sender, EventArgs e) { if (!Power("pickup_list", "自提点列表")) { PageReturnMsg = PageNoPowerMsg(); } key = RequestTool.RequestString("key"); PageSize = RequestTool.getpageSize(25); string where = "Supplier_id=" + CurrentSupplier.id + ""; //if (pid > 0) // where += " and Parentid="+pid; if (key != "") { where += " and [Name] like lbsql{'%" + key + "%'}"; } models = B_Lebi_PickUp.GetList(where, "Sort desc", PageSize, page); int recordCount = B_Lebi_PickUp.Counts(where); PageString = Shop.Bussiness.Pager.GetPaginationString("?page={0}&key=" + key, page, PageSize, recordCount); }