五环二期集团数据对接

This commit is contained in:
2025-06-19 16:55:10 +08:00
parent 5ed020c7e1
commit 0736adf719
105 changed files with 14375 additions and 1224 deletions
+60
View File
@@ -545,5 +545,65 @@ namespace BLL
}
return result;
}
/// <summary>
/// 获取附件数据流类 多附件的情况
/// </summary>
/// <param name="attachUrl">附件路径</param>
/// <returns></returns>
public static List<byte[]> GetMoreFileStructByAttachUrl(string attachUrl)
{
List<byte[]> fileContext = new List<byte[]>();
try
{
if (!String.IsNullOrEmpty(attachUrl))
{
string physicalpath = ConfigurationManager.AppSettings["localRoot"];
string filePath = string.Empty;
string[] strs = attachUrl.Trim().Split(',');
foreach (var item in strs)
{
//HttpContext.Current.Request.PhysicalApplicationPath;
filePath = physicalpath + item;
if (File.Exists(filePath))
{
fileContext.Add(fileConvertByte(item));
}
}
}
}
catch (Exception ex)
{
string a = ex.Message;
}
return fileContext;
}
#region ()
/// <summary>
/// 附件转换二进制数据(用于保存数据库)
/// </summary>
/// <param name="filePath">附件路径</param>
/// <returns>二进制</returns>
public static byte[] fileConvertByte(string filePath)
{
string physicalpath = (ConfigurationManager.AppSettings["localRoot"] + "\\" + filePath).Replace("\\\\", "\\");
byte[] bytContent = null;
System.IO.FileStream fs = null;
System.IO.BinaryReader br = null;
try
{
fs = new FileStream(physicalpath, System.IO.FileMode.Open);
}
catch
{
}
br = new BinaryReader((Stream)fs);
bytContent = br.ReadBytes((Int32)fs.Length);
fs.Dispose();
return bytContent;
}
#endregion
}
}
+18 -1
View File
@@ -131,7 +131,24 @@ namespace BLL
}
}
#endregion
#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
#region id菜单id判断是否有权限
/// <summary>
/// 根据登陆id菜单id判断是否有权限
+45
View File
@@ -1256,6 +1256,10 @@ namespace BLL
/// </summary>
public const string RectifyMenuId = "2D86AD87-4108-428C-BA3D-F81FB85511FE";
/// <summary>
/// 质量隐患
/// </summary>
public const string CQMSRectifyMenuId = "D72BB321-11A8-485B-BAC7-367C7FCA7FBA";
/// <summary>
/// 检查项
/// </summary>
public const string TechniqueCheckItemSetMenuId = "9C26BF2A-091D-4AC3-8678-334DE4E1CED7";
@@ -1714,6 +1718,33 @@ namespace BLL
public const string PersonPlanMenuId = "0E46F8F2-69DB-4F54-BCA0-1F3CBE57DA10";
#endregion
#region QC管理
/// <summary>
/// QC小组注册
/// </summary>
public const string ProjectQCGroupRegistrationListMenuId = "8B1DFB6D-B48C-4FAB-821F-25AD582DBFAB";
///// <summary>
///// 课题注册
///// </summary>
//public const string ProjectProjectRegistrationListMenuId = "B15BA270-D315-41C0-8383-4BC3BAA77DA7";
///// <summary>
///// PDCA过程
///// </summary>
//public const string ProjectPDCAProcessListMenuId = "3439948C-126C-421B-894A-B87B01C3C3C5";
///// <summary>
///// 成果
///// </summary>
//public const string ProjectAchievementListMenuId = "E95D09BF-A7CB-4870-A51F-2C291EFDFF0B";
///// <summary>
///// 成果评审及推进
///// </summary>
//public const string ProjectResultsReviewListMenuId = "948B5C35-0171-4A1E-B9BA-E6007675BB81";
#endregion
#region
#region
@@ -3809,6 +3840,20 @@ namespace BLL
public const string WeekReportNewMenuId = "51ee983f-085e-4f02-b819-cab049d9cc27";
#region
#region
///// <summary>
///// 组织机构
///// </summary>
//public const string CQMS_OrganizationalMenuId = "0B84F67A-BD4D-49C0-82B6-005F1409924E";
/// <summary>
/// 特设质保体系
/// </summary>
public const string CQMS_QualityAssuranceMenuId = "2C49EC5E-BF6F-4C44-BA02-9BD183CF68C6";
#endregion
#region
/// <summary>
/// 项目环境设置