Backup/BLL/Leave.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using RM.Entity;
namespace RM.BLL
{
    /// <summary>
    /// 业务类.Leave
    /// </summary>
    public class Leave
    {
        #region 创建数据访问对象.
        private readonly RM.DAL.Leave MyDAL = new RM.DAL.Leave();
        #endregion

        #region 构造函数
        public Leave()
        {
        }
        #endregion

        #region 成员方法

        /// <summary>
        /// 将数据实体写入数据库.
        /// </summary>
        public bool Add(RM.Entity.Leave MyEntity)
        {
            return MyDAL.Add(MyEntity);
        }

        /// <summary>
        /// 将数据更新到数据库.
        /// </summary>
        public bool Update(RM.Entity.Leave MyEntity)
        {
            return MyDAL.Update(MyEntity);
        }
        public bool Update(string ids, string condition)
        {
            return (int)MyDAL.ExecuteSql(string.Format("update {1} set {2} where ID in ({0})", ids, MyDAL.strTableName, condition)) > 0;
        }

        /// <summary>
        /// 将数据从数据库删除.
        /// </summary>
        public bool Delete(int ID)
        {
            return MyDAL.Delete(ID);
        }

        public int Delete(string ID)
        {
            return MyDAL.Delete(ID);
        }

        /// <summary>
        /// 获取一个数据实体.
        /// </summary>
        public RM.Entity.Leave GetEntity(int ID)
        {
后面还有 16 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。