ManageSchedule.aspx
上传用户:tree100901
上传日期:2007-06-03
资源大小:2295k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Register TagPrefix="uc1" TagName="Mymenu" Src="MENU/Mymenu.ascx" %>
  2. <%@ Page language="c#" Codebehind="ManageSchedule.aspx.cs" AutoEventWireup="false" Inherits="OA.ManageSchedule" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <HTML>
  5. <HEAD>
  6. <title>MySenderMessage</title>
  7. <style type="text/css">TABLE { FONT-SIZE: 9pt }
  8. BODY { FONT-SIZE: 9pt }
  9. </style>
  10. <LINK href="baseStyle.css" type="text/css" rel="stylesheet">
  11. <LINK href="MENU/menuStyle.css" type="text/css" rel="stylesheet">
  12. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  13. <meta content="C#" name="CODE_LANGUAGE">
  14. <meta content="JavaScript" name="vs_defaultClientScript">
  15. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  16. </HEAD>
  17. <body topMargin="5" oncontextmenu='return false'>
  18. <form id="Form1" method="post" runat="server">
  19. <uc1:mymenu id="Mymenu1" runat="server" MenuData="MENU/MenuData.xml"></uc1:mymenu>
  20. <TABLE id="Table1" style="Z-INDEX: 103; LEFT: 8px; POSITION: static; TOP: 100px" cellSpacing="1"
  21. cellPadding="1" width="100%" border="1">
  22. <TR>
  23. <TD style="HEIGHT: 30px" vAlign="middle" align="right" width="100%"><asp:label id="stats" runat="server"></asp:label></TD>
  24. </TR>
  25. <TR>
  26. <TD vAlign="top"><asp:datagrid id="MyDataGrid" runat="server" Width="100%" OnItemCreated="MyDataGrid_ItemCreated"
  27. OnDeleteCommand="MyDataGrid_Delete" PagerStyle-PrevPageText="<< 上页" PagerStyle-NextPageText="下页 >>" PagerStyle-HorizontalAlign="Right"
  28. ItemStyle-CssClass="normal" HeaderStyle-HorizontalAlign="center" AlternatingItemStyle-BackColor="#f0f8ff"
  29. HeaderStyle-BackColor="#d0d8df" OnPageIndexChanged="MyDataGrid_PageIndexChanged" PageSize="4" AllowPaging="True"
  30. OnSortCommand="MyDataGrid_Sort" AllowSorting="true" AutoGenerateColumns="False" DataKeyField="ScheduleID"
  31. OnItemDataBound="MyDataGrid_ItemDataBound">
  32. <AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle>
  33. <ItemStyle CssClass="normal"></ItemStyle>
  34. <HeaderStyle HorizontalAlign="Center" BorderStyle="Outset" BackColor="#D0D8DF"></HeaderStyle>
  35. <Columns>
  36. <asp:BoundColumn DataField="Contents" SortExpression="Contents" HeaderText="日程计划">
  37. <HeaderStyle Width="8%"></HeaderStyle>
  38. </asp:BoundColumn>
  39. <asp:BoundColumn DataField="PlanTime" SortExpression="PlanTime" HeaderText="预定时间" DataFormatString="{0:MM-dd hh:mm}">
  40. <HeaderStyle Width="10%"></HeaderStyle>
  41. </asp:BoundColumn>
  42. <asp:BoundColumn DataField="Date" SortExpression="Date" HeaderText="编制时间" DataFormatString="{0:MM-dd hh:mm}">
  43. <HeaderStyle Width="10%"></HeaderStyle>
  44. </asp:BoundColumn>
  45. <asp:BoundColumn DataField="PersonID" SortExpression="PersonID" HeaderText="制作人">
  46. <HeaderStyle Width="8%"></HeaderStyle>
  47. </asp:BoundColumn>
  48. <asp:TemplateColumn SortExpression="Result" HeaderText="计划状态">
  49. <HeaderStyle Width="15%"></HeaderStyle>
  50. <ItemTemplate>
  51. <asp:RadioButton id=rb_0 runat="server" Text="未" Checked='<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Result"))==0?true:false %>' GroupName="iSign">
  52. </asp:RadioButton>
  53. <asp:RadioButton id=rb_1 runat="server" Text="已" Checked='<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Result"))==1?true:false %>' GroupName="iSign">
  54. </asp:RadioButton>
  55. <asp:RadioButton id=rb_2 runat="server" Text="消" Checked='<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"Result"))==2?true:false %>' GroupName="iSign">
  56. </asp:RadioButton>
  57. </ItemTemplate>
  58. </asp:TemplateColumn>
  59. <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
  60. <HeaderStyle Width="8%"></HeaderStyle>
  61. </asp:ButtonColumn>
  62. <asp:BoundColumn DataField="ScheduleID" Visible="False"></asp:BoundColumn>
  63. </Columns>
  64. <PagerStyle NextPageText="下页 &gt;&gt;" PrevPageText="&lt;&lt; 上页" HorizontalAlign="Right"></PagerStyle>
  65. </asp:datagrid>
  66. </TD>
  67. </TR>
  68. </TABLE>
  69. </form>
  70. </body>
  71. </HTML>