增加焊接数据录入页面
This commit is contained in:
parent
e9e7949712
commit
8433bb4ad7
|
@ -0,0 +1,73 @@
|
|||
INSERT Sys_Menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES ( N'90267927-3469-48E9-BF02-C4987A6660F7',N'焊接数据录入','HJGL/FL/HJGLData.aspx',80,N'0',N'Menu_HJGL',0,1,1)
|
||||
GO
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'5DCCAAE0-5709-430D-A889-837466CF3B10',N'90267927-3469-48E9-BF02-C4987A6660F7',N'增加',1)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'C444B83C-96B8-4593-BACE-0AD2E47717CC',N'90267927-3469-48E9-BF02-C4987A6660F7',N'修改',2)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'36F79E8F-FA65-424C-BE5C-74EE17758668',N'90267927-3469-48E9-BF02-C4987A6660F7',N'删除',3)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'23439251-DAF5-459E-870B-0D868F306D21',N'90267927-3469-48E9-BF02-C4987A6660F7',N'保存',4)
|
||||
|
||||
GO
|
||||
|
||||
delete from Sys_ButtonToMenu where MenuId='6035E549-66FF-4B6D-989B-BE99C9EF5EB7'
|
||||
delete from Sys_Menu where MenuId='6035E549-66FF-4B6D-989B-BE99C9EF5EB7'
|
||||
GO
|
||||
|
||||
CREATE TABLE [dbo].[HJGL_FL_Data](
|
||||
[Id] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[TotalWeldQuantity] [nvarchar](50) NULL,
|
||||
[TotalCompleted] [nvarchar](50) NULL,
|
||||
[OneTimeFilmAmount] [nvarchar](50) NULL,
|
||||
[OneTimeFilmQualifiedAmount] [nvarchar](50) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_HJGL_FL_Data] 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]
|
||||
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[HJGL_FL_Data] WITH CHECK ADD CONSTRAINT [FK_HJGL_FL_Data_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[HJGL_FL_Data] CHECK CONSTRAINT [FK_HJGL_FL_Data_Base_Project]
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[HJGL_FL_Data] WITH CHECK ADD CONSTRAINT [FK_HJGL_FL_Data_Sys_User] FOREIGN KEY([CompileMan])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[HJGL_FL_Data] CHECK CONSTRAINT [FK_HJGL_FL_Data_Sys_User]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'Id'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总达因数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'TotalWeldQuantity'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'完成达因数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'TotalCompleted'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总片数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'OneTimeFilmAmount'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合格片数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'OneTimeFilmQualifiedAmount'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'辅龙焊接录入数据' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'HJGL_FL_Data'
|
||||
GO
|
||||
|
||||
|
|
@ -33,6 +33,16 @@ GO
|
|||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'407DB594-D61C-4349-AE52-B5D635FF8C2A',N'6035E549-66FF-4B6D-989B-BE99C9EF5EB7',N'ɾ³ý',3)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'36119E83-A0DF-4955-A076-E58EDFD2ECD6',N'6035E549-66FF-4B6D-989B-BE99C9EF5EB7',N'±£´æ',4)
|
||||
|
||||
GO
|
||||
|
||||
INSERT Sys_Menu (MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES ( N'90267927-3469-48E9-BF02-C4987A6660F7',N'焊接数据录入','HJGL/FL/HJGLData.aspx',80,N'0',N'Menu_HJGL',0,1,1)
|
||||
GO
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'5DCCAAE0-5709-430D-A889-837466CF3B10',N'90267927-3469-48E9-BF02-C4987A6660F7',N'增加',1)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'C444B83C-96B8-4593-BACE-0AD2E47717CC',N'90267927-3469-48E9-BF02-C4987A6660F7',N'修改',2)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'36F79E8F-FA65-424C-BE5C-74EE17758668',N'90267927-3469-48E9-BF02-C4987A6660F7',N'删除',3)
|
||||
INSERT Sys_ButtonToMenu (ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES ( N'23439251-DAF5-459E-870B-0D868F306D21',N'90267927-3469-48E9-BF02-C4987A6660F7',N'保存',4)
|
||||
|
||||
GO
|
||||
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
--VALUES('60F4B988-4D1D-48D6-A959-2EA4BD2978A1','»ù´¡ÉèÖÃ','',10,'0','Menu_HJGL',0,0,1)
|
||||
|
|
|
@ -321,6 +321,7 @@
|
|||
<Compile Include="HJGL\BaseInfo\Base_WeldingLocationServie.cs" />
|
||||
<Compile Include="HJGL\BaseInfo\Base_WeldingMethodService.cs" />
|
||||
<Compile Include="HJGL\BaseInfo\Base_WeldTypeService.cs" />
|
||||
<Compile Include="HJGL\FL\FLDataService.cs" />
|
||||
<Compile Include="HJGL\HotProcessHard\Hard_ReportService.cs" />
|
||||
<Compile Include="HJGL\HotProcessHard\Hard_TrustItemService.cs" />
|
||||
<Compile Include="HJGL\HotProcessHard\Hard_TrustService.cs" />
|
||||
|
|
|
@ -3731,6 +3731,10 @@ namespace BLL
|
|||
/// </summary>
|
||||
public const string ForeignControlPointMenuId = "FCD749CB-C52A-4C88-BB9D-02B511A2CC24";
|
||||
|
||||
/// <summary>
|
||||
/// 焊接数据
|
||||
/// </summary>
|
||||
public const string FLDataMenuId = "90267927-3469-48E9-BF02-C4987A6660F7";
|
||||
|
||||
/// <summary>
|
||||
/// 项目资料库
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class FLDataService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="specialDataId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.HJGL_FL_Data GetDataById(string Id)
|
||||
{
|
||||
return Funs.DB.HJGL_FL_Data.FirstOrDefault(e => e.Id == Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="Data"></param>
|
||||
public static void AddData(Model.HJGL_FL_Data Data)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FL_Data newData = new Model.HJGL_FL_Data();
|
||||
newData.Id = Data.Id;
|
||||
newData.ProjectId = Data.ProjectId;
|
||||
newData.TotalWeldQuantity = Data.TotalWeldQuantity;
|
||||
newData.TotalCompleted = Data.TotalCompleted;
|
||||
newData.OneTimeFilmAmount = Data.OneTimeFilmAmount;
|
||||
newData.OneTimeFilmQualifiedAmount = Data.OneTimeFilmQualifiedAmount;
|
||||
newData.CompileMan = Data.CompileMan;
|
||||
newData.CompileDate = Data.CompileDate;
|
||||
db.HJGL_FL_Data.InsertOnSubmit(newData);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="Data"></param>
|
||||
public static void UpdateData(Model.HJGL_FL_Data Data)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FL_Data newData = db.HJGL_FL_Data.FirstOrDefault(e => e.Id == Data.Id);
|
||||
if (newData != null)
|
||||
{
|
||||
newData.ProjectId = Data.ProjectId;
|
||||
newData.TotalWeldQuantity = Data.TotalWeldQuantity;
|
||||
newData.TotalCompleted = Data.TotalCompleted;
|
||||
newData.OneTimeFilmAmount = Data.OneTimeFilmAmount;
|
||||
newData.OneTimeFilmQualifiedAmount = Data.OneTimeFilmQualifiedAmount;
|
||||
newData.CompileMan = Data.CompileMan;
|
||||
newData.CompileDate = Data.CompileDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除资料发放登记
|
||||
/// </summary>
|
||||
/// <param name="specialDataId"></param>
|
||||
public static void DeleteData(string Id)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.HJGL_FL_Data Data = db.HJGL_FL_Data.FirstOrDefault(e => e.Id == Id);
|
||||
if (Data != null)
|
||||
{
|
||||
db.HJGL_FL_Data.DeleteOnSubmit(Data);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -68,7 +68,7 @@
|
|||
<asp:Label ID="Label4" runat="server" Text='<%# Count3(Eval("ProjectId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="Count3" Width="120px" HeaderText="合格片数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
<f:TemplateField ColumnID="Count4" Width="120px" HeaderText="合格片数" HeaderTextAlign="Center" TextAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Count4(Eval("ProjectId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
|
|
|
@ -176,6 +176,17 @@ namespace FineUIPro.Web.DataShow
|
|||
cout1 += Funs.GetNewDecimalOrZero(item.TotalWeldQuantity);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var getD2 = (from x in Funs.DB.HJGL_FL_Data
|
||||
where x.ProjectId == projectId.ToString()
|
||||
orderby x.CompileDate descending
|
||||
select x).FirstOrDefault();
|
||||
if (getD2 != null)
|
||||
{
|
||||
cout1 = Funs.GetNewDecimalOrZero(getD2.TotalWeldQuantity);
|
||||
}
|
||||
}
|
||||
}
|
||||
return cout1;
|
||||
}
|
||||
|
@ -192,10 +203,6 @@ namespace FineUIPro.Web.DataShow
|
|||
{
|
||||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
//var getD1 = from x in Funs.DB.PW_JointInfo
|
||||
// join y in Funs.DB.BO_WeldReportMain on x.DReportID equals y.DReportID
|
||||
// where x.ProjectId == projectId.ToString()
|
||||
// select new { x.JOT_DoneDin, y.JOT_WeldDate };
|
||||
var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity
|
||||
where x.ProjectId == projectId.ToString()
|
||||
select x;
|
||||
|
@ -206,18 +213,17 @@ namespace FineUIPro.Web.DataShow
|
|||
cout1 += Funs.GetNewDecimalOrZero(item.TotalCompleted);
|
||||
}
|
||||
}
|
||||
//if (datetime1.HasValue)
|
||||
//{
|
||||
// getD1 = getD1.Where(x => x.JOT_WeldDate >= datetime1);
|
||||
//}
|
||||
//if (datetime2.HasValue)
|
||||
//{
|
||||
// getD1 = getD1.Where(x => x.JOT_WeldDate <= datetime2);
|
||||
//}
|
||||
//if (getD1.Count() > 0)
|
||||
//{
|
||||
// cout1 += getD1.Sum(x => x.JOT_DoneDin ?? 0);
|
||||
//}
|
||||
else
|
||||
{
|
||||
var getD2 = (from x in Funs.DB.HJGL_FL_Data
|
||||
where x.ProjectId == projectId.ToString()
|
||||
orderby x.CompileDate descending
|
||||
select x).FirstOrDefault();
|
||||
if (getD2 != null)
|
||||
{
|
||||
cout1 = Funs.GetNewDecimalOrZero(getD2.TotalCompleted);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return cout1;
|
||||
|
@ -235,23 +241,6 @@ namespace FineUIPro.Web.DataShow
|
|||
{
|
||||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
//var getC1 = from x in Funs.DB.CH_CheckItem
|
||||
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||
// where y.ProjectId == projectId.ToString()
|
||||
// select new { x.CHT_TotalFilm, y.CHT_CheckDate };
|
||||
|
||||
//if (datetime1.HasValue)
|
||||
//{
|
||||
// getC1 = getC1.Where(x => x.CHT_CheckDate >= datetime1);
|
||||
//}
|
||||
//if (datetime2.HasValue)
|
||||
//{
|
||||
// getC1 = getC1.Where(x => x.CHT_CheckDate <= datetime2);
|
||||
//}
|
||||
//if (getC1.Count() > 0)
|
||||
//{
|
||||
// cout1 = getC1.Sum(x => x.CHT_TotalFilm ?? 0);
|
||||
//}
|
||||
var getD1 = from x in Funs.DB.HJGL_FL_NdtList
|
||||
where x.ProjectId == projectId.ToString()
|
||||
select x;
|
||||
|
@ -262,7 +251,17 @@ namespace FineUIPro.Web.DataShow
|
|||
cout1 += Funs.GetNewIntOrZero(item.OneTimeFilmAmount);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
var getD2 = (from x in Funs.DB.HJGL_FL_Data
|
||||
where x.ProjectId == projectId.ToString()
|
||||
orderby x.CompileDate descending
|
||||
select x).FirstOrDefault();
|
||||
if (getD2 != null)
|
||||
{
|
||||
cout1 = Funs.GetNewDecimalOrZero(getD2.OneTimeFilmAmount);
|
||||
}
|
||||
}
|
||||
}
|
||||
return cout1;
|
||||
}
|
||||
|
@ -279,23 +278,6 @@ namespace FineUIPro.Web.DataShow
|
|||
{
|
||||
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||
//var getC1 = from x in Funs.DB.CH_CheckItem
|
||||
// join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID
|
||||
// where y.ProjectId == projectId.ToString()
|
||||
// select new { x.CHT_PassFilm, y.CHT_CheckDate };
|
||||
|
||||
//if (datetime1.HasValue)
|
||||
//{
|
||||
// getC1 = getC1.Where(x => x.CHT_CheckDate >= datetime1);
|
||||
//}
|
||||
//if (datetime2.HasValue)
|
||||
//{
|
||||
// getC1 = getC1.Where(x => x.CHT_CheckDate <= datetime2);
|
||||
//}
|
||||
//if (getC1.Count() > 0)
|
||||
//{
|
||||
// cout1 = getC1.Sum(x => x.CHT_PassFilm ?? 0);
|
||||
//}
|
||||
var getD1 = from x in Funs.DB.HJGL_FL_NdtList
|
||||
where x.ProjectId == projectId.ToString()
|
||||
select x;
|
||||
|
@ -306,7 +288,17 @@ namespace FineUIPro.Web.DataShow
|
|||
cout1 += Funs.GetNewIntOrZero(item.OneTimeFilmQualifiedAmount);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
var getD2 = (from x in Funs.DB.HJGL_FL_Data
|
||||
where x.ProjectId == projectId.ToString()
|
||||
orderby x.CompileDate descending
|
||||
select x).FirstOrDefault();
|
||||
if (getD2 != null)
|
||||
{
|
||||
cout1 = Funs.GetNewDecimalOrZero(getD2.OneTimeFilmQualifiedAmount);
|
||||
}
|
||||
}
|
||||
}
|
||||
return cout1;
|
||||
}
|
||||
|
|
|
@ -4196,3 +4196,56 @@ IP地址:::1
|
|||
出错时间:06/08/2023 20:35:05
|
||||
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
|
||||
在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
|
||||
在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
|
||||
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
|
||||
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
|
||||
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
||||
出错时间:06/09/2023 15:34:13
|
||||
出错文件:http://localhost:9733/res.axd?font=lib.fa.fontawesome.woff2&t=636128671740000000
|
||||
IP地址:::1
|
||||
|
||||
出错时间:06/09/2023 15:34:13
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:SqlException
|
||||
错误信息:列名 'CompileManName' 无效。
|
||||
错误堆栈:
|
||||
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||
在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
|
||||
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
|
||||
在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
|
||||
在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
|
||||
在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\SQLHelper.cs:行号 311
|
||||
在 FineUIPro.Web.HJGL.FL.HJGLData.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HJGL\FL\HJGLData.aspx.cs:行号 34
|
||||
在 FineUIPro.Web.HJGL.FL.HJGLData.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HJGL\FL\HJGLData.aspx.cs:行号 23
|
||||
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
|
||||
在 System.EventHandler.Invoke(Object sender, EventArgs e)
|
||||
在 System.Web.UI.Control.OnLoad(EventArgs e)
|
||||
在 System.Web.UI.Control.LoadRecursive()
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:06/09/2023 17:52:24
|
||||
出错文件:http://localhost:9733/HJGL/FL/HJGLData.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:06/09/2023 17:52:24
|
||||
|
||||
|
|
|
@ -598,6 +598,8 @@
|
|||
<Content Include="HJGL\BaseInfo\WeldingMethodEdit.aspx" />
|
||||
<Content Include="HJGL\BaseInfo\WeldingMethodView.aspx" />
|
||||
<Content Include="HJGL\BaseInfo\WeldView.aspx" />
|
||||
<Content Include="HJGL\FL\HJGLData.aspx" />
|
||||
<Content Include="HJGL\FL\HJGLDataEdit.aspx" />
|
||||
<Content Include="HJGL\FL\NdtList.aspx" />
|
||||
<Content Include="HJGL\FL\OneOKRate.aspx" />
|
||||
<Content Include="HJGL\FL\PressurePackageList.aspx" />
|
||||
|
@ -8603,6 +8605,20 @@
|
|||
<Compile Include="HJGL\BaseInfo\WeldView.aspx.designer.cs">
|
||||
<DependentUpon>WeldView.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\FL\HJGLData.aspx.cs">
|
||||
<DependentUpon>HJGLData.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\FL\HJGLData.aspx.designer.cs">
|
||||
<DependentUpon>HJGLData.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\FL\HJGLDataEdit.aspx.cs">
|
||||
<DependentUpon>HJGLDataEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\FL\HJGLDataEdit.aspx.designer.cs">
|
||||
<DependentUpon>HJGLDataEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\FL\NdtList.aspx.cs">
|
||||
<DependentUpon>NdtList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HJGLData.aspx.cs" Inherits="FineUIPro.Web.HJGL.FL.HJGLData" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>焊接数据</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
|
||||
<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" ShowHeader="false" Title="焊接数据" EnableCollapse="true" ForceFit="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" EnableColumnLines="true" ClicksToEdit="2" DataIDField="Id" AllowSorting="true"
|
||||
SortField="CompileDate" SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" Icon="Add" EnablePostBack="true" runat="server" OnClick="btnNew_Click" ToolTip="新增" Hidden="true">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField ColumnID="TotalWeldQuantity" DataField="TotalWeldQuantity" FieldType="String" HeaderText="总达因数" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TotalCompleted" DataField="TotalCompleted" FieldType="String" HeaderText="完成达因数" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="OneTimeFilmAmount" DataField="OneTimeFilmAmount" FieldType="String" HeaderText="总片数" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="OneTimeFilmQualifiedAmount" DataField="OneTimeFilmQualifiedAmount" FieldType="String" HeaderText="合格片数" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="CompileManName" DataField="CompileManName" FieldType="String" HeaderText="编制人" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="CompileDate" DataField="CompileDate" FieldType="Date" Renderer="Date" HeaderText="编制日期" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<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>
|
||||
</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="900px" Height="460px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Parent" EnableResize="false" runat="server"
|
||||
IsModal="true" Width="700px" Height="500px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click" Hidden="true">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?" OnClick="btnMenuDel_Click" Hidden="true">
|
||||
</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,204 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.FL
|
||||
{
|
||||
public partial class HJGLData : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
GetButtonPower();
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
public void BindGrid()
|
||||
{
|
||||
string strSql = @"select Id,TotalWeldQuantity, TotalCompleted, OneTimeFilmAmount, OneTimeFilmQualifiedAmount,
|
||||
CompileMan, us.UserName as CompileManName,CompileDate
|
||||
from HJGL_FL_Data C
|
||||
left join Sys_User us on C.CompileMan=us.UserId
|
||||
where C.ProjectId = @ProjectId";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 分页、排序
|
||||
/// <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 Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
Grid1.SortDirection = e.SortDirection;
|
||||
Grid1.SortField = e.SortField;
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 增加
|
||||
/// <summary>
|
||||
/// 新增按钮事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HJGLDataEdit.aspx", "编辑 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 编辑
|
||||
/// <summary>
|
||||
/// 右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuModify_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HJGLDataEdit.aspx?Id={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuModify_Click(sender, e);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除
|
||||
/// <summary>
|
||||
/// 右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var data = BLL.FLDataService.GetDataById(rowID);
|
||||
if (data != null)
|
||||
{
|
||||
BLL.FLDataService.DeleteData(rowID);
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
if (Request.Params["value"] == BLL.Const._Null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.FLDataMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuModify.Hidden = false;
|
||||
this.Grid1.EnableRowDoubleClickEvent = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Grid1.EnableRowDoubleClickEvent = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDel.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.FL {
|
||||
|
||||
|
||||
public partial class HJGLData {
|
||||
|
||||
/// <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>
|
||||
/// ToolSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar ToolSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <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;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDel;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HJGLDataEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.FL.HJGLDataEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtTotalWeldQuantity" runat="server" Label="总达因数" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtTotalCompleted" runat="server" Label="完成达因数" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtOneTimeFilmAmount" runat="server" Label="总片数" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtOneTimeFilmQualifiedAmount" runat="server" Label="合格片数" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ToolTip="保存" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,83 @@
|
|||
using BLL;
|
||||
using BLL.CQMS.Comprehensive;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.FL
|
||||
{
|
||||
public partial class HJGLDataEdit : PageBase
|
||||
{
|
||||
#region 定义变量
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Id"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Id"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.Id = Request.Params["Id"];
|
||||
Model.HJGL_FL_Data data = BLL.FLDataService.GetDataById(this.Id);
|
||||
if (data != null)
|
||||
{
|
||||
this.Id = data.Id;
|
||||
this.txtTotalWeldQuantity.Text = data.TotalWeldQuantity;
|
||||
this.txtTotalCompleted.Text = data.TotalCompleted;
|
||||
this.txtTotalWeldQuantity.Text = data.TotalWeldQuantity;
|
||||
this.txtOneTimeFilmAmount.Text = data.OneTimeFilmAmount;
|
||||
this.txtOneTimeFilmQualifiedAmount.Text = data.OneTimeFilmQualifiedAmount;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.HJGL_FL_Data data = new Model.HJGL_FL_Data();
|
||||
data.ProjectId = this.CurrUser.LoginProjectId;
|
||||
data.TotalWeldQuantity = this.txtTotalWeldQuantity.Text.Trim();
|
||||
data.TotalCompleted = this.txtTotalCompleted.Text.Trim();
|
||||
data.OneTimeFilmAmount = this.txtOneTimeFilmAmount.Text.Trim();
|
||||
data.OneTimeFilmQualifiedAmount = this.txtOneTimeFilmQualifiedAmount.Text.Trim();
|
||||
data.CompileMan = this.CurrUser.UserId;
|
||||
data.CompileDate = DateTime.Now;
|
||||
if (string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
data.Id = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDetails));
|
||||
BLL.FLDataService.AddData(data);
|
||||
}
|
||||
else
|
||||
{
|
||||
data.Id = this.Id;
|
||||
BLL.FLDataService.UpdateData(data);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.FL {
|
||||
|
||||
|
||||
public partial class HJGLDataEdit {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalWeldQuantity 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTotalWeldQuantity;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalCompleted 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTotalCompleted;
|
||||
|
||||
/// <summary>
|
||||
/// txtOneTimeFilmAmount 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOneTimeFilmAmount;
|
||||
|
||||
/// <summary>
|
||||
/// txtOneTimeFilmQualifiedAmount 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOneTimeFilmQualifiedAmount;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
}
|
||||
}
|
|
@ -6,5 +6,5 @@
|
|||
<TreeNode id="5F999DDA-9C8A-452F-A313-3270BA76C5F8" Text="无损检测量表" NavigateUrl="HJGL/FL/NdtList.aspx"></TreeNode>
|
||||
<TreeNode id="B1A3F19F-2512-4F71-A2E3-3F1C436CC624" Text="试压包量表" NavigateUrl="HJGL/FL/PressurePackageList.aspx"></TreeNode>
|
||||
<TreeNode id="FD7A2F80-329A-4306-9887-712F3CCEA392" Text="尾项清单量表" NavigateUrl="HJGL/FL/TailItemList.aspx"></TreeNode>
|
||||
<TreeNode id="6035E549-66FF-4B6D-989B-BE99C9EF5EB7" Text="焊接数据" NavigateUrl="ZHGL/DataSync/ProjectDataSync/Project_HJGLData_HJGL.aspx"></TreeNode>
|
||||
<TreeNode id="90267927-3469-48E9-BF02-C4987A6660F7" Text="焊接数据录入" NavigateUrl="HJGL/FL/HJGLData.aspx"></TreeNode>
|
||||
</Tree>
|
|
@ -938,6 +938,9 @@ namespace Model
|
|||
partial void InsertHJGL_FirstOKRate(HJGL_FirstOKRate instance);
|
||||
partial void UpdateHJGL_FirstOKRate(HJGL_FirstOKRate instance);
|
||||
partial void DeleteHJGL_FirstOKRate(HJGL_FirstOKRate instance);
|
||||
partial void InsertHJGL_FL_Data(HJGL_FL_Data instance);
|
||||
partial void UpdateHJGL_FL_Data(HJGL_FL_Data instance);
|
||||
partial void DeleteHJGL_FL_Data(HJGL_FL_Data instance);
|
||||
partial void InsertHJGL_FL_NdtList(HJGL_FL_NdtList instance);
|
||||
partial void UpdateHJGL_FL_NdtList(HJGL_FL_NdtList instance);
|
||||
partial void DeleteHJGL_FL_NdtList(HJGL_FL_NdtList instance);
|
||||
|
@ -4795,6 +4798,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<HJGL_FL_Data> HJGL_FL_Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<HJGL_FL_Data>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<HJGL_FL_NdtList> HJGL_FL_NdtList
|
||||
{
|
||||
get
|
||||
|
@ -25001,6 +25012,8 @@ namespace Model
|
|||
|
||||
private EntitySet<HJGL_FirstOKRate> _HJGL_FirstOKRate;
|
||||
|
||||
private EntitySet<HJGL_FL_Data> _HJGL_FL_Data;
|
||||
|
||||
private EntitySet<HJGL_FL_NdtList> _HJGL_FL_NdtList;
|
||||
|
||||
private EntitySet<HJGL_FL_OneOKRate> _HJGL_FL_OneOKRate;
|
||||
|
@ -25533,6 +25546,7 @@ namespace Model
|
|||
this._HJGL_Batch_BatchTrust = new EntitySet<HJGL_Batch_BatchTrust>(new Action<HJGL_Batch_BatchTrust>(this.attach_HJGL_Batch_BatchTrust), new Action<HJGL_Batch_BatchTrust>(this.detach_HJGL_Batch_BatchTrust));
|
||||
this._HJGL_FinishRate = new EntitySet<HJGL_FinishRate>(new Action<HJGL_FinishRate>(this.attach_HJGL_FinishRate), new Action<HJGL_FinishRate>(this.detach_HJGL_FinishRate));
|
||||
this._HJGL_FirstOKRate = new EntitySet<HJGL_FirstOKRate>(new Action<HJGL_FirstOKRate>(this.attach_HJGL_FirstOKRate), new Action<HJGL_FirstOKRate>(this.detach_HJGL_FirstOKRate));
|
||||
this._HJGL_FL_Data = new EntitySet<HJGL_FL_Data>(new Action<HJGL_FL_Data>(this.attach_HJGL_FL_Data), new Action<HJGL_FL_Data>(this.detach_HJGL_FL_Data));
|
||||
this._HJGL_FL_NdtList = new EntitySet<HJGL_FL_NdtList>(new Action<HJGL_FL_NdtList>(this.attach_HJGL_FL_NdtList), new Action<HJGL_FL_NdtList>(this.detach_HJGL_FL_NdtList));
|
||||
this._HJGL_FL_OneOKRate = new EntitySet<HJGL_FL_OneOKRate>(new Action<HJGL_FL_OneOKRate>(this.attach_HJGL_FL_OneOKRate), new Action<HJGL_FL_OneOKRate>(this.detach_HJGL_FL_OneOKRate));
|
||||
this._HJGL_FL_PressurePackageList = new EntitySet<HJGL_FL_PressurePackageList>(new Action<HJGL_FL_PressurePackageList>(this.attach_HJGL_FL_PressurePackageList), new Action<HJGL_FL_PressurePackageList>(this.detach_HJGL_FL_PressurePackageList));
|
||||
|
@ -28057,6 +28071,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_FL_Data_Base_Project", Storage="_HJGL_FL_Data", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<HJGL_FL_Data> HJGL_FL_Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HJGL_FL_Data;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._HJGL_FL_Data.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_FL_NdtList_Base_Project", Storage="_HJGL_FL_NdtList", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<HJGL_FL_NdtList> HJGL_FL_NdtList
|
||||
{
|
||||
|
@ -31662,6 +31689,18 @@ namespace Model
|
|||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_HJGL_FL_Data(HJGL_FL_Data entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_HJGL_FL_Data(HJGL_FL_Data entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_HJGL_FL_NdtList(HJGL_FL_NdtList entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
@ -149173,6 +149212,318 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HJGL_FL_Data")]
|
||||
public partial class HJGL_FL_Data : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _Id;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _TotalWeldQuantity;
|
||||
|
||||
private string _TotalCompleted;
|
||||
|
||||
private string _OneTimeFilmAmount;
|
||||
|
||||
private string _OneTimeFilmQualifiedAmount;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _CompileDate;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
#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 OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnTotalWeldQuantityChanging(string value);
|
||||
partial void OnTotalWeldQuantityChanged();
|
||||
partial void OnTotalCompletedChanging(string value);
|
||||
partial void OnTotalCompletedChanged();
|
||||
partial void OnOneTimeFilmAmountChanging(string value);
|
||||
partial void OnOneTimeFilmAmountChanged();
|
||||
partial void OnOneTimeFilmQualifiedAmountChanging(string value);
|
||||
partial void OnOneTimeFilmQualifiedAmountChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
#endregion
|
||||
|
||||
public HJGL_FL_Data()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(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(Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
if (this._Base_Project.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectId = value;
|
||||
this.SendPropertyChanged("ProjectId");
|
||||
this.OnProjectIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalWeldQuantity", DbType="NVarChar(50)")]
|
||||
public string TotalWeldQuantity
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalWeldQuantity;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalWeldQuantity != value))
|
||||
{
|
||||
this.OnTotalWeldQuantityChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TotalWeldQuantity = value;
|
||||
this.SendPropertyChanged("TotalWeldQuantity");
|
||||
this.OnTotalWeldQuantityChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalCompleted", DbType="NVarChar(50)")]
|
||||
public string TotalCompleted
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalCompleted;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalCompleted != value))
|
||||
{
|
||||
this.OnTotalCompletedChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TotalCompleted = value;
|
||||
this.SendPropertyChanged("TotalCompleted");
|
||||
this.OnTotalCompletedChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OneTimeFilmAmount", DbType="NVarChar(50)")]
|
||||
public string OneTimeFilmAmount
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._OneTimeFilmAmount;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._OneTimeFilmAmount != value))
|
||||
{
|
||||
this.OnOneTimeFilmAmountChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._OneTimeFilmAmount = value;
|
||||
this.SendPropertyChanged("OneTimeFilmAmount");
|
||||
this.OnOneTimeFilmAmountChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OneTimeFilmQualifiedAmount", DbType="NVarChar(50)")]
|
||||
public string OneTimeFilmQualifiedAmount
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._OneTimeFilmQualifiedAmount;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._OneTimeFilmQualifiedAmount != value))
|
||||
{
|
||||
this.OnOneTimeFilmQualifiedAmountChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._OneTimeFilmQualifiedAmount = value;
|
||||
this.SendPropertyChanged("OneTimeFilmQualifiedAmount");
|
||||
this.OnOneTimeFilmQualifiedAmountChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
||||
public string CompileMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileMan != value))
|
||||
{
|
||||
if (this._Sys_User.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnCompileManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileMan = value;
|
||||
this.SendPropertyChanged("CompileMan");
|
||||
this.OnCompileManChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileDate != value))
|
||||
{
|
||||
this.OnCompileDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileDate = value;
|
||||
this.SendPropertyChanged("CompileDate");
|
||||
this.OnCompileDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_FL_Data_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Project.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Project previousValue = this._Base_Project.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Project.Entity = null;
|
||||
previousValue.HJGL_FL_Data.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.HJGL_FL_Data.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_FL_Data_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
|
||||
public Sys_User Sys_User
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Sys_User.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Sys_User previousValue = this._Sys_User.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Sys_User.Entity = null;
|
||||
previousValue.HJGL_FL_Data.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.HJGL_FL_Data.Add(this);
|
||||
this._CompileMan = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._CompileMan = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Sys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.HJGL_FL_NdtList")]
|
||||
public partial class HJGL_FL_NdtList : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
@ -318889,6 +319240,8 @@ namespace Model
|
|||
|
||||
private EntitySet<Hazard_HazardList> _Hazard_HazardList_Sys_User1;
|
||||
|
||||
private EntitySet<HJGL_FL_Data> _HJGL_FL_Data;
|
||||
|
||||
private EntitySet<InApproveManager_EquipmentIn> _InApproveManager_EquipmentIn;
|
||||
|
||||
private EntitySet<InApproveManager_EquipmentOut> _InApproveManager_EquipmentOut;
|
||||
|
@ -319552,6 +319905,7 @@ namespace Model
|
|||
this._Hazard_EnvironmentalRiskList_Sys_User1 = new EntitySet<Hazard_EnvironmentalRiskList>(new Action<Hazard_EnvironmentalRiskList>(this.attach_Hazard_EnvironmentalRiskList_Sys_User1), new Action<Hazard_EnvironmentalRiskList>(this.detach_Hazard_EnvironmentalRiskList_Sys_User1));
|
||||
this._Hazard_HazardList = new EntitySet<Hazard_HazardList>(new Action<Hazard_HazardList>(this.attach_Hazard_HazardList), new Action<Hazard_HazardList>(this.detach_Hazard_HazardList));
|
||||
this._Hazard_HazardList_Sys_User1 = new EntitySet<Hazard_HazardList>(new Action<Hazard_HazardList>(this.attach_Hazard_HazardList_Sys_User1), new Action<Hazard_HazardList>(this.detach_Hazard_HazardList_Sys_User1));
|
||||
this._HJGL_FL_Data = new EntitySet<HJGL_FL_Data>(new Action<HJGL_FL_Data>(this.attach_HJGL_FL_Data), new Action<HJGL_FL_Data>(this.detach_HJGL_FL_Data));
|
||||
this._InApproveManager_EquipmentIn = new EntitySet<InApproveManager_EquipmentIn>(new Action<InApproveManager_EquipmentIn>(this.attach_InApproveManager_EquipmentIn), new Action<InApproveManager_EquipmentIn>(this.detach_InApproveManager_EquipmentIn));
|
||||
this._InApproveManager_EquipmentOut = new EntitySet<InApproveManager_EquipmentOut>(new Action<InApproveManager_EquipmentOut>(this.attach_InApproveManager_EquipmentOut), new Action<InApproveManager_EquipmentOut>(this.detach_InApproveManager_EquipmentOut));
|
||||
this._InApproveManager_EquipmentQualityIn = new EntitySet<InApproveManager_EquipmentQualityIn>(new Action<InApproveManager_EquipmentQualityIn>(this.attach_InApproveManager_EquipmentQualityIn), new Action<InApproveManager_EquipmentQualityIn>(this.detach_InApproveManager_EquipmentQualityIn));
|
||||
|
@ -322305,6 +322659,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_FL_Data_Sys_User", Storage="_HJGL_FL_Data", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<HJGL_FL_Data> HJGL_FL_Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HJGL_FL_Data;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._HJGL_FL_Data.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_EquipmentIn_Sys_User", Storage="_InApproveManager_EquipmentIn", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<InApproveManager_EquipmentIn> InApproveManager_EquipmentIn
|
||||
{
|
||||
|
@ -326636,6 +327003,18 @@ namespace Model
|
|||
entity.ControllingPersonSys_User = null;
|
||||
}
|
||||
|
||||
private void attach_HJGL_FL_Data(HJGL_FL_Data entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_HJGL_FL_Data(HJGL_FL_Data entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_InApproveManager_EquipmentIn(InApproveManager_EquipmentIn entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
|
Loading…
Reference in New Issue