1
This commit is contained in:
@@ -60,6 +60,11 @@ namespace BLL
|
||||
newModel.Code = model.Code;
|
||||
newModel.Name = model.Name;
|
||||
newModel.Remark = model.Remark;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
<<<<<<< HEAD
|
||||
using EmitMapper;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using MiniExcelLibs;
|
||||
=======
|
||||
using MiniExcelLibs;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
using Model;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Linq;
|
||||
<<<<<<< HEAD
|
||||
using System.Runtime.CompilerServices;
|
||||
using Quartz.Util;
|
||||
=======
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -68,6 +75,11 @@ namespace BLL
|
||||
newModel.Teachers1 = model.Teachers1;
|
||||
newModel.Teachers2 = model.Teachers2;
|
||||
newModel.Remark = model.Remark;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,11 @@ namespace BLL
|
||||
newModel.Code = model.Code;
|
||||
newModel.Name = model.Name;
|
||||
newModel.Remark = model.Remark;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
using Model;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 岗位培训记录明细
|
||||
/// </summary>
|
||||
public static class PostTrainingRecordDetailService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取岗位培训记录明细信息
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static PostTraining_Record_Detail GetRecordDetailById(string Id)
|
||||
{
|
||||
return Funs.DB.PostTraining_Record_Detail.FirstOrDefault(e => e.Id == Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据记录Id、人员Id获取岗位培训记录明细信息
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
/// <param name="personId"></param>
|
||||
/// <returns></returns>
|
||||
public static PostTraining_Record_Detail GetRecordDetailByRecordIdPersonId(string recordId, string personId)
|
||||
{
|
||||
return Funs.DB.PostTraining_Record_Detail.FirstOrDefault(e => e.RecordId == recordId && e.PersonId == personId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键记录Id获取所有的培训明细信息
|
||||
/// </summary>
|
||||
/// <param name="recordId"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.PostTraining_Record_Detail> GetRecordDetailByRecordId(string recordId)
|
||||
{
|
||||
return (from x in Funs.DB.PostTraining_Record_Detail where x.RecordId == recordId select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加岗位培训记录明细
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void AddRecordDetail(PostTraining_Record_Detail model)
|
||||
{
|
||||
PostTraining_Record_Detail newModel = new PostTraining_Record_Detail
|
||||
{
|
||||
Id = model.Id,
|
||||
RecordId = model.RecordId,
|
||||
PersonId = model.PersonId
|
||||
};
|
||||
Funs.DB.PostTraining_Record_Detail.InsertOnSubmit(newModel);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void UpdateRecordDetail(PostTraining_Record_Detail model)
|
||||
{
|
||||
PostTraining_Record_Detail newModel = Funs.DB.PostTraining_Record_Detail.FirstOrDefault(e => e.Id == model.Id);
|
||||
if (newModel != null)
|
||||
{
|
||||
newModel.RecordId = model.RecordId;
|
||||
newModel.PersonId = model.PersonId;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteRecordDetailById(string Id)
|
||||
{
|
||||
PostTraining_Record_Detail model = Funs.DB.PostTraining_Record_Detail.FirstOrDefault(e => e.Id == Id);
|
||||
if (model != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(Id);
|
||||
Funs.DB.PostTraining_Record_Detail.DeleteOnSubmit(model);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除培训记录
|
||||
/// </summary>
|
||||
/// <param name="detailId"></param>
|
||||
public static void DeleteTrainDetailByTrainDetail(string detailId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.PostTraining_Record_Detail trainDetails = Funs.DB.PostTraining_Record_Detail.FirstOrDefault(e => e.Id == detailId);
|
||||
if (trainDetails != null)
|
||||
{
|
||||
db.PostTraining_Record_Detail.DeleteOnSubmit(trainDetails);
|
||||
db.SubmitChanges();
|
||||
|
||||
var record = PostTrainingRecordService.GetRecordById(trainDetails.RecordId);
|
||||
if (record != null)
|
||||
{
|
||||
record.PersonNum -= 1;
|
||||
BLL.PostTrainingRecordService.UpdateRecord(record);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,391 @@
|
||||
using MiniExcelLibs;
|
||||
using Model;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 岗位培训记录
|
||||
/// </summary>
|
||||
public static class PostTrainingRecordService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取岗位培训记录信息
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
public static PostTraining_Record GetRecordById(string Id)
|
||||
{
|
||||
return Funs.DB.PostTraining_Record.FirstOrDefault(e => e.Id == Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加岗位培训记录
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void AddRecord(PostTraining_Record model)
|
||||
{
|
||||
PostTraining_Record newModel = new PostTraining_Record
|
||||
{
|
||||
Id = model.Id,
|
||||
ProjectId = model.ProjectId,
|
||||
Code = model.Code,
|
||||
Name = model.Name,
|
||||
Content = model.Content,
|
||||
CategoryId = model.CategoryId,
|
||||
CategoryName = model.CategoryName,
|
||||
CourseId = model.CourseId,
|
||||
CourseName = model.CourseName,
|
||||
Location = model.Location,
|
||||
Method = model.Method,
|
||||
Lecturer = model.Lecturer,
|
||||
UnitIds = model.UnitIds,
|
||||
RoleIds = model.RoleIds,
|
||||
PersonNum = model.PersonNum,
|
||||
TrainingTime = model.TrainingTime,
|
||||
Duration = model.Duration,
|
||||
CompileDate = model.CompileDate,
|
||||
CompileMan = model.CompileMan,
|
||||
Remark = model.Remark
|
||||
};
|
||||
Funs.DB.PostTraining_Record.InsertOnSubmit(newModel);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
public static void UpdateRecord(PostTraining_Record model)
|
||||
{
|
||||
PostTraining_Record newModel = Funs.DB.PostTraining_Record.FirstOrDefault(e => e.Id == model.Id);
|
||||
if (newModel != null)
|
||||
{
|
||||
newModel.Code = model.Code;
|
||||
newModel.Name = model.Name;
|
||||
newModel.Content = model.Content;
|
||||
newModel.CategoryId = model.CategoryId;
|
||||
newModel.CategoryName = model.CategoryName;
|
||||
newModel.CourseId = model.CourseId;
|
||||
newModel.CourseName = model.CourseName;
|
||||
newModel.Location = model.Location;
|
||||
newModel.Method = model.Method;
|
||||
newModel.Lecturer = model.Lecturer;
|
||||
newModel.UnitIds = model.UnitIds;
|
||||
newModel.RoleIds = model.RoleIds;
|
||||
newModel.PersonNum = model.PersonNum;
|
||||
newModel.TrainingTime = model.TrainingTime;
|
||||
newModel.Duration = model.Duration;
|
||||
newModel.Remark = model.Remark;
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除
|
||||
/// </summary>
|
||||
/// <param name="Id"></param>
|
||||
public static void DeleteRecordById(string Id)
|
||||
{
|
||||
PostTraining_Record model = Funs.DB.PostTraining_Record.FirstOrDefault(e => e.Id == Id);
|
||||
if (model != null)
|
||||
{
|
||||
CommonService.DeleteAttachFileById(Id);
|
||||
Funs.DB.PostTraining_Record.DeleteOnSubmit(model);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
#region 导入数据
|
||||
|
||||
///// <summary>
|
||||
///// 导入数据
|
||||
///// </summary>
|
||||
///// <param name="path"></param>
|
||||
///// <param name="projectid"></param>
|
||||
///// <param name="creatUserId"></param>
|
||||
///// <param name="errorList"></param>
|
||||
///// <returns></returns>
|
||||
//public static ResponeData ImportData(string OriFileName, string path, string projectid, string creatUserId, ref List<ErrorInfo> errorList)
|
||||
//{
|
||||
// var responeData = new ResponeData();
|
||||
// List<PostTrainingRecord_InputDataIn> temeplateDtoIns;
|
||||
// try
|
||||
// {
|
||||
// temeplateDtoIns = MiniExcel.Query<PostTrainingRecord_InputDataIn>(path, startCell: "A1").ToList();
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// responeData.code = 0;
|
||||
// responeData.message = "模板错误:" + ex.ToString();
|
||||
// return responeData;
|
||||
// }
|
||||
|
||||
// if (temeplateDtoIns.Count == 0)
|
||||
// {
|
||||
// responeData.code = 0;
|
||||
// responeData.message = "导入数据为空!";
|
||||
// return responeData;
|
||||
// }
|
||||
|
||||
// //培训标准
|
||||
// var lstRecord = GetRecordInfoList();
|
||||
// //培训课程
|
||||
// var lstCourse = PostTrainingCourseService.GetCourseList();
|
||||
// //培训角色
|
||||
// var lstRole = PostTrainingRoleService.GetRoleList();
|
||||
// //培训类别
|
||||
// var lstCategory = PostTrainingCategoryService.GetCategoryList();
|
||||
// //培训方式
|
||||
// var lstMethod = PostTrainingMethodService.GetMethodList();
|
||||
// //培训教资
|
||||
// var lstTeachers = PostTrainingTeachersService.GetTeachersList();
|
||||
// //培训效果
|
||||
// var lstOutcome = GetPostTrainingOutcomeList();
|
||||
|
||||
// #region 数据校验
|
||||
|
||||
// string errorMsg = string.Empty;
|
||||
// int rowIndex = 3;
|
||||
// foreach (var item in temeplateDtoIns)
|
||||
// {
|
||||
// string roleName = !string.IsNullOrWhiteSpace(item.RoleName) ? item.RoleName.Trim() : string.Empty;
|
||||
// string categoryName = !string.IsNullOrWhiteSpace(item.CategoryName) ? item.CategoryName.Trim() : string.Empty;
|
||||
// string courseName = !string.IsNullOrWhiteSpace(item.CourseName) ? item.CourseName.Trim() : string.Empty;
|
||||
// string classHourStr = !string.IsNullOrWhiteSpace(item.ClassHour) ? item.ClassHour.Trim() : string.Empty;
|
||||
// string cycleStr = !string.IsNullOrWhiteSpace(item.Cycle) ? item.Cycle.Trim() : string.Empty;
|
||||
// decimal classHour = 0;
|
||||
// decimal cycle = 0;
|
||||
// string method = !string.IsNullOrWhiteSpace(item.Method) ? item.Method.Trim() : string.Empty;
|
||||
// string outcome = !string.IsNullOrWhiteSpace(item.Outcome) ? item.Outcome.Trim() : string.Empty;
|
||||
// string teachers = !string.IsNullOrWhiteSpace(item.Teachers) ? item.Teachers.Trim() : string.Empty;
|
||||
// string remark = !string.IsNullOrWhiteSpace(item.Remark) ? item.Remark.Trim() : string.Empty;
|
||||
|
||||
// if (!string.IsNullOrWhiteSpace(roleName))
|
||||
// {
|
||||
// if (!lstRole.Where(x => x.Name == roleName).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "适用岗位角色";
|
||||
// errorInfo.Reason = $"角色不存在:{roleName}";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "适用岗位角色";
|
||||
// errorInfo.Reason = "不可为空";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
|
||||
// if (!string.IsNullOrWhiteSpace(categoryName))
|
||||
// {
|
||||
// if (!lstCategory.Where(x => x.Name == categoryName).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训类别";
|
||||
// errorInfo.Reason = $"培训类别不存在:{categoryName}";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训类别";
|
||||
// errorInfo.Reason = "不可为空";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
|
||||
// if (string.IsNullOrWhiteSpace(courseName))
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课程";
|
||||
// errorInfo.Reason = "不可为空";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
|
||||
// if (!string.IsNullOrWhiteSpace(categoryName) && !string.IsNullOrWhiteSpace(courseName))
|
||||
// {
|
||||
// if (temeplateDtoIns.Where(x => x.RoleName == roleName && x.CourseName == courseName && x.CategoryName == categoryName).Count() > 1)
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课程";
|
||||
// errorInfo.Reason = $"【{roleName}】导入数据重复:{courseName}({categoryName})";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// if (!lstCourse.Where(x => x.Name == courseName && x.CategoryName == categoryName).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课程";
|
||||
// errorInfo.Reason = $"【{roleName}】不存在培训课程:{courseName}({categoryName})";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// else if (lstRecord.Where(x => x.CourseName == courseName && x.CategoryName == categoryName).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课程";
|
||||
// errorInfo.Reason = $"培训标准已存在:{courseName}({categoryName})";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
|
||||
// if (!string.IsNullOrEmpty(classHourStr))
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// classHour = decimal.Parse(classHourStr);
|
||||
// if (classHour <= 0)
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课时";
|
||||
// errorInfo.Reason = "请填写大于0的数值";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception)
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课时";
|
||||
// errorInfo.Reason = "请填写大于0的数值";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训课时";
|
||||
// errorInfo.Reason = "请填写大于0的数值";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
|
||||
// if (!string.IsNullOrEmpty(cycleStr))
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// cycle = decimal.Parse(cycleStr);
|
||||
// if (cycle <= 0)
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训周期";
|
||||
// errorInfo.Reason = "请填写大于0的数值";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// catch (Exception)
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训周期";
|
||||
// errorInfo.Reason = "请填写大于0的数值";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训周期";
|
||||
// errorInfo.Reason = "请填写大于0的数值";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
|
||||
// if (!string.IsNullOrWhiteSpace(method))
|
||||
// {
|
||||
// if (!lstMethod.Where(x => x.Name == method).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训方式";
|
||||
// errorInfo.Reason = $"培训方式字典不存在:{method}";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// if (!string.IsNullOrWhiteSpace(outcome))
|
||||
// {
|
||||
// if (!lstOutcome.Where(x => x.Text == outcome).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训效果";
|
||||
// errorInfo.Reason = $"培训效果字典不存在:{outcome}";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
// if (!string.IsNullOrWhiteSpace(teachers))
|
||||
// {
|
||||
// if (!lstTeachers.Where(x => x.Name == teachers).Any())
|
||||
// {
|
||||
// ErrorInfo errorInfo = new ErrorInfo();
|
||||
// errorInfo.Row = rowIndex.ToString();
|
||||
// errorInfo.Column = "培训师资";
|
||||
// errorInfo.Reason = $"培训师资字典不存在:{teachers}";
|
||||
// errorList.Add(errorInfo);
|
||||
// }
|
||||
// }
|
||||
|
||||
// rowIndex++;
|
||||
// }
|
||||
|
||||
// if (errorList.Any())
|
||||
// {
|
||||
// responeData.code = 0;
|
||||
// responeData.message = "存在异常数据!";
|
||||
// return responeData;
|
||||
// }
|
||||
|
||||
// #endregion
|
||||
|
||||
// foreach (var item in temeplateDtoIns)
|
||||
// {
|
||||
// string roleName = !string.IsNullOrWhiteSpace(item.RoleName) ? item.RoleName.Trim() : string.Empty;
|
||||
// string categoryName = !string.IsNullOrWhiteSpace(item.CategoryName) ? item.CategoryName.Trim() : string.Empty;
|
||||
// string courseName = !string.IsNullOrWhiteSpace(item.CourseName) ? item.CourseName.Trim() : string.Empty;
|
||||
// decimal classHour = decimal.Parse(item.ClassHour);
|
||||
// decimal cycle = decimal.Parse(item.Cycle);
|
||||
// string method = !string.IsNullOrWhiteSpace(item.Method) ? item.Method.Trim() : string.Empty;
|
||||
// string outcome = !string.IsNullOrWhiteSpace(item.Outcome) ? item.Outcome.Trim() : string.Empty;
|
||||
// string teachers = !string.IsNullOrWhiteSpace(item.Teachers) ? item.Teachers.Trim() : string.Empty;
|
||||
// string remark = !string.IsNullOrWhiteSpace(item.Remark) ? item.Remark.Trim() : string.Empty;
|
||||
|
||||
// PostTraining_Record newModel = new PostTraining_Record
|
||||
// {
|
||||
// Id = SQLHelper.GetNewID(typeof(PostTraining_Record)),
|
||||
// Code = SQLHelper.RunProcNewId("SpGetNewCode5", "dbo.PostTraining_Record", "Code", ""),
|
||||
// //ProjectId = this.ProjectId,
|
||||
// CompileDate = DateTime.Now,
|
||||
// CompileMan = creatUserId
|
||||
// };
|
||||
// newModel.CourseId = lstCourse.Where(x => x.Name == courseName).FirstOrDefault().Id;
|
||||
// newModel.RoleId = lstRole.Where(x => x.Name == roleName).FirstOrDefault().Id;
|
||||
// newModel.ClassHour = classHour;
|
||||
// newModel.Cycle = cycle;
|
||||
// newModel.Method = method;
|
||||
// newModel.Outcome = outcome;
|
||||
// newModel.Teachers = teachers;
|
||||
// newModel.Remark = remark;
|
||||
|
||||
// AddRecord(newModel);
|
||||
// }
|
||||
// return responeData;
|
||||
//}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,11 @@ namespace BLL
|
||||
newModel.Code = model.Code;
|
||||
newModel.Name = model.Name;
|
||||
newModel.Remark = model.Remark;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
<<<<<<< HEAD
|
||||
using EmitMapper;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using MiniExcelLibs;
|
||||
=======
|
||||
using MiniExcelLibs;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
using Model;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Linq;
|
||||
<<<<<<< HEAD
|
||||
using System.Runtime.CompilerServices;
|
||||
using Quartz.Util;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using RestSharp;
|
||||
using System.Web.UI.WebControls;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
=======
|
||||
using System.Web.UI.WebControls;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
@@ -60,6 +60,11 @@ namespace BLL
|
||||
newModel.Code = model.Code;
|
||||
newModel.Name = model.Name;
|
||||
newModel.Remark = model.Remark;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
newModel.CompileDate = model.CompileDate;
|
||||
newModel.CompileMan = model.CompileMan;
|
||||
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user