提交代码
This commit is contained in:
parent
d28f7920d8
commit
8e60ae5b65
|
@ -31,3 +31,4 @@
|
|||
/SGGL/FineUIPro.Web/FileUpload/TestRun/DriverSub/DriverSub/2024-02
|
||||
/SGGL/FineUIPro.Web/FileUpload/TestRun/DriverRun
|
||||
/SGGL/FineUIPro.Web/FileUpload/Solution/2024-02
|
||||
/SGGL/FineUIPro.Web/FileUpload/Solution/2024-03
|
||||
|
|
|
@ -0,0 +1,67 @@
|
|||
update Sys_Menu set MenuName='开车物资材料库',Url='TestRun/DriverGoods/GoodsModel.aspx'
|
||||
where MenuId='1C6B597D-0FB7-404A-8512-6FCD53EE2552'
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[DriverGoods_GoodsModel](
|
||||
[GoodsModelId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[Code] [int] NULL,
|
||||
[Description] [nvarchar](200) NULL,
|
||||
[Quantity] [nvarchar](50) NULL,
|
||||
[Purpose] [nvarchar](100) NULL,
|
||||
[Attachment] [nvarchar](100) NULL,
|
||||
[Remark] [nvarchar](200) NULL,
|
||||
CONSTRAINT [PK_DriverGoods_GoodsModel] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[GoodsModelId] 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].[DriverGoods_GoodsModel] WITH CHECK ADD CONSTRAINT [FK_DriverGoods_GoodsModel_Base_Project] FOREIGN KEY([ProjectId])
|
||||
REFERENCES [dbo].[Base_Project] ([ProjectId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[DriverGoods_GoodsModel] CHECK CONSTRAINT [FK_DriverGoods_GoodsModel_Base_Project]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'GoodsModelId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @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'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'Code'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'物资材料名称及规格' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'Description'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'Quantity'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用途' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'Purpose'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'附件(详细清单/图纸等)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'Attachment'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel', @level2type=N'COLUMN',@level2name=N'Remark'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开车物资材料库表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DriverGoods_GoodsModel'
|
||||
GO
|
||||
|
||||
alter table [dbo].[DriverRun_DriverRun] add Status char(1) null
|
||||
alter table [dbo].[DriverRun_DriverRun] add Priority char(1) null
|
||||
GO
|
||||
alter table [dbo].[Solution_TestRunConstructSolution] add System nvarchar(50) null
|
||||
GO
|
||||
|
||||
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('94E11762-49CB-4116-9B28-6927BDC59D31','开车方案统计','TestRun/DriverSchemeChart.aspx',20,'8EB88D36-5B13-4F41-8FE8-D66BCA08439D','Menu_TestRun',0,1,1)
|
||||
GO
|
|
@ -184,6 +184,9 @@ GO
|
|||
INSERT INTO Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES(NEWID(),'CAA63693-5D41-4018-9FF7-AAB311E6D8E0','保存',4)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('94E11762-49CB-4116-9B28-6927BDC59D31','开车方案统计','TestRun/DriverSchemeChart.aspx',20,'8EB88D36-5B13-4F41-8FE8-D66BCA08439D','Menu_TestRun',0,1,1)
|
||||
GO
|
||||
|
||||
/* ===============开车进度管理============*/
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
|
@ -253,7 +256,7 @@ VALUES('CA46AEF2-D058-433B-BDE3-760015337ED4','
|
|||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('1C6B597D-0FB7-404A-8512-6FCD53EE2552','¿ª³µÎï×ʼƻ®','TestRun/DriverGoods/GoodsPlan.aspx',10,'CA46AEF2-D058-433B-BDE3-760015337ED4','Menu_TestRun',0,1,1)
|
||||
VALUES('1C6B597D-0FB7-404A-8512-6FCD53EE2552','开车物资材料库','TestRun/DriverGoods/GoodsModel.aspx',10,'CA46AEF2-D058-433B-BDE3-760015337ED4','Menu_TestRun',0,1,1)
|
||||
GO
|
||||
/* 开车物资计划 */
|
||||
INSERT INTO Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES(NEWID(),'1C6B597D-0FB7-404A-8512-6FCD53EE2552','增加',1)
|
||||
|
|
|
@ -727,6 +727,7 @@
|
|||
<Compile Include="TaskScheduling\TimerTask\TimerTaskBase.cs" />
|
||||
<Compile Include="TestRun\BeforeTestRun\BeforeTestRunService.cs" />
|
||||
<Compile Include="TestRun\DriverGoods\GoodsBuyService.cs" />
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModelService.cs" />
|
||||
<Compile Include="TestRun\DriverGoods\GoodsPlanService.cs" />
|
||||
<Compile Include="TestRun\DriverGoods\MaterialTraceService.cs" />
|
||||
<Compile Include="TestRun\DriverHse\HseHazardService.cs" />
|
||||
|
|
|
@ -4794,14 +4794,19 @@ namespace BLL
|
|||
public static string TestRunConstructSolution_Compile = "1";
|
||||
|
||||
/// <summary>
|
||||
/// 会签
|
||||
/// 审核
|
||||
/// </summary>
|
||||
public static string TestRunConstructSolution_Audit = "2";
|
||||
|
||||
/// <summary>
|
||||
/// 审批完成
|
||||
/// 审批
|
||||
/// </summary>
|
||||
public static string TestRunConstructSolution_Complete = "3";
|
||||
public static string TestRunConstructSolution_Audit2 = "3";
|
||||
|
||||
/// <summary>
|
||||
/// 发布
|
||||
/// </summary>
|
||||
public static string TestRunConstructSolution_Complete = "4";
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
@ -5289,6 +5294,11 @@ namespace BLL
|
|||
/// </summary>
|
||||
public const string RoadMapMenuId = "02866B09-CEB3-42E0-870C-B81187FB0079";
|
||||
|
||||
/// <summary>
|
||||
/// 开车物资库
|
||||
/// </summary>
|
||||
public const string GoodsModelMenuId = "1C6B597D-0FB7-404A-8512-6FCD53EE2552";
|
||||
|
||||
/// <summary>
|
||||
/// 开车物资计划
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public static class GoodsModelService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取开车物资库信息
|
||||
/// </summary>
|
||||
/// <param name="GoodsModelId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.DriverGoods_GoodsModel GetGoodsModelById(string GoodsModelId)
|
||||
{
|
||||
return Funs.DB.DriverGoods_GoodsModel.FirstOrDefault(e => e.GoodsModelId == GoodsModelId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加开车物资库信息
|
||||
/// </summary>
|
||||
/// <param name="GoodsModel"></param>
|
||||
public static void AddGoodsModel(Model.DriverGoods_GoodsModel GoodsModel)
|
||||
{
|
||||
Model.DriverGoods_GoodsModel newGoodsModel = new Model.DriverGoods_GoodsModel();
|
||||
newGoodsModel.GoodsModelId = GoodsModel.GoodsModelId;
|
||||
newGoodsModel.ProjectId = GoodsModel.ProjectId;
|
||||
newGoodsModel.Code = GoodsModel.Code;
|
||||
newGoodsModel.Description = GoodsModel.Description;
|
||||
newGoodsModel.Quantity = GoodsModel.Quantity;
|
||||
newGoodsModel.Purpose = GoodsModel.Purpose;
|
||||
newGoodsModel.Attachment = GoodsModel.Attachment;
|
||||
newGoodsModel.Remark = GoodsModel.Remark;
|
||||
Funs.DB.DriverGoods_GoodsModel.InsertOnSubmit(newGoodsModel);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改开车物资库
|
||||
/// </summary>
|
||||
/// <param name="GoodsModel"></param>
|
||||
public static void UpdateGoodsModel(Model.DriverGoods_GoodsModel GoodsModel)
|
||||
{
|
||||
Model.DriverGoods_GoodsModel newGoodsModel = Funs.DB.DriverGoods_GoodsModel.FirstOrDefault(e => e.GoodsModelId == GoodsModel.GoodsModelId);
|
||||
if (newGoodsModel != null)
|
||||
{
|
||||
newGoodsModel.Code = GoodsModel.Code;
|
||||
newGoodsModel.Description = GoodsModel.Description;
|
||||
newGoodsModel.Quantity = GoodsModel.Quantity;
|
||||
newGoodsModel.Purpose = GoodsModel.Purpose;
|
||||
newGoodsModel.Attachment = GoodsModel.Attachment;
|
||||
newGoodsModel.Remark = GoodsModel.Remark;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除开车物资库
|
||||
/// </summary>
|
||||
/// <param name="GoodsModelId"></param>
|
||||
public static void DeleteGoodsModel(string GoodsModelId)
|
||||
{
|
||||
Model.DriverGoods_GoodsModel GoodsModel = Funs.DB.DriverGoods_GoodsModel.FirstOrDefault(e => e.GoodsModelId == GoodsModelId);
|
||||
if (GoodsModel != null)
|
||||
{
|
||||
BLL.CommonService.DeleteAttachFileById(GoodsModelId);
|
||||
Funs.DB.DriverGoods_GoodsModel.DeleteOnSubmit(GoodsModel);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -44,6 +44,8 @@ namespace BLL
|
|||
newDriverRun.CompileDate = driverRun.CompileDate;
|
||||
newDriverRun.AttachUrl = driverRun.AttachUrl;
|
||||
newDriverRun.Remark = driverRun.Remark;
|
||||
newDriverRun.Status = driverRun.Status;
|
||||
newDriverRun.Priority = driverRun.Priority;
|
||||
newDriverRun.State = driverRun.State;
|
||||
Funs.DB.DriverRun_DriverRun.InsertOnSubmit(newDriverRun);
|
||||
Funs.DB.SubmitChanges();
|
||||
|
@ -68,6 +70,8 @@ namespace BLL
|
|||
newDriverRun.CompileDate = driverRun.CompileDate;
|
||||
newDriverRun.AttachUrl = driverRun.AttachUrl;
|
||||
newDriverRun.Remark = driverRun.Remark;
|
||||
newDriverRun.Status = driverRun.Status;
|
||||
newDriverRun.Priority = driverRun.Priority;
|
||||
newDriverRun.State = driverRun.State;
|
||||
|
||||
db.DriverRun_DriverRun.InsertOnSubmit(newDriverRun);
|
||||
|
|
|
@ -66,6 +66,7 @@ namespace BLL
|
|||
newConstructSolution.Edition = constructSolution.Edition;
|
||||
newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId;
|
||||
newConstructSolution.Content = constructSolution.Content;
|
||||
newConstructSolution.System = constructSolution.System;
|
||||
db.Solution_TestRunConstructSolution.InsertOnSubmit(newConstructSolution);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
@ -88,6 +89,7 @@ namespace BLL
|
|||
newConstructSolution.Edition = constructSolution.Edition;
|
||||
newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId;
|
||||
newConstructSolution.Content = constructSolution.Content;
|
||||
newConstructSolution.System = constructSolution.System;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
@ -112,11 +114,15 @@ namespace BLL
|
|||
}
|
||||
else if (state.ToString() == BLL.Const.TestRunConstructSolution_Audit)
|
||||
{
|
||||
return "会签";
|
||||
return "审核";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.TestRunConstructSolution_Audit2)
|
||||
{
|
||||
return "审批";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.TestRunConstructSolution_Complete)
|
||||
{
|
||||
return "审批完成";
|
||||
return "发布";
|
||||
}
|
||||
}
|
||||
return "";
|
||||
|
@ -127,7 +133,7 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
public static ListItem[] GetSolutionType()
|
||||
{
|
||||
ListItem[] list = new ListItem[13];
|
||||
ListItem[] list = new ListItem[12];
|
||||
list[0] = new ListItem("01 开车文件编制计划", "01");
|
||||
list[1] = new ListItem("02 单机试车方案", "02");
|
||||
list[2] = new ListItem("03 冲洗吹扫方案", "03");
|
||||
|
@ -140,7 +146,7 @@ namespace BLL
|
|||
list[9] = new ListItem("10 性能考核方案", "10");
|
||||
list[10] = new ListItem("11 其他方案(如:真空试验、升温还原、煮炉、预冷、预热等)", "11");
|
||||
list[11] = new ListItem("12 总体试车方案", "12");
|
||||
list[12] = new ListItem("13 方案审查记录", "13");
|
||||
//list[12] = new ListItem("13 方案审查记录", "13");
|
||||
return list;
|
||||
}
|
||||
|
||||
|
@ -419,5 +425,48 @@ namespace BLL
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public static void Init(FineUIPro.DropDownList dropName, string state, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "Value";
|
||||
dropName.DataTextField = "Text";
|
||||
dropName.DataSource = GetDHandleTypeByState(state);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据状态选择下一步办理类型
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetDHandleTypeByState(string state)
|
||||
{
|
||||
if (state == Const.TestRunConstructSolution_Compile || state == Const.TestRunConstructSolution_ReCompile) //无是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[1];
|
||||
lis[0] = new ListItem("审核", Const.TestRunConstructSolution_Audit);
|
||||
return lis;
|
||||
}
|
||||
else if (state == Const.TestRunConstructSolution_Audit)//有是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("审批", Const.TestRunConstructSolution_Audit2);//是 加载
|
||||
lis[1] = new ListItem("重新编制", Const.TestRunConstructSolution_ReCompile);//否加载
|
||||
return lis;
|
||||
}
|
||||
else if (state == Const.TestRunConstructSolution_Audit2)//无是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("发布", Const.TestRunConstructSolution_Complete);
|
||||
lis[1] = new ListItem("重新编制", Const.TestRunConstructSolution_ReCompile);
|
||||
return lis;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -1712,6 +1712,9 @@
|
|||
<Content Include="TestRun\BeforeTestRun\TestRunRecordUploadList.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsBuy.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsBuyEdit.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsModel.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsModelDataIn.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsModelEdit.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsPlan.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\GoodsPlanEdit.aspx" />
|
||||
<Content Include="TestRun\DriverGoods\MaterialTrace.aspx" />
|
||||
|
@ -1755,6 +1758,7 @@
|
|||
<Content Include="TestRun\DriverRun\DriverRunPlanEdit.aspx" />
|
||||
<Content Include="TestRun\DriverRun\DriverRunView.aspx" />
|
||||
<Content Include="TestRun\DriverScheme.aspx" />
|
||||
<Content Include="TestRun\DriverSchemeChart.aspx" />
|
||||
<Content Include="TestRun\DriverSchemeEdit.aspx" />
|
||||
<Content Include="TestRun\DriverSchemeView.aspx" />
|
||||
<Content Include="TestRun\DriverSub\DriverSub.aspx" />
|
||||
|
@ -15492,6 +15496,27 @@
|
|||
<Compile Include="TestRun\DriverGoods\GoodsBuyEdit.aspx.designer.cs">
|
||||
<DependentUpon>GoodsBuyEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModel.aspx.cs">
|
||||
<DependentUpon>GoodsModel.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModel.aspx.designer.cs">
|
||||
<DependentUpon>GoodsModel.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModelDataIn.aspx.cs">
|
||||
<DependentUpon>GoodsModelDataIn.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModelDataIn.aspx.designer.cs">
|
||||
<DependentUpon>GoodsModelDataIn.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModelEdit.aspx.cs">
|
||||
<DependentUpon>GoodsModelEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsModelEdit.aspx.designer.cs">
|
||||
<DependentUpon>GoodsModelEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverGoods\GoodsPlan.aspx.cs">
|
||||
<DependentUpon>GoodsPlan.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
@ -15835,6 +15860,13 @@
|
|||
<Compile Include="TestRun\DriverScheme.aspx.designer.cs">
|
||||
<DependentUpon>DriverScheme.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverSchemeChart.aspx.cs">
|
||||
<DependentUpon>DriverSchemeChart.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverSchemeChart.aspx.designer.cs">
|
||||
<DependentUpon>DriverSchemeChart.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TestRun\DriverSchemeEdit.aspx.cs">
|
||||
<DependentUpon>DriverSchemeEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -0,0 +1,105 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsModel.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverGoods.GoodsModel" %>
|
||||
|
||||
<!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"
|
||||
runat="server" BoxFlex="1" DataKeyNames="GoodsModelId" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="GoodsModelId" AllowSorting="true" SortField="Code"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtDescription" Label="设备(材料)名称及规格" LabelWidth="180px" LabelAlign="Right"></f:TextBox>
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" Icon="Add" ToolTip="新增" EnablePostBack="false" runat="server" Hidden="true">
|
||||
</f:Button>
|
||||
<f:Button ID="btnImport" ToolTip="导入" Icon="PackageIn" runat="server" OnClick="btnImport_Click" Hidden="true">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="Code" DataField="Code" FieldType="String" HeaderText="序号" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="55px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Purpose" DataField="Purpose" FieldType="String" HeaderText="用途" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Description" DataField="Description" FieldType="String" HeaderText="设备(材料)名称及规格" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="300px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Quantity" DataField="Quantity" FieldType="String" HeaderText="数量" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Attachment" DataField="Attachment" FieldType="String" HeaderText="附件(详细清单/图纸等)" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="180px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</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="520px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window2" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Top" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="700px" Height="560px">
|
||||
</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">
|
||||
</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>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,168 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverGoods {
|
||||
|
||||
|
||||
public partial class GoodsModel {
|
||||
|
||||
/// <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>
|
||||
/// txtDescription 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDescription;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSearch;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <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>
|
||||
/// 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,68 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsModelDataIn.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverGoods.GoodsModelDataIn" %>
|
||||
|
||||
<!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" AutoSizePanelID="SimpleForm1" runat="server" OnCustomEvent="PageManager1_CustomEvent" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdFileName" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="审核" ValidateForms="SimpleForm1" Text="审核"
|
||||
OnClick="btnAudit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnImport" Icon="ApplicationGet" runat="server" ToolTip="导入" ValidateForms="SimpleForm1" Text="导入"
|
||||
OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="下载模板" OnClick="btnDownLoad_Click" Text="下载模板">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hdCheckResult" runat="server">
|
||||
</f:HiddenField>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="选择要导入的文件" Label="选择要导入的文件"
|
||||
LabelWidth="150px">
|
||||
</f:FileUpload>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="gvErrorInfo" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="人员报验" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" AllowCellEditing="true" ClicksToEdit="2" AllowSorting="true"
|
||||
SortDirection="DESC" EnableColumnLines="true" ForceFit="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
|
||||
EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# gvErrorInfo.PageIndex * gvErrorInfo.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:BoundField DataField="Row" HeaderText="错误行号">
|
||||
</f:BoundField>
|
||||
<f:BoundField DataField="Column" HeaderText="错误列">
|
||||
</f:BoundField>
|
||||
<f:BoundField DataField="Reason" HeaderText="错误类型">
|
||||
</f:BoundField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,399 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.OleDb;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverGoods
|
||||
{
|
||||
public partial class GoodsModelDataIn : PageBase
|
||||
{
|
||||
#region 定义变量
|
||||
/// <summary>
|
||||
/// 上传预设的虚拟路径
|
||||
/// </summary>
|
||||
private string initPath = Const.ExcelUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 错误集合
|
||||
/// </summary>
|
||||
public static List<Model.ErrorInfo> errorInfos = new List<Model.ErrorInfo>();
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.hdCheckResult.Text = string.Empty;
|
||||
this.hdFileName.Text = string.Empty;
|
||||
if (errorInfos != null)
|
||||
{
|
||||
errorInfos.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 审核
|
||||
/// <summary>
|
||||
/// 审核
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAudit_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.fuAttachUrl.HasFile == false)
|
||||
{
|
||||
ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".xls")
|
||||
{
|
||||
ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (errorInfos != null)
|
||||
{
|
||||
errorInfos.Clear();
|
||||
}
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initFullPath = rootPath + initPath;
|
||||
if (!Directory.Exists(initFullPath))
|
||||
{
|
||||
Directory.CreateDirectory(initFullPath);
|
||||
}
|
||||
|
||||
this.hdFileName.Text = BLL.Funs.GetNewFileName() + IsXls;
|
||||
string filePath = initFullPath + this.hdFileName.Text;
|
||||
this.fuAttachUrl.PostedFile.SaveAs(filePath);
|
||||
ImportXlsToData(rootPath + initPath + this.hdFileName.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 读Excel提取数据
|
||||
/// <summary>
|
||||
/// 从Excel提取数据--》Dataset
|
||||
/// </summary>
|
||||
/// <param name="filename">Excel文件路径名</param>
|
||||
private void ImportXlsToData(string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
string oleDBConnString = String.Empty;
|
||||
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
||||
oleDBConnString += "Data Source=";
|
||||
oleDBConnString += fileName;
|
||||
oleDBConnString += ";Extended Properties=Excel 8.0;";
|
||||
OleDbConnection oleDBConn = null;
|
||||
OleDbDataAdapter oleAdMaster = null;
|
||||
DataTable m_tableName = new DataTable();
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
oleDBConn = new OleDbConnection(oleDBConnString);
|
||||
oleDBConn.Open();
|
||||
m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
|
||||
|
||||
if (m_tableName != null && m_tableName.Rows.Count > 0)
|
||||
{
|
||||
|
||||
m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim();
|
||||
|
||||
}
|
||||
string sqlMaster;
|
||||
sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]";
|
||||
oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn);
|
||||
oleAdMaster.Fill(ds, "m_tableName");
|
||||
oleAdMaster.Dispose();
|
||||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL(ds.Tables[0], 6);
|
||||
hdCheckResult.Text = "1";
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Response.Write(exc);
|
||||
//return null;
|
||||
// return dt;
|
||||
}
|
||||
finally
|
||||
{
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 将Dataset的数据导入数据库
|
||||
/// <summary>
|
||||
/// 将Dataset的数据导入数据库
|
||||
/// </summary>
|
||||
/// <param name="pds">数据集</param>
|
||||
/// <param name="Cols">数据集行数</param>
|
||||
/// <returns></returns>
|
||||
private bool AddDatasetToSQL(DataTable pds, int Cols)
|
||||
{
|
||||
string result = string.Empty;
|
||||
int ic, ir;
|
||||
ic = pds.Columns.Count;
|
||||
if (ic < Cols)
|
||||
{
|
||||
ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
|
||||
ir = pds.Rows.Count;
|
||||
if (pds != null && ir > 0)
|
||||
{
|
||||
for (int i = 0; i < ir; i++)
|
||||
{
|
||||
string row0 = pds.Rows[i][0].ToString();
|
||||
if (!string.IsNullOrEmpty(row0))
|
||||
{
|
||||
try
|
||||
{
|
||||
Int32 num = Convert.ToInt32(row0.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "序号" + "," + "[" + row0 + "]错误!不是数字格式!" + "|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "序号为必填项,不能为空!" + "|";
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
result = result.Substring(0, result.LastIndexOf("|"));
|
||||
}
|
||||
errorInfos.Clear();
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
string results = result;
|
||||
List<string> errorInfoList = results.Split('|').ToList();
|
||||
foreach (var item in errorInfoList)
|
||||
{
|
||||
string[] errors = item.Split(',');
|
||||
Model.ErrorInfo errorInfo = new Model.ErrorInfo();
|
||||
errorInfo.Row = errors[0];
|
||||
errorInfo.Column = errors[1];
|
||||
errorInfo.Reason = errors[2];
|
||||
errorInfos.Add(errorInfo);
|
||||
}
|
||||
if (errorInfos.Count > 0)
|
||||
{
|
||||
this.gvErrorInfo.DataSource = errorInfos;
|
||||
this.gvErrorInfo.DataBind();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("审核完成,请点击导入!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
ShowNotify("导入数据为空!", MessageBoxIcon.Warning);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 导入
|
||||
/// <summary>
|
||||
/// 导入
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(hdCheckResult.Text))
|
||||
{
|
||||
if (errorInfos.Count <= 0)
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
ImportXlsToData2(rootPath + initPath + this.hdFileName.Text);
|
||||
hdCheckResult.Text = string.Empty;
|
||||
ShowNotify("导入成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region Excel提取数据
|
||||
/// <summary>
|
||||
/// 从Excel提取数据--》Dataset
|
||||
/// </summary>
|
||||
/// <param name="filename">Excel文件路径名</param>
|
||||
private void ImportXlsToData2(string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
string oleDBConnString = String.Empty;
|
||||
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
||||
oleDBConnString += "Data Source=";
|
||||
oleDBConnString += fileName;
|
||||
oleDBConnString += ";Extended Properties=Excel 8.0;";
|
||||
OleDbConnection oleDBConn = null;
|
||||
OleDbDataAdapter oleAdMaster = null;
|
||||
DataTable m_tableName = new DataTable();
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
oleDBConn = new OleDbConnection(oleDBConnString);
|
||||
oleDBConn.Open();
|
||||
m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
|
||||
|
||||
if (m_tableName != null && m_tableName.Rows.Count > 0)
|
||||
{
|
||||
|
||||
m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim();
|
||||
|
||||
}
|
||||
string sqlMaster;
|
||||
sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]";
|
||||
oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn);
|
||||
oleAdMaster.Fill(ds, "m_tableName");
|
||||
oleAdMaster.Dispose();
|
||||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL2(ds.Tables[0], 6);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 将Dataset的数据导入数据库
|
||||
/// <summary>
|
||||
/// 将Dataset的数据导入数据库
|
||||
/// </summary>
|
||||
/// <param name="pds">数据集</param>
|
||||
/// <param name="Cols">数据集列数</param>
|
||||
/// <returns></returns>
|
||||
private bool AddDatasetToSQL2(DataTable pds, int Cols)
|
||||
{
|
||||
int ic, ir;
|
||||
ic = pds.Columns.Count;
|
||||
if (ic < Cols)
|
||||
{
|
||||
ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
}
|
||||
var goodsModels = from x in Funs.DB.DriverGoods_GoodsModel where x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
string result = string.Empty;
|
||||
ir = pds.Rows.Count;
|
||||
if (pds != null && ir > 0)
|
||||
{
|
||||
List<Model.DriverGoods_GoodsModel> list = new List<Model.DriverGoods_GoodsModel>();
|
||||
for (int i = 0; i < ir; i++)
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = goodsModels.FirstOrDefault(x => x.Code == Funs.GetNewIntOrZero(pds.Rows[i][0].ToString().Trim()));
|
||||
if (modelOnly == null)
|
||||
{
|
||||
Model.DriverGoods_GoodsModel model = new Model.DriverGoods_GoodsModel();
|
||||
model.GoodsModelId = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.Code = Convert.ToInt32(pds.Rows[i][0].ToString().Trim());
|
||||
model.Purpose = pds.Rows[i][1].ToString().Trim();
|
||||
model.Description = pds.Rows[i][2].ToString().Trim();
|
||||
model.Quantity = pds.Rows[i][3].ToString().Trim();
|
||||
model.Attachment = pds.Rows[i][4].ToString().Trim();
|
||||
model.Remark = pds.Rows[i][5].ToString().Trim();
|
||||
list.Add(model);
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改
|
||||
modelOnly.Purpose = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Description = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.Quantity = pds.Rows[i][3].ToString().Trim();
|
||||
modelOnly.Attachment = pds.Rows[i][4].ToString().Trim();
|
||||
modelOnly.Remark = pds.Rows[i][5].ToString().Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
Funs.DB.DriverGoods_GoodsModel.InsertAllOnSubmit(list);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("导入数据为空!", MessageBoxIcon.Warning);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 下载模板
|
||||
/// <summary>
|
||||
/// 下载模板按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDownLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Confirm.GetShowReference("确定下载导入模板吗?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下载导入模板
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void PageManager1_CustomEvent(object sender, CustomEventArgs e)
|
||||
{
|
||||
if (e.EventArgument == "Confirm_OK")
|
||||
{
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string uploadfilepath = rootPath + "File\\Excel\\TestRun\\试车物资材料库导入模板.xls";
|
||||
string filePath = "File\\Excel\\DataIn\\试车物资材料库导入模板.xls";
|
||||
string fileName = Path.GetFileName(filePath);
|
||||
FileInfo info = new FileInfo(uploadfilepath);
|
||||
long fileSize = info.Length;
|
||||
Response.ClearContent();
|
||||
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
|
||||
Response.ContentType = "excel/plain";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
Response.AddHeader("Content-Length", fileSize.ToString().Trim());
|
||||
Response.TransmitFile(uploadfilepath, 0, fileSize);
|
||||
Response.End();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,123 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverGoods {
|
||||
|
||||
|
||||
public partial class GoodsModelDataIn {
|
||||
|
||||
/// <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>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// hdFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdFileName;
|
||||
|
||||
/// <summary>
|
||||
/// btnAudit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAudit;
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// btnDownLoad 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDownLoad;
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckResult 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdCheckResult;
|
||||
|
||||
/// <summary>
|
||||
/// fuAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FileUpload fuAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// gvErrorInfo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvErrorInfo;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsModelEdit.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverGoods.GoodsModelEdit" %>
|
||||
|
||||
<!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" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" OnClick="btnSave_Click" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" Title="开车物资库" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="false" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtCode" NoDecimal="true" ShowRedStar="true" Required="true" NoNegative="true" Label="序号" LabelAlign="Right" LabelWidth="130px"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtPurpose" runat="server" Label="用途" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDescription" runat="server" Label="设备(材料)名称及规格" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtQuantity" runat="server" Label="数量" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAttachment" runat="server" Label="附件(详细清单/图纸等)" LabelAlign="Right" LabelWidth="130px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="130px">
|
||||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server">
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件"
|
||||
LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
<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>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,100 @@
|
|||
using BLL;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverGoods
|
||||
{
|
||||
public partial class GoodsModelEdit : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 页面加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
string id = Request.Params["GoodsModelId"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
Model.DriverGoods_GoodsModel goodsModel = BLL.GoodsModelService.GetGoodsModelById(id);
|
||||
if (goodsModel != null)
|
||||
{
|
||||
this.hdId.Text = id;
|
||||
if (goodsModel.Code != null)
|
||||
{
|
||||
this.txtCode.Text = goodsModel.Code.ToString();
|
||||
}
|
||||
this.txtPurpose.Text = goodsModel.Purpose;
|
||||
this.txtDescription.Text = goodsModel.Description;
|
||||
this.txtQuantity.Text = goodsModel.Quantity;
|
||||
this.txtAttachment.Text = goodsModel.Attachment;
|
||||
this.txtRemark.Text = goodsModel.Remark;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||
{
|
||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverGoods_GoodsModel));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverGoods/GoodsModel&menuId={1}", this.hdId.Text, BLL.Const.GoodsModelMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string id = Request.Params["GoodsModelId"];
|
||||
Model.DriverGoods_GoodsModel newgoodsModel = new Model.DriverGoods_GoodsModel();
|
||||
newgoodsModel.Code = Funs.GetNewInt(this.txtCode.Text.Trim());
|
||||
newgoodsModel.Purpose = this.txtPurpose.Text.Trim();
|
||||
newgoodsModel.Description = this.txtDescription.Text.Trim();
|
||||
newgoodsModel.Quantity = this.txtQuantity.Text.Trim();
|
||||
newgoodsModel.Attachment = this.txtAttachment.Text.Trim();
|
||||
newgoodsModel.Remark = this.txtRemark.Text.Trim();
|
||||
newgoodsModel.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
newgoodsModel.GoodsModelId = id;
|
||||
BLL.GoodsModelService.UpdateGoodsModel(newgoodsModel);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
||||
{
|
||||
newgoodsModel.GoodsModelId = this.hdId.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
newgoodsModel.GoodsModelId = SQLHelper.GetNewID(typeof(Model.DriverGoods_GoodsModel));
|
||||
this.hdId.Text = newgoodsModel.GoodsModelId;
|
||||
}
|
||||
BLL.GoodsModelService.AddGoodsModel(newgoodsModel);
|
||||
}
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,195 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.TestRun.DriverGoods {
|
||||
|
||||
|
||||
public partial class GoodsModelEdit {
|
||||
|
||||
/// <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>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// txtCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtPurpose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPurpose;
|
||||
|
||||
/// <summary>
|
||||
/// txtDescription 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDescription;
|
||||
|
||||
/// <summary>
|
||||
/// txtQuantity 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtQuantity;
|
||||
|
||||
/// <summary>
|
||||
/// txtAttachment 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAttachment;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// lblAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblAttach;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttach;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
|
@ -6,10 +6,25 @@
|
|||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>开车保运管理</title>
|
||||
<style type="text/css">
|
||||
.f-grid-row .f-grid-cell-inner {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.f-grid-row.yellow {
|
||||
background-color: yellow;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.f-grid-row.red {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1"/>
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
|
@ -21,6 +36,8 @@
|
|||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnitId" runat="server" Label="单位名称" LabelAlign="Right" LabelWidth="130px" Width="400px"></f:DropDownList>
|
||||
<f:DropDownList ID="drpStatus" runat="server" Label="实施状态" LabelAlign="Right" LabelWidth="100px"></f:DropDownList>
|
||||
<f:DropDownList ID="drpPriority" runat="server" Label="优先级" LabelAlign="Right" LabelWidth="100px"></f:DropDownList>
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" ToolTip="搜索"
|
||||
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
|
||||
</f:Button>
|
||||
|
@ -44,7 +61,7 @@
|
|||
FieldType="String" HeaderText="内容" HeaderTextAlign="Center" Width="300px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Objective" DataField="Objective"
|
||||
FieldType="String" HeaderText="目的" HeaderTextAlign="Center" Width="200px" >
|
||||
FieldType="String" HeaderText="目的" HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="NeedCompletedDate" DataField="NeedCompletedDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="需完成时间" TextAlign="Center" HeaderTextAlign="Center">
|
||||
|
@ -52,6 +69,12 @@
|
|||
<f:RenderField Width="120px" ColumnID="RealCompletedDate" DataField="RealCompletedDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="实际完成时间" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Status" DataField="Status"
|
||||
FieldType="String" HeaderText="实施状态" HeaderTextAlign="Center" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Priority" DataField="Priority"
|
||||
FieldType="String" HeaderText="优先级" HeaderTextAlign="Center" Width="80px">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="State" Width="150px" HeaderText="审批状态" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
|
@ -88,7 +111,7 @@
|
|||
</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="620px">
|
||||
Width="900px" Height="650px">
|
||||
</f:Window>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
|
|
|
@ -18,6 +18,24 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
BindGrid();
|
||||
btnNew.OnClientClick = Window1.GetShowReference("DriverRunEdit.aspx") + "return false;";
|
||||
BLL.UnitService.InitUnitDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true);
|
||||
ListItem[] list1 = new ListItem[3];
|
||||
list1[0] = new ListItem("未开始", "1");
|
||||
list1[1] = new ListItem("进行中", "2");
|
||||
list1[2] = new ListItem("已完成", "3");
|
||||
this.drpStatus.DataTextField = "Text";
|
||||
this.drpStatus.DataValueField = "Value";
|
||||
this.drpStatus.DataSource = list1;
|
||||
this.drpStatus.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpStatus);
|
||||
ListItem[] list2 = new ListItem[3];
|
||||
list2[0] = new ListItem("低", "1");
|
||||
list2[1] = new ListItem("中", "2");
|
||||
list2[2] = new ListItem("高", "3");
|
||||
this.drpPriority.DataTextField = "Text";
|
||||
this.drpPriority.DataValueField = "Value";
|
||||
this.drpPriority.DataSource = list2;
|
||||
this.drpPriority.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpPriority);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
@ -39,6 +57,8 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
driverRun.Objective,
|
||||
driverRun.NeedCompletedDate,
|
||||
driverRun.RealCompletedDate,
|
||||
case driverRun.Status when '1' then '未开始' when '2' then '进行中' when '3' then '已完成' else '' end as Status,
|
||||
case driverRun.Priority when '1' then '低' when '2' then '中' when '3' then '高' else '' end as Priority,
|
||||
driverRun.Remark,
|
||||
Unit.UnitName AS UnitName"
|
||||
+ @" FROM DriverRun_DriverRun AS driverRun"
|
||||
|
@ -50,6 +70,16 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
strSql += " AND driverRun.UnitId=@unitId";
|
||||
listStr.Add(new SqlParameter("@unitId", this.drpUnitId.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.drpStatus.SelectedValue) && this.drpStatus.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND driverRun.Status=@Status";
|
||||
listStr.Add(new SqlParameter("@Status", this.drpStatus.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.drpPriority.SelectedValue) && this.drpPriority.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND driverRun.Priority=@Priority";
|
||||
listStr.Add(new SqlParameter("@Priority", this.drpPriority.SelectedValue));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
|
@ -57,6 +87,21 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
Model.DriverRun_DriverRun driverRun = BLL.DriverRunService.GetDriverRunById(Grid1.Rows[i].DataKeys[0].ToString());
|
||||
if (driverRun != null)
|
||||
{
|
||||
if (driverRun.Priority == "2")
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "yellow";
|
||||
}
|
||||
else if (driverRun.Priority == "3")
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "red";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -66,6 +66,24 @@ namespace FineUIPro.Web.TestRun.DriverRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
/// <summary>
|
||||
/// drpStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStatus;
|
||||
|
||||
/// <summary>
|
||||
/// drpPriority 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPriority;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -64,6 +64,12 @@
|
|||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpStatus" runat="server" Label="实施状态" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true"></f:DropDownList>
|
||||
<f:DropDownList ID="drpPriority" runat="server" Label="优先级" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtNeedCompletedDate" ShowRedStar="true" runat="server" Label="需完成时间" LabelWidth="150px" Required="true" LabelAlign="Right"
|
||||
|
|
|
@ -31,6 +31,24 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
if (!IsPostBack)
|
||||
{
|
||||
BLL.UnitService.InitUnitDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true);
|
||||
ListItem[] list1 = new ListItem[3];
|
||||
list1[0]= new ListItem("未开始","1");
|
||||
list1[1] = new ListItem("进行中", "2");
|
||||
list1[2] = new ListItem("已完成", "3");
|
||||
this.drpStatus.DataTextField = "Text";
|
||||
this.drpStatus.DataValueField = "Value";
|
||||
this.drpStatus.DataSource = list1;
|
||||
this.drpStatus.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpStatus);
|
||||
ListItem[] list2 = new ListItem[3];
|
||||
list2[0] = new ListItem("低", "1");
|
||||
list2[1] = new ListItem("中", "2");
|
||||
list2[2] = new ListItem("高", "3");
|
||||
this.drpPriority.DataTextField = "Text";
|
||||
this.drpPriority.DataValueField = "Value";
|
||||
this.drpPriority.DataSource = list2;
|
||||
this.drpPriority.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpPriority);
|
||||
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkIds, this.CurrUser.LoginProjectId, true);
|
||||
plApprove1.Hidden = true;
|
||||
plApprove2.Hidden = true;
|
||||
|
@ -63,6 +81,14 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
{
|
||||
this.txtRealCompletedDate.Text = string.Format("{0:yyyy-MM-dd}", data.RealCompletedDate);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.Status))
|
||||
{
|
||||
this.drpStatus.SelectedValue = data.Status;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.Priority))
|
||||
{
|
||||
this.drpPriority.SelectedValue = data.Priority;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.State))
|
||||
{
|
||||
State = data.State;
|
||||
|
@ -167,6 +193,16 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
Alert.ShowInTop("请选择区域!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpStatus.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择实施状态!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpPriority.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择优先级!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (State == BLL.Const.DriverRun_Audit4 && string.IsNullOrEmpty(this.txtRealCompletedDate.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInTop("请选择实际完成时间!", MessageBoxIcon.Warning);
|
||||
|
@ -189,6 +225,16 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
Alert.ShowInTop("请选择区域!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpStatus.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择实施状态!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpPriority.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择优先级!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (State == BLL.Const.DriverRun_Audit4 && string.IsNullOrEmpty(this.txtRealCompletedDate.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInTop("请选择实际完成时间!", MessageBoxIcon.Warning);
|
||||
|
@ -227,6 +273,14 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
}
|
||||
newData.Descriptions = this.txtDescriptions.Text.Trim();
|
||||
newData.Objective = this.txtObjective.Text.Trim();
|
||||
if (this.drpStatus.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newData.Status = this.drpStatus.SelectedValue;
|
||||
}
|
||||
if (this.drpPriority.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newData.Priority = this.drpPriority.SelectedValue;
|
||||
}
|
||||
newData.NeedCompletedDate = Funs.GetNewDateTime(this.txtNeedCompletedDate.Text.Trim());
|
||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
||||
newData.RealCompletedDate = Funs.GetNewDateTime(this.txtRealCompletedDate.Text.Trim());
|
||||
|
|
|
@ -156,6 +156,24 @@ namespace FineUIPro.Web.TestRun.DriverRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtObjective;
|
||||
|
||||
/// <summary>
|
||||
/// drpStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStatus;
|
||||
|
||||
/// <summary>
|
||||
/// drpPriority 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPriority;
|
||||
|
||||
/// <summary>
|
||||
/// txtNeedCompletedDate 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -60,6 +60,12 @@
|
|||
</f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpStatus" runat="server" Label="实施状态" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true" Readonly="true"></f:DropDownList>
|
||||
<f:DropDownList ID="drpPriority" runat="server" Label="优先级" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true" Readonly="true"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtNeedCompletedDate" ShowRedStar="true" runat="server" Label="需完成时间" Readonly="true" LabelWidth="150px" Required="true" LabelAlign="Right"
|
||||
|
|
|
@ -31,6 +31,24 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
if (!IsPostBack)
|
||||
{
|
||||
BLL.UnitService.InitUnitDownList(this.drpUnitId, this.CurrUser.LoginProjectId, true);
|
||||
ListItem[] list1 = new ListItem[3];
|
||||
list1[0] = new ListItem("未开始", "1");
|
||||
list1[1] = new ListItem("进行中", "2");
|
||||
list1[2] = new ListItem("已完成", "3");
|
||||
this.drpStatus.DataTextField = "Text";
|
||||
this.drpStatus.DataValueField = "Value";
|
||||
this.drpStatus.DataSource = list1;
|
||||
this.drpStatus.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpStatus);
|
||||
ListItem[] list2 = new ListItem[3];
|
||||
list2[0] = new ListItem("低", "1");
|
||||
list2[1] = new ListItem("中", "2");
|
||||
list2[2] = new ListItem("高", "3");
|
||||
this.drpPriority.DataTextField = "Text";
|
||||
this.drpPriority.DataValueField = "Value";
|
||||
this.drpPriority.DataSource = list2;
|
||||
this.drpPriority.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpPriority);
|
||||
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkIds, this.CurrUser.LoginProjectId, true);
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
|
@ -58,6 +76,14 @@ namespace FineUIPro.Web.TestRun.DriverRun
|
|||
{
|
||||
this.txtRealCompletedDate.Text = string.Format("{0:yyyy-MM-dd}", data.RealCompletedDate);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.Status))
|
||||
{
|
||||
this.drpStatus.SelectedValue = data.Status;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.Priority))
|
||||
{
|
||||
this.drpPriority.SelectedValue = data.Priority;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.State))
|
||||
{
|
||||
State = data.State;
|
||||
|
|
|
@ -138,6 +138,24 @@ namespace FineUIPro.Web.TestRun.DriverRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtObjective;
|
||||
|
||||
/// <summary>
|
||||
/// drpStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStatus;
|
||||
|
||||
/// <summary>
|
||||
/// drpPriority 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPriority;
|
||||
|
||||
/// <summary>
|
||||
/// txtNeedCompletedDate 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -59,11 +59,11 @@
|
|||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="UnitWorkIds" Width="120px" DataField="UnitWorkIds"
|
||||
FieldType="String" HeaderText="单位工程" TextAlign="Center"
|
||||
FieldType="String" HeaderText="装置" TextAlign="Center"
|
||||
HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="70px" ColumnID="CNProfessionalCodes" DataField="CNProfessionalCodes"
|
||||
FieldType="String" HeaderText="专业" TextAlign="Center" HeaderTextAlign="Center">
|
||||
<f:RenderField Width="70px" ColumnID="System" DataField="System"
|
||||
FieldType="String" HeaderText="系统" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
|
||||
<%--<f:TemplateField ColumnID="SolutionTempleteTypeName" Width="120px" HeaderText="方案类别" HeaderTextAlign="Center" TextAlign="Center"
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace FineUIPro.Web.TestRun
|
|||
{
|
||||
string strSql = @"SELECT chec.ConstructSolutionId,chec.ProjectId,chec.UnitId,chec.UnitWorkIds,chec.CNProfessionalCodes,"
|
||||
+ @" chec.CompileMan,chec.CompileDate,chec.code,chec.state,chec.SolutionType,chec.SolutionName,"
|
||||
+ @" unit.UnitName,u.userName as CompileManName,chec.SpecialSchemeTypeId,"
|
||||
+ @" unit.UnitName,u.userName as CompileManName,chec.SpecialSchemeTypeId,chec.System,"
|
||||
+ @" t.SpecialSchemeTypeName"
|
||||
+ @" FROM Solution_TestRunConstructSolution chec "
|
||||
+ @" left join Base_Unit unit on unit.unitId=chec.UnitId "
|
||||
|
@ -113,30 +113,43 @@ namespace FineUIPro.Web.TestRun
|
|||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var CNProfessional = CNProfessionalService.GetList();
|
||||
var uniWork = UnitWorkService.GetUnitWorkLists(CurrUser.LoginProjectId);
|
||||
if (tb.Rows.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < tb.Rows.Count; i++)
|
||||
{
|
||||
if (tb.Rows[i]["CNProfessionalCodes"] != null)
|
||||
{
|
||||
var code = tb.Rows[i]["CNProfessionalCodes"].ToString().Split(',');
|
||||
var listf = CNProfessional.Where(p => code.Contains(p.CNProfessionalId)).Select(p => p.ProfessionalName).ToArray();
|
||||
tb.Rows[i]["CNProfessionalCodes"] = string.Join(",", listf);
|
||||
}
|
||||
if (tb.Rows[i]["UnitWorkIds"] != null)
|
||||
{
|
||||
var code = tb.Rows[i]["UnitWorkIds"].ToString().Split(',');
|
||||
var workid = uniWork.Where(p => code.Contains(p.UnitWorkId)).Select(p => p.UnitWorkName + BLL.UnitWorkService.GetProjectType(p.ProjectType)).ToArray();
|
||||
tb.Rows[i]["UnitWorkIds"] = string.Join(",", workid);
|
||||
}
|
||||
}
|
||||
}
|
||||
//var CNProfessional = CNProfessionalService.GetList();
|
||||
//var uniWork = UnitWorkService.GetUnitWorkLists(CurrUser.LoginProjectId);
|
||||
//if (tb.Rows.Count > 0)
|
||||
//{
|
||||
// for (int i = 0; i < tb.Rows.Count; i++)
|
||||
// {
|
||||
// if (tb.Rows[i]["CNProfessionalCodes"] != null)
|
||||
// {
|
||||
// var code = tb.Rows[i]["CNProfessionalCodes"].ToString().Split(',');
|
||||
// var listf = CNProfessional.Where(p => code.Contains(p.CNProfessionalId)).Select(p => p.ProfessionalName).ToArray();
|
||||
// tb.Rows[i]["CNProfessionalCodes"] = string.Join(",", listf);
|
||||
// }
|
||||
// if (tb.Rows[i]["UnitWorkIds"] != null)
|
||||
// {
|
||||
// var code = tb.Rows[i]["UnitWorkIds"].ToString().Split(',');
|
||||
// var workid = uniWork.Where(p => code.Contains(p.UnitWorkId)).Select(p => p.UnitWorkName + BLL.UnitWorkService.GetProjectType(p.ProjectType)).ToArray();
|
||||
// tb.Rows[i]["UnitWorkIds"] = string.Join(",", workid);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
if (this.tvDataTypeInit.SelectedNodeID.Length > 1)
|
||||
{
|
||||
if (this.tvDataTypeInit.SelectedNodeID == "12")
|
||||
{
|
||||
this.Grid1.Columns[4].Hidden = true;
|
||||
this.Grid1.Columns[5].Hidden = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Grid1.Columns[4].Hidden = false;
|
||||
this.Grid1.Columns[5].Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -257,7 +270,7 @@ namespace FineUIPro.Web.TestRun
|
|||
Model.Solution_TestRunConstructSolution constructSolution = TestRunConstructSolutionService.GetConstructSolutionByConstructSolutionId(id);
|
||||
if (constructSolution.State == Const.TestRunConstructSolution_Complete)
|
||||
{
|
||||
Alert.ShowInTop("该方案已经审批完成,无法操作,请右键查看!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("该方案已经发布,无法操作,请右键查看!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else if (constructSolution.State == Const.TestRunConstructSolution_Compile)
|
||||
|
@ -273,7 +286,7 @@ namespace FineUIPro.Web.TestRun
|
|||
return;
|
||||
}
|
||||
}
|
||||
else if (constructSolution.State == Const.TestRunConstructSolution_Audit || constructSolution.State == Const.TestRunConstructSolution_ReCompile)
|
||||
else if (constructSolution.State == Const.TestRunConstructSolution_Audit || constructSolution.State == Const.TestRunConstructSolution_ReCompile || constructSolution.State == Const.TestRunConstructSolution_Audit2)
|
||||
{
|
||||
var approve = TestRunConstructSolutionApproveService.GetThisApproveByConstructSolutionId(id);
|
||||
if (approve != null && approve.ApproveMan == this.CurrUser.UserId)
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverSchemeChart.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverSchemeChart" %>
|
||||
<%@ Register Src="~/Controls/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc1" %>
|
||||
<!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="RegionPanel1" AjaxAspnetControls="divAccidentUnit,divAccidentTime" />
|
||||
<f:Panel ID="Panel3" CssClass="blockpanel" runat="server" EnableCollapse="false"
|
||||
BodyPadding="10px" ShowBorder="true" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowHeader="false" ShowBorder="false" runat="server">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="20% 3% 20% 30% 15% 10%">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtStartTime" runat="server" Label="时间" LabelAlign="Right"
|
||||
LabelWidth="80px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label3" runat="server" Text="至" Width="5px">
|
||||
</f:Label>
|
||||
<f:DatePicker ID="txtEndTime" runat="server">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpChartType" runat="server" Label="图形类型" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="drpChartType_SelectedIndexChanged" Width="300px" LabelWidth="80px">
|
||||
<f:ListItem Value="Column" Text="柱形图"></f:ListItem>
|
||||
<f:ListItem Value="Line" Text="折线图"></f:ListItem>
|
||||
<f:ListItem Value="Pie" Text="饼形图"></f:ListItem>
|
||||
<f:ListItem Value="StackedArea" Text="堆积面积图"></f:ListItem>
|
||||
<f:ListItem Value="Spline" Text="样条图"></f:ListItem>
|
||||
<f:ListItem Value="SplineArea" Text="样条面积图"></f:ListItem>
|
||||
<f:ListItem Value="StepLine" Text="阶梯线图"></f:ListItem>
|
||||
<f:ListItem Value="Stock" Text="股价图"></f:ListItem>
|
||||
<f:ListItem Value="Radar" Text="雷达图"></f:ListItem>
|
||||
</f:DropDownList>
|
||||
<f:CheckBox ID="ckbShow" runat="server" LabelWidth="80px" Label="三维效果" AutoPostBack="true"
|
||||
OnCheckedChanged="ckbShow_CheckedChanged" Width="110px">
|
||||
</f:CheckBox>
|
||||
<f:Button ID="BtnAnalyse" Text="统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel4" CssClass="blockpanel" runat="server" EnableCollapse="false"
|
||||
BodyPadding="10px" ShowBorder="true" ShowHeader="false">
|
||||
<Items>
|
||||
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="600px" ShowBorder="true"
|
||||
TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server">
|
||||
<Tabs>
|
||||
<f:Tab ID="Tab2" Title="图形" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server"
|
||||
TitleToolTip="图形">
|
||||
<Items>
|
||||
<f:ContentPanel ShowHeader="false" runat="server" ID="cpAccidentTime" Margin="0 0 0 0">
|
||||
<div id="divAccidentTime">
|
||||
<uc1:ChartControl ID="ChartAccidentTime" runat="server" />
|
||||
</div>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:Tab>
|
||||
</Tabs>
|
||||
</f:TabStrip>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,128 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.TestRun
|
||||
{
|
||||
public partial class DriverSchemeChart : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 统计
|
||||
/// <summary>
|
||||
/// 统计分析
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void BtnAnalyse_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.AnalyseData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 统计方法
|
||||
/// </summary>
|
||||
private void AnalyseData()
|
||||
{
|
||||
var forms = from x in Funs.DB.Solution_TestRunConstructSolution
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
select x;
|
||||
if (!string.IsNullOrEmpty(this.txtStartTime.Text.Trim()))
|
||||
{
|
||||
forms = forms.Where(x => x.CompileDate >= Funs.GetNewDateTime(this.txtStartTime.Text.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim()))
|
||||
{
|
||||
forms = forms.Where(x => x.CompileDate <= Funs.GetNewDateTime(this.txtEndTime.Text.Trim()));
|
||||
}
|
||||
#region 按状态统计
|
||||
if (this.drpChartType.SelectedValue != "Pie") //非饼形图
|
||||
{
|
||||
DataTable dtTime = new DataTable();
|
||||
dtTime.Columns.Add("状态", typeof(string));
|
||||
dtTime.Columns.Add("数量", typeof(string));
|
||||
DataRow rowTime1 = dtTime.NewRow();
|
||||
rowTime1["状态"] = "编制";
|
||||
rowTime1["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Compile).Count();
|
||||
dtTime.Rows.Add(rowTime1);
|
||||
DataRow rowTime2 = dtTime.NewRow();
|
||||
rowTime2["状态"] = "审核";
|
||||
rowTime2["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Audit).Count();
|
||||
dtTime.Rows.Add(rowTime2);
|
||||
DataRow rowTime3 = dtTime.NewRow();
|
||||
rowTime3["状态"] = "审批";
|
||||
rowTime3["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Audit2).Count();
|
||||
dtTime.Rows.Add(rowTime3);
|
||||
DataRow rowTime4 = dtTime.NewRow();
|
||||
rowTime4["状态"] = "发布";
|
||||
rowTime4["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Complete).Count();
|
||||
dtTime.Rows.Add(rowTime4);
|
||||
DataRow rowTime5 = dtTime.NewRow();
|
||||
rowTime5["状态"] = "重报";
|
||||
rowTime5["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_ReCompile).Count();
|
||||
dtTime.Rows.Add(rowTime5);
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "试车方案统计", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked));
|
||||
}
|
||||
else //饼形图
|
||||
{
|
||||
DataTable dtTime = new DataTable();
|
||||
dtTime.Columns.Add("状态", typeof(string));
|
||||
dtTime.Columns.Add("数量", typeof(string));
|
||||
DataRow rowTime1 = dtTime.NewRow();
|
||||
rowTime1["状态"] = "编制";
|
||||
rowTime1["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Compile).Count();
|
||||
dtTime.Rows.Add(rowTime1);
|
||||
DataRow rowTime2 = dtTime.NewRow();
|
||||
rowTime2["状态"] = "审核";
|
||||
rowTime2["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Audit).Count();
|
||||
dtTime.Rows.Add(rowTime2);
|
||||
DataRow rowTime3 = dtTime.NewRow();
|
||||
rowTime3["状态"] = "审批";
|
||||
rowTime3["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Audit2).Count();
|
||||
dtTime.Rows.Add(rowTime3);
|
||||
DataRow rowTime4 = dtTime.NewRow();
|
||||
rowTime4["状态"] = "发布";
|
||||
rowTime4["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_Complete).Count();
|
||||
dtTime.Rows.Add(rowTime4);
|
||||
DataRow rowTime5 = dtTime.NewRow();
|
||||
rowTime5["状态"] = "重报";
|
||||
rowTime5["数量"] = forms.Where(x => x.State == Const.TestRunConstructSolution_ReCompile).Count();
|
||||
dtTime.Rows.Add(rowTime5);
|
||||
this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dtTime, "试车方案统计", this.drpChartType.SelectedValue, 1300, 550, this.ckbShow.Checked));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 图形
|
||||
/// <summary>
|
||||
/// 图形变换
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void drpChartType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.AnalyseData();
|
||||
}
|
||||
|
||||
protected void ckbShow_CheckedChanged(object sender, CheckedEventArgs e)
|
||||
{
|
||||
this.AnalyseData();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,150 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.TestRun {
|
||||
|
||||
|
||||
public partial class DriverSchemeChart {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// drpChartType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpChartType;
|
||||
|
||||
/// <summary>
|
||||
/// ckbShow 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbShow;
|
||||
|
||||
/// <summary>
|
||||
/// BtnAnalyse 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button BtnAnalyse;
|
||||
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// TabStrip1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TabStrip TabStrip1;
|
||||
|
||||
/// <summary>
|
||||
/// Tab2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab2;
|
||||
|
||||
/// <summary>
|
||||
/// cpAccidentTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel cpAccidentTime;
|
||||
|
||||
/// <summary>
|
||||
/// ChartAccidentTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::Web.Controls.ChartControl ChartAccidentTime;
|
||||
}
|
||||
}
|
|
@ -36,7 +36,7 @@
|
|||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" Title="施工方案" ShowBorder="true"
|
||||
<f:ContentPanel ID="ContentPanel2" Title="试车方案" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
|
@ -58,54 +58,21 @@
|
|||
<f:FormRow ColumnWidths="25% 25% 25% 25%">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" ShowRedStar="true" LabelWidth="120px"
|
||||
runat="server" Required="true" Label="施工单位" EmptyText="--请选择--" AutoSelectFirstItem="false" LabelAlign="Right" EnableEdit="true">
|
||||
runat="server" Required="true" Label="编制单位" EmptyText="--请选择--" AutoSelectFirstItem="false" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:Label runat="server" ID="txtSolutionType" Label="方案类别" LabelWidth="120px" LabelAlign="Right"></f:Label>
|
||||
<f:DropDownBox runat="server" Label="单位工程" ShowRedStar="true" LabelWidth="120px"
|
||||
Required="true" ID="txtUnitWork" EmptyText="--请选择--" EnableMultiSelect="true" MatchFieldWidth="false">
|
||||
<PopPanel>
|
||||
<f:Grid ID="gvUnitWork" DataIDField="UnitWorkId" DataTextField="UnitWorkName" DataKeyNames="UnitWorkId"
|
||||
EnableMultiSelect="true" KeepCurrentSelection="true" Height="300px" Hidden="true"
|
||||
ShowBorder="true" ShowHeader="false" ForceFit="true"
|
||||
runat="server" EnableCheckBoxSelect="true">
|
||||
<Columns>
|
||||
<f:BoundField Width="100px" DataField="UnitWorkId" SortField="UnitWorkId" DataFormatString="{0}" Hidden="true" />
|
||||
<f:BoundField Width="100px" DataField="UnitWorkName" SortField="UnitWorkName" DataFormatString="{0}"
|
||||
HeaderText="工程名称" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
<f:DropDownList ID="drpSpecialType" EmptyText="--请选择--" AutoSelectFirstItem="false" ShowRedStar="true" runat="server" Width="350px" Label="分部分项工程" LabelAlign="Right" EnableEdit="true" LabelWidth="120px">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtCode" runat="server" Required="true" ShowRedStar="true" Label="编号" LabelAlign="Right" MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:NumberBox ID="txtEdition" Label="版次" runat="server" NoDecimal="true" Readonly="true" NoNegative="true" ShowRedStar="true" MaxLength="3" Required="true" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="25% 25% 25%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtCode" runat="server" Required="true" ShowRedStar="true" Label="编号" LabelAlign="Right" MaxLength="50" LabelWidth="120px">
|
||||
<f:TextBox ID="txtUnitWork" runat="server" Label="装置" LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtSystem" runat="server" Label="系统" LabelAlign="Right" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
|
||||
<f:NumberBox ID="txtEdition" Label="版次" runat="server" NoDecimal="true" Readonly="true" NoNegative="true" ShowRedStar="true" MaxLength="3" Required="true" LabelWidth="120px">
|
||||
</f:NumberBox>
|
||||
<f:DropDownBox runat="server" Label="专业" ShowRedStar="true" Required="true" ID="txtCNProfessional" EmptyText="--请选择--" DataControlID="txtCNProfessional" EnableMultiSelect="true" MatchFieldWidth="true" LabelWidth="120px">
|
||||
<PopPanel>
|
||||
<f:Grid ID="gvCNPro" BoxFlex="1"
|
||||
DataIDField="CNProfessionalId" DataTextField="ProfessionalName" EnableMultiSelect="true" KeepCurrentSelection="true"
|
||||
ShowBorder="true" ShowHeader="false" ForceFit="true"
|
||||
runat="server" EnableCheckBoxSelect="true" DataKeyNames="CNProfessionalId" Hidden="true">
|
||||
<Columns>
|
||||
<%--<f:RowNumberField />--%>
|
||||
<f:BoundField Width="100px" DataField="CNProfessionalId" SortField="CNProfessionalId" DataFormatString="{0}" Hidden="true" />
|
||||
<f:BoundField Width="100px" DataField="ProfessionalName" SortField="ProfessionalName" DataFormatString="{0}"
|
||||
HeaderText="名称" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtCompileDate" ShowRedStar="true" Required="true" runat="server" Label="编制时间" LabelAlign="Right" EnableEdit="true" LabelWidth="120px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
|
@ -148,81 +115,34 @@
|
|||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtCopyMan" Label="总包会签人员" Readonly="True" Enabled="False"/>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" IsFluid="true" CssClass="mytable blockpanel" runat="server" AutoScroll="true" ShowBorder="true"
|
||||
Layout="Table" TableConfigColumns="3" ShowHeader="true" Title="总包会签">
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" Title="Panel1" Width="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false" Height="200px">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trOne" ShowHeader="false" AutoScroll="true" ShowBorder="false" OnNodeCheck="trOne_NodeCheck" EnableArrows="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Panel ID="Panel3" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false" Hidden="True">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trTwo" ShowHeader="false" ShowBorder="false" OnNodeCheck="trTwo_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>--%>
|
||||
<f:Panel ID="Panel4" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trThree" ShowHeader="false" ShowBorder="false" OnNodeCheck="trThree_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Panel ID="Panel5" Title="Panel1" Width="200px" AutoScroll="true" Height="200px" Hidden="True"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFour" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFour_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>--%>
|
||||
<f:Panel ID="Panel6" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFive" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFive_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Panel ID="Panel7" Title="Panel1" Width="200px" AutoScroll="true" Height="200px" Hidden="True"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trSixe" ShowHeader="false" ShowBorder="false" OnNodeCheck="trSixe_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>--%>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="agree">
|
||||
<Items>
|
||||
|
||||
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="是否同意" ShowRedStar="true" AutoPostBack="true">
|
||||
<f:RadioItem Text="同意" Value="true" Selected="true" />
|
||||
<f:RadioItem Text="不同意" Value="false" />
|
||||
</f:RadioButtonList>
|
||||
<f:Label runat="server" CssStyle="display:none"></f:Label>
|
||||
<f:ContentPanel ID="ContentPanel5" Title="试车方案审批流程设置" runat="server" ShowHeader="true" EnableCollapse="true"
|
||||
BodyPadding="0px">
|
||||
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="是否同意" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="rblIsAgree_SelectedIndexChanged">
|
||||
<f:RadioItem Text="同意" Value="true" Selected="true" />
|
||||
<f:RadioItem Text="不同意" Value="false" />
|
||||
</f:RadioButtonList>
|
||||
<f:Label runat="server" CssStyle="display:none"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpHandleType" OnSelectedIndexChanged="drpHandleType_SelectedIndexChanged" Readonly="true"
|
||||
AutoPostBack="true" runat="server" Label="办理步骤" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpHandleMan" runat="server" Label="办理人员" Required="true" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="options">
|
||||
|
@ -251,7 +171,7 @@
|
|||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
|
||||
DataKeyNames="ConstructSolutionApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand" ForceFit="true">
|
||||
DataKeyNames="ConstructSolutionApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand">
|
||||
<Columns>
|
||||
<f:RowNumberField Width="40px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
||||
|
@ -273,7 +193,7 @@
|
|||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:BoundField Width="100px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="办理时间" />
|
||||
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" />
|
||||
<f:BoundField Width="380px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" ExpandUnusedSpace="true" />
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -93,33 +93,6 @@ namespace FineUIPro.Web.TestRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSolutionType;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitWork 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox txtUnitWork;
|
||||
|
||||
/// <summary>
|
||||
/// gvUnitWork 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvUnitWork;
|
||||
|
||||
/// <summary>
|
||||
/// drpSpecialType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpSpecialType;
|
||||
|
||||
/// <summary>
|
||||
/// txtCode 控件。
|
||||
/// </summary>
|
||||
|
@ -139,22 +112,22 @@ namespace FineUIPro.Web.TestRun {
|
|||
protected global::FineUIPro.NumberBox txtEdition;
|
||||
|
||||
/// <summary>
|
||||
/// txtCNProfessional 控件。
|
||||
/// txtUnitWork 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox txtCNProfessional;
|
||||
protected global::FineUIPro.TextBox txtUnitWork;
|
||||
|
||||
/// <summary>
|
||||
/// gvCNPro 控件。
|
||||
/// txtSystem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvCNPro;
|
||||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtCompileDate 控件。
|
||||
|
@ -193,85 +166,22 @@ namespace FineUIPro.Web.TestRun {
|
|||
protected global::FineUIPro.HtmlEditor txtDocContent;
|
||||
|
||||
/// <summary>
|
||||
/// txtCopyMan 控件。
|
||||
/// ContentPanel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCopyMan;
|
||||
protected global::FineUIPro.ContentPanel ContentPanel5;
|
||||
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// Form5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// trOne 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trOne;
|
||||
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// trThree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trThree;
|
||||
|
||||
/// <summary>
|
||||
/// Panel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel6;
|
||||
|
||||
/// <summary>
|
||||
/// trFive 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trFive;
|
||||
|
||||
/// <summary>
|
||||
/// agree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow agree;
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsAgree 控件。
|
||||
|
@ -282,6 +192,24 @@ namespace FineUIPro.Web.TestRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsAgree;
|
||||
|
||||
/// <summary>
|
||||
/// drpHandleType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHandleType;
|
||||
|
||||
/// <summary>
|
||||
/// drpHandleMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpHandleMan;
|
||||
|
||||
/// <summary>
|
||||
/// options 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" Title="施工方案" ShowBorder="true"
|
||||
<f:ContentPanel ID="ContentPanel2" Title="试车方案" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
|
@ -55,7 +55,7 @@
|
|||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="drpUnit" runat="server" Readonly="true" Label="施工单位" LabelAlign="Right"
|
||||
<f:TextBox ID="drpUnit" runat="server" Readonly="true" Label="编制单位" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtSolutionName" runat="server" ShowRedStar="true" Readonly="true" Required="true" Label="方案名称" LabelAlign="Right"
|
||||
|
@ -63,7 +63,7 @@
|
|||
</f:TextBox>
|
||||
|
||||
<%-- <f:DropDownList ID="drpUnit" ShowRedStar="true"
|
||||
runat="server" Required="true" Label="施工单位" LabelAlign="Right" EnableEdit="true">
|
||||
runat="server" Required="true" Label="编制单位" LabelAlign="Right" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
|
||||
<f:DropDownList ID="drpModelType" ShowRedStar="true" Required="true" runat="server" Width="350px" Label="方案类别" LabelAlign="Right" EnableEdit="true">
|
||||
|
@ -79,7 +79,10 @@
|
|||
<f:TextBox ID="drpModelType" runat="server" Readonly="true" Label="方案类别" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtSpecialType" runat="server" Readonly="true" Label="分部分项工程" LabelAlign="Right"
|
||||
<f:TextBox ID="txtUnitWork" runat="server" Readonly="true" Label="装置" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtSystem" runat="server" Readonly="true" Label="系统" LabelAlign="Right"
|
||||
MaxLength="50" LabelWidth="120px">
|
||||
</f:TextBox>
|
||||
|
||||
|
@ -99,51 +102,6 @@
|
|||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCNProfessional" runat="server" Readonly="true" Label="专业" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
</f:TextBox>
|
||||
<%-- <f:DropDownBox runat="server" Label="专业" ShowRedStar="true" Required="true" ID="txtCNProfessional" EmptyText="--请选择--" DataControlID="txtCNProfessional" EnableMultiSelect="true" MatchFieldWidth="true">
|
||||
<PopPanel>
|
||||
<f:Grid ID="gvCNPro" BoxFlex="1"
|
||||
DataIDField="CNProfessionalCode" DataTextField="ProfessionalName" EnableMultiSelect="true" KeepCurrentSelection="true"
|
||||
ShowBorder="true" ShowHeader="false"
|
||||
runat="server" EnableCheckBoxSelect="true" DataKeyNames="CNProfessionalCode" Hidden="true">
|
||||
<Columns>
|
||||
<f:RowNumberField />
|
||||
<f:BoundField Width="100px" DataField="CNProfessionalCode" SortField="CNProfessionalCode" DataFormatString="{0}" Hidden="true" />
|
||||
<f:BoundField Width="100px" DataField="ProfessionalName" SortField="ProfessionalName" DataFormatString="{0}"
|
||||
ExpandUnusedSpace="true" HeaderText="名称" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>--%>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUnitWork" runat="server" Readonly="true" Label="单位工程" LabelAlign="Right"
|
||||
MaxLength="50">
|
||||
</f:TextBox>
|
||||
<%-- <f:DropDownBox runat="server" Label="单位工程" ShowRedStar="true"
|
||||
Required="true" ID="txtUnitWork" EmptyText="--请选择--" EnableMultiSelect="true" MatchFieldWidth="false">
|
||||
<PopPanel>
|
||||
<f:Grid ID="gvUnitWork" DataIDField="UnitWorkId" DataTextField="UnitWorkName" DataKeyNames="UnitWorkId"
|
||||
EnableMultiSelect="true" KeepCurrentSelection="true" Height="300px" Hidden="true"
|
||||
ShowBorder="true" ShowHeader="false"
|
||||
runat="server" EnableCheckBoxSelect="true">
|
||||
<Columns>
|
||||
<f:BoundField Width="100px" DataField="UnitWorkId" SortField="UnitWorkId" DataFormatString="{0}" Hidden="true" />
|
||||
<f:BoundField Width="100px" DataField="UnitWorkName" SortField="UnitWorkName" DataFormatString="{0}"
|
||||
ExpandUnusedSpace="true" HeaderText="工程名称" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>--%>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow runat="server">
|
||||
<Items>
|
||||
<f:TabStrip ID="TabStrip1" IsFluid="true" Height="500px" ShowBorder="true" TabPosition="Top"
|
||||
|
@ -187,68 +145,6 @@
|
|||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel2" IsFluid="true" CssClass="mytable blockpanel" runat="server" AutoScroll="true" ShowBorder="true"
|
||||
Layout="Table" TableConfigColumns="3" ShowHeader="true" Title="总包会签">
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" Title="Panel1" Width="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false" Height="200px">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trOne" ShowHeader="false" AutoScroll="true" ShowBorder="false" EnableArrows="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Panel ID="Panel3" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false" Hidden="True">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trTwo" ShowHeader="false" ShowBorder="false" OnNodeCheck="trTwo_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>--%>
|
||||
<f:Panel ID="Panel4" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trThree" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Panel ID="Panel5" Title="Panel1" Width="200px" AutoScroll="true" Height="200px" Hidden="True"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFour" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFour_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>--%>
|
||||
<f:Panel ID="Panel6" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trFive" ShowHeader="false" ShowBorder="false">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<%--<f:Panel ID="Panel7" Title="Panel1" Width="200px" AutoScroll="true" Height="200px" Hidden="True"
|
||||
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Tree runat="server" ID="trSixe" ShowHeader="false" ShowBorder="false" OnNodeCheck="trSixe_NodeCheck">
|
||||
<Nodes>
|
||||
</Nodes>
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>--%>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ID="plApprove2">
|
||||
<Items>
|
||||
|
||||
|
@ -256,7 +152,7 @@
|
|||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
|
||||
DataKeyNames="ConstructSolutionApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand" ForceFit="true">
|
||||
DataKeyNames="ConstructSolutionApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand">
|
||||
<Columns>
|
||||
<f:RowNumberField Width="40px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
||||
|
@ -278,7 +174,7 @@
|
|||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:BoundField Width="100px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="办理时间" />
|
||||
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" />
|
||||
<f:BoundField Width="380px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="办理意见" ExpandUnusedSpace="true" />
|
||||
<f:LinkButtonField HeaderText="附件" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" />
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
|
|
|
@ -48,10 +48,12 @@ namespace FineUIPro.Web.TestRun
|
|||
{
|
||||
drpModelType.Text = TestRunConstructSolutionService.ConvertSolutionType(constructSolution.SolutionType);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(constructSolution.SpecialSchemeTypeId))
|
||||
if (constructSolution.SolutionType == "12")
|
||||
{
|
||||
txtSpecialType.Text = BLL.SpecialSchemeTypeService.GetSpecialSchemeTypeById(constructSolution.SpecialSchemeTypeId).SpecialSchemeTypeName;
|
||||
this.txtUnitWork.Hidden = true;
|
||||
this.txtSystem.Hidden = true;
|
||||
}
|
||||
txtSystem.Text = constructSolution.System;
|
||||
if (constructSolution.CompileDate != null)
|
||||
{
|
||||
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", constructSolution.CompileDate);
|
||||
|
@ -59,13 +61,9 @@ namespace FineUIPro.Web.TestRun
|
|||
txtSolutionName.Text = constructSolution.SolutionName;
|
||||
if (!string.IsNullOrWhiteSpace(constructSolution.UnitWorkIds))
|
||||
{
|
||||
txtUnitWork.Text = UnitWorkService.GetUnitWorkName(constructSolution.UnitWorkIds);
|
||||
txtUnitWork.Text = constructSolution.UnitWorkIds;
|
||||
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(constructSolution.CNProfessionalCodes))
|
||||
{
|
||||
txtCNProfessional.Text = TestRunConstructSolutionService.GetProfessionalName(constructSolution.CNProfessionalCodes);
|
||||
}
|
||||
if (constructSolution.Edition != null)
|
||||
{
|
||||
txtEdition.Text = constructSolution.Edition.ToString();
|
||||
|
@ -73,25 +71,7 @@ namespace FineUIPro.Web.TestRun
|
|||
txtDocContent.Text = HttpUtility.HtmlDecode(constructSolution.Content);
|
||||
|
||||
bindApprove();
|
||||
BindZYRole();
|
||||
BindAQRole();
|
||||
BindSGRole();
|
||||
//BindXMRole();
|
||||
var zyUserIds = TestRunConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "ZY");
|
||||
if (zyUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trOne, zyUserIds);
|
||||
}
|
||||
var aqUserIds = TestRunConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "AQ");
|
||||
if (aqUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trThree, aqUserIds);
|
||||
}
|
||||
var sgUserIds = TestRunConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "SG");
|
||||
if (sgUserIds.Count > 0)
|
||||
{
|
||||
SetCheck(trFive, sgUserIds);
|
||||
}
|
||||
//var xmUserIds = TestRunConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "XM");
|
||||
//if (xmUserIds.Count > 0)
|
||||
//{
|
||||
|
@ -130,41 +110,6 @@ namespace FineUIPro.Web.TestRun
|
|||
}
|
||||
}
|
||||
|
||||
/// 加载角色树:动态加载
|
||||
/// </summary>
|
||||
private void BindZYRole()
|
||||
{
|
||||
|
||||
TreeNode rootNode = new TreeNode();//定义根节点
|
||||
rootNode.Text = "专业工程师";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
rootNode.EnableCheckEvent = true;
|
||||
trOne.Nodes.Add(rootNode);
|
||||
trOne.EnableCheckBox = true;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var userList = from x in db.Sys_User
|
||||
join y in db.Project_ProjectUnit
|
||||
on x.UnitId equals y.UnitId
|
||||
join p in db.Project_ProjectUser
|
||||
on x.UserId equals p.UserId
|
||||
where p.RoleId.Contains(Const.ZBCNEngineer)
|
||||
&& y.UnitType == Const.ProjectUnitType_1 && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId
|
||||
select x;
|
||||
//var ss = LINQToDataTable(userList);
|
||||
foreach (var u in userList)
|
||||
{
|
||||
TreeNode Node = new TreeNode();
|
||||
Node.Text = u.UserName;
|
||||
Node.NodeID = u.UserId;
|
||||
Node.EnableCheckEvent = true;
|
||||
rootNode.Nodes.Add(Node);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否有选择
|
||||
/// </summary>
|
||||
|
@ -187,67 +132,6 @@ namespace FineUIPro.Web.TestRun
|
|||
return res;
|
||||
}
|
||||
|
||||
private void BindAQRole()
|
||||
{
|
||||
TreeNode rootNode = new TreeNode();//定义根节点
|
||||
rootNode.Text = "HSE组";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
rootNode.EnableCheckEvent = true;
|
||||
trThree.Nodes.Add(rootNode);
|
||||
trThree.EnableCheckBox = true;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var userList = from x in db.Sys_User
|
||||
join y in db.Project_ProjectUnit
|
||||
on x.UnitId equals y.UnitId
|
||||
join p in db.Project_ProjectUser
|
||||
on x.UserId equals p.UserId
|
||||
where (p.RoleId.Contains(Const.HSSEManager) || p.RoleId.Contains(Const.HSSEEngineer))
|
||||
&& y.UnitType == Const.ProjectUnitType_1 && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId
|
||||
orderby x.UserCode
|
||||
select x;
|
||||
foreach (var u in userList)
|
||||
{
|
||||
TreeNode roleNode = new TreeNode();
|
||||
roleNode.Text = u.UserName;
|
||||
roleNode.NodeID = u.UserId;
|
||||
rootNode.Nodes.Add(roleNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void BindSGRole()
|
||||
{
|
||||
|
||||
TreeNode rootNode = new TreeNode();//定义根节点
|
||||
rootNode.Text = "施工经理";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
rootNode.EnableCheckEvent = true;
|
||||
trFive.Nodes.Add(rootNode);
|
||||
trFive.EnableCheckBox = true;
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var userList = from x in db.Sys_User
|
||||
join y in db.Project_ProjectUnit
|
||||
on x.UnitId equals y.UnitId
|
||||
join p in db.Project_ProjectUser
|
||||
on x.UserId equals p.UserId
|
||||
where (p.RoleId.Contains(Const.ConstructionManager) || p.RoleId.Contains(Const.ConstructionAssistantManager))
|
||||
&& y.UnitType == Const.ProjectUnitType_1 && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId
|
||||
orderby x.UserCode
|
||||
select x;
|
||||
foreach (var u in userList)
|
||||
{
|
||||
TreeNode roleNode = new TreeNode();
|
||||
roleNode.Text = u.UserName;
|
||||
roleNode.NodeID = u.UserId;
|
||||
rootNode.Nodes.Add(roleNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//private void BindXMRole()
|
||||
//{
|
||||
|
||||
|
|
|
@ -103,13 +103,22 @@ namespace FineUIPro.Web.TestRun {
|
|||
protected global::FineUIPro.TextBox drpModelType;
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecialType 控件。
|
||||
/// txtUnitWork 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSpecialType;
|
||||
protected global::FineUIPro.TextBox txtUnitWork;
|
||||
|
||||
/// <summary>
|
||||
/// txtSystem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtCompileDate 控件。
|
||||
|
@ -129,24 +138,6 @@ namespace FineUIPro.Web.TestRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtEdition;
|
||||
|
||||
/// <summary>
|
||||
/// txtCNProfessional 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCNProfessional;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitWork 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnitWork;
|
||||
|
||||
/// <summary>
|
||||
/// TabStrip1 控件。
|
||||
/// </summary>
|
||||
|
@ -174,69 +165,6 @@ namespace FineUIPro.Web.TestRun {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.HtmlEditor txtDocContent;
|
||||
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// trOne 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trOne;
|
||||
|
||||
/// <summary>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// trThree 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trThree;
|
||||
|
||||
/// <summary>
|
||||
/// Panel6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel6;
|
||||
|
||||
/// <summary>
|
||||
/// trFive 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree trFive;
|
||||
|
||||
/// <summary>
|
||||
/// plApprove2 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false"/>
|
||||
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||
</httpHandlers>
|
||||
<compilation debug="false" targetFramework="4.6.1"/>
|
||||
<compilation debug="true" targetFramework="4.6.1"/>
|
||||
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" executionTimeout="36000"/>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="Login.aspx" name="PUBLISHERCOOKIE" protection="All" timeout="1440" path="/"/>
|
||||
|
|
|
@ -22,15 +22,19 @@
|
|||
<TreeNode id="D4E9A4EB-6C5A-42B7-AB59-EB510FB020A3" Text="开车保运管理" NavigateUrl="TestRun/DriverRun/DriverRun.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="8EB88D36-5B13-4F41-8FE8-D66BCA08439D" Text="开车方案管理" NavigateUrl=""><TreeNode id="CAA63693-5D41-4018-9FF7-AAB311E6D8E0" Text="开车方案管理" NavigateUrl="TestRun/DriverScheme.aspx"></TreeNode>
|
||||
<TreeNode id="94E11762-49CB-4116-9B28-6927BDC59D31" Text="开车方案统计" NavigateUrl="TestRun/DriverSchemeChart.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="2BF9C16D-536F-4F89-AA59-49ED1A1A164C" Text="开车进度管理" NavigateUrl=""><TreeNode id="BC860C85-B224-48A6-B207-D7042BB71088" Text="开车进度管理" NavigateUrl="TestRun/DriverProgress.aspx"></TreeNode>
|
||||
<TreeNode id="2BF9C16D-536F-4F89-AA59-49ED1A1A164C" Text="开车进度管理" NavigateUrl=""><TreeNode id="EE7E37CA-384F-41B3-BAEE-89CBD9954AB3" Text="预试车进度" NavigateUrl="TestRun/Report/PreRunSchedule.aspx"></TreeNode>
|
||||
<TreeNode id="9ACDF513-BD63-48F5-BFA3-B9B1B7FA19E1" Text="试车进度" NavigateUrl="TestRun/Report/TestRunSchedule.aspx"></TreeNode>
|
||||
<TreeNode id="3D554109-D95F-4051-8A6C-5616A7A95C94" Text="首页进度设置" NavigateUrl="TestRun/Report/ScheduleSetUp.aspx"></TreeNode>
|
||||
<TreeNode id="BC860C85-B224-48A6-B207-D7042BB71088" Text="开车进度管理" NavigateUrl="TestRun/DriverProgress.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="4C6A8C24-6E2E-401A-90E1-128FAA1B8AA8" Text="开车HSE管理" NavigateUrl=""><TreeNode id="568F061C-5BD2-40B1-86E5-C49C2057AD9B" Text="开车HSE措施方案" NavigateUrl="TestRun/DriverHse/HseMeasure.aspx"></TreeNode>
|
||||
<TreeNode id="1648A5CD-CF78-418B-9CF1-6325C353BDB8" Text="开车风险源识别" NavigateUrl="TestRun/DriverHse/HseHazard.aspx"></TreeNode>
|
||||
<TreeNode id="18F5914D-A5DF-44F9-BE04-9EA8908BA3C8" Text="开车作业票管理" NavigateUrl="TestRun/DriverHse/HseLicense.aspx"></TreeNode>
|
||||
<TreeNode id="02866B09-CEB3-42E0-870C-B81187FB0079" Text="开车安全线路图" NavigateUrl="TestRun/DriverHse/RoadMap.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="CA46AEF2-D058-433B-BDE3-760015337ED4" Text="开车物资材料管理" NavigateUrl=""><TreeNode id="1C6B597D-0FB7-404A-8512-6FCD53EE2552" Text="开车物资计划" NavigateUrl="TestRun/DriverGoods/GoodsPlan.aspx"></TreeNode>
|
||||
<TreeNode id="CA46AEF2-D058-433B-BDE3-760015337ED4" Text="开车物资材料管理" NavigateUrl=""><TreeNode id="1C6B597D-0FB7-404A-8512-6FCD53EE2552" Text="开车物资材料库" NavigateUrl="TestRun/DriverGoods/GoodsModel.aspx"></TreeNode>
|
||||
<TreeNode id="1EC7978C-7800-45B2-9E80-3334644EF898" Text="开车物资请购管理" NavigateUrl="TestRun/DriverGoods/GoodsBuy.aspx"></TreeNode>
|
||||
<TreeNode id="AACD667C-5481-425D-819C-3892168DF61E" Text="开车材料跟踪管理" NavigateUrl="TestRun/DriverGoods/MaterialTrace.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
|
@ -42,12 +46,12 @@
|
|||
<TreeNode id="D9D90BA4-BF34-4045-977F-DCE9D507F40F" Text="生成工作包检查表" NavigateUrl="TestRun/BeforeTestRun/SubInspectTerm.aspx"></TreeNode>
|
||||
<TreeNode id="150A6D3D-CAA2-4246-947C-6730A18BCC83" Text="检查表条件确认" NavigateUrl="TestRun/BeforeTestRun/SubWorkInspect.aspx"></TreeNode>
|
||||
<TreeNode id="B6A6EA7D-EDAB-40C8-920D-A106731D0E08" Text="检查表尾项管理" NavigateUrl="TestRun/BeforeTestRun/InspectTailTermList.aspx"></TreeNode>
|
||||
<TreeNode id="F7A324D0-2410-4B37-858C-10F0A3059C90" Text="检查项确认" NavigateUrl="TestRun/BeforeTestRun/TailTermHandleList.aspx"></TreeNode>
|
||||
<TreeNode id="2254D22A-94EF-435F-9916-F07BD7082689" Text="检查表流转" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutList.aspx"></TreeNode>
|
||||
<TreeNode id="8542644D-BD9B-4188-9FDE-AE5D6D6D9A40" Text="检查项审核" NavigateUrl="TestRun/BeforeTestRun/TailTermApproveList.aspx"></TreeNode>
|
||||
<TreeNode id="F7A324D0-2410-4B37-858C-10F0A3059C90" Text="尾项处理" NavigateUrl="TestRun/BeforeTestRun/TailTermHandleList.aspx"></TreeNode>
|
||||
<TreeNode id="8542644D-BD9B-4188-9FDE-AE5D6D6D9A40" Text="尾项审核" NavigateUrl="TestRun/BeforeTestRun/TailTermApproveList.aspx"></TreeNode>
|
||||
<TreeNode id="2254D22A-94EF-435F-9916-F07BD7082689" Text="检查表会签" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutList.aspx"></TreeNode>
|
||||
<TreeNode id="AF88737F-D665-4C81-99D5-A07A8910C1E0" Text="检查表流转全部通过" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutAllPassList.aspx"></TreeNode>
|
||||
<TreeNode id="F184E0FC-96E3-48A5-9515-21EAD37053B3" Text="现场实施" NavigateUrl="TestRun/BeforeTestRun/SiteImplementationList.aspx"></TreeNode>
|
||||
<TreeNode id="19865B64-E0AA-4D32-9712-05C14FE6288F" Text="试车记录上传" NavigateUrl="TestRun/BeforeTestRun/TestRunRecordUploadList.aspx"></TreeNode>
|
||||
<TreeNode id="AF88737F-D665-4C81-99D5-A07A8910C1E0" Text="检查表流转全部通过" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutAllPassList.aspx"></TreeNode>
|
||||
<TreeNode id="FCC050F0-0F13-4CE5-BE33-623377562965" Text="三查四定尾项清单" NavigateUrl="TestRun/BeforeTestRun/SubThreeChecksFourDecisionList.aspx"></TreeNode>
|
||||
<TreeNode id="4822760B-395B-4979-B547-EA0D715C8A2C" Text="三查四定提出人处理" NavigateUrl="TestRun/BeforeTestRun/FourDecisionProposerHandle.aspx"></TreeNode>
|
||||
<TreeNode id="E673FC27-74F1-479C-8DE1-950183566725" Text="三查四定责任人销项" NavigateUrl="TestRun/BeforeTestRun/FourDecisionResponsibilityConfirm.aspx"></TreeNode>
|
||||
|
@ -65,9 +69,11 @@
|
|||
<TreeNode id="0217CE50-3ABB-44F8-A38A-C9792C436639" Text="试车管理" NavigateUrl=""><TreeNode id="E3E38073-1DF4-4C02-AFC0-5C93EE7C23A8" Text="系统划分" NavigateUrl="TestRun/TestRunManage/DeviceRun.aspx"></TreeNode>
|
||||
<TreeNode id="4B964B32-D5CC-48A2-8750-48BC4460C264" Text="工作包设置" NavigateUrl="TestRun/TestRunManage/SetWorkPackage.aspx"></TreeNode>
|
||||
<TreeNode id="B6EE8E3B-77E2-416E-8985-3C78A2169B89" Text="工作包裁剪" NavigateUrl="TestRun/TestRunManage/SubSysWorkPackage.aspx"></TreeNode>
|
||||
<TreeNode id="AF2B0CAD-DE15-4F15-A5EE-C8FB558D00C8" Text="检查项分组信息" NavigateUrl="TestRun/TestRunManage/TemplateItemGroup.aspx"></TreeNode>
|
||||
<TreeNode id="545AACE6-34BE-4BAA-A495-B73198F1BDE2" Text="检查表模板" NavigateUrl="TestRun/TestRunManage/InspectTemplate.aspx"></TreeNode>
|
||||
<TreeNode id="086DBD12-5649-4330-807A-44ABB257495F" Text="联动试车管理" NavigateUrl="TestRun/TestRunManage/SubInspectTerm.aspx"></TreeNode>
|
||||
<TreeNode id="4041089F-5CC2-4070-9556-7DAB83CF6292" Text="检查表尾项管理" NavigateUrl="TestRun/TestRunManage/InspectTailTermList.aspx"></TreeNode>
|
||||
<TreeNode id="A593B611-82C1-40D8-BB6A-DD025DB62F8C" Text="联动试车确认" NavigateUrl="TestRun/TestRunManage/SubWorkInspect.aspx"></TreeNode>
|
||||
<TreeNode id="2232ED9A-EA3C-4CB5-A53C-D96D3F5E0527" Text="尾项处理" NavigateUrl="TestRun/TestRunManage/TailTermHandleList.aspx"></TreeNode>
|
||||
<TreeNode id="9489BD6A-1A95-43BC-85C0-A65751C2C85E" Text="尾项审核" NavigateUrl="TestRun/TestRunManage/TailTermApproveList.aspx"></TreeNode>
|
||||
<TreeNode id="26F8468D-4358-4E2A-895D-8720A6F1FA89" Text="检查表会签" NavigateUrl="TestRun/TestRunManage/InspectWanderAboutList.aspx"></TreeNode>
|
||||
|
|
|
@ -1,3 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Tree>
|
||||
<TreeNode id="48545C6A-9D10-47F4-810F-DAB0CFCD5BF9" Text="Project Set up" NavigateUrl="Transfer/ProjectSetup.aspx">
|
||||
</TreeNode>
|
||||
<TreeNode id="D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B" Text="Piping" NavigateUrl="Transfer/Piping.aspx"></TreeNode>
|
||||
<TreeNode id="982F746C-084C-445C-9AE8-8C37BDFE7994" Text="Static Equipment" NavigateUrl="Transfer/StaticEquipment.aspx"></TreeNode>
|
||||
<TreeNode id="7E2FB5F9-FB99-4455-B68F-460F1F9A2676" Text="Rotating Equipment" NavigateUrl="Transfer/RotatingEquipment.aspx"></TreeNode>
|
||||
<TreeNode id="88F51059-55B4-4CD5-A38C-36404E5029F6" Text="Instrumentation" NavigateUrl="Transfer/Instrumentation.aspx"></TreeNode>
|
||||
<TreeNode id="296E75D2-192A-4D1F-8471-DD34263F8691" Text="Electrical" NavigateUrl="Transfer/Electrical.aspx"></TreeNode>
|
||||
<TreeNode id="95C39F86-C060-452E-BA37-D891C466A39B" Text="Civil Structure" NavigateUrl="Transfer/CivilStructure.aspx"></TreeNode>
|
||||
<TreeNode id="794E64E2-FDD2-4B7D-8408-F7FB06F9C92A" Text="Firefighting" NavigateUrl="Transfer/Firefighting.aspx"></TreeNode>
|
||||
<TreeNode id="58FFBD80-ACB9-4830-A18A-E025D9600D94" Text="Telecom" NavigateUrl="Transfer/Telecom.aspx"></TreeNode>
|
||||
<TreeNode id="95295BF7-FB51-480D-9902-6ADA4E8427FC" Text="Plumbing" NavigateUrl="Transfer/Plumbing.aspx"></TreeNode>
|
||||
<TreeNode id="05442049-1310-45B1-9D3D-CAAE759D8F3E" Text="HVAC" NavigateUrl="Transfer/HVAC.aspx"></TreeNode>
|
||||
<TreeNode id="016903B1-3B86-4CF5-AFF8-FF8BE389BEE5" Text="Punchlist from" NavigateUrl="Transfer/PunchlistFrom.aspx"></TreeNode>
|
||||
<TreeNode id="3517DBE2-9728-4BA0-9EA5-AE2147DB883B" Text="移交图表" NavigateUrl=""><TreeNode id="E6F5125D-DD94-4978-B7EB-D9C26694D86D" Text="全厂移交统计表" NavigateUrl="Transfer/Chart/Instrumentation.aspx"></TreeNode>
|
||||
<TreeNode id="F97BCF55-E450-4007-AD84-AB64B3496204" Text="全厂移交统计递增表" NavigateUrl="Transfer/Chart/TransferChart.aspx"></TreeNode>
|
||||
<TreeNode id="C2DD3E9E-DB18-466F-8FA0-19AD6E21EEF0" Text="Punchlist from" NavigateUrl="Transfer/Chart/PunchlistFrom.aspx"></TreeNode>
|
||||
<TreeNode id="BB5EC5E1-A23D-4A3F-8772-CD40757974EC" Text="Punchlist from统计递增表" NavigateUrl="Transfer/Chart/PunchlistFromChart.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -722,6 +722,9 @@ namespace Model
|
|||
partial void InsertDriverGoods_GoodsBuy(DriverGoods_GoodsBuy instance);
|
||||
partial void UpdateDriverGoods_GoodsBuy(DriverGoods_GoodsBuy instance);
|
||||
partial void DeleteDriverGoods_GoodsBuy(DriverGoods_GoodsBuy instance);
|
||||
partial void InsertDriverGoods_GoodsModel(DriverGoods_GoodsModel instance);
|
||||
partial void UpdateDriverGoods_GoodsModel(DriverGoods_GoodsModel instance);
|
||||
partial void DeleteDriverGoods_GoodsModel(DriverGoods_GoodsModel instance);
|
||||
partial void InsertDriverGoods_GoodsPlan(DriverGoods_GoodsPlan instance);
|
||||
partial void UpdateDriverGoods_GoodsPlan(DriverGoods_GoodsPlan instance);
|
||||
partial void DeleteDriverGoods_GoodsPlan(DriverGoods_GoodsPlan instance);
|
||||
|
@ -4414,6 +4417,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<DriverGoods_GoodsModel> DriverGoods_GoodsModel
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<DriverGoods_GoodsModel>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<DriverGoods_GoodsPlan> DriverGoods_GoodsPlan
|
||||
{
|
||||
get
|
||||
|
@ -25664,6 +25675,8 @@ namespace Model
|
|||
|
||||
private EntitySet<DriverGoods_GoodsBuy> _DriverGoods_GoodsBuy;
|
||||
|
||||
private EntitySet<DriverGoods_GoodsModel> _DriverGoods_GoodsModel;
|
||||
|
||||
private EntitySet<DriverGoods_GoodsPlan> _DriverGoods_GoodsPlan;
|
||||
|
||||
private EntitySet<DriverGoods_MaterialTrace> _DriverGoods_MaterialTrace;
|
||||
|
@ -26256,6 +26269,7 @@ namespace Model
|
|||
this._Driver_Meeting = new EntitySet<Driver_Meeting>(new Action<Driver_Meeting>(this.attach_Driver_Meeting), new Action<Driver_Meeting>(this.detach_Driver_Meeting));
|
||||
this._Driver_TestRun = new EntitySet<Driver_TestRun>(new Action<Driver_TestRun>(this.attach_Driver_TestRun), new Action<Driver_TestRun>(this.detach_Driver_TestRun));
|
||||
this._DriverGoods_GoodsBuy = new EntitySet<DriverGoods_GoodsBuy>(new Action<DriverGoods_GoodsBuy>(this.attach_DriverGoods_GoodsBuy), new Action<DriverGoods_GoodsBuy>(this.detach_DriverGoods_GoodsBuy));
|
||||
this._DriverGoods_GoodsModel = new EntitySet<DriverGoods_GoodsModel>(new Action<DriverGoods_GoodsModel>(this.attach_DriverGoods_GoodsModel), new Action<DriverGoods_GoodsModel>(this.detach_DriverGoods_GoodsModel));
|
||||
this._DriverGoods_GoodsPlan = new EntitySet<DriverGoods_GoodsPlan>(new Action<DriverGoods_GoodsPlan>(this.attach_DriverGoods_GoodsPlan), new Action<DriverGoods_GoodsPlan>(this.detach_DriverGoods_GoodsPlan));
|
||||
this._DriverGoods_MaterialTrace = new EntitySet<DriverGoods_MaterialTrace>(new Action<DriverGoods_MaterialTrace>(this.attach_DriverGoods_MaterialTrace), new Action<DriverGoods_MaterialTrace>(this.detach_DriverGoods_MaterialTrace));
|
||||
this._DriverHse_HseHazard = new EntitySet<DriverHse_HseHazard>(new Action<DriverHse_HseHazard>(this.attach_DriverHse_HseHazard), new Action<DriverHse_HseHazard>(this.detach_DriverHse_HseHazard));
|
||||
|
@ -28411,6 +28425,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverGoods_GoodsModel_Base_Project", Storage="_DriverGoods_GoodsModel", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<DriverGoods_GoodsModel> DriverGoods_GoodsModel
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DriverGoods_GoodsModel;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._DriverGoods_GoodsModel.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverGoods_GoodsPlan_Base_Project", Storage="_DriverGoods_GoodsPlan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<DriverGoods_GoodsPlan> DriverGoods_GoodsPlan
|
||||
{
|
||||
|
@ -32145,6 +32172,18 @@ namespace Model
|
|||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_DriverGoods_GoodsModel(DriverGoods_GoodsModel entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_DriverGoods_GoodsModel(DriverGoods_GoodsModel entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_DriverGoods_GoodsPlan(DriverGoods_GoodsPlan entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
@ -122078,6 +122117,277 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.DriverGoods_GoodsModel")]
|
||||
public partial class DriverGoods_GoodsModel : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _GoodsModelId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private System.Nullable<int> _Code;
|
||||
|
||||
private string _Description;
|
||||
|
||||
private string _Quantity;
|
||||
|
||||
private string _Purpose;
|
||||
|
||||
private string _Attachment;
|
||||
|
||||
private string _Remark;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnGoodsModelIdChanging(string value);
|
||||
partial void OnGoodsModelIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnCodeChanging(System.Nullable<int> value);
|
||||
partial void OnCodeChanged();
|
||||
partial void OnDescriptionChanging(string value);
|
||||
partial void OnDescriptionChanged();
|
||||
partial void OnQuantityChanging(string value);
|
||||
partial void OnQuantityChanged();
|
||||
partial void OnPurposeChanging(string value);
|
||||
partial void OnPurposeChanged();
|
||||
partial void OnAttachmentChanging(string value);
|
||||
partial void OnAttachmentChanged();
|
||||
partial void OnRemarkChanging(string value);
|
||||
partial void OnRemarkChanged();
|
||||
#endregion
|
||||
|
||||
public DriverGoods_GoodsModel()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GoodsModelId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string GoodsModelId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._GoodsModelId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._GoodsModelId != value))
|
||||
{
|
||||
this.OnGoodsModelIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._GoodsModelId = value;
|
||||
this.SendPropertyChanged("GoodsModelId");
|
||||
this.OnGoodsModelIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_Code", DbType="Int")]
|
||||
public System.Nullable<int> Code
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Code;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Code != value))
|
||||
{
|
||||
this.OnCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Code = value;
|
||||
this.SendPropertyChanged("Code");
|
||||
this.OnCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(200)")]
|
||||
public string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Description;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Description != value))
|
||||
{
|
||||
this.OnDescriptionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Description = value;
|
||||
this.SendPropertyChanged("Description");
|
||||
this.OnDescriptionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="NVarChar(50)")]
|
||||
public string Quantity
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Quantity;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Quantity != value))
|
||||
{
|
||||
this.OnQuantityChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Quantity = value;
|
||||
this.SendPropertyChanged("Quantity");
|
||||
this.OnQuantityChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Purpose", DbType="NVarChar(100)")]
|
||||
public string Purpose
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Purpose;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Purpose != value))
|
||||
{
|
||||
this.OnPurposeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Purpose = value;
|
||||
this.SendPropertyChanged("Purpose");
|
||||
this.OnPurposeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Attachment", DbType="NVarChar(100)")]
|
||||
public string Attachment
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Attachment;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Attachment != value))
|
||||
{
|
||||
this.OnAttachmentChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Attachment = value;
|
||||
this.SendPropertyChanged("Attachment");
|
||||
this.OnAttachmentChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(200)")]
|
||||
public string Remark
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Remark;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Remark != value))
|
||||
{
|
||||
this.OnRemarkChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Remark = value;
|
||||
this.SendPropertyChanged("Remark");
|
||||
this.OnRemarkChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverGoods_GoodsModel_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.DriverGoods_GoodsModel.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.DriverGoods_GoodsModel.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.DriverGoods_GoodsPlan")]
|
||||
public partial class DriverGoods_GoodsPlan : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
@ -127548,6 +127858,10 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _RealCompletedDate;
|
||||
|
||||
private string _Status;
|
||||
|
||||
private string _Priority;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Base_Unit> _Base_Unit;
|
||||
|
@ -127590,6 +127904,10 @@ namespace Model
|
|||
partial void OnStateChanged();
|
||||
partial void OnRealCompletedDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnRealCompletedDateChanged();
|
||||
partial void OnStatusChanging(string value);
|
||||
partial void OnStatusChanged();
|
||||
partial void OnPriorityChanging(string value);
|
||||
partial void OnPriorityChanged();
|
||||
#endregion
|
||||
|
||||
public DriverRun_DriverRun()
|
||||
|
@ -127928,6 +128246,46 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="Char(1)")]
|
||||
public string Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Status;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Status != value))
|
||||
{
|
||||
this.OnStatusChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Status = value;
|
||||
this.SendPropertyChanged("Status");
|
||||
this.OnStatusChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Priority", DbType="Char(1)")]
|
||||
public string Priority
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Priority;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Priority != value))
|
||||
{
|
||||
this.OnPriorityChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Priority = value;
|
||||
this.SendPropertyChanged("Priority");
|
||||
this.OnPriorityChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverRun_DriverRun_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
|
@ -325609,6 +325967,8 @@ namespace Model
|
|||
|
||||
private string _Content;
|
||||
|
||||
private string _System;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<Base_SpecialSchemeType> _Base_SpecialSchemeType;
|
||||
|
@ -325651,6 +326011,8 @@ namespace Model
|
|||
partial void OnSpecialSchemeTypeIdChanged();
|
||||
partial void OnContentChanging(string value);
|
||||
partial void OnContentChanged();
|
||||
partial void OnSystemChanging(string value);
|
||||
partial void OnSystemChanged();
|
||||
#endregion
|
||||
|
||||
public Solution_TestRunConstructSolution()
|
||||
|
@ -325974,6 +326336,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_System", DbType="NVarChar(50)")]
|
||||
public string System
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._System;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._System != value))
|
||||
{
|
||||
this.OnSystemChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._System = value;
|
||||
this.SendPropertyChanged("System");
|
||||
this.OnSystemChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Solution_TestRunConstructSolution_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue