Esempio n. 1
0
        public ActionResult Record(long id, string pvenum)
        {
            ResultInfo ri = new ResultInfo();

            if (id > 0)
            {
                PVTableEnum _pv = GetPVType(pvenum.ToLower());
                if (_pv != PVTableEnum.None)
                {
                    ri.Ok = PVBLL.Instance.RecordPVCount(_pv, id);
                }
            }
            return(Result(ri));
        }
Esempio n. 2
0
        public ActionResult Edit(long id, long number, string editEnum)
        {
            ResultInfo ri = new ResultInfo();

            if (id > 0)
            {
                if (number > -1)
                {
                    PVTableEnum _pv = GetPVType(editEnum.ToLower());
                    ri.Ok = PVBLL.Instance.EditPVCount(_pv, id, number);
                }
                else
                {
                    ri.Msg = "浏览量咋能为负呢?";
                }
            }
            else
            {
                ri.Msg = "数据源异常";
            }
            return(Result(ri));
        }
Esempio n. 3
0
 public bool EditPVCount(PVTableEnum pvEnum, long id, long number)
 {
     return(dal.EditPVCount(pvEnum.ToString(), id, number));
 }
Esempio n. 4
0
 /// <summary>
 /// 记录浏览量
 /// </summary>
 /// <returns></returns>
 public bool RecordPVCount(PVTableEnum pvEnum, long id)
 {
     return(dal.RecordPVCount(pvEnum.ToString(), id));
 }