This commit is contained in:
李鹏飞 2023-06-06 10:05:24 +08:00
commit e66750312e
49 changed files with 5969 additions and 3129 deletions

View File

@ -0,0 +1,6 @@
insert into [Sys_Const]
values('C92CC20B-1710-4DD3-A0DA-9E308DCC945B','Menu_Doc','Эµ÷Ó빵ͨ',13,'MenuType_P',null)
GO

View File

@ -0,0 +1,49 @@
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('D00B3C53-2972-4D24-B88F-B38880D4A24F','设备材料分类','JDGL/WBS/EquipmentMaterialType.aspx',5,'0','Menu_JDGL',0,1,1)
GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('3B588E9C-B89C-466B-B1A6-A8986F04EBA6','D00B3C53-2972-4D24-B88F-B38880D4A24F','增加',1)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('9522CCE6-9F26-4C4B-84AC-708E7FC7F39D','D00B3C53-2972-4D24-B88F-B38880D4A24F','修改',2)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('D2F495A5-33D0-49B2-BEF5-BA96C9283D71','D00B3C53-2972-4D24-B88F-B38880D4A24F','删除',3)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('2AE8CA32-9218-41A1-AEFF-33B5EB416B08','D00B3C53-2972-4D24-B88F-B38880D4A24F','保存',4)
GO
CREATE TABLE [dbo].[WBS_EquipmentMaterialType](
[EquipmentMaterialTypeId] [nvarchar](50) NOT NULL,
[EquipmentMaterialTypeCode] [nvarchar](50) NULL,
[EquipmentMaterialTypeName] [nvarchar](50) NULL,
[Remark] [nvarchar](100) NULL,
CONSTRAINT [PK_WBS_EquipmentMaterialType] PRIMARY KEY CLUSTERED
(
[EquipmentMaterialTypeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'备注' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @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'WBS_EquipmentMaterialType'
GO
alter table WBS_CostControl add EquipmentMaterialTypeId nvarchar(50) null
GO
alter table WBS_CostControl add constraint FK_WBS_CostControl_WBS_EquipmentMaterialType
foreign key (EquipmentMaterialTypeId) references WBS_EquipmentMaterialType (EquipmentMaterialTypeId)
GO

View File

@ -0,0 +1,19 @@
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('F2BC1293-8639-4BD6-8759-648BCF6346E9','设备材料大类','JDGL/WBS/EquipmentMaterialBigType.aspx',4,'0','Menu_JDGL',0,1,1)
GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('A6A7CDD7-B223-4A80-9A0E-8E0F4B4E422A','F2BC1293-8639-4BD6-8759-648BCF6346E9','增加',1)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('0D343597-D1FD-4CD5-9F23-43E6A68FE26B','F2BC1293-8639-4BD6-8759-648BCF6346E9','修改',2)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('D003035F-CE86-4A71-AD3A-33CD4E260A00','F2BC1293-8639-4BD6-8759-648BCF6346E9','删除',3)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('6210DDB2-9196-4315-9308-009BD3A85E78','F2BC1293-8639-4BD6-8759-648BCF6346E9','保存',4)
GO
alter table WBS_EquipmentMaterialType add EquipmentMaterialBigTypeId nvarchar(50) null
GO
alter table WBS_EquipmentMaterialType add constraint FK_WBS_EquipmentMaterialType_WBS_EquipmentMaterialBigType
foreign key (EquipmentMaterialBigTypeId) references WBS_EquipmentMaterialBigType (EquipmentMaterialBigTypeId)
GO

View File

@ -6,6 +6,32 @@ go
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
--VALUES('B707B4E0-EF73-4010-A13B-59263A5029C7','单位、分部、分项工程设置','',10,'0','Menu_JDGL',0,0,1)
--GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('F2BC1293-8639-4BD6-8759-648BCF6346E9','设备材料大类','JDGL/WBS/EquipmentMaterialBigType.aspx',4,'0','Menu_JDGL',0,1,1)
GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('A6A7CDD7-B223-4A80-9A0E-8E0F4B4E422A','F2BC1293-8639-4BD6-8759-648BCF6346E9','增加',1)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('0D343597-D1FD-4CD5-9F23-43E6A68FE26B','F2BC1293-8639-4BD6-8759-648BCF6346E9','修改',2)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('D003035F-CE86-4A71-AD3A-33CD4E260A00','F2BC1293-8639-4BD6-8759-648BCF6346E9','删除',3)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('6210DDB2-9196-4315-9308-009BD3A85E78','F2BC1293-8639-4BD6-8759-648BCF6346E9','保存',4)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('D00B3C53-2972-4D24-B88F-B38880D4A24F','设备材料分类','JDGL/WBS/EquipmentMaterialType.aspx',5,'0','Menu_JDGL',0,1,1)
GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('3B588E9C-B89C-466B-B1A6-A8986F04EBA6','D00B3C53-2972-4D24-B88F-B38880D4A24F','增加',1)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('9522CCE6-9F26-4C4B-84AC-708E7FC7F39D','D00B3C53-2972-4D24-B88F-B38880D4A24F','修改',2)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('D2F495A5-33D0-49B2-BEF5-BA96C9283D71','D00B3C53-2972-4D24-B88F-B38880D4A24F','删除',3)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('2AE8CA32-9218-41A1-AEFF-33B5EB416B08','D00B3C53-2972-4D24-B88F-B38880D4A24F','保存',4)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('858E83E9-ADE5-452E-BD65-82D8DFF872C0','分部、工作项及费用清单裁剪','JDGL/WBS/WBSSetAudit.aspx',10,'0','Menu_JDGL',0,1,1)
GO

View File

@ -92,9 +92,9 @@ namespace BLL
page = "pages/index/main",
data = new
{
thing2 = new { value = thing2 },
name1 = new { value = name1 },
date3 = new { value = date3 }
thing3 = new { value = thing2 },
thing13 = new { value = name1 },
time5 = new { value = date3 }
},
miniprogram_state,
lang = "zh_CN",

View File

@ -582,6 +582,8 @@
<Compile Include="JDGL\WBS\CostControlInitService.cs" />
<Compile Include="JDGL\WBS\CostControlParentDetailService.cs" />
<Compile Include="JDGL\WBS\CostControlService.cs" />
<Compile Include="JDGL\WBS\EquipmentMaterialBigTypeService.cs" />
<Compile Include="JDGL\WBS\EquipmentMaterialTypeService.cs" />
<Compile Include="JDGL\WBS\MilePostService.cs" />
<Compile Include="JDGL\WBS\UnitProjectInitService.cs" />
<Compile Include="JDGL\WBS\UnitProjectService.cs" />

View File

@ -61,7 +61,7 @@ namespace BLL
/// <summary>
/// 微信订阅模板ID
/// </summary>
public const string WX_TemplateID = "hKFrcahyXEjGSrLM4qBPpjXAkFldnrqxU_mARd1IF4o";
public const string WX_TemplateID = "1gT0FfTc2LwnnqUCU8h_nXDyv8VGtne1Iolo47gPA0c";
/// <summary>
/// 五环OA 私钥
@ -5204,6 +5204,16 @@ namespace BLL
/// </summary>
public const string ProjectInstallationMenuId = "A4308F9A-0280-49C5-BEE4-FA858FE1CE24";
/// <summary>
/// 设备材料大类
/// </summary>
public const string EquipmentMaterialBigTypeMenuId = "F2BC1293-8639-4BD6-8759-648BCF6346E9";
/// <summary>
/// 设备材料分类
/// </summary>
public const string EquipmentMaterialTypeMenuId = "D00B3C53-2972-4D24-B88F-B38880D4A24F";
/// <summary>
/// 分部、工作项及费用清单设置
/// </summary>

View File

@ -63,6 +63,7 @@ namespace BLL
newUP.CostControlName = costControl.CostControlName;
newUP.Unit = costControl.Unit;
newUP.IsSelected = costControl.IsSelected;
newUP.EquipmentMaterialTypeId = costControl.EquipmentMaterialTypeId;
newUP.TotalNum = costControl.TotalNum;
newUP.RealPrice = costControl.RealPrice;
@ -84,6 +85,7 @@ namespace BLL
newUP.Unit = costControl.Unit;
newUP.TotalNum = costControl.TotalNum;
newUP.IsSelected = costControl.IsSelected;
newUP.EquipmentMaterialTypeId = costControl.EquipmentMaterialTypeId;
newUP.RealPrice = costControl.RealPrice;
newUP.PlanPrice = costControl.PlanPrice;
newUP.PlanStartDate = costControl.PlanStartDate;

View File

@ -0,0 +1,125 @@
using FineUIPro;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BLL
{
public static class EquipmentMaterialBigTypeService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 获取实体集合
/// </summary>
/// <returns></returns>
public static List<Model.WBS_EquipmentMaterialBigType> GetList()
{
var q = (from x in Funs.DB.WBS_EquipmentMaterialBigType orderby x.EquipmentMaterialBigTypeCode select x).ToList();
return q;
}
/// <summary>
/// 添加
/// </summary>
/// <param name="?"></param>
public static void AddEquipmentMaterialBigType(Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType)
{
Model.SGGLDB db = Funs.DB;
Model.WBS_EquipmentMaterialBigType newEquipmentMaterialBigType = new Model.WBS_EquipmentMaterialBigType
{
EquipmentMaterialBigTypeId = EquipmentMaterialBigType.EquipmentMaterialBigTypeId,
EquipmentMaterialBigTypeCode = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode,
EquipmentMaterialBigTypeName = EquipmentMaterialBigType.EquipmentMaterialBigTypeName,
Remark = EquipmentMaterialBigType.Remark
};
db.WBS_EquipmentMaterialBigType.InsertOnSubmit(newEquipmentMaterialBigType);
db.SubmitChanges();
}
/// <summary>
/// 修改
/// </summary>
/// <param name="teamGroup"></param>
public static void UpdateEquipmentMaterialBigType(Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType)
{
Model.SGGLDB db = Funs.DB;
Model.WBS_EquipmentMaterialBigType newEquipmentMaterialBigType = db.WBS_EquipmentMaterialBigType.FirstOrDefault(e => e.EquipmentMaterialBigTypeId == EquipmentMaterialBigType.EquipmentMaterialBigTypeId);
if (newEquipmentMaterialBigType != null)
{
newEquipmentMaterialBigType.EquipmentMaterialBigTypeCode = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode;
newEquipmentMaterialBigType.EquipmentMaterialBigTypeName = EquipmentMaterialBigType.EquipmentMaterialBigTypeName;
newEquipmentMaterialBigType.Remark = EquipmentMaterialBigType.Remark;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除信息
/// </summary>
/// <param name="EquipmentMaterialBigTypeId"></param>
public static void DeleteEquipmentMaterialBigTypeById(string EquipmentMaterialBigTypeId)
{
Model.SGGLDB db = Funs.DB;
Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = db.WBS_EquipmentMaterialBigType.FirstOrDefault(e => e.EquipmentMaterialBigTypeId == EquipmentMaterialBigTypeId);
{
db.WBS_EquipmentMaterialBigType.DeleteOnSubmit(EquipmentMaterialBigType);
db.SubmitChanges();
}
}
public static void InitEquipmentMaterialBigTypeDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "Value";
dropName.DataTextField = "Text";
dropName.DataSource = GetEquipmentMaterialBigTypeItem();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 设备材料分类下拉框
/// </summary>
/// <param name="dropName"></param>
/// <param name="projectId"></param>
/// <param name="isShowPlease"></param>
public static void InitEquipmentMaterialBigType(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "Text";
dropName.DataTextField = "Text";
dropName.DataSource = GetEquipmentMaterialBigTypeItem();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 获取设备材料分类集合
/// </summary>
/// <returns></returns>
public static ListItem[] GetEquipmentMaterialBigTypeItem()
{
var q = (from x in Funs.DB.WBS_EquipmentMaterialBigType orderby x.EquipmentMaterialBigTypeCode select x).ToList();
ListItem[] list = new ListItem[q.Count()];
for (int i = 0; i < q.Count(); i++)
{
list[i] = new ListItem(q[i].EquipmentMaterialBigTypeName ?? "", q[i].EquipmentMaterialBigTypeId);
}
return list;
}
/// <summary>
/// 获取一个设备材料分类信息
/// </summary>
/// <param name="postId"></param>
/// <returns></returns>
public static Model.WBS_EquipmentMaterialBigType GetEquipmentMaterialBigType(string EquipmentMaterialBigTypeId)
{
return Funs.DB.WBS_EquipmentMaterialBigType.FirstOrDefault(e => e.EquipmentMaterialBigTypeId == EquipmentMaterialBigTypeId);
}
}
}

View File

@ -0,0 +1,127 @@
using FineUIPro;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BLL
{
public static class EquipmentMaterialTypeService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 获取实体集合
/// </summary>
/// <returns></returns>
public static List<Model.WBS_EquipmentMaterialType> GetList()
{
var q = (from x in Funs.DB.WBS_EquipmentMaterialType orderby x.EquipmentMaterialTypeCode select x).ToList();
return q;
}
/// <summary>
/// 添加
/// </summary>
/// <param name="?"></param>
public static void AddEquipmentMaterialType(Model.WBS_EquipmentMaterialType equipmentMaterialType)
{
Model.SGGLDB db = Funs.DB;
Model.WBS_EquipmentMaterialType newEquipmentMaterialType = new Model.WBS_EquipmentMaterialType
{
EquipmentMaterialTypeId = equipmentMaterialType.EquipmentMaterialTypeId,
EquipmentMaterialTypeCode = equipmentMaterialType.EquipmentMaterialTypeCode,
EquipmentMaterialTypeName = equipmentMaterialType.EquipmentMaterialTypeName,
EquipmentMaterialBigTypeId = equipmentMaterialType.EquipmentMaterialBigTypeId,
Remark = equipmentMaterialType.Remark
};
db.WBS_EquipmentMaterialType.InsertOnSubmit(newEquipmentMaterialType);
db.SubmitChanges();
}
/// <summary>
/// 修改
/// </summary>
/// <param name="teamGroup"></param>
public static void UpdateEquipmentMaterialType(Model.WBS_EquipmentMaterialType equipmentMaterialType)
{
Model.SGGLDB db = Funs.DB;
Model.WBS_EquipmentMaterialType newEquipmentMaterialType = db.WBS_EquipmentMaterialType.FirstOrDefault(e => e.EquipmentMaterialTypeId == equipmentMaterialType.EquipmentMaterialTypeId);
if (newEquipmentMaterialType != null)
{
newEquipmentMaterialType.EquipmentMaterialTypeCode = equipmentMaterialType.EquipmentMaterialTypeCode;
newEquipmentMaterialType.EquipmentMaterialTypeName = equipmentMaterialType.EquipmentMaterialTypeName;
newEquipmentMaterialType.EquipmentMaterialBigTypeId = equipmentMaterialType.EquipmentMaterialBigTypeId;
newEquipmentMaterialType.Remark = equipmentMaterialType.Remark;
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除信息
/// </summary>
/// <param name="equipmentMaterialTypeId"></param>
public static void DeleteEquipmentMaterialTypeById(string equipmentMaterialTypeId)
{
Model.SGGLDB db = Funs.DB;
Model.WBS_EquipmentMaterialType equipmentMaterialType = db.WBS_EquipmentMaterialType.FirstOrDefault(e => e.EquipmentMaterialTypeId == equipmentMaterialTypeId);
{
db.WBS_EquipmentMaterialType.DeleteOnSubmit(equipmentMaterialType);
db.SubmitChanges();
}
}
public static void InitEquipmentMaterialTypeDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "Value";
dropName.DataTextField = "Text";
dropName.DataSource = GetEquipmentMaterialTypeItem();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 设备材料分类下拉框
/// </summary>
/// <param name="dropName"></param>
/// <param name="projectId"></param>
/// <param name="isShowPlease"></param>
public static void InitEquipmentMaterialType(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "Text";
dropName.DataTextField = "Text";
dropName.DataSource = GetEquipmentMaterialTypeItem();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 获取设备材料分类集合
/// </summary>
/// <returns></returns>
public static ListItem[] GetEquipmentMaterialTypeItem()
{
var q = (from x in Funs.DB.WBS_EquipmentMaterialType orderby x.EquipmentMaterialTypeCode select x).ToList();
ListItem[] list = new ListItem[q.Count()];
for (int i = 0; i < q.Count(); i++)
{
list[i] = new ListItem(q[i].EquipmentMaterialTypeName ?? "", q[i].EquipmentMaterialTypeId);
}
return list;
}
/// <summary>
/// 获取一个设备材料分类信息
/// </summary>
/// <param name="postId"></param>
/// <returns></returns>
public static Model.WBS_EquipmentMaterialType GetEquipmentMaterialType(string EquipmentMaterialTypeId)
{
return Funs.DB.WBS_EquipmentMaterialType.FirstOrDefault(e => e.EquipmentMaterialTypeId == EquipmentMaterialTypeId);
}
}
}

View File

@ -181,7 +181,8 @@ namespace FineUIPro.Web.CQMS.DataBase
}
for (int i = 0; i < Grid1.Rows.Count; i++)
{
var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID + this.CurrUser.LoginProjectId);
//var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID + this.CurrUser.LoginProjectId);
var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == Grid1.Rows[i].RowID);
if (attachFile != null && !string.IsNullOrEmpty(attachFile.AttachUrl))
{
Grid1.Rows[i].CellCssClasses[18] = "green";
@ -272,7 +273,8 @@ namespace FineUIPro.Web.CQMS.DataBase
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
if (e.CommandName == "AttachUrl")
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id + this.CurrUser.LoginProjectId, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
//PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id + this.CurrUser.LoginProjectId, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", id, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}
}
#endregion

View File

@ -63,7 +63,8 @@ namespace FineUIPro.Web.CQMS.DataBase
this.cbIsSelected6.Checked = true;
}
this.txtRemark.Text = standard.Memo;
this.hdStandardCode.Text = standard.StandardCode + this.CurrUser.LoginProjectId;
//this.hdStandardCode.Text = standard.StandardCode + this.CurrUser.LoginProjectId;
this.hdStandardCode.Text = standard.StandardCode.ToString();
}
}
}
@ -85,7 +86,8 @@ namespace FineUIPro.Web.CQMS.DataBase
{
maxStandardCode = BLL.ConstructionStandardListProjectService.GetMaxStandardCode(this.CurrUser.LoginProjectId);
}
this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
//this.hdStandardCode.Text = (maxStandardCode + 1).ToString() + this.CurrUser.LoginProjectId;
this.hdStandardCode.Text = (maxStandardCode + 1).ToString();
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/DataBase/ConstructionStandardProject&menuId={1}", this.hdStandardCode.Text, BLL.Const.CQMSConstructionStandardListProjectMenuId)));
}

