Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\ApplicationAttachment\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.ApplicationAttachment.Edit" %> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title> <%= this.Title%></title> <%= Import.Theme()%> <%= Import.Script("/jquery.1.9.js")%> </head> <body> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <% if (Request.UrlReferrer != null && Request.UrlReferrer.ToString().IndexOf("ListIFrame") == -1) { %> <div class="g-title-2"> <div class="ico-loading right hidden"> </div> <div title="<%= DefineEnum.?????????.Define().ToScriptTag()%>" class="ico-question right"> </div> <h3 class="txt-14"> <%= Title%></h3> <span class="txt-info">[<a href="#" onclick="GoList();return false;"><%= DefineEnum.???.Define()%></a>]</span> </div> <div class="ln-thick ln-c-mid"> </div> <% } %> <div class="subcontent"> <form id="frmApplicationAttachment" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr style='<%= IN(this.Application, "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationAttachment_ApplicationRecordEquipmentDomainName_??????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_ApplicationRecordEquipmentDomainName_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText(null, ViewData.Val("ParentRecordEquipment.ParentDomain.Name", this.Application)) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.Application, "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationAttachment_ApplicationRecordEquipmentDomainCode_??????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_ApplicationRecordEquipmentDomainCode_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText(null, ViewData.Val("ParentRecordEquipment.ParentDomain.Code", this.Application)) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.Application, "", "display:none;")%>'> <th title="<%= Define.Get("ApplicationAttachment_ApplicationRecordEquipmentName_?????????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_ApplicationRecordEquipmentName_?????????").HtmlEncode()%>?? </th> <td> <%= new HtmlText(null, ViewData.Val("ParentRecordEquipment.Name", this.Application)) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationAttachment_???????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_???????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("ParentApplication_Title", IN(this.Application, ViewData.Val("Title", this.Application))) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmApplicationAttachment [name=ParentApplication]","Edit");" }%> <%= new HtmlHidden("ParentApplication", ViewData.Val("Guid", this.Application))%> <a href="#selectApplication" class="decoration-none" onclick="return SelectApplication('#frmApplicationAttachment [name=ParentApplication]','#frmApplicationAttachment [name=ParentApplication_Title]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("ParentApplication")%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationAttachment_?????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_?????").HtmlEncode()%>?? </th> <td> <%--<%= new HtmlText("FileName", this.ViewData["_ApplicationAttachment.FileName"]) { ReadOnly = true, Class = "ipt-t ipt-t-dft " }%> <a href="#deleteFileName" class="delete-file decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadFileName" class="decoration-none" onclick="return UploadFile('#frmApplicationAttachment [name=FileName]','<%= Define.Get("ApplicationAttachment_FileName_??????????????")%>','1','<%= SettingGroup.ApplicationAttachmentUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> <%= new HtmlYKTip("FileName") %>--%> <%= new HtmlText("FileName", this.ViewData["_ApplicationAttachment.FileName"], 256) { Class = "ipt-t ipt-t-dft", Width = 400, ReadOnly = true }%> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("FileName")%> <br /> <div> <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = CreateInstance.DomainInfoDao.THIS().UploadFileType.ToUpper().Replace("*","").Replace(";",","), UploadControlName="??????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=*.*|*.*,SelectFiles=???????????,Upload=?????????" }.ToHtml()%> --%> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { $("#frmApplicationAttachment [Name=FileName]").val(fileName); $("#frmApplicationAttachment [Name=FileSize]").val(fileSize) } </script> </div> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationAttachment_??????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.ApplicationAttachmentFileTypeEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_ApplicationAttachment.FileType"])%> <%= new HtmlYKTip("FileType")%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationAttachment_??????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("FileSize", this.ViewData["_ApplicationAttachment.FileSize"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("FileSize")%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationAttachment_??????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_ApplicationAttachment.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%> </td> </tr> <tr> <th title="<%= Define.Get("ApplicationAttachment_?????").ToScriptTag()%>"> <%= Define.Get("ApplicationAttachment_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("ApplicationAttachment_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_ApplicationAttachment.SortNumber"], 4) { Class = "ipt-t ipt-t-dft ", DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber")%> </td> </tr> </table> </div> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th></th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_ApplicationAttachment"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_ApplicationAttachment"])%></span> </div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define()%></span> </div> </td> </tr> </table> </form> </div> </div> </div> </div> </body> </html> <%= Import.Script("/jquery-1.44.min.js")%> <%= Import.Script("js", "/JQueryUI/jquery-ui-1.8.9.custom.min.js")%> <%= Import.Script("js", "/XhEditor/xheditor-zh-cn.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("js", "/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("/SelectForm.js")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/ApplicationAttachmentAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmApplicationAttachment" }); //????? $("#frmApplicationAttachment [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("ApplicationAttachment_SortNumber_???????????").ToScriptChar()%>", regex: "<%= Define.Get("ApplicationAttachment_SortNumber_???????????").ToScriptChar()%>" } }); //??????? $("#frmApplicationAttachment [name=ParentApplication]").formValidator({ targetFocus: "#frmApplicationAttachment [name=ParentApplication_Title]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("ApplicationAttachment_ApplicationGuid_????????????").ToScriptChar()%>" } }); //????? $("#frmApplicationAttachment [name=FileName]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("ApplicationAttachment_FileName_????????").ToScriptChar()%>" } }); //?????? $("#frmApplicationAttachment [name=FileType]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("ApplicationAttachment_FileType_???????????").ToScriptChar()%>" } }); //?????? $("#frmApplicationAttachment [name=FileSize]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("ApplicationAttachment_FileSize_???????????").ToScriptChar()%>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { ApplicationAttachmentAjax.Insert($("#frmApplicationAttachment"), send, function (json) { document.getElementById("frmApplicationAttachment").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar()%>"); GoList(); }); }; //??? function Update(send) { ApplicationAttachmentAjax.Update($("#frmApplicationAttachment"), send, function (json) { document.getElementById("frmApplicationAttachment").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar()%>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmApplicationAttachment").KEY.value; ApplicationAttachmentAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??????????? //????? $("#frmApplicationAttachment [name=FileName]").siblings(".download-file").attr("href", Global.Site + "<%= SettingGroup.ApplicationAttachmentUploadPath + ViewData.Val("Guid", this.Application) + "/"%>" + $("#frmApplicationAttachment [name=FileName]").val()); </script> <script type="text/javascript"> //?????? <% if (Request.UrlReferrer != null && Request.UrlReferrer.ToString().IndexOf("ListIFrame") != -1) { %> function GoList() { window.location.href = "ListIFrame.aspx?ApplicationGuid=<%= ViewData.Val("Guid", this.Application)%>"; } <% } %> </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de