Advertisement
driftboatdave

TryOutSteps.aspx

Jan 16th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 8.17 KB | None | 0 0
  1. <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TryOutSteps.aspx.cs" Inherits="PCS2.Forms.TryOutSteps" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  3.  
  4.     here is listview
  5.  
  6.  
  7.     <br /><br />
  8.     Product: <asp:DropDownList ID="ProductTypesDrop" runat="server" CssClass="span6" AutoPostBack="true" ></asp:DropDownList>
  9. <br />
  10.     <br />
  11.     Location:  <asp:DropDownList ID="LocationDrop" runat="server" CssClass="span6" AutoPostBack="true" ></asp:DropDownList>
  12.  
  13.     <br />
  14.     <br />
  15.  
  16.     <asp:TextBox ID="TryOutText" runat="server">1</asp:TextBox><br />
  17.  
  18.  
  19.  
  20.           <asp:ListView ID="TryOutStepList" runat="server" DataKeyNames="TryOutStepID"
  21.                OnDataBound="TryOutStepList_DataBound"  
  22.               OnItemInserting="TryOutStepList_ItemInserting"
  23.               OnItemUpdating="TryOutStepList_ItemUpdating"
  24.                 OnItemDeleting ="TryOutStepList_ItemDeleting"
  25.                OnItemEditing="TryOutStepList_ItemEditing"
  26.                OnItemCanceling="TryOutStepList_ItemCanceling"
  27.               InsertItemPosition="LastItem">
  28.  
  29.             <LayoutTemplate>
  30.                 <table runat="server" id="table1"  class="table">
  31.                     <tr runat="server" id="itemPlaceholder"></tr>
  32. <%--                    <tr><td colspan="5">
  33.                         <asp:LinkButton Text="Click here to add a new Step" ID="lnkNew" runat="server" Font-Bold="true" OnClick="NewItem"></asp:LinkButton>
  34.                         </td></tr>--%>
  35.                 </table>
  36.             </LayoutTemplate>
  37.             <ItemTemplate>
  38.                 <tr runat="server">
  39.                     <td>
  40.                         <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" />
  41.                         <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
  42.                     </td>
  43.  
  44.                     <td runat="server">
  45.                         <asp:Label ID="ProcessLabel" runat="server" Text='<%#Eval("ProcessDesc") %>'></asp:Label>
  46.                     </td>
  47.                     <td runat="server">
  48.                         <asp:Label ID="StepOrderLabel" runat="server" Text='<%#Eval("StepOrder") %>'></asp:Label>
  49.                     </td>
  50.                     <td runat="server">
  51.                         <asp:Label ID="DescriptionLabel" runat="server" Text='<%#Eval("Description") %>'></asp:Label>
  52.                     </td>
  53.                     <td runat="server">
  54.                         <asp:Label ID="StepTypeLabel" runat="server" Text='<%#Eval("StepTypeDesc") %>'></asp:Label>
  55.                     </td>
  56.                     <td></td>
  57.                 </tr>
  58.             </ItemTemplate>
  59.             <LayoutTemplate>
  60.                 <table runat="server">
  61.                     <tr runat="server">
  62.                         <td runat="server">
  63.                             <table id="itemPlaceholderContainer" runat="server" border="0" style="">
  64.                                 <tr runat="server" style="">
  65.                                     <th runat="server"></th>
  66.                                     <th runat="server">Process</th>
  67.                                     <th runat="server">Step Order</th>
  68.                                     <th runat="server">Description</th>
  69.                                     <th runat="server">Step Type</th>
  70.                                 </tr>
  71.                                 <tr runat="server" id="itemPlaceholder">
  72.                                 </tr>
  73.                             </table>
  74.                         </td>
  75.                     </tr>
  76.                     <tr runat="server">
  77.                         <td runat="server" style=""></td>
  78.                     </tr>
  79.                 </table>
  80.             </LayoutTemplate>
  81.  
  82.  
  83.               <EditItemTemplate>
  84.  
  85.                   <tr>
  86.                     <td>
  87.                         <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />
  88.                         <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
  89.                     </td>
  90.  
  91.                       <td valign="top">
  92.                           <asp:DropDownList ID="ProcessDropEdit" runat="server"></asp:DropDownList>
  93.                       </td>
  94.                       <td>
  95.                           <asp:TextBox ID="StepOrderTextEdit" runat="server" Text='<%#Bind("StepOrder") %>'></asp:TextBox>
  96.                       </td>
  97.                       <td>
  98.                           <asp:TextBox ID="DescriptionTextEdit" runat="server" Text='<%#Bind("Description") %>'></asp:TextBox>
  99.                       </td>
  100.                       <td>
  101.                           <asp:DropDownList ID="StepTypeDropEdit" runat="server"></asp:DropDownList>
  102.                       </td>
  103.                   </tr>
  104.               </EditItemTemplate>
  105.               <InsertItemTemplate>
  106.                   <tr style="background-color:aliceblue">
  107.                     <td>
  108.                         <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
  109.                         <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
  110.                     </td>
  111.  
  112.                       <td valign="top">
  113.                           <asp:DropDownList ID="ProcessDropIns" runat="server"></asp:DropDownList>
  114.                       </td>
  115.                       <td>
  116.                           <asp:TextBox ID="StepOrderTextIns" runat="server" Text='<%#Bind("StepOrder") %>'></asp:TextBox>
  117.                       </td>
  118.                       <td>
  119.                           <asp:TextBox ID="DescriptionTextIns" runat="server" Text='<%#Bind("Description") %>'></asp:TextBox>
  120.                       </td>
  121.                       <td>
  122.                           <asp:DropDownList ID="StepTypeDropIns" runat="server"></asp:DropDownList>
  123.                       </td>
  124.                   </tr>
  125.  
  126.               </InsertItemTemplate>
  127.           </asp:ListView>
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. <%--
  140.  
  141.     <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1"></asp:ListView>
  142.     <asp:TextBox ID="TryOutIDText" runat="server">1</asp:TextBox>
  143.     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>"
  144.         SelectCommand="GetTryOutStep" DeleteCommand="DELETE FROM TryOutStep WHERE (TryOutStepID = @TryOutStepID)"
  145.         InsertCommand="InsertTryOutStep" InsertCommandType="StoredProcedure" SelectCommandType="StoredProcedure"
  146.         UpdateCommand="UpdateTryOutStep" UpdateCommandType="StoredProcedure">
  147.         <DeleteParameters>
  148.             <asp:Parameter Name="TryOutStepID" />
  149.         </DeleteParameters>
  150.         <InsertParameters>
  151.             <asp:Parameter Direction="InputOutput" Name="TryOutStepID" Type="Int32" />
  152.             <asp:Parameter Name="TryOutID" Type="Int32" />
  153.             <asp:Parameter Name="StepOrder" Type="Int16" />
  154.             <asp:Parameter Name="CreatedBy" Type="String" />
  155.             <asp:Parameter Name="ModifiedBy" Type="String" />
  156.             <asp:Parameter Name="Description" Type="String" />
  157.             <asp:Parameter Name="BOMID" Type="Int32" />
  158.             <asp:Parameter Name="ProcessID" Type="Int32" />
  159.             <asp:Parameter Name="StepTypeID" Type="Int32" />
  160.             <asp:Parameter Name="TestID" Type="Int32" />
  161.         </InsertParameters>
  162.         <SelectParameters>
  163.             <asp:FormParameter DefaultValue="1" FormField="TryOutIDText" Name="TryOutID" Type="Int32" />
  164.             <asp:Parameter Name="TryOutStepID" Type="Int32" />
  165.         </SelectParameters>
  166.         <UpdateParameters>
  167.             <asp:Parameter Name="TryOutStepID" Type="Int32" />
  168.             <asp:Parameter Name="StepOrder" Type="Int16" />
  169.             <asp:Parameter Name="ModifiedBy" Type="String" />
  170.             <asp:Parameter Name="Description" Type="String" />
  171.             <asp:Parameter Name="BOMID" Type="Int32" />
  172.             <asp:Parameter Name="ProcessID" Type="Int32" />
  173.             <asp:Parameter Name="StepTypeID" Type="Int32" />
  174.             <asp:Parameter Name="TestID" Type="Int32" />
  175.         </UpdateParameters>
  176.     </asp:SqlDataSource>--%>
  177.  
  178.  
  179.  
  180. </asp:Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement