Advertisement
Guest User

Untitled

a guest
Mar 27th, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.25 KB | None | 0 0
  1. <asp:FormView ID="frmFields" runat="server" AllowPaging="True" DataKeyNames="FieldID"
  2. DataSourceID="SqlDataSourceFields" Width="664px" GridLines="Both" PageIndex="1"
  3. EnableViewState="False">
  4. <EditItemTemplate>
  5. <table width="100%" cellpadding="0" cellspacing="0">
  6. <tr>
  7. <td align="center" colspan="2" style="color: black; height: 12px; background-color: silver">
  8. <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Update Field Details"></asp:Label>
  9. </td>
  10. </tr>
  11. <tr>
  12. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  13. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  14. FieldID:
  15. </td>
  16. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  17. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  18. <asp:Label ID="FieldIDLabel1" runat="server" Text='<%# Eval("FieldID") %>' CssClass="cagText"></asp:Label>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  23. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  24. <asp:Label ID="Label17" runat="server" ForeColor="Red" Text="*"></asp:Label>Vendor
  25. Name:
  26. </td>
  27. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  28. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  29. <asp:DropDownList ID="ddlVendorNameEdit" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceAllVendors"
  30. SelectedValue='<%# Bind("VendorID") %>' DataTextField="VendorName" DataValueField="PayeeID"
  31. Width="135px">
  32. </asp:DropDownList>
  33. <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="ddlVendorNameEdit"
  34. ErrorMessage="Required"></asp:RequiredFieldValidator>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  39. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  40. <asp:Label ID="Label18" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
  41. Name:
  42. </td>
  43. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  44. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  45. <asp:TextBox ID="FieldNameTextBoxE" runat="server" Text='<%# Bind("FieldName") %>'
  46. CssClass="cagText"></asp:TextBox>
  47. <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="FieldNameTextBoxE"
  48. ErrorMessage="Required"></asp:RequiredFieldValidator>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  53. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  54. <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
  55. No:
  56. </td>
  57. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  58. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  59. <asp:TextBox ID="txtFieldNo" runat="server" Text='<%# Bind("FieldNo") %>' CssClass="cagText"></asp:TextBox>
  60. <asp:RequiredFieldValidator ID="rfvFieldNo" runat="server" ControlToValidate="txtFieldNo"
  61. ErrorMessage="Required"></asp:RequiredFieldValidator>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  66. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  67. <asp:Label ID="Label19" runat="server" ForeColor="Red" Text="*"></asp:Label>FieldDescription:
  68. </td>
  69. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  70. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  71. <asp:TextBox ID="FieldDescriptionTextBoxE" runat="server" Text='<%# Bind("FieldDescription") %>'
  72. CssClass="cagText"></asp:TextBox>
  73. <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="FieldDescriptionTextBoxE"
  74. ErrorMessage="Required"></asp:RequiredFieldValidator>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  79. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  80. <asp:Label ID="Label20" runat="server" ForeColor="Red" Text="*"></asp:Label>Acres:
  81. </td>
  82. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  83. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  84. <asp:TextBox ID="AcresTextBoxE" runat="server" Text='<%# Bind("Acres") %>' CssClass="cagText"></asp:TextBox>
  85. <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="AcresTextBoxE"
  86. ErrorMessage="Required"></asp:RequiredFieldValidator>
  87. <asp:CustomValidator ID="csvAcres" runat="server" ClientValidationFunction="fValAcres"
  88. ControlToValidate="AcresTextBoxE" ErrorMessage="Value must equal Border Acres + Crossing Acres"></asp:CustomValidator>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  93. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  94. <asp:Label ID="Label23" runat="server" ForeColor="Red" Text="*"></asp:Label>Country
  95. </td>
  96. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  97. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  98. <asp:DropDownList ID="ddlCountry" runat="server" DataSourceID="SqlDataSourceCountry"
  99. SelectedValue='<%# Bind("CountryID") %>' DataTextField="CountryName" DataValueField="CountryID"
  100. OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" AutoPostBack="True">
  101. </asp:DropDownList>
  102. <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="ddlCountry"
  103. ErrorMessage="Required"></asp:RequiredFieldValidator>
  104. </td>
  105. </tr>
  106. <tr>
  107. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  108. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  109. <asp:Label ID="Label21" runat="server" ForeColor="Red" Text="*"></asp:Label>State
  110. </td>
  111. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  112. border-bottom: silver 1px solid; width: 159px;">
  113. <asp:DropDownList ID="ddlState" runat="server" DataSourceID="SqlDataSourceStates"
  114. SelectedValue='<%# Bind("StateID") %>' DataTextField="StateName" DataValueField="StateID"
  115. OnDataBound="ddlState_DataBound">
  116. </asp:DropDownList>
  117. <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="ddlState"
  118. ErrorMessage="Required"></asp:RequiredFieldValidator>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  123. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  124. <asp:Label ID="Label22" runat="server" ForeColor="Red" Text="*"></asp:Label>County
  125. Name
  126. </td>
  127. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  128. border-bottom: silver 1px solid; width: 159px;">
  129. <asp:DropDownList ID="ddlCountyNameEdit" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceCounty"
  130. SelectedValue='<%# Bind("CountyCode") %>' DataTextField="strDescription" DataValueField="strCountyCode"
  131. Width="135px">
  132. </asp:DropDownList>
  133. <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="ddlCountyNameEdit"
  134. ErrorMessage="Required"></asp:RequiredFieldValidator>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  139. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  140. Township
  141. </td>
  142. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  143. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  144. <asp:TextBox ID="txtTownship" runat="server" CssClass="cagText" Text='<%# Bind("Township") %>'
  145. Width="135px" />
  146. </td>
  147. </tr>
  148. <tr>
  149. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  150. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  151. Section
  152. </td>
  153. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  154. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  155. <asp:TextBox ID="txtSection" runat="server" CssClass="cagText" Text='<%# Bind("Section") %>'
  156. Width="135px" />
  157. </td>
  158. </tr>
  159. <tr>
  160. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  161. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  162. Legal Desc
  163. </td>
  164. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  165. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  166. <asp:TextBox ID="txtLegalDesc" runat="server" CssClass="cagText" Text='<%# Bind("LegalDesc") %>'
  167. Width="135px" />
  168. </td>
  169. </tr>
  170. <tr>
  171. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  172. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  173. Longitude
  174. </td>
  175. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  176. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  177. <asp:TextBox ID="txtLongitudeE" runat="server" Text='<%# Bind("Longitude") %>' CssClass="cagText"></asp:TextBox><br />
  178. </td>
  179. </tr>
  180. <tr>
  181. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  182. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  183. Latitude
  184. </td>
  185. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  186. border-left: silver 1px solid; border-bottom: silver 1px solid; width: 159px;">
  187. <asp:TextBox ID="txtLatitudeE" runat="server" Text='<%# Bind("Latitude") %>' CssClass="cagText"></asp:TextBox><br />
  188. </td>
  189. </tr>
  190. <tr>
  191. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  192. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  193. Station Code</td>
  194. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  195. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  196. <asp:TextBox ID="txtStationCode" runat="server" CssClass="cagText" Text='<%# Bind("StationCode") %>'></asp:TextBox></td>
  197.  
  198. </tr>
  199.  
  200. <tr>
  201. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  202. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  203. Haul Zone Code (LEMOORE, 36)
  204. </td>
  205. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  206. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  207. <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeLEM") %>'></asp:TextBox>
  208. </td>
  209. </tr>
  210. <tr>
  211. <td align="left" style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  212. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  213. Haul Zone Code (WILLIAMS, 94)
  214. </td>
  215. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  216. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  217. <asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeWIL") %>'></asp:TextBox>
  218. </td>
  219. </tr>
  220. <tr>
  221. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  222. border-left: silver 1px solid; border-bottom: silver 1px solid; height: 12px">
  223. Crossing Acre
  224. </td>
  225. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  226. width: 159px; border-bottom: silver 1px solid; height: 12px">
  227. <asp:TextBox ID="txtCrossingAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("CrossingAcres") %>'></asp:TextBox>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  232. border-left: silver 1px solid; border-bottom: silver 1px solid; height: 12px">
  233. Border Acres
  234. </td>
  235. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  236. width: 159px; border-bottom: silver 1px solid; height: 12px">
  237. <asp:TextBox ID="txtBorderAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("BorderAcres") %>'></asp:TextBox>
  238. </td>
  239. </tr>
  240. </table>
  241. <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
  242. Text="Update">
  243. </asp:LinkButton>
  244. <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
  245. Text="Cancel">
  246. </asp:LinkButton>
  247. </EditItemTemplate>
  248. <InsertItemTemplate>
  249. <table width="100%" cellpadding="0" cellspacing="0">
  250. <tr>
  251. <td align="center" colspan="2" style="height: 12px; background-color: silver;">
  252. <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Insert New Field"></asp:Label>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  257. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  258. <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label>Vendor
  259. Name:
  260. </td>
  261. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  262. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  263. <asp:DropDownList ID="ddlVendorName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceAllVendors"
  264. SelectedValue='<%# Bind("VendorID") %>' DataTextField="VendorName" DataValueField="PayeeID"
  265. Width="135px" OnDataBound="AddBlankItemToDDL_DataBound">
  266. </asp:DropDownList>
  267. <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlVendorName"
  268. ErrorMessage="Required"></asp:RequiredFieldValidator>
  269. </td>
  270. </tr>
  271. <tr>
  272. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  273. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  274. <asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
  275. Name:
  276. </td>
  277. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  278. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  279. <asp:TextBox ID="FieldNameTextBox" runat="server" CssClass="cagText" Text='<%# Bind("FieldName") %>'></asp:TextBox>
  280. <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="FieldNameTextBox"
  281. ErrorMessage="Required"></asp:RequiredFieldValidator>
  282. </td>
  283. </tr>
  284. <tr>
  285. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  286. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  287. <asp:Label ID="Label11" runat="server" ForeColor="Red" Text="*"></asp:Label>Field
  288. No:
  289. </td>
  290. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  291. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  292. <asp:TextBox ID="txtFieldNo" runat="server" CssClass="cagText" Text='<%# Bind("FieldNo") %>'></asp:TextBox>
  293. <asp:RequiredFieldValidator ID="rfvFieldNo" runat="server" ControlToValidate="txtFieldNo"
  294. ErrorMessage="Required"></asp:RequiredFieldValidator>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  299. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  300. <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>FieldDescription:
  301. </td>
  302. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  303. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  304. <asp:TextBox ID="FieldDescriptionTextBox" runat="server" CssClass="cagText" Text='<%# Bind("FieldDescription") %>'></asp:TextBox>
  305. <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="FieldDescriptionTextBox"
  306. ErrorMessage="Required"></asp:RequiredFieldValidator>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  311. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  312. <asp:Label ID="Label7" runat="server" ForeColor="Red" Text="*"></asp:Label>Acres:
  313. </td>
  314. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  315. border-left: silver 1px solid; border-bottom: silver 1px solid;">
  316. <asp:TextBox ID="AcresTextBox" runat="server" CssClass="cagText" Text='<%# Bind("Acres") %>'></asp:TextBox>
  317. <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="AcresTextBox"
  318. ErrorMessage="Required"></asp:RequiredFieldValidator>
  319. <asp:CustomValidator ID="csvAcres" runat="server" ClientValidationFunction="fValAcres"
  320. ControlToValidate="AcresTextBox" ErrorMessage="Value must equal Border Acres + Crossing Acres"></asp:CustomValidator>
  321. </td>
  322. </tr>
  323. <tr>
  324. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  325. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  326. <asp:Label ID="Label8" runat="server" ForeColor="Red" Text="*"></asp:Label>Country
  327. </td>
  328. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  329. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  330. <asp:DropDownList ID="ddlCountry" runat="server" DataSourceID="SqlDataSourceCountry"
  331. SelectedValue='<%# Bind("countryID") %>' DataTextField="CountryName" DataValueField="CountryID"
  332. AutoPostBack="True" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
  333. </asp:DropDownList>
  334. <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlCountry"
  335. ErrorMessage="Required"></asp:RequiredFieldValidator>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  340. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  341. <asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*"></asp:Label>State
  342. </td>
  343. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  344. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  345. <asp:DropDownList ID="ddlState" runat="server" DataSourceID="SqlDataSourceStates"
  346. SelectedValue='<%# Bind("StateID") %>' DataTextField="StateName" DataValueField="StateID">
  347. </asp:DropDownList>
  348. <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlState"
  349. ErrorMessage="Required"></asp:RequiredFieldValidator>
  350. </td>
  351. </tr>
  352. <tr>
  353. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  354. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  355. <asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*"></asp:Label>County
  356. Name
  357. </td>
  358. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  359. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  360. <asp:DropDownList ID="ddlCountyName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceCounty"
  361. SelectedValue='<%# Bind("CountyCode") %>' DataTextField="strDescription" DataValueField="strCountyCode"
  362. Width="135px">
  363. </asp:DropDownList>
  364. <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlCountyName"
  365. ErrorMessage="Required"></asp:RequiredFieldValidator>
  366. </td>
  367. </tr>
  368. <tr>
  369. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  370. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  371. Township
  372. </td>
  373. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  374. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  375. <asp:TextBox ID="txtTownship" runat="server" CssClass="cagText" Text='<%# Bind("Township") %>'
  376. Width="135px" MaxLength="30" />
  377. </td>
  378. </tr>
  379. <tr>
  380. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  381. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  382. Section
  383. </td>
  384. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  385. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  386. <asp:TextBox ID="txtSection" runat="server" CssClass="cagText" Text='<%# Bind("Section") %>'
  387. Width="135px" MaxLength="30" />
  388. </td>
  389. </tr>
  390. <tr>
  391. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  392. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  393. Legal Desc
  394. </td>
  395. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  396. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  397. <asp:TextBox ID="txtLegalDesc" runat="server" CssClass="cagText" Text='<%# Bind("LegalDesc") %>'
  398. Width="135px" MaxLength="30" />
  399. </td>
  400. </tr>
  401. <tr>
  402. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  403. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  404. Longitude
  405. </td>
  406. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  407. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  408. <asp:TextBox ID="txtLongitude" runat="server" CssClass="cagText" Text='<%# Bind("Longitude") %>'></asp:TextBox>
  409. </td>
  410. </tr>
  411. <tr>
  412. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  413. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  414. Latitude
  415. </td>
  416. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  417. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  418. <asp:TextBox ID="txtLatitude" runat="server" CssClass="cagText" Text='<%# Bind("Latitude") %>'></asp:TextBox>
  419. </td>
  420. </tr>
  421. <tr>
  422. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  423. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  424. Station Code
  425. </td>
  426. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  427. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  428. <asp:TextBox ID="txtStationCode" runat="server" CssClass="cagText" Text='<%# Bind("StationCode") %>'></asp:TextBox>
  429.  
  430. </td>
  431. </tr>
  432.  
  433. <tr>
  434. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  435. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  436. Haul Zone Code (LEM, 36)
  437. </td>
  438. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  439. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  440.  
  441. <%-- <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeLEM") %>'>--%>
  442.  
  443. <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" Text='<%# ((frmFields) Container.DataItem).HaulZoneCodeLEM != 0 ? ((frmFields) Container.DataItem).HaulZoneCodeLEM : string.Empty %>'>
  444.  
  445. </asp:TextBox>
  446.  
  447. </td>
  448. </tr>
  449. <tr>
  450. <td align="left" style="width: 119px; height: 12px; border-right: silver 1px solid;
  451. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  452. Haul Zone Code (WIL, 94)
  453. </td>
  454. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  455. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  456. <asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" Text='<%# Bind("HaulZoneCodeWIL") %>'></asp:TextBox>
  457. </td>
  458. </tr>
  459. <tr>
  460. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  461. border-left: silver 1px solid; width: 119px; border-bottom: silver 1px solid;
  462. height: 12px">
  463. Crossing Acre
  464. </td>
  465. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  466. width: 339px; border-bottom: silver 1px solid; height: 12px">
  467. <asp:TextBox ID="txtCrossingAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("CrossingAcres") %>'></asp:TextBox>
  468. </td>
  469. </tr>
  470. <tr>
  471. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  472. border-left: silver 1px solid; width: 119px; border-bottom: silver 1px solid;
  473. height: 12px">
  474. Border Acre
  475. </td>
  476. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  477. width: 339px; border-bottom: silver 1px solid; height: 12px">
  478. <asp:TextBox ID="txtBorderAcresEdit" runat="server" CssClass="cagText" Text='<%# Bind("BorderAcres") %>'></asp:TextBox>
  479. </td>
  480. </tr>
  481. </table>
  482. <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
  483. Text="Insert" OnClick="InsertButton_Click">
  484. </asp:LinkButton>
  485. <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
  486. Text="Cancel">
  487. </asp:LinkButton>
  488. </InsertItemTemplate>
  489. <ItemTemplate>
  490. <table width="100%" cellpadding="0" cellspacing="0" style="height: 317px">
  491. <tr>
  492. <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
  493. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  494. FieldID:
  495. </td>
  496. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  497. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  498. <asp:Label ID="FieldIDLabel1" runat="server" Text='<%# Eval("FieldID") %>' CssClass="cagText"></asp:Label>
  499. </td>
  500. </tr>
  501. <tr>
  502. <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
  503. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  504. Vendor Name:
  505. </td>
  506. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  507. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  508. <asp:DropDownList ID="ddlVendorName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceAllVendors"
  509. Enabled="false" SelectedValue='<%# Bind("VendorID") %>' DataTextField="VendorName"
  510. DataValueField="PayeeID" Width="135px">
  511. </asp:DropDownList>
  512. </td>
  513. </tr>
  514. <tr>
  515. <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
  516. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  517. Field Name:
  518. </td>
  519. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  520. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  521. <asp:TextBox ID="FieldNameTextBox" ReadOnly="true" runat="server" Text='<%# Bind("FieldName") %>'
  522. CssClass="cagText"></asp:TextBox>
  523. </td>
  524. </tr>
  525. <tr>
  526. <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
  527. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  528. Field No:
  529. </td>
  530. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  531. border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
  532. <asp:TextBox ID="txtFieldNo" ReadOnly="true" runat="server" Text='<%# Bind("FieldNo") %>'
  533. CssClass="cagText"></asp:TextBox>
  534. </td>
  535. </tr>
  536. <tr>
  537. <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
  538. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  539. FieldDescription:
  540. </td>
  541. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  542. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  543. <asp:TextBox ID="FieldDescriptionTextBox" ReadOnly="true" runat="server" Text='<%# Bind("FieldDescription") %>'
  544. CssClass="cagText"></asp:TextBox>
  545. </td>
  546. </tr>
  547. <tr>
  548. <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
  549. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  550. Acres:
  551. </td>
  552. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  553. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  554. <asp:TextBox ID="AcresTextBox" ReadOnly="true" runat="server" Text='<%# Bind("Acres") %>'
  555. CssClass="cagText"></asp:TextBox>
  556. </td>
  557. </tr>
  558. <tr>
  559. <td align="left" style="height: 12px; width: 101px; border-right: silver 1px solid;
  560. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  561. County Name
  562. </td>
  563. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  564. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  565. <asp:DropDownList ID="ddlCountyName" runat="server" CssClass="cagText" DataSourceID="SqlDataSourceCounty"
  566. Enabled="false" SelectedValue='<%# Bind("CountyCode") %>' DataTextField="strDescription"
  567. DataValueField="strCountyCode" Width="135px">
  568. </asp:DropDownList>
  569. </td>
  570. </tr>
  571. <tr>
  572. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  573. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  574. Township
  575. </td>
  576. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  577. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  578. <asp:TextBox ID="txtTownship" runat="server" CssClass="cagText" Text='<%# Bind("Township") %>'
  579. Width="135px" ReadOnly="True" MaxLength="30" />
  580. </td>
  581. </tr>
  582. <tr>
  583. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  584. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  585. Section
  586. </td>
  587. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  588. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  589. <asp:TextBox ID="txtSection" runat="server" CssClass="cagText" Text='<%# Bind("Section") %>'
  590. Width="135px" ReadOnly="True" MaxLength="30" />
  591. </td>
  592. </tr>
  593. <tr>
  594. <td align="left" style="height: 12px; width: 119px; border-right: silver 1px solid;
  595. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  596. Legal Desc
  597. </td>
  598. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  599. border-left: silver 1px solid; width: 339px; border-bottom: silver 1px solid;">
  600. <asp:TextBox ID="txtLegalDesc" runat="server" CssClass="cagText" Text='<%# Bind("LegalDesc") %>'
  601. Width="135px" ReadOnly="True" MaxLength="30" />
  602. </td>
  603. </tr>
  604. <tr>
  605. <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
  606. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  607. State
  608. </td>
  609. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  610. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  611. <asp:DropDownList ID="ddlState" runat="server" DataSourceID="SqlDataSourceStates"
  612. SelectedValue='<%# Bind("StateID") %>' DataTextField="StateName" DataValueField="StateID"
  613. Enabled="False">
  614. </asp:DropDownList>
  615. </td>
  616. </tr>
  617. <tr>
  618. <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
  619. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  620. Country
  621. </td>
  622. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  623. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  624. <asp:DropDownList ID="ddlCountry" runat="server" DataSourceID="SqlDataSourceCountry"
  625. SelectedValue='<%# Bind("countryID") %>' DataTextField="CountryName" DataValueField="CountryID"
  626. Enabled="False">
  627. </asp:DropDownList>
  628. </td>
  629. </tr>
  630. <tr>
  631. <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
  632. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  633. Longitude
  634. </td>
  635. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  636. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  637. <asp:TextBox ID="txtLongitude" runat="server" Text='<%# Bind("Longitude") %>' CssClass="cagText"
  638. ReadOnly="True"></asp:TextBox>
  639. </td>
  640. </tr>
  641. <tr>
  642. <td align="left" style="width: 101px; height: 12px; border-right: silver 1px solid;
  643. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  644. Latitude
  645. </td>
  646. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  647. border-left: silver 1px solid; width: 46px; border-bottom: silver 1px solid;">
  648. <asp:TextBox ID="txtLatitude" runat="server" Text='<%# Bind("Latitude") %>' CssClass="cagText"
  649. ReadOnly="True"></asp:TextBox>
  650. </td>
  651. </tr>
  652. <tr>
  653. <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
  654. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  655. Station Code
  656. </td>
  657. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  658. border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
  659. <asp:TextBox ID="txtStationCode" runat="server" CssClass="cagText" ReadOnly="True"
  660. Text='<%# Bind("StationCode") %>'></asp:TextBox>
  661. </td>
  662. </tr>
  663.  
  664. <tr>
  665. <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
  666. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  667. Haul Zone Code (LEM, 36)
  668. </td>
  669. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  670. border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
  671. <asp:TextBox ID="txtHaulZoneCodeLEM" runat="server" CssClass="cagText" ReadOnly="True"
  672. Text='<%# Bind("HaulZoneCodeLEM") %>'></asp:TextBox>
  673. </td>
  674. </tr>
  675. <tr>
  676. <td align="left" style="width: 100px; height: 12px; border-right: silver 1px solid;
  677. border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid;">
  678. Haul Zone Code (WIL, 94)
  679. </td>
  680. <td style="height: 12px; border-right: silver 1px solid; border-top: silver 1px solid;
  681. border-left: silver 1px solid; width: 100px; border-bottom: silver 1px solid;">
  682. <asp:TextBox ID="txtHaulZoneCodeWIL" runat="server" CssClass="cagText" ReadOnly="True"
  683. Text='<%# Bind("HaulZoneCodeWIL") %>'></asp:TextBox>
  684. </td>
  685. </tr>
  686. <tr>
  687. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  688. border-left: silver 1px solid; width: 101px; border-bottom: silver 1px solid;
  689. height: 12px">
  690. Crossing Acre
  691. </td>
  692. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  693. width: 46px; border-bottom: silver 1px solid; height: 12px">
  694. <asp:TextBox ID="txtCrossingAcres" runat="server" CssClass="cagText" ReadOnly="True"
  695. Text='<%# Bind("CrossingAcres") %>'></asp:TextBox>
  696. </td>
  697. </tr>
  698. <tr>
  699. <td align="left" style="border-right: silver 1px solid; border-top: silver 1px solid;
  700. border-left: silver 1px solid; width: 101px; border-bottom: silver 1px solid;
  701. height: 12px">
  702. Border Acres
  703. </td>
  704. <td style="border-right: silver 1px solid; border-top: silver 1px solid; border-left: silver 1px solid;
  705. width: 46px; border-bottom: silver 1px solid; height: 12px">
  706. <asp:TextBox ID="txtBorderAcres" runat="server" CssClass="cagText" ReadOnly="True"
  707. Text='<%# Bind("BorderAcres") %>'></asp:TextBox>
  708. </td>
  709. </tr>
  710. </table>
  711. &nbsp;&nbsp;<table align="center" bgcolor="#cccccc" border="0" cellpadding="5" cellspacing="1"
  712. width="600">
  713. <tbody>
  714. <tr>
  715. <td style="height: 75px" class="header1" align="right" width="100" bgcolor="#eeeeee">
  716. File to upload:
  717. </td>
  718. <td style="height: 75px" bgcolor="#ffffff">
  719. <asp:FileUpload ID="fileUpEx" runat="server"></asp:FileUpload>&nbsp;<br />
  720. <asp:Button ID="btnSubmit" OnClick="btnSubmit_Click" runat="server" Text="Submit">
  721. </asp:Button>
  722. <br />
  723. <asp:Label ID="lblStatus" runat="server"></asp:Label>
  724. <asp:LinkButton ID="lnkBtnViewImg" runat="server" OnClick="lnkBtnViewImg_Click">View Image</asp:LinkButton>
  725. </td>
  726. </tr>
  727. </tbody>
  728. </table>
  729. &nbsp;&nbsp;<br />
  730. <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit"
  731. Text="Edit" OnClick="EditButton_Click"></asp:LinkButton>
  732. <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" OnClick="Deletebutton_Click"
  733. Text="Delete"></asp:LinkButton>
  734. <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
  735. Text="New"></asp:LinkButton>
  736. <br />
  737. </ItemTemplate>
  738. <PagerSettings Mode="NextPreviousFirstLast" />
  739. <EmptyDataTemplate>
  740. <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" CommandName="New"
  741. Text="New"></asp:LinkButton>
  742. </EmptyDataTemplate>
  743. </asp:FormView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement