Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\Application\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Application.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="#" onclick="GoList();return false;"><%= DefineEnum.???.Define() %></a>]</span> <span class="txt-info">[<a href="InportEdit.aspx">??????</a>]</span> </div> <div class="gWel-tab"> <div class="tabs txt-link"> <ul> <li>?????????</li> <% if (Has(this.ViewData["_Application"])) { %> <li>?????? </li> <li>?????? </li> <li>?????? </li> <% } %> </ul> </div> <div class="pans"> <div style="display: none;" class="panel"> <div> <form id="frmApplication" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("Application_???????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Application_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentUser_TrueName_UserName", IN(this.ViewData["_Application"], this.ViewData["_Application.ParentUser.TrueName"] + "[" + this.ViewData["_Application.ParentUser.UserName"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmApplication [name=ParentUser]","Edit");" }%> <%= new HtmlHidden("ParentUser", this.ViewData["_Application.ParentUser.Guid"])%> <a href="#selectUser" class="decoration-none" onclick="return SelectUser('#frmApplication [name=ParentUser]','#frmApplication [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 style='<%= IN(this.ViewData["_Application"], "", "display:none;")%>'> <th title="<%= Define.Get("Application_RecordEquipmentDomainName_??????").ToScriptTag() %>"> <%= Define.Get("Application_RecordEquipmentDomainName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Application.ParentRecordEquipment.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_Application"], "", "display:none;")%>'> <th title="<%= Define.Get("Application_RecordEquipmentDomainCode_??????").ToScriptTag() %>"> <%= Define.Get("Application_RecordEquipmentDomainCode_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Application.ParentRecordEquipment.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <% if (Has(this.ViewData["_Application"]) == false) { %> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <% foreach (var recordEquipment in this.ListRecordEquipment) { %> <label for="recordEquipment<%= recordEquipment.Guid %>"> <%--<%= new HtmlCheckBox("ParentRecordEquipment", recordEquipment.Guid, "") { ID="recordEquipment"+ recordEquipment.Guid, OnChange="GetTimeRange();" }%>--%> <%= new HtmlRadio("ParentRecordEquipment", recordEquipment.Guid,"") { ID="recordEquipment"+ recordEquipment.Guid, OnChange="GetTimeRange();" } %> <%= new HtmlSpan(recordEquipment.Name) { TextLength=9 ,Suffix="..." }%><%--(<%= recordEquipment.IPAddress %>)--%> </label> <% } %> <%= new HtmlYKTip("ParentRecordEquipment") %> </td> </tr> <% } else { %> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentRecordEquipmentName", Has(this.ViewData["_Application.ParentRecordEquipment"]) ? this.ViewData["_Application.ParentRecordEquipment.Name"] : (this.RecordEquipment != null ? this.RecordEquipment.Name : "")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", Disabled = Has(this.ViewData["_Application"]) }%> <% if (Has(this.ViewData["_Application"]) == false) { %> <%= new HtmlHidden("ParentRecordEquipment", Has(this.ViewData["_Application.ParentRecordEquipment"]) ? this.ViewData["_Application.ParentRecordEquipment.Guid"] : (this.RecordEquipment != null ? this.RecordEquipment.Guid : "")) { OnChange = "GetTimeRange();" }%> <a href="#selectRecordEquipment" class="decoration-none" onclick="return SelectRecordEquipment('#frmApplication [name=ParentRecordEquipment]','#frmApplication [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("Application_??????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ApplicationDate", this.ViewData["_Application.ApplicationDate"].ToDateTimeN().ToShortDate()) { Class = "ipt-t ipt-t-dft date ", ReadOnly = Has(this.ViewData["_Application"]), Disabled = Has(this.ViewData["_Application"]), OnChange = "GetTimeRange();" }%> <%= new HtmlYKTip("ApplicationDate") %> </td> </tr> <% if (Has(this.ViewData["_Application"])) { %> <tr> <th title="<%= Define.Get("Application_???????").ToScriptTag() %>"> <%= Define.Get("Application_???????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("StartTime", this.ViewData["_Application.StartTime"].ToDateTimeN().ToTime()) { Class = "ipt-t ipt-t-dft time" }%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("EndTime", this.ViewData["_Application.EndTime"].ToDateTimeN().ToTime()) { Class = "ipt-t ipt-t-dft time " }%> </td> </tr> <% } else { %> <tr> <th title="<%= Define.Get("ApplicationTimeSetting_????????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("ApplicationTimeSetting_????????").HtmlEncode()%>?? </th> <td> <div id="divTimeRange"> ???????????????????????????????? </div> </td> </tr> <% } %> <tr> <th title="<%= Define.Get("Application_???").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Application_???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Title", this.ViewData["_Application.Title"], 200) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Title") %> </td> </tr> <tr> <th title="<%= Define.Get("Application_?????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Application_?????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Speaker", this.ViewData["_Application.Speaker"], 200) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("Application_???????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Application_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentCategory_Name",this.Category == null ? "" : this.Category.Name) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmApplication [name='ParentCategory']","Edit");" }%> <%= new HtmlHidden("ParentCategory", this.Category == null ? "" : this.Category.Guid)%> <a href="#selectCategory" class="decoration-none" onclick="return SelectCategoryLast('#frmApplication [name=ParentCategory]','#frmApplication [name=ParentCategory_Name]')"><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("ParentCategory") %> </td> </tr> <tr> <th title="<%= Define.Get("Application_???????").ToScriptTag() %>"> <%= Define.Get("Application_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentGrade_Name", IN(this.ViewData["_Application"], this.ViewData["_Application.ParentGrade.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentGrade", this.ViewData["_Application.ParentGrade.Guid"])%> <a href="#selectGrade" class="decoration-none" onclick="return SelectGradeLast('#frmApplication [name=ParentGrade]','#frmApplication [name=ParentGrade_Name]')"><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> </td> </tr> <tr style='<%= IN(this.ViewData["_Application.ParentLesson"], "", "display:none;")%>'> <th title="<%= Define.Get("Application_LessonTextbookName_??????").ToScriptTag() %>"> <%= Define.Get("Application_LessonTextbookName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Application.ParentLesson.ParentTextbook.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentBeginCredits_Code", IN(this.ViewData["_Application"], this.ViewData["_Application.ParentBeginCredits.Code"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentBeginCredits", this.ViewData["_Application.ParentBeginCredits.Guid"])%> <a href="#selectBeginCredits" class="decoration-none" onclick="return SelectCredits('#frmApplication [name=ParentBeginCredits]','#frmApplication [name=ParentBeginCredits_Code]','0')"><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> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentEndCredits_Code", IN(this.ViewData["_Application"], this.ViewData["_Application.ParentEndCredits.Code"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft" }%> <%= new HtmlHidden("ParentEndCredits", this.ViewData["_Application.ParentEndCredits.Guid"])%> <a href="#selectEndCredits" class="decoration-none" onclick="return SelectCredits('#frmApplication [name=ParentEndCredits]','#frmApplication [name=ParentEndCredits_Code]','1')"><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> </td> </tr> <tr> <th title="<%= Define.Get("Application_???").ToScriptTag() %>"> <%= Define.Get("Application_???").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("Cover", ViewData["_Application.Cover"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <br /> <a href="#deleteCover" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadCover" class="decoration-none" onclick="return UploadFile('#frmApplication [name=Cover]','<%= Define.Get("Application_Cover_???????????????")%>','0','<%= SettingGroup.ApplicationUploadPath %>','','960', '540')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ViewPassword", this.ViewData["_Application.ViewPassword"], 32) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <% var album = this.ViewData["_Application.AlbumName"]; if (album != null && this.ListAlbum.Select(l => l.Name).Contains(album)) { %> <%= new HtmlText("", this.ViewData["_Application.AlbumName"], 64) { ID = "AlbumText", Class = "ipt-t ipt-t-dft " }.Style(new { display="none" })%> <span id="CloseAlbumText" style="display: none; cursor: pointer; margin-left: 20px;" onclick="CloseAlbumText(this)">???</span> <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID="AlbumSelect", Option = this.ListAlbum,DefaultSelectValue = "", SelectedValue= this.ViewData["_Application.AlbumName"], OnChange="ChangeAlbumText(this)" }.InsertOption("??????...","change",this.ListAlbum.Count).InsertOption("::???::", "", 0)%> <% } else if (album != null && album != "" && this.ListAlbum.Select(l => l.Name).Contains(album) == false) { %> <%= new HtmlText("", this.ViewData["_Application.AlbumName"], 64) { ID = "AlbumText", Class = "ipt-t ipt-t-dft " }%> <span id="CloseAlbumText" style="cursor: pointer; margin-left: 20px;" onclick="CloseAlbumText(this)">???</span> <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID = "AlbumSelect", Option = this.ListAlbum, DefaultSelectValue = "", SelectedValue = this.ViewData["_Application.AlbumName"], OnChange = "ChangeAlbumText(this)" }.InsertOption("??????...", "change", this.ListAlbum.Count).InsertOption("::???::", "", 0).Style(new { display="none"})%> <% } else if (album == null || album == "") { %> <%= new HtmlText("", this.ViewData["_Application.AlbumName"], 64) { ID = "AlbumText", Class = "ipt-t ipt-t-dft " }.Style(new { display="none" })%> <span id="CloseAlbumText" style="display: none; cursor: pointer; margin-left: 20px;" onclick="CloseAlbumText(this)">???</span> <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID="AlbumSelect", Option = this.ListAlbum,DefaultSelectValue = "", SelectedValue= this.ViewData["_Application.AlbumName"], OnChange="ChangeAlbumText(this)" }.InsertOption("??????...","change",this.ListAlbum.Count).InsertOption("::???::", "", 0)%> <% } %> <%--<%= new HtmlText("", this.ViewData["_Application.AlbumName"], 64) { Class = "ipt-t ipt-t-dft ", ID="AlbumText" }.Style(new { display="none" })%> <span id="CloseAlbumText" style="display: none; cursor: pointer; margin-left: 20px;" onclick="CloseAlbumText(this)">???</span> <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID="AlbumSelect", Option = this.ListAlbum,DefaultSelectValue= this.ViewData["_Application.AlbumName"], OnChange="ChangeAlbumText(this)" }.InsertOption("??????...","change",this.ListAlbum.Count).InsertOption("::???::", "", 0)%>--%> </td> </tr> <tr> <th title="<%= Define.Get("Application_?????????").ToScriptTag() %>"> <%= Define.Get("Application_?????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("Application_Share_?????????????????????").ToScriptTag()%>"> <%= new HtmlRadio("Share", this.ViewData["_Application.Share"].ToInt(-1) == 0, 0, null) { ID = "Application_Share_0", Checked = (this.ViewData["_Application.Share"].ToIntN() == 0 ? true : false) }.Style(new { Width = "auto" })%> <label for="Application_Share_0"> ???</label> <%--<%= new HtmlRadio("Share", this.ViewData["_Application.Share"].ToInt(-1) == 1, 1, null) { ID = "Application_Share_1" }.Style(new { Width = "auto" })%> <label for="Application_Share_1"> ???</label>--%> <%= new HtmlRadio("Share", this.ViewData["_Application.Share"].ToInt(-1) == 2, 2, null) { ID = "Application_Share_2" , Checked = ((this.ViewData["_Application.Share"].ToIntN() == 2 || this.ViewData["_Application"]==null) ? true : false) }.Style(new { Width = "auto" })%> <label for="Application_Share_2"> ???</label> <%= new HtmlYKTip("Share") %> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????????").ToScriptTag() %>"> <%= Define.Get("Application_??????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("NeetLoginToLive", this.ViewData["_Application.NeetLoginToLive"], true, false) { Class = ""}%> </td> </tr> <tr> <th title="<%= Define.Get("Application_????????????").ToScriptTag() %>"> <%= Define.Get("Application_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsHDVideo", this.ViewData["_Application.IsHDVideo"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr> <th title="<%= Define.Get("Application_????????????").ToScriptTag() %>"> <%= Define.Get("Application_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsPubNotice", this.ViewData["_Application.IsPubNotice"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_Application.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr style="display:none;"> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("NumberOfPeople", this.ViewData["_Application.NumberOfPeople"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("NumberOfPeople") %> </td> </tr> <tr> <th title="<%= Define.Get("Application_?????????").ToScriptTag() %>"> <%= Define.Get("Application_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("DownloadMessage", this.ViewData["_Application.DownloadMessage"], 256) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <% if (Has(this.ViewData["_Application.ParentDealUser"]) == true) { %> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("DealUserGuid", this.ViewData["_Application.ParentDealUser.UserName"], 32) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("ParentDealUser")%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("DealTime", this.ViewData["_Application.DealTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("DealTime")%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("DealRemark", this.ViewData["_Application.DealRemark"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <% } %> <% if (Has(this.ViewData["_Application"]) == true && this.ViewData["_Application.ConfirmRemark"] != null) { %> <tr> <th title="<%= Define.Get("??????").ToScriptTag() %>"> <%= Define.Get("??????").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("ConfirmRemark", this.ViewData["_Application.ConfirmRemark"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%> </td> </tr> <% } else if (Has(this.ViewData["_Application"]) == true && this.ViewData["_Application.Stauts"].ToInt() != (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.???) { %> <tr> <th title="<%= Define.Get("??????").ToScriptTag() %>"> <%= Define.Get("??????").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("ConfirmRemark", this.ViewData["_Application.ConfirmRemark"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%> </td> </tr> <tr> <th></th> <td> <span> <%= new HtmlButton("Send", "ConfirmApp", "ConfirmApp(this);") { Class = "hidden" }%> <div onclick="ConfirmApp(this);" class="btn btn-dft btn-dft-impt"> <span> <%= Define.Get("???").HtmlEncode()%></span> </div> </span> </td> </tr> <% } %> </table> <% if (Has(this.ViewData["_Application"]) == true) { %> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <% if (Has(this.ViewData["_Application.ParentCancelUser"]) == true) { %> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("CancelUserGuid", this.ViewData["_Application.ParentCancelUser.UserName"], 32) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("ParentCancelUser")%> </td> </tr> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("CancelTime", this.ViewData["_Application.CancelTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("CancelTime")%> </td> </tr> <% } %> <tr> <th title="<%= Define.Get("Application_??????").ToScriptTag() %>"> <%= Define.Get("Application_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("CancelRemark", this.ViewData["_Application.CancelRemark"], 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 title="<%= Define.Get("Application_????").ToScriptTag() %>"> <%= Define.Get("Application_????")%>?? </th> <td class="tooltip" title="<%= Define.Get("Application_Status_????????????").ToScriptTag()%>"> <%= new HtmlCheckBox("Status", this.ViewData["_Application.Status"], 1, 0) { DefaultChecked = 0 }%> </td> </tr>--%> <tr> <th></th> <td> <% if (Has(this.ViewData["_Application"]) == false) { %> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_Application"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_Application"])%></span> </div> <% } else if (this.ViewData["_Application.Status"].ToIntN() == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.??? || this.ViewData["_Application.Status"].ToIntN() == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.???) { %> <%= new HtmlHidden("KEY", KEY)%> <span> <%= new HtmlButton("Send", "Update", "Update(this);") { Class = "hidden" }%> <div onclick="Update(this);" class="btn btn-dft btn-dft-impt"> <span>???</span> </div> </span> <span> <%= new HtmlButton("Send", "Cancel", "Cancel(this);") { Class = "hidden" }%> <div onclick="Cancel(this);" class="btn btn-dft btn-dft-impt"> <span> <%= Define.Get("Application_???").HtmlEncode()%></span> </div> </span> <% } else if (this.ViewData["_Application.Status"].ToIntN() == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.???) { %> <%= new HtmlHidden("KEY", KEY)%> <span> <%= new HtmlButton("Send", "Update", "Update(this);") { Class = "hidden" }%> <div onclick="Update(this);" class="btn btn-dft btn-dft-impt"> <span>???</span> </div> </span> <span> <%= new HtmlButton("Send", "Apply", "Apply(this);") { Class = "hidden" }%> <div onclick="Apply(this);" class="btn btn-dft btn-dft-impt"> <span> <%= Define.Get("Application_???").HtmlEncode()%></span> </div> </span> <span> <%= new HtmlButton("Send", "Cancel", "Cancel(this);") { Class = "hidden" }%> <div onclick="Cancel(this);" class="btn btn-dft btn-dft-impt"> <span> <%= Define.Get("Application_???").HtmlEncode()%></span> </div> </span> <% } else if (this.ViewData["_Application.Status"].ToIntN() == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.???) { %> <% } %> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span> </div> </td> </tr> </table> </form> </div> </div> <% if (Has(this.ViewData["_Application"])) { %> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../ApplicationCategory/ListIFrame.aspx?ApplicationGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../ApplicationChannel/ListIFrame.aspx?ApplicationGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../ApplicationAttachment/ListIFrame.aspx?ApplicationGuid=<%= this.PrimaryKey %>"></iframe> </div> </div> <% } %> </div> </div> </div> </div> </div> </div></div></div></div></body> </html> <%-- = Import.Script("/jquery.1.9.js")--%> <%= 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/ApplicationAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmApplication" }); // //????? // $("#frmApplication [name=SortNumber]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "num1" // }, // message: // { // required: "<%= Define.Get("Application_SortNumber_???????????").ToScriptChar() %>", // regex: "<%= Define.Get("Application_SortNumber_???????????").ToScriptChar() %>" // } // }); //??????? $("#frmApplication [name=ParentUser]").formValidator({ targetFocus: "#frmApplication [name=ParentUser_TrueName_UserName]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Application_UserGuid_????????????").ToScriptChar() %>" } }); <% if (Has(this.ViewData["_Application"]) == false && this.ListRecordEquipment.Count != 0) { %> //?????? $("#frmApplication [name=ParentRecordEquipment]").formValidator({ targetFocus: "#frmApplication [name=ParentRecordEquipment_Name]", validatorGroup: "Edit", rules: { min: 1 }, message: { min: "<%= Define.Get("Application_RecordEquipmentGuid_???????????").ToScriptChar() %>" } }); <%} %> //?????? $("#frmApplication [name=ApplicationDate]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "date" }, message: { required: "<%= Define.Get("Application_ApplicationDate_???????????").ToScriptChar() %>", regex: "<%= Define.Get("Application_ApplicationDate_??????????????").ToScriptChar() %>" } }); //?????? $("#frmApplication [name=NumberOfPeople]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Application_NumberOfPeople_???????????").ToScriptChar() %>" } }); ////?????? //$("#frmApplication [name=Title]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "isSpecial" // }, // message: // { // required: "????????", // regex: "??????????????" // } //}); // //??????? // $("#frmApplication [name=StartTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "date" // }, // message: // { // required: "<%= Define.Get("Application_StartTime_????????????").ToScriptChar() %>", // regex: "<%= Define.Get("Application_StartTime_??????????????").ToScriptChar() %>" // } // }); // //?????? // $("#frmApplication [name=EndTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "date" // }, // message: // { // required: "<%= Define.Get("Application_EndTime_???????????").ToScriptChar() %>", // regex: "<%= Define.Get("Application_EndTime_??????????????").ToScriptChar() %>" // } // }); //?????? $("#frmApplication [name=NumberOfPeople]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Application_NumberOfPeople_???????????").ToScriptChar() %>" } }); //??????? $("#frmApplication [name='ParentCategory']").formValidator({ targetFocus: "#frmApplication [name=ParentCategory_Name]", validatorGroup: "Edit", rules: { required: null }, message: { required: "????????????" } }); // //?????? // $("#frmApplication [name=ParentDealUser]").formValidator({ // targetFocus : "#frmApplication [name=ParentDealUser_TrueName_UserName]", // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("Application_DealUserGuid_???????????").ToScriptChar() %>" // } // }); // //?????? // $("#frmApplication [name=DealTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // regex: "date" // }, // message: // { // regex: "<%= Define.Get("Application_DealTime_??????????????").ToScriptChar() %>" // } // }); // //?????? // $("#frmApplication [name=ParentCancelUser]").formValidator({ // targetFocus : "#frmApplication [name=ParentCancelUser_TrueName_UserName]", // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("Application_CancelUserGuid_???????????").ToScriptChar() %>" // } // }); // //?????? // $("#frmApplication [name=CancelTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // regex: "date" // }, // message: // { // regex: "<%= Define.Get("Application_CancelTime_??????????????").ToScriptChar() %>" // } // }); // //?????? // $("#frmApplication [name=ConfirmTime]").formValidator({ // validatorGroup: "Edit", // rules: // { // regex: "date" // }, // message: // { // regex: "<%= Define.Get("Application_ConfirmTime_??????????????").ToScriptChar() %>" // } // }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { ApplicationAjax.Insert($("#frmApplication"), send, function (json) { document.getElementById("frmApplication").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { ApplicationAjax.Update($("#frmApplication"), send, function (json) { document.getElementById("frmApplication").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmApplication").KEY.value; ApplicationAjax.Delete(key, send, function (json) { GoList(); }); }; //??? function Cancel(send) { if (confirm("????????????")) { ApplicationAjax.Cancel($("#frmApplication"), null, function (json) { document.getElementById("frmApplication").KEY.value = json.Key alert("<%= Define.Get("Application_??????").ToScriptChar() %>"); GoList(); }); } }; //??? function Apply(send) { if (confirm("????????????")) { ApplicationAjax.Apply($("#frmApplication"), null, function (json) { document.getElementById("frmApplication").KEY.value = json.Key alert("<%= Define.Get("Application_??????").ToScriptChar() %>"); GoList(); }); } }; //??? function ConfirmApp(send) { if (confirm("????????????")) { ApplicationAjax.ConfirmApp($("#frmApplication"), null, function (json) { document.getElementById("frmApplication").KEY.value = json.Key alert("??????"); GoList(); }); } }; </script> <script type="text/javascript"> //?????? //????????????????????? function ChangeAlbumText(send) { var value = $(send).val(); if (value == "change") { $("#AlbumText").show(); $("#AlbumText").attr("name", "AlbumName"); $("#CloseAlbumText").show(); $("#AlbumSelect").hide(); $("#AlbumSelect").removeAttr("name"); } } //????????????????????? function CloseAlbumText(send) { $("#AlbumText").hide(); $("#AlbumText").removeAttr("name"); $("#CloseAlbumText").hide(); $("#AlbumSelect").show(); $("#AlbumSelect").val(0); $("#AlbumSelect").attr("name", "AlbumName"); } //??????????? function GetTimeRange() { if ($("#divTimeRange").length > 0) { var userGuid = $("#frmApplication [Name=ParentUser]").val(); var recordEquipmentGuid = $("#frmApplication [Name=ParentRecordEquipment]:checked").val(); var applicationDate = $("#frmApplication [Name=ApplicationDate]").val(); if (recordEquipmentGuid != null && recordEquipmentGuid != "" && applicationDate != null && applicationDate != "" && userGuid != null && userGuid != "") { $("#divTimeRange").html("?????????????????") var params = ""; params += "IssueDate=" + encodeURIComponent(applicationDate); params += "&RecordEquipmentGuid=" + encodeURIComponent(recordEquipmentGuid); params += "&UserGuid=" + encodeURIComponent(userGuid); params += "&CheckApplyIssued=true"; params += "&CheckBooking=true"; Global.HtmlControl("/Pub/ApplicationTimeSetting/TimeRange", params, null, function (result) { $("#divTimeRange").html(result.Html); }); } else { $("#divTimeRange").html("????????????????????????????????"); } } } $(function () { $("#frmApplication [Name=ParentRecordEquipment]").parent().find(".select-clear").bind("click", function () { GetTimeRange() }); $("#frmApplication [Name=ParentUser]").parent().find(".select-clear").bind("click", function () { GetTimeRange() }); GetTimeRange(); $("#frmApplication [Name=ApplicationDate]").datepicker( { minDate: 0, onClose: function () { $.validator.itemValid("#frmApplication [name=ApplicationDate]", "Edit"); } }); <% if (Has(this.ViewData["_Application"]) == false && this.ListRecordEquipment.Count == 0) { %> alert("?????????????????????????????????"); window.location.href="/Pub/RecordEquipment/Edit.aspx" <% } %> }) //??????????? </script> <script type="text/javascript"> //?????? //??????????? //??? $("#frmApplication [name=Cover]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.ApplicationUploadPath %>" + $("#frmApplication [name=Cover]").val()); //??????????? </script> <script type="text/javascript"> //?????? </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de