From 163e8586dd542db9187da0feb6983c6f41387256 Mon Sep 17 00:00:00 2001
From: gaofei1985 <181547018@qq.com>
Date: Fri, 14 Nov 2025 16:04:12 +0800
Subject: [PATCH] 1
---
DataBase/版本日志/SGGLDB_V2025-11-13-geh.sql | 7 +
...25-11-13-geh(View_Project_CQMSData_CQMS).sql | 36 +
...25-11-13-geh(View_Project_HJGLData_HJGL).sql | 33 +
...25-11-13-geh(View_Project_HSSEData_HSSE).sql | 41 +
SGGL/BLL/BLL.csproj | 1 +
SGGL/BLL/TokenHelper.cs | 127 +
.../Project_CQMSData_CQMS.aspx | 157 +-
.../Project_CQMSData_CQMS.aspx.cs | 42 +-
.../Project_CQMSData_CQMS.aspx.designer.cs | 13 +-
.../Project_HJGLData_HJGL.aspx | 53 +-
.../Project_HJGLData_HJGL.aspx.cs | 37 +-
.../Project_HJGLData_HJGL.aspx.designer.cs | 13 +-
.../Project_HSSEData_HSSE.aspx | 210 +-
.../Project_HSSEData_HSSE.aspx.cs | 40 +-
.../Project_HSSEData_HSSE.aspx.designer.cs | 13 +-
SGGL/FineUIPro.Web/common/PageBase.cs | 31 +
SGGL/Model/Model.cs | 3513 ++++++++++++++++-
17 files changed, 4111 insertions(+), 256 deletions(-)
create mode 100644 DataBase/版本日志/SGGLDB_V2025-11-13-geh.sql
create mode 100644 DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_CQMSData_CQMS).sql
create mode 100644 DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HJGLData_HJGL).sql
create mode 100644 DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HSSEData_HSSE).sql
create mode 100644 SGGL/BLL/TokenHelper.cs
diff --git a/DataBase/版本日志/SGGLDB_V2025-11-13-geh.sql b/DataBase/版本日志/SGGLDB_V2025-11-13-geh.sql
new file mode 100644
index 00000000..901f6814
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-11-13-geh.sql
@@ -0,0 +1,7 @@
+
+--拆分前
+INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'F32D79E1-7116-45F2-9964-3F6CB243C403', N'安全数据统计', NULL, N'ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx', 80, N'C2297533-B7C0-441E-B29F-ADE87C6F8978', N'Menu_SysSet', '1', '1', '1');
+INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'7AF59776-21CD-4B6A-A765-2F888E4AF8BD', N'质量数据统计', NULL, N'ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx', 90, N'C2297533-B7C0-441E-B29F-ADE87C6F8978', N'Menu_SysSet', '1', '1', '1');
+INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'8358C2EE-2B65-4001-AC09-32B6936AA3CA', N'焊接数据统计', NULL, N'ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx', 100, N'C2297533-B7C0-441E-B29F-ADE87C6F8978', N'Menu_SysSet', '1', '1', '1');
+go
+
diff --git a/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_CQMSData_CQMS).sql b/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_CQMSData_CQMS).sql
new file mode 100644
index 00000000..e51dcbc3
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_CQMSData_CQMS).sql
@@ -0,0 +1,36 @@
+
+
+
+
+
+CREATE View [dbo].[View_Project_CQMSData_CQMS]
+as
+ WITH LatestData AS (
+ SELECT
+ person.CollCropCode,
+ MAX(ReportDate) AS LatestReportDate
+ FROM
+ dbo.Project_CQMSData_CQMS person
+ GROUP BY
+ person.CollCropCode
+),RankedData AS (
+ SELECT
+ cqms.*
+ FROM
+ dbo.Project_CQMSData_CQMS cqms
+ INNER JOIN
+ LatestData l ON cqms.CollCropCode = l.CollCropCode AND cqms.ReportDate = l.LatestReportDate
+)
+SELECT
+ pro.ProjectName,
+ pro.ShortName,
+ rd.*
+FROM RankedData rd
+LEFT JOIN Base_Project pro ON pro.ProjectId = rd.ProjectId
+where pro.ProjectName !='' and pro.ProjectState='1'
+
+
+GO
+
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HJGLData_HJGL).sql b/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HJGLData_HJGL).sql
new file mode 100644
index 00000000..4cb3735a
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HJGLData_HJGL).sql
@@ -0,0 +1,33 @@
+
+
+
+CREATE View [dbo].[View_Project_HJGLData_HJGL]
+as
+WITH LatestData AS (
+ SELECT
+ person.CollCropCode,
+ MAX(ReportDate) AS LatestReportDate
+ FROM
+ dbo.Project_HJGLData_HJGL person
+ GROUP BY
+ person.CollCropCode
+),RankedData AS (
+ SELECT
+ hjgl.*
+ FROM
+ dbo.Project_HJGLData_HJGL hjgl
+ INNER JOIN
+ LatestData l ON hjgl.CollCropCode = l.CollCropCode AND hjgl.ReportDate = l.LatestReportDate
+)
+SELECT
+ pro.ProjectName,
+ pro.ShortName,
+ rd.*
+FROM RankedData rd
+LEFT JOIN Base_Project pro ON pro.ProjectId = rd.ProjectId
+where pro.ProjectName !='' and pro.ProjectState='1'
+
+
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HSSEData_HSSE).sql b/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HSSEData_HSSE).sql
new file mode 100644
index 00000000..c6406651
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2025-11-13-geh(View_Project_HSSEData_HSSE).sql
@@ -0,0 +1,41 @@
+
+CREATE view [dbo].[View_Project_HSSEData_HSSE] as
+WITH LatestData AS (
+ SELECT
+ project.CollCropCode,
+ MAX(ReportDate) AS LatestReportDate
+ FROM
+ dbo.Project_HSSEData_HSSE project
+ GROUP BY
+ project.CollCropCode
+),RankedData AS (
+ SELECT
+ hsse.*
+ FROM
+ dbo.Project_HSSEData_HSSE hsse
+ INNER JOIN
+ LatestData l ON hsse.CollCropCode = l.CollCropCode AND hsse.ReportDate = l.LatestReportDate
+),TotalWorkNumData as
+(
+ select t3.ProjectId,t3.ProjectName,sum(TotalWorkNum) as TotalWorkNum
+ from Base_Project t3
+ join Information_MillionsMonthlyReportItem t1 on ((t1.Name = ('['+t3.ProjectCode+']'+t3.ProjectName)) OR
+ (t1.Name = t3.ProjectName) )
+ join Information_MillionsMonthlyReport t2 on t1.MillionsMonthlyReportId = t2.MillionsMonthlyReportId
+ where t2.Year=Year(getdate()) and t2.Month
+
diff --git a/SGGL/BLL/TokenHelper.cs b/SGGL/BLL/TokenHelper.cs
new file mode 100644
index 00000000..9ce6b097
--- /dev/null
+++ b/SGGL/BLL/TokenHelper.cs
@@ -0,0 +1,127 @@
+using System;
+using System.IO;
+using System.Security.Cryptography;
+using System.Text;
+using Newtonsoft.Json;
+
+namespace BLL
+{
+ ///
+ /// Token加密解密工具类
+ /// 用于iframe跨域自动登录的token处理
+ ///
+ public static class TokenHelper
+ {
+ // 默认密钥,建议从配置文件中读取
+ private static readonly string SecretKey = "cncec-subqhse-256bit-secret-key-for-auth-token";
+
+ ///
+ /// 加密Token
+ ///
+ /// 明文
+ /// 加密后的Base64字符串
+ public static string EncryptToken(string plainText)
+ {
+ try
+ {
+ // 确保密钥长度为32字节(256位)
+ string key = SecretKey.PadRight(32, '0').Substring(0, 32);
+
+ using (var aes = Aes.Create())
+ {
+ aes.Key = Encoding.UTF8.GetBytes(key);
+ aes.IV = new byte[16]; // 使用固定IV,简化实现
+ aes.Mode = CipherMode.CBC;
+ aes.Padding = PaddingMode.PKCS7;
+
+ using (var encryptor = aes.CreateEncryptor())
+ using (var msEncrypt = new MemoryStream())
+ {
+ using (var csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write))
+ using (var swEncrypt = new StreamWriter(csEncrypt))
+ {
+ swEncrypt.Write(plainText);
+ }
+ return Convert.ToBase64String(msEncrypt.ToArray());
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ throw new Exception($"Token加密失败: {ex.Message}", ex);
+ }
+ }
+
+ ///
+ /// 解密Token
+ ///
+ /// 加密的Base64字符串
+ /// 解密后的明文
+ public static string DecryptToken(string cipherText)
+ {
+ try
+ {
+ // 确保密钥长度为32字节(256位)
+ string key = SecretKey.PadRight(32, '0').Substring(0, 32);
+
+ using (var aes = Aes.Create())
+ {
+ aes.Key = Encoding.UTF8.GetBytes(key);
+ aes.IV = new byte[16]; // 使用固定IV,与加密一致
+ aes.Mode = CipherMode.CBC;
+ aes.Padding = PaddingMode.PKCS7;
+
+ using (var decryptor = aes.CreateDecryptor())
+ using (var msDecrypt = new MemoryStream(Convert.FromBase64String(cipherText)))
+ using (var csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read))
+ using (var srDecrypt = new StreamReader(csDecrypt))
+ {
+ return srDecrypt.ReadToEnd();
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ throw new Exception($"Token解密失败: {ex.Message}", ex);
+ }
+ }
+
+ ///
+ /// 生成认证Token
+ ///
+ /// 用户ID
+ /// 来源标识
+ /// 加密的Token
+ public static string GenerateAuthToken(string userId, string source = "qhse.cncecoa.com")
+ {
+ var tokenData = new
+ {
+ user_id = userId,
+ timestamp = DateTimeOffset.Now.ToUnixTimeSeconds(),
+ source = source,
+ random = Guid.NewGuid().ToString("N").Substring(0, 8) // 添加8位随机数增强安全性
+ };
+
+ string json = JsonConvert.SerializeObject(tokenData);
+ return EncryptToken(json);
+ }
+
+ ///
+ /// 验证Token格式
+ ///
+ /// Token字符串
+ /// 是否为有效的Base64格式
+ public static bool IsValidTokenFormat(string token)
+ {
+ try
+ {
+ Convert.FromBase64String(token);
+ return true;
+ }
+ catch
+ {
+ return false;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx
index 72a72cb2..358952a0 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx
@@ -33,23 +33,26 @@
-
-
-
+ <%-- OnClick="btnNew_Click"> --%>
+ <%-- --%>
+
+
+
+
-
+ <%--
@@ -155,7 +158,145 @@
FieldType="String" HeaderText="检验批个数" TextAlign="Left" HeaderTextAlign="Center" >
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.cs
index 04de3207..001c0560 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.cs
@@ -1,11 +1,14 @@
-using BLL;
-using System;
+using System;
+using System.Data;
+using System.Data.SqlClient;
using System.Text;
+using BLL;
using AspNet = System.Web.UI.WebControls;
-
+using System.Collections.Generic;
+using System.Linq;
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
- public partial class Project_CQMSData_CQMS : PageBase
+ public partial class Project_CQMSData_CQMS : PageBase
{
protected void Page_Load(object sender, EventArgs e)
@@ -25,16 +28,23 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
///
private void BindGrid()
{
- Model.Project_CQMSData_CQMS table = new Model.Project_CQMSData_CQMS();
- table.ProjectId = this.CurrUser.LoginProjectId;
- var tb = BLL.Project_CQMSDataService.getListData(table, Grid1);
- Grid1.RecordCount = Project_CQMSDataService.count;
- //tb = GetFilteredTable(Grid1.FilteredData, tb);
- Grid1.DataSource = tb;
+ var list = from x in Funs.DB.View_Project_CQMSData_CQMS select x;
+ if (!string.IsNullOrEmpty(txtProjectName.Text.Trim()))
+ {
+ list = list.Where(x => x.ProjectName.Contains(txtProjectName.Text.Trim()));
+ }
+ int count = list.Count();
+ list = SortConditionHelper.SortingAndPaging(list, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+
+ Grid1.RecordCount = count;
+ Grid1.DataSource = list.ToList();
Grid1.DataBind();
}
#endregion
-
+ protected void btSearch_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
#region GV 数据操作
///
/// 过滤表头
@@ -91,7 +101,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("Project_CQMSData_CQMSEdit.aspx?Id={0}", string.Empty, "增加 - ")));
-
+
}
@@ -138,12 +148,12 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var model = BLL.Project_CQMSDataService.GetProject_CQMSData_CQMSById(rowID);
- if (model != null)
+ if (model!=null)
{
BLL.Project_CQMSDataService.DeleteProject_CQMSData_CQMSById(rowID);
}
-
+
}
BindGrid();
@@ -177,7 +187,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
- this.btnNew.Hidden = false;
+ // this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
@@ -203,7 +213,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("CQMS首页数据表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
- this.Grid1.PageSize = 500;
+ this.Grid1.PageSize = 10000;
this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.designer.cs
index 7db1814a..b5b0bcd3 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_CQMSData_CQMS.aspx.designer.cs
@@ -60,13 +60,22 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
protected global::FineUIPro.Toolbar Toolbar2;
///
- /// btnNew 控件。
+ /// txtProjectName 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button btnNew;
+ protected global::FineUIPro.TextBox txtProjectName;
+
+ ///
+ /// btSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btSearch;
///
/// btnOut 控件。
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx
index 43746729..758d77e7 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx
@@ -34,23 +34,26 @@
-
-
-
+ <%-- OnClick="btnNew_Click"> --%>
+ <%-- --%>
+
+
+
+
-
+ <%--
@@ -83,7 +86,41 @@
FieldType="String" HeaderText="合格片数" TextAlign="Left" HeaderTextAlign="Center" >
-
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.cs
index a7fa756e..f131c79f 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.cs
@@ -1,8 +1,14 @@
-using BLL;
-using System;
+using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Text;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
using AspNet = System.Web.UI.WebControls;
-
+using System.Data;
+using System.Data.SqlClient;
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
public partial class Project_HJGLData_HJGL : PageBase
@@ -25,16 +31,25 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
///
private void BindGrid()
{
- Model.Project_HJGLData_HJGL table = new Model.Project_HJGLData_HJGL();
- table.ProjectId = this.CurrUser.LoginProjectId;
- var tb = BLL.Project_HJGLData_HJGLService.getListData(table, Grid1);
- Grid1.RecordCount = Project_HJGLData_HJGLService.count;
- //tb = GetFilteredTable(Grid1.FilteredData, tb);
- Grid1.DataSource = tb;
+ var list = from x in Funs.DB.View_Project_HJGLData_HJGL select x;
+ if (!string.IsNullOrEmpty(txtProjectName.Text.Trim()))
+ {
+ list = list.Where(x => x.ProjectName.Contains(txtProjectName.Text.Trim()));
+ }
+ int count = list.Count();
+ list = SortConditionHelper.SortingAndPaging(list, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+
+ Grid1.RecordCount = count;
+ Grid1.DataSource = list.ToList();
Grid1.DataBind();
}
#endregion
+ protected void btSearch_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
#region GV 数据操作
///
/// 过滤表头
@@ -176,7 +191,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
- this.btnNew.Hidden = false;
+ // this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
@@ -202,7 +217,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("焊接首页数据表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
- this.Grid1.PageSize = 500;
+ this.Grid1.PageSize = 10000;
this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.designer.cs
index 2c329669..a0f629f1 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx.designer.cs
@@ -60,13 +60,22 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
protected global::FineUIPro.Toolbar Toolbar2;
///
- /// btnNew 控件。
+ /// txtProjectName 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button btnNew;
+ protected global::FineUIPro.TextBox txtProjectName;
+
+ ///
+ /// btSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btSearch;
///
/// btnOut 控件。
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx
index 6ab0533f..e2b054e0 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx
@@ -34,23 +34,26 @@
-
-
-
+ <%-- OnClick="btnNew_Click"> --%>
+ <%-- --%>
+
+
+
+
-
+ <%--
@@ -98,6 +101,9 @@
+
+
@@ -213,10 +219,10 @@
FieldType="String" HeaderText="项目级演练次数" TextAlign="Left" HeaderTextAlign="Center" >
+ FieldType="String" HeaderText="费用提取(元)" TextAlign="Left" HeaderTextAlign="Center" >
+ FieldType="String" HeaderText="费用使用(元)" TextAlign="Left" HeaderTextAlign="Center" >
@@ -277,9 +283,189 @@
-
-
-
+ #1#
+
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.cs
index 7f3f71b0..298bf489 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.cs
@@ -1,10 +1,17 @@
-using BLL;
-using System;
+using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Text;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
using AspNet = System.Web.UI.WebControls;
+using System.Data;
+using System.Data.SqlClient;
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
- public partial class Project_HSSEData_HSSE : PageBase
+ public partial class Project_HSSEData_HSSE :PageBase
{
protected void Page_Load(object sender, EventArgs e)
@@ -24,12 +31,16 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
///
private void BindGrid()
{
- Model.Project_HSSEData_HSSE table = new Model.Project_HSSEData_HSSE();
- table.ProjectId = this.CurrUser.LoginProjectId;
- var tb = BLL.Project_HSSEData_HSSEService.GetListData(table, Grid1);
- Grid1.RecordCount = Project_HSSEData_HSSEService.Count;
- //tb = GetFilteredTable(Grid1.FilteredData, tb);
- Grid1.DataSource = tb;
+ var list = from x in Funs.DB.View_Project_HSSEData_HSSE select x;
+ if (!string.IsNullOrEmpty(txtProjectName.Text.Trim()))
+ {
+ list = list.Where(x => x.ProjectName.Contains(txtProjectName.Text.Trim()));
+ }
+ int count = list.Count();
+ list = SortConditionHelper.SortingAndPaging(list, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
+
+ Grid1.RecordCount = count;
+ Grid1.DataSource = list.ToList();
Grid1.DataBind();
}
#endregion
@@ -68,6 +79,11 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
this.BindGrid();
}
+ protected void btSearch_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
///
/// 分页显示条数下拉框
///
@@ -135,7 +151,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var model = BLL.Project_HSSEData_HSSEService.GetProject_HSSEData_HSSEById(rowID);
- if (model != null)
+ if (model!=null)
{
BLL.Project_HSSEData_HSSEService.DeleteProject_HSSEData_HSSEById(rowID);
BLL.HSSEData_HiddenDangerDetailService.DeleteHSSEData_HiddenDangerDetailByDate(model.ReportDate);
@@ -174,7 +190,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
- this.btnNew.Hidden = false;
+ // this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
@@ -200,7 +216,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("HSSE首页数据表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
- this.Grid1.PageSize = 500;
+ this.Grid1.PageSize = 10000;
this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.designer.cs
index e888089c..c8308349 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx.designer.cs
@@ -60,13 +60,22 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
protected global::FineUIPro.Toolbar Toolbar2;
///
- /// btnNew 控件。
+ /// txtProjectName 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button btnNew;
+ protected global::FineUIPro.TextBox txtProjectName;
+
+ ///
+ /// btSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btSearch;
///
/// btnOut 控件。
diff --git a/SGGL/FineUIPro.Web/common/PageBase.cs b/SGGL/FineUIPro.Web/common/PageBase.cs
index 58415fd2..ad3324fd 100644
--- a/SGGL/FineUIPro.Web/common/PageBase.cs
+++ b/SGGL/FineUIPro.Web/common/PageBase.cs
@@ -111,7 +111,38 @@ namespace FineUIPro.Web
pm.CustomLanguage = langValue;
}
}
+ // 检查auth_token参数实现iframe自动登录
+ string authToken = Request.QueryString["auth_token"];
+ if (!string.IsNullOrEmpty(authToken) && this.CurrUser == null)
+ {
+ try
+ {
+ // 解密并验证token
+ string decryptedToken = BLL.TokenHelper.DecryptToken(authToken);
+ var tokenData = JsonConvert.DeserializeObject(decryptedToken);
+ // 验证时间戳(2小时有效期)
+ long timestamp = tokenData.timestamp;
+ if (DateTimeOffset.Now.ToUnixTimeSeconds() - timestamp <= 7200) // 2小时 = 7200秒
+ {
+ // 验证用户ID
+ string userId = tokenData.user_id;
+ if (userId == Const.sysglyId)
+ {
+ var user = Person_PersonsService.GetPerson_PersonsById(Const.sysglyId);
+ if (user != null)
+ {
+ this.Session["CurrUser"] = user;
+ BLL.LogService.AddLog(Const.sysglyId, "iframe Token自动登录成功");
+ }
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ BLL.LogService.AddLog("", $"iframe Token自动登录失败:{ex.Message}");
+ }
+ }
// 1. 仅显示基础版示例, 2. 基础版
// 上述两种情况都要禁用EnableAnimation、DisplayMode、MobileAdaption
bool showOnlyBase = false;
diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs
index 2c4c0b2c..111b52a7 100644
--- a/SGGL/Model/Model.cs
+++ b/SGGL/Model/Model.cs
@@ -7161,6 +7161,30 @@ namespace Model
}
}
+ public System.Data.Linq.Table View_Project_CQMSData_CQMS
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table View_Project_HJGLData_HJGL
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table View_Project_HSSEData_HSSE
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table View_ProjectData_FlowOperate
{
get
@@ -12267,7 +12291,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(200)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(2000)")]
public string ApproveIdea
{
get
@@ -22446,8 +22470,6 @@ namespace Model
private string _UnitId;
- private string _ProjectId;
-
private string _MaterialId;
private string _ColorName;
@@ -22458,6 +22480,8 @@ namespace Model
private string _Remark;
+ private string _ProjectId;
+
#region 可扩展性方法定义
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -22466,8 +22490,6 @@ namespace Model
partial void OnMaterialColorIdChanged();
partial void OnUnitIdChanging(string value);
partial void OnUnitIdChanged();
- partial void OnProjectIdChanging(string value);
- partial void OnProjectIdChanged();
partial void OnMaterialIdChanging(string value);
partial void OnMaterialIdChanged();
partial void OnColorNameChanging(string value);
@@ -22478,6 +22500,8 @@ namespace Model
partial void OnRGBChanged();
partial void OnRemarkChanging(string value);
partial void OnRemarkChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
#endregion
public Base_MaterialColor()
@@ -22525,26 +22549,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(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(Storage="_MaterialId", DbType="NVarChar(50)")]
public string MaterialId
{
@@ -22645,6 +22649,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(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();
+ }
+ }
+ }
+
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -97820,10 +97844,10 @@ namespace Model
private string _TrainNumber;
- private string _TrainNumberId;
-
private System.Nullable _TypeInt;
+ private string _TrainNumberId;
+
private string _CompileMan;
private System.Nullable _CompileDate;
@@ -97858,10 +97882,10 @@ namespace Model
partial void OnReceiveDateChanged();
partial void OnTrainNumberChanging(string value);
partial void OnTrainNumberChanged();
- partial void OnTrainNumberIdChanging(string value);
- partial void OnTrainNumberIdChanged();
partial void OnTypeIntChanging(System.Nullable value);
partial void OnTypeIntChanged();
+ partial void OnTrainNumberIdChanging(string value);
+ partial void OnTrainNumberIdChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable value);
@@ -98115,26 +98139,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainNumberId", DbType="VarChar(50)")]
- public string TrainNumberId
- {
- get
- {
- return this._TrainNumberId;
- }
- set
- {
- if ((this._TrainNumberId != value))
- {
- this.OnTrainNumberIdChanging(value);
- this.SendPropertyChanging();
- this._TrainNumberId = value;
- this.SendPropertyChanged("TrainNumberId");
- this.OnTrainNumberIdChanged();
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeInt", DbType="Int")]
public System.Nullable TypeInt
{
@@ -98155,6 +98159,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainNumberId", DbType="VarChar(50)")]
+ public string TrainNumberId
+ {
+ get
+ {
+ return this._TrainNumberId;
+ }
+ set
+ {
+ if ((this._TrainNumberId != value))
+ {
+ this.OnTrainNumberIdChanging(value);
+ this.SendPropertyChanging();
+ this._TrainNumberId = value;
+ this.SendPropertyChanged("TrainNumberId");
+ this.OnTrainNumberIdChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
@@ -109402,7 +109426,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Rectification", DbType="NVarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Rectification", DbType="NVarChar(500)")]
public string Rectification
{
get
@@ -109528,7 +109552,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Measures", DbType="NVarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Measures", DbType="NVarChar(500)")]
public string Measures
{
get
@@ -162243,7 +162267,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(500)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(3000)")]
public string AttentPerson
{
get
@@ -193226,7 +193250,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectDescription", DbType="VarChar(255)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectDescription", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
public string ProjectDescription
{
get
@@ -193346,7 +193370,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CalculationRule", DbType="VarChar(255)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CalculationRule", DbType="VarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
public string CalculationRule
{
get
@@ -193406,7 +193430,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionSubcontractor", DbType="VarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionSubcontractor", DbType="VarChar(100)")]
public string ConstructionSubcontractor
{
get
@@ -193790,7 +193814,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,2)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,3)")]
public System.Nullable WorkPackageEstimate
{
get
@@ -194095,6 +194119,16 @@ namespace Model
private string _ProjectId;
+ private string _ContractId;
+
+ private string _OrderCode;
+
+ private System.Nullable _OrderInDate;
+
+ private System.Nullable _OrderOutDate;
+
+ private string _MaterialRequisitionUnit;
+
private System.Nullable _State;
private string _InvoiceCode;
@@ -194123,16 +194157,6 @@ namespace Model
private string _CreateUser;
- private string _ContractId;
-
- private System.Nullable _OrderInDate;
-
- private string _OrderCode;
-
- private System.Nullable _OrderOutDate;
-
- private string _MaterialRequisitionUnit;
-
#region 可扩展性方法定义
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -194141,6 +194165,16 @@ namespace Model
partial void OnInvoiceIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
+ partial void OnContractIdChanging(string value);
+ partial void OnContractIdChanged();
+ partial void OnOrderCodeChanging(string value);
+ partial void OnOrderCodeChanged();
+ partial void OnOrderInDateChanging(System.Nullable value);
+ partial void OnOrderInDateChanged();
+ partial void OnOrderOutDateChanging(System.Nullable value);
+ partial void OnOrderOutDateChanged();
+ partial void OnMaterialRequisitionUnitChanging(string value);
+ partial void OnMaterialRequisitionUnitChanged();
partial void OnStateChanging(System.Nullable value);
partial void OnStateChanged();
partial void OnInvoiceCodeChanging(string value);
@@ -194169,16 +194203,6 @@ namespace Model
partial void OnCreateDateChanged();
partial void OnCreateUserChanging(string value);
partial void OnCreateUserChanged();
- partial void OnContractIdChanging(string value);
- partial void OnContractIdChanged();
- partial void OnOrderInDateChanging(System.Nullable value);
- partial void OnOrderInDateChanged();
- partial void OnOrderCodeChanging(string value);
- partial void OnOrderCodeChanged();
- partial void OnOrderOutDateChanging(System.Nullable value);
- partial void OnOrderOutDateChanged();
- partial void OnMaterialRequisitionUnitChanging(string value);
- partial void OnMaterialRequisitionUnitChanged();
#endregion
public PHTGL_Invoice()
@@ -194226,6 +194250,106 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractId", DbType="NVarChar(50)")]
+ public string ContractId
+ {
+ get
+ {
+ return this._ContractId;
+ }
+ set
+ {
+ if ((this._ContractId != value))
+ {
+ this.OnContractIdChanging(value);
+ this.SendPropertyChanging();
+ this._ContractId = value;
+ this.SendPropertyChanged("ContractId");
+ this.OnContractIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderCode", DbType="NVarChar(50)")]
+ public string OrderCode
+ {
+ get
+ {
+ return this._OrderCode;
+ }
+ set
+ {
+ if ((this._OrderCode != value))
+ {
+ this.OnOrderCodeChanging(value);
+ this.SendPropertyChanging();
+ this._OrderCode = value;
+ this.SendPropertyChanged("OrderCode");
+ this.OnOrderCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderInDate", DbType="Date")]
+ public System.Nullable OrderInDate
+ {
+ get
+ {
+ return this._OrderInDate;
+ }
+ set
+ {
+ if ((this._OrderInDate != value))
+ {
+ this.OnOrderInDateChanging(value);
+ this.SendPropertyChanging();
+ this._OrderInDate = value;
+ this.SendPropertyChanged("OrderInDate");
+ this.OnOrderInDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderOutDate", DbType="Date")]
+ public System.Nullable OrderOutDate
+ {
+ get
+ {
+ return this._OrderOutDate;
+ }
+ set
+ {
+ if ((this._OrderOutDate != value))
+ {
+ this.OnOrderOutDateChanging(value);
+ this.SendPropertyChanging();
+ this._OrderOutDate = value;
+ this.SendPropertyChanged("OrderOutDate");
+ this.OnOrderOutDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialRequisitionUnit", DbType="NVarChar(100)")]
+ public string MaterialRequisitionUnit
+ {
+ get
+ {
+ return this._MaterialRequisitionUnit;
+ }
+ set
+ {
+ if ((this._MaterialRequisitionUnit != value))
+ {
+ this.OnMaterialRequisitionUnitChanging(value);
+ this.SendPropertyChanging();
+ this._MaterialRequisitionUnit = value;
+ this.SendPropertyChanged("MaterialRequisitionUnit");
+ this.OnMaterialRequisitionUnitChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Int")]
public System.Nullable State
{
@@ -194506,106 +194630,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractId", DbType="NVarChar(50)")]
- public string ContractId
- {
- get
- {
- return this._ContractId;
- }
- set
- {
- if ((this._ContractId != value))
- {
- this.OnContractIdChanging(value);
- this.SendPropertyChanging();
- this._ContractId = value;
- this.SendPropertyChanged("ContractId");
- this.OnContractIdChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderInDate", DbType="Date")]
- public System.Nullable OrderInDate
- {
- get
- {
- return this._OrderInDate;
- }
- set
- {
- if ((this._OrderInDate != value))
- {
- this.OnOrderInDateChanging(value);
- this.SendPropertyChanging();
- this._OrderInDate = value;
- this.SendPropertyChanged("OrderInDate");
- this.OnOrderInDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderCode", DbType="NVarChar(50)")]
- public string OrderCode
- {
- get
- {
- return this._OrderCode;
- }
- set
- {
- if ((this._OrderCode != value))
- {
- this.OnOrderCodeChanging(value);
- this.SendPropertyChanging();
- this._OrderCode = value;
- this.SendPropertyChanged("OrderCode");
- this.OnOrderCodeChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderOutDate", DbType="Date")]
- public System.Nullable OrderOutDate
- {
- get
- {
- return this._OrderOutDate;
- }
- set
- {
- if ((this._OrderOutDate != value))
- {
- this.OnOrderOutDateChanging(value);
- this.SendPropertyChanging();
- this._OrderOutDate = value;
- this.SendPropertyChanged("OrderOutDate");
- this.OnOrderOutDateChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialRequisitionUnit", DbType="NVarChar(100)")]
- public string MaterialRequisitionUnit
- {
- get
- {
- return this._MaterialRequisitionUnit;
- }
- set
- {
- if ((this._MaterialRequisitionUnit != value))
- {
- this.OnMaterialRequisitionUnitChanging(value);
- this.SendPropertyChanging();
- this._MaterialRequisitionUnit = value;
- this.SendPropertyChanged("MaterialRequisitionUnit");
- this.OnMaterialRequisitionUnitChanged();
- }
- }
- }
-
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -305768,6 +305792,3129 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Project_CQMSData_CQMS")]
+ public partial class View_Project_CQMSData_CQMS
+ {
+
+ private string _ProjectName;
+
+ private string _ShortName;
+
+ private string _Id;
+
+ private string _UnitId;
+
+ private string _ProjectId;
+
+ private string _CollCropCode;
+
+ private string _UnitName;
+
+ private System.Nullable _ReportDate;
+
+ private System.Nullable _TrainPersonNum;
+
+ private System.Nullable _TechnicalDisclosePersonNum;
+
+ private System.Nullable _UseNum;
+
+ private System.Nullable _OKNum;
+
+ private System.Nullable _CompanyPersonNum;
+
+ private System.Nullable _BranchPersonNum;
+
+ private System.Nullable _ProjectPersonNum;
+
+ private System.Nullable _ProblemNum;
+
+ private System.Nullable _ProblemCompletedNum;
+
+ private System.Nullable _ProblemNotCompletedNum;
+
+ private System.Nullable _SNum;
+
+ private System.Nullable _ANum;
+
+ private System.Nullable _BNum;
+
+ private System.Nullable _CNum;
+
+ private System.Nullable _KeyProcessNum;
+
+ private System.Nullable _KeyProcessOKNum;
+
+ private System.Nullable _SpecialProcessNum;
+
+ private System.Nullable _SpecialProcessOKNum;
+
+ private System.Nullable _ConcealedWorksNum;
+
+ private System.Nullable _ConcealedWorksOKNum;
+
+ private System.Nullable _UnitProjectOnesNum;
+
+ private System.Nullable _UnitProjectOnesOKNum;
+
+ private System.Nullable _MaterialInRecheckNum;
+
+ private System.Nullable _MaterialInRecheckOKNum;
+
+ private System.Nullable _SingleProjectNum;
+
+ private System.Nullable _UnitProjectNum;
+
+ private System.Nullable _SubProjectNum;
+
+ private System.Nullable _SubdivisionalWorksNum;
+
+ private System.Nullable _InspectionLotNum;
+
+ private System.Nullable _EquipmentInspectionNum;
+
+ private System.Nullable _EquipmentInspectionQualifiedNum;
+
+ private System.Nullable _MachineInspectionNum;
+
+ private System.Nullable _MachineInspectionQualifiedNum;
+
+ private System.Nullable _PersonInspectionNum;
+
+ private System.Nullable _PersonInspectionQualifiedNum;
+
+ private System.Nullable _MaterialInspectionNum;
+
+ private System.Nullable _MaterialInspectionQualifiedNum;
+
+ private System.Nullable _ConstructSolutionNum;
+
+ private System.Nullable _ConstructSolutionProjectApproveNum;
+
+ private System.Nullable _ConstructSolutionUnitApproveNum;
+
+ private System.Nullable _SpecialEquipmentQualityAssuranceSystemNum;
+
+ private System.Nullable _DesignDetailsNum;
+
+ private System.Nullable _UnitProjectAcceptNum;
+
+ private System.Nullable _UnitProjectAcceptOKNum;
+
+ private System.Nullable _SubProjectAcceptNum;
+
+ private System.Nullable _SubProjectAcceptOKNum;
+
+ private System.Nullable _SubdivisionalWorksAcceptNum;
+
+ private System.Nullable _SubdivisionalWorksAcceptOKNum;
+
+ private System.Nullable _ComprehensiveReviewDrawingsNum;
+
+ private System.Nullable _ComprehensiveConTechnologyDisclosureNum;
+
+ private System.Nullable _ComprehensiveConTechnologyDisclosurePersonNum;
+
+ private System.Nullable _ProjectSubPersonNum;
+
+ private System.Nullable _InspectionMachineNum;
+
+ private System.Nullable _InspectionMachineQualifiedNum;
+
+ public View_Project_CQMSData_CQMS()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(200)")]
+ public string ProjectName
+ {
+ get
+ {
+ return this._ProjectName;
+ }
+ set
+ {
+ if ((this._ProjectName != value))
+ {
+ this._ProjectName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(200)")]
+ public string ShortName
+ {
+ get
+ {
+ return this._ShortName;
+ }
+ set
+ {
+ if ((this._ShortName != value))
+ {
+ this._ShortName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string Id
+ {
+ get
+ {
+ return this._Id;
+ }
+ set
+ {
+ if ((this._Id != value))
+ {
+ this._Id = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
+ public string UnitId
+ {
+ get
+ {
+ return this._UnitId;
+ }
+ set
+ {
+ if ((this._UnitId != value))
+ {
+ this._UnitId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this._ProjectId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CollCropCode", DbType="NVarChar(50)")]
+ public string CollCropCode
+ {
+ get
+ {
+ return this._CollCropCode;
+ }
+ set
+ {
+ if ((this._CollCropCode != value))
+ {
+ this._CollCropCode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")]
+ public string UnitName
+ {
+ get
+ {
+ return this._UnitName;
+ }
+ set
+ {
+ if ((this._UnitName != value))
+ {
+ this._UnitName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")]
+ public System.Nullable ReportDate
+ {
+ get
+ {
+ return this._ReportDate;
+ }
+ set
+ {
+ if ((this._ReportDate != value))
+ {
+ this._ReportDate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainPersonNum", DbType="Int")]
+ public System.Nullable TrainPersonNum
+ {
+ get
+ {
+ return this._TrainPersonNum;
+ }
+ set
+ {
+ if ((this._TrainPersonNum != value))
+ {
+ this._TrainPersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalDisclosePersonNum", DbType="Int")]
+ public System.Nullable TechnicalDisclosePersonNum
+ {
+ get
+ {
+ return this._TechnicalDisclosePersonNum;
+ }
+ set
+ {
+ if ((this._TechnicalDisclosePersonNum != value))
+ {
+ this._TechnicalDisclosePersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UseNum", DbType="Int")]
+ public System.Nullable UseNum
+ {
+ get
+ {
+ return this._UseNum;
+ }
+ set
+ {
+ if ((this._UseNum != value))
+ {
+ this._UseNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OKNum", DbType="Int")]
+ public System.Nullable OKNum
+ {
+ get
+ {
+ return this._OKNum;
+ }
+ set
+ {
+ if ((this._OKNum != value))
+ {
+ this._OKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanyPersonNum", DbType="Int")]
+ public System.Nullable CompanyPersonNum
+ {
+ get
+ {
+ return this._CompanyPersonNum;
+ }
+ set
+ {
+ if ((this._CompanyPersonNum != value))
+ {
+ this._CompanyPersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchPersonNum", DbType="Int")]
+ public System.Nullable BranchPersonNum
+ {
+ get
+ {
+ return this._BranchPersonNum;
+ }
+ set
+ {
+ if ((this._BranchPersonNum != value))
+ {
+ this._BranchPersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectPersonNum", DbType="Int")]
+ public System.Nullable ProjectPersonNum
+ {
+ get
+ {
+ return this._ProjectPersonNum;
+ }
+ set
+ {
+ if ((this._ProjectPersonNum != value))
+ {
+ this._ProjectPersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemNum", DbType="Int")]
+ public System.Nullable ProblemNum
+ {
+ get
+ {
+ return this._ProblemNum;
+ }
+ set
+ {
+ if ((this._ProblemNum != value))
+ {
+ this._ProblemNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemCompletedNum", DbType="Int")]
+ public System.Nullable ProblemCompletedNum
+ {
+ get
+ {
+ return this._ProblemCompletedNum;
+ }
+ set
+ {
+ if ((this._ProblemCompletedNum != value))
+ {
+ this._ProblemCompletedNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemNotCompletedNum", DbType="Int")]
+ public System.Nullable ProblemNotCompletedNum
+ {
+ get
+ {
+ return this._ProblemNotCompletedNum;
+ }
+ set
+ {
+ if ((this._ProblemNotCompletedNum != value))
+ {
+ this._ProblemNotCompletedNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SNum", DbType="Int")]
+ public System.Nullable SNum
+ {
+ get
+ {
+ return this._SNum;
+ }
+ set
+ {
+ if ((this._SNum != value))
+ {
+ this._SNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ANum", DbType="Int")]
+ public System.Nullable ANum
+ {
+ get
+ {
+ return this._ANum;
+ }
+ set
+ {
+ if ((this._ANum != value))
+ {
+ this._ANum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BNum", DbType="Int")]
+ public System.Nullable BNum
+ {
+ get
+ {
+ return this._BNum;
+ }
+ set
+ {
+ if ((this._BNum != value))
+ {
+ this._BNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNum", DbType="Int")]
+ public System.Nullable CNum
+ {
+ get
+ {
+ return this._CNum;
+ }
+ set
+ {
+ if ((this._CNum != value))
+ {
+ this._CNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProcessNum", DbType="Int")]
+ public System.Nullable KeyProcessNum
+ {
+ get
+ {
+ return this._KeyProcessNum;
+ }
+ set
+ {
+ if ((this._KeyProcessNum != value))
+ {
+ this._KeyProcessNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProcessOKNum", DbType="Int")]
+ public System.Nullable KeyProcessOKNum
+ {
+ get
+ {
+ return this._KeyProcessOKNum;
+ }
+ set
+ {
+ if ((this._KeyProcessOKNum != value))
+ {
+ this._KeyProcessOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialProcessNum", DbType="Int")]
+ public System.Nullable SpecialProcessNum
+ {
+ get
+ {
+ return this._SpecialProcessNum;
+ }
+ set
+ {
+ if ((this._SpecialProcessNum != value))
+ {
+ this._SpecialProcessNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialProcessOKNum", DbType="Int")]
+ public System.Nullable SpecialProcessOKNum
+ {
+ get
+ {
+ return this._SpecialProcessOKNum;
+ }
+ set
+ {
+ if ((this._SpecialProcessOKNum != value))
+ {
+ this._SpecialProcessOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConcealedWorksNum", DbType="Int")]
+ public System.Nullable ConcealedWorksNum
+ {
+ get
+ {
+ return this._ConcealedWorksNum;
+ }
+ set
+ {
+ if ((this._ConcealedWorksNum != value))
+ {
+ this._ConcealedWorksNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConcealedWorksOKNum", DbType="Int")]
+ public System.Nullable ConcealedWorksOKNum
+ {
+ get
+ {
+ return this._ConcealedWorksOKNum;
+ }
+ set
+ {
+ if ((this._ConcealedWorksOKNum != value))
+ {
+ this._ConcealedWorksOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectOnesNum", DbType="Int")]
+ public System.Nullable UnitProjectOnesNum
+ {
+ get
+ {
+ return this._UnitProjectOnesNum;
+ }
+ set
+ {
+ if ((this._UnitProjectOnesNum != value))
+ {
+ this._UnitProjectOnesNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectOnesOKNum", DbType="Int")]
+ public System.Nullable UnitProjectOnesOKNum
+ {
+ get
+ {
+ return this._UnitProjectOnesOKNum;
+ }
+ set
+ {
+ if ((this._UnitProjectOnesOKNum != value))
+ {
+ this._UnitProjectOnesOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInRecheckNum", DbType="Int")]
+ public System.Nullable MaterialInRecheckNum
+ {
+ get
+ {
+ return this._MaterialInRecheckNum;
+ }
+ set
+ {
+ if ((this._MaterialInRecheckNum != value))
+ {
+ this._MaterialInRecheckNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInRecheckOKNum", DbType="Int")]
+ public System.Nullable MaterialInRecheckOKNum
+ {
+ get
+ {
+ return this._MaterialInRecheckOKNum;
+ }
+ set
+ {
+ if ((this._MaterialInRecheckOKNum != value))
+ {
+ this._MaterialInRecheckOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleProjectNum", DbType="Int")]
+ public System.Nullable SingleProjectNum
+ {
+ get
+ {
+ return this._SingleProjectNum;
+ }
+ set
+ {
+ if ((this._SingleProjectNum != value))
+ {
+ this._SingleProjectNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectNum", DbType="Int")]
+ public System.Nullable UnitProjectNum
+ {
+ get
+ {
+ return this._UnitProjectNum;
+ }
+ set
+ {
+ if ((this._UnitProjectNum != value))
+ {
+ this._UnitProjectNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubProjectNum", DbType="Int")]
+ public System.Nullable SubProjectNum
+ {
+ get
+ {
+ return this._SubProjectNum;
+ }
+ set
+ {
+ if ((this._SubProjectNum != value))
+ {
+ this._SubProjectNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubdivisionalWorksNum", DbType="Int")]
+ public System.Nullable SubdivisionalWorksNum
+ {
+ get
+ {
+ return this._SubdivisionalWorksNum;
+ }
+ set
+ {
+ if ((this._SubdivisionalWorksNum != value))
+ {
+ this._SubdivisionalWorksNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionLotNum", DbType="Int")]
+ public System.Nullable InspectionLotNum
+ {
+ get
+ {
+ return this._InspectionLotNum;
+ }
+ set
+ {
+ if ((this._InspectionLotNum != value))
+ {
+ this._InspectionLotNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentInspectionNum", DbType="Int")]
+ public System.Nullable EquipmentInspectionNum
+ {
+ get
+ {
+ return this._EquipmentInspectionNum;
+ }
+ set
+ {
+ if ((this._EquipmentInspectionNum != value))
+ {
+ this._EquipmentInspectionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentInspectionQualifiedNum", DbType="Int")]
+ public System.Nullable EquipmentInspectionQualifiedNum
+ {
+ get
+ {
+ return this._EquipmentInspectionQualifiedNum;
+ }
+ set
+ {
+ if ((this._EquipmentInspectionQualifiedNum != value))
+ {
+ this._EquipmentInspectionQualifiedNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MachineInspectionNum", DbType="Int")]
+ public System.Nullable MachineInspectionNum
+ {
+ get
+ {
+ return this._MachineInspectionNum;
+ }
+ set
+ {
+ if ((this._MachineInspectionNum != value))
+ {
+ this._MachineInspectionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MachineInspectionQualifiedNum", DbType="Int")]
+ public System.Nullable MachineInspectionQualifiedNum
+ {
+ get
+ {
+ return this._MachineInspectionQualifiedNum;
+ }
+ set
+ {
+ if ((this._MachineInspectionQualifiedNum != value))
+ {
+ this._MachineInspectionQualifiedNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonInspectionNum", DbType="Int")]
+ public System.Nullable PersonInspectionNum
+ {
+ get
+ {
+ return this._PersonInspectionNum;
+ }
+ set
+ {
+ if ((this._PersonInspectionNum != value))
+ {
+ this._PersonInspectionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonInspectionQualifiedNum", DbType="Int")]
+ public System.Nullable PersonInspectionQualifiedNum
+ {
+ get
+ {
+ return this._PersonInspectionQualifiedNum;
+ }
+ set
+ {
+ if ((this._PersonInspectionQualifiedNum != value))
+ {
+ this._PersonInspectionQualifiedNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInspectionNum", DbType="Int")]
+ public System.Nullable MaterialInspectionNum
+ {
+ get
+ {
+ return this._MaterialInspectionNum;
+ }
+ set
+ {
+ if ((this._MaterialInspectionNum != value))
+ {
+ this._MaterialInspectionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialInspectionQualifiedNum", DbType="Int")]
+ public System.Nullable MaterialInspectionQualifiedNum
+ {
+ get
+ {
+ return this._MaterialInspectionQualifiedNum;
+ }
+ set
+ {
+ if ((this._MaterialInspectionQualifiedNum != value))
+ {
+ this._MaterialInspectionQualifiedNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructSolutionNum", DbType="Int")]
+ public System.Nullable ConstructSolutionNum
+ {
+ get
+ {
+ return this._ConstructSolutionNum;
+ }
+ set
+ {
+ if ((this._ConstructSolutionNum != value))
+ {
+ this._ConstructSolutionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructSolutionProjectApproveNum", DbType="Int")]
+ public System.Nullable ConstructSolutionProjectApproveNum
+ {
+ get
+ {
+ return this._ConstructSolutionProjectApproveNum;
+ }
+ set
+ {
+ if ((this._ConstructSolutionProjectApproveNum != value))
+ {
+ this._ConstructSolutionProjectApproveNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructSolutionUnitApproveNum", DbType="Int")]
+ public System.Nullable ConstructSolutionUnitApproveNum
+ {
+ get
+ {
+ return this._ConstructSolutionUnitApproveNum;
+ }
+ set
+ {
+ if ((this._ConstructSolutionUnitApproveNum != value))
+ {
+ this._ConstructSolutionUnitApproveNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialEquipmentQualityAssuranceSystemNum", DbType="Int")]
+ public System.Nullable SpecialEquipmentQualityAssuranceSystemNum
+ {
+ get
+ {
+ return this._SpecialEquipmentQualityAssuranceSystemNum;
+ }
+ set
+ {
+ if ((this._SpecialEquipmentQualityAssuranceSystemNum != value))
+ {
+ this._SpecialEquipmentQualityAssuranceSystemNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignDetailsNum", DbType="Int")]
+ public System.Nullable DesignDetailsNum
+ {
+ get
+ {
+ return this._DesignDetailsNum;
+ }
+ set
+ {
+ if ((this._DesignDetailsNum != value))
+ {
+ this._DesignDetailsNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectAcceptNum", DbType="Int")]
+ public System.Nullable UnitProjectAcceptNum
+ {
+ get
+ {
+ return this._UnitProjectAcceptNum;
+ }
+ set
+ {
+ if ((this._UnitProjectAcceptNum != value))
+ {
+ this._UnitProjectAcceptNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectAcceptOKNum", DbType="Int")]
+ public System.Nullable UnitProjectAcceptOKNum
+ {
+ get
+ {
+ return this._UnitProjectAcceptOKNum;
+ }
+ set
+ {
+ if ((this._UnitProjectAcceptOKNum != value))
+ {
+ this._UnitProjectAcceptOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubProjectAcceptNum", DbType="Int")]
+ public System.Nullable SubProjectAcceptNum
+ {
+ get
+ {
+ return this._SubProjectAcceptNum;
+ }
+ set
+ {
+ if ((this._SubProjectAcceptNum != value))
+ {
+ this._SubProjectAcceptNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubProjectAcceptOKNum", DbType="Int")]
+ public System.Nullable SubProjectAcceptOKNum
+ {
+ get
+ {
+ return this._SubProjectAcceptOKNum;
+ }
+ set
+ {
+ if ((this._SubProjectAcceptOKNum != value))
+ {
+ this._SubProjectAcceptOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubdivisionalWorksAcceptNum", DbType="Int")]
+ public System.Nullable SubdivisionalWorksAcceptNum
+ {
+ get
+ {
+ return this._SubdivisionalWorksAcceptNum;
+ }
+ set
+ {
+ if ((this._SubdivisionalWorksAcceptNum != value))
+ {
+ this._SubdivisionalWorksAcceptNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubdivisionalWorksAcceptOKNum", DbType="Int")]
+ public System.Nullable SubdivisionalWorksAcceptOKNum
+ {
+ get
+ {
+ return this._SubdivisionalWorksAcceptOKNum;
+ }
+ set
+ {
+ if ((this._SubdivisionalWorksAcceptOKNum != value))
+ {
+ this._SubdivisionalWorksAcceptOKNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComprehensiveReviewDrawingsNum", DbType="Int")]
+ public System.Nullable ComprehensiveReviewDrawingsNum
+ {
+ get
+ {
+ return this._ComprehensiveReviewDrawingsNum;
+ }
+ set
+ {
+ if ((this._ComprehensiveReviewDrawingsNum != value))
+ {
+ this._ComprehensiveReviewDrawingsNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComprehensiveConTechnologyDisclosureNum", DbType="Int")]
+ public System.Nullable ComprehensiveConTechnologyDisclosureNum
+ {
+ get
+ {
+ return this._ComprehensiveConTechnologyDisclosureNum;
+ }
+ set
+ {
+ if ((this._ComprehensiveConTechnologyDisclosureNum != value))
+ {
+ this._ComprehensiveConTechnologyDisclosureNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComprehensiveConTechnologyDisclosurePersonNum", DbType="Int")]
+ public System.Nullable ComprehensiveConTechnologyDisclosurePersonNum
+ {
+ get
+ {
+ return this._ComprehensiveConTechnologyDisclosurePersonNum;
+ }
+ set
+ {
+ if ((this._ComprehensiveConTechnologyDisclosurePersonNum != value))
+ {
+ this._ComprehensiveConTechnologyDisclosurePersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSubPersonNum", DbType="Int")]
+ public System.Nullable ProjectSubPersonNum
+ {
+ get
+ {
+ return this._ProjectSubPersonNum;
+ }
+ set
+ {
+ if ((this._ProjectSubPersonNum != value))
+ {
+ this._ProjectSubPersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionMachineNum", DbType="Int")]
+ public System.Nullable InspectionMachineNum
+ {
+ get
+ {
+ return this._InspectionMachineNum;
+ }
+ set
+ {
+ if ((this._InspectionMachineNum != value))
+ {
+ this._InspectionMachineNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionMachineQualifiedNum", DbType="Int")]
+ public System.Nullable InspectionMachineQualifiedNum
+ {
+ get
+ {
+ return this._InspectionMachineQualifiedNum;
+ }
+ set
+ {
+ if ((this._InspectionMachineQualifiedNum != value))
+ {
+ this._InspectionMachineQualifiedNum = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Project_HJGLData_HJGL")]
+ public partial class View_Project_HJGLData_HJGL
+ {
+
+ private string _ProjectName;
+
+ private string _ShortName;
+
+ private string _Id;
+
+ private string _UnitId;
+
+ private string _ProjectId;
+
+ private string _CollCropCode;
+
+ private string _UnitName;
+
+ private System.Nullable _ReportDate;
+
+ private System.Nullable _WelderNum;
+
+ private System.Nullable _TotalDineNum;
+
+ private System.Nullable _CompleteDineNum;
+
+ private System.Nullable _TotalFilmNum;
+
+ private System.Nullable _OKFilmNum;
+
+ public View_Project_HJGLData_HJGL()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(200)")]
+ public string ProjectName
+ {
+ get
+ {
+ return this._ProjectName;
+ }
+ set
+ {
+ if ((this._ProjectName != value))
+ {
+ this._ProjectName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(200)")]
+ public string ShortName
+ {
+ get
+ {
+ return this._ShortName;
+ }
+ set
+ {
+ if ((this._ShortName != value))
+ {
+ this._ShortName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string Id
+ {
+ get
+ {
+ return this._Id;
+ }
+ set
+ {
+ if ((this._Id != value))
+ {
+ this._Id = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
+ public string UnitId
+ {
+ get
+ {
+ return this._UnitId;
+ }
+ set
+ {
+ if ((this._UnitId != value))
+ {
+ this._UnitId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this._ProjectId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CollCropCode", DbType="NVarChar(50)")]
+ public string CollCropCode
+ {
+ get
+ {
+ return this._CollCropCode;
+ }
+ set
+ {
+ if ((this._CollCropCode != value))
+ {
+ this._CollCropCode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")]
+ public string UnitName
+ {
+ get
+ {
+ return this._UnitName;
+ }
+ set
+ {
+ if ((this._UnitName != value))
+ {
+ this._UnitName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")]
+ public System.Nullable ReportDate
+ {
+ get
+ {
+ return this._ReportDate;
+ }
+ set
+ {
+ if ((this._ReportDate != value))
+ {
+ this._ReportDate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderNum", DbType="Int")]
+ public System.Nullable WelderNum
+ {
+ get
+ {
+ return this._WelderNum;
+ }
+ set
+ {
+ if ((this._WelderNum != value))
+ {
+ this._WelderNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalDineNum", DbType="Int")]
+ public System.Nullable TotalDineNum
+ {
+ get
+ {
+ return this._TotalDineNum;
+ }
+ set
+ {
+ if ((this._TotalDineNum != value))
+ {
+ this._TotalDineNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompleteDineNum", DbType="Int")]
+ public System.Nullable CompleteDineNum
+ {
+ get
+ {
+ return this._CompleteDineNum;
+ }
+ set
+ {
+ if ((this._CompleteDineNum != value))
+ {
+ this._CompleteDineNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalFilmNum", DbType="Int")]
+ public System.Nullable TotalFilmNum
+ {
+ get
+ {
+ return this._TotalFilmNum;
+ }
+ set
+ {
+ if ((this._TotalFilmNum != value))
+ {
+ this._TotalFilmNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OKFilmNum", DbType="Int")]
+ public System.Nullable OKFilmNum
+ {
+ get
+ {
+ return this._OKFilmNum;
+ }
+ set
+ {
+ if ((this._OKFilmNum != value))
+ {
+ this._OKFilmNum = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_Project_HSSEData_HSSE")]
+ public partial class View_Project_HSSEData_HSSE
+ {
+
+ private string _ProjectName;
+
+ private string _ShortName;
+
+ private string _Id;
+
+ private string _UnitId;
+
+ private string _ProjectId;
+
+ private string _CollCropCode;
+
+ private string _UnitName;
+
+ private System.Nullable _ReportDate;
+
+ private System.Nullable _BeUnderConstructionNum;
+
+ private System.Nullable _ShutdownNum;
+
+ private System.Nullable _JoinConstructionPersonNum;
+
+ private System.Nullable _MajorProjectsUnderConstructionNum;
+
+ private System.Nullable _TotalWorkingHour;
+
+ private System.Nullable _LostWorkingHour;
+
+ private System.Nullable _SafeWorkingHour;
+
+ private System.Nullable _SafeTrainNum;
+
+ private System.Nullable _SpecialTrainNum;
+
+ private System.Nullable _SpecialOperationTrainNum;
+
+ private System.Nullable _TotalEnergyConsumption;
+
+ private System.Nullable _IncomeComprehensiveEnergyConsumption;
+
+ private System.Nullable _NewWaterConsumption;
+
+ private System.Nullable _HeadOfficeInspectorGeneralNum;
+
+ private System.Nullable _HeadOfficeFullTimeNum;
+
+ private System.Nullable _BranchInspectorGeneralNum;
+
+ private System.Nullable _BranchFullTimeNum;
+
+ private System.Nullable _ProjectInspectorGeneralNum;
+
+ private System.Nullable _ProjectFullTimeNum;
+
+ private System.Nullable _ProjectSafetyMonitorNum;
+
+ private System.Nullable _SafetyInjectionEngineer;
+
+ private System.Nullable _CertificateANum;
+
+ private System.Nullable _CertificateBNum;
+
+ private System.Nullable _CertificateCNum;
+
+ private System.Nullable _SafetyCommitteeMeetingNum;
+
+ private System.Nullable _EnterpriseTopicsMeetingNum;
+
+ private System.Nullable _ProjectSafetyLeadingGroupMeetingNum;
+
+ private System.Nullable _ProjectSafetyMeetingNum;
+
+ private System.Nullable _CompanyLeadShiftCheckNum;
+
+ private System.Nullable _CompanyComprehensiveCheckNum;
+
+ private System.Nullable _CompanySpecialCheckNum;
+
+ private System.Nullable _ProjectLeadShiftCheckNum;
+
+ private System.Nullable _ProjectSpecialCheckNum;
+
+ private System.Nullable _ProjectMajorCheckNum;
+
+ private System.Nullable _NearMissNum;
+
+ private System.Nullable _RecordableEventNum;
+
+ private System.Nullable _GeneralAccidentNum;
+
+ private System.Nullable _MajorAccidentNum;
+
+ private System.Nullable _SeriousAccidentNum;
+
+ private System.Nullable _SpecialSeriousAccidentNum;
+
+ private System.Nullable _CompanyComprehensivePlanNum;
+
+ private System.Nullable _CompanySpecialPlanNum;
+
+ private System.Nullable _CompanyOnSiteDisposalPlan;
+
+ private System.Nullable _CompanyDrillNum;
+
+ private System.Nullable _ProjectComprehensivePlanNum;
+
+ private System.Nullable _ProjectSpecialPlanNum;
+
+ private System.Nullable _ProjectOnSiteDisposalPlan;
+
+ private System.Nullable _ProjectDrillNum;
+
+ private System.Nullable _CostExtract;
+
+ private System.Nullable _CostUse;
+
+ private System.Nullable _UseEquipmentNum;
+
+ private System.Nullable _SpecialEquipmentNum;
+
+ private System.Nullable _LicensesNum;
+
+ private System.Nullable _LicensesCloseNum;
+
+ private System.Nullable _GeneralClosedNum;
+
+ private System.Nullable _GeneralNotClosedNum;
+
+ private System.Nullable _MajorClosedNum;
+
+ private System.Nullable _MajorNotClosedNum;
+
+ private System.Nullable _GeneralRiskNum;
+
+ private System.Nullable _LowRiskNum;
+
+ private System.Nullable _MediumRiskNum;
+
+ private System.Nullable _HighRiskNum;
+
+ private System.Nullable _CompletedNum;
+
+ private System.Nullable _TrainPersonNum;
+
+ private System.Nullable _ConstructionNum;
+
+ private System.Nullable _FinishedNum;
+
+ private System.Nullable _SuperCompletedNum;
+
+ private System.Nullable _SuperTrainPersonNum;
+
+ private System.Nullable _SuperConstructionNum;
+
+ private System.Nullable _SuperFinishedNum;
+
+ private System.Nullable _EnvironmentalTrainNum;
+
+ private System.Nullable _HseTechnicalNum;
+
+ private System.Nullable _ArgumentNum;
+
+ private System.Nullable _SuperArgumentNum;
+
+ private System.Nullable _ProjectDrillPersonNum;
+
+ private System.Nullable _CompanyDrillPersonNum;
+
+ private System.Nullable _BranchLeadShiftCheckNum;
+
+ private System.Nullable _BranchComprehensiveCheckNum;
+
+ private System.Nullable _BranchSpecialCheckNum;
+
+ private System.Nullable _QualityPersonNum;
+
+ private System.Nullable _OperativesNum;
+
+ private System.Nullable _SuperOperativesNum;
+
+ private System.Nullable _BranchComprehensivePlanNum;
+
+ private System.Nullable _BranchSpecialPlanNum;
+
+ private System.Nullable _BranchOnSiteDisposalPlan;
+
+ private System.Nullable _BranchDrillNum;
+
+ private System.Nullable _BranchDrillPersonNum;
+
+ private System.Nullable _ProjectSubFullTimeNum;
+
+ private System.Nullable _TotalWorkNum;
+
+ public View_Project_HSSEData_HSSE()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(200)")]
+ public string ProjectName
+ {
+ get
+ {
+ return this._ProjectName;
+ }
+ set
+ {
+ if ((this._ProjectName != value))
+ {
+ this._ProjectName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortName", DbType="NVarChar(200)")]
+ public string ShortName
+ {
+ get
+ {
+ return this._ShortName;
+ }
+ set
+ {
+ if ((this._ShortName != value))
+ {
+ this._ShortName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string Id
+ {
+ get
+ {
+ return this._Id;
+ }
+ set
+ {
+ if ((this._Id != value))
+ {
+ this._Id = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
+ public string UnitId
+ {
+ get
+ {
+ return this._UnitId;
+ }
+ set
+ {
+ if ((this._UnitId != value))
+ {
+ this._UnitId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this._ProjectId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CollCropCode", DbType="NVarChar(50)")]
+ public string CollCropCode
+ {
+ get
+ {
+ return this._CollCropCode;
+ }
+ set
+ {
+ if ((this._CollCropCode != value))
+ {
+ this._CollCropCode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(50)")]
+ public string UnitName
+ {
+ get
+ {
+ return this._UnitName;
+ }
+ set
+ {
+ if ((this._UnitName != value))
+ {
+ this._UnitName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")]
+ public System.Nullable ReportDate
+ {
+ get
+ {
+ return this._ReportDate;
+ }
+ set
+ {
+ if ((this._ReportDate != value))
+ {
+ this._ReportDate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BeUnderConstructionNum", DbType="Int")]
+ public System.Nullable BeUnderConstructionNum
+ {
+ get
+ {
+ return this._BeUnderConstructionNum;
+ }
+ set
+ {
+ if ((this._BeUnderConstructionNum != value))
+ {
+ this._BeUnderConstructionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShutdownNum", DbType="Int")]
+ public System.Nullable ShutdownNum
+ {
+ get
+ {
+ return this._ShutdownNum;
+ }
+ set
+ {
+ if ((this._ShutdownNum != value))
+ {
+ this._ShutdownNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JoinConstructionPersonNum", DbType="Int")]
+ public System.Nullable JoinConstructionPersonNum
+ {
+ get
+ {
+ return this._JoinConstructionPersonNum;
+ }
+ set
+ {
+ if ((this._JoinConstructionPersonNum != value))
+ {
+ this._JoinConstructionPersonNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MajorProjectsUnderConstructionNum", DbType="Int")]
+ public System.Nullable MajorProjectsUnderConstructionNum
+ {
+ get
+ {
+ return this._MajorProjectsUnderConstructionNum;
+ }
+ set
+ {
+ if ((this._MajorProjectsUnderConstructionNum != value))
+ {
+ this._MajorProjectsUnderConstructionNum = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalWorkingHour", DbType="Int")]
+ public System.Nullable TotalWorkingHour
+ {
+ get
+ {
+ return this._TotalWorkingHour;
+ }
+ set
+ {
+ if ((this._TotalWorkingHour != value))
+ {
+ this._TotalWorkingHour = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LostWorkingHour", DbType="Int")]
+ public System.Nullable LostWorkingHour
+ {
+ get
+ {
+ return this._LostWorkingHour;
+ }
+ set
+ {
+ if ((this._LostWorkingHour != value))
+ {
+ this._LostWorkingHour = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeWorkingHour", DbType="Int")]
+ public System.Nullable SafeWorkingHour
+ {
+ get
+ {
+ return this._SafeWorkingHour;
+ }
+ set
+ {
+ if ((this._SafeWorkingHour != value))
+ {
+ this._SafeWorkingHour = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafeTrainNum", DbType="Int")]
+ public System.Nullable