View File

@ -1,232 +0,0 @@
using System;
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.IO;
namespace FineUIPro.Web.DocManage
{
public partial class DocFind : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
BindGrid();
// btnNew.OnClientClick = Window1.GetShowReference("ProjectSubItemEdit.aspx") + "return false;";
}
}
#region
/// <summary>
/// 绑定数据
/// </summary>
public void BindGrid()
{
DataTable tb = BindData();
Grid1.RecordCount = tb.Rows.Count;
tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
protected DataTable BindData()
{
string strSql = @"SELECT AttachFileDetaiId
,ToKeyId
,Name
,AliasName
,Type
,AttachUrl
,Classify
,SourcePath
,HtmlPath
,Content
,size
,UploadTime
,U.UserName
FROM dbo.AttachFileDetail as Att
left join Sys_User U on att.UploadMan=U.UserId
left join Doc_DocManage doc on doc.DocId =Att.ToKeyId
where doc.ProjectId=@ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
strSql += " AND (doc.ReceivUnitIds like @ReceivUnitId or doc.SendUnitId = @SendUnitId )";
if (string.IsNullOrEmpty(this.CurrUser.UnitId))
{
return new DataTable();
}
listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId));
listStr.Add(new SqlParameter("@ReceivUnitId", "%" + this.CurrUser.UnitId + "%"));
if (!string.IsNullOrEmpty(this.txtkeyword.Text.Trim()))
{
if (ListFindType.SelectedValue == "Name")
{
strSql += " AND AliasName like @keyword";
}
else
{
strSql += " AND Content like @keyword";
}
listStr.Add(new SqlParameter("@keyword", "%" + this.txtkeyword.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
return tb;
}
private void LookData()
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
var model = AttachFileDetailService.GetAttachFileDetaiIdById(Grid1.SelectedRowID);
if (!string.IsNullOrEmpty(model.SourcePath))
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("..{0}", model.SourcePath, "查看 - ")));
}
}
#endregion
#region
protected void btnMenuView_Click(object sender, EventArgs e)
{
LookData();
}
#endregion
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DocFindMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
// this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
// this.btnMenuModify.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
//this.btnMenuDel.Hidden = false;
}
}
}
#endregion
#region
protected void DropProjectSubject_SelectedIndexChanged(object sender, EventArgs e)
{
BindGrid();
}
#endregion
#region
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
LookData();
}
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "Preview")
{
var model = BLL.AttachFileDetailService.GetAttachFileDetaiIdById(e.RowID);
if (model != null)
{
string savedName = model.Name;
string xnUrl = model.AttachUrl;
string url = Funs.RootPath + xnUrl;
FileInfo info = new FileInfo(url);
if (!info.Exists || string.IsNullOrEmpty(savedName))
{
url = Funs.RootPath + "Images//Null.jpg";
info = new FileInfo(url);
}
var FiletExtension = Path.GetExtension(savedName);
bool isSupportType = AttachFileDetailService.IsSupportFileType(FiletExtension);
if (isSupportType)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/Look.aspx?fileUrl={0}", model.HtmlPath, "查看 -")));
}
else
{
ShowNotify("不支持预览", MessageBoxIcon.Warning);
}
}
}
}
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#region
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
}
/// <summary>
/// 重置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnRset_Click(object sender, EventArgs e)
{
txtkeyword.Text = "";
BindGrid();
}
#endregion
#region
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
#endregion
}
}

View File

