RoadFlow2.1 临时演示

Body.aspx 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Body.aspx.cs" Inherits="WebForm.Platform.Members.Body" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title></title>
  7. </head>
  8. <body>
  9. <script type="text/javascript">
  10. var win = new RoadUI.Window();
  11. var validate = new RoadUI.Validate();
  12. </script>
  13. <form id="form1" runat="server">
  14. <table cellpadding="0" cellspacing="1" border="0" width="95%" class="formtable">
  15. <tr>
  16. <th style="width:80px;">名称:</th>
  17. <td><input type="text" id="Name" name="Name" class="mytext" validate="empty,minmax" runat="server" max="100" style="width:75%" /></td>
  18. </tr>
  19. <tr>
  20. <th style="width:80px;">类型:</th>
  21. <td><asp:Literal ID="TypeRadios" runat="server"></asp:Literal></td>
  22. </tr>
  23. <tr>
  24. <th style="width:80px;">状态:</th>
  25. <td><asp:Literal ID="StatusRadios" runat="server"></asp:Literal></td>
  26. </tr>
  27. <%if("1"!=Request.QueryString["type"]){%>
  28. <tr>
  29. <th style="width:100px;">分管领导:</th>
  30. <td><input type="text" class="mymember" runat="server" unit="0" dept="0" station="0" user="1" group="0" id="ChargeLeader" name="ChargeLeader" /></td>
  31. </tr>
  32. <tr>
  33. <th style="width:80px;">部门/岗位领导:</th>
  34. <td><input type="text" class="mymember" runat="server" unit="0" dept="0" station="0" user="1" group="0" id="Leader" name="Leader" /></td>
  35. </tr>
  36. <%}%>
  37. <tr>
  38. <th style="width:80px;">备注:</th>
  39. <td><textarea id="Note" name="Note" class="mytext" runat="server" style="width:90%; height:50px;"></textarea></td>
  40. </tr>
  41. <tr id="deptmove_tr" style="display:none;">
  42. <th style="width:80px;">移动到:</th>
  43. <td>
  44. <table cellpadding="0" cellspacing="1" border="0">
  45. <tr>
  46. <td><input type="text" style="width:220px;" class="mymember" id="deptmove" name="deptmove" more="false" user="false" station="true" dept="true" unit="true"/></td>
  47. <td><input type="submit" class="mybutton" onclick="return deptmove3();" name="Move1" value="确定移动" /></td>
  48. </tr>
  49. </table>
  50. </td>
  51. </tr>
  52. </table>
  53. <div style="width:95%; margin:10px auto 10px auto; text-align:center;">
  54. <input type="button" class="mybutton" onclick="window.location='BodyAdd.aspx'+'<%=Request.Url.Query%>';" value="添加单位/部门/岗位" id="addChild" />
  55. <input type="button" class="mybutton" onclick="window.location='UserAdd.aspx'+'<%=Request.Url.Query%>';" value="添加人员" id="addUser" />
  56. <input type="button" class="mybutton" value="移动" id="move" name="move" onclick="deptmove2();" />
  57. <input type="button" class="mybutton" value="排序" id="sort" onclick="sort1();" />
  58. <input type="submit" class="mybutton" onclick="return validate.validateForm(document.forms[0]);" name="Save" value="保存" />
  59. <input type="submit" class="mybutton" name="Delete" onclick="return confirm('您真的要删除该机构及其下级机构吗?');" value="删除" />
  60. </div>
  61. </form>
  62. <script type="text/javascript">
  63. var showType = '';
  64. $(function(){
  65. });
  66. function del()
  67. {
  68. return confirm('真的要删除吗?');
  69. }
  70. function deptmove3()
  71. {
  72. if ($.trim($("#deptmove").val()) == "")
  73. {
  74. alert("请选择要移动到的机构!");
  75. return false;
  76. }
  77. else if ($.trim($("#deptmove").val()) == '<%=Request.QueryString["id"]%>')
  78. {
  79. alert("不能将机构移动到自己!");
  80. return false;
  81. }
  82. return true;
  83. }
  84. function deptmove2()
  85. {
  86. $('#deptmove_tr').toggle();
  87. }
  88. function sort1()
  89. {
  90. window.location = 'Sort.aspx' + '<%=Request.Url.Query%>';
  91. }
  92. </script>
  93. </body>
  94. </html>