/// <summary> /// 添加作品商用信息 /// </summary> /// <returns></returns> public ActionResult AddCommercial(int id) { Bank_Opus wn = new Bank_OpusLogic().GetOpusModel(id); if (wn == null) { wn = new Bank_Opus(); } return View(wn); }
public ActionResult SelOups(FormCollection form) { string keyword = form["txtKeywords"]; KSOAEnum.OpusType otype = form["OpType"] == "B" ? KSOAEnum.OpusType.B : KSOAEnum.OpusType.S; this.pageSize = GetPageSize(15); //每页数量 this.page = DTRequest.GetQueryInt("page", 1); ViewBag.txtKeywords = this.keywords; List<Bank_Opus> list = new Bank_OpusLogic().GetOpusList(keyword, otype, this.pageSize, this.page, out this.totalCount); //绑定页码 ViewBag.txtPageNum = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("../ProPlatform/PurchaseAndSale", "group_id={0}&keywords={1}&page={2}", this.group_id.ToString(), this.keywords, "__id__"); ViewBag.PageContent = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); return View(list); }