com.huiyou.Bll/ExReportService.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.huiyou.Dal;
using com.huiyou.Model;
using com.huiyou.Model.Tables;
using com.huiyou.Common;
using System.Data;
namespace com.huiyou.Bll
{
public class ExReportService
{
public static int GetMaxId()
{
string sql = "select ISNULL(max(id),0) from Tb_ExReport";
return Convert.ToInt32(DBHelper.SelectValue(sql));
}
public static List<Tb_ExReport> GetList(string where)
{
string sql = "select * from Tb_ExReport where 1=1 " + Environment.NewLine;
if (!string.IsNullOrEmpty(where))
{
sql += "and " + where;
}
List<Tb_ExReport> rst = TableFactory.GetList<Tb_ExReport>(sql);
return rst;
}
public static Tb_ExReport GetById(int id)
{
string sql = "select * from Tb_ExReport where id=" + id;
List<Tb_ExReport> rst = TableFactory.GetList<Tb_ExReport>(sql);
if (rst.Count == 0) return null;
return rst[0];
}
public static bool CreateExReport(Tb_ExReport oExReport)
{
bool result = false;
try
{
TableFactory.Add<Tb_ExReport>(oExReport);
result = true;
}
catch
{
result = false;
}
return result;
}
public static bool UpdateExReport(Tb_ExReport oExReport)
{
bool result = false;
try
{
TableFactory.Update<Tb_ExReport>(oExReport);
后面还有 10 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
