📄 icontentmanage.cs
字号:
namespace PowerEasy.IDal.Contents
{
using PowerEasy.Enumerations;
using PowerEasy.Model.Contents;
using System;
using System.Collections.Generic;
using System.Data;
public interface IContentManage
{
bool Add(int modelId, DataTable contentData);
bool AddCommonModel(int modelId, string tableName, DataTable contentData);
bool AddCommonModel(int modelId, string tableName, DataTable contentData, int generalId);
bool BatchMove(string generalIds, int nodeId);
bool BatchUpdate(CommonModelInfo commonModelInfo, string itemId, Dictionary<string, bool> checkItem, int batchType);
IList<CommonModelInfo> CreateAll(string nodeIdArray);
IList<CommonModelInfo> CreateByNotCreate(string nodeIdArray);
bool Delete(string generalId);
void DeleteByNodeId(string nodeIds, int status);
bool ExistSameTitle(int nodeId, string title);
IList<CommonModelInfo> GetCommentedCommonModelInfoListByNodeId(int startRowIndexId, int maxNumberRows, string nodeIds, int type);
IList<CommonModelInfo> GetCommentedCommonModelInfoListByUserName(int startRowIndexId, int maxNumberRows, string nodeIds, int type, string userName);
IList<CommonModelInfo> GetCommonInfoListByGeneralId(string generalId);
CommonModelInfo GetCommonModelInfo(int itemId, string tableName);
CommonModelInfo GetCommonModelInfoById(int generalId);
IList<CommonModelInfo> GetCommonModelInfoList();
IList<CommonModelInfo> GetCommonModelInfoList(string nodeIdArray, int number);
IList<CommonModelInfo> GetCommonModelInfoList(string nodeIdArray, string generalIdArray);
IList<CommonModelInfo> GetCommonModelInfoList(string nodeIdArray, DateTime beginTime, DateTime endTime);
IList<CommonModelInfo> GetCommonModelInfoList(string nodeIdArray, int minId, int maxId);
IList<CommonModelInfo> GetCommonModelInfoList(int startRowIndexId, int maxNumberRows, string nodeIds, ContentSortType sortType, int status, string roleIds);
IList<CommonModelInfo> GetCommonModelInfoListByShop(int startRowIndexId, int maxNumberRows, string nodeIds, ContentSortType sortType, int status, string roleIds);
DataTable GetCommonModelInfoListBySigninLog(int startRowIndexId, int maxNumberRows, string userName);
IList<CommonModelInfo> GetCommonModelInfoListBySigninStatus(int startRowIndexId, int maxNumberRows, string userName, int signin);
IList<CommonModelInfo> GetCommonModelInfoListBySigninType(int startRowIndexId, int maxNumberRows, string nodeIds, int signinType, ContentSortType sortType, int status, string searchType, string keyword);
IList<SpecialCommonModelInfo> GetCommonModelInfoListBySpecialCategoryId(int startRowIndexId, int maxNumberRows, int specialCategoryId, ContentSortType sortType, int status, string roleIds);
IList<SpecialCommonModelInfo> GetCommonModelInfoListBySpecialId(int startRowIndexId, int maxNumberRows, int specialId, ContentSortType sortType, int status, string roleIds);
IList<CommonModelInfo> GetCommonModelInfoListByUserName(int startRowIndexId, int maxNumberRows, string userName, string nodeIds, ContentSortType sortType, int status, string title);
DataTable GetContentDataById(int generalId);
DataSet GetContentList(int modelId, string nodeIds);
int GetContentNodeId(int generalId);
string GetContentTemplate(int infoid);
DataTable GetCountByEditorAndMonth(int nodeId, string editor, DateTime beginDate, DateTime endDate);
DataTable GetCountByInputerMonth(int nodeId, string userName, DateTime beginDate, DateTime endDate);
DataTable GetCountByNodeAndEditor(int nodeId, string editor, DateTime beginDate, DateTime endDate);
DataTable GetCountByNodeAndInputer(int nodeId, string userName, DateTime beginDate, DateTime endDate);
DataTable GetCountByNodeAndMonth(int nodeId, DateTime beginDate, DateTime endDate);
IList<CommonModelInfo> GetCreateHtmlCommonModelInfoList(int startRowIndexId, int maxNumberRows, string nodeIds, int created, ContentSortType sortType, bool isEshop);
string GetGeneralIdArrByNodeId(string nodeIds, int status);
DataTable GetHitsDataById(int generalId);
IList<CommonModelInfo> GetInfoList(int generalId);
CommonModelInfo GetNextInfo(int nodeId, int generalId);
CommonModelInfo GetPrevInfo(int nodeId, int generalId);
IList<CommonModelInfo> GetSearchContentList(int startRowIndexId, int maxNumberRows, string nodeIds, string modelIds, ContentSortType sortType, int status, string roleIds, string searchType, string keyword);
int GetTodayPublicInfoCountByUserName(string userName);
int GetTotalOfCommonModelInfo();
int GetTotalOfCommonModelInfoBySpecialCategoryId();
int GetTotalOfCommonModelInfoBySpecialId();
DataTable GetUserContentDataById(int generalId, string userName);
bool RecycleAll(string nodeIds);
void ReplaceTemplateDir(string oldDir, string newDir);
void ReplaceTemplateFileName(string replaceFormer, string replaceAfter);
bool Update(int generalId, DataTable contentData);
int UpdateBrowseTimes(int generalId);
bool UpdateByUser(int generalId, DataTable contentData, string userName);
bool UpdateCommentAuditedAndUnaudited(int generalId);
bool UpdateCommonModel(int generalId, DataTable contentData);
bool UpdateCreateTime(int generalId, DateTime? createTime);
bool UpdateField(int id, string table, string fieldName, DataTable content);
bool UpdateHits(int generalId, int hits, int dayhits, int weekhits, int monthhits, DateTime lasthittime);
void UpdateNodeId(int nodeId, string sourceNodeIds);
bool UpdateStatus(int generalId, int status, string editor);
bool UpdateStatus(string generalIds, int status, string editor);
bool UpdateStatusByUser(string generalIds, int status, string editor, string userName);
bool UpdateTemplateFile(int generalId, string templateFile);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -