SysFNameModify.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:4k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SysFNameModify.aspx.cs" Inherits="SysManage_SysFNameModify" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5. <base target="_self" />
  6.     <link href="../Workflow/style/formbody.css" rel="Stylesheet" />
  7.     <title>文件管理</title>
  8.     <script type="text/javascript">
  9.         function CheckNull()
  10.         {
  11.             if (form1.TID.value==null || form1.TID.value=="")
  12.             {
  13.                 alert('系统提示:文件名不能为空!');
  14.                 return false;
  15.             }
  16.         }
  17.         function OKCancel()
  18.         {
  19.             if (confirm("系统提示:您确定放弃本次操作吗?")) 
  20.     {
  21.         window.close();
  22.     }
  23.     return false;
  24.         }
  25.         
  26.         function OpenShowWindowDoc()
  27. {
  28.             var NUrl ="../workflow/SysSelectDoc.aspx?StrN=N&StrM=" + escape( form1.tname.value);
  29.     var NVale=window.showModalDialog(NUrl,"","help=0;dialogWidth=800px;dialogHeight=550px;status=no;status=no;");
  30.     if (NVale!=undefined)
  31.             {
  32.                 form1.TID.value = NVale;
  33.                 form1.tname.value = NVale;
  34. //               var Vstr = NVale.split("|");
  35. //               var VValue,VText;
  36. //               if (Vstr.length==2)
  37. //               {    
  38. //                    DelAllItem(document.all.LstDoc);
  39. //                    var i=0;
  40. //                    VValue=Vstr[0].split(",");
  41. //                    VText=Vstr[1].split(",");
  42. //                    for(i=0;i<VValue.length-1;i++)
  43. //                    {
  44. //                        var oItem=document.createElement("option");
  45. //                     oItem.text=VText[i];
  46. //                     oItem.value=ReplaceBacksLash(VValue[i]);
  47. //                     document.all.LstDoc.add(oItem);
  48. //                    }
  49. //               }
  50.             }
  51.             return false;
  52. }
  53.     </script>
  54. </head>
  55. <body>
  56.     <form id="form1" runat="server">
  57.     <input id ="tname" type="hidden" runat ="server" />
  58.     <div>
  59.     <table width="100%">
  60.         <tr style="height:10px;">
  61.             
  62.         </tr>
  63.         <tr>
  64.             <td style="background-image:url(../images/toolbarbg.jpg); height:25;">
  65.             <img alt="" src="../Images/assignuser.ico" height="15" align="absmiddle"/>
  66.                  <strong>文件管理</strong>
  67.              </td>
  68.         </tr>
  69.     </table>
  70.     <table style="width:95%; left:10px;">
  71.         <tr style="height:10px;"></tr>
  72.         <tr>
  73.         <td style="width:10px"></td>
  74.         <td>
  75.         <fieldset>
  76.             <table>
  77.                 <tr>
  78.                     <td>
  79.                         文件名称:
  80.                     </td>
  81.                     <td>
  82.                         <asp:TextBox ID="TID" runat="server" MaxLength="40" Width="300px" Enabled="False"></asp:TextBox>
  83.                     </td>
  84.                     <td>
  85.                         <asp:ImageButton id="ImgSelect" runat="server" ImageUrl="../WORKFLOW/image/ch.gif" OnClientClick="javascript:return OpenShowWindowDoc();"></asp:ImageButton>
  86.                     </td>
  87.                 </tr>
  88.                 <tr>
  89.                     <td>
  90.                         文件描述:
  91.                     </td>
  92.                     <td>
  93.                         <asp:TextBox ID="TDesc" runat ="server" MaxLength="100" TextMode="multiLine" Rows="5" Width="300"></asp:TextBox>
  94.                     </td>
  95.                     <td></td>
  96.                 </tr>
  97.                 
  98.             </table>
  99.             </fieldset>
  100.             <table width="90%">
  101.                 <tr style="height:20px;"></tr>
  102.                 <tr>
  103.                     <td style="width:60px;height:20;">
  104.                     </td>
  105. <td style="height:22; text-align:right;">
  106. <asp:ImageButton id="ImgSave" runat="server" ImageUrl="~/Workflow/image/savebt.gif" OnClientClick ="javascript:return CheckNull();" OnClick="ImgSave_Click" ></asp:ImageButton>&nbsp;&nbsp;&nbsp;
  107. <asp:ImageButton id="ImgCancel" runat="server" ImageUrl="image/cancel.gif" OnClientClick="javascript:return OKCancel();"></asp:ImageButton>&nbsp;&nbsp;&nbsp;
  108. </td>
  109.                 </tr>
  110.             </table>
  111.             </td>
  112.             </tr>
  113.         </table>
  114.     </div>
  115.     </form>
  116. </body>
  117. </html>