Ejemplo n.º 1
0
        public ActionResult CustomLabelLineEdit(long?id)
        {
            MemberShipLogStatisticLabelModels item = null;

            if (id != null)
            {
                item = MemberShipLogStatisticLabelDAO.GetItem((long)id);
                item.IsShowCustomLableLine = GetCustomLableCookie();
            }
            return(View(item));
        }
Ejemplo n.º 2
0
 public ActionResult CustomLabelLineEdit(MemberShipLogStatisticLabelModels item)
 {
     if (item != null)
     {
         item.CreateTime = DateTime.Now;
         item.Creator    = MemberDAO.SysCurrent.Id;
         item.ModifyTime = DateTime.Now;
         item.Modifier   = MemberDAO.SysCurrent.Id;
     }
     MemberShipLogStatisticLabelDAO.SetItem(item);
     //ViewBag.Exit = true;
     return(RedirectToAction("CustomLabelLine"));
 }
Ejemplo n.º 3
0
        public ActionResult CustomLabelLine(int?index, MemberShipLogStatisticLabelSearchModels search)
        {
            bool IsShowLabelLine = GetCustomLableCookie();

            if (Request.HttpMethod == "GET")
            {
                if (index == null)
                {
                    WorkV3.Common.Utility.ClearSearchValue();
                }
                else
                {
                    MemberShipLogStatisticLabelSearchModels prevSearch = WorkV3.Common.Utility.GetSearchValue <MemberShipLogStatisticLabelSearchModels>();
                    if (prevSearch != null)
                    {
                        search = prevSearch;
                    }
                }
            }
            else if (Request.HttpMethod == "POST")
            {
                WorkV3.Common.Utility.SetSearchValue(search);
            }


            ViewBag.Search = search;

            Pagination pagination = new Pagination
            {
                PageIndex = index ?? 1,
                PageSize  = WebInfo.PageSize
            };

            int totalRecord;
            IEnumerable <MemberShipLogStatisticLabelModels> items = MemberShipLogStatisticLabelDAO.GetItems(search, pagination.PageSize, pagination.PageIndex, out totalRecord);

            pagination.TotalRecord    = totalRecord;
            ViewBag.Pagination        = pagination;
            ViewBag.SelectCustomLabel = IsShowLabelLine;
            return(View(items));
        }
Ejemplo n.º 4
0
 public void CustomLabelLineDel(IEnumerable <long> ids)
 {
     MemberShipLogStatisticLabelDAO.DeleteItems(ids);
 }
Ejemplo n.º 5
0
 public ActionResult CustomLabelLineChangeStatus(int ID, bool ShowStatus)
 {
     MemberShipLogStatisticLabelDAO.SetItemStatus(ID, ShowStatus);
     return(Json("success"));
 }