isurvey.cs
来自「最好用的站点内容管理系统 全部源代码都有」· CS 代码 · 共 64 行
CS
64 行
using System;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using NetCMS.Model;
namespace NetCMS.DALFactory
{
public interface ISurvey
{
#region ManageVote.aspx
DataTable sel_voteById(int idt, int flag);
VoteTopicInfo GetTopic(int tid);
IList<VoteItemInfo> GetItemsByTopic(int tid);
object GetLastVoteTimeByIP(int TID, string IPAddr, string UserNum);
string GetVoteItemName(int iid);
DataTable sel_voteByStr(string str, int flag);
string GetUserName(string usernum);
int del_voteSql(string CheckboxArray, int flag);
int Del_voteManage(int RID, int flag);
DataTable GetVoteStat(int tid, out int totalvote);
string GetVoteTitle(int tid);
#endregion
#region setClass.aspx
bool Del_voteSql(int VID, int flag);
int Add(string Str_ClassName, string Str_Description, string SiteID);
void del_voteInfoSql(string CheckboxArray, bool flag);
void del_strVoteSql(int tid, int flag);
int Update_Str_InSql(string Str_ClassNameE, string Str_DescriptionE, int VID);
bool del_VoteInfo(int flag);
#endregion
#region setItem.aspx
int EditItem(VoteItemInfo info);
DataTable sel_voteInfo(int flag);
#endregion
#region setParam.aspx
int Update_Str_InSqls(int IPtime, byte IsReg, string IpLimit);
#endregion
#region setSteps.aspx
int sel_Str_CheckSql(string Str_vote_CNameSe, string Str_vote_CNameUse);
int Add_Str_InSql(string Str_vote_CNameSe, string Str_vote_CNameUse, string Str_StepsN, string SiteID);
int del_InfoVote(int flag);
int update_voteSteps(string Str_votecnameEditse, string Str_votecnameEditue, string Str_NumEdit, int SID);
#endregion
#region setTitle.aspx
int EditTopic(VoteTopicInfo info);
#endregion
void add_voteManage(int[] SelIID, int tid, string othercontent, string strvtime, string UserNum);
int sel_IP();
}
public sealed partial class DataAccess
{
public static ISurvey CreateSurvey()
{
string className = path + ".Survey";
return (ISurvey)Assembly.Load(path).CreateInstance(className);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?