代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -465,6 +465,30 @@ namespace BLL
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断文件类型是否是图片
|
||||
/// </summary>
|
||||
/// <param name="FiletExtension"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsImage(string FiletExtension)
|
||||
{
|
||||
bool result = false;
|
||||
List<String> list = new List<string>();
|
||||
list.Add(".png");
|
||||
list.Add(".jpg");
|
||||
list.Add(".jpeg");
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (item == FiletExtension)
|
||||
{
|
||||
result = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
#region 根据图片路径转换为base64
|
||||
/// <summary>
|
||||
/// 根据图片路径转换为base64
|
||||
|
||||
@@ -355,8 +355,8 @@ namespace BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
var uinit =UnitService.GetUnitByUnitId(unitId);
|
||||
if (uinit != null && uinit.IsBranch ==true)
|
||||
var uinit = UnitService.GetUnitByUnitId(unitId);
|
||||
if (uinit != null && uinit.IsBranch == true)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
|
||||
+14
-14
@@ -857,7 +857,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 发起检查
|
||||
/// </summary>
|
||||
public const string CheckInfoMenuId = "6090DD54-FE59-4011-92EE-9906C9BC69B6";
|
||||
public const string CheckInfoMenuId = "6090DD54-FE59-4011-92EE-9906C9BC69B6";
|
||||
|
||||
/// <summary>
|
||||
/// 实业
|
||||
@@ -3221,19 +3221,19 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 工程量清单菜单id
|
||||
/// </summary>
|
||||
public const string TemQuantityListMenuId0= "326AA80C-6B01-4214-ACF2-B29595BA28D5";
|
||||
public const string TemQuantityListMenuId1= "0A679077-6D89-4272-A1B0-CF384DEDC9B8";
|
||||
public const string TemQuantityListMenuId2= "0E04FA16-FFA6-4987-A0A5-A4658F0099F2";
|
||||
public const string TemQuantityListMenuId3= "FAC4F0F7-A7C0-4F66-8BCB-846C082BCA40";
|
||||
public const string TemQuantityListMenuId4= "10586190-0FDD-4DA8-A877-CE4599D6F0DF";
|
||||
public const string TemQuantityListMenuId5= "1C770E20-7912-484C-9739-499B1B2F8DEB";
|
||||
public const string TemQuantityListMenuId5_1= "3593DF22-78C1-4A73-8468-B20CB44D88C9";
|
||||
public const string TemQuantityListMenuId5_2= "3ECE6333-6785-424D-996E-B923A650D8C7";
|
||||
public const string TemQuantityListMenuId5_3= "480F8C85-F5F2-4C5C-BE72-2ADABB7250CF";
|
||||
public const string TemQuantityListMenuId6= "92101A90-9C22-4B43-B012-9AFF8402F85D";
|
||||
public const string TemQuantityListMenuId7= "33A03E2C-4E00-4722-AA14-F50419468154";
|
||||
public const string TemQuantityListMenuId8= "A5A31FE8-0643-4396-99E3-A4A31A947789";
|
||||
public const string TemQuantityListMenuId9= "481E6B1E-A3D5-4012-B828-FE62EB6BA861";
|
||||
public const string TemQuantityListMenuId0 = "326AA80C-6B01-4214-ACF2-B29595BA28D5";
|
||||
public const string TemQuantityListMenuId1 = "0A679077-6D89-4272-A1B0-CF384DEDC9B8";
|
||||
public const string TemQuantityListMenuId2 = "0E04FA16-FFA6-4987-A0A5-A4658F0099F2";
|
||||
public const string TemQuantityListMenuId3 = "FAC4F0F7-A7C0-4F66-8BCB-846C082BCA40";
|
||||
public const string TemQuantityListMenuId4 = "10586190-0FDD-4DA8-A877-CE4599D6F0DF";
|
||||
public const string TemQuantityListMenuId5 = "1C770E20-7912-484C-9739-499B1B2F8DEB";
|
||||
public const string TemQuantityListMenuId5_1 = "3593DF22-78C1-4A73-8468-B20CB44D88C9";
|
||||
public const string TemQuantityListMenuId5_2 = "3ECE6333-6785-424D-996E-B923A650D8C7";
|
||||
public const string TemQuantityListMenuId5_3 = "480F8C85-F5F2-4C5C-BE72-2ADABB7250CF";
|
||||
public const string TemQuantityListMenuId6 = "92101A90-9C22-4B43-B012-9AFF8402F85D";
|
||||
public const string TemQuantityListMenuId7 = "33A03E2C-4E00-4722-AA14-F50419468154";
|
||||
public const string TemQuantityListMenuId8 = "A5A31FE8-0643-4396-99E3-A4A31A947789";
|
||||
public const string TemQuantityListMenuId9 = "481E6B1E-A3D5-4012-B828-FE62EB6BA861";
|
||||
/// <summary>
|
||||
/// 招标工程量清单定制
|
||||
/// </summary>
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using NPOI.OpenXmlFormats.Shared;
|
||||
using QRCoder;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using ThoughtWorks.QRCode.Codec;
|
||||
using QRCoder;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -61,7 +60,7 @@ namespace BLL
|
||||
int iconBorderWidth:水印图标的边框。不能设为0,否则会显示“参数错误”,程序运行出错。
|
||||
bool drawQuietZones:静止区,即是否绘画二维码的空白边框区域,默认为true。
|
||||
*/
|
||||
public static string CreateCode_Simple(string nr,string filename)
|
||||
public static string CreateCode_Simple(string nr, string filename)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -89,7 +88,7 @@ namespace BLL
|
||||
{
|
||||
Directory.CreateDirectory(filepath);
|
||||
}
|
||||
// string filename = DateTime.Now.ToString("yyyymmddhhmmssfff").ToString() + ".jpg";
|
||||
// string filename = DateTime.Now.ToString("yyyymmddhhmmssfff").ToString() + ".jpg";
|
||||
filename = filename + ".jpg";
|
||||
//if (File.Exists(filepath + filename))
|
||||
//{
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using FastReport;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Data;
|
||||
using FastReport;
|
||||
using System.Web;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@ namespace BLL
|
||||
{
|
||||
using MiniExcelLibs;
|
||||
using Model;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using Quartz;
|
||||
using RestSharp;
|
||||
using System;
|
||||
@@ -1212,7 +1211,7 @@ namespace BLL
|
||||
p.SetValue(entity, Convert.ToInt32(row[p.Name]), null);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
p.SetValue(entity, row[p.Name], null);
|
||||
}
|
||||
list.Add(entity);
|
||||
@@ -1364,7 +1363,7 @@ namespace BLL
|
||||
/// <param name="pageTotal">总数</param>
|
||||
/// <param name="pagesize">每页条数</param>
|
||||
/// <returns></returns>
|
||||
public static int GetEndPageNumber(int pageTotal,int pagesize )
|
||||
public static int GetEndPageNumber(int pageTotal, int pagesize)
|
||||
{
|
||||
double aa = (pageTotal + pagesize - 1) / pagesize; //使用数据条数/每页显示条数,来获得最大页数,是double类型
|
||||
|
||||
@@ -1451,7 +1450,7 @@ namespace BLL
|
||||
return response.Content;
|
||||
}
|
||||
|
||||
public static string RequestPost(string Baseurl, Dictionary<string ,string> Token, string JsonBody)
|
||||
public static string RequestPost(string Baseurl, Dictionary<string, string> Token, string JsonBody)
|
||||
{
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
|
||||
@@ -1461,7 +1460,7 @@ namespace BLL
|
||||
foreach (var item in Token)
|
||||
{
|
||||
request.AddHeader(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
request.AddHeader("ClientId", SysConstSetService.ClientId);
|
||||
request.AddHeader("OperationCode", Baseurl.Substring(Baseurl.LastIndexOf("/", StringComparison.Ordinal) + 1));
|
||||
if (!string.IsNullOrEmpty(JsonBody))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using FineUIPro;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
/// <summary>
|
||||
/// 处理多表头的类
|
||||
/// </summary>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
namespace BLL
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
@@ -272,9 +271,9 @@
|
||||
public static string GetRectifyNoticesTableHtmlAll(string projectId)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
var getRectifyNoticesAll = from x in Funs.DB.Check_RectifyNotices
|
||||
var getRectifyNoticesAll = from x in Funs.DB.Check_RectifyNotices
|
||||
orderby x.RectifyNoticesCode
|
||||
where x.ProjectId == projectId
|
||||
where x.ProjectId == projectId
|
||||
select x;
|
||||
sb.Append("<meta http-equiv=\"content-type\" content=\"application/word; charset=UTF-8\"/>");
|
||||
foreach (var getRectifyNotices in getRectifyNoticesAll)
|
||||
@@ -641,7 +640,7 @@
|
||||
where x.ProjectId == projectId
|
||||
select x;
|
||||
foreach (var getRectifyNotices in getRectifyNoticesAll)
|
||||
{
|
||||
{
|
||||
sb.Append("<table width=\"100% \" cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;font-size: 11pt;\">");
|
||||
sb.Append("<tr style=\"height: 35px\">");
|
||||
sb.AppendFormat("<td align=\"center\" colspan=\"4\" style=\"width: 100%; font-size: 12pt; font-weight: bold;border-right: none;border-left: none;border-bottom: none;border-top: none; \">{0}</td> ", "安全隐患整改反馈单");
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
namespace BLL
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public class WeatherService
|
||||
{
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取事故类型
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Aspose.Words;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
@@ -242,7 +241,7 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void WordIntoPdf(string wordPath, string pdfPath)
|
||||
/* public static void WordIntoPdf(string wordPath, string pdfPath)
|
||||
{
|
||||
Microsoft.Office.Interop.Word.Application application = new Microsoft.Office.Interop.Word.Application();
|
||||
Microsoft.Office.Interop.Word.Document document = null;
|
||||
@@ -261,7 +260,7 @@ namespace BLL
|
||||
document.Close();
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
/// <summary>
|
||||
/// html代码转word
|
||||
/// </summary>
|
||||
@@ -281,7 +280,7 @@ namespace BLL
|
||||
sw.Flush();
|
||||
sw.Close();
|
||||
}
|
||||
public static string WordToHtml(object wordFileName)
|
||||
/* public static string WordToHtml(object wordFileName)
|
||||
{
|
||||
//在此处放置用户代码以初始化页面
|
||||
Microsoft.Office.Interop.Word.ApplicationClass word = new Microsoft.Office.Interop.Word.ApplicationClass();
|
||||
@@ -340,7 +339,7 @@ namespace BLL
|
||||
//process.Start();
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion*/
|
||||
//public static string GetPathByDocToHTML(string strFile)
|
||||
//{
|
||||
// if (string.IsNullOrEmpty(strFile))
|
||||
|
||||
Reference in New Issue
Block a user