Esempio n. 1
0
 public void Initialize()
 {
     DCommentBll    = new TMM.Service.Bll.Doc.D_CommentBLL();
     DDocInfoBll    = new TMM.Service.Bll.Doc.DDocInfoBLL();
     SCatalogBll    = new TMM.Service.Bll.Sys.S_CatalogBLL();
     DownloadLogBll = new TMM.Service.Bll.Doc.DownloadLogBLL();
     TReqDocBll     = new TMM.Service.Bll.Doc.TReqDocBLL();
     TJoinDocBll    = new TMM.Service.Bll.Doc.TJoinDocBLL();
     DTagBll        = new TMM.Service.Bll.Doc.D_TagBLL();
 }
Esempio n. 2
0
 /// <summary>
 /// 我要投稿
 /// </summary>
 public void AddContribute(int reqId)
 {
     PropertyBag["cur_page_addreward"] = true;
     PropertyBag["SessionId"] = HttpContext.Session.SessionID;
     Service.Bll.Doc.TReqDocBLL tbll = new TMM.Service.Bll.Doc.TReqDocBLL();
     TReqDoc tdoc = tbll.Get(reqId);
     if (tdoc == null)
         throw new Exception("该悬赏文档不存在");
     PropertyBag["tdoc"] = tdoc;
 }
Esempio n. 3
0
        /// <summary>
        /// 我要投稿
        /// </summary>
        public void AddContribute(int reqId)
        {
            PropertyBag["cur_page_addreward"] = true;
            PropertyBag["SessionId"]          = HttpContext.Session.SessionID;
            Service.Bll.Doc.TReqDocBLL tbll = new TMM.Service.Bll.Doc.TReqDocBLL();
            TReqDoc tdoc = tbll.Get(reqId);

            if (tdoc == null)
            {
                throw new Exception("该悬赏文档不存在");
            }
            PropertyBag["tdoc"] = tdoc;
        }
Esempio n. 4
0
 public void Initialize()
 {
     UserInfoBll   = new TMM.Service.Bll.User.U_UserInfoBLL();
     MessageBll    = new TMM.Service.Bll.User.M_MessageBLL();
     DocInfoBll    = new TMM.Service.Bll.Doc.DDocInfoBLL();
     MCatalogBll   = new TMM.Service.Bll.Doc.MCatalogBLL();
     MFavoriteBll  = new TMM.Service.Bll.Doc.MFavoriteBLL();
     DTagBll       = new TMM.Service.Bll.Doc.D_TagBLL();
     MPurchaseBll  = new TMM.Service.Bll.User.MPurchaseBLL();
     MAccountBll   = new TMM.Service.Bll.User.MAccountBLL();
     TReqDocBll    = new TMM.Service.Bll.Doc.TReqDocBLL();
     AccountLogBll = new TMM.Service.Bll.Order.AccountLogBLL();
 }
Esempio n. 5
0
 public void Index(int first)
 {
     Service.Bll.Doc.TReqDocBLL tbll = new TMM.Service.Bll.Doc.TReqDocBLL();
     Service.Bll.Doc.TJoinDocBLL tjbll = new TMM.Service.Bll.Doc.TJoinDocBLL();
     int rows = 10;
     int count = 0;
     IList<TReqDoc> list = tbll.GetList(first, rows, out count, null);
     Common.ListPage lp = new TMM.Core.Common.ListPage((IList)list, first, rows, count);
     PropertyBag["lp"] = lp;
     //排行榜
     PropertyBag["phb"] = tbll.GetList(0, 10);
     //最新中标
     PropertyBag["zxzb"] = tjbll.GetList(0, 10);
 }
Esempio n. 6
0
        public void Index(int first)
        {
            Service.Bll.Doc.TReqDocBLL  tbll  = new TMM.Service.Bll.Doc.TReqDocBLL();
            Service.Bll.Doc.TJoinDocBLL tjbll = new TMM.Service.Bll.Doc.TJoinDocBLL();
            int             rows  = 10;
            int             count = 0;
            IList <TReqDoc> list  = tbll.GetList(first, rows, out count, null);

            Common.ListPage lp = new TMM.Core.Common.ListPage((IList)list, first, rows, count);
            PropertyBag["lp"] = lp;
            //排行榜
            PropertyBag["phb"] = tbll.GetList(0, 10);
            //最新中标
            PropertyBag["zxzb"] = tjbll.GetList(0, 10);
        }