Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyShiXunAttachmentEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectAttachmentEdit" %> <%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorkNavItem.??????, Subject = this.Subject }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title"><%= Define.Get("Client_??????")%>??????</span> <span class="f_r"> </span> </div> <div class="userInput body"> <form id="frmSubjectAttachmentEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"><span class="required">*</span>?????</span></td> <td> <%= new HtmlText("FileName", this.ViewData["_SubjectAttachment.FileName"]) { ReadOnly = true }%> <%= new HtmlYKTip("FileName")%> <div> <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = CreateInstance.DomainInfoDao.THIS().UploadFileType.ToUpper().Replace("*","").Replace(";",","), UploadControlName="??????"}.ToHtml()%> <%--<%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=?????????(" + CreateInstance.DomainInfoDao.THIS().UploadFileType + ")|" + CreateInstance.DomainInfoDao.THIS().UploadFileType + ",DefaultColor=#F5F5F5F5,SelectFiles=???????????,Upload=?????????" }.ToHtml()%>--%> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { $("#frmSubjectAttachmentEdit [Name=FileName]").val(fileName); $("#frmSubjectAttachmentEdit [Name=FileSize]").val(fileSize) } </script> </div> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectAttachmentFileTypeEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_SubjectAttachment.FileType"])%> <%= new HtmlYKTip("FileType")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("FileSize", this.ViewData["_SubjectAttachment.FileSize"]) { ReadOnly = true }%> <%= new HtmlYKTip("FileSize")%> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_SubjectAttachment.Description"], 2000)%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>??????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_SubjectAttachment.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber")%> </td> </tr> <tr> <td class="label-td"></td> <td></td> </tr> <tr> <td class="label-td"></td> <td> <%= new HtmlHidden("Key", this.KEY)%> <%= new HtmlHidden("ParentSubject", this.Subject.Guid)%> <%= new HtmlSubmit(IN(this.ViewData["_SubjectAttachment"], "??????", "??????"), "SubjectAttachmentEdit", "SubjectAttachmentEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "SubjectAttachmentEdit", form: "#frmSubjectAttachmentEdit", alertMessage: true, showMessage: false }); //<%= Define.Get("Client_??????")%>?????? $("#frmSubjectAttachmentEdit [name=FileName]").formValidator({ validatorGroup: "SubjectAttachmentEdit", rules: { required: null }, message: { required: "?????<%= Define.Get("Client_??????")%>??????" } }); //?????? $("#frmSubjectAttachmentEdit [name=FileSize]").formValidator({ validatorGroup: "SubjectAttachmentEdit", rules: { regex: "num1" }, message: { regex: "?????<%= Define.Get("Client_??????")%>?????????" } }); //?????? $("#frmSubjectAttachmentEdit [name=FileType]").formValidator({ validatorGroup: "SubjectAttachmentEdit", rules: { required: null }, message: { required: "???????????" } }); //????? $("#frmSubjectAttachmentEdit [name=SortNumber]").formValidator({ validatorGroup: "SubjectAttachmentEdit", rules: { required: null, regex: "num1" }, message: { required: "???????????", regex: "???????????" } }); </script> <script type="text/javascript"> function SubjectAttachmentEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectAttachmentEdit", data: Global.GetFormValue($("#frmSubjectAttachmentEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= IN(this.ViewData["_SubjectAttachment"], "??????", "??????")%>'); flash('<%= IN(this.ViewData["_SubjectAttachment"], "?????????", "?????????")%>'); Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('<%= IN(this.ViewData["_SubjectAttachment"], "?????????...", "?????????...")%>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= IN(this.ViewData["_SubjectAttachment"], "??????", "??????")%>'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de