-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_catalogue.aspx
156 lines (135 loc) · 6.59 KB
/
edit_catalogue.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<%@ Page Title="Edit Catalogue - Admin" Language="VB" MasterPageFile="~/common/Manager.master" AutoEventWireup="false" CodeFile="edit_catalogue.aspx.vb" Inherits="edit_catalogue" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="head" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="MainContent" Runat="Server">
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlId="fvCatalogueDetails">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="fvCatalogueDetails" />
<telerik:AjaxUpdatedControl ControlID="notification" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<div class="breadcrumb">
<div class="breadcrumb-container">
<ul class="breadcrumb-list">
<li>
<a href="resources.aspx" title="Resources">Resources</a>
<span class="divider">/</span>
</li>
<li>
<asp:HyperLink ID="hlResource" runat="server">Resource Details</asp:HyperLink>
<span class="divider">/</span>
</li>
<li class="active">Resource Supplier Details</li>
</ul>
</div>
</div>
<div class="main-container">
<div class="box">
<h3>Resource Supplier Details</h3>
<asp:FormView ID="fvCatalogueDetails" runat="server"
DataKeyNames="id"
DefaultMode="Edit"
Width="100%"
DataSourceID="catalogueDS">
<EditItemTemplate>
<div class="row">
<asp:Label ID="Label8" runat="server"
CssClass="label"
AssociatedControlID="rtbProductCode"
Text="Product Code" />
<telerik:RadTextBox ID="rtbProductCode" runat="server"
MaxLength="30"
Text='<%# Bind("productCode") %>'/>
</div>
<div class="row">
<asp:Label
ID="Label10"
runat="server"
CssClass="label"
AssociatedControlID="rtbSuffix"
Text="Suffix" />
<telerik:RadTextBox ID="rtbSuffix" runat="server"
MaxLength="50"
Text='<%# Bind("suffix") %>'/>
</div>
<div class="row">
<asp:Label ID="Label5" runat="server"
CssClass="label"
AssociatedControlID="rtbPrice"
Text="Price" />
<telerik:RadNumericTextBox ID="rtbPrice" runat="server"
dbValue='<%# Bind("price") %>'
Width="90px"
MaxValue="999999"
NumberFormat-DecimalDigits="2"
Type="Currency" />
</div>
<div class="row">
<asp:Label ID="Label6" runat="server"
CssClass="label"
AssociatedControlID="rntbLeadTime"
Text="Lead Time" />
<telerik:RadNumericTextBox ID="rntbLeadTime" runat="server"
dbValue='<%# Bind("leadTime") %>'
Width="30px"
NumberFormat-DecimalDigits="0"
MinValue="0"
MaxValue="999"
Type="Number" /> (days)
</div>
<div class="row">
<asp:Label ID="Label9" runat="server"
CssClass="label"
AssociatedControlID="rntbUseage"
Text="Useage" />
<telerik:RadNumericTextBox ID="rntbUseage" runat="server"
Type="Number"
Width="60px"
MaxValue="999999"
NumberFormat-DecimalDigits="2"
dbValue='<%# Bind("useage") %>'/>
<%# Eval("unit") %>
</div>
<div class="row">
<asp:Label ID="Label7" runat="server"
CssClass="label"
AssociatedControlID="discontinuedCheckBox"
Text="Discontinued" />
<asp:CheckBox ID="discontinuedCheckBox" runat="server"
Checked='<%# Bind("discontinued") %>' />
</div>
<div class="row">
<label class="label">Last Updated:</label>
<asp:Label ID="Label3" runat="server"
Text='<%#String.Format("{0:f}", Container.DataItem("lastUpdated"))%> ' />
</div>
<div class="row">
<label class="label"> </label>
<asp:Button ID="UpdateButton" runat="server"
CausesValidation="True"
CssClass="button button-create"
CommandName="Update" Text="Update" />
</div>
</EditItemTemplate>
</asp:FormView>
</div>
</div>
<asp:SqlDataSource
ID="catalogueDS" runat="server"
ConnectionString="<%$ ConnectionStrings:LocalSqlServer %>"
UpdateCommand="updateCatalogueUseageDetailsById" UpdateCommandType="StoredProcedure"
SelectCommand="getCatalogueUseageDetailsById" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:QueryStringParameter QueryStringField="id" Name="catalogueId" />
</SelectParameters>
<UpdateParameters>
<asp:SessionParameter Name="userId" SessionField="UserId" />
<asp:QueryStringParameter Name="resourceId" QueryStringField="rid" />
</UpdateParameters>
</asp:SqlDataSource>
</asp:Content>