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); }
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); }
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); }