protected int sid = 0;//结算供应商ID public void LoadPage() { models = B_Lebi_BillType.GetList("", "Sort desc"); billtype = models.FirstOrDefault(); sid = RequestTool.RequestInt("sid", 0); basket = new Basket(sid); }
protected void Page_Load(object sender, EventArgs e) { if (!EX_Admin.Power("billtype_list", "发票类型列表")) { PageReturnMsg = PageNoPowerMsg(); } PageSize = RequestTool.getpageSize(25); string where = "1=1"; models = B_Lebi_BillType.GetList(where, "Sort desc", PageSize, page); int recordCount = B_Lebi_BillType.Counts(where); PageString = Pager.GetPaginationString("?page={0}", page, PageSize, recordCount); }
public string billlist(int sid) { List <Lebi_BillType> models = B_Lebi_BillType.GetList("", "Sort desc"); string str = ""; foreach (Lebi_BillType m in models) { string sel = ""; if (m.id == sid) { sel = "selected"; } str += "<option code=\"" + m.Type_id_BillType + "\" value=\"" + m.id + "\" " + sel + ">" + Lang(m.Name) + "</option>"; } return(str); }