Listview.aspx
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Flow.Listview" %>
  2. <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>Listview</title>
  7. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  8. <meta content="C#" name="CODE_LANGUAGE">
  9. <meta content="JavaScript" name="vs_defaultClientScript">
  10. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  12. <script language="javascript">
  13. function delete_confirm(e) {
  14. if (event.srcElement.outerText == "删除")
  15. event.returnValue =confirm("您确认要删除?");
  16. }
  17. document.onclick=delete_confirm;
  18. </script>
  19. </HEAD>
  20. <body leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="GridLayout">
  21. <form id="Listview" method="post" runat="server">
  22. <FONT face="宋体">
  23. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  24. <tr>
  25. <td vAlign="top" height="38"><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  26. <TR height="30">
  27. <TD class="GbText" width="20" background="../../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  28. align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../../DataImages/DocFlow.gif" width="16"></FONT></TD>
  29. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  30. align="right"><font color="#006699">文档流转</font></TD>
  31. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体"><asp:button id="cmdNewFlow" runat="server" CssClass="redbuttoncss" Height="21px" Text="新建流程"
  32. Width="66px"></asp:button>&nbsp;&nbsp; <FONT face="宋体">
  33. <asp:button id="cmdDeleteFlow" runat="server" CssClass="redbuttoncss" Height="20px" Text="删除流程"
  34. Width="69px"></asp:button>&nbsp; </FONT>
  35. <asp:button id="cmdManageStyle" runat="server" CssClass="redbuttoncss" Text="表单管理"></asp:button>&nbsp;</FONT></TD>
  36. </TR>
  37. </TABLE>
  38. </td>
  39. </tr>
  40. <TR>
  41. <TD>
  42. <TABLE class="gbtext" id="Table3" height="24" cellSpacing="0" cellPadding="0" width="100%"
  43. border="0">
  44. <TR>
  45. <TD align="center" width="90" background="../../../Images/maillistbutton1.gif">&nbsp;
  46. <asp:linkbutton id="lbMyApprove" runat="server"  CssClass=Newbutton>我的批阅</asp:linkbutton></TD>
  47. <TD align="center" width="90" background="../../../Images/maillistbutton1.gif">&nbsp;
  48. <asp:linkbutton id="LinkButton1" runat="server"  CssClass=Newbutton>我的申请</asp:linkbutton></TD>
  49. <TD align="center" width="90" background="../../../Images/maillistbutton1.gif">&nbsp;
  50. <asp:linkbutton id="lbMyApproved" runat="server"  CssClass=Newbutton>已经批阅</asp:linkbutton></TD>
  51. <TD align="center" width="90" background="../../../Images/maillistbutton1.gif">&nbsp;
  52. <asp:linkbutton id="lbMyDraft" runat="server"  CssClass=Newbutton>拟稿箱</asp:linkbutton></TD>
  53. <%if(bManageFlow==true){%>
  54. <TD align="center" width="90" background="../../../Images/maillistbutton2.gif">&nbsp;
  55. <asp:linkbutton id="lbManageFlow" runat="server"  CssClass=Newbutton>流程管理</asp:linkbutton></TD>
  56. <%} else {%>
  57. <TD align="right">&nbsp;&nbsp;<FONT face="宋体">&nbsp;</FONT></TD>
  58. <%}%>
  59. <TD align="right">&nbsp;&nbsp;<FONT face="宋体">&nbsp;</FONT></TD>
  60. </TR>
  61. </TABLE>
  62. </TD>
  63. </TR>
  64. <TR>
  65. <TD>
  66. <asp:DataGrid id="dgFlowList" runat="server" Width="100%" AutoGenerateColumns="False" AllowSorting="True"
  67. AllowPaging="True" Font-Size="X-Small" OnPageIndexChanged="DataGrid_PageChanged" BorderColor="#93BEE2"
  68. BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="4" PageSize="15" DataKeyField="Flow_ID"
  69. OnDeleteCommand="MyDataGrid_Delete">
  70. <SelectedItemStyle ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  71. <AlternatingItemStyle Font-Size="X-Small" BackColor="#E8F4FF"></AlternatingItemStyle>
  72. <ItemStyle Font-Size="X-Small" ForeColor="#003399" BackColor="White"></ItemStyle>
  73. <HeaderStyle HorizontalAlign="Left" ForeColor="White" VerticalAlign="Middle"
  74. BackColor="#337FB2"></HeaderStyle>
  75. <FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
  76. <Columns>
  77. <asp:TemplateColumn HeaderText="ID">
  78. <HeaderStyle Width="2%"></HeaderStyle>
  79. <ItemTemplate>
  80. <asp:CheckBox id="FlowID" runat="server"></asp:CheckBox>
  81. </ItemTemplate>
  82. </asp:TemplateColumn>
  83. <asp:HyperLinkColumn DataNavigateUrlField="Flow_ID" DataNavigateUrlFormatString="ManageFlow.aspx?FlowID={0}"
  84. DataTextField="Flow_Name" HeaderText="流程名">
  85. <HeaderStyle Font-Size="X-Small" Width="15%"></HeaderStyle>
  86. <ItemStyle Font-Size="X-Small"></ItemStyle>
  87. </asp:HyperLinkColumn>
  88. <asp:BoundColumn DataField="Remark" HeaderText="流程简介">
  89. <HeaderStyle Width="30%"></HeaderStyle>
  90. </asp:BoundColumn>
  91. <asp:TemplateColumn HeaderText="流程图例">
  92. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  93. <ItemStyle HorizontalAlign="Center">
  94. </ItemStyle>
  95. <ItemTemplate>
  96. <a href ="DisplayFlow.aspx?FlowID=<%#DataBinder.Eval(Container,"DataItem.Flow_ID")%>">图例</a>
  97. </ItemTemplate>
  98. </asp:TemplateColumn>
  99. <asp:HyperLinkColumn DataNavigateUrlField="Style_ID" DataNavigateUrlFormatString="DisplayStyle.aspx?StyleID={0}"
  100. DataTextField="Style_Name" HeaderText="表格/附件">
  101. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  102. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  103. </asp:HyperLinkColumn>
  104. <asp:BoundColumn DataField="Build_Date" HeaderText="建立时间">
  105. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  106. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  107. </asp:BoundColumn>
  108. <asp:TemplateColumn HeaderText="编辑">
  109. <HeaderStyle HorizontalAlign="Center" Width="6%"></HeaderStyle>
  110. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  111. <ItemTemplate>
  112. <a href ='EditFlow.aspx?FlowID=<%# DataBinder.Eval(Container, "DataItem.Flow_ID") %>'>
  113. 编辑</a>
  114. </ItemTemplate>
  115. <EditItemTemplate>
  116. </EditItemTemplate>
  117. </asp:TemplateColumn>
  118. <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
  119. <HeaderStyle HorizontalAlign="Center" Width="6%"></HeaderStyle>
  120. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  121. </asp:ButtonColumn>
  122. </Columns>
  123. <PagerStyle NextPageText="" HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF"
  124. Mode="NumericPages"></PagerStyle>
  125. </asp:DataGrid></TD>
  126. </TR>
  127. </TABLE>
  128. </FONT>
  129. </form>
  130. </body>
  131. </HTML>