CNCEC_SUBQHSE_WUHUAN/SGGL/FineUIPro.Web/JDGL/WBS/WBSSetAudit.aspx

244 lines
13 KiB
Plaintext
Raw Normal View History

2021-04-30 10:28:37 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WBSSetAudit.aspx.cs" Inherits="FineUIPro.Web.JDGL.WBS.WBSSetAudit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
2021-09-29 16:07:32 +08:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2021-08-13 11:15:59 +08:00
<title>分部、工作项及费用清单设置</title>
2021-04-30 10:28:37 +08:00
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
2021-09-29 16:07:32 +08:00
.f-grid-row .f-grid-cell-inner {
2021-04-30 10:28:37 +08:00
white-space: normal;
word-break: break-all;
}
2021-09-29 16:07:32 +08:00
.row-grid-disabled .f-grid-cell-inner {
2021-04-30 10:28:37 +08:00
opacity: .5;
filter: alpha(opacity=50);
}
2021-09-29 16:07:32 +08:00
.f-grid-row.orange, .f-grid-row.orange .ui-icon, .f-grid-row.orange a {
2021-04-30 10:28:37 +08:00
background-color: Orange;
color: #fff;
}
2021-09-29 16:07:32 +08:00
.f-grid-row.red, .f-grid-row.red .ui-icon, .f-grid-row.red a {
2021-04-30 10:28:37 +08:00
background-color: Red;
color: #fff;
}
2021-09-29 16:07:32 +08:00
.customlabel span {
2021-04-30 10:28:37 +08:00
color: red;
font-weight: bold;
}
2021-08-13 11:15:59 +08:00
.f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
2021-04-30 10:28:37 +08:00
</style>
</head>
<body>
<form id="form1" runat="server">
2021-09-29 16:07:32 +08:00
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="20px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" RegionSplitWidth="3px" EnableCollapse="true"
Width="300px" Title="分部、工作项及费用清单设置" ShowBorder="true" ShowHeader="true" BodyPadding="10px" Layout="Fit">
<Items>
<f:Tree ID="trWBS" Width="290" EnableCollapse="true" ShowHeader="true" OnNodeCommand="trWBS_NodeCommand"
OnNodeExpand="trWBS_NodeExpand" OnNodeCheck="trWBS_NodeCheck" EnableCheckBox="true"
AutoLeafIdentification="true" runat="server">
<Listeners>
<f:Listener Event="beforenodecontextmenu" Handler="onTreeNodeContextMenu" />
</Listeners>
</f:Tree>
<f:HiddenField runat="server" ID="hdSelectId">
</f:HiddenField>
2022-04-20 17:24:24 +08:00
<f:HiddenField runat="server" ID="hdType">
</f:HiddenField>
2021-09-29 16:07:32 +08:00
</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" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true" ForceFit="true"
2021-12-21 16:10:02 +08:00
runat="server" BoxFlex="1" DataKeyNames="CostControlId" AllowSorting="true" EnableColumnLines="true" EnableCheckBoxSelect="true"
2021-09-29 16:07:32 +08:00
SortField="CostControlCode,CostControlName" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" ShowSelectedCell="true"
DataIDField="CostControlId" AllowPaging="true" IsDatabasePaging="true" PageSize="100" OnPageIndexChange="Grid1_PageIndexChange"
OnRowDataBound="Grid1_RowDataBound" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:Button ID="btnAdd" Icon="Add" runat="server" ToolTip="增加" Hidden="true"
OnClick="btnAdd_Click">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" Hidden="true" OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField Width="100px" ColumnID="CostControlCode" DataField="CostControlCode" FieldType="String"
HeaderText="费用清单编号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="400px" ColumnID="CostControlName" DataField="CostControlName" FieldType="String"
HeaderText="内容" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
2023-05-26 10:24:02 +08:00
<f:RenderField Width="100px" ColumnID="EquipmentMaterialTypeName" DataField="EquipmentMaterialTypeName" FieldType="String"
HeaderText="设备材料分类" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
2021-09-29 16:07:32 +08:00
<f:RenderField Width="70px" ColumnID="Unit" DataField="Unit" FieldType="String"
HeaderText="单位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
2021-12-21 16:10:02 +08:00
<%--<f:RenderField Width="130px" ColumnID="TotalNum" DataField="TotalNum" FieldType="Double"
2021-09-29 16:07:32 +08:00
HeaderText="合同工作量" HeaderTextAlign="Center" TextAlign="Left">
<Editor>
<f:NumberBox ID="nbTotalNum" NoDecimal="false" NoNegative="true" MinValue="0"
runat="server">
</f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="RealPrice" DataField="RealPrice" FieldType="Double"
2021-09-30 10:37:37 +08:00
HeaderText="实际单价" HeaderTextAlign="Center" TextAlign="Left">
2021-09-29 16:07:32 +08:00
<Editor>
<f:NumberBox ID="nbRealPrice" NoDecimal="false" NoNegative="true" MinValue="0"
runat="server">
</f:NumberBox>
</Editor>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PlanPrice" DataField="PlanPrice" FieldType="Double"
2021-09-30 10:37:37 +08:00
HeaderText="预算单价" HeaderTextAlign="Center" TextAlign="Left">
2021-09-29 16:07:32 +08:00
<Editor>
<f:NumberBox ID="nbPlanPrice" NoDecimal="false" NoNegative="true" MinValue="0"
runat="server">
</f:NumberBox>
</Editor>
2021-12-21 16:10:02 +08:00
</f:RenderField>--%>
2021-09-29 16:07:32 +08:00
<f:RenderField Width="70px" ColumnID="CostControlId" DataField="CostControlId" FieldType="String"
HeaderText="主键" HeaderTextAlign="Center" TextAlign="Left" Hidden="true">
</f:RenderField>
</Columns>
<Listeners>
2021-08-13 11:15:59 +08:00
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
2021-09-29 16:07:32 +08:00
<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="100" Value="100" />
<f:ListItem Text="200" Value="200" />
<f:ListItem Text="300" Value="300" />
<f:ListItem Text="400" Value="400" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="350px">
</f:Window>
<f:Window ID="Window2" Title="拷贝" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window2_Close" IsModal="true"
Width="800px" Height="450px">
</f:Window>
<f:Window ID="Window3" Title="编辑" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="800px" OnClose="Window3_Close"
Height="350px">
</f:Window>
2021-08-13 11:15:59 +08:00
<f:Window ID="Window4" Title="设置计划" Hidden="true" EnableIFrame="true" EnableMaximize="true"
2021-09-29 16:07:32 +08:00
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="800px"
Height="550px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuAdd" OnClick="btnMenuAdd_Click" EnablePostBack="true" runat="server" Icon="Add"
Text="增加" Hidden="true">
</f:MenuButton>
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true" Icon="Pencil"
runat="server" Text="修改" Hidden="true">
</f:MenuButton>
<f:MenuButton ID="btnMenuCopy" OnClick="btnMenuCopy_Click" EnablePostBack="true" Icon="PageCopy"
runat="server" Text="拷贝" Hidden="true">
</f:MenuButton>
<%--<f:MenuButton ID="btnMenuCopy2" OnClick="btnMenuCopy2_Click" EnablePostBack="true"
2021-04-30 10:28:37 +08:00
runat="server" Text="分级" Hidden="true">
2021-08-13 11:15:59 +08:00
</f:MenuButton>--%>
2021-09-29 16:07:32 +08:00
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true" Icon="Delete"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Hidden="true">
</f:MenuButton>
<%--<f:MenuButton ID="btnMenuAudit" OnClick="btnMenuAudit_Click" EnablePostBack="true"
2021-04-30 10:28:37 +08:00
Hidden="true" runat="server" Text="审核" ConfirmTitle="是否确定通过此项及其子项的审核?">
2021-08-13 11:15:59 +08:00
</f:MenuButton>--%>
2021-09-29 16:07:32 +08:00
</f:Menu>
2021-08-13 11:15:59 +08:00
<f:Menu ID="Menu2" runat="server">
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Hidden="true" Text="修改" Icon="Pencil"
OnClick="btnMenuModify_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>
2021-04-30 10:28:37 +08:00
</form>
<script type="text/javascript">
var treeID = '<%= trWBS.ClientID %>';
var menuID = '<%= Menu1.ClientID %>';
2021-08-13 11:15:59 +08:00
var menuID2 = '<%= Menu2.ClientID %>';
2021-04-30 10:28:37 +08:00
var btn = '<%= btnSave.ClientID %>';
2021-09-29 16:07:32 +08:00
// 返回false来阻止浏览器右键菜单
2021-08-13 11:15:59 +08:00
function onRowContextMenu(event, rowId) {
F(menuID2).show(); //showAt(event.pageX, event.pageY);
return false;
}
2021-04-30 10:28:37 +08:00
// 保存当前菜单对应的树节点ID
var currentNodeId;
// 返回false来阻止浏览器右键菜单
function onTreeNodeContextMenu(event, nodeId) {
currentNodeId = nodeId;
F(menuID).show();
return false;
}
function show() {
F(btn).click();
}
// 设置所有菜单项的禁用状态
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);
}
}
}
function updateDate() {
// 回发到后台更新
__doPostBack('', 'UPDATE_Date');
}
</script>
</body>
</html>