IDP设计图纸管理
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user