/***********************
* 说明:日程管理调整业务
* 创建人:龚宇超
* 创建日期:2018-03-23
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
***********************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Lskj.Core;
namespace Lskj.Business.Impl
{
///
/// Class ScheduderImpl.
///
public class ScheduderImpl : BaseImpl
{
///
/// 说明:删除任务
/// 创建人:龚宇超
/// 创建日期:2018-03-26
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// 表名.
/// 主键值
/// 主键名.
/// System.Int32.
public static int DeleteAppointment(string tableName, string appointId, string primaryKey)
{
return SqlHelper.ExecuteNonQuery(string.Format("delete from {0} where {1}='{2}'", tableName, primaryKey, appointId));
}
///
/// 说明:删除任务
/// 创建人:龚宇超
/// 创建日期:2018-03-26
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// 表名.
/// 更改值.
/// 主键名
/// 主键值
/// System.Int32.
public static int UpdateAppointment(string tableName,string updateValue,string primaryKey,string appointId)
{
return SqlHelper.ExecuteNonQuery(string.Format("update {0} set {1} where {2}='{3}'", tableName, updateValue.TrimEnd(','), primaryKey, appointId));
}
///
/// 说明:添加任务
/// 创建人:龚宇超
/// 创建日期:2018-03-26
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// 表名.
/// 映射字段.
/// 数据行.
/// System.Int32.
public static object InsertAppointment(string tableName, string mappingColumns,DataRow dr)
{
string insertValues=string.Empty;
for(int i=1;i
/// 说明:获取任务数据
/// 创建人:龚宇超
/// 创建日期:2018-03-26
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
public static DataTable GetAppointments(string tableName)
{
return GetDataTableResult(string.Format("select * from {0}", tableName));
}
}
}