Snailsoft.CRM.Business/CRM/Business/UploadTypeBN.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Snailsoft.CRM.Business
{
using System;
using System.Data;
using System.Web.UI;
using Snailsoft.Common.Database;
using Snailsoft.CRM.DB;
using Snailsoft.CRM.DB.Data;
using Snailsoft.Utils;
public class UploadTypeBN : BaseBusiness
{
private UploadTypeDB db;
private string MODULE_NAME;
public UploadTypeBN(Page page) : base(page)
{
this.MODULE_NAME = "文件类型";
this.db = null;
this.db = new UploadTypeDB(base.curDBOperater);
}
public UploadTypeBN(Page page, DBOperate oper) : base(page, oper)
{
this.MODULE_NAME = "文件类型";
this.db = null;
this.db = new UploadTypeDB(base.curDBOperater);
}
public bool Add(UploadTypeDT detail)
{
bool ret = false;
try
{
detail.fileType = BaseSequenceManager.GetManager().NextID(40);
ret = this.db.Add(detail);
}
catch (Exception ex)
{
throw ex;
}
base.Log("增加", this.MODULE_NAME, detail.fileTypeName, ret);
return ret;
}
public bool Delete(int fileType)
{
UploadTypeDT detail = this.Get(fileType);
bool ret = false;
try
{
ret = this.db.Delete(fileType);
}
catch (Exception ex)
{
throw ex;
}
base.Log("删除", this.MODULE_NAME, detail.fileTypeName, ret);
return ret;
}
后面还有 62 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
