This commit is contained in:
parent
39b1c75359
commit
9c035444ea
|
|
@ -0,0 +1,185 @@
|
|||
|
||||
ALTER PROC [dbo].[HJGL_sp_StatisticsSampleTable]
|
||||
@projectId NVARCHAR(50) = NULL,
|
||||
@iso_isoNo VARCHAR(50) = NULL,
|
||||
@isHotPress bit = NULL,
|
||||
@Welded NVARCHAR(50) =NULL,
|
||||
@ndtType NVARCHAR(10) = NULL,
|
||||
@ndtResult NVARCHAR(20)=NULL
|
||||
|
||||
AS
|
||||
/*********统计样表 佘春生修改于2022.11.30********/
|
||||
SELECT
|
||||
JointInfo.JOT_ID,
|
||||
project.ProjectCode, --施工号
|
||||
IsoInfo.PressureTestPackageNo,--试压包编号
|
||||
IsoInfo.ISO_ID,
|
||||
IsoInfo.ISO_IsoNo, --管线号
|
||||
'1-'+IsoClass.ISC_IsoName+'-'+Ser.SER_Code+'-'+Steel.STE_Code AS ISO_Code, --管道编号
|
||||
IsoClass.ISC_IsoName, --管道等级
|
||||
Ser.SER_Name, --介质
|
||||
IsoInfo.ISO_DesignPress, --设计压力
|
||||
IsoInfo.PipeLineClass, --管道类别
|
||||
JointInfo.JOT_JointNo, --焊缝编号
|
||||
JointInfo.JOT_JointDesc, --焊缝规格
|
||||
JointInfo.JOT_Location, --焊接位置
|
||||
WeldMethod.WME_Name, --焊接方法
|
||||
JointType.JOTY_Code, --焊缝类型
|
||||
JointType.JOTY_Group,
|
||||
Sort1,Sort2,Sort3,Sort4,Sort5,
|
||||
IsoInfo.ISO_Insulator, --绝热类别
|
||||
IsoInfo.ISO_DesignTemperature, --设计温度
|
||||
IsoInfo.ISO_TestPress, --耐压试验
|
||||
(CASE WHEN WeldMat.WMT_MatCode IS NOT NULL AND WeldSilk.WMT_MatCode IS NOT NULL and WeldMat.WMT_MatCode!=WeldSilk.WMT_MatCode
|
||||
THEN WeldMat.WMT_MatCode + '/' + WeldSilk.WMT_MatCode
|
||||
WHEN WeldMat.WMT_MatCode IS NOT NULL THEN WeldMat.WMT_MatCode
|
||||
ELSE ISNULL(WeldSilk.WMT_MatCode,'') END) AS WeldMatSilkCode,
|
||||
(CASE WHEN JointInfo.JOT_CellWelder!=JointInfo.JOT_FloorWelder THEN Welder1.WED_Code+'/'+Welder2.WED_Code ELSE Welder1.WED_Code END) AS WED_Code,
|
||||
--Welder1.WED_Code,--焊工号
|
||||
Steel.STE_Code,--材质
|
||||
Steel.STE_Name,--材质类型
|
||||
NDTRate.NDTR_Name,--对应检测比例
|
||||
(CASE WHEN JointInfo.Jot_WeldingDate IS NOT NULL THEN JointInfo.Jot_WeldingDate
|
||||
ELSE WeldReportMain.JOT_WeldDate END) AS JOT_WeldDate, --焊接日期
|
||||
JointInfo.JOT_Size,--寸经
|
||||
Batch.BatchCode,--批次
|
||||
BatchDetail.NDT, --检测方式Id
|
||||
(CASE WHEN BatchDetail.PointType=2 THEN 'K' ELSE '' END) AS PointType,--扩拍号
|
||||
JointInfo.JOT_Dia,--直径
|
||||
JointInfo.JOT_Sch, --壁厚
|
||||
(CASE WHEN JointInfo.RT_TrustCode IS NOT NULL THEN '√' ELSE '' END) AS RTTrust, --RT委托
|
||||
JointInfo.RT_TrustCode, --RT委托单编号
|
||||
JointInfo.RT_TrustDate AS RTTrustDate, --射线检测委托日期
|
||||
|
||||
JointInfo.RTFeedbackDate, --射线检测反馈日期
|
||||
JointInfo.RT_States AS RTTestResult,--RT检测结果
|
||||
|
||||
(CASE WHEN JointInfo.UT_TrustCode IS NOT NULL THEN '√' ELSE '' END) AS UTTrust,--UT委托
|
||||
JointInfo.UT_States AS UTTestResult,--UT检测结果
|
||||
|
||||
(CASE WHEN JointInfo.MT_TrustCode IS NOT NULL THEN '√' ELSE '' END) AS MTTrust,--MT委托
|
||||
JointInfo.MT_States AS MTTestResult,--MT检测结果
|
||||
|
||||
(CASE WHEN JointInfo.PT_TrustCode IS NOT NULL THEN '√' ELSE '' END) AS PTTrust,--PT委托
|
||||
JointInfo.PT_TrustCode, --PT委托单编号
|
||||
JointInfo.PT_TrustDate, --PT委托日期
|
||||
JointInfo.PT_States AS PTTestResult,--PT检测结果
|
||||
|
||||
(CASE WHEN JointInfo.PAUT_TrustCode IS NOT NULL THEN '√' ELSE '' END) AS PAUTTrust, --PAUT委托
|
||||
JointInfo.PAUT_TrustCode, --PAUT委托单编号
|
||||
JointInfo.PAUT_TrustDate AS PAUTTrustDate, --PAUT检测委托日期
|
||||
JointInfo.PAUT_States AS PAUTTestResult,--PAUT检测结果
|
||||
|
||||
(CASE WHEN (SELECT TOP 1 UnableCheck FROM dbo.HJGL_CH_TrustItem c WHERE c.JOT_ID=JointInfo.JOT_ID )=1
|
||||
THEN '√' ELSE '' END) AS UnableCheck,
|
||||
(SELECT TOP 1 UnableCheckReason FROM dbo.HJGL_CH_TrustItem c WHERE c.JOT_ID=JointInfo.JOT_ID ) AS UnableCheckReason,
|
||||
|
||||
(CASE WHEN JointInfo.ProessTypes like '%4|5%' Then '消应力热处理,稳定化处理'
|
||||
WHEN JointInfo.ProessTypes like '%4%' Then '消应力热处理'
|
||||
WHEN JointInfo.ProessTypes like '%5%' Then '稳定化处理'
|
||||
ELSE '' END) AS ProessTypes,--热处理类型
|
||||
(case when JointInfo.ProessTypes like '%4%' or JointInfo.ProessTypes like '%5%' then 'Y'
|
||||
else 'N' end) as IS_Proess,
|
||||
(case when JointInfo.ProessTypes like '%1%' then 'Y'
|
||||
else '' end) as IS_Preheating,
|
||||
(select top 1 HotProessTrustCode from HJGL_CH_HotProessTrust t left join HJGL_CH_HotProessTrustItem i on t.HotProessTrustId=i.HotProessTrustId where i.JOT_ID=JointInfo.JOT_ID order by TrustDate desc)
|
||||
as HotProessTrustCode, --热处理委托编号
|
||||
JointInfo.HotProessTrustDate,--热处理委托时间
|
||||
JointInfo.HotResultDate,--热处理反馈时间
|
||||
(select top 1 HotHardCode from HJGL_CH_HardTestReport t left join HJGL_CH_HardTestReportItem i on t.HardTestReportId=i.HardTestReportId where i.JOT_ID=JointInfo.JOT_ID order by TestDate desc)
|
||||
as HotHardCode, --硬度委托编号
|
||||
JointInfo.HardTrustDate,--硬度委托时间
|
||||
JointInfo.HardResultDate,--硬度反馈时间
|
||||
(case when JointInfo.HardTestResultOK=1 then '合格' when JointInfo.HardTestResultOK=0 then '不合格' else '' end) as HardResult,--硬度检测结果
|
||||
BatchDetail.BatchDetailId
|
||||
FROM dbo.HJGL_PW_JointInfo AS JointInfo
|
||||
LEFT JOIN DBO.HJGL_BO_BatchDetail AS BatchDetail ON JointInfo.JOT_ID = BatchDetail.JOT_ID
|
||||
LEFT JOIN DBO.HJGL_PW_IsoInfo AS IsoInfo ON IsoInfo.ISO_ID = JointInfo.ISO_ID
|
||||
LEFT JOIN HJGL_BS_WeldMethod AS WeldMethod ON WeldMethod.WME_ID = JointInfo.WME_ID
|
||||
LEFT JOIN HJGL_BS_JointType AS JointType ON JointType.JOTY_ID=JointInfo.JOTY_ID
|
||||
LEFT JOIN DBO.HJGL_BO_Batch AS Batch ON Batch.BatchId = BatchDetail.BatchId
|
||||
LEFT JOIN dbo.Base_Project project ON project.ProjectId=JointInfo.ProjectId
|
||||
LEFT JOIN dbo.HJGL_BS_Steel AS Steel ON Steel.STE_ID = JointInfo.STE_ID
|
||||
LEFT JOIN DBO.HJGL_BS_Welder AS Welder1 ON Welder1.WED_ID = JointInfo.JOT_CellWelder
|
||||
LEFT JOIN DBO.HJGL_BS_Welder AS Welder2 ON Welder2.WED_ID = JointInfo.JOT_FloorWelder
|
||||
LEFT JOIN DBO.HJGL_BO_WeldReportMain AS WeldReportMain ON WeldReportMain.DReportID = JointInfo.DReportID
|
||||
LEFT JOIN dbo.HJGL_BS_NDTRate AS NDTRate ON NDTRate.NDTR_ID = JointInfo.NDTR_ID
|
||||
LEFT JOIN dbo.HJGL_BS_IsoClass AS IsoClass ON IsoClass.ISC_ID =IsoInfo.ISC_ID
|
||||
LEFT JOIN dbo.HJGL_BS_Service AS Ser ON Ser.SER_ID = IsoInfo.SER_ID
|
||||
LEFT JOIN HJGL_BS_WeldMaterial AS WeldMat ON WeldMat.WMT_ID=JointInfo.JOT_WeldMat
|
||||
LEFT JOIN HJGL_BS_WeldMaterial AS WeldSilk ON WeldSilk.WMT_ID=JointInfo.JOT_WeldSilk
|
||||
|
||||
WHERE (JointInfo.ProjectId=@projectId OR @projectId IS NULL)
|
||||
AND ((CASE WHEN @ndtType='RT' THEN JointInfo.RT_TrustCode
|
||||
WHEN @ndtType='PT' THEN JointInfo.PT_TrustCode
|
||||
WHEN @ndtType='MT' THEN JointInfo.MT_TrustCode
|
||||
WHEN @ndtType='UT' THEN JointInfo.UT_TrustCode
|
||||
WHEN @ndtType='PAUT' THEN JointInfo.PAUT_TrustCode END) IS NOT NULL OR @ndtType IS NULL)
|
||||
AND ((CASE WHEN @ndtType='RT' AND @ndtResult IS NOT NULL THEN JointInfo.RT_States
|
||||
WHEN @ndtType='PT' AND @ndtResult IS NOT NULL THEN JointInfo.PT_States
|
||||
WHEN @ndtType='MT' AND @ndtResult IS NOT NULL THEN JointInfo.MT_States
|
||||
WHEN @ndtType='UT' AND @ndtResult IS NOT NULL THEN JointInfo.UT_States
|
||||
WHEN @ndtType='PAUT' AND @ndtResult IS NOT NULL THEN JointInfo.PAUT_States END) =@ndtResult OR @ndtResult IS NULL)
|
||||
AND ((case when JointInfo.DReportID IS NOT NULL then '1' else '2' end)=@Welded OR @Welded IS NULL)
|
||||
AND (IsoInfo.ISO_IsoNo =@iso_isoNo OR @iso_isoNo IS NULL)
|
||||
AND (((SELECT TOP 1 TrustDate from dbo.HJGL_CH_HotProessTrustItem a
|
||||
WHERE a.JOT_ID=BatchDetail.JOT_ID and (a.ProessTypes='4' OR a.ProessTypes='5')) IS NOT NULL
|
||||
AND @isHotPress=1) OR @isHotPress IS NULL)
|
||||
ORDER BY project.ProjectCode,IsoInfo.ISO_IsoNo,JointInfo.JOT_JointNo
|
||||
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId, MenuName, Url, SortIndex, SuperMenu,MenuModule)
|
||||
VALUES ('19FC40C2-4FDC-44DC-A785-85491BACAC6D','焊材质保书','HJGL/MaterialManage/QualityCertificate.aspx',5,'4105B536-E0E9-4CD3-6666-27BB147603FA','7')
|
||||
GO
|
||||
/*焊材质保书*/
|
||||
INSERT INTO dbo.ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('1B26BF66-1CEE-42B0-8477-F0A74AE2B404','19FC40C2-4FDC-44DC-A785-85491BACAC6D','增加',1)
|
||||
INSERT INTO dbo.ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('B4AC36B0-DD9B-48A4-AE55-8DFED0C40917','19FC40C2-4FDC-44DC-A785-85491BACAC6D','修改',2)
|
||||
INSERT INTO dbo.ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('4ADD8C65-3085-444E-BA2D-A086B04DD54C','19FC40C2-4FDC-44DC-A785-85491BACAC6D','删除',3)
|
||||
INSERT INTO dbo.ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('03A9A0A8-62E5-405B-924C-0DDD40F12CB4','19FC40C2-4FDC-44DC-A785-85491BACAC6D','保存',4)
|
||||
go
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[Weld_QualityCertificate](
|
||||
[QualityCertificateId] [nvarchar](50) NOT NULL,
|
||||
[WeldId] [nvarchar](50) NULL,
|
||||
[HeartNo] [nvarchar](50) NULL,
|
||||
[Warrantybook] [nvarchar](50) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_Weld_QualityCertificate] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[QualityCertificateId] 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
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_QualityCertificate', @level2type=N'COLUMN',@level2name=N'QualityCertificateId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊材id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_QualityCertificate', @level2type=N'COLUMN',@level2name=N'WeldId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'批号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_QualityCertificate', @level2type=N'COLUMN',@level2name=N'HeartNo'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'入库自编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_QualityCertificate', @level2type=N'COLUMN',@level2name=N'Warrantybook'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_QualityCertificate', @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'Weld_QualityCertificate', @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'Weld_QualityCertificate'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
|
@ -218,6 +218,7 @@
|
|||
<Compile Include="HJGL\MaterialManage\HJGL_EMaterialRegistService.cs" />
|
||||
<Compile Include="HJGL\MaterialManage\HJGL_EMInventoryRecordsService.cs" />
|
||||
<Compile Include="HJGL\MaterialManage\HJGL_EWeldRHRecordService.cs" />
|
||||
<Compile Include="HJGL\MaterialManage\QualityCertificateService.cs" />
|
||||
<Compile Include="HJGL\MaterialManage\TemperatureAndHumidityProjectService.cs" />
|
||||
<Compile Include="HJGL\PersonManage\HJGL_PersonManageService.cs" />
|
||||
<Compile Include="HJGL\PersonManage\HJGL_WelderQualifiedProjectService.cs" />
|
||||
|
|
|
|||
|
|
@ -1682,6 +1682,11 @@ namespace BLL
|
|||
#endregion
|
||||
|
||||
#region 焊条烘烤记录
|
||||
/// <summary>
|
||||
/// 焊材质保书
|
||||
/// </summary>
|
||||
public const string CLGL_QualityCertificateMenuId = "19FC40C2-4FDC-44DC-A785-85491BACAC6D";
|
||||
|
||||
/// <summary>
|
||||
/// 焊条烘烤记录
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,73 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Collections;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class QualityCertificateService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据焊材质保书Id获取焊材质保书信息
|
||||
/// </summary>
|
||||
/// <param name="qualityCertificateId">焊材质保书Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.Weld_QualityCertificate GetQualityCertificateByQualityCertificateId(string qualityCertificateId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
var QualityCertificate = db.Weld_QualityCertificate.FirstOrDefault(e => e.QualityCertificateId == qualityCertificateId);
|
||||
return QualityCertificate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加焊材质保书
|
||||
/// </summary>
|
||||
/// <param name="qualityCertificate"></param>
|
||||
public static void AddQualityCertificate(Model.Weld_QualityCertificate qualityCertificate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Weld_QualityCertificate newQualityCertificate = new Model.Weld_QualityCertificate();
|
||||
|
||||
newQualityCertificate.QualityCertificateId = qualityCertificate.QualityCertificateId;
|
||||
newQualityCertificate.WeldId = qualityCertificate.WeldId;
|
||||
newQualityCertificate.HeartNo = qualityCertificate.HeartNo;
|
||||
newQualityCertificate.Warrantybook = qualityCertificate.Warrantybook;
|
||||
newQualityCertificate.CompileMan = qualityCertificate.CompileMan;
|
||||
newQualityCertificate.CompileDate = qualityCertificate.CompileDate;
|
||||
|
||||
db.Weld_QualityCertificate.InsertOnSubmit(newQualityCertificate);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改焊丝烘烤记录
|
||||
/// </summary>
|
||||
/// <param name="qualityCertificate"></param>
|
||||
public static void UpdateQualityCertificate(Model.Weld_QualityCertificate qualityCertificate)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Weld_QualityCertificate newQualityCertificate = db.Weld_QualityCertificate.First(e => e.QualityCertificateId == qualityCertificate.QualityCertificateId);
|
||||
|
||||
newQualityCertificate.WeldId = qualityCertificate.WeldId;
|
||||
newQualityCertificate.HeartNo = qualityCertificate.HeartNo;
|
||||
newQualityCertificate.Warrantybook = qualityCertificate.Warrantybook;
|
||||
newQualityCertificate.CompileMan = qualityCertificate.CompileMan;
|
||||
newQualityCertificate.CompileDate = qualityCertificate.CompileDate;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除焊丝烘烤记录
|
||||
/// </summary>
|
||||
/// <param name="eletrodeId"></param>
|
||||
public static void DeleteQualityCertificate(string qualityCertificateId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Weld_QualityCertificate qualityCertificate = db.Weld_QualityCertificate.First(e => e.QualityCertificateId == qualityCertificateId);
|
||||
db.Weld_QualityCertificate.DeleteOnSubmit(qualityCertificate);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
|
@ -77,5 +78,45 @@ namespace BLL
|
|||
{
|
||||
return (from x in Funs.DB.Weld_StockInit where x.WeldId == weldId select x).Count();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载批号下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
public static void InitHeartNo(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "Value";
|
||||
dropName.DataTextField = "Text";
|
||||
dropName.DataSource = GetHeartNoList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取施工部用户
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetHeartNoList()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var ls = (from x in db.Weld_StockIn
|
||||
select new {
|
||||
x.HeartNo,
|
||||
x.Warrantybook
|
||||
}).Distinct().ToList();
|
||||
ListItem[] lis = new ListItem[ls.Count()];
|
||||
for (int i = 0; i < ls.Count(); i++)
|
||||
{
|
||||
lis[i] = new ListItem(ls[i].HeartNo ?? "", ls[i].Warrantybook.ToString());
|
||||
}
|
||||
return lis;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,3 +35,26 @@ IP地址:::1
|
|||
|
||||
出错时间:11/11/2025 15:17:16
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 CompileDate。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\common\PageBase.cs:行号 328
|
||||
在 FineUIPro.Web.HJGL.MaterialManage.QualityCertificate.BindGrid() 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\HJGL\MaterialManage\QualityCertificate.aspx.cs:行号 63
|
||||
在 FineUIPro.Web.HJGL.MaterialManage.QualityCertificate.Page_Load(Object sender, EventArgs e) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\HJGL\MaterialManage\QualityCertificate.aspx.cs:行号 31
|
||||
在 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)
|
||||
出错时间:12/09/2025 16:42:15
|
||||
出错文件:http://localhost:64304/HJGL/MaterialManage/QualityCertificate.aspx
|
||||
IP地址:::1
|
||||
操作人员:管理员
|
||||
|
||||
出错时间:12/09/2025 16:42:15
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1136,6 +1136,8 @@
|
|||
<Content Include="HJGL\MaterialManage\EWeldRHRecordNew.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\EWeldRHRecordNewSelect.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\FluxReleaseRecords.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\QualityCertificate.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\QualityCertificateEdit.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\SolderBakingRecordProject.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\SolderBakingRecordProjectSelect.aspx" />
|
||||
<Content Include="HJGL\MaterialManage\WeldingWireRecovery.aspx" />
|
||||
|
|
@ -5895,6 +5897,20 @@
|
|||
<Compile Include="HJGL\MaterialManage\FluxReleaseRecords.aspx.designer.cs">
|
||||
<DependentUpon>FluxReleaseRecords.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\MaterialManage\QualityCertificate.aspx.cs">
|
||||
<DependentUpon>QualityCertificate.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\MaterialManage\QualityCertificate.aspx.designer.cs">
|
||||
<DependentUpon>QualityCertificate.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\MaterialManage\QualityCertificateEdit.aspx.cs">
|
||||
<DependentUpon>QualityCertificateEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\MaterialManage\QualityCertificateEdit.aspx.designer.cs">
|
||||
<DependentUpon>QualityCertificateEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="HJGL\MaterialManage\SolderBakingRecordProject.aspx.cs">
|
||||
<DependentUpon>SolderBakingRecordProject.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<Use64BitIISExpress />
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
|
|
|
|||
|
|
@ -0,0 +1,134 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityCertificate.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.QualityCertificate" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>焊材质保书</title>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
.customlabel span {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊材入库录入" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="QualityCertificateId" AllowCellEditing="true" ClicksToEdit="2"
|
||||
DataIDField="QualityCertificateId" AllowSorting="true" SortField="CompileDate" SortDirection="DESC"
|
||||
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15" ForceFit="true"
|
||||
OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange"
|
||||
EnableTextSelection="True" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="焊材牌号" ID="txtWeldName" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="300px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpWeldType" runat="server" Label="焊材类型" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="75px">
|
||||
</f:DropDownList>
|
||||
<f:TextBox runat="server" Label="批号" ID="txtHeartNo" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="300px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:TextBox runat="server" Label="入库自编号" ID="txtWarrantybook" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="300px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="150px" ColumnID="WeldName" DataField="WeldName" FieldType="String"
|
||||
HeaderText="焊材牌号" HeaderTextAlign="Center" TextAlign="Center" SortField="WeldName">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WeldCode" DataField="WeldCode" FieldType="String"
|
||||
HeaderText="焊材型号" HeaderTextAlign="Center" TextAlign="Center" SortField="WeldCode">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
|
||||
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="90px" ColumnID="WeldTypeName" DataField="WeldTypeName" FieldType="String"
|
||||
HeaderText="类型" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="HeartNo" DataField="HeartNo" FieldType="String"
|
||||
HeaderText="批号" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="Warrantybook" DataField="Warrantybook" FieldType="String"
|
||||
HeaderText="入库自编号" HeaderTextAlign="Center" TextAlign="Center" SortField="Warrantybook">
|
||||
</f:RenderField>
|
||||
<f:WindowField TextAlign="Center" Width="60px" WindowID="WindowAtt" HeaderText="附件" Text="附件" ToolTip="附件上传查看"
|
||||
DataIFrameUrlFields="QualityCertificateId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/WeldMat/QualityCertificate&menuId=19FC40C2-4FDC-44DC-A785-85491BACAC6D"
|
||||
HeaderTextAlign="Center" />
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="编辑焊材质保书" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="800px" Height="350px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window2" Title="移库" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1000px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window3" Title="导入焊材入库" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="600px" Height="280px">
|
||||
</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">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
runat="server" Text="编辑" Icon="Pencil">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</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;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
{
|
||||
public partial class QualityCertificate : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
|
||||
this.drpWeldType.DataTextField = "WeldTypeName";
|
||||
this.drpWeldType.DataValueField = "WeldTypeId";
|
||||
this.drpWeldType.DataSource = BLL.WeldTypeService.GetWeldTypeList();
|
||||
this.drpWeldType.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWeldType);
|
||||
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT QC.QualityCertificateId,QC.WeldId,QC.Warrantybook,Weld.WeldCode,Weld.WeldName,Weld.WeldSpec,QC.HeartNo,QC.CompileDate,
|
||||
WeldType.WeldTypeName
|
||||
FROM dbo.Weld_QualityCertificate AS QC
|
||||
LEFT JOIN dbo.Weld_WeldInfo AS Weld ON Weld.WeldId=QC.WeldId
|
||||
LEFT JOIN dbo.Weld_WeldType AS WeldType ON WeldType.WeldTypeId = Weld.WeldTypeId
|
||||
WHERE 1=1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtWeldName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Weld.WeldName LIKE @WeldName";
|
||||
listStr.Add(new SqlParameter("@WeldName", "%" + this.txtWeldName.Text.Trim() + "%"));
|
||||
}
|
||||
if (drpWeldType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND Weld.WeldTypeId = @WeldTypeId";
|
||||
listStr.Add(new SqlParameter("@WeldTypeId", drpWeldType.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtHeartNo.Text.Trim()))
|
||||
{
|
||||
strSql += " AND QC.HeartNo LIKE @HeartNo";
|
||||
listStr.Add(new SqlParameter("@HeartNo", "%" + this.txtHeartNo.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtWarrantybook.Text.Trim()))
|
||||
{
|
||||
strSql += " AND QC.Warrantybook LIKE @Warrantybook";
|
||||
listStr.Add(new SqlParameter("@Warrantybook", "%" + this.txtWarrantybook.Text.Trim() + "%"));
|
||||
}
|
||||
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 表头过滤
|
||||
protected void Grid1_FilterChange(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
Grid1.SortDirection = e.SortDirection;
|
||||
Grid1.SortField = e.SortField;
|
||||
BindGrid();
|
||||
}
|
||||
#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();
|
||||
}
|
||||
#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 TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 增加按钮
|
||||
/// <summary>
|
||||
/// 增加按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_QualityCertificateMenuId, BLL.Const.BtnAdd))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityCertificateEdit.aspx?QualityCertificateId={0}", string.Empty, "编辑 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 编辑
|
||||
/// <summary>
|
||||
/// 双击Grid事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
this.EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑数据方法
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_QualityCertificateMenuId, BLL.Const.BtnModify))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
string id = Grid1.SelectedRowID;
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("QualityCertificateEdit.aspx?QualityCertificateId={0}", id, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除
|
||||
/// <summary>
|
||||
/// 右键删除事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DeleteData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除方法
|
||||
/// </summary>
|
||||
private void DeleteData()
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_QualityCertificateMenuId, BLL.Const.BtnDelete))
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 1)
|
||||
{
|
||||
string rowID = Grid1.SelectedRowID.ToString();
|
||||
if (this.judgementDelete(rowID))
|
||||
{
|
||||
CommonService.DeleteAttachFileById(rowID);//删除附件
|
||||
BLL.QualityCertificateService.DeleteQualityCertificate(rowID);
|
||||
BLL.Sys_LogService.AddLog(BLL.Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊材质保书");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择要删除的记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否可删除
|
||||
/// </summary>
|
||||
/// <param name="rowID"></param>
|
||||
/// <param name="isShow"></param>
|
||||
/// <returns></returns>
|
||||
private bool judgementDelete(string rowID)
|
||||
{
|
||||
string content = string.Empty;
|
||||
//var q = from x in Funs.DB.Weld_UsingMat where x.StockInId == rowID select x;
|
||||
//if (q.Count() > 0)
|
||||
//{
|
||||
// content = "该入库材料已有领用,不能删除!";
|
||||
//}
|
||||
if (string.IsNullOrEmpty(content))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(content);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
213
HJGL_DS/FineUIPro.Web/HJGL/MaterialManage/QualityCertificate.aspx.designer.cs
generated
Normal file
213
HJGL_DS/FineUIPro.Web/HJGL/MaterialManage/QualityCertificate.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,213 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
|
||||
|
||||
public partial class QualityCertificate {
|
||||
|
||||
/// <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>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldName;
|
||||
|
||||
/// <summary>
|
||||
/// drpWeldType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWeldType;
|
||||
|
||||
/// <summary>
|
||||
/// txtHeartNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHeartNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtWarrantybook 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWarrantybook;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QualityCertificateEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.QualityCertificateEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>编辑焊材质保书</title>
|
||||
<style>
|
||||
.customlabel span {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Form2" runat="server" />
|
||||
<f:Form ID="Form2" ShowBorder="False" BodyPadding="5px" ShowHeader="False" runat="server"
|
||||
RedStarPosition="BeforeText">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:HiddenField ID="hdWeldId" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdQualityCertificateId" runat="server"></f:HiddenField>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="45% 5% 50%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtWeldName" runat="server" Label="焊材牌号" LabelAlign="Right" Readonly="true"
|
||||
ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:Button runat="server" ID="btnSelect" Icon="Find" OnClick="btnSelect_Click" ToolTip="查找焊材信息">
|
||||
</f:Button>
|
||||
<f:TextBox ID="txtWeldSpec" runat="server" Label="规格" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpHeartNo" runat="server" Label="批号" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpHeartNo_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtWeldType" runat="server" Label="类型" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label runat="server" ID="txtWarrantybook" Label="入库自编号" LabelAlign="Right"></f:Label>
|
||||
<f:LinkButton ID="UploadAttach2" runat="server" Label="质保书附件" Text="上传和查看" OnClick="btnAttachUrl2_Click"
|
||||
LabelAlign="Right">
|
||||
</f:LinkButton>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="Form2"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="Window1" Title="查找焊材信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="800px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window2" Title="文件上传" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="680px"
|
||||
Height="480px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,216 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
{
|
||||
public partial class QualityCertificateEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string QualityCertificateId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["QualityCertificateId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["QualityCertificateId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.QualityCertificateId = Request.Params["QualityCertificateId"];
|
||||
StockInitService.InitHeartNo(this.drpHeartNo, true);
|
||||
if (!string.IsNullOrEmpty(this.QualityCertificateId))
|
||||
{
|
||||
this.hdQualityCertificateId.Text = this.QualityCertificateId;
|
||||
Model.Weld_QualityCertificate qc = BLL.QualityCertificateService.GetQualityCertificateByQualityCertificateId(this.QualityCertificateId);
|
||||
if (qc != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(qc.WeldId))
|
||||
{
|
||||
this.hdWeldId.Text = qc.WeldId;
|
||||
var weld = BLL.WeldInfoService.GetWeldInfoById(qc.WeldId);
|
||||
if (weld != null)
|
||||
{
|
||||
//this.txtWeldCode.Text = weld.WeldCode;
|
||||
this.txtWeldName.Text = weld.WeldName;
|
||||
this.txtWeldSpec.Text = weld.WeldSpec;
|
||||
if (!string.IsNullOrEmpty(weld.WeldTypeId))
|
||||
{
|
||||
var weldType = BLL.WeldTypeService.GetWeldTypeById(weld.WeldTypeId);
|
||||
if (weldType != null)
|
||||
{
|
||||
this.txtWeldType.Text = weldType.WeldTypeName;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.drpHeartNo.SelectedItem.Text = qc.HeartNo;
|
||||
this.txtWarrantybook.Text = qc.Warrantybook;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.hdWeldId.Text == string.Empty)
|
||||
{
|
||||
Alert.ShowInTop("请选择焊材牌号!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpHeartNo.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择批号!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.hdQualityCertificateId.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInTop("请上传质保书附件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
SaveData();
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存数据
|
||||
/// </summary>
|
||||
private void SaveData()
|
||||
{
|
||||
Model.Weld_QualityCertificate qc = new Model.Weld_QualityCertificate();
|
||||
if (!string.IsNullOrEmpty(this.hdWeldId.Text.Trim()))
|
||||
{
|
||||
qc.WeldId = this.hdWeldId.Text.Trim();
|
||||
}
|
||||
|
||||
qc.Warrantybook = this.txtWarrantybook.Text.Trim();
|
||||
//qc.Number = txtNumber.Text.Trim();
|
||||
qc.HeartNo = drpHeartNo.SelectedItem.Text.Trim();
|
||||
qc.Warrantybook = txtWarrantybook.Text.Trim();
|
||||
qc.CompileMan = this.CurrUser.UserId;
|
||||
qc.CompileDate = DateTime.Now;
|
||||
if (!string.IsNullOrEmpty(this.QualityCertificateId))
|
||||
{
|
||||
qc.QualityCertificateId = this.QualityCertificateId;
|
||||
BLL.QualityCertificateService.UpdateQualityCertificate(qc);
|
||||
BLL.Sys_LogService.AddLog(Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊材质保书");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(this.hdQualityCertificateId.Text.Trim()))
|
||||
{
|
||||
qc.QualityCertificateId = SQLHelper.GetNewID(typeof(Model.Weld_QualityCertificate));
|
||||
}
|
||||
else
|
||||
{
|
||||
qc.QualityCertificateId = this.hdQualityCertificateId.Text.Trim();
|
||||
}
|
||||
BLL.QualityCertificateService.AddQualityCertificate(qc);
|
||||
BLL.Sys_LogService.AddLog(Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊材质保书");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件资源
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string edit = "0"; // 表示能打开附件上传窗口,但不能上传附件
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CLGL_QualityCertificateMenuId, BLL.Const.BtnSave))
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdQualityCertificateId.Text.Trim()))
|
||||
{
|
||||
this.hdQualityCertificateId.Text = SQLHelper.GetNewID();
|
||||
}
|
||||
edit = "1";
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/WeldMat/QualityCertificate&menuId={1}&edit={2}", this.hdQualityCertificateId.Text, Const.CLGL_QualityCertificateMenuId, edit)));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查找焊材信息
|
||||
/// <summary>
|
||||
/// 查找焊材信息
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
string window = String.Format("../../WeldMat/Stock/ShowWeldInfo.aspx", "编辑 - ");
|
||||
PageContext.RegisterStartupScript(Window1.GetSaveStateReference(this.hdWeldId.ClientID) + Window1.GetShowReference(window));
|
||||
}
|
||||
|
||||
#region 弹出编辑窗口关闭事件
|
||||
/// <summary>
|
||||
/// 弹出编辑窗体关闭事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdWeldId.Text))
|
||||
{
|
||||
var weld = BLL.WeldInfoService.GetWeldInfoById(this.hdWeldId.Text);
|
||||
if (weld != null)
|
||||
{
|
||||
//this.txtWeldCode.Text = weld.WeldCode;
|
||||
this.txtWeldName.Text = weld.WeldName;
|
||||
this.txtWeldSpec.Text = weld.WeldSpec;
|
||||
if (!string.IsNullOrEmpty(weld.WeldTypeId))
|
||||
{
|
||||
var weldType = BLL.WeldTypeService.GetWeldTypeById(weld.WeldTypeId);
|
||||
if (weldType != null)
|
||||
{
|
||||
this.txtWeldType.Text = weldType.WeldTypeName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
protected void drpHeartNo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.txtWarrantybook.Text = string.Empty;
|
||||
if (this.drpHeartNo.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
this.txtWarrantybook.Text = this.drpHeartNo.SelectedValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
168
HJGL_DS/FineUIPro.Web/HJGL/MaterialManage/QualityCertificateEdit.aspx.designer.cs
generated
Normal file
168
HJGL_DS/FineUIPro.Web/HJGL/MaterialManage/QualityCertificateEdit.aspx.designer.cs
generated
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage {
|
||||
|
||||
|
||||
public partial class QualityCertificateEdit {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// hdWeldId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdWeldId;
|
||||
|
||||
/// <summary>
|
||||
/// hdQualityCertificateId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdQualityCertificateId;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldName;
|
||||
|
||||
/// <summary>
|
||||
/// btnSelect 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSelect;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldSpec 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldSpec;
|
||||
|
||||
/// <summary>
|
||||
/// drpHeartNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHeartNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldType;
|
||||
|
||||
/// <summary>
|
||||
/// txtWarrantybook 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtWarrantybook;
|
||||
|
||||
/// <summary>
|
||||
/// UploadAttach2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.LinkButton UploadAttach2;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
}
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="统计样表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" EnableColumnLines="true" AllowSorting="true"
|
||||
SortField="ISO_IsoNo" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
SortField="ISO_IsoNo,JOTY_Group,Sort1,Sort2,Sort3,Sort4,Sort5" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
|
||||
IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange">
|
||||
<Columns>
|
||||
<f:RowNumberField />
|
||||
|
|
|
|||
|
|
@ -45,7 +45,8 @@
|
|||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtHeartNo" runat="server" Label="批号" LabelAlign="Right" >
|
||||
<f:TextBox ID="txtHeartNo" runat="server" Label="批号" LabelAlign="Right" Required="true"
|
||||
ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWeldUnit" runat="server" Label="计量单位" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
|
|
|
|||
|
|
@ -515,6 +515,9 @@ namespace Model
|
|||
partial void InsertWeld_ProjectPlan(Weld_ProjectPlan instance);
|
||||
partial void UpdateWeld_ProjectPlan(Weld_ProjectPlan instance);
|
||||
partial void DeleteWeld_ProjectPlan(Weld_ProjectPlan instance);
|
||||
partial void InsertWeld_QualityCertificate(Weld_QualityCertificate instance);
|
||||
partial void UpdateWeld_QualityCertificate(Weld_QualityCertificate instance);
|
||||
partial void DeleteWeld_QualityCertificate(Weld_QualityCertificate instance);
|
||||
partial void InsertWeld_RecycleMat(Weld_RecycleMat instance);
|
||||
partial void UpdateWeld_RecycleMat(Weld_RecycleMat instance);
|
||||
partial void DeleteWeld_RecycleMat(Weld_RecycleMat instance);
|
||||
|
|
@ -2316,6 +2319,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<View_UnitPerformance> View_UnitPerformance
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<View_UnitPerformance>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<View_UsePosition> View_UsePosition
|
||||
{
|
||||
get
|
||||
|
|
@ -2332,6 +2343,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Weld_QualityCertificate> Weld_QualityCertificate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<Weld_QualityCertificate>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Weld_RecycleMat> Weld_RecycleMat
|
||||
{
|
||||
get
|
||||
|
|
@ -105634,6 +105653,8 @@ namespace Model
|
|||
|
||||
private string _Welder;
|
||||
|
||||
private string _WED_Unit;
|
||||
|
||||
private string _STE_ID;
|
||||
|
||||
private string _DReportID;
|
||||
|
|
@ -105752,6 +105773,22 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Unit", DbType="NVarChar(50)")]
|
||||
public string WED_Unit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WED_Unit;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WED_Unit != value))
|
||||
{
|
||||
this._WED_Unit = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="VarChar(50)")]
|
||||
public string STE_ID
|
||||
{
|
||||
|
|
@ -108678,6 +108715,357 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_UnitPerformance")]
|
||||
public partial class View_UnitPerformance
|
||||
{
|
||||
|
||||
private System.Nullable<System.Guid> _Id;
|
||||
|
||||
private string _ProjectCode;
|
||||
|
||||
private string _WED_Unit;
|
||||
|
||||
private string _UnitCode;
|
||||
|
||||
private string _UnitName;
|
||||
|
||||
private System.Nullable<decimal> _TotalSize;
|
||||
|
||||
private int _TotalJoint;
|
||||
|
||||
private int _JointNum1;
|
||||
|
||||
private System.Nullable<int> _JointPassNum1;
|
||||
|
||||
private int _RepairJoint1;
|
||||
|
||||
private int _RepairJoint2;
|
||||
|
||||
private int _RepairJoint3;
|
||||
|
||||
private System.Nullable<decimal> _JointPassRate;
|
||||
|
||||
private int _Totalfilm;
|
||||
|
||||
private System.Nullable<int> _TotalPassfilm;
|
||||
|
||||
private int _RepairFilm1;
|
||||
|
||||
private int _RepairFilm2;
|
||||
|
||||
private int _RepairFilm3;
|
||||
|
||||
private System.Nullable<decimal> _JointFilmPassRate;
|
||||
|
||||
public View_UnitPerformance()
|
||||
{
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="UniqueIdentifier")]
|
||||
public System.Nullable<System.Guid> Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Id != value))
|
||||
{
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectCode", DbType="VarChar(1) NOT NULL", CanBeNull=false)]
|
||||
public string ProjectCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectCode != value))
|
||||
{
|
||||
this._ProjectCode = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Unit", DbType="NVarChar(50)")]
|
||||
public string WED_Unit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WED_Unit;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WED_Unit != value))
|
||||
{
|
||||
this._WED_Unit = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitCode", DbType="NVarChar(20)")]
|
||||
public string UnitCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitCode != value))
|
||||
{
|
||||
this._UnitCode = 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(Name="totalSize", Storage="_TotalSize", DbType="Decimal(19,2)")]
|
||||
public System.Nullable<decimal> TotalSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalSize;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalSize != value))
|
||||
{
|
||||
this._TotalSize = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalJoint", Storage="_TotalJoint", DbType="Int NOT NULL")]
|
||||
public int TotalJoint
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalJoint;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalJoint != value))
|
||||
{
|
||||
this._TotalJoint = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointNum1", DbType="Int NOT NULL")]
|
||||
public int JointNum1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JointNum1;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._JointNum1 != value))
|
||||
{
|
||||
this._JointNum1 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointPassNum1", DbType="Int")]
|
||||
public System.Nullable<int> JointPassNum1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JointPassNum1;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._JointPassNum1 != value))
|
||||
{
|
||||
this._JointPassNum1 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairJoint1", DbType="Int NOT NULL")]
|
||||
public int RepairJoint1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RepairJoint1;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RepairJoint1 != value))
|
||||
{
|
||||
this._RepairJoint1 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairJoint2", DbType="Int NOT NULL")]
|
||||
public int RepairJoint2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RepairJoint2;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RepairJoint2 != value))
|
||||
{
|
||||
this._RepairJoint2 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairJoint3", DbType="Int NOT NULL")]
|
||||
public int RepairJoint3
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RepairJoint3;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RepairJoint3 != value))
|
||||
{
|
||||
this._RepairJoint3 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointPassRate", DbType="Decimal(19,3)")]
|
||||
public System.Nullable<decimal> JointPassRate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JointPassRate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._JointPassRate != value))
|
||||
{
|
||||
this._JointPassRate = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalfilm", Storage="_Totalfilm", DbType="Int NOT NULL")]
|
||||
public int Totalfilm
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Totalfilm;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Totalfilm != value))
|
||||
{
|
||||
this._Totalfilm = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="totalPassfilm", Storage="_TotalPassfilm", DbType="Int")]
|
||||
public System.Nullable<int> TotalPassfilm
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalPassfilm;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalPassfilm != value))
|
||||
{
|
||||
this._TotalPassfilm = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="repairFilm1", Storage="_RepairFilm1", DbType="Int NOT NULL")]
|
||||
public int RepairFilm1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RepairFilm1;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RepairFilm1 != value))
|
||||
{
|
||||
this._RepairFilm1 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="repairFilm2", Storage="_RepairFilm2", DbType="Int NOT NULL")]
|
||||
public int RepairFilm2
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RepairFilm2;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RepairFilm2 != value))
|
||||
{
|
||||
this._RepairFilm2 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="repairFilm3", Storage="_RepairFilm3", DbType="Int NOT NULL")]
|
||||
public int RepairFilm3
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RepairFilm3;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RepairFilm3 != value))
|
||||
{
|
||||
this._RepairFilm3 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointFilmPassRate", DbType="Decimal(19,3)")]
|
||||
public System.Nullable<decimal> JointFilmPassRate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JointFilmPassRate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._JointFilmPassRate != value))
|
||||
{
|
||||
this._JointFilmPassRate = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_UsePosition")]
|
||||
public partial class View_UsePosition
|
||||
{
|
||||
|
|
@ -108987,6 +109375,188 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Weld_QualityCertificate")]
|
||||
public partial class Weld_QualityCertificate : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _QualityCertificateId;
|
||||
|
||||
private string _WeldId;
|
||||
|
||||
private string _HeartNo;
|
||||
|
||||
private string _Warrantybook;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _CompileDate;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnQualityCertificateIdChanging(string value);
|
||||
partial void OnQualityCertificateIdChanged();
|
||||
partial void OnWeldIdChanging(string value);
|
||||
partial void OnWeldIdChanged();
|
||||
partial void OnHeartNoChanging(string value);
|
||||
partial void OnHeartNoChanged();
|
||||
partial void OnWarrantybookChanging(string value);
|
||||
partial void OnWarrantybookChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
#endregion
|
||||
|
||||
public Weld_QualityCertificate()
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityCertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string QualityCertificateId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._QualityCertificateId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._QualityCertificateId != value))
|
||||
{
|
||||
this.OnQualityCertificateIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._QualityCertificateId = value;
|
||||
this.SendPropertyChanged("QualityCertificateId");
|
||||
this.OnQualityCertificateIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldId", DbType="NVarChar(50)")]
|
||||
public string WeldId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WeldId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WeldId != value))
|
||||
{
|
||||
this.OnWeldIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WeldId = value;
|
||||
this.SendPropertyChanged("WeldId");
|
||||
this.OnWeldIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HeartNo", DbType="NVarChar(50)")]
|
||||
public string HeartNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HeartNo;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HeartNo != value))
|
||||
{
|
||||
this.OnHeartNoChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HeartNo = value;
|
||||
this.SendPropertyChanged("HeartNo");
|
||||
this.OnHeartNoChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Warrantybook", DbType="NVarChar(50)")]
|
||||
public string Warrantybook
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Warrantybook;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Warrantybook != value))
|
||||
{
|
||||
this.OnWarrantybookChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Warrantybook = value;
|
||||
this.SendPropertyChanged("Warrantybook");
|
||||
this.OnWarrantybookChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
||||
public string CompileMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileMan != value))
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.Weld_RecycleMat")]
|
||||
public partial class Weld_RecycleMat : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress />
|
||||
|
|
|
|||
Loading…
Reference in New Issue