@ -1,206 +0,0 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileCabinet.aspx.cs" Inherits="FineUIPro.Web.DocManage.FileCabinet" %>
<!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>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
.f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="5px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" Layout="Fit"
RegionPercent="20%" Title="文件柜" TitleToolTip="文件柜" ShowBorder="true" ShowHeader="true"
BodyPadding="10px">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:RadioButtonList ID="RadioType" Label="" runat="server" ShowLabel="false" AutoPostBack="true" AutoColumnWidth="true" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
<f:RadioItem Text="单位" Value="Unit" Selected="true" />
<f:RadioItem Text="部门" Value="DocType" />
</f:RadioButtonList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tree1" EnableCollapse="true" ShowHeader="true" OnlyLeafCheck="true"
OnNodeCommand="tree1_NodeCommand" AutoLeafIdentification="true" OnNodeExpand="tree1_NodeExpand"
runat="server">
<Listeners>
<f:Listener Event="beforenodecontextmenu" Handler="onTreeNodeContextMenu" />
</Listeners>
</f:Tree>
<f:HiddenField runat="server" ID="hdSelectId">
</f:HiddenField>
<f:HiddenField runat="server" ID="hdUnitWorkId">
</f:HiddenField>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" Layout="Fit"
Title="中间面板" ShowBorder="true" ShowHeader="false" BodyPadding="10px">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="文档" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="DocId" AllowCellEditing="true" OnPageIndexChange="Grid1_PageIndexChange"
ClicksToEdit="2" DataIDField="DocId" AllowSorting="true" SortField="DocCode" OnRowDoubleClick="Grid1_RowDoubleClick"
SortDirection="DESC" EnableColumnLines="true" ForceFit="true" OnRowCommand="Grid1_RowCommand"
AllowPaging="true" IsDatabasePaging="true" PageSize="10"
EnableRowDoubleClickEvent="true" AllowFilters="true"
EnableTextSelection="True">
<Columns>
<f:TemplateField ColumnID="tfPageIndex" Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="DocCode" DataField="DocCode" Width="100px"
SortField="DocCode" FieldType="String" HeaderText="文档编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="DocName" DataField="DocName" Width="100px"
SortField="DocName" FieldType="String" HeaderText="文档名称" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="SendUnitName" DataField="SendUnitName" Width="150px"
SortField="SendUnitName" FieldType="String" HeaderText="提出单位" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="ReceivUnitName" Width="150px" HeaderText="接收单位" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# BLL.UnitService.getUnitNamesUnitIds(Eval("ReceivUnitIds"))%>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="DocTypeName" Width="100px" DataField="DocTypeName"
SortField="DocTypeName" FieldType="String" HeaderText="部门" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<%-- <f:RenderField Width="80px" ColumnID="ProfessionalName" DataField="ProfessionalName" SortField="ProfessionalName"
FieldType="String" HeaderText="专业" TextAlign="Center" HeaderTextAlign="Center">
</f:RenderField>--%>
<f:RenderField Width="100px" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="提出日期" TextAlign="Center" HeaderTextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="State" Width="60px" HeaderText="审批状态" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# BLL.DocManageService.ConvertState(Eval("State"))%>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="DocId" Width="80px" HeaderText="办理人" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# BLL.DocManageService.ConvertMan(Eval("DocId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="50px" CommandName="AttachUrl" ColumnID="AttchUrl"
TextAlign="Center" ToolTip="附件" Text="附件" />
<f:LinkButtonField HeaderText="打印" ConfirmTarget="Top" Width="50px" CommandName="Print" ColumnID="Print"
TextAlign="Center" ToolTip="打印" Text="打印" />
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="100000" />
</f:DropDownList>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<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:Window ID="Window2" Title="文档" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true"
Width="1300px" Height="660px">
</f:Window>
<f:Window ID="Window1" Title="打印" Hidden="true" EnableIFrame="true"
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
IsModal="true" Width="1010px" Height="660px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons" OnClick="btnMenuView_Click">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var treeID = '<%= tree1.ClientID %>';
var menuID2 = '<%= Menu1.ClientID %>';
<%-- var menuID = '<%= Menu1.ClientID %>';
var menuID2 = '<%= Menu2.ClientID %>';--%>
// 保存当前菜单对应的树节点ID
var currentNodeId;
// 返回false来阻止浏览器右键菜单
function onTreeNodeContextMenu(event, nodeId) {
currentNodeId = nodeId;
F(menuID).show();
return false;
}
// 设置所有菜单项的禁用状态
function setMenuItemsDisabled(disabled) {
var menu = F(menuID);
$.each(menu.items, function (index, item) {
item.setDisabled(disabled);
});
}
// 显示菜单后,检查是否禁用菜单项
function onMenuShow() {
if (currentNodeId) {
var tree = F(treeID);
var nodeData = tree.getNodeData(currentNodeId);
if (nodeData.leaf) {
setMenuItemsDisabled(true);
} else {
setMenuItemsDisabled(false);
}
}
}
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID2).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>

View File

@ -1,325 +0,0 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.DocManage
{
public partial class FileCabinet : PageBase
{
public string TreeCommand
{
get
{
return (string)ViewState["TreeCommand"];
}
set
{
ViewState["TreeCommand"] = value;
}
}
#region
/// <summary>
/// 页面加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
InitTreeMenu();
}
}
#endregion
#region
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
{
if (string.IsNullOrEmpty(this.CurrUser.UnitId))
{
return;
}
this.tree1.Nodes.Clear();
this.tree1.ShowBorder = false;
this.tree1.ShowHeader = false;
this.tree1.EnableIcons = true;
this.tree1.AutoScroll = true;
this.tree1.EnableSingleClickExpand = true;
if (RadioType.SelectedValue == "Unit")
{
List<Model.Base_Unit> base_Unit = new List<Model.Base_Unit>();
// base_Unit = BLL.UnitService.GetUnitListByProjectId(this.CurrUser.LoginProjectId);
var list = BLL.UnitService.GetUnitByUnitId(this.CurrUser.UnitId);
base_Unit.Add(list);
foreach (var q in base_Unit) //二级树
{
TreeNode newNode = new TreeNode();
newNode.Text = q.UnitName;
newNode.NodeID = q.UnitId;
newNode.CommandName = "Unit";
newNode.EnableExpandEvent = true;
newNode.EnableClickEvent = true;
this.tree1.Nodes.Add(newNode);
//TreeNode emptyNode = new TreeNode();
//emptyNode.Text = "";
//emptyNode.NodeID = "";
//newNode.Nodes.Add(emptyNode);
}
}
else
{
var DocTypeList= DocTypeService.GetDocTypeList();
foreach (var q in DocTypeList)
{
TreeNode newNode = new TreeNode();
newNode.Text = q.DocTypeName;
newNode.NodeID = q.DocTypeId;
newNode.CommandName = "DocType";
newNode.EnableExpandEvent = true;
newNode.EnableClickEvent = true;
this.tree1.Nodes.Add(newNode);
}
}
}
#endregion
#region Tree事件
/// <summary>
/// Tree点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tree1_NodeCommand(object sender, TreeCommandEventArgs e)
{
TreeCommand = e.CommandName;
BindGrid();
}
protected void tree1_NodeExpand(object sender, TreeNodeEventArgs e)
{
e.Node.Nodes.Clear();
if (e.Node.CommandName == "Unit") //展开部门
{
var DepartList= DepartService.GetDepartList(e.Node.NodeID);
foreach (var depart in DepartList)
{
TreeNode newNode1 = new TreeNode();
newNode1.Text = depart.DepartName;
newNode1.NodeID = depart.DepartId;
newNode1.CommandName = "Depart";
newNode1.EnableExpandEvent = true;
newNode1.EnableClickEvent = true;
e.Node.Nodes.Add(newNode1);
}
}
}
#endregion
#region
private void BindGrid()
{
string strSql = @"SELECT doc.DocId,doc.ProjectId,doc.DocCode,doc.DocName,unit.UnitName as SendUnitName,doc.ReceivUnitIds,docType.DocTypeName,"
+ @" doc.CompileMan,doc.CompileDate,CNProfessional.ProfessionalName,doc.State,u.userName"
+ @" FROM Doc_DocManage doc "
+ @" left join Base_Unit unit on unit.unitId=doc.SendUnitId "
+ @" left join Base_DocType docType on docType.DocTypeId=doc.DocTypeId "
+ @" left join Base_CNProfessional CNProfessional on CNProfessional.CNProfessionalId=doc.CNProfessionalId "
+ @" left join sys_User u on u.userId = doc.CompileMan"
+ @" where doc.ProjectId=@ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
if (TreeCommand== "Unit" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
{
strSql += " AND doc.SendUnitId=@unitId";
listStr.Add(new SqlParameter("@unitId", tree1.SelectedNodeID));
}
else if (TreeCommand== "Depart" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
{
strSql += " AND doc.DepartId=@DepartId";
listStr.Add(new SqlParameter("@DepartId", tree1.SelectedNodeID));
}
else if (TreeCommand== "DocType")
{
//ReceivUnitIds SendUnitId
strSql += " AND (doc.ReceivUnitIds like @ReceivUnitId or doc.SendUnitId = @SendUnitId )";
listStr.Add(new SqlParameter("@SendUnitId", this.CurrUser.UnitId));
listStr.Add(new SqlParameter("@ReceivUnitId", "%" + this.CurrUser.UnitId + "%"));
strSql += " AND doc.DocTypeId=@DocTypeId";
listStr.Add(new SqlParameter("@DocTypeId", tree1.SelectedNodeID));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = GetPagedDataTable(Grid1, tb);
Grid1.RecordCount = tb.Rows.Count;
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
/// <summary>
/// Grid1排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
/// <summary>
/// 分页下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
}
/// <summary>
/// 行点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
string id = e.RowID;
if (e.CommandName.Equals("AttachUrl"))
{
string menuId = Const.ProjectControlPointMenuId;
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
String.Format("../AttachFile/Fileuploader.aspx?type=-1&source=1&toKeyId={0}&path=FileUpload/BreakdownProject&menuId={1}", id, menuId)));
}
else if (e.CommandName == "Print")
{
Print(id);
}
}
#endregion
private void Print(string DocId)
{
var model = DocManageService.GetDocByDocId(DocId);
if (model.State != Const.Doc_State_2)
{
ShowNotify("当前状态未闭环无法打印", MessageBoxIcon.Warning);
return;
}
DataTable dt = new DataTable();
dt = DocManageApproveService.GetListData(DocId);
if (dt.Columns.Count == 0)
{
dt.Columns.Add("RoleName", typeof(String));
dt.Columns.Add("ApproveMan", typeof(String));
dt.Columns.Add("ApproveDate", typeof(String));
dt.Columns.Add("ApproveIdea", typeof(String));
}
var keyValuePairs = BLL.DocManageService.GetPairs(DocId);
dt.TableName = "Table1";
BLL.Common.FastReport.ResetData();
BLL.Common.FastReport.AddFastreportTable(dt);
BLL.Common.FastReport.AddFastreportParameter(keyValuePairs);
string initTemplatePath = "File/Fastreport/新疆文件管理流转表.frx";
string rootPath = Server.MapPath("~/");
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
#region
protected void btnMenuView_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
}
#endregion
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
// this.btnNew.Hidden = false;
}
}
}
#endregion
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
InitTreeMenu();
}
}
}

View File

