fix:升级
This commit is contained in:
@@ -462,5 +462,64 @@ 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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6724,6 +6724,13 @@ namespace BLL
|
||||
/// 施工作业风险
|
||||
/// </summary>
|
||||
public const string ConstructionRiskMenuId = "F531D523-35BC-4D13-88D3-CB2554C4185C";
|
||||
|
||||
/// <summary>
|
||||
/// QC活动
|
||||
/// </summary>
|
||||
public const string ProjectQCGroupRegistrationListMenuId = "C8031876-4F44-4CBC-8370-0EC7CB1B21F5";
|
||||
/// 质量隐患
|
||||
/// </summary>
|
||||
public const string CQMSRectifyMenuId = "D72BB321-11A8-485B-BAC7-367C7FCA7FBA";
|
||||
/// <summary>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user