IDP设计图纸管理

This commit is contained in:
2025-07-18 11:07:06 +08:00
parent 58b237b0cf
commit 41ba702346
10 changed files with 686 additions and 119 deletions
@@ -114,7 +114,7 @@ namespace BLL
public static List<string> GetWbsFullPathDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.WbsFullPath != null
where x.ProjectId == projectId && x.WbsFullPath != null && x.WbsFullPath != ""
select x.WbsFullPath).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -146,7 +146,7 @@ namespace BLL
public static List<string> GetFileVersionDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.FileVersion != null
where x.ProjectId == projectId && x.FileVersion != null && x.FileVersion != ""
select x.FileVersion).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -178,7 +178,7 @@ namespace BLL
public static List<string> GetMajorNoDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.MajorNo != null
where x.ProjectId == projectId && x.MajorNo != null && x.MajorNo != ""
select x.MajorNo).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -209,7 +209,7 @@ namespace BLL
public static List<string> GetMajorNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.MajorName != null
where x.ProjectId == projectId && x.MajorName != null && x.MajorName != ""
select x.MajorName).Distinct().OrderBy(x => x).ToList();
return list;
}
@@ -241,41 +241,195 @@ namespace BLL
public static List<string> GetStatusDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.Status != null
where x.ProjectId == projectId && x.Status != null && x.Status != ""
select x.Status).Distinct().OrderBy(x => x).ToList();
return list;
}
///// <summary>
// /// 装工主名称下拉框
// /// </summary>
// /// <param name="projectId">项目id</param>
// /// <returns></returns>
//public static List<string> GetWbsFullPathDropDownList(string projectId)
//{
// var list = (from x in Funs.DB.Transfer_PunchlistFrom
// where x.ProjectId == projectId
// select x.Action_By).Distinct().OrderBy(x => x).ToList();
// return list;
//}
///// <summary>
///// 装工主名称下拉框
///// </summary>
///// <param name="projectId">项目id</param>
///// <param name="dropName">下拉框名字</param>
///// <param name="isShowPlease">是否显示请选择</param>
//public static void InitActionByUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
//{
// dropName.DataValueField = "string";
// dropName.DataTextField = "string";
// dropName.DataSource = GetActionByUnitDropDownList(projectId);
// dropName.DataBind();
// if (isShowPlease)
// {
// Funs.FineUIPleaseSelect(dropName);
// }
//}
/// <summary>
/// 保密等级下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitClassDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetClassDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 保密等级下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetClassDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.ClassificationLevelInProject != null && x.ClassificationLevelInProject != ""
select x.ClassificationLevelInProject).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 设计人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitDesignUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetDesignUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 设计人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetDesignUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.DesignUserName != null && x.DesignUserName != ""
select x.DesignUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 校核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitJiaoheUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetJiaoheUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 校核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetJiaoheUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.JiaoheUserName != null && x.JiaoheUserName != ""
select x.JiaoheUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 审核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitShenheUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetShenheUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 审核人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetShenheUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.ShenheUserName != null && x.ShenheUserName != ""
select x.ShenheUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 审定人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitShendingUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetShendingUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 审定人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetShendingUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.ShendingUserName != null && x.ShendingUserName != ""
select x.ShendingUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
/// <summary>
/// 专业负责人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <param name="dropName">下拉框名字</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitMajorResponsibleUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "string";
dropName.DataTextField = "string";
dropName.DataSource = GetMajorResponsibleUserNameDropDownList(projectId);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 专业负责人下拉框
/// </summary>
/// <param name="projectId">项目id</param>
/// <returns></returns>
public static List<string> GetMajorResponsibleUserNameDropDownList(string projectId)
{
var list = (from x in Funs.DB.IDP_DesignDrawing
where x.ProjectId == projectId && x.MajorResponsibleUserName != null && x.MajorResponsibleUserName != ""
select x.MajorResponsibleUserName).Distinct().OrderBy(x => x).ToList();
return list;
}
}
}
+11 -30
View File
@@ -1,21 +1,13 @@
using Apache.NMS.ActiveMQ.Commands;
using Aspose.Words.Lists;
using Microsoft.SqlServer.Dts.Runtime;
using Model;
using Model;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Org.BouncyCastle.Ocsp;
using SgManager.AI;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Security.Policy;
using System.ServiceModel.Channels;
using System.Text;
namespace BLL
@@ -25,15 +17,15 @@ namespace BLL
/// </summary>
public static class IDPDataService
{
/// <summary>
/// 测试环境api地址
/// </summary>
private static readonly string IDPApiUrl = "http://10.5.6.151:8100/";
///// <summary>
///// 正式环境api地址
///// 测试环境api地址
///// </summary>
//private static readonly string IDPApiUrl = "http://10.5.6.151:8100/";
/// <summary>
/// 正式环境api地址
/// </summary>
//private static readonly string IDPApiUrl = "https://idp.cwcec.com/";
//private static readonly string IDPApiUrl = SysConstSetService.WuHuanIDPPath;
private static readonly string IDPApiUrl = SysConstSetService.WuHuanIDPPath;
#region
@@ -142,7 +134,7 @@ namespace BLL
/// 质量管理设计图纸
/// </summary>
/// <param name="projectId">项目Id</param>
/// <param name="startDate">获取指定日期之后到现在的异动数据</param>
/// <param name="startDate">获取指定时间之后到现在的异动数据</param>
public static void GetIDPProjectDesignDrawingData(string projectId = "", string startDate = "")
{
try
@@ -214,6 +206,7 @@ namespace BLL
newItem.DisplayProjectName = item.displayProjectName;
newItem.ProjectDeviceProcedureSubjectCode = item.projectDeviceProcedureSubjectCode;
newItem.WbsFullPath = item.wbsFullPath;
newItem.FormatFileCode = item.formatFileCode;
newItem.FormatFileName = item.formatFileName;
newItem.FileVersion = item.fileVersion;
newItem.MajorNo = item.majorNo;
@@ -246,7 +239,6 @@ namespace BLL
}
}
if (listAdd.Any())
{
AddIDP_DesignDrawing(listAdd);
@@ -292,6 +284,7 @@ namespace BLL
newItem.DisplayProjectName = obj.DisplayProjectName;
newItem.ProjectDeviceProcedureSubjectCode = obj.ProjectDeviceProcedureSubjectCode;
newItem.WbsFullPath = obj.WbsFullPath;
newItem.FormatFileCode = obj.FormatFileCode;
newItem.FormatFileName = obj.FormatFileName;
newItem.FileVersion = obj.FileVersion;
newItem.MajorNo = obj.MajorNo;
@@ -317,7 +310,7 @@ namespace BLL
/// <summary>
/// 接收保存数据
/// </summary>
/// <param name="newItem"></param>
/// <param name="items"></param>
public static string SaveDesignDrawingData(List<OADesignDrawingDataItem> items)
{
try
@@ -431,16 +424,4 @@ namespace BLL
#endregion
}
public class SessionItem
{
/// <summary>
/// value
/// </summary>
public string value { get; set; }
/// <summary>
/// name
/// </summary>
public string name { get; set; }
}
}