@ -1,216 +0,0 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonalFileCabinet.aspx.cs" Inherits="FineUIPro.Web.DocManage.PersonalFileCabinet" %>
<!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>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
.f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="5px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" EnableCollapse="true" Layout="Fit"
RegionPercent="20%" Title="文件柜" TitleToolTip="文件柜" ShowBorder="true" ShowHeader="true"
BodyPadding="10px">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:RadioButtonList ID="RadioType" Label="" runat="server" ShowLabel="false" AutoPostBack="true" AutoColumnWidth="true" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
<f:RadioItem Text="单位" Value="Unit" Selected="true" />
<f:RadioItem Text="部门" Value="DocType" />
</f:RadioButtonList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tree1" EnableCollapse="true" ShowHeader="true" OnlyLeafCheck="true"
OnNodeCommand="tree1_NodeCommand" AutoLeafIdentification="true"
runat="server">
<Listeners>
<f:Listener Event="beforenodecontextmenu" Handler="onTreeNodeContextMenu" />
</Listeners>
</f:Tree>
<f:HiddenField runat="server" ID="hdSelectId">
</f:HiddenField>
<f:HiddenField runat="server" ID="hdUnitWorkId">
</f:HiddenField>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" Layout="Fit"
Title="中间面板" ShowBorder="true" ShowHeader="false" BodyPadding="10px">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:RadioButtonList ID="RadioList2" Label="" ShowLabel="false" runat="server" AutoColumnWidth="true" AutoPostBack="true" OnSelectedIndexChanged="RadioList2_SelectedIndexChanged" >
<f:RadioItem Text="我提出的" Value="Send" Selected="true" />
<f:RadioItem Text="我接收的" Value="Accept" />
</f:RadioButtonList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="文档" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="DocId" AllowCellEditing="true" OnPageIndexChange="Grid1_PageIndexChange"
ClicksToEdit="2" DataIDField="DocId" AllowSorting="true" SortField="DocCode" OnRowDoubleClick="Grid1_RowDoubleClick"
SortDirection="DESC" EnableColumnLines="true" ForceFit="true" OnRowCommand="Grid1_RowCommand"
AllowPaging="true" IsDatabasePaging="true" PageSize="10"
EnableRowDoubleClickEvent="true" AllowFilters="true"
EnableTextSelection="True">
<Columns>
<f:TemplateField ColumnID="tfPageIndex" Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="DocCode" DataField="DocCode" Width="100px"
SortField="DocCode" FieldType="String" HeaderText="文档编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="DocName" DataField="DocName" Width="100px"
SortField="DocName" FieldType="String" HeaderText="文档名称" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="SendUnitName" DataField="SendUnitName" Width="150px"
SortField="SendUnitName" FieldType="String" HeaderText="提出单位" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="ReceivUnitName" Width="150px" HeaderText="接收单位" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# BLL.UnitService.getUnitNamesUnitIds(Eval("ReceivUnitIds"))%>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="DocTypeName" Width="100px" DataField="DocTypeName"
SortField="DocTypeName" FieldType="String" HeaderText="部门" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<%--<f:RenderField Width="80px" ColumnID="ProfessionalName" DataField="ProfessionalName" SortField="ProfessionalName"
FieldType="String" HeaderText="专业" TextAlign="Center" HeaderTextAlign="Center">
</f:RenderField>--%>
<f:RenderField Width="100px" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="提出日期" TextAlign="Center" HeaderTextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="State" Width="60px" HeaderText="审批状态" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# BLL.DocManageService.ConvertState(Eval("State"))%>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="DocId" Width="80px" HeaderText="办理人" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# BLL.DocManageService.ConvertMan(Eval("DocId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="50px" CommandName="AttachUrl" ColumnID="AttchUrl"
TextAlign="Center" ToolTip="附件" Text="附件" />
<f:LinkButtonField HeaderText="打印" ConfirmTarget="Top" Width="50px" CommandName="Print" ColumnID="Print"
TextAlign="Center" ToolTip="打印" Text="打印" />
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="100000" />
</f:DropDownList>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<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:Window ID="Window2" Title="文档" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true"
Width="1300px" Height="660px">
</f:Window>
<f:Window ID="Window1" Title="打印" Hidden="true" EnableIFrame="true"
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
IsModal="true" Width="1010px" Height="660px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons" OnClick="btnMenuView_Click">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var treeID = '<%= tree1.ClientID %>';
var menuID2 = '<%= Menu1.ClientID %>';
<%-- var menuID = '<%= Menu1.ClientID %>';
--%>
// 保存当前菜单对应的树节点ID
var currentNodeId;
// 返回false来阻止浏览器右键菜单
function onTreeNodeContextMenu(event, nodeId) {
currentNodeId = nodeId;
F(menuID).show();
return false;
}
// 设置所有菜单项的禁用状态
function setMenuItemsDisabled(disabled) {
var menu = F(menuID);
$.each(menu.items, function (index, item) {
item.setDisabled(disabled);
});
}
// 显示菜单后,检查是否禁用菜单项
function onMenuShow() {
if (currentNodeId) {
var tree = F(treeID);
var nodeData = tree.getNodeData(currentNodeId);
if (nodeData.leaf) {
setMenuItemsDisabled(true);
} else {
setMenuItemsDisabled(false);
}
}
}
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID2).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>

View File

@ -1,287 +0,0 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.DocManage
{
public partial class PersonalFileCabinet : PageBase
{
#region
/// <summary>
/// 页面加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
InitTreeMenu();
}
}
#endregion
#region
/// <summary>
/// 加载树
/// </summary>
private void InitTreeMenu()
{
if (string.IsNullOrEmpty(this.CurrUser.UnitId))
{
return;
}
this.tree1.Nodes.Clear();
this.tree1.ShowBorder = false;
this.tree1.ShowHeader = false;
this.tree1.EnableIcons = true;
this.tree1.AutoScroll = true;
this.tree1.EnableSingleClickExpand = true;
if (RadioType.SelectedValue == "Unit")
{
List<Model.Base_Unit> base_Unit = new List<Model.Base_Unit>();
var list = BLL.UnitService.GetUnitByUnitId(this.CurrUser.UnitId); //非业主
base_Unit.Add(list);
foreach (var q in base_Unit)
{
TreeNode newNode = new TreeNode();
newNode.Text = q.UnitName;
newNode.NodeID = q.UnitId;
newNode.CommandName = "Unit";
newNode.EnableExpandEvent = true;
newNode.EnableClickEvent = true;
this.tree1.Nodes.Add(newNode);
}
}
else
{
var DocTypeList = DocTypeService.GetDocTypeList();
foreach (var q in DocTypeList)
{
TreeNode newNode = new TreeNode();
newNode.Text = q.DocTypeName;
newNode.NodeID = q.DocTypeId;
newNode.EnableExpandEvent = true;
newNode.EnableClickEvent = true;
this.tree1.Nodes.Add(newNode);
}
}
}
#endregion
#region Tree点击事件
/// <summary>
/// Tree点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tree1_NodeCommand(object sender, TreeCommandEventArgs e)
{
BindGrid();
}
#endregion
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
/// <summary>
/// Grid1排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
/// <summary>
/// 分页下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
private void BindGrid()
{
string strSql = @"SELECT doc.DocId,doc.ProjectId,doc.DocCode,doc.DocName,unit.UnitName as SendUnitName,doc.ReceivUnitIds,docType.DocTypeName,"
+ @" doc.CompileMan,doc.CompileDate,CNProfessional.ProfessionalName,doc.State,u.userName"
+ @" FROM Doc_DocManage doc "
+ @" left join Base_Unit unit on unit.unitId=doc.SendUnitId "
+ @" left join Base_DocType docType on docType.DocTypeId=doc.DocTypeId "
+ @" left join Base_CNProfessional CNProfessional on CNProfessional.CNProfessionalId=doc.CNProfessionalId "
+ @" left join sys_User u on u.userId = doc.CompileMan"
+ @" where doc.ProjectId=@ProjectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
if (RadioType.SelectedValue == "Unit" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
{
strSql += " AND doc.SendUnitId=@unitId";
listStr.Add(new SqlParameter("@unitId", tree1.SelectedNodeID));
}
else if (RadioType.SelectedValue == "DocType" && !string.IsNullOrEmpty(tree1.SelectedNodeID))
{
strSql += " AND doc.DocTypeId=@DocTypeId";
listStr.Add(new SqlParameter("@DocTypeId", tree1.SelectedNodeID));
}
if (RadioList2.SelectedValue=="Send")
{
strSql += " AND doc.CompileMan=@CompileMan";
listStr.Add(new SqlParameter("@CompileMan", this.CurrUser.UserId));
}
else
{
strSql += " AND doc.AcceptMan like @AcceptMan";
listStr.Add(new SqlParameter("@AcceptMan", "%"+this.CurrUser.UserId+"%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = GetPagedDataTable(Grid1, tb);
Grid1.RecordCount = tb.Rows.Count;
Grid1.DataSource = table;
Grid1.DataBind();
}
#region
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
string id = e.RowID;
if (e.CommandName.Equals("AttachUrl"))
{
string menuId = Const.ProjectControlPointMenuId;
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
String.Format("../AttachFile/Fileuploader.aspx?type=-1&source=1&toKeyId={0}&path=FileUpload/BreakdownProject&menuId={1}", id, menuId)));
}
else if (e.CommandName == "Print")
{
Print(id);
}
}
#endregion
private void Print(string DocId)
{
var model = DocManageService.GetDocByDocId(DocId);
if (model.State != Const.Doc_State_2)
{
ShowNotify("当前状态未闭环无法打印", MessageBoxIcon.Warning);
return;
}
DataTable dt = new DataTable();
dt = DocManageApproveService.GetListData(DocId);
if (dt.Columns.Count == 0)
{
dt.Columns.Add("RoleName", typeof(String));
dt.Columns.Add("ApproveMan", typeof(String));
dt.Columns.Add("ApproveDate", typeof(String));
dt.Columns.Add("ApproveIdea", typeof(String));
}
var keyValuePairs = BLL.DocManageService.GetPairs(DocId);
dt.TableName = "Table1";
BLL.Common.FastReport.ResetData();
BLL.Common.FastReport.AddFastreportTable(dt);
BLL.Common.FastReport.AddFastreportParameter(keyValuePairs);
string initTemplatePath = "File/Fastreport/新疆文件管理流转表.frx";
string rootPath = Server.MapPath("~/");
if (File.Exists(rootPath + initTemplatePath))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
}
}
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectControlPointMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
// this.btnNew.Hidden = false;
}
}
}
#endregion
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
InitTreeMenu();
}
protected void RadioList2_SelectedIndexChanged(object sender, EventArgs e)
{
BindGrid();
}
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
}
#region
protected void btnMenuView_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DocManage/DocManageView.aspx?DocId={0}", Grid1.SelectedRowID, "查看 - ")));
}
#endregion
}
}

View File

@ -1,242 +0,0 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.DocManage
{
public partial class PersonalFileCabinet
{
/// <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>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// RadioType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList RadioType;
/// <summary>
/// tree1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tree1;
/// <summary>
/// hdSelectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdSelectId;
/// <summary>
/// hdUnitWorkId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdUnitWorkId;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// RadioList2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList RadioList2;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// lblPageIndex 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// Label3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label3;
/// <summary>
/// Label2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label2;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuView 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuView;
}
}

View File

