Пример #1
0
 public NodeRecordListModel InitializeNodeRecordListModel(NodeRecordQueryItem queryItem)
 {
     var model = new NodeRecordListModel();
     model.NodeRecordSearchModel.NodeRecordQueryItem = queryItem;
     model.NodeRecords = _nodeRecordRepository.Query(queryItem);
     return model;
 }
Пример #2
0
 public object InitializeRecordsModel(NodeRecordQueryItem queryItem)
 {
     var model = new RecordsModel();
     model.NodeRecordQueryItem = queryItem;
     model.NodeRecordQueryItem.IsShow = true;
     model.NodeRecords = _nodeRecordRepository.Query(queryItem).ToList();
     model.ListTitle = "文章列表";
     var nodeId = queryItem.NodeId ?? queryItem.NodeIdLike;
     if (nodeId.HasValue)
     {
         var node = _nodeRepository.Find(nodeId.Value);
         model.ListTitle = node.Name;
     }
     return model;
 }
Пример #3
0
 public RecordsModel()
 {
     NodeRecordQueryItem = new NodeRecordQueryItem();
     NodeRecords=new List<NodeRecord>();
 }
Пример #4
0
 public NodeRecordSearchModel()
 {
     NodeRecordQueryItem = new NodeRecordQueryItem();
 }