提交定制会内容
This commit is contained in:
@@ -691,5 +691,22 @@ namespace BLL
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
#region 根据项目id获取项目总包单位Id
|
||||
/// <summary>
|
||||
/// 得到本单位Id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GetMainProjectUnitId(string projectId)
|
||||
{
|
||||
string unitId = string.Empty;
|
||||
var projectUnit = Funs.DB.Project_ProjectUnit.FirstOrDefault(e => e.ProjectId == projectId && e.UnitType == BLL.Const.ProjectUnitType_1);
|
||||
if (projectUnit != null)
|
||||
{
|
||||
unitId = projectUnit.UnitId;
|
||||
}
|
||||
return unitId;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5178,5 +5178,68 @@ namespace BLL
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// QC小组注册
|
||||
/// </summary>
|
||||
public const string ProjectQCGroupRegistrationListMenuId = "8B1DFB6D-B48C-4FAB-821F-25AD582DBFAB";
|
||||
|
||||
/// <summary>
|
||||
/// 图纸会审管理
|
||||
/// </summary>
|
||||
public const string ReviewDrawingsMenuId = "856D53B3-C5FB-443F-917B-39E83BE685DB";
|
||||
|
||||
/// <summary>
|
||||
/// 图纸会审记录导入模板文件原始虚拟路径
|
||||
/// </summary>
|
||||
public const string ReviewDrawingsTemplateUrl = "File\\Excel\\DataIn\\图纸会审管理导入模板.xls";
|
||||
|
||||
/// <summary>
|
||||
/// 特设质保体系
|
||||
/// </summary>
|
||||
public const string CQMS_QualityAssuranceMenuId = "2C49EC5E-BF6F-4C44-BA02-9BD183CF68C6";
|
||||
|
||||
/// <summary>
|
||||
/// 施工技术交底管理导入模板原始虚拟路径
|
||||
/// </summary>
|
||||
public const string ConTechnologyDisclosureTemUrl = "File\\Excel\\DataIn\\施工技术交底管理导入模板.xls";
|
||||
|
||||
/// <summary>
|
||||
/// 施工技术交底管理
|
||||
/// </summary>
|
||||
public const string ConTechnologyDisclosureMenuId = "A16CFA9D-2783-4573-95F9-EBA2B682B7EA";
|
||||
|
||||
#region 综合管理审核流程
|
||||
|
||||
/// <summary>
|
||||
/// 重报
|
||||
/// </summary>
|
||||
public const string Comprehensive_ReCompile = "0";
|
||||
|
||||
/// <summary>
|
||||
/// 驳回
|
||||
/// </summary>
|
||||
public const string Comprehensive_ReJect = "-1";
|
||||
|
||||
/// <summary>
|
||||
/// 编制
|
||||
/// </summary>
|
||||
public static string Comprehensive_Compile = "1";
|
||||
|
||||
/// <summary>
|
||||
/// 专业工程师审核
|
||||
/// </summary>
|
||||
public static string Comprehensive_Audit = "2";
|
||||
|
||||
/// <summary>
|
||||
/// 审批完成
|
||||
/// </summary>
|
||||
public static string Comprehensive_Complete = "3";
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 质量隐患
|
||||
/// </summary>
|
||||
public const string CQMSRectifyMenuId = "D72BB321-11A8-485B-BAC7-367C7FCA7FBA";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class Sys_CQMS_DataInTempService
|
||||
{ /// <summary>
|
||||
/// 根据主键获取导入临时表信息
|
||||
/// </summary>
|
||||
/// <param name="tempId">Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.Sys_CQMS_DataInTemp GetDataInTempByTempId(string tempId)
|
||||
{
|
||||
return Funs.DB.Sys_CQMS_DataInTemp.FirstOrDefault(x => x.TempId == tempId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加导入临时表记录
|
||||
/// </summary>
|
||||
/// <param name="dataInTemp">委托实体</param>
|
||||
public static void AddDataInTemp(Model.Sys_CQMS_DataInTemp dataInTemp)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Sys_CQMS_DataInTemp newDataInTemp = new Model.Sys_CQMS_DataInTemp();
|
||||
newDataInTemp.TempId = dataInTemp.TempId;
|
||||
newDataInTemp.ProjectId = dataInTemp.ProjectId;
|
||||
newDataInTemp.UserId = dataInTemp.UserId;
|
||||
newDataInTemp.Time = dataInTemp.Time;
|
||||
newDataInTemp.RowNo = dataInTemp.RowNo;
|
||||
newDataInTemp.Type = dataInTemp.Type;
|
||||
newDataInTemp.Value1 = dataInTemp.Value1;
|
||||
newDataInTemp.Value2 = dataInTemp.Value2;
|
||||
newDataInTemp.Value3 = dataInTemp.Value3;
|
||||
newDataInTemp.Value4 = dataInTemp.Value4;
|
||||
newDataInTemp.Value5 = dataInTemp.Value5;
|
||||
newDataInTemp.Value6 = dataInTemp.Value6;
|
||||
newDataInTemp.Value7 = dataInTemp.Value7;
|
||||
newDataInTemp.Value8 = dataInTemp.Value8;
|
||||
newDataInTemp.Value9 = dataInTemp.Value9;
|
||||
newDataInTemp.Value10 = dataInTemp.Value10;
|
||||
newDataInTemp.Value11 = dataInTemp.Value11;
|
||||
newDataInTemp.Value12 = dataInTemp.Value12;
|
||||
newDataInTemp.Value13 = dataInTemp.Value13;
|
||||
newDataInTemp.Value14 = dataInTemp.Value14;
|
||||
newDataInTemp.Value15 = dataInTemp.Value15;
|
||||
newDataInTemp.Value16 = dataInTemp.Value16;
|
||||
newDataInTemp.Value17 = dataInTemp.Value17;
|
||||
newDataInTemp.Value18 = dataInTemp.Value18;
|
||||
newDataInTemp.Value19 = dataInTemp.Value19;
|
||||
newDataInTemp.Value20 = dataInTemp.Value20;
|
||||
|
||||
newDataInTemp.ToopValue = dataInTemp.ToopValue;
|
||||
db.Sys_CQMS_DataInTemp.InsertOnSubmit(newDataInTemp);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void AddDataInTemp(List<Model.Sys_CQMS_DataInTemp> dataInTemps)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
foreach (var dataInTemp in dataInTemps)
|
||||
{
|
||||
Model.Sys_CQMS_DataInTemp newDataInTemp = new Model.Sys_CQMS_DataInTemp();
|
||||
newDataInTemp.TempId = dataInTemp.TempId;
|
||||
newDataInTemp.ProjectId = dataInTemp.ProjectId;
|
||||
newDataInTemp.UserId = dataInTemp.UserId;
|
||||
newDataInTemp.Time = dataInTemp.Time;
|
||||
newDataInTemp.RowNo = dataInTemp.RowNo;
|
||||
newDataInTemp.Type = dataInTemp.Type;
|
||||
newDataInTemp.Value1 = dataInTemp.Value1;
|
||||
newDataInTemp.Value2 = dataInTemp.Value2;
|
||||
newDataInTemp.Value3 = dataInTemp.Value3;
|
||||
newDataInTemp.Value4 = dataInTemp.Value4;
|
||||
newDataInTemp.Value5 = dataInTemp.Value5;
|
||||
newDataInTemp.Value6 = dataInTemp.Value6;
|
||||
newDataInTemp.Value7 = dataInTemp.Value7;
|
||||
newDataInTemp.Value8 = dataInTemp.Value8;
|
||||
newDataInTemp.Value9 = dataInTemp.Value9;
|
||||
newDataInTemp.Value10 = dataInTemp.Value10;
|
||||
newDataInTemp.Value11 = dataInTemp.Value11;
|
||||
newDataInTemp.Value12 = dataInTemp.Value12;
|
||||
newDataInTemp.Value13 = dataInTemp.Value13;
|
||||
newDataInTemp.Value14 = dataInTemp.Value14;
|
||||
newDataInTemp.Value15 = dataInTemp.Value15;
|
||||
newDataInTemp.Value16 = dataInTemp.Value16;
|
||||
newDataInTemp.Value17 = dataInTemp.Value17;
|
||||
newDataInTemp.Value18 = dataInTemp.Value18;
|
||||
newDataInTemp.Value19 = dataInTemp.Value19;
|
||||
newDataInTemp.Value20 = dataInTemp.Value20;
|
||||
|
||||
newDataInTemp.ToopValue = dataInTemp.ToopValue;
|
||||
db.Sys_CQMS_DataInTemp.InsertOnSubmit(newDataInTemp);
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 修改导入临时表记录
|
||||
/// </summary>
|
||||
/// <param name="weldReport">焊接实体</param>
|
||||
public static void UpdateDataInTemp(Model.Sys_CQMS_DataInTemp dataInTemp)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Sys_CQMS_DataInTemp newDataInTemp = db.Sys_CQMS_DataInTemp.FirstOrDefault(e => e.TempId == dataInTemp.TempId);
|
||||
if (newDataInTemp != null)
|
||||
{
|
||||
newDataInTemp.UserId = dataInTemp.UserId;
|
||||
newDataInTemp.Time = dataInTemp.Time;
|
||||
newDataInTemp.Value1 = dataInTemp.Value1;
|
||||
newDataInTemp.Value2 = dataInTemp.Value2;
|
||||
newDataInTemp.Value3 = dataInTemp.Value3;
|
||||
newDataInTemp.Value4 = dataInTemp.Value4;
|
||||
newDataInTemp.Value5 = dataInTemp.Value5;
|
||||
newDataInTemp.Value6 = dataInTemp.Value6;
|
||||
newDataInTemp.Value7 = dataInTemp.Value7;
|
||||
newDataInTemp.Value8 = dataInTemp.Value8;
|
||||
newDataInTemp.Value9 = dataInTemp.Value9;
|
||||
newDataInTemp.Value10 = dataInTemp.Value10;
|
||||
newDataInTemp.Value11 = dataInTemp.Value11;
|
||||
newDataInTemp.Value12 = dataInTemp.Value12;
|
||||
newDataInTemp.Value13 = dataInTemp.Value13;
|
||||
newDataInTemp.Value14 = dataInTemp.Value14;
|
||||
newDataInTemp.Value15 = dataInTemp.Value15;
|
||||
newDataInTemp.Value16 = dataInTemp.Value16;
|
||||
newDataInTemp.Value17 = dataInTemp.Value17;
|
||||
newDataInTemp.Value18 = dataInTemp.Value18;
|
||||
newDataInTemp.Value19 = dataInTemp.Value19;
|
||||
newDataInTemp.Value20 = dataInTemp.Value20;
|
||||
newDataInTemp.ToopValue = dataInTemp.ToopValue;
|
||||
newDataInTemp.Type = dataInTemp.Type;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除导入临时表记录
|
||||
/// </summary>
|
||||
/// <param name="tempId">委托主键</param>
|
||||
public static void DeleteDataInTempByDataInTempID(string tempId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Sys_CQMS_DataInTemp dataInTemp = db.Sys_CQMS_DataInTemp.FirstOrDefault(e => e.TempId == tempId);
|
||||
if (dataInTemp != null)
|
||||
{
|
||||
db.Sys_CQMS_DataInTemp.DeleteOnSubmit(dataInTemp);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据项目用户主键删除导入临时表记录
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="userId"></param>
|
||||
public static void DeleteDataInTempByProjectIdUserId(string projectId, string userId, string type)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var dataInTemp = from x in db.Sys_CQMS_DataInTemp where x.ProjectId == projectId && x.UserId == userId && x.Type == type select x;
|
||||
if (dataInTemp.Count() > 0)
|
||||
{
|
||||
db.Sys_CQMS_DataInTemp.DeleteAllOnSubmit(dataInTemp);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user