@ -1,326 +1,49 @@
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误类型:IndexOutOfRangeException
错误信息:无法找到列 SortIndex。
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
出错时间:05/11/2023 12:32:31
出错时间:05/11/2023 12:32:32
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
出错时间:05/11/2023 12:32:32
出错时间:05/11/2023 12:32:32
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
出错时间:05/11/2023 12:32:32
出错时间:05/11/2023 12:32:32
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
出错时间:05/11/2023 12:32:32
出错时间:05/11/2023 12:32:32
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:05/11/2023 17:07:02
出错文件:http://localhost:9733/res.axd?font=lib.fa.fontawesome.woff2&t=636128671740000000
IP地址:::1
出错时间:05/11/2023 17:07:02
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:05/16/2023 15:43:58
出错文件:http://localhost:9733/res.axd?font=lib.fa.fontawesome.woff2&t=636128671740000000
IP地址:::1
出错时间:05/16/2023 15:43:58
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 296
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/16/2023 16:41:36
出错文件:http://localhost:9733/indexProject.aspx?projectId=e9fe4b89-f62d-4b3a-a40c-57c87010aa92
IP地址:::1
出错时间:05/16/2023 16:41:36
错误信息开始=====>
错误类型:InvalidOperationException
错误信息:不能将 Null 值赋给类型为 System.Double (不可为 null 的值类型)的成员。
错误堆栈:
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Sum[TSource](IQueryable`1 source, Expression`1 selector)
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.BindChart() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 280
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 34
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 20
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/17/2023 11:07:58
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
出错时间:05/17/2023 11:07:58
错误信息开始=====>
错误类型:InvalidOperationException
错误信息:不能将 Null 值赋给类型为 System.Double (不可为 null 的值类型)的成员。
错误堆栈:
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
在 System.Linq.Queryable.Sum[TSource](IQueryable`1 source, Expression`1 selector)
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.BindChart() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 268
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 34
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 20
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/17/2023 11:11:44
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
出错时间:05/17/2023 11:11:44
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 (TreeNode )
在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument)
在 (TreeNode , String , String )
在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument)
在 System.Data.DataTable.ParseSortString(String sortString)
在 System.Data.DataView.CheckSort(String sort)
在 System.Data.DataView.set_Sort(String value)
在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\common\PageBase.cs:行号 562
在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 36
在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.Window1_Close(Object sender, WindowCloseEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 179
在 FineUIPro.Window.OnClose(WindowCloseEventArgs e)
在 (Window , WindowCloseEventArgs )
在 FineUIPro.Window.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/17/2023 11:21:27
出错文件:http://localhost:9733/JDGL/CostAnalysis/EarnedValueCurve.aspx
出错时间:05/24/2023 10:22:42
出错文件:http://localhost:9733/JDGL/WBS/EquipmentMaterialType.aspx
IP地址:::1
操作人员:JT
出错时间:05/17/2023 11:21:27
出错时间:05/24/2023 10:22:42
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误类型:IndexOutOfRangeException
错误信息:无法找到列 SortIndex。
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2158
出错时间:05/17/2023 16:36:26
出错时间:05/17/2023 16:36:26
在 System.Data.DataTable.ParseSortString(String sortString)
在 System.Data.DataView.CheckSort(String sort)
在 System.Data.DataView.set_Sort(String value)
在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\common\PageBase.cs:行号 562
在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.BindGrid() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 36
在 FineUIPro.Web.JDGL.WBS.EquipmentMaterialType.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\EquipmentMaterialType.aspx.cs:行号 23
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/24/2023 10:22:45
出错文件:http://localhost:9733/JDGL/WBS/EquipmentMaterialType.aspx
IP地址:::1
操作人员:JT
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2023
出错时间:05/17/2023 16:36:26
出错时间:05/17/2023 16:36:26
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1919
出错时间:05/17/2023 16:36:26
出错时间:05/17/2023 16:36:26
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1861
出错时间:05/17/2023 16:36:26
出错时间:05/17/2023 16:36:26
出错时间:05/24/2023 10:22:45
错误信息开始=====>
@ -344,8 +67,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
出错时间:05/20/2023 12:47:17
出错时间:05/20/2023 12:47:18
出错时间:05/24/2023 12:47:53
出错时间:05/24/2023 12:47:54
错误信息开始=====>
@ -369,8 +92,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
出错时间:05/20/2023 12:47:18
出错时间:05/20/2023 12:47:18
出错时间:05/24/2023 12:47:54
出错时间:05/24/2023 12:47:54
错误信息开始=====>
@ -394,8 +117,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
出错时间:05/20/2023 12:47:18
出错时间:05/20/2023 12:47:18
出错时间:05/24/2023 12:47:54
出错时间:05/24/2023 12:47:54
错误信息开始=====>
@ -419,8 +142,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
出错时间:05/20/2023 12:47:18
出错时间:05/20/2023 12:47:18
出错时间:05/24/2023 12:47:54
出错时间:05/24/2023 12:47:54
错误信息开始=====>
@ -444,8 +167,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
出错时间:05/20/2023 14:47:17
出错时间:05/20/2023 14:47:17
出错时间:05/24/2023 14:47:53
出错时间:05/24/2023 14:47:53
错误信息开始=====>
@ -469,8 +192,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
出错时间:05/20/2023 14:47:17
出错时间:05/20/2023 14:47:17
出错时间:05/24/2023 14:47:53
出错时间:05/24/2023 14:47:53
错误信息开始=====>
@ -494,8 +217,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
出错时间:05/20/2023 14:47:17
出错时间:05/20/2023 14:47:17
出错时间:05/24/2023 14:47:53
出错时间:05/24/2023 14:47:53
错误信息开始=====>
@ -519,8 +242,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
出错时间:05/20/2023 14:47:17
出错时间:05/20/2023 14:47:17
出错时间:05/24/2023 14:47:53
出错时间:05/24/2023 14:47:53
错误信息开始=====>
@ -544,8 +267,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2157
出错时间:05/22/2023 13:23:54
出错时间:05/22/2023 13:23:54
出错时间:05/24/2023 16:47:53
出错时间:05/24/2023 16:47:53
错误信息开始=====>
@ -569,8 +292,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2022
出错时间:05/22/2023 13:23:54
出错时间:05/22/2023 13:23:54
出错时间:05/24/2023 16:47:53
出错时间:05/24/2023 16:47:53
错误信息开始=====>
@ -594,8 +317,8 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1918
出错时间:05/22/2023 13:23:54
出错时间:05/22/2023 13:23:54
出错时间:05/24/2023 16:47:53
出错时间:05/24/2023 16:47:53
错误信息开始=====>
@ -619,6 +342,65 @@ IP地址:::1
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1860
出错时间:05/22/2023 13:23:54
出错时间:05/22/2023 13:23:54
出错时间:05/24/2023 16:47:53
出错时间:05/24/2023 16:47:54
错误信息开始=====>
错误类型:ArgumentException
错误信息:该行已经属于此表。
错误堆栈:
在 System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
在 System.Data.DataRowCollection.Add(DataRow row)
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 395
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/25/2023 10:05:02
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
出错时间:05/25/2023 10:05:02
错误信息开始=====>
错误类型:ArgumentException
错误信息:该行已经属于此表。
错误堆栈:
在 System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
在 System.Data.DataRowCollection.Add(DataRow row)
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.GetValue() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 404
在 FineUIPro.Web.JDGL.CostAnalysis.JDReport.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\CostAnalysis\JDReport.aspx.cs:行号 25
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:05/25/2023 10:08:31
出错文件:http://localhost:9733/JDGL/CostAnalysis/JDReport.aspx
IP地址:::1
操作人员:JT
出错时间:05/25/2023 10:08:31
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:06/05/2023 09:22:57
出错文件:http://localhost:9733/res.axd?font=lib.iconfont.iconfont.woff&t=638137763580000000
IP地址:::1
出错时间:06/05/2023 09:22:57

View File

@ -1281,6 +1281,12 @@
<Content Include="JDGL\WBS\CostControlWeekDetailEdit.aspx" />
<Content Include="JDGL\WBS\CostControlWeekDetailHistoryShow.aspx" />
<Content Include="JDGL\WBS\CostControlWeekItemDetailEdit.aspx" />
<Content Include="JDGL\WBS\EquipmentMaterialBigType.aspx" />
<Content Include="JDGL\WBS\EquipmentMaterialBigTypeEdit.aspx" />
<Content Include="JDGL\WBS\EquipmentMaterialBigTypeView.aspx" />
<Content Include="JDGL\WBS\EquipmentMaterialType.aspx" />
<Content Include="JDGL\WBS\EquipmentMaterialTypeEdit.aspx" />
<Content Include="JDGL\WBS\EquipmentMaterialTypeView.aspx" />
<Content Include="JDGL\WBS\MilePost.aspx" />
<Content Include="JDGL\WBS\MilePostEdit.aspx" />
<Content Include="JDGL\WBS\WBSIn.aspx" />
@ -13042,6 +13048,48 @@
<Compile Include="JDGL\WBS\CostControlWeekItemDetailEdit.aspx.designer.cs">
<DependentUpon>CostControlWeekItemDetailEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialBigType.aspx.cs">
<DependentUpon>EquipmentMaterialBigType.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialBigType.aspx.designer.cs">
<DependentUpon>EquipmentMaterialBigType.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialBigTypeEdit.aspx.cs">
<DependentUpon>EquipmentMaterialBigTypeEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialBigTypeEdit.aspx.designer.cs">
<DependentUpon>EquipmentMaterialBigTypeEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialBigTypeView.aspx.cs">
<DependentUpon>EquipmentMaterialBigTypeView.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialBigTypeView.aspx.designer.cs">
<DependentUpon>EquipmentMaterialBigTypeView.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialType.aspx.cs">
<DependentUpon>EquipmentMaterialType.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialType.aspx.designer.cs">
<DependentUpon>EquipmentMaterialType.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialTypeEdit.aspx.cs">
<DependentUpon>EquipmentMaterialTypeEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialTypeEdit.aspx.designer.cs">
<DependentUpon>EquipmentMaterialTypeEdit.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialTypeView.aspx.cs">
<DependentUpon>EquipmentMaterialTypeView.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="JDGL\WBS\EquipmentMaterialTypeView.aspx.designer.cs">
<DependentUpon>EquipmentMaterialTypeView.aspx</DependentUpon>
</Compile>
<Compile Include="JDGL\WBS\MilePost.aspx.cs">
<DependentUpon>MilePost.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -62,7 +62,7 @@
<f:Grid ID="Grid2" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="工程量清单设置" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" ForceFit="true"
ClicksToEdit="1" DataIDField="Id" AllowSorting="true" SortField="Id"
SortDirection="ASC" EnableColumnLines="true"
SortDirection="ASC" EnableColumnLines="true"
AllowPaging="false" IsDatabasePaging="false" PageSize="1000"
AllowFilters="true" EnableTextSelection="True">
<Columns>
@ -167,11 +167,11 @@
AllowFilters="true" EnableTextSelection="True">
<Columns>
<f:RenderField Width="60px" ColumnID="Id" DataField="Id" FieldType="String"
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
</f:RenderField>
<f:RenderField Width="180px" ColumnID="Name" DataField="Name" FieldType="String"
HeaderText="专业和分部工程" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
</f:RenderField>
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
</f:RenderField>
<f:RenderField Width="270px" ColumnID="Name" DataField="Name" FieldType="String"
HeaderText="专业和分部工程" HeaderTextAlign="Center" TextAlign="Left" EnableColumnEdit="true">
</f:RenderField>
<f:GroupField HeaderText="本月赢得值参数(单位:万元)" TextAlign="Center">
<Columns>
<f:RenderField Width="90px" ColumnID="mBCWP" DataField="mBCWP" FieldType="String"
@ -239,15 +239,43 @@
<f:GroupPanel runat="server" Title="五、设备/材料施工进度情况" BodyPadding="5px" ID="GroupPanel5" EnableCollapse="True"
Collapsed="false">
<Items>
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" runat="server">
<Rows>
<f:FormRow>
<Items>
<f:TextArea ID="txt5" runat="server"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f:Grid ID="Grid5" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="工程量清单设置" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" ForceFit="true"
ClicksToEdit="1" DataIDField="Id" AllowSorting="true" SortField="Id"
SortDirection="ASC" EnableColumnLines="true" TreeColumn="Name" DataParentIDField="SupId" EnableTree="true"
AllowPaging="false" IsDatabasePaging="false" PageSize="10000"
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='<%# Grid5.PageIndex * Grid5.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="100px" ColumnID="Name" DataField="Name" FieldType="String"
HeaderText="设备材料分类" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="Unit" DataField="Unit" FieldType="String"
HeaderText="单位" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="TotalNum" DataField="TotalNum" FieldType="String"
HeaderText="合同工作量" HeaderTextAlign="Center" TextAlign="Center" EnableColumnEdit="true">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="mThisNum" DataField="mThisNum"
FieldType="String" HeaderText="本月完成量" HeaderTextAlign="Center" TextAlign="Center"
EnableColumnEdit="true">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="tThisNum" DataField="tThisNum"
FieldType="String" HeaderText="累计完成量" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="mRate" DataField="mRate"
FieldType="String" HeaderText="本月完成率" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="tRate" DataField="tRate"
FieldType="String" HeaderText="累计完成率" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:GroupPanel>
</Items>

File diff suppressed because it is too large Load Diff

View File

@ -202,22 +202,22 @@ namespace FineUIPro.Web.JDGL.CostAnalysis {
protected global::FineUIPro.GroupPanel GroupPanel5;
/// <summary>
/// Form5 控件。
/// Grid5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form5;
protected global::FineUIPro.Grid Grid5;
/// <summary>
/// txt5 控件。
/// lblPageIndex 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txt5;
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// Window1 控件。

View File

@ -24,6 +24,11 @@
<f:TextBox ID="txtCostControlName" runat="server" Label="内容" LabelWidth="130px" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpEquipmentMaterialType" runat="server" Label="设备材料分类" LabelWidth="130px"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUnit" runat="server" Label="单位" LabelWidth="130px" ></f:TextBox>

View File

@ -20,6 +20,7 @@ namespace FineUIPro.Web.JDGL.WBS
LoadData();
string id = Request.Params["Id"];
string operating = Request.Params["operating"];
BLL.EquipmentMaterialTypeService.InitEquipmentMaterialTypeDownList(this.drpEquipmentMaterialType,true);
if (operating == "add")
{
@ -31,6 +32,10 @@ namespace FineUIPro.Web.JDGL.WBS
{
this.txtCostControlCode.Text = costControl.CostControlCode;
this.txtCostControlName.Text = costControl.CostControlName;
if (!string.IsNullOrEmpty(costControl.EquipmentMaterialTypeId))
{
this.drpEquipmentMaterialType.SelectedValue = costControl.EquipmentMaterialTypeId;
}
this.txtUnit.Text = costControl.Unit;
//if (costControl.TotalNum != null)
//{
@ -68,6 +73,10 @@ namespace FineUIPro.Web.JDGL.WBS
Model.WBS_CostControl costControl = new WBS_CostControl();
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
if (this.drpEquipmentMaterialType.SelectedValue != BLL.Const._Null)
{
costControl.EquipmentMaterialTypeId = this.drpEquipmentMaterialType.SelectedValue;
}
costControl.ProjectId = wbsSet.ProjectId;
costControl.WbsSetId = wbsSet.WbsSetId;
costControl.Unit = txtUnit.Text.Trim();
@ -99,6 +108,10 @@ namespace FineUIPro.Web.JDGL.WBS
}
costControl.CostControlCode = txtCostControlCode.Text.Trim();
costControl.CostControlName = txtCostControlName.Text.Trim();
if (this.drpEquipmentMaterialType.SelectedValue != BLL.Const._Null)
{
costControl.EquipmentMaterialTypeId = this.drpEquipmentMaterialType.SelectedValue;
}
costControl.Unit = txtUnit.Text.Trim();
//costControl.TotalNum = Funs.GetNewDecimal(txtTotalNum.Text.Trim());
//costControl.RealPrice = Funs.GetNewDecimal(txtRealPrice.Text.Trim());

View File

@ -57,6 +57,15 @@ namespace FineUIPro.Web.JDGL.WBS {
/// </remarks>
protected global::FineUIPro.TextBox txtCostControlName;
/// <summary>
/// drpEquipmentMaterialType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpEquipmentMaterialType;
/// <summary>
/// txtUnit 控件。
/// </summary>

View File

@ -0,0 +1,114 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialBigType.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialBigType" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>设备材料大类</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="设备材料分类" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="EquipmentMaterialBigTypeId" AllowCellEditing="true" ForceFit="true"
ClicksToEdit="2" DataIDField="EquipmentMaterialBigTypeId" AllowSorting="true" SortField="EquipmentMaterialBigTypeCode"
SortDirection="ASC" EnableColumnLines="true"
AllowPaging="true" IsDatabasePaging="true" PageSize="10"
EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True" OnRowDoubleClick="Grid1_RowDoubleClick" OnPageIndexChange="Grid1_PageIndexChange">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox ID="txtEquipmentMaterialBigTypeCode" runat="server" Label="编号" Width="250px" LabelWidth="110px"
LabelAlign="Right">
</f:TextBox>
<f:TextBox ID="txtEquipmentMaterialBigTypeName" runat="server" Label="名称" Width="250px" LabelWidth="120px"
LabelAlign="Right">
</f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSearch" Icon="SystemSearch"
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
</f:Button>
<f:Button ID="btnRset" OnClick="btnRset_Click" ToolTip="重置" Icon="ArrowUndo" EnablePostBack="true" runat="server">
</f:Button>
<f:Button ID="btnNew" Icon="Add" EnablePostBack="true" Hidden="true"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="100px" ColumnID="EquipmentMaterialBigTypeCode" DataField="EquipmentMaterialBigTypeCode"
SortField="EquipmentMaterialBigTypeCode" FieldType="String" HeaderText="编号" TextAlign="center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="300px" ColumnID="EquipmentMaterialBigTypeName" DataField="EquipmentMaterialBigTypeName"
SortField="EquipmentMaterialBigTypeName" FieldType="String" HeaderText="名称" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="Remark" DataField="Remark"
SortField="Remark" FieldType="String" HeaderText="备注" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="100000" />
</f:DropDownList>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="设备材料大类" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="500px" Height="300px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
OnClick="btnMenuModify_Click">
</f:MenuButton>
<%--<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons" OnClick="btnMenuView_Click">
</f:MenuButton>--%>
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
OnClick="btnMenuDel_Click">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>

View File

@ -0,0 +1,182 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace FineUIPro.Web.JDGL.WBS
{
public partial class EquipmentMaterialBigType : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
BindGrid();
btnNew.OnClientClick = Window1.GetShowReference("EquipmentMaterialBigTypeEdit.aspx") + "return false;";
}
}
/// <summary>
/// 绑定数据
/// </summary>
public void BindGrid()
{
DataTable tb = BindData();
Grid1.RecordCount = tb.Rows.Count;
tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
protected DataTable BindData()
{
string strSql = @"select EquipmentMaterialBigTypeId,EquipmentMaterialBigTypeCode,EquipmentMaterialBigTypeName,Remark from [dbo].[WBS_EquipmentMaterialBigType] where 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.txtEquipmentMaterialBigTypeCode.Text.Trim()))
{
strSql += " AND EquipmentMaterialBigTypeCode like @EquipmentMaterialBigTypeCode";
listStr.Add(new SqlParameter("@EquipmentMaterialBigTypeCode", "%" + this.txtEquipmentMaterialBigTypeCode.Text.Trim() + "%"));
}
if (!string.IsNullOrEmpty(this.txtEquipmentMaterialBigTypeName.Text.Trim()))
{
strSql += " AND EquipmentMaterialBigTypeName like @EquipmentMaterialBigTypeName";
listStr.Add(new SqlParameter("@EquipmentMaterialBigTypeName", "%" + this.txtEquipmentMaterialBigTypeName.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
return tb;
}
protected void btnMenuModify_Click(object sender, EventArgs e)
{
EditData();
}
protected void btnMenuDel_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
BLL.EquipmentMaterialBigTypeService.DeleteEquipmentMaterialBigTypeById(rowID);
}
BindGrid();
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
}
/// <summary>
/// 编辑数据方法
/// </summary>
private void EditData()
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
return;
}
if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialBigTypeView.aspx?EquipmentMaterialBigTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
}
else
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialBigTypeEdit.aspx?EquipmentMaterialBigTypeId={0}", Grid1.SelectedRowID, "编辑 - ")));
}
}
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.EquipmentMaterialBigTypeMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnMenuModify.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnMenuDel.Hidden = false;
}
}
}
#endregion
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
}
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
EditData();
}
protected void btnMenuView_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialBigTypeView.aspx?EquipmentMaterialBigTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
}
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 重置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnRset_Click(object sender, EventArgs e)
{
txtEquipmentMaterialBigTypeCode.Text = "";
txtEquipmentMaterialBigTypeName.Text = "";
BindGrid();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
}
}

