Exemplo n.º 1
0
 /// <summary>
 /// 编辑作品
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult EditCommercialOpus(int id)
 {
     Bank_CommercialOpus wn = new Bank_CommercialOpusLogic().GetCommercialOpusModel(id);
     if (wn == null)
     {
         wn = new Bank_CommercialOpus();
     }
     return View(wn);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 作品商用
        /// </summary>
        /// <returns></returns>
        public ActionResult CommercialOpus()
        {
            this.pageSize = GetPageSize(20); //每页数量
            this.page = DTRequest.GetQueryInt("page", 1);
            ViewBag.txtKeywords = this.keywords;
            List<Bank_CommercialOpus> list = new Bank_CommercialOpusLogic().GetCommercialOpusList(KSOAEnum.OpusType.A, this.pageSize, this.page, out this.totalCount);

            //绑定页码
            ViewBag.txtPageNum = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("../ProPlatform/CommercialOpus", "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);
        }