示例#1
0
        public ActionResult ClearAllIndex()
        {
            IndexManagementModels model = new IndexManagementModels();
            IdxIndexDAO indexDAO = new IdxIndexDAO(this.mapper);
            if (indexDAO.DeleteAllIndex())
            {
                model.infoMessage = PsMModel.Resource.MsgSuccess;
            }
            else
            {
                model.errorMessage = PsMModel.Resource.CommonErrMsg;
            }

            return View("IndexManagement", model);
        }
示例#2
0
 public ActionResult IndexManagement(IndexManagementModels model)
 {
     MstIndexTypeDAO indexTypeDAO = new MstIndexTypeDAO(this.mapper);
     model.indexTypeList = indexTypeDAO.GetIndexTypeList(null, Constants.Status.Active);
     MstIndexTypeModels allType = new MstIndexTypeModels();
     model.indexTypeList.Insert(0, allType);
     IdxIndexDAO indexDAO = new IdxIndexDAO(this.mapper);
     indexDAO.DeleteIndex(model.indexTypeCode, model.indexCode, model.fromTime, model.toTime, model.term);
     model.infoMessage = PsMModel.Resource.MsgSuccess;
     return View(model);
 }
示例#3
0
 public ActionResult IndexManagement()
 {
     IndexManagementModels model = new IndexManagementModels();
     MstIndexTypeDAO indexTypeDAO = new MstIndexTypeDAO(this.mapper);
     model.indexTypeList = indexTypeDAO.GetIndexTypeList(null, Constants.Status.Active);
     MstIndexTypeModels allType = new MstIndexTypeModels();
     model.indexTypeList.Insert(0, allType);
     return View(model);
 }