View File

@ -7,13 +7,11 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.DocManage
{
public partial class DocFind
{
namespace FineUIPro.Web.JDGL.WBS {
public partial class EquipmentMaterialBigType {
/// <summary>
/// form1 控件。
/// </summary>
@ -22,7 +20,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@ -31,7 +29,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@ -40,7 +38,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
@ -49,7 +47,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
@ -58,25 +56,25 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// txtkeyword 控件。
/// txtEquipmentMaterialBigTypeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtkeyword;
protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeCode;
/// <summary>
/// ListFindType 控件。
/// txtEquipmentMaterialBigTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList ListFindType;
protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeName;
/// <summary>
/// btnSearch 控件。
/// </summary>
@ -85,7 +83,25 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// btnRset 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnRset;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// lblPageIndex 控件。
/// </summary>
@ -94,7 +110,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@ -103,7 +119,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@ -112,7 +128,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@ -121,7 +137,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
@ -130,16 +146,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Menu1 控件。
/// </summary>
@ -148,14 +155,23 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuView 控件。
/// btnMenuModify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuView;
protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
}
}

View File

@ -0,0 +1,54 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialBigTypeEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialBigTypeEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>设备材料分类</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialBigTypeCode" runat="server" Label="编号"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialBigTypeName" runat="server" Label="名称"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注"
MaxLength="100" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdCheckerId" runat="server">
</f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false"
runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,61 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JDGL.WBS
{
public partial class EquipmentMaterialBigTypeEdit : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentMaterialBigTypeId = Request.Params["EquipmentMaterialBigTypeId"];
if (!string.IsNullOrEmpty(EquipmentMaterialBigTypeId))
{
Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = BLL.EquipmentMaterialBigTypeService.GetEquipmentMaterialBigType(EquipmentMaterialBigTypeId);
if (EquipmentMaterialBigType != null)
{
this.txtEquipmentMaterialBigTypeCode.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode;
this.txtEquipmentMaterialBigTypeName.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeName;
this.txtRemark.Text = EquipmentMaterialBigType.Remark;
}
}
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
SaveData(true);
}
private void SaveData(bool b)
{
string EquipmentMaterialBigTypeId = Request.Params["EquipmentMaterialBigTypeId"];
Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = new Model.WBS_EquipmentMaterialBigType();
EquipmentMaterialBigType.EquipmentMaterialBigTypeCode = this.txtEquipmentMaterialBigTypeCode.Text.Trim();
EquipmentMaterialBigType.EquipmentMaterialBigTypeName = this.txtEquipmentMaterialBigTypeName.Text.Trim();
EquipmentMaterialBigType.Remark = this.txtRemark.Text.Trim();
if (!string.IsNullOrEmpty(EquipmentMaterialBigTypeId))
{
EquipmentMaterialBigType.EquipmentMaterialBigTypeId = EquipmentMaterialBigTypeId;
BLL.EquipmentMaterialBigTypeService.UpdateEquipmentMaterialBigType(EquipmentMaterialBigType);
}
else
{
EquipmentMaterialBigType.EquipmentMaterialBigTypeId = SQLHelper.GetNewID(typeof(Model.WBS_EquipmentMaterialBigType));
BLL.EquipmentMaterialBigTypeService.AddEquipmentMaterialBigType(EquipmentMaterialBigType);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
}
}

View File

@ -0,0 +1,105 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JDGL.WBS {
public partial class EquipmentMaterialBigTypeEdit {
/// <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>
/// txtEquipmentMaterialBigTypeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeCode;
/// <summary>
/// txtEquipmentMaterialBigTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeName;
/// <summary>
/// txtRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRemark;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdCheckerId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdCheckerId;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
}

View File

@ -0,0 +1,54 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialBigTypeView.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialBigTypeView" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>设备材料分类</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialBigTypeCode" runat="server" Label="编号"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialBigTypeName" runat="server" Label="名称"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注"
MaxLength="100" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdCheckerId" runat="server">
</f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false"
runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,33 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JDGL.WBS
{
public partial class EquipmentMaterialBigTypeView : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentMaterialBigTypeId = Request.Params["EquipmentMaterialBigTypeId"];
if (!string.IsNullOrEmpty(EquipmentMaterialBigTypeId))
{
Model.WBS_EquipmentMaterialBigType EquipmentMaterialBigType = BLL.EquipmentMaterialBigTypeService.GetEquipmentMaterialBigType(EquipmentMaterialBigTypeId);
if (EquipmentMaterialBigType != null)
{
this.txtEquipmentMaterialBigTypeCode.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeCode;
this.txtEquipmentMaterialBigTypeName.Text = EquipmentMaterialBigType.EquipmentMaterialBigTypeName;
this.txtRemark.Text = EquipmentMaterialBigType.Remark;
}
}
}
}
}
}

View File

@ -0,0 +1,105 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JDGL.WBS {
public partial class EquipmentMaterialBigTypeView {
/// <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>
/// txtEquipmentMaterialBigTypeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeCode;
/// <summary>
/// txtEquipmentMaterialBigTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialBigTypeName;
/// <summary>
/// txtRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRemark;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdCheckerId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdCheckerId;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
}

View File

@ -1,10 +1,10 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocFind.aspx.cs" Inherits="FineUIPro.Web.DocManage.DocFind" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialType.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialType" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>项目分项</title>
<title>设备材料分类</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
@ -14,31 +14,31 @@
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="文件列表" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="AttachFileDetaiId" AllowCellEditing="true" ForceFit="true"
ClicksToEdit="2" DataIDField="AttachFileDetaiId" AllowSorting="true" SortField="UploadTime"
<f:Grid ID="Grid1" ShowBorder="true" EnableAjax="false" ShowHeader="false" Title="设备材料分类" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="EquipmentMaterialTypeId" AllowCellEditing="true" ForceFit="true"
ClicksToEdit="2" DataIDField="EquipmentMaterialTypeId" AllowSorting="true" SortField="EquipmentMaterialTypeCode"
SortDirection="ASC" EnableColumnLines="true"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnRowCommand="Grid1_RowCommand"
AllowPaging="true" IsDatabasePaging="true" PageSize="10"
EnableRowDoubleClickEvent="true" AllowFilters="true" EnableTextSelection="True" OnRowDoubleClick="Grid1_RowDoubleClick" OnPageIndexChange="Grid1_PageIndexChange">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox ID="txtkeyword" runat="server" Label="关键字" Width="250px" LabelWidth="110px"
<f:TextBox ID="txtEquipmentMaterialTypeCode" runat="server" Label="编号" Width="250px" LabelWidth="110px"
LabelAlign="Right">
</f:TextBox>
<f:RadioButtonList ID="ListFindType" Label="查询方式" runat="server" LabelWidth="120px" AutoColumnWidth="true" LabelAlign="Right">
<f:RadioItem Text="文件名称" Value="Name" Selected="true" />
<f:RadioItem Text="文件内容" Value="Content" />
</f:RadioButtonList>
<f:TextBox ID="txtEquipmentMaterialTypeName" runat="server" Label="名称" Width="250px" LabelWidth="120px"
LabelAlign="Right">
</f:TextBox>
<f:DropDownList runat="server" ID="drpEquipmentMaterialBigTypeId" Label="大类" LabelWidth="110px" EnableEdit="true" LabelAlign="Right"></f:DropDownList>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSearch" Icon="SystemSearch" Text="查询" Size="Medium"
<f:Button ID="btnSearch" Icon="SystemSearch"
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
</f:Button>
<%--<f:Button ID="btnRset" OnClick="btnRset_Click" ToolTip="重置" Icon="ArrowUndo" EnablePostBack="true" runat="server">
<f:Button ID="btnRset" OnClick="btnRset_Click" ToolTip="重置" Icon="ArrowUndo" EnablePostBack="true" runat="server">
</f:Button>
<f:Button ID="btnNew" Icon="Add" EnablePostBack="true" Hidden="true"
runat="server">
</f:Button>--%>
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@ -49,24 +49,22 @@
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="180px" ColumnID="AliasName" DataField="AliasName"
SortField="AliasName" FieldType="String" HeaderText="文件名称" TextAlign="Center"
<f:RenderField Width="100px" ColumnID="EquipmentMaterialTypeCode" DataField="EquipmentMaterialTypeCode"
SortField="EquipmentMaterialTypeCode" FieldType="String" HeaderText="编号" TextAlign="center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="180px" ColumnID="Classify" DataField="Classify"
SortField="Classify" FieldType="String" HeaderText="文档类别" TextAlign="center"
<f:RenderField Width="300px" ColumnID="EquipmentMaterialTypeName" DataField="EquipmentMaterialTypeName"
SortField="EquipmentMaterialTypeName" FieldType="String" HeaderText="名称" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="180px" ColumnID="UploadTime" DataField="UploadTime"
SortField="UploadTime" FieldType="String" HeaderText="上传时间" TextAlign="Center"
<f:RenderField Width="300px" ColumnID="EquipmentMaterialBigTypeName" DataField="EquipmentMaterialBigTypeName"
SortField="EquipmentMaterialBigTypeName" FieldType="String" HeaderText="大类" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="180px" ColumnID="UserName" DataField="UserName"
SortField="UserName" FieldType="String" HeaderText="上传人" TextAlign="Center"
<f:RenderField Width="200px" ColumnID="Remark" DataField="Remark"
SortField="Remark" FieldType="String" HeaderText="备注" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:LinkButtonField CommandName="Preview" Width="60px" Text="预览" />
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@ -85,30 +83,25 @@
</f:DropDownList>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="预览" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true"
Width="700px" Height="600px">
</f:Window>
<f:Window ID="Window2" Title="文档" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true"
Width="1300px" Height="660px">
<f:Window ID="Window1" Title="设备材料分类" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="500px" Height="300px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons" OnClick="btnMenuView_Click">
</f:MenuButton>
<%--<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
OnClick="btnMenuModify_Click">
</f:MenuButton>
<%--<f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons" OnClick="btnMenuView_Click">
</f:MenuButton>--%>
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
OnClick="btnMenuDel_Click">
</f:MenuButton>--%>
</f:MenuButton>
</Items>
</f:Menu>
</form>

View File

@ -0,0 +1,187 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace FineUIPro.Web.JDGL.WBS
{
public partial class EquipmentMaterialType : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BLL.EquipmentMaterialBigTypeService.InitEquipmentMaterialBigTypeDownList(this.drpEquipmentMaterialBigTypeId, true);
// 绑定表格
BindGrid();
btnNew.OnClientClick = Window1.GetShowReference("EquipmentMaterialTypeEdit.aspx") + "return false;";
}
}
/// <summary>
/// 绑定数据
/// </summary>
public void BindGrid()
{
DataTable tb = BindData();
Grid1.RecordCount = tb.Rows.Count;
tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
protected DataTable BindData()
{
string strSql = @"select EquipmentMaterialTypeId,EquipmentMaterialTypeCode,EquipmentMaterialTypeName,a.Remark,b.EquipmentMaterialBigTypeName from [dbo].[WBS_EquipmentMaterialType] a left join WBS_EquipmentMaterialBigType b on a.EquipmentMaterialBigTypeId=b.EquipmentMaterialBigTypeId where 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.txtEquipmentMaterialTypeCode.Text.Trim()))
{
strSql += " AND EquipmentMaterialTypeCode like @EquipmentMaterialTypeCode";
listStr.Add(new SqlParameter("@EquipmentMaterialTypeCode", "%" + this.txtEquipmentMaterialTypeCode.Text.Trim() + "%"));
}
if (!string.IsNullOrEmpty(this.txtEquipmentMaterialTypeName.Text.Trim()))
{
strSql += " AND EquipmentMaterialTypeName like @EquipmentMaterialTypeName";
listStr.Add(new SqlParameter("@EquipmentMaterialTypeName", "%" + this.txtEquipmentMaterialTypeName.Text.Trim() + "%"));
}
if (this.drpEquipmentMaterialBigTypeId.SelectedValue != BLL.Const._Null)
{
strSql += " AND a.EquipmentMaterialBigTypeId = @EquipmentMaterialBigTypeId";
listStr.Add(new SqlParameter("@EquipmentMaterialBigTypeId", this.drpEquipmentMaterialBigTypeId.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
return tb;
}
protected void btnMenuModify_Click(object sender, EventArgs e)
{
EditData();
}
protected void btnMenuDel_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
BLL.EquipmentMaterialTypeService.DeleteEquipmentMaterialTypeById(rowID);
}
BindGrid();
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
}
/// <summary>
/// 编辑数据方法
/// </summary>
private void EditData()
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
return;
}
if (this.btnMenuModify.Hidden) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialTypeView.aspx?EquipmentMaterialTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
}
else
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialTypeEdit.aspx?EquipmentMaterialTypeId={0}", Grid1.SelectedRowID, "编辑 - ")));
}
}
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
if (Request.Params["value"] == "0")
{
return;
}
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.EquipmentMaterialTypeMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnMenuModify.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnMenuDel.Hidden = false;
}
}
}
#endregion
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
}
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
EditData();
}
protected void btnMenuView_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EquipmentMaterialTypeView.aspx?EquipmentMaterialTypeId={0}", Grid1.SelectedRowID, "查看 - ")));
}
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 重置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnRset_Click(object sender, EventArgs e)
{
txtEquipmentMaterialTypeCode.Text = "";
txtEquipmentMaterialTypeName.Text = "";
BindGrid();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
}
}

View File

@ -7,13 +7,11 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.DocManage
{
public partial class FileCabinet
{
namespace FineUIPro.Web.JDGL.WBS {
public partial class EquipmentMaterialType {
/// <summary>
/// form1 控件。
/// </summary>
@ -22,7 +20,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@ -31,7 +29,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@ -40,70 +38,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// RadioType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList RadioType;
/// <summary>
/// tree1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tree1;
/// <summary>
/// hdSelectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdSelectId;
/// <summary>
/// hdUnitWorkId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdUnitWorkId;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Grid1 控件。
/// </summary>
@ -112,7 +47,70 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// txtEquipmentMaterialTypeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeCode;
/// <summary>
/// txtEquipmentMaterialTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
/// <summary>
/// drpEquipmentMaterialBigTypeId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpEquipmentMaterialBigTypeId;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// btnRset 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnRset;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// lblPageIndex 控件。
/// </summary>
@ -121,34 +119,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// Label3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label3;
/// <summary>
/// Label2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label2;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@ -157,7 +128,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@ -166,7 +137,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@ -175,25 +146,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// Window1 控件。
/// </summary>
@ -202,7 +155,7 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// </summary>
@ -211,14 +164,23 @@ namespace FineUIPro.Web.DocManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuView 控件。
/// btnMenuModify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuView;
protected global::FineUIPro.MenuButton btnMenuModify;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
}
}

View File

@ -0,0 +1,59 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialTypeEdit.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialTypeEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>设备材料分类</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialTypeCode" runat="server" Label="编号"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialTypeName" runat="server" Label="名称"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:DropDownList runat="server" ID="drpEquipmentMaterialBigTypeId" Label="大类" ShowRedStar="true" Required="true" LabelWidth="110px" EnableEdit="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注"
MaxLength="100" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdCheckerId" runat="server">
</f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false"
runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,72 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JDGL.WBS
{
public partial class EquipmentMaterialTypeEdit : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentMaterialTypeId = Request.Params["EquipmentMaterialTypeId"];
BLL.EquipmentMaterialBigTypeService.InitEquipmentMaterialBigTypeDownList(this.drpEquipmentMaterialBigTypeId, true);
if (!string.IsNullOrEmpty(EquipmentMaterialTypeId))
{
Model.WBS_EquipmentMaterialType EquipmentMaterialType = BLL.EquipmentMaterialTypeService.GetEquipmentMaterialType(EquipmentMaterialTypeId);
if (EquipmentMaterialType != null)
{
this.txtEquipmentMaterialTypeCode.Text = EquipmentMaterialType.EquipmentMaterialTypeCode;
this.txtEquipmentMaterialTypeName.Text = EquipmentMaterialType.EquipmentMaterialTypeName;
if (!string.IsNullOrEmpty(EquipmentMaterialType.EquipmentMaterialBigTypeId))
{
this.drpEquipmentMaterialBigTypeId.SelectedValue = EquipmentMaterialType.EquipmentMaterialBigTypeId;
}
this.txtRemark.Text = EquipmentMaterialType.Remark;
}
}
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpEquipmentMaterialBigTypeId.SelectedValue == BLL.Const._Null)
{
ShowNotify("请选择大类!", MessageBoxIcon.Warning);
return;
}
SaveData(true);
}
private void SaveData(bool b)
{
string EquipmentMaterialTypeId = Request.Params["EquipmentMaterialTypeId"];
Model.WBS_EquipmentMaterialType EquipmentMaterialType = new Model.WBS_EquipmentMaterialType();
EquipmentMaterialType.EquipmentMaterialTypeCode = this.txtEquipmentMaterialTypeCode.Text.Trim();
EquipmentMaterialType.EquipmentMaterialTypeName = this.txtEquipmentMaterialTypeName.Text.Trim();
EquipmentMaterialType.EquipmentMaterialBigTypeId = this.drpEquipmentMaterialBigTypeId.SelectedValue;
EquipmentMaterialType.Remark = this.txtRemark.Text.Trim();
if (!string.IsNullOrEmpty(EquipmentMaterialTypeId))
{
EquipmentMaterialType.EquipmentMaterialTypeId = EquipmentMaterialTypeId;
BLL.EquipmentMaterialTypeService.UpdateEquipmentMaterialType(EquipmentMaterialType);
}
else
{
EquipmentMaterialType.EquipmentMaterialTypeId = SQLHelper.GetNewID(typeof(Model.WBS_EquipmentMaterialType));
BLL.EquipmentMaterialTypeService.AddEquipmentMaterialType(EquipmentMaterialType);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
}
}

View File

@ -0,0 +1,114 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JDGL.WBS {
public partial class EquipmentMaterialTypeEdit {
/// <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>
/// txtEquipmentMaterialTypeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeCode;
/// <summary>
/// txtEquipmentMaterialTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
/// <summary>
/// drpEquipmentMaterialBigTypeId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpEquipmentMaterialBigTypeId;
/// <summary>
/// txtRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRemark;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdCheckerId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdCheckerId;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
}

View File

@ -0,0 +1,59 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentMaterialTypeView.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.EquipmentMaterialTypeView" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>设备材料分类</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialTypeCode" runat="server" Label="编号"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtEquipmentMaterialTypeName" runat="server" Label="名称"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:DropDownList runat="server" ID="drpEquipmentMaterialBigTypeId" Label="大类" EnableEdit="true" LabelWidth="110px" Readonly="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注"
MaxLength="100" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdCheckerId" runat="server">
</f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false"
runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,39 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.JDGL.WBS
{
public partial class EquipmentMaterialTypeView : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentMaterialTypeId = Request.Params["EquipmentMaterialTypeId"];
BLL.EquipmentMaterialBigTypeService.InitEquipmentMaterialBigTypeDownList(this.drpEquipmentMaterialBigTypeId, true);
if (!string.IsNullOrEmpty(EquipmentMaterialTypeId))
{
Model.WBS_EquipmentMaterialType EquipmentMaterialType = BLL.EquipmentMaterialTypeService.GetEquipmentMaterialType(EquipmentMaterialTypeId);
if (EquipmentMaterialType != null)
{
this.txtEquipmentMaterialTypeCode.Text = EquipmentMaterialType.EquipmentMaterialTypeCode;
this.txtEquipmentMaterialTypeName.Text = EquipmentMaterialType.EquipmentMaterialTypeName;
if (!string.IsNullOrEmpty(EquipmentMaterialType.EquipmentMaterialBigTypeId))
{
this.drpEquipmentMaterialBigTypeId.SelectedValue = EquipmentMaterialType.EquipmentMaterialBigTypeId;
}
this.txtRemark.Text = EquipmentMaterialType.Remark;
}
}
}
}
}
}

View File

@ -0,0 +1,114 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.JDGL.WBS {
public partial class EquipmentMaterialTypeView {
/// <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>
/// txtEquipmentMaterialTypeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeCode;
/// <summary>
/// txtEquipmentMaterialTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtEquipmentMaterialTypeName;
/// <summary>
/// drpEquipmentMaterialBigTypeId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpEquipmentMaterialBigTypeId;
/// <summary>
/// txtRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRemark;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdCheckerId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdCheckerId;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
}

View File

@ -86,6 +86,9 @@
<f:RenderField Width="400px" ColumnID="CostControlName" DataField="CostControlName" FieldType="String"
HeaderText="内容" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="EquipmentMaterialTypeName" DataField="EquipmentMaterialTypeName" FieldType="String"
HeaderText="设备材料分类" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="70px" ColumnID="Unit" DataField="Unit" FieldType="String"
HeaderText="单位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>

View File

@ -1736,7 +1736,7 @@ namespace FineUIPro.Web.JDGL.WBS
{
codes += item.CostControlCode + ",";
}
string strSql = "SELECT * FROM WBS_CostControl where @CostControlCodes like '%'+CostControlCode+'%' and WbsSetId=@WbsSetId";
string strSql = "SELECT c.*,e.EquipmentMaterialTypeName FROM WBS_CostControl c left join WBS_EquipmentMaterialType e on c.EquipmentMaterialTypeId=e.EquipmentMaterialTypeId where @CostControlCodes like '%'+CostControlCode+'%' and WbsSetId=@WbsSetId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@CostControlCodes", codes));
listStr.Add(new SqlParameter("@WbsSetId", this.trWBS.SelectedNodeID));

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Tree>
<TreeNode id="858E83E9-ADE5-452E-BD65-82D8DFF872C0" Text="分部、工作项及费用清单裁剪" NavigateUrl="JDGL/WBS/WBSSetAudit.aspx">
<TreeNode id="F2BC1293-8639-4BD6-8759-648BCF6346E9" Text="设备材料大类" NavigateUrl="JDGL/WBS/EquipmentMaterialBigType.aspx">
</TreeNode>
<TreeNode id="D00B3C53-2972-4D24-B88F-B38880D4A24F" Text="设备材料分类" NavigateUrl="JDGL/WBS/EquipmentMaterialType.aspx"></TreeNode>
<TreeNode id="858E83E9-ADE5-452E-BD65-82D8DFF872C0" Text="分部、工作项及费用清单裁剪" NavigateUrl="JDGL/WBS/WBSSetAudit.aspx"></TreeNode>
<TreeNode id="E3905BF1-289B-4500-BD34-36F97D649AFC" Text="工作量录入" NavigateUrl="JDGL/WBS/WorkloadInput.aspx"></TreeNode>
<TreeNode id="2A3F8526-95C7-4D30-B2DD-DD26696BE150" Text="工作量统计" NavigateUrl="JDGL/WBS/WorkloadStatistics.aspx"></TreeNode>
<TreeNode id="59AAE0F0-2DB6-4065-B304-7E2C56EC3E5D" Text="赢得值曲线" NavigateUrl="JDGL/CostAnalysis/EarnedValueCurve.aspx"></TreeNode>

View File

@ -252,7 +252,7 @@ namespace FineUIPro.Web.common
List<Model.SingleSerie> series = new List<Model.SingleSerie>();
Model.BusinessColumn businessColumn = new Model.BusinessColumn();
List<string> listCategories = new List<string>();
var persons = from x in db.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true select x;
var persons = from x in db.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now) select x;
var posts = (from x in persons
join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId
select y).Distinct();

File diff suppressed because it is too large Load Diff