-
Notifications
You must be signed in to change notification settings - Fork 0
/
plant_costs.aspx
116 lines (106 loc) · 5.12 KB
/
plant_costs.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<%@ Page Title="Plant Costs - Buildmate" Language="VB" MasterPageFile="~/common/Manager.master" AutoEventWireup="false" CodeFile="plant_costs.aspx.vb" Inherits="manager_resource_costs" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlId="rgResources">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgResources" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<div class="breadcrumb">
<div class="breadcrumb-container">
<ul class="breadcrumb-list">
<li>
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="~/project_details.aspx?pid={0}"
Text="Project Details" />
<span class="divider">/</span>
</li>
<li class="active">Plant Costs</li>
</ul>
</div>
</div>
<div class="main-container">
<div class="box">
<h3>Plant Costs</h3>
<div class="boxcontent">
<asp:Repeater ID="Repeater1" runat="server"
DataSourceID="resourceDataSource">
<HeaderTemplate>
<table border="0" cellpadding="0" cellspacing="0" class="table" width="100%">
<colgroup>
<col />
<col width="10%" />
<col width="5%" />
<col width="10%" />
<col width="10%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead>
<tr>
<th></th>
<th class="firstcol centrealign" colspan="3">Purchase Cost</th>
<th class="firstcol centrealign" colspan="3">Project Cost</th>
</tr>
<tr>
<th class="leftalign">Resource Name</th>
<th class="firstcol">Unit</th>
<th>Qty</th>
<th class="rightalign">Cost (£)</th>
<th class="firstcol rightalign">Cost (£)</th>
<th class="rightalign">Waste</th>
<th class="rightalign">Total Cost (£)</th>
</tr>
</thead>
<tbody>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:Image ID="Image1" runat="server"
Visible='<%# IIf(eval("isEditable")=0, "True", "False")%>'
ToolTip="Non-Variation Resource"
Src="/images/editable0.gif" />
<asp:Image ID="Image2" runat="server"
Visible='<%# IIf(eval("isEditable")=1, "True", "False")%>'
ToolTip="Variation Resource" src="/images/editable1.gif" />
<%# eval("resourceName") %>
</td>
<td class="centrealign purchasecol firstcol"><%#Eval("purchaseUnit")%></td>
<td class="centrealign purchasecol"><%#Eval("purchaseQty")%></td>
<td class="rightalign purchasecol"><%#Eval("purchaseCost", "{0:C2}")%></td>
<td class="rightalign projectcol firstcol"><%#Eval("projectCost", "{0:C2}")%></td>
<td class="rightalign projectcol"><%# checkWaste(Eval("incWaste"), Eval("projectWaste"), Eval("wastePercent")) %></td>
<td class="rightalign projectcol lastcol"><%#Eval("projectTotalCost", "{0:C2}")%></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</tbody>
<tfoot>
<tr>
<th colspan="6" class="rightalign">Total Cost:</th>
<th class="rightalign"><asp:Label ID="lblGrandTotal" runat="server" /></th>
</tr>
</tfoot>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</div>
</div>
<asp:SqlDataSource ID="resourceDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:LocalSqlServer %>"
SelectCommand="getTaskResourceStackByProjectAndResourceType" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:SessionParameter Name="UserId" SessionField="userid" />
<asp:QueryStringParameter Name="projectId" QueryStringField="pid" />
<asp:Parameter Name="resourceTypeId" DefaultValue="3" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>