📄 iphoto.cs
字号:
using System;
using System.Data;
using System.Reflection;
using NetCMS.Model;
namespace NetCMS.DALFactory
{
public interface IPhoto
{
#region photo.aspx
DataTable sel_getUserInfo(string PhotoalbumID);
#endregion
#region photo_add.aspx
DataTable sel_getPhotoInfo(string UserNum);
DataTable sel_getPhotoId();
int Add(PhotoInfo Pho, string UserNum, string PhotoalbumID, string PhotoUrl, string PhotoID);
#endregion
#region photo_del.aspx
int Delete(string PhotoID);
#endregion
#region photo_up.aspx
DataTable sel_getUserPhoto(string PhotoID);
int Update(string PhotoName, DateTime PhotoTime, string PhotoalbumID, string PhotoContent, string PhotoUrl1, string PhotoIDs);
#endregion
#region Photoalbum.aspx
DataTable sel_getPhotoClass(string UserNum);
int add_photoalBum(PhotoAlbumInfo Pb, string UserNum);
#endregion
#region Photoalbum_up.aspx
int update_photoalBum(string PhotoalbumName, string PhotoalbumJurisdiction, string ClassID, DateTime Creatime, string PhotoalbumIDs);
string sel_getPhotoalBum();
int update_photoalBumPwd(string newpwds, string PhotoalbumIDs);
#endregion
#region Photoalbumlist.aspx
int del_photoalBumById(string ID);
int del_photoById(string ID);
string sel_sysUser(string UserNum);
int sel_userPhoCount(string ID);
DataTable GetPage(string UserNum, string ClassID, int PageIndex, int PageSize, out int RecordCount, out int PageCount, params SQLConditionInfo[] SqlCondition);
#endregion
#region photoclass.aspx
int del_phoBumById(string ID);
int del_photoalBum(string ID);
DataTable sel_getPhotoById(string ID);
DataTable sel_disActive();
#endregion
#region photoclass_add.aspx
int add_photoalBumClass(string ClassName, string ClassID, DateTime Creatime, string UserNum, int isDisclass, string DisID);
#endregion
#region photoclass_up.aspx
string sel_phoClassName(string ClassID);
int update_phoBumClass(string ClassName, DateTime Creatime, string ClassIDs);
#endregion
DataTable sel_photoUrl(string PhotoalbumID);
}
public sealed partial class DataAccess
{
public static IPhoto CreatePhoto()
{
string className = path + ".Photo";
return (IPhoto)Assembly.Load(path).CreateInstance(className);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -