Asp.net源码专业站
首页->博客空间->23blog v1.080709项目源代码>>BLL/Log.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:23blog v1.080709项目源代码
当前文件:文件类型 23blog/BLL/Log.cs[3K,2009-6-12 11:30:49]打开代码结构图
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Data; 5using Model; 6using IDAL; 7 8namespace BLL 9{ 10 public class Log 11 { 12 //利用反射生成实例 13 public static readonly ILog BLL_GetLog = DALFactory.DataAccess.CreateGetLog(); 14 private static LogInfo BLL_Log = new LogInfo(); 15 16 //查询——返回DataTable 17 public static DataTable Select_DataTable(byte flag, int log_menu_id, int log_id, int page_size, int current_index) 18 { 19 BLL_Log.flag = flag; 20 BLL_Log.log_menu_id = log_menu_id; 21 BLL_Log.log_id = log_id; 22 BLL_Log.page_size = page_size; 23 BLL_Log.current_index = current_index; 24 return BLL_GetLog.Select_DataTable(BLL_Log); 25 } 26 27 //重载Select_DataTable 28 public static DataTable Select_DataTable(byte flag, int log_id) 29 { 30 return Select_DataTable(flag, 0, log_id, 0, 0); 31 } 32 33 //查询——返回string数组 34 public static List<string> Select_List(byte flag, int log_menu_id, int log_id, int page_size, int current_index) 35 { 36 BLL_Log.flag = flag; 37 BLL_Log.log_menu_id = log_menu_id; 38 BLL_Log.log_id = log_id; 39 BLL_Log.page_size = page_size; 40 BLL_Log.current_index = current_index; 41 return BLL_GetLog.Select_List(BLL_Log); 42 } 43 44 //重载Select_List 45 public static List<string> Select_List(byte flag, int log_id) 46 { 47 return Select_List(flag, 0, log_id, 0, 0); 48 } 49 50 //查询——返回string 51 public static string Select_string(byte flag, int log_menu_id, int log_id, int page_size, int current_index) 52 { 53 BLL_Log.flag = flag; 54 BLL_Log.log_menu_id = log_menu_id; 55 BLL_Log.log_id = log_id; 56 BLL_Log.page_size = page_size; 57 BLL_Log.current_index = current_index; 58 return BLL_GetLog.Select_string(BLL_Log); 59 } 60 61 //重载Select_string 62 public static string Select_string(byte flag) 63 { 64 return Select_string(flag, 0, 0, 0, 0); 65 } 66 67 //插入 68 public static int Insert(int log_menu_id, bool ontop, string log_heading, string log_subhead, string log_content, bool draft) 69 { 70 BLL_Log.log_menu_id = log_menu_id; 71 BLL_Log.ontop = ontop; 72 BLL_Log.log_heading = log_heading; 73 BLL_Log.log_subhead = log_subhead; 74 BLL_Log.log_content = log_content; 75 BLL_Log.draft = draft; 76 return BLL_GetLog.Insert(BLL_Log); 77 } 78 79 //更新 80 public static int Update(byte flag, int log_menu_id, int log_id, bool ontop, string log_heading, string log_subhead, string log_content, bool draft) 81 { 82 BLL_Log.flag = flag; 83 BLL_Log.log_menu_id = log_menu_id; 84 BLL_Log.log_id = log_id; 85 BLL_Log.ontop = ontop; 86 BLL_Log.log_heading = log_heading; 87 BLL_Log.log_subhead = log_subhead; 88 BLL_Log.log_content = log_content; 89 BLL_Log.draft = draft; 90 return BLL_GetLog.Update(BLL_Log); 91 } 92 93 //删除 94 public static int Delete(int log_menu_id, int log_id) 95 { 96 BLL_Log.log_menu_id = log_menu_id; 97 BLL_Log.log_id = log_id; 98 return BLL_GetLog.Delete(BLL_Log); 99 } 100 } 101} 102
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:23blog v1.080709项目源代码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146