IDP质量设计图纸管理
This commit is contained in:
parent
c763312888
commit
9fd7ab5407
|
@ -0,0 +1,107 @@
|
|||
|
||||
|
||||
|
||||
--设计图纸管理
|
||||
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'A334796C-1D85-47F9-A9B2-E36BE49FADC2')
|
||||
BEGIN
|
||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
values('A334796C-1D85-47F9-A9B2-E36BE49FADC2','设计图纸管理','',100,'0','Menu_CQMS',0,0,1)
|
||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
values('13E3544E-AC56-48F9-9BC0-EB14EF4620FF','档案文件库','CQMS/DesignDrawing/ArchivesLib.aspx',10,'A334796C-1D85-47F9-A9B2-E36BE49FADC2','Menu_CQMS',0,1,1)
|
||||
END
|
||||
GO
|
||||
|
||||
|
||||
IF NOT EXISTS (SELECT * FROM Sys_ButtonToMenu WHERE MenuId = '13E3544E-AC56-48F9-9BC0-EB14EF4620FF')
|
||||
BEGIN
|
||||
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('54020202-29E6-4B9D-91A7-A2438DDCBD14','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','增加',1)
|
||||
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('F4F906B1-6DFD-440B-A515-0213BE7A3567','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','修改',2)
|
||||
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('5C5EE954-F1F6-4F56-B4B6-0C9AD5672A82','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','删除',3)
|
||||
insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
values('6621B07E-F6FA-4C8C-BECD-E684FBFCB49D','13E3544E-AC56-48F9-9BC0-EB14EF4620FF','保存',4)
|
||||
END
|
||||
GO
|
||||
|
||||
|
||||
--设计图纸管理表
|
||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'IDP_DesignDrawing') AND type = N'U')
|
||||
BEGIN
|
||||
CREATE TABLE [dbo].[IDP_DesignDrawing](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[idpfileId] [nvarchar](50) NULL,
|
||||
[stockId] [nvarchar](50) NULL,
|
||||
[thirdId] [nvarchar](50) NULL,
|
||||
[projectId] [nvarchar](50) NULL,
|
||||
[projectCode] [nvarchar](50) NULL,
|
||||
[displayProjectName] [nvarchar](500) NULL,
|
||||
[projectDeviceProcedureSubjectCode] [nvarchar](50) NULL,
|
||||
[wbsFullPath] [nvarchar](200) NULL,
|
||||
[formatFileCode] [nvarchar](50) NULL,
|
||||
[formatFileName] [nvarchar](200) NULL,
|
||||
[fileVersion] [nvarchar](50) NULL,
|
||||
[majorNo] [nvarchar](50) NULL,
|
||||
[status] [nvarchar](50) NULL,
|
||||
[designUserName] [nvarchar](50) NULL,
|
||||
[jiaoheUserName] [nvarchar](50) NULL,
|
||||
[shenheUserName] [nvarchar](50) NULL,
|
||||
[shendingUserName] [nvarchar](50) NULL,
|
||||
[majorResponsibleUserName] [nvarchar](50) NULL,
|
||||
[classificationLevelInProject] [nvarchar](50) NULL,
|
||||
[updateTime] [datetime] NULL,
|
||||
[remark] [nvarchar](500) NULL,
|
||||
[RdpId] [nvarchar](50) NULL,
|
||||
[fileid] [nvarchar](50) NULL,
|
||||
[upfileid] [nvarchar](50) NULL,
|
||||
[maintitle] [nvarchar](200) NULL,
|
||||
[doc_no] [nvarchar](50) NULL,
|
||||
[bc] [nvarchar](50) NULL,
|
||||
[archnumber] [nvarchar](50) NULL,
|
||||
[sendtime] [datetime] NULL,
|
||||
[printtime] [datetime] NULL,
|
||||
[ifmail] [nvarchar](50) NULL,
|
||||
CONSTRAINT [PK_IDP_DesignDrawing] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[id] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'idp文件主键fileId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'idpfileId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'推送批次id(IDPId)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'stockId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件网盘id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'thirdId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'projectId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主项目编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'projectCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目信息' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'displayProjectName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装工主编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'projectDeviceProcedureSubjectCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装工主名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'wbsFullPath'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'formatFileCode'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'formatFileName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版次' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'fileVersion'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'majorNo'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'发布状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'status'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'designUserName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'校核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'jiaoheUserName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审核人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'shenheUserName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'审定人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'shendingUserName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专业负责人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'majorResponsibleUserName'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'保密等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'classificationLevelInProject'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入库日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'updateTime'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'remark'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数字档案馆RdpId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'RdpId'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'盖章前文件id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'fileid'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'盖章后文件id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'upfileid'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'maintitle'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'文件编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'doc_no'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'版次' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'bc'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入库档案号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'archnumber'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'档案室验收日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'sendtime'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'蓝图打印日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'printtime'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'蓝图是否寄出(是、否)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing', @level2type=N'COLUMN',@level2name=N'ifmail'
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计图纸管理表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'IDP_DesignDrawing'
|
||||
END
|
||||
|
||||
GO
|
||||
|
||||
|
|
@ -178,6 +178,7 @@
|
|||
<Compile Include="Common\AttachFileService.cs" />
|
||||
<Compile Include="Common\CodeRecordsService.cs" />
|
||||
<Compile Include="Common\CommonService.cs" />
|
||||
<Compile Include="Common\HttpHelper.cs" />
|
||||
<Compile Include="Common\CreateQRCodeService.cs" />
|
||||
<Compile Include="Common\IDCardValid.cs" />
|
||||
<Compile Include="Common\NPOIExcel.cs" />
|
||||
|
@ -292,6 +293,7 @@
|
|||
<Compile Include="CQMS\Unqualified\WorkContactApproveService.cs" />
|
||||
<Compile Include="CQMS\Unqualified\WorkContactService.cs" />
|
||||
<Compile Include="CQMS\WBS\BreakdownProjectService.cs" />
|
||||
<Compile Include="CQMS\DesignDrawing\DesignDrawingService.cs" />
|
||||
<Compile Include="CQMS\WBS\BreakdownService.cs" />
|
||||
<Compile Include="CQMS\WBS\ControlItemAndCycleService.cs" />
|
||||
<Compile Include="CQMS\WBS\ControlItemInitService.cs" />
|
||||
|
|
|
@ -0,0 +1,90 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
using System.Web.UI.WebControls;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class DesignDrawingService
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 获取IDP文件
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<IDP_DesignDrawing> GetIDPDesignDrawingFile()
|
||||
{
|
||||
return (from x in Funs.DB.IDP_DesignDrawing select x).ToList();
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取IDP文件id
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<string> GetIDPDesignDrawingFileId()
|
||||
{
|
||||
return (from x in Funs.DB.IDP_DesignDrawing select x.IdpfileId).ToList();
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// 添加分项
|
||||
///// </summary>
|
||||
///// <param name="Installation"></param>
|
||||
//public static void AddBreakdown(Model.WBS_Breakdown breakdown)
|
||||
//{
|
||||
// Model.SGGLDB db = Funs.DB;
|
||||
// Model.WBS_Breakdown newBreakdown = new Model.WBS_Breakdown();
|
||||
|
||||
// newBreakdown.BreakdownId = breakdown.BreakdownId;
|
||||
// newBreakdown.BreakdownCode = breakdown.BreakdownCode;
|
||||
// newBreakdown.BreakdownName = breakdown.BreakdownName;
|
||||
// newBreakdown.DivisionId = breakdown.DivisionId;
|
||||
// newBreakdown.Basis = breakdown.Basis;
|
||||
// newBreakdown.CheckPoints = breakdown.CheckPoints;
|
||||
// newBreakdown.RecordAndCode = breakdown.RecordAndCode;
|
||||
// newBreakdown.Class = breakdown.Class;
|
||||
// newBreakdown.SortIndex = breakdown.SortIndex;
|
||||
// newBreakdown.Remark = breakdown.Remark;
|
||||
// newBreakdown.ModelURL = breakdown.ModelURL;
|
||||
// newBreakdown.IsAcceptance = breakdown.IsAcceptance;
|
||||
// newBreakdown.FenBao = breakdown.FenBao;
|
||||
// newBreakdown.WuHuan = breakdown.WuHuan;
|
||||
// newBreakdown.JianLi = breakdown.JianLi;
|
||||
// newBreakdown.YeZhu = breakdown.YeZhu;
|
||||
// newBreakdown.CheckAcceptType = breakdown.CheckAcceptType;
|
||||
|
||||
// db.WBS_Breakdown.InsertOnSubmit(newBreakdown);
|
||||
// db.SubmitChanges();
|
||||
//}
|
||||
|
||||
///// <summary>
|
||||
///// 修改分项
|
||||
///// </summary>
|
||||
///// <param name="breakdown"></param>
|
||||
//public static void UpdateBreakdown(Model.WBS_Breakdown breakdown)
|
||||
//{
|
||||
// Model.SGGLDB db = Funs.DB;
|
||||
// Model.WBS_Breakdown newBreakdown = db.WBS_Breakdown.First(e => e.BreakdownId == breakdown.BreakdownId);
|
||||
// newBreakdown.BreakdownCode = breakdown.BreakdownCode;
|
||||
// newBreakdown.BreakdownName = breakdown.BreakdownName;
|
||||
// newBreakdown.DivisionId = breakdown.DivisionId;
|
||||
// newBreakdown.Basis = breakdown.Basis;
|
||||
// newBreakdown.CheckPoints = breakdown.CheckPoints;
|
||||
// newBreakdown.RecordAndCode = breakdown.RecordAndCode;
|
||||
// newBreakdown.Class = breakdown.Class;
|
||||
// newBreakdown.SortIndex = breakdown.SortIndex;
|
||||
// newBreakdown.Remark = breakdown.Remark;
|
||||
// newBreakdown.ModelURL = breakdown.ModelURL;
|
||||
// newBreakdown.FenBao = breakdown.FenBao;
|
||||
// newBreakdown.WuHuan = breakdown.WuHuan;
|
||||
// newBreakdown.JianLi = breakdown.JianLi;
|
||||
// newBreakdown.YeZhu = breakdown.YeZhu;
|
||||
// newBreakdown.CheckAcceptType = breakdown.CheckAcceptType;
|
||||
// db.SubmitChanges();
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -3925,6 +3925,14 @@ namespace BLL
|
|||
public const string CheckListMenuId = "B3E99BD9-FDC7-4F15-8C3C-A7821AC9E306";
|
||||
#endregion
|
||||
|
||||
|
||||
#region 质量设计图纸管理
|
||||
/// <summary>
|
||||
/// 档案文件库
|
||||
/// </summary>
|
||||
public const string ArchivesLibMenuId = "13E3544E-AC56-48F9-9BC0-EB14EF4620FF";
|
||||
#endregion
|
||||
|
||||
#region 质量共检
|
||||
/// <summary>
|
||||
/// 质量共检
|
||||
|
|
|
@ -39,13 +39,13 @@ namespace BLL
|
|||
get;
|
||||
set;
|
||||
}
|
||||
public static Dictionary<string ,string >WebEditList= new Dictionary<string ,string >();
|
||||
public static Dictionary<string, string> WebEditList = new Dictionary<string, string>();
|
||||
|
||||
/// <summary>
|
||||
/// 数据库连接字符串
|
||||
/// </summary>
|
||||
private static string connString;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据库连结字符串。
|
||||
/// </summary>
|
||||
|
@ -294,7 +294,7 @@ namespace BLL
|
|||
DDL.Items.Insert(0, new FineUIPro.ListItem("- 请选择 -", BLL.Const._Null));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 为目标下拉框加上选择内容
|
||||
/// </summary>
|
||||
|
@ -623,11 +623,64 @@ namespace BLL
|
|||
Random rm = new Random(System.Environment.TickCount);
|
||||
if (dateTime.HasValue)
|
||||
{
|
||||
str= dateTime.Value.ToString("yyyyMMddhhmmss") + rm.Next(1000, 9999).ToString();
|
||||
str = dateTime.Value.ToString("yyyyMMddhhmmss") + rm.Next(1000, 9999).ToString();
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
#region 时间戳
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前时间的时间戳
|
||||
/// </summary>
|
||||
/// <param name="size">时间戳长度(默认10位)</param>
|
||||
/// <returns></returns>
|
||||
public static long GetNowTimeStamp(int size = 10)
|
||||
{
|
||||
long result = 0;
|
||||
// 获取当前时间
|
||||
DateTimeOffset now = DateTimeOffset.Now;
|
||||
// 获取Unix纪元时间(1970-01-01)到现在的时间间隔
|
||||
TimeSpan timeSpan = now - new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero);
|
||||
if (size == 13)
|
||||
{
|
||||
// 转换为长整型的毫秒数
|
||||
result = (long)timeSpan.TotalMilliseconds;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = (long)timeSpan.TotalSeconds;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定时间的时间戳
|
||||
/// </summary>
|
||||
/// <param name="dateOffset"></param>
|
||||
/// <param name="size"></param>
|
||||
/// <returns></returns>
|
||||
public static long GetDateTimeStamp(DateTimeOffset dateOffset, int size = 10)
|
||||
{
|
||||
long result = 0;
|
||||
DateTimeOffset epochStart = new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero);
|
||||
// 获取Unix纪元时间(1970-01-01)到现在的时间间隔
|
||||
TimeSpan timeSpan = dateOffset - epochStart;
|
||||
if (size == 13)
|
||||
{
|
||||
// 转换为长整型的毫秒数
|
||||
result = (long)timeSpan.TotalMilliseconds;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = (long)timeSpan.TotalSeconds;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 时间转换
|
||||
/// <summary>
|
||||
/// 输入文本转换时间类型
|
||||
|
@ -639,7 +692,7 @@ namespace BLL
|
|||
{
|
||||
if (!String.IsNullOrEmpty(time))
|
||||
{
|
||||
DateTime dateTime = DateTime.Parse(time);
|
||||
DateTime dateTime = DateTime.Parse(time);
|
||||
if (dateTime.Year > 1753 && dateTime.Year < 9999)
|
||||
{
|
||||
return dateTime;
|
||||
|
@ -950,7 +1003,7 @@ namespace BLL
|
|||
}
|
||||
|
||||
#region 获取大写金额事件
|
||||
public static string NumericCapitalization(decimal num)
|
||||
public static string NumericCapitalization(decimal num)
|
||||
{
|
||||
string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字
|
||||
string str2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; //数字位所对应的汉字
|
||||
|
@ -1081,7 +1134,7 @@ namespace BLL
|
|||
return str.ToArray();
|
||||
}
|
||||
|
||||
public static string GetStringByArray(string[] array)
|
||||
public static string GetStringByArray(string[] array)
|
||||
{
|
||||
string str = string.Empty;
|
||||
foreach (var item in array)
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using RestSharp;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class HttpHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// GET请求
|
||||
/// </summary>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="token"></param>
|
||||
/// <returns></returns>
|
||||
|
||||
public static string Get(string url, Dictionary<string, string> token)
|
||||
{
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
|
||||
|
||||
var client = new RestClient(url);
|
||||
client.Timeout = -1;
|
||||
var request = new RestRequest(Method.GET);
|
||||
if (token != null)
|
||||
{
|
||||
foreach (var item in token)
|
||||
{
|
||||
request.AddHeader(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
request.AddHeader("ClientId", SysConstSetService.ClientId);
|
||||
request.AddHeader("OperationCode", url.Substring(url.LastIndexOf("/", StringComparison.Ordinal) + 1));
|
||||
IRestResponse response = client.Execute(request);
|
||||
return response.Content;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// POST请求
|
||||
/// </summary>
|
||||
/// <param name="url"></param>
|
||||
/// <param name="token"></param>
|
||||
/// <param name="jsonBody"></param>
|
||||
/// <returns></returns>
|
||||
public static string Post(string url, Dictionary<string, string> token, string jsonBody)
|
||||
{
|
||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
||||
|
||||
var client = new RestClient(url);
|
||||
client.Timeout = -1;
|
||||
var request = new RestRequest(Method.POST);
|
||||
if (token != null)
|
||||
{
|
||||
foreach (var item in token)
|
||||
{
|
||||
request.AddHeader(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
request.AddHeader("ClientId", SysConstSetService.ClientId);
|
||||
request.AddHeader("OperationCode", url.Substring(url.LastIndexOf("/", StringComparison.Ordinal) + 1));
|
||||
if (!string.IsNullOrEmpty(jsonBody))
|
||||
{
|
||||
request.AddJsonBody(jsonBody);
|
||||
}
|
||||
|
||||
IRestResponse response = client.Execute(request);
|
||||
return response.Content;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
using Apache.NMS.ActiveMQ.Commands;
|
||||
using Aspose.Words.Lists;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
|
@ -8,20 +9,39 @@ 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
|
||||
{
|
||||
/// <summary>
|
||||
/// IDP平台接口服务
|
||||
/// </summary>
|
||||
public static class IDPDataService
|
||||
{
|
||||
/// <summary>
|
||||
/// 测试环境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 publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQChnc2YD0YzJPx6QTh+/n7XzjR1ugFzrsmPolJhpCfWMKrSGbT7iX/Kgcm1AI+T95K4Jzv3KS42QTecZ1ziJ4Rr9Luzw+9ZCSjMZgrmAUbY5IeBaA6GzaSk8UWHZ4n5PL+GUGq+2f+COL7+KCS2AxEpaqDZVrJrIfg/UektdgNyzwIDAQAB";
|
||||
//private static readonly string IDPApiUrl = SysConstSetService.WuHuanIDPPath;
|
||||
|
||||
#region 接口授权认证
|
||||
|
||||
/// <summary>
|
||||
/// 加密公钥
|
||||
/// </summary>
|
||||
private static readonly string publicKey = "<RSAKeyValue><Modulus>g1sk7Xtc1TJouHdY4+FAe5atGCu2n17NhoKVDV57pki1IL+9+S7BY4gxAjmMkUU2/cbCCdbPoUJLBrCBCjX7yI3UJW6FZwQWkn3kVoeulLEwdPCIq/GUjMXaWf3Iaaad5wBUFbfXAzv15VN6z48Nt1IY/O8YEzhIpuZdtEgDdos=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>";
|
||||
//private static readonly string publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQChnc2YD0YzJPx6QTh+/n7XzjR1ugFzrsmPolJhpCfWMKrSGbT7iX/Kgcm1AI+T95K4Jzv3KS42QTecZ1ziJ4Rr9Luzw+9ZCSjMZgrmAUbY5IeBaA6GzaSk8UWHZ4n5PL+GUGq+2f+COL7+KCS2AxEpaqDZVrJrIfg/UektdgNyzwIDAQAB";
|
||||
|
||||
/// <summary>
|
||||
/// 第三方加密认证接口
|
||||
|
@ -30,48 +50,60 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
public static SessionItem GetAuthenticationSession()
|
||||
{
|
||||
//// 创建RSA加密服务提供者
|
||||
////using (RSA rsa = RSA.Create())
|
||||
//using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider())
|
||||
//{
|
||||
//// 获取公钥false表示只导出公钥
|
||||
//string publicKey = rsa.ToXmlString(false);
|
||||
//// 获取私钥true表示导出公钥和私钥
|
||||
//string privateKey = rsa.ToXmlString(true);
|
||||
|
||||
SessionItem session = new SessionItem();
|
||||
|
||||
////用户名加密
|
||||
//string encryptedUsername = EncryptData("dataviewer", publicKey);
|
||||
////密码加密
|
||||
//string encryptedPassword = EncryptData("a3365$!", publicKey);
|
||||
|
||||
//用户名加密后的密文
|
||||
string encryptedUsername = "k0N0tx/hfRPY0v2lq1G8eH6hCO+UiMqlSZi1PD6bhGf4YpP/koJq5hfMsDSzdn3dZjzExrwyrjFWp/1jZLde0+gRbQ0D7tzm0R5D6AmriodD2cJvrEiwtDy7SeGNloSaNmpTEMuycpuueiOeGhMkKnTwWfRkEw73lxEpTmaahq4=";
|
||||
//密码加密后的密文
|
||||
string encryptedPassword = "HLLroiNJJzyTWJt9td1xgChbVzyQkoxWCGGXqdwI2cvlUF/A30FAPaInszSwEhNRQlJZZ01EODElemkgv36DMF+XGwfDi0BfIq9jKG+/+wq0TVOHNhiu2NPzpn5Ji2X3yXIXpH1zv6XEtkvx/qiLToZYfRQCufsl5vH1cZxk2fQ=";
|
||||
|
||||
string url = $"{IDPApiUrl}UAMS/authEncrypt";
|
||||
string contenttype = "application/json;charset=utf-8";
|
||||
var body = new
|
||||
try
|
||||
{
|
||||
encryptedUsername = encryptedUsername,
|
||||
encryptedPassword = encryptedPassword
|
||||
};
|
||||
//// 创建RSA加密服务提供者
|
||||
////using (RSA rsa = RSA.Create())
|
||||
//using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider())
|
||||
//{
|
||||
//// 获取公钥false表示只导出公钥
|
||||
//string publicKey = rsa.ToXmlString(false);
|
||||
//// 获取私钥true表示导出公钥和私钥
|
||||
//string privateKey = rsa.ToXmlString(true);
|
||||
|
||||
string pushContent = JsonConvert.SerializeObject(body);
|
||||
//var returndata = BLL.APIGetHttpService.OutsideHttp(url, "POST", null, null, pushContent);
|
||||
string strJosn = APIGetHttpService.Http(url, "POST", contenttype, null, pushContent);
|
||||
JObject obj = JObject.Parse(strJosn);
|
||||
if (!string.IsNullOrEmpty(strJosn))
|
||||
|
||||
////用户名加密
|
||||
//string encryptedUsername = EncryptData("dataviewer", publicKey);
|
||||
////密码加密
|
||||
//string encryptedPassword = EncryptData("a3365$!", publicKey);
|
||||
|
||||
//用户名加密后的密文
|
||||
string encryptedUsername = "k0N0tx/hfRPY0v2lq1G8eH6hCO+UiMqlSZi1PD6bhGf4YpP/koJq5hfMsDSzdn3dZjzExrwyrjFWp/1jZLde0+gRbQ0D7tzm0R5D6AmriodD2cJvrEiwtDy7SeGNloSaNmpTEMuycpuueiOeGhMkKnTwWfRkEw73lxEpTmaahq4=";
|
||||
//密码加密后的密文
|
||||
string encryptedPassword = "HLLroiNJJzyTWJt9td1xgChbVzyQkoxWCGGXqdwI2cvlUF/A30FAPaInszSwEhNRQlJZZ01EODElemkgv36DMF+XGwfDi0BfIq9jKG+/+wq0TVOHNhiu2NPzpn5Ji2X3yXIXpH1zv6XEtkvx/qiLToZYfRQCufsl5vH1cZxk2fQ=";
|
||||
|
||||
string url = $"{IDPApiUrl}UAMS/authEncrypt";
|
||||
//string url = $"http://10.5.6.151:8100/UAMS/authEncrypt";
|
||||
string contenttype = "application/json;charset=utf-8";
|
||||
var body = new
|
||||
{
|
||||
encryptedUsername = encryptedUsername,
|
||||
encryptedPassword = encryptedPassword
|
||||
};
|
||||
|
||||
string pushContent = JsonConvert.SerializeObject(body);
|
||||
string strJosn = APIGetHttpService.Http(url, "POST", contenttype, null, pushContent);
|
||||
//string strJosn = HttpHelper.Post(url, null, pushContent);
|
||||
JObject obj = JObject.Parse(strJosn);
|
||||
if (!string.IsNullOrEmpty(strJosn))
|
||||
{
|
||||
string value = obj["value"].ToString();
|
||||
string name = obj["name"].ToString();
|
||||
session.value = value;
|
||||
session.name = name;
|
||||
}
|
||||
//}
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
string value = obj["value"].ToString();
|
||||
string name = obj["name"].ToString();
|
||||
session.value = value;
|
||||
session.name = name;
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
}
|
||||
return session;
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -100,6 +132,245 @@ namespace BLL
|
|||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 质量管理设计图纸
|
||||
|
||||
#region IDP
|
||||
|
||||
/// <summary>
|
||||
/// 质量管理设计图纸
|
||||
/// </summary>
|
||||
/// <param name="projectId">项目Id</param>
|
||||
/// <param name="startDate">获取指定日期之后到现在的异动数据</param>
|
||||
public static void GetIDPProjectDesignDrawingData(string projectId = "", string startDate = "")
|
||||
{
|
||||
try
|
||||
{
|
||||
//五环主数据项目Code
|
||||
string projectCode = string.Empty;
|
||||
if (!string.IsNullOrWhiteSpace(projectId))
|
||||
{//根据施工平台项目Id获取主数据项目Code
|
||||
var getPro = ProjectService.GetProjectByProjectId(projectId);
|
||||
projectCode = getPro.ProjectCode;
|
||||
}
|
||||
|
||||
string timeStampStr = string.Empty;
|
||||
if (!string.IsNullOrWhiteSpace(startDate))
|
||||
{
|
||||
string format = "yyyy-MM-dd";
|
||||
DateTimeOffset dateTimeOffset = DateTimeOffset.ParseExact(startDate, format, CultureInfo.InvariantCulture);
|
||||
long timeStamp = Funs.GetDateTimeStamp(dateTimeOffset, 13);
|
||||
timeStampStr = timeStamp.ToString();
|
||||
}
|
||||
|
||||
var session = GetAuthenticationSession();
|
||||
//ErrLogInfo.WriteLog($"【Session】name:{session.name};value:{session.value}");
|
||||
Hashtable newToken = new Hashtable { { "Cookie", $"{session.name}={session.value}" } };
|
||||
|
||||
List<IDP_DesignDrawing> listAdd = new List<IDP_DesignDrawing>();
|
||||
List<IDP_DesignDrawing> listModify = new List<IDP_DesignDrawing>();
|
||||
|
||||
int pageSize = 1000;//一次性最多返回1000条数据
|
||||
int maxPageNum = 100;
|
||||
List<string> idpFileIds = DesignDrawingService.GetIDPDesignDrawingFileId();
|
||||
List<IDP_DesignDrawing> idpFiles = DesignDrawingService.GetIDPDesignDrawingFile();
|
||||
for (int pageNum = 1; pageNum < 100000; pageNum++)
|
||||
{
|
||||
if (pageNum > maxPageNum) { break; }
|
||||
string url = $"{IDPApiUrl}EDC/third/workitems?pageNum={pageNum}&pageSize={pageSize}";
|
||||
if (!string.IsNullOrWhiteSpace(timeStampStr)) { url = $"{url}&lastTimestamp={timeStampStr}"; }
|
||||
if (!string.IsNullOrWhiteSpace(projectCode)) { url = $"{url}&projectCode={projectCode}"; }
|
||||
|
||||
var returndata = BLL.APIGetHttpService.OutsideHttp(url, "GET", null, newToken, null);
|
||||
if (!string.IsNullOrEmpty(returndata))
|
||||
{
|
||||
IDPDesignDrawingResponseData responseData = IDPDesignDrawingResponseData.FromJson(returndata);
|
||||
maxPageNum = responseData.page.pages;
|
||||
foreach (var item in responseData.page.results)
|
||||
{
|
||||
IDP_DesignDrawing newItem = new IDP_DesignDrawing();
|
||||
if (!string.IsNullOrWhiteSpace(projectId))
|
||||
{
|
||||
newItem.ProjectId = projectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(item.projectCode))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var getProject = ProjectService.GetProjectByProjectCode(item.projectCode);
|
||||
if (getProject == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
newItem.ProjectId = getProject.ProjectId;
|
||||
}
|
||||
newItem.IdpfileId = item.fileId;
|
||||
newItem.StockId = item.stockId;
|
||||
newItem.ThirdId = item.thirdId;
|
||||
newItem.ProjectCode = item.projectCode;
|
||||
newItem.DisplayProjectName = item.displayProjectName;
|
||||
newItem.ProjectDeviceProcedureSubjectCode = item.projectDeviceProcedureSubjectCode;
|
||||
newItem.WbsFullPath = item.wbsFullPath;
|
||||
newItem.FormatFileName = item.formatFileName;
|
||||
newItem.FileVersion = item.fileVersion;
|
||||
newItem.MajorNo = item.majorNo;
|
||||
newItem.Status = item.status;
|
||||
newItem.DesignUserName = item.designUserName;
|
||||
newItem.JiaoheUserName = item.jiaoheUserName;
|
||||
newItem.ShenheUserName = item.shenheUserName;
|
||||
newItem.ShendingUserName = item.shendingUserName;
|
||||
newItem.MajorResponsibleUserName = item.majorResponsibleUserName;
|
||||
newItem.ClassificationLevelInProject = item.classificationLevelInProject;
|
||||
newItem.UpdateTime = item.updateTime;
|
||||
newItem.Remark = item.remark;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(item.fileId) && idpFileIds.Contains(item.fileId))
|
||||
{//编辑
|
||||
newItem.Id = idpFiles.Where(x => x.IdpfileId == item.fileId).FirstOrDefault().Id;
|
||||
listModify.Add(newItem);
|
||||
}
|
||||
else
|
||||
{//新增
|
||||
newItem.Id = SQLHelper.GetNewID(typeof(IDP_DesignDrawing));
|
||||
listAdd.Add(newItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (listAdd.Any())
|
||||
{
|
||||
AddIDP_DesignDrawing(listAdd);
|
||||
}
|
||||
if (listModify.Any())
|
||||
{
|
||||
ModifyIDP_DesignDrawing(listModify);
|
||||
}
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量插入数据
|
||||
/// </summary>
|
||||
/// <param name="list"></param>
|
||||
public static void AddIDP_DesignDrawing(List<Model.IDP_DesignDrawing> list)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
db.IDP_DesignDrawing.InsertAllOnSubmit(list);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新数据
|
||||
/// </summary>
|
||||
/// <param name="list"></param>
|
||||
public static void ModifyIDP_DesignDrawing(List<Model.IDP_DesignDrawing> list)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
foreach (var obj in list)
|
||||
{
|
||||
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.Id == obj.Id);
|
||||
if (newItem != null)
|
||||
{
|
||||
newItem.StockId = obj.StockId;
|
||||
newItem.ThirdId = obj.ThirdId;
|
||||
newItem.ProjectId = obj.ProjectId;
|
||||
newItem.ProjectCode = obj.ProjectCode;
|
||||
newItem.DisplayProjectName = obj.DisplayProjectName;
|
||||
newItem.ProjectDeviceProcedureSubjectCode = obj.ProjectDeviceProcedureSubjectCode;
|
||||
newItem.WbsFullPath = obj.WbsFullPath;
|
||||
newItem.FormatFileName = obj.FormatFileName;
|
||||
newItem.FileVersion = obj.FileVersion;
|
||||
newItem.MajorNo = obj.MajorNo;
|
||||
newItem.Status = obj.Status;
|
||||
newItem.DesignUserName = obj.DesignUserName;
|
||||
newItem.JiaoheUserName = obj.JiaoheUserName;
|
||||
newItem.ShenheUserName = obj.ShenheUserName;
|
||||
newItem.ShendingUserName = obj.ShendingUserName;
|
||||
newItem.MajorResponsibleUserName = obj.MajorResponsibleUserName;
|
||||
newItem.ClassificationLevelInProject = obj.ClassificationLevelInProject;
|
||||
newItem.UpdateTime = obj.UpdateTime;
|
||||
newItem.Remark = obj.Remark;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 数字档案馆
|
||||
|
||||
/// <summary>
|
||||
/// 接收保存数据
|
||||
/// </summary>
|
||||
/// <param name="newItem"></param>
|
||||
public static string SaveDesignDrawingData(OADesignDrawingData newItems)
|
||||
{
|
||||
try
|
||||
{
|
||||
string message = string.Empty;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
foreach (var item in newItems.DataItems)
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(item.RdpId))
|
||||
{
|
||||
IDP_DesignDrawing newItem = db.IDP_DesignDrawing.FirstOrDefault(x => x.StockId == item.RdpId);
|
||||
if (newItem != null)
|
||||
{
|
||||
newItem.RdpId = item.RdpId;
|
||||
newItem.Fileid = item.fileid;
|
||||
newItem.Upfileid = item.upfileid;
|
||||
newItem.Maintitle = item.maintitle;
|
||||
newItem.Doc_no = item.doc_no;
|
||||
newItem.Bc = item.bc;
|
||||
newItem.Archnumber = item.archnumber;
|
||||
newItem.Sendtime = item.sendtime;
|
||||
newItem.Printtime = item.printtime;
|
||||
newItem.Ifmail = item.ifmail;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
return ex.Message;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region 试车工作包
|
||||
|
||||
/// <summary>
|
||||
/// 获取工作包结构化数据
|
||||
|
@ -114,6 +385,9 @@ namespace BLL
|
|||
//string url = $"{IDPApiUrl}/OSS/projects/{projectId}/wbs/{wbsCode}/workitems/{workitemCode}/objects/latest";
|
||||
string url = $"{IDPApiUrl}/OSS/projects/9100168/wbs/000000/workitems/CP2100/objects/latest";
|
||||
|
||||
|
||||
//测试环境接口地址
|
||||
var testApiUrl = "http://10.5.6.151:8100/OSS/projects/9100168/wbs/000000/workitems/CP2100/objects/latest";
|
||||
try
|
||||
{
|
||||
var session = GetAuthenticationSession();
|
||||
|
@ -131,7 +405,6 @@ namespace BLL
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -153,6 +426,7 @@ namespace BLL
|
|||
//}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ namespace BLL
|
|||
string data = string.Empty;
|
||||
string rows = string.Empty;
|
||||
|
||||
List<Model.PMP_Project> list = new List<PMP_Project>();
|
||||
List<PMP_Project> list = new List<PMP_Project>();
|
||||
|
||||
int pageSize = 1000;//一次性最多返回1000条数据
|
||||
List<PMPSearchCondData> searchCond = new List<PMPSearchCondData>();
|
||||
|
|
|
@ -0,0 +1,170 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ArchivesLib.aspx.cs" Inherits="FineUIPro.Web.CQMS.DesignDrawing.ArchivesLib" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<script src="../../Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||||
<title>档案文件库</title>
|
||||
<style type="text/css">
|
||||
.labcenter {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.f-grid-row .f-grid-cell-inner {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.LabelColor {
|
||||
color: Red;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.Green {
|
||||
background-color: Green;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.Yellow {
|
||||
background-color: #FFFF93;
|
||||
}
|
||||
|
||||
.Red {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.LightGreen {
|
||||
background-color: LightGreen
|
||||
}
|
||||
|
||||
.f-grid-colheader-text {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="档案文件库" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true"
|
||||
ClicksToEdit="2" DataIDField="Id" AllowSorting="true" SortField="updateTime"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" ForceFit="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" AllowFilters="true"
|
||||
OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<%--<f:DropDownList ID="drpSponsorUnit" runat="server" Label="施工单位" EnableEdit="true" EmptyText="请选择查询条件"
|
||||
LabelAlign="right">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpUnitWork" runat="server" Label="单位工程" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpQuestionType" runat="server" Label="问题类别" Width="210px" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>--%>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnQuery" OnClick="btnQuery_Click" ToolTip="查询" Icon="SystemSearch" EnablePostBack="true" runat="server">
|
||||
</f:Button>
|
||||
<%--<f:Button ID="btnRset" OnClick="btnRset_Click" ToolTip="重置" Icon="ArrowUndo" EnablePostBack="true" runat="server">
|
||||
</f:Button>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" runat="server"
|
||||
Hidden="true">
|
||||
</f:Button>--%>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="120px" ColumnID="projectDeviceProcedureSubjectCode" DataField="projectDeviceProcedureSubjectCode"
|
||||
SortField="UnitWorkName" FieldType="String" HeaderText="装工主编码" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="wbsFullPath" DataField="wbsFullPath"
|
||||
FieldType="String" HeaderText="装工主名称" TextAlign="Left"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="80px" ColumnID="formatFileCode" DataField="formatFileCode"
|
||||
FieldType="String" HeaderText="文件编码" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="formatFileName" DataField="formatFileName"
|
||||
FieldType="String" HeaderText="文件名称" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="fileVersion" DataField="fileVersion"
|
||||
FieldType="String" HeaderText="版次" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="majorNo" DataField="majorNo"
|
||||
FieldType="String" HeaderText="专业" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="status" DataField="status"
|
||||
FieldType="String" HeaderText="发布状态" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="140px" ColumnID="updateTime" DataField="updateTime"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd HH:mm:ss" HeaderText="入库日期" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<%-- <Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>--%>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
<f:ListItem Text="所有行" Value="100000" />
|
||||
</f:DropDownList>
|
||||
<f:ToolbarFill runat="server">
|
||||
</f:ToolbarFill>
|
||||
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="设计图纸管理" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1300px" Height="660px">
|
||||
</f:Window>
|
||||
<%-- <f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
|
||||
OnClick="btnMenuModify_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons"
|
||||
OnClick="btnMenuView_Click">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
|
||||
OnClick="btnMenuDel_Click">
|
||||
</f:MenuButton>
|
||||
</Items>
|
||||
</f:Menu>--%>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
<%-- var menuID = '<%= Menu1.ClientID %>';
|
||||
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}--%>
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,281 @@
|
|||
using BLL;
|
||||
using FineUIPro.Web.DataShow;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NPOI.SS.UserModel;
|
||||
|
||||
namespace FineUIPro.Web.CQMS.DesignDrawing
|
||||
{
|
||||
public partial class ArchivesLib : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 项目id
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
GetButtonPower();
|
||||
////权限按钮方法
|
||||
//UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpSponsorUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);
|
||||
//UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true);
|
||||
//CNProfessionalService.InitCNProfessionalDownList(drpCNProfessional, true);
|
||||
//QualityQuestionTypeService.InitQualityQuestionTypeDownList(drpQuestionType, true);
|
||||
//Funs.FineUIPleaseSelect(this.dpHandelStatus);
|
||||
//btnNew.OnClientClick = Window1.GetShowReference("ChecklistEdit.aspx") + "return false;";
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
//if (ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.CurrUser.LoginProjectId, CurrUser.UnitId))
|
||||
//{
|
||||
// drpSponsorUnit.SelectedValue = CurrUser.UnitId;
|
||||
// drpSponsorUnit.Readonly = true;
|
||||
//}
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
protected DataTable ChecklistData()
|
||||
{
|
||||
string strSql = $@"SELECT * FROM IDP_DesignDrawing as lib
|
||||
WHERE lib.ProjectId=@ProjectId
|
||||
";
|
||||
//ORDER BY lib.updatetime DESC
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
//strSql += " AND (chec.CheckDate>=@startTime or @startTime='') and (chec.CheckDate<=@endTime or @endTime='') ";
|
||||
//listStr.Add(new SqlParameter("@startTime", !string.IsNullOrEmpty(txtStartTime.Text.Trim()) ? txtStartTime.Text.Trim() + " 00:00:00" : ""));
|
||||
//listStr.Add(new SqlParameter("@endTime", !string.IsNullOrEmpty(txtEndTime.Text.Trim()) ? txtEndTime.Text.Trim() + " 23:59:59" : ""));
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
return tb;
|
||||
}
|
||||
|
||||
//public string Convertstatus(Object code)
|
||||
//{
|
||||
// Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(code.ToString());
|
||||
// if (checkControl.State.Equals("5") || checkControl.State.Equals("6"))
|
||||
// {
|
||||
// return "未确认";
|
||||
// }
|
||||
// else if (checkControl.State == Const.CheckControl_Complete)
|
||||
// { //闭环
|
||||
// return "已闭环";
|
||||
// }
|
||||
// //else if( checkControl.LimitDate> )
|
||||
// else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //延期未整改
|
||||
// {
|
||||
// return "超期未整改";
|
||||
|
||||
// }
|
||||
// else //期内未整改
|
||||
// {
|
||||
// return "未整改";
|
||||
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
|
||||
public void BindGrid()
|
||||
{
|
||||
DataTable tb = ChecklistData();
|
||||
|
||||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
|
||||
//for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
//{
|
||||
// string rowID = Grid1.Rows[i].DataKeys[0].ToString();
|
||||
// if (rowID.Count() > 0)
|
||||
// {
|
||||
// Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(rowID);
|
||||
// if (checkControl.State.Equals("5") || checkControl.State.Equals("6"))
|
||||
// {
|
||||
// Grid1.Rows[i].CellCssClasses[11] = "LightGreen";//未确认
|
||||
// }
|
||||
// else if (checkControl.State == Const.CheckControl_Complete)
|
||||
// { //闭环
|
||||
// Grid1.Rows[i].CellCssClasses[11] = "Green";
|
||||
|
||||
// }
|
||||
// else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //延期未整改
|
||||
// {
|
||||
// Grid1.Rows[i].CellCssClasses[11] = "Red";
|
||||
// }
|
||||
// else //期内未整改
|
||||
// {
|
||||
// Grid1.Rows[i].CellCssClasses[11] = " Yellow ";
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
if (Request.Params["value"] == "0")
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.ArchivesLibMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
//if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
//{
|
||||
// this.btnNew.Hidden = false;
|
||||
|
||||
//}
|
||||
//if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
//{
|
||||
// this.btnMenuModify.Hidden = false;
|
||||
//}
|
||||
//if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
//{
|
||||
// this.btnMenuDel.Hidden = false;
|
||||
//}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
|
||||
protected void btnQuery_Click(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 过滤表头、排序、分页、关闭窗口
|
||||
/// <summary>
|
||||
/// 过滤表头
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_FilterChange(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
//Grid1.SortDirection = e.SortDirection;
|
||||
//Grid1.SortField = e.SortField;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭弹出窗
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Grid双击事件
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
//btnMenuModify_Click(null, null);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 编辑
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.CQMS.DesignDrawing
|
||||
{
|
||||
|
||||
|
||||
public partial class ArchivesLib
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnQuery 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnQuery;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
}
|
||||
}
|
|
@ -577,6 +577,7 @@
|
|||
<Content Include="CQMS\DataBase\StartWorkEdit.aspx" />
|
||||
<Content Include="CQMS\DataBase\WBS2FileEdit.aspx" />
|
||||
<Content Include="CQMS\DataBase\WBSFileEdit.aspx" />
|
||||
<Content Include="CQMS\DesignDrawing\ArchivesLib.aspx" />
|
||||
<Content Include="CQMS\Foreign\ControlPointCheck.aspx" />
|
||||
<Content Include="CQMS\Foreign\ControlPointCheckEdit.aspx" />
|
||||
<Content Include="CQMS\Foreign\ControlPointList.aspx" />
|
||||
|
@ -8481,6 +8482,13 @@
|
|||
<Compile Include="CQMS\DataBase\WBSFileEdit.aspx.designer.cs">
|
||||
<DependentUpon>WBSFileEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CQMS\DesignDrawing\ArchivesLib.aspx.cs">
|
||||
<DependentUpon>ArchivesLib.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="CQMS\DesignDrawing\ArchivesLib.aspx.designer.cs">
|
||||
<DependentUpon>ArchivesLib.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CQMS\Foreign\ControlPointCheck.aspx.cs">
|
||||
<DependentUpon>ControlPointCheck.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -68,4 +68,6 @@
|
|||
<TreeNode id="888962E7-EF4E-43C7-B835-BAE0249DCA3F" Text="施工绩效审批打分" NavigateUrl="CQMS/Performance/PerformanceAudit.aspx"></TreeNode>
|
||||
<TreeNode id="753BED05-3B04-43F3-9D97-1534C581A49F" Text="施工绩效设置" NavigateUrl="CQMS/Performance/PerformanceConfig.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="A334796C-1D85-47F9-A9B2-E36BE49FADC2" Text="设计图纸管理" NavigateUrl=""><TreeNode id="13E3544E-AC56-48F9-9BC0-EB14EF4620FF" Text="档案文件库" NavigateUrl="CQMS/DesignDrawing/ArchivesLib.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -0,0 +1,247 @@
|
|||
// <auto-generated />
|
||||
//
|
||||
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
|
||||
//
|
||||
// using Model;
|
||||
//
|
||||
// var response = Response.FromJson(jsonString);
|
||||
|
||||
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// IDP设计图纸接口返回参数
|
||||
/// </summary>
|
||||
public partial class IDPDesignDrawingResponseData
|
||||
{
|
||||
///// <summary>
|
||||
///// 返回状态
|
||||
///// </summary>
|
||||
//[JsonProperty("code")]
|
||||
//public int code { get; set; }
|
||||
///// <summary>
|
||||
///// 返回消息
|
||||
///// </summary>
|
||||
//[JsonProperty("msg")]
|
||||
//public string msg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回数据结果对象
|
||||
/// </summary>
|
||||
[JsonProperty("page")]
|
||||
public IDPDesignDrawingPageData page { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据结果对象
|
||||
/// </summary>
|
||||
public partial class IDPDesignDrawingPageData
|
||||
{
|
||||
/// <summary>
|
||||
/// 当前查询页码
|
||||
/// </summary>
|
||||
[JsonProperty("pageNum")]
|
||||
public int pageNum { get; set; }
|
||||
/// <summary>
|
||||
/// 当前查询每页条数
|
||||
/// </summary>
|
||||
[JsonProperty("pageSize")]
|
||||
public int pageSize { get; set; }
|
||||
/// <summary>
|
||||
/// 本页查询获取数量
|
||||
/// </summary>
|
||||
[JsonProperty("size")]
|
||||
public int size { get; set; }
|
||||
/// <summary>
|
||||
/// 总数
|
||||
/// </summary>
|
||||
[JsonProperty("total")]
|
||||
public int total { get; set; }
|
||||
/// <summary>
|
||||
/// 总页码
|
||||
/// </summary>
|
||||
[JsonProperty("pages")]
|
||||
public int pages { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回设计图纸数据结果对象
|
||||
/// </summary>
|
||||
[JsonProperty("results")]
|
||||
public System.Collections.Generic.List<IDPDesignDrawing> results { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// IDP设计图纸
|
||||
/// </summary>
|
||||
public partial class IDPDesignDrawing
|
||||
{
|
||||
/// <summary>
|
||||
/// IDP文件ID
|
||||
/// </summary>
|
||||
[JsonProperty("fileId")]
|
||||
public string fileId { get; set; }
|
||||
/// <summary>
|
||||
/// IDP主键推送批次id:stockId
|
||||
/// </summary>
|
||||
[JsonProperty("stockId")]
|
||||
public string stockId { get; set; }
|
||||
/// <summary>
|
||||
/// 文件网盘id
|
||||
/// </summary>
|
||||
[JsonProperty("thirdId")]
|
||||
public string thirdId { get; set; }
|
||||
/// <summary>
|
||||
/// 主项目编号
|
||||
/// </summary>
|
||||
[JsonProperty("projectCode")]
|
||||
public string projectCode { get; set; }
|
||||
/// <summary>
|
||||
/// 项目信息
|
||||
/// </summary>
|
||||
[JsonProperty("displayProjectName")]
|
||||
public string displayProjectName { get; set; }
|
||||
/// <summary>
|
||||
/// 装工主编码
|
||||
/// </summary>
|
||||
[JsonProperty("projectDeviceProcedureSubjectCode")]
|
||||
public string projectDeviceProcedureSubjectCode { get; set; }
|
||||
/// <summary>
|
||||
/// 装工主名称
|
||||
/// </summary>
|
||||
[JsonProperty("wbsFullPath")]
|
||||
public string wbsFullPath { get; set; }
|
||||
/// <summary>
|
||||
/// 文件编码
|
||||
/// </summary>
|
||||
[JsonProperty("formatFileCode")]
|
||||
public string formatFileCode { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
[JsonProperty("formatFileName")]
|
||||
public string formatFileName { get; set; }
|
||||
/// <summary>
|
||||
/// 版次
|
||||
/// </summary>
|
||||
[JsonProperty("fileVersion")]
|
||||
public string fileVersion { get; set; }
|
||||
/// <summary>
|
||||
/// 专业
|
||||
/// </summary>
|
||||
[JsonProperty("majorNo")]
|
||||
public string majorNo { get; set; }
|
||||
/// <summary>
|
||||
/// 发布状态
|
||||
/// </summary>
|
||||
[JsonProperty("status")]
|
||||
public string status { get; set; }
|
||||
/// <summary>
|
||||
/// 设计人
|
||||
/// </summary>
|
||||
[JsonProperty("designUserName")]
|
||||
public string designUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 校核人
|
||||
/// </summary>
|
||||
[JsonProperty("jiaoheUserName")]
|
||||
public string jiaoheUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 审核人
|
||||
/// </summary>
|
||||
[JsonProperty("shenheUserName")]
|
||||
public string shenheUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 审定人
|
||||
/// </summary>
|
||||
[JsonProperty("shendingUserName")]
|
||||
public string shendingUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 专业负责人
|
||||
/// </summary>
|
||||
[JsonProperty("majorResponsibleUserName")]
|
||||
public string majorResponsibleUserName { get; set; }
|
||||
/// <summary>
|
||||
/// 保密等级
|
||||
/// </summary>
|
||||
[JsonProperty("classificationLevelInProject")]
|
||||
public string classificationLevelInProject { get; set; }
|
||||
/// <summary>
|
||||
/// 入库日期
|
||||
/// </summary>
|
||||
[JsonProperty("updateTime")]
|
||||
public DateTime? updateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[JsonProperty("remark")]
|
||||
public string remark { get; set; }
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// 数字档案馆RdpId
|
||||
///// </summary>
|
||||
//[JsonProperty("RdpId")]
|
||||
//public string RdpId { get; set; }
|
||||
///// <summary>
|
||||
///// 盖章前文件id
|
||||
///// </summary>
|
||||
//[JsonProperty("fileid")]
|
||||
//public string fileid { get; set; }
|
||||
///// <summary>
|
||||
///// 盖章后文件id
|
||||
///// </summary>
|
||||
//[JsonProperty("upfileid")]
|
||||
//public string upfileid { get; set; }
|
||||
///// <summary>
|
||||
///// 文件名称
|
||||
///// </summary>
|
||||
//[JsonProperty("maintitle")]
|
||||
//public string maintitle { get; set; }
|
||||
///// <summary>
|
||||
///// 文件编号
|
||||
///// </summary>
|
||||
//[JsonProperty("doc_no")]
|
||||
//public string doc_no { get; set; }
|
||||
///// <summary>
|
||||
///// 版次
|
||||
///// </summary>
|
||||
//[JsonProperty("bc")]
|
||||
//public string bc { get; set; }
|
||||
///// <summary>
|
||||
///// 入库档案号
|
||||
///// </summary>
|
||||
//[JsonProperty("archnumber")]
|
||||
//public string archnumber { get; set; }
|
||||
///// <summary>
|
||||
///// 档案室验收日期
|
||||
///// </summary>
|
||||
//[JsonProperty("sendtime")]
|
||||
//public DateTime? sendtime { get; set; }
|
||||
///// <summary>
|
||||
///// 蓝图打印日期
|
||||
///// </summary>
|
||||
//[JsonProperty("printtime")]
|
||||
//public DateTime? printtime { get; set; }
|
||||
///// <summary>
|
||||
///// 蓝图是否寄出(是、否)
|
||||
///// </summary>
|
||||
//[JsonProperty("ifmail")]
|
||||
//public string ifmail { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public partial class IDPDesignDrawingResponseData
|
||||
{
|
||||
public static IDPDesignDrawingResponseData FromJson(string json)
|
||||
{
|
||||
return JsonConvert.DeserializeObject<IDPDesignDrawingResponseData>(json, Model.Converter.Settings);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
// <auto-generated />
|
||||
//
|
||||
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
|
||||
//
|
||||
// using Model;
|
||||
//
|
||||
// var response = Response.FromJson(jsonString);
|
||||
|
||||
|
||||
namespace Model
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
/// <summary>
|
||||
/// OA设计图纸接收参数
|
||||
/// </summary>
|
||||
public partial class OADesignDrawingData
|
||||
{
|
||||
/// <summary>
|
||||
/// OA设计图纸数据项集合
|
||||
/// </summary>
|
||||
public List<OADesignDrawingDataItem> DataItems
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据结果对象
|
||||
/// </summary>
|
||||
public partial class OADesignDrawingDataItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 数字档案馆RdpId
|
||||
/// </summary>
|
||||
[JsonProperty("RdpId")]
|
||||
public string RdpId { get; set; }
|
||||
/// <summary>
|
||||
/// 盖章前文件id
|
||||
/// </summary>
|
||||
[JsonProperty("fileid")]
|
||||
public string fileid { get; set; }
|
||||
/// <summary>
|
||||
/// 盖章后文件id
|
||||
/// </summary>
|
||||
[JsonProperty("upfileid")]
|
||||
public string upfileid { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
[JsonProperty("maintitle")]
|
||||
public string maintitle { get; set; }
|
||||
/// <summary>
|
||||
/// 文件编号
|
||||
/// </summary>
|
||||
[JsonProperty("doc_no")]
|
||||
public string doc_no { get; set; }
|
||||
/// <summary>
|
||||
/// 版次
|
||||
/// </summary>
|
||||
[JsonProperty("bc")]
|
||||
public string bc { get; set; }
|
||||
/// <summary>
|
||||
/// 入库档案号
|
||||
/// </summary>
|
||||
[JsonProperty("archnumber")]
|
||||
public string archnumber { get; set; }
|
||||
/// <summary>
|
||||
/// 档案室验收日期
|
||||
/// </summary>
|
||||
[JsonProperty("sendtime")]
|
||||
public DateTime? sendtime { get; set; }
|
||||
/// <summary>
|
||||
/// 蓝图打印日期
|
||||
/// </summary>
|
||||
[JsonProperty("printtime")]
|
||||
public DateTime? printtime { get; set; }
|
||||
/// <summary>
|
||||
/// 蓝图是否寄出(是、否)
|
||||
/// </summary>
|
||||
[JsonProperty("ifmail")]
|
||||
public string ifmail { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1184,6 +1184,9 @@ namespace Model
|
|||
partial void InsertHSSESystem_SafetyInstitution(HSSESystem_SafetyInstitution instance);
|
||||
partial void UpdateHSSESystem_SafetyInstitution(HSSESystem_SafetyInstitution instance);
|
||||
partial void DeleteHSSESystem_SafetyInstitution(HSSESystem_SafetyInstitution instance);
|
||||
partial void InsertIDP_DesignDrawing(IDP_DesignDrawing instance);
|
||||
partial void UpdateIDP_DesignDrawing(IDP_DesignDrawing instance);
|
||||
partial void DeleteIDP_DesignDrawing(IDP_DesignDrawing instance);
|
||||
partial void InsertInApproveManager_EquipmentIn(InApproveManager_EquipmentIn instance);
|
||||
partial void UpdateInApproveManager_EquipmentIn(InApproveManager_EquipmentIn instance);
|
||||
partial void DeleteInApproveManager_EquipmentIn(InApproveManager_EquipmentIn instance);
|
||||
|
@ -5921,6 +5924,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<IDP_DesignDrawing> IDP_DesignDrawing
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<IDP_DesignDrawing>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<InApproveManager_EquipmentIn> InApproveManager_EquipmentIn
|
||||
{
|
||||
get
|
||||
|
@ -52273,7 +52284,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartName", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartName", DbType="NVarChar(200)")]
|
||||
public string DepartName
|
||||
{
|
||||
get
|
||||
|
@ -52453,7 +52464,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")]
|
||||
public string Remark
|
||||
{
|
||||
get
|
||||
|
@ -188144,6 +188155,812 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.IDP_DesignDrawing")]
|
||||
public partial class IDP_DesignDrawing : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _Id;
|
||||
|
||||
private string _IdpfileId;
|
||||
|
||||
private string _StockId;
|
||||
|
||||
private string _ThirdId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _ProjectCode;
|
||||
|
||||
private string _DisplayProjectName;
|
||||
|
||||
private string _ProjectDeviceProcedureSubjectCode;
|
||||
|
||||
private string _WbsFullPath;
|
||||
|
||||
private string _FormatFileCode;
|
||||
|
||||
private string _FormatFileName;
|
||||
|
||||
private string _FileVersion;
|
||||
|
||||
private string _MajorNo;
|
||||
|
||||
private string _Status;
|
||||
|
||||
private string _DesignUserName;
|
||||
|
||||
private string _JiaoheUserName;
|
||||
|
||||
private string _ShenheUserName;
|
||||
|
||||
private string _ShendingUserName;
|
||||
|
||||
private string _MajorResponsibleUserName;
|
||||
|
||||
private string _ClassificationLevelInProject;
|
||||
|
||||
private System.Nullable<System.DateTime> _UpdateTime;
|
||||
|
||||
private string _Remark;
|
||||
|
||||
private string _RdpId;
|
||||
|
||||
private string _Fileid;
|
||||
|
||||
private string _Upfileid;
|
||||
|
||||
private string _Maintitle;
|
||||
|
||||
private string _Doc_no;
|
||||
|
||||
private string _Bc;
|
||||
|
||||
private string _Archnumber;
|
||||
|
||||
private System.Nullable<System.DateTime> _Sendtime;
|
||||
|
||||
private System.Nullable<System.DateTime> _Printtime;
|
||||
|
||||
private string _Ifmail;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnIdChanging(string value);
|
||||
partial void OnIdChanged();
|
||||
partial void OnIdpfileIdChanging(string value);
|
||||
partial void OnIdpfileIdChanged();
|
||||
partial void OnStockIdChanging(string value);
|
||||
partial void OnStockIdChanged();
|
||||
partial void OnThirdIdChanging(string value);
|
||||
partial void OnThirdIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnProjectCodeChanging(string value);
|
||||
partial void OnProjectCodeChanged();
|
||||
partial void OnDisplayProjectNameChanging(string value);
|
||||
partial void OnDisplayProjectNameChanged();
|
||||
partial void OnProjectDeviceProcedureSubjectCodeChanging(string value);
|
||||
partial void OnProjectDeviceProcedureSubjectCodeChanged();
|
||||
partial void OnWbsFullPathChanging(string value);
|
||||
partial void OnWbsFullPathChanged();
|
||||
partial void OnFormatFileCodeChanging(string value);
|
||||
partial void OnFormatFileCodeChanged();
|
||||
partial void OnFormatFileNameChanging(string value);
|
||||
partial void OnFormatFileNameChanged();
|
||||
partial void OnFileVersionChanging(string value);
|
||||
partial void OnFileVersionChanged();
|
||||
partial void OnMajorNoChanging(string value);
|
||||
partial void OnMajorNoChanged();
|
||||
partial void OnStatusChanging(string value);
|
||||
partial void OnStatusChanged();
|
||||
partial void OnDesignUserNameChanging(string value);
|
||||
partial void OnDesignUserNameChanged();
|
||||
partial void OnJiaoheUserNameChanging(string value);
|
||||
partial void OnJiaoheUserNameChanged();
|
||||
partial void OnShenheUserNameChanging(string value);
|
||||
partial void OnShenheUserNameChanged();
|
||||
partial void OnShendingUserNameChanging(string value);
|
||||
partial void OnShendingUserNameChanged();
|
||||
partial void OnMajorResponsibleUserNameChanging(string value);
|
||||
partial void OnMajorResponsibleUserNameChanged();
|
||||
partial void OnClassificationLevelInProjectChanging(string value);
|
||||
partial void OnClassificationLevelInProjectChanged();
|
||||
partial void OnUpdateTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnUpdateTimeChanged();
|
||||
partial void OnRemarkChanging(string value);
|
||||
partial void OnRemarkChanged();
|
||||
partial void OnRdpIdChanging(string value);
|
||||
partial void OnRdpIdChanged();
|
||||
partial void OnFileidChanging(string value);
|
||||
partial void OnFileidChanged();
|
||||
partial void OnUpfileidChanging(string value);
|
||||
partial void OnUpfileidChanged();
|
||||
partial void OnMaintitleChanging(string value);
|
||||
partial void OnMaintitleChanged();
|
||||
partial void OnDoc_noChanging(string value);
|
||||
partial void OnDoc_noChanged();
|
||||
partial void OnBcChanging(string value);
|
||||
partial void OnBcChanged();
|
||||
partial void OnArchnumberChanging(string value);
|
||||
partial void OnArchnumberChanged();
|
||||
partial void OnSendtimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnSendtimeChanged();
|
||||
partial void OnPrinttimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnPrinttimeChanged();
|
||||
partial void OnIfmailChanging(string value);
|
||||
partial void OnIfmailChanged();
|
||||
#endregion
|
||||
|
||||
public IDP_DesignDrawing()
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="id", Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Id != value))
|
||||
{
|
||||
this.OnIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Id = value;
|
||||
this.SendPropertyChanged("Id");
|
||||
this.OnIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="idpfileId", Storage="_IdpfileId", DbType="NVarChar(50)")]
|
||||
public string IdpfileId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IdpfileId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IdpfileId != value))
|
||||
{
|
||||
this.OnIdpfileIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IdpfileId = value;
|
||||
this.SendPropertyChanged("IdpfileId");
|
||||
this.OnIdpfileIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="stockId", Storage="_StockId", DbType="NVarChar(50)")]
|
||||
public string StockId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._StockId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._StockId != value))
|
||||
{
|
||||
this.OnStockIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._StockId = value;
|
||||
this.SendPropertyChanged("StockId");
|
||||
this.OnStockIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="thirdId", Storage="_ThirdId", DbType="NVarChar(50)")]
|
||||
public string ThirdId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ThirdId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ThirdId != value))
|
||||
{
|
||||
this.OnThirdIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ThirdId = value;
|
||||
this.SendPropertyChanged("ThirdId");
|
||||
this.OnThirdIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="projectId", Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
this.OnProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectId = value;
|
||||
this.SendPropertyChanged("ProjectId");
|
||||
this.OnProjectIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="projectCode", Storage="_ProjectCode", DbType="NVarChar(50)")]
|
||||
public string ProjectCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectCode != value))
|
||||
{
|
||||
this.OnProjectCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectCode = value;
|
||||
this.SendPropertyChanged("ProjectCode");
|
||||
this.OnProjectCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="displayProjectName", Storage="_DisplayProjectName", DbType="NVarChar(500)")]
|
||||
public string DisplayProjectName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DisplayProjectName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DisplayProjectName != value))
|
||||
{
|
||||
this.OnDisplayProjectNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DisplayProjectName = value;
|
||||
this.SendPropertyChanged("DisplayProjectName");
|
||||
this.OnDisplayProjectNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="projectDeviceProcedureSubjectCode", Storage="_ProjectDeviceProcedureSubjectCode", DbType="NVarChar(50)")]
|
||||
public string ProjectDeviceProcedureSubjectCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectDeviceProcedureSubjectCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectDeviceProcedureSubjectCode != value))
|
||||
{
|
||||
this.OnProjectDeviceProcedureSubjectCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectDeviceProcedureSubjectCode = value;
|
||||
this.SendPropertyChanged("ProjectDeviceProcedureSubjectCode");
|
||||
this.OnProjectDeviceProcedureSubjectCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="wbsFullPath", Storage="_WbsFullPath", DbType="NVarChar(200)")]
|
||||
public string WbsFullPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WbsFullPath;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WbsFullPath != value))
|
||||
{
|
||||
this.OnWbsFullPathChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WbsFullPath = value;
|
||||
this.SendPropertyChanged("WbsFullPath");
|
||||
this.OnWbsFullPathChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="formatFileCode", Storage="_FormatFileCode", DbType="NVarChar(50)")]
|
||||
public string FormatFileCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FormatFileCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FormatFileCode != value))
|
||||
{
|
||||
this.OnFormatFileCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FormatFileCode = value;
|
||||
this.SendPropertyChanged("FormatFileCode");
|
||||
this.OnFormatFileCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="formatFileName", Storage="_FormatFileName", DbType="NVarChar(200)")]
|
||||
public string FormatFileName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FormatFileName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FormatFileName != value))
|
||||
{
|
||||
this.OnFormatFileNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FormatFileName = value;
|
||||
this.SendPropertyChanged("FormatFileName");
|
||||
this.OnFormatFileNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="fileVersion", Storage="_FileVersion", DbType="NVarChar(50)")]
|
||||
public string FileVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FileVersion;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FileVersion != value))
|
||||
{
|
||||
this.OnFileVersionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FileVersion = value;
|
||||
this.SendPropertyChanged("FileVersion");
|
||||
this.OnFileVersionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="majorNo", Storage="_MajorNo", DbType="NVarChar(50)")]
|
||||
public string MajorNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MajorNo;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MajorNo != value))
|
||||
{
|
||||
this.OnMajorNoChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MajorNo = value;
|
||||
this.SendPropertyChanged("MajorNo");
|
||||
this.OnMajorNoChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="NVarChar(50)")]
|
||||
public string Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Status;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Status != value))
|
||||
{
|
||||
this.OnStatusChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Status = value;
|
||||
this.SendPropertyChanged("Status");
|
||||
this.OnStatusChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="designUserName", Storage="_DesignUserName", DbType="NVarChar(50)")]
|
||||
public string DesignUserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DesignUserName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DesignUserName != value))
|
||||
{
|
||||
this.OnDesignUserNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DesignUserName = value;
|
||||
this.SendPropertyChanged("DesignUserName");
|
||||
this.OnDesignUserNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="jiaoheUserName", Storage="_JiaoheUserName", DbType="NVarChar(50)")]
|
||||
public string JiaoheUserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JiaoheUserName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._JiaoheUserName != value))
|
||||
{
|
||||
this.OnJiaoheUserNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._JiaoheUserName = value;
|
||||
this.SendPropertyChanged("JiaoheUserName");
|
||||
this.OnJiaoheUserNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="shenheUserName", Storage="_ShenheUserName", DbType="NVarChar(50)")]
|
||||
public string ShenheUserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ShenheUserName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ShenheUserName != value))
|
||||
{
|
||||
this.OnShenheUserNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ShenheUserName = value;
|
||||
this.SendPropertyChanged("ShenheUserName");
|
||||
this.OnShenheUserNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="shendingUserName", Storage="_ShendingUserName", DbType="NVarChar(50)")]
|
||||
public string ShendingUserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ShendingUserName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ShendingUserName != value))
|
||||
{
|
||||
this.OnShendingUserNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ShendingUserName = value;
|
||||
this.SendPropertyChanged("ShendingUserName");
|
||||
this.OnShendingUserNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="majorResponsibleUserName", Storage="_MajorResponsibleUserName", DbType="NVarChar(50)")]
|
||||
public string MajorResponsibleUserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MajorResponsibleUserName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MajorResponsibleUserName != value))
|
||||
{
|
||||
this.OnMajorResponsibleUserNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MajorResponsibleUserName = value;
|
||||
this.SendPropertyChanged("MajorResponsibleUserName");
|
||||
this.OnMajorResponsibleUserNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="classificationLevelInProject", Storage="_ClassificationLevelInProject", DbType="NVarChar(50)")]
|
||||
public string ClassificationLevelInProject
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ClassificationLevelInProject;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ClassificationLevelInProject != value))
|
||||
{
|
||||
this.OnClassificationLevelInProjectChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ClassificationLevelInProject = value;
|
||||
this.SendPropertyChanged("ClassificationLevelInProject");
|
||||
this.OnClassificationLevelInProjectChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="updateTime", Storage="_UpdateTime", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> UpdateTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UpdateTime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UpdateTime != value))
|
||||
{
|
||||
this.OnUpdateTimeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UpdateTime = value;
|
||||
this.SendPropertyChanged("UpdateTime");
|
||||
this.OnUpdateTimeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="remark", Storage="_Remark", DbType="NVarChar(500)")]
|
||||
public string Remark
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Remark;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Remark != value))
|
||||
{
|
||||
this.OnRemarkChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Remark = value;
|
||||
this.SendPropertyChanged("Remark");
|
||||
this.OnRemarkChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RdpId", DbType="NVarChar(50)")]
|
||||
public string RdpId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RdpId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RdpId != value))
|
||||
{
|
||||
this.OnRdpIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._RdpId = value;
|
||||
this.SendPropertyChanged("RdpId");
|
||||
this.OnRdpIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="fileid", Storage="_Fileid", DbType="NVarChar(50)")]
|
||||
public string Fileid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Fileid;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Fileid != value))
|
||||
{
|
||||
this.OnFileidChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Fileid = value;
|
||||
this.SendPropertyChanged("Fileid");
|
||||
this.OnFileidChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="upfileid", Storage="_Upfileid", DbType="NVarChar(50)")]
|
||||
public string Upfileid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Upfileid;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Upfileid != value))
|
||||
{
|
||||
this.OnUpfileidChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Upfileid = value;
|
||||
this.SendPropertyChanged("Upfileid");
|
||||
this.OnUpfileidChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="maintitle", Storage="_Maintitle", DbType="NVarChar(200)")]
|
||||
public string Maintitle
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Maintitle;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Maintitle != value))
|
||||
{
|
||||
this.OnMaintitleChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Maintitle = value;
|
||||
this.SendPropertyChanged("Maintitle");
|
||||
this.OnMaintitleChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="doc_no", Storage="_Doc_no", DbType="NVarChar(50)")]
|
||||
public string Doc_no
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Doc_no;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Doc_no != value))
|
||||
{
|
||||
this.OnDoc_noChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Doc_no = value;
|
||||
this.SendPropertyChanged("Doc_no");
|
||||
this.OnDoc_noChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="bc", Storage="_Bc", DbType="NVarChar(50)")]
|
||||
public string Bc
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Bc;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Bc != value))
|
||||
{
|
||||
this.OnBcChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Bc = value;
|
||||
this.SendPropertyChanged("Bc");
|
||||
this.OnBcChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="archnumber", Storage="_Archnumber", DbType="NVarChar(50)")]
|
||||
public string Archnumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Archnumber;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Archnumber != value))
|
||||
{
|
||||
this.OnArchnumberChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Archnumber = value;
|
||||
this.SendPropertyChanged("Archnumber");
|
||||
this.OnArchnumberChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="sendtime", Storage="_Sendtime", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> Sendtime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Sendtime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Sendtime != value))
|
||||
{
|
||||
this.OnSendtimeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Sendtime = value;
|
||||
this.SendPropertyChanged("Sendtime");
|
||||
this.OnSendtimeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="printtime", Storage="_Printtime", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> Printtime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Printtime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Printtime != value))
|
||||
{
|
||||
this.OnPrinttimeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Printtime = value;
|
||||
this.SendPropertyChanged("Printtime");
|
||||
this.OnPrinttimeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="ifmail", Storage="_Ifmail", DbType="NVarChar(50)")]
|
||||
public string Ifmail
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Ifmail;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Ifmail != value))
|
||||
{
|
||||
this.OnIfmailChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Ifmail = value;
|
||||
this.SendPropertyChanged("Ifmail");
|
||||
this.OnIfmailChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.InApproveManager_EquipmentIn")]
|
||||
public partial class InApproveManager_EquipmentIn : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
|
@ -236,6 +236,8 @@
|
|||
<Compile Include="HSSE\SpResourceCollection.cs" />
|
||||
<Compile Include="HSSE\WorkPostStatisticItem.cs" />
|
||||
<Compile Include="HSSE\HSSE_HazardTemplate.cs" />
|
||||
<Compile Include="IDP\OADesignDrawingData.cs" />
|
||||
<Compile Include="IDP\IDPDesignDrawingResponseData.cs" />
|
||||
<Compile Include="JDGL\WBSDetailItem.cs" />
|
||||
<Compile Include="JDGL\WBSSetInitItem.cs" />
|
||||
<Compile Include="JDGL\WBSSetItem.cs" />
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,54 @@ namespace WebAPI.Controllers
|
|||
/// </summary>
|
||||
public class IDPController : ApiController
|
||||
{
|
||||
#region IDP系统项目设计图纸数据
|
||||
|
||||
/// <summary>
|
||||
/// 每天夜间同步获取IDP系统项目设计图纸数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SynIDPDesignDrawingData()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
IDPDataService.GetIDPProjectDesignDrawingData();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.ToString();
|
||||
}
|
||||
return responeData;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 每天夜间接收OA系统项目设计图纸数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public Model.ResponeData SynOADesignDrawingData([FromBody] Model.OADesignDrawingData newItem)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
|
||||
responeData.message = IDPDataService.SaveDesignDrawingData(newItem);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.ToString();
|
||||
}
|
||||
return responeData;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDP系统项目开车数据
|
||||
|
||||
/// <summary>
|
||||
/// 每天夜间同步获取IDP系统项目开车数据
|
||||
/// </summary>
|
||||
|
@ -29,5 +77,6 @@ namespace WebAPI.Controllers
|
|||
return responeData;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -1 +1,20 @@
|
|||
|
||||
【Session】name:FULONGTECH_SESSION;value:54a7e2ee-bbeb-44ad-987c-5093d2fe5a9b
|
||||
【Session】name:FULONGTECH_SESSION;value:c65e9e8d-b0d7-4501-a079-5af824c37964
|
||||
【Session】name:FULONGTECH_SESSION;value:a5c0d3ec-e766-4f21-944b-73d0c9fd8c47
|
||||
【Session】name:FULONGTECH_SESSION;value:cc2c5425-d08c-4d8c-9344-6b41cb3c8f70
|
||||
【Session】name:FULONGTECH_SESSION;value:03689099-8c4e-4d1b-9553-9c2a03082c54
|
||||
【Session】name:FULONGTECH_SESSION;value:b75cbb8f-6cdb-42ff-80ad-60bad9179843
|
||||
【Session】name:FULONGTECH_SESSION;value:15b8c128-1330-40ca-8608-2a9e2def308e
|
||||
【Session】name:FULONGTECH_SESSION;value:d4adafad-f91b-49b9-9948-c58c94bfda37
|
||||
【Session】name:FULONGTECH_SESSION;value:a5e00438-bcab-4f8a-8202-e5ebd58e1470
|
||||
【Session】name:FULONGTECH_SESSION;value:8648b5fd-5c67-4f80-aafc-2539d265af3f
|
||||
【Session】name:FULONGTECH_SESSION;value:7ff55d12-b241-42c2-b145-9cb8e967e022
|
||||
【Session】name:FULONGTECH_SESSION;value:ba9b1a4e-e289-426d-aacf-1defe1788925
|
||||
【Session】name:FULONGTECH_SESSION;value:678c5b99-5606-47c7-8613-08fb2ba86bf7
|
||||
【Session】name:FULONGTECH_SESSION;value:40799f96-ecd1-472a-a26e-b16679e23ee6
|
||||
【Session】name:FULONGTECH_SESSION;value:a46400ce-5e81-44bc-a281-b3e53b3df575
|
||||
【Session】name:FULONGTECH_SESSION;value:0641bce2-025b-4feb-9f01-3410d048c6fe
|
||||
【Session】name:FULONGTECH_SESSION;value:15ffe888-6ccc-4d96-86fb-c9eed5d2c64f
|
||||
【Session】name:FULONGTECH_SESSION;value:02f5ac63-9220-4f81-91cd-dc4dd2c98d10
|
||||
【Session】name:FULONGTECH_SESSION;value:ef252925-fece-4129-b084-30e58a6abfd7
|
||||
【Session】name:FULONGTECH_SESSION;value:58084872-8dad-44eb-ba52-6b42c291dc22
|
||||
|
|
|
@ -89,6 +89,7 @@ namespace WebAPI.Filter
|
|||
public static List<string> lists = new List<string> { "TowerCrane*saveTowerCraneRecord", "GJSX*OverdueWarningSendEmail", "User*postLoginOn", "get*token", "HazardRegister*getHazardRegisterTotalCount",
|
||||
"HazardRegister*getHazardRegisterByProjectIdStates",
|
||||
"PMP*SynPMPProjectData",
|
||||
"IDP*SynIDPDesignDrawingData",
|
||||
"IDP*SynIDPPreRunData",
|
||||
"JGZL*getUserList",
|
||||
"JGZL*getProjedtList",
|
||||
|
|
Loading…
Reference in New Issue