1
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public static class AttachFileService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加附件存储信息
|
||||
@@ -17,6 +17,7 @@ namespace BLL
|
||||
/// <param name="workArea"></param>
|
||||
public static void AddAttachFile(Model.AttachFile attachFile)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.AttachFile));
|
||||
Model.AttachFile newAttachFile = new Model.AttachFile();
|
||||
newAttachFile.AttachFileId = newKeyID;
|
||||
@@ -35,6 +36,7 @@ namespace BLL
|
||||
/// <param name="workArea"></param>
|
||||
public static void updateAttachFile(Model.AttachFile attachFile)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.AttachFile newAttachFile = db.AttachFile.FirstOrDefault(x => x.AttachFileId == attachFile.AttachFileId);
|
||||
newAttachFile.ToKeyId = attachFile.ToKeyId;
|
||||
newAttachFile.AttachSource = attachFile.AttachSource;
|
||||
@@ -50,6 +52,7 @@ namespace BLL
|
||||
/// <param name="workAreaId"></param>
|
||||
public static void DeleteAttachFile(string rootPath, string toKeyId, string menuId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.AttachFile att = db.AttachFile.FirstOrDefault(e => e.ToKeyId == toKeyId && e.MenuId == menuId);
|
||||
if (att != null)
|
||||
{
|
||||
|
||||
@@ -3778,6 +3778,10 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string CompanyTrainingTemplateUrl = "File\\Excel\\DataIn\\公司教材库导入模板.xls";
|
||||
/// <summary>
|
||||
/// 考试试题类型导入模版文件原始的虚拟路径
|
||||
/// </summary>
|
||||
public const string TestTrainingTypeTemplateUrl = "File\\Excel\\DataIn\\考试试题类型导入模版.xls";
|
||||
/// <summary>
|
||||
/// 考试试题模版文件原始的虚拟路径
|
||||
/// </summary>
|
||||
public const string TestTrainingTemplateUrl = "File\\Excel\\DataIn\\考试试题模版.xls";
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/// </summary>
|
||||
public static class ProjectDataFlowSetService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
@@ -27,6 +27,7 @@
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string dataId, int startRowIndex, int maximumRows)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
IQueryable<Model.View_ProjectData_FlowOperate> q = from x in db.View_ProjectData_FlowOperate
|
||||
where x.DataId == dataId && x.IsClosed == true
|
||||
orderby x.SortIndex descending
|
||||
@@ -296,6 +297,7 @@
|
||||
/// <param name="dataId">主表主键Id</param>
|
||||
public static bool IsExitOperate(string menuId, string dataId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return (from x in db.ProjectData_FlowOperate
|
||||
where x.MenuId == menuId && x.DataId == dataId
|
||||
select x).Count() > 0;
|
||||
@@ -318,6 +320,7 @@
|
||||
/// </summary>
|
||||
public static void CloseFlowOperate(string menuId, string dataId, string opinion)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var updateUnFlowOperate = db.ProjectData_FlowOperate.FirstOrDefault(x => x.MenuId == menuId && x.DataId == dataId && (x.IsClosed == false || !x.IsClosed.HasValue));
|
||||
if (updateUnFlowOperate != null)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public class WeatherService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取CNPCDB
|
||||
|
||||
Reference in New Issue
Block a user