Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\RecordEquipmentReject\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipmentReject.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.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml() %> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <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="Inport.aspx"><%= Define.Get("RecordEquipmentReject_??????").HtmlEncode() %></a>]</span> <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="frmRecordEquipmentReject" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr style='<%= IN(this.ViewData["_RecordEquipmentReject"], "", "display:none;")%>'> <th title="<%= Define.Get("RecordEquipmentReject_RecordEquipmentDomainName_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_RecordEquipmentDomainName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_RecordEquipmentReject.ParentRecordEquipment.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_RecordEquipmentReject"], "", "display:none;")%>'> <th title="<%= Define.Get("RecordEquipmentReject_RecordEquipmentDomainCode_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_RecordEquipmentDomainCode_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_RecordEquipmentReject.ParentRecordEquipment.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipmentReject_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentRecordEquipmentName", this.ViewData["_RecordEquipmentReject.ParentRecordEquipment.Name"]) { ReadOnly = true, OnChange = "GetTimeRange();", Class = "ipt-t ipt-t-dft", Disabled = Has(this.ViewData["_RecordEquipmentReject"]) }%> <% if (Has(this.ViewData["_RecordEquipmentReject"]) == false) { %> <%= new HtmlHidden("ParentRecordEquipment", this.ViewData["_RecordEquipmentReject.ParentRecordEquipment.Guid"]) { OnChange = "GetTimeRange();" }%> <a href="#selectRecordEquipment" class="decoration-none" onclick="return SelectRecordEquipment('#frmRecordEquipmentReject [name=ParentRecordEquipment]','#frmRecordEquipmentReject [name=ParentRecordEquipmentName]')"> <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("ParentRecordEquipment") %> <% } %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipmentReject_???????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentUser_TrueName_UserName", IN(this.ParentUser, this.ParentUser.TrueName + "[" + this.ParentUser.UserName + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmRecordEquipmentReject [name=ParentUser]","Edit");" }%> <%= new HtmlHidden("ParentUser", IN(this.ParentUser, this.ParentUser.Guid))%> <a href="#selectUser" class="decoration-none" onclick="return SelectUser('#frmRecordEquipmentReject [name=ParentUser]','#frmRecordEquipmentReject [name=ParentUser_TrueName_UserName]')"> <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("ParentUser") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipmentReject_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ApplicationDate", this.ViewData["_RecordEquipmentReject.ApplicationDate"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime ", OnChange = "GetTimeRange();", Disabled = Has(this.ViewData["_RecordEquipmentReject"]) }%> <%= new HtmlYKTip("ApplicationDate") %> </td> </tr> <% if (Has(this.ViewData["_RecordEquipmentReject"])) { %> <tr> <th title="<%= Define.Get("RecordEquipmentReject_???????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_???????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("StartTime", this.ViewData["_RecordEquipmentReject.StartTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft ", ReadOnly = true, Disabled = true }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipmentReject_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("EndTime", this.ViewData["_RecordEquipmentReject.EndTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft ", ReadOnly = true, Disabled = true }%> </td> </tr> <% } else { %> <tr> <th title="<%= Define.Get("ApplicationTimeSetting_????????").ToScriptTag() %>"> <%= Define.Get("ApplicationTimeSetting_????????").HtmlEncode()%>?? </th> <td> <div id="divTimeRange"> <%= Define.Get("ApplicationTimeSetting_????????????????????").HtmlEncode()%> </div> </td> </tr> <% } %> <tr> <th title="<%= Define.Get("RecordEquipmentReject_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipmentReject_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_RecordEquipmentReject.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </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> <% if (Has(this.ViewData["_RecordEquipmentReject"]) == false) { %> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_RecordEquipmentReject"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_RecordEquipmentReject"])%></span></div> <% } %> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </div> </div> </div> </div> </div></div></div></div></body> <%= Import.Script("js","/JQueryUI/jquery-ui.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/RecordEquipmentRejectAjax.js")%> <% if (Has(this.ViewData["_RecordEquipmentReject"]) == false) { %> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmRecordEquipmentReject" }); //?????? $("#frmRecordEquipmentReject [name=ParentRecordEquipment]").formValidator({ targetFocus : "#frmRecordEquipmentReject [name=ParentRecordEquipment_Name]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("RecordEquipmentReject_RecordEquipmentGuid_???????????").ToScriptChar() %>" } }); // //??????? // $("#frmRecordEquipmentReject [name=ParentUser]").formValidator({ // targetFocus : "#frmRecordEquipmentReject [name=ParentUser_TrueName_UserName]", // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("RecordEquipmentReject_UserGuid_????????????").ToScriptChar() %>" // } // }); //?????? $("#frmRecordEquipmentReject [name=ApplicationDate]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "date" }, message: { required: "<%= Define.Get("RecordEquipmentReject_ApplicationDate_???????????").ToScriptChar() %>", regex: "<%= Define.Get("RecordEquipmentReject_ApplicationDate_??????????????").ToScriptChar() %>" } }); // //??????? // $("#frmRecordEquipmentReject [name=StartTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "date" // }, // message: // { // required: "<%= Define.Get("RecordEquipmentReject_StartTime_????????????").ToScriptChar() %>", // regex: "<%= Define.Get("RecordEquipmentReject_StartTime_??????????????").ToScriptChar() %>" // } // }); // //?????? // $("#frmRecordEquipmentReject [name=EndTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "date" // }, // message: // { // required: "<%= Define.Get("RecordEquipmentReject_EndTime_???????????").ToScriptChar() %>", // regex: "<%= Define.Get("RecordEquipmentReject_EndTime_??????????????").ToScriptChar() %>" // } // }); </script> <% } %> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { RecordEquipmentRejectAjax.Insert($("#frmRecordEquipmentReject"), send, function (json) { document.getElementById("frmRecordEquipmentReject").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { RecordEquipmentRejectAjax.Update($("#frmRecordEquipmentReject"), send, function (json) { document.getElementById("frmRecordEquipmentReject").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmRecordEquipmentReject").KEY.value; RecordEquipmentRejectAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??????????? </script> <script type="text/javascript"> //?????? function GetTimeRange() { if($("#divTimeRange").length >0) { var recordEquipmentGuid = $("#frmRecordEquipmentReject [Name=ParentRecordEquipment]").val(); var applicationDate = $("#frmRecordEquipmentReject [Name=ApplicationDate]").val(); if (recordEquipmentGuid != null && recordEquipmentGuid != "" && applicationDate != null && applicationDate != "") { $("#divTimeRange").html("?????????????????") var params = ""; params += "IssueDate=" + encodeURIComponent(applicationDate); params += "&RecordEquipmentGuid=" + encodeURIComponent(recordEquipmentGuid); Global.HtmlControl("/Pub/ApplicationTimeSetting/TimeRangeRejectTemp", params, null, function (result) { $("#divTimeRange").html(result.Html); }); } else { $("#divTimeRange").html("<%= Define.Get("ApplicationTimeSetting_????????????????????").ToScriptChar()%>"); } } } $(function () { $("#frmRecordEquipmentReject [Name=ParentRecordEquipment]").parent().find(".select-clear").bind("click", function () { GetTimeRange() }); GetTimeRange(); $("#frmRecordEquipmentReject [Name=ApplicationDate]").datepicker( { minDate: 0, onClose:function(){ $.validator.itemValid("#frmRecordEquipmentReject [name=ApplicationDate]","Edit");} }); }) </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de