public ExecResult DelDictValue(DictValueQuery query) { ExecResult execResult = new ExecResult(); IDictValueService service = ServiceContainer.Instance.Container.Resolve <IDictValueService>(); Int64[] dictValueIDs = query.DictValueIDs; if (dictValueIDs == null) { execResult.result = EnumJsonResult.failure.ToString(); execResult.msg = "没有删除任何数据!"; return(execResult); } string msg = string.Empty; bool result = service.BatchDeleteDictValue(dictValueIDs); if (result) { execResult.result = EnumJsonResult.success.ToString(); execResult.msg = "删除数据字典成功!"; } else { execResult.result = EnumJsonResult.failure.ToString(); execResult.msg = "删除数据字典失败!"; } return(execResult); }
public ExecResult SaveDictValue(DictValueEntity model) { ExecResult execResult = new ExecResult(); IDictValueService service = ServiceContainer.Instance.Container.Resolve <IDictValueService>(); return(service.Save(model)); }
public DictValueEntity GetDictValueModel(DictValueQuery query) { IDictValueService service = ServiceContainer.Instance.Container.Resolve <IDictValueService>(); DictValueEntity model = service.GetDictValue(query.DictValueID); return(model); }
public Pager <DictValueEntity> GetDictValuePageList(DictValueQuery query) { IDictValueService service = ServiceContainer.Instance.Container.Resolve <IDictValueService>(); Pager <DictValueEntity> pager = service.GetDictValuePageList(query); return(pager); }
public IList <DictValueEntity> GetDictValueList(DictValueQuery query) { IDictValueService service = ServiceContainer.Instance.Container.Resolve <IDictValueService>(); return(service.GetDictValueList(query)); }
public IDictionary <int, string> GetDictValueDcit(DictValueQuery query) { IDictValueService service = ServiceContainer.Instance.Container.Resolve <IDictValueService>(); return(service.GetDictValueDcit(query.JournalID, query.DictKey)); }