Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyApplicationAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyApplicationAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyApplicationAdd" %> <%= new MyApplicationNavTopInstance(this) { Local= MyApplicationNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">??????</span> </div> <div class="userInput body"> <form id="frmApplicationEdit" 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 HtmlSelect("ParentRecordEquipment", "Name", "Guid", "Guid") { Option = this.ListRecordEquipment,DefaultSelectValue= ViewData.Val("ParentRecordEquipment.Guid", this.Application) }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentRecordEquipment")%> </td> </tr> <% if (this.Application == null) { %> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td id="TH_DataControl"> <%= new HtmlText("ApplicationDate", ViewData.Val("ApplicationDate", this.Application).ToDateTimeN().ToAutoShortDate()) { OnChange = "GetTimeRange();" }%> <%= new HtmlYKTip("ApplicationDate") %> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <div id="divTimeRange"> ???????????????????? </div> </td> </tr> <% } else { %> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("StartTime", ViewData.Val("StartTime", this.Application).ToDateTimeN().ToAutoShortDate()) { Class = "" }%> <%= new HtmlYKTip("StartTime") %> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("EndTime", ViewData.Val("EndTime", this.Application).ToDateTimeN().ToAutoShortDate()) { Class = " " }%> <%= new HtmlYKTip("EndTime") %> </td> </tr> <% } %> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationTitleTag("*") %>?????</span></td> <td> <%= new HtmlText("Title", ViewData.Val("Title", this.Application), 200) { }%> <%= new HtmlYKTip("Title") %> </td> </tr> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationSpeakerTag("*") %>??????</span></td> <td><% var speaker = ViewData.Val("Speaker", this.Application); if (speaker == null) { speaker = this.UserName; } %> <%= new HtmlText("Speaker", speaker, 200) { }%> <%= new HtmlYKTip("Speaker")%> </td> </tr> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationChannelTag("*") %><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("Category", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", OnChange = "GetTextbook();", SelectedValue = (this.Application != null ? (this.Application._ListApplicationCategory.Count > 0? (this.Application._ListApplicationCategory[0].ParentCategory.ParentCategory==null?this.Application._ListApplicationCategory[1].ParentCategory.Guid:this.Application._ListApplicationCategory[0].ParentCategory.Guid) : "" ): CookieGroup.ListUserCategory.FirstResult()) }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("Category") { }%> </td> </tr> <% if (CreateInstance.ConfigDao.ApplicationLessonTag() == null) { //?????????????????????????? %> <% } %> <tr class="hidden"> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, OptGroup= CreateInstance.GradeDao.GetOptGroup(this.ListAllGrade), DefaultSelectValue = ViewData.Val("ParentGrade.Guid", this.Application), OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> </td> </tr> <% if (CreateInstance.ConfigDao.ApplicationLessonTag() != null) { %> <tr class="hidden"> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%--<%= new HtmlSelect("Category", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", OnChange = "GetTextbook();", SelectedValue = ViewData.Val("=>_ListApplicationCategory[0].Guid", this.Application) }.InsertOption("::???::", "", 0)%>--%> <%= new HtmlSelect("Category", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", OnChange = "GetTextbook();", SelectedValue = (this.Application != null ? (this.Application._ListApplicationCategory.Count > 0? this.Application._ListApplicationCategory[0].ParentCategory.Guid : "" ):"") }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("Category") { }%> </td> </tr> <tr> <td class="label-td"><span class="label">*??????</span></td> <td> <%= new HtmlSelect("ParentPress", "Name", "Guid", "Guid") { Option = this.ListAllPress, DefaultSelectValue = "", SelectedValue = ViewData.Val("ParentLesson.ParentTextbook.ParentPress.Guid", this.Application), OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentPress") { }%> </td> </tr> <tr id="liTextbook" style="display: none;"> <td class="label-td"><span class="label">*?????</span></td> <td><span id="spanTextbook"></span></td> </tr> <tr id="liLesson" style="display: none;"> <td class="label-td"><span class="label">*??????</span></td> <td><span id="spanLesson"></span></td> </tr> <% } //????????????????????????????????????????????? %> <%--<tr> <td style="text-align: right;"><span class="label"><%= Define.Get("Application_????????????").ToScriptTag() %>??</span></td> <td> <%= new HtmlCheckBox("IsPubNotice", ViewData.Val("IsPubNotice", this.Application), true, false) { Class = ""}%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">???????????</span></td> <td> <%= new HtmlCheckBox("IsHDVideo", ViewData.Val("IsHDVideo", this.Application), true, false) { Class = ""}%> </td> </tr>--%> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationDescriptionTag("*") %>????????</span></td> <td> <%= new HtmlTextArea("Description", ViewData.Val("Description", this.Application), 2000)%> <%= new HtmlYKTip("Description") %> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("NumberOfPeople", 1) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("NumberOfPeople") %> </td> </tr> </table> <div class="accordion_bl hidden" style="background: #FCFCFC; margin-bottom: 20px;"> <div class="accordion"> <div class="accordion-heading "> <a href="#slide-con_AlbumInfo" data-parent="" data-toggle="collapse" class="accordion-toggle ">?????? <i class="ico oct"></i> </a> </div> <div class="accordion-body collapse " id="slide-con_AlbumInfo"> <div class=" accordion-inner"> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationAlbumNameTag("*") %><%= Define.Get("Client_???")%>?????</span></td> <td> <%= new HtmlText("AlbumName", ViewData.Val("AlbumName", this.Application), 64) { }%> <%= new HtmlYKTip("AlbumName")%> </td> </tr> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationViewPasswordTag("*") %><%= Define.Get("Application_??????????").ToScriptTag() %>??</span></td> <td> <%= new HtmlCheckBox("NeetLoginToLive", ViewData.Val("NeetLoginToLive", this.Application), true, false) { Class = ""}%> </td> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationViewPasswordTag("*") %>????????</span></td> <td> <%= new HtmlText("ViewPassword", ViewData.Val("ViewPassword", this.Application), 200) { }%> <%= new HtmlYKTip("ViewPassword")%> </td> </tr> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationCoverTag("*") %>????????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", ViewData.Val("Cover",this.Application)) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.ApplicationCover(this.Application,SettingGroup.DefaultImg), "") { ID = "imgCover",Width=140, Height=88 ,OnErrorImg=SettingGroup.DefaultImg }%> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadAlbumCover();" style="width: auto;" /> <%= new HtmlYKTip("Cover")%> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> <script type="text/javascript"> function UploadAlbumCover() { UploadFile('#frmApplicationEdit [name=Cover]', '?????????', '0', '<%= SettingGroup.ApplicationUploadPath %>', '', '960', '540'); } </script> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlRadio("Share", 0, null) { ID = "Application_Share_0", Checked=(ViewData.Val("Share", this.Application).ToIntN()==0) }.Style(new { Width = "auto" })%> <label for="Application_Share_0"> ???</label> <%--<%= new HtmlRadio("Share", 1, null) { ID = "Application_Share_1", Checked=(ViewData.Val("Share", this.Application).ToIntN()==1) }.Style(new { Width = "auto" })%> <label for="Application_Share_1"> ??? </label>--%> <%= new HtmlRadio("Share", true , 2, null) { ID = "Application_Share_2", Checked=(ViewData.Val("Share", this.Application).ToIntN()==2 || ViewData.Val("Share", this.Application).ToIntN()==null) }.Style(new { Width = "auto" })%> <label for="Application_Share_2"> ??? </label> <%= new HtmlYKTip("Share") %> </td> </tr> <tr> <td class="label-td"><span class="label"><%= CreateInstance.ConfigDao.ApplicationChannelTag("*") %>????????</span></td> <td> <ul class=" column-list"> <% for (var i = 0; i <= this.ListAllChannel.Count - 1; i++) { var channel = this.ListAllChannel[i]; string parentChannelGuid = ""; if (channel.ParentChannel != null) { parentChannelGuid = channel.ParentChannel.Guid; %> <li style="padding-left: 40px;"> <%= new HtmlCheckBox("Channel", CreateInstance.ApplicationChannelDao.Count(l=>l.ParentApplication== this.Application && l.ParentChannel== channel)>0, channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelItem ChannelItemChannel" + parentChannelGuid, Lang = channel.ParentChannel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %> </li> <% } else { %> <li> <%= new HtmlCheckBox("Channel", CreateInstance.ApplicationChannelDao.Count(l=>l.ParentApplication== this.Application && l.ParentChannel== channel)>0 , channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelMaster ChannelMaster" + channel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %> </li> <% } } %> </ul> <script type="text/javascript"> //????????? $(".ChannelMaster").bind("click", function () { if (this.checked == false) { $(".ChannelItem" + this.id).removeAttr("checked"); } }) //????????? $(".ChannelItem").bind("click", function () { if (this.checked == true) { $(".ChannelMaster" + this.lang).attr("checked", "checked"); } else { if ($(".ChannelItemChannel" + this.lang + ":checked").length > 0) { $(".ChannelMaster" + this.lang).attr("checked", "checked"); } else { $(".ChannelMaster" + this.lang).removeAttr("checked"); } } }) </script> </td> </tr> </table> </div> </div> </div> </div> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"></span></td> <td> <%= new HtmlHidden("Key", this.KEY)%> <%= new HtmlHidden("ParentUser", this.User.Guid)%> <%= new HtmlSubmit("???", "ApplicationEdit",this.Application==null? "ApplicationAddClient(this);":"ApplicationEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> </div> <script type="text/javascript"> $(function () { GetTextbook('<%= ViewData.Val("ParentLesson.ParentTextbook.Guid", this.Application)%>', '<%= ViewData.Val("ParentLesson.Guid", this.Application)%>'); //??????????????ug $("#TH_DataControl input").blur(function () { if ($("#TH_DataControl input").val() == "") { $("#TH_DataControl label").css("background-image", "url('/JS/zh-CN/YK_Validate/images/accept.png')"); } else { $("#TH_DataControl label").removeAttr("style"); } }) $("#frmApplicationEdit").click(function () { if ($("#TH_DataControl input").val() != "") { $("#TH_DataControl label").css("background-image", "url('/JS/zh-CN/YK_Validate/images/accept.png')"); } else { $("#TH_DataControl label").css("background-image", "url('/JS/zh-CN/YK_Validate/images/onerror.jpg')"); } }) }); function GetTextbook(textbook, lesson) { var categoryGuid = $("#frmApplicationEdit [Name=Category]").val(); var pressGuid = $("#frmApplicationEdit [Name=ParentPress]").val(); var gradeGuid = $("#frmApplicationEdit [Name=ParentGrade]").val(); if (categoryGuid != "" && pressGuid != "" && gradeGuid != "") { //?????? $("#spanTextbook").html("????????????..."); $("#liTextbook").show(); $("#spanLesson").html(""); $("#liLesson").hide(); Global.HtmlControl("<%= ControlPath("/My/SelectTextbook")%>", "ParentCategory=" + encodeURIComponent(categoryGuid) + "&ParentPress=" + encodeURIComponent(pressGuid) + "&ParentGrade=" + encodeURIComponent(gradeGuid) + "&TextbookGuid=" + textbook, null, function (result) { $("#spanTextbook").html(result.Html); //??????????????????????? //flash($("#frmVideoUpload [name=ParentTextbook]")); if ($("#frmApplicationEdit [name=ParentTextbook]").length > 0) { <% if (CreateInstance.ConfigDao.ApplicationLessonTag("") != null) { %> $.validator.removeValid("#frmApplicationEdit [name=ParentTextbook]", "ApplicationEdit"); $.validator.removeValid("#frmApplicationEdit [name=ParentLesson]", "ApplicationEdit"); $("#frmApplicationEdit [name=ParentTextbook]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "????????" } }); <% } %> } //?????? if (lesson != null) { GetLesson(lesson); } }); } else { //?????? $("#spanTextbook").html(""); $.validator.removeValid("#frmApplicationEdit [name=ParentTextbook]", "ApplicationEdit"); $("#liTextbook").hide(); $("#spanLesson").html(""); $.validator.removeValid("#frmApplicationEdit [name=ParentLesson]", "ApplicationEdit"); $("#liLesson").hide(); } } function GetLesson(lesson) { var textbookGuid = $("#frmApplicationEdit [Name=ParentTextbook]").val(); if (textbookGuid != "" && textbookGuid != null) { //???????? $("#spanLesson").html("??????????????..."); $("#liLesson").show(); Global.HtmlControl("<%= ControlPath("/My/SelectLesson")%>", "ParentTextbook=" + encodeURIComponent(textbookGuid) + "&LessonGuid=" + lesson, null, function (result) { $("#spanLesson").html(result.Html); //flash($("#frmVideoUpload [name=ParentLesson]")); if ($("#frmApplicationEdit [name=ParentLesson]").length > 0) { <% if (CreateInstance.ConfigDao.ApplicationLessonTag("") != null) { %> $.validator.removeValid("#frmApplicationEdit [name=ParentLesson]", "ApplicationEdit"); $("#frmApplicationEdit [name=ParentLesson]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "??????????" } }); <% } %> } }); } else { //???????? $("#spanLesson").html(""); $("#liLesson").hide(); $.validator.removeValid("#frmApplicationEdit [name=ParentLesson]", "ApplicationEdit"); } } </script> <script type="text/javascript"> $(function () { $("#frmApplicationEdit [name=BeginTime]").datepicker({ minDate: 0, onClose: function () { $.validator.itemValid("#frmApplicationEdit [name=BeginTime]", "ApplicationEdit"); } }); $("#frmApplicationEdit [name=EndTime]").datepicker({ minDate: 0, onClose: function () { $.validator.itemValid("#frmApplicationEdit [name=EndTime]", "ApplicationEdit"); } }); $("#frmApplicationEdit [name=CutoffTime]").datepicker({ minDate: 0, onClose: function () { $.validator.itemValid("#frmApplicationEdit [name=CutoffTime]", "ApplicationEdit"); } }); }); //?????? $.validator.initConfig({ validatorGroup: "ApplicationEdit", form: "#frmApplicationEdit", alertMessage: true, showMessage: false }); //???????? $("#frmApplicationEdit [name=ParentRecordEquipment]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "??????????" } }); <% if (this.Application == null) { %> $("#frmApplicationEdit [name=ApplicationDate]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null, regex: "date" }, message: { required: "???????????", regex: "??????????????" } }); <% } else { %> $("#frmApplicationEdit [name=StartTime]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null, regex: "datetime" }, message: { required: "????????????", regex: "??????????????" } }); $("#frmApplicationEdit [name=EndTime]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null, regex: "datetime" }, message: { required: "???????????", regex: "??????????????" } }); <% } %> //??? //$("#frmApplicationEdit [name=ParentGrade]").formValidator({ // validatorGroup: "ApplicationEdit", // rules: // { // required: null // }, // message: // { // required: "????????" // } //}); //?????? $("#frmApplicationEdit [name=Share]").formValidator({ validatorGroup: "ApplicationEdit", rules: { min: 1 }, message: { min: "???????????" } }); ////????????? //$("#frmApplicationEdit [name=Title]").formValidator({ // validatorGroup: "ApplicationEdit", // rules: // { // regex: "isSpecial" // }, // message: // { // regex: "??????????????" // } //}); //?????? $("#frmApplicationEdit [name=NumberOfPeople]").formValidator({ validatorGroup: "ApplicationEdit", rules: { regex: "num1" }, message: { regex: "???????????" } }); <% if (CreateInstance.ConfigDao.ApplicationTitleTag("") != null) { %> ////??? //$("#frmApplicationEdit [name=Title]").formValidator({ // validatorGroup: "ApplicationEdit", // rules: // { // required: null, // regex: "isSpecial" // }, // message: // { // required: "????????", // regex: "??????????????" // } //}); <% } %> <% if (CreateInstance.ConfigDao.ApplicationSpeakerTag("") != null) { %> //????? $("#frmApplicationEdit [name=Speaker]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "?????????" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationAlbumNameTag("") != null) { %> //<%= Define.Get("Client_???")%>??? $("#frmApplicationEdit [name=AlbumName]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "?????<%= Define.Get("Client_???")%>???" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationCoverTag("") != null) { %> //??? $("#frmApplicationEdit [name=Cover]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "????????" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationViewPasswordTag("") != null) { %> //?????? $("#frmApplicationEdit [name=ViewPassword]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "???????????" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationDescriptionTag("") != null) { %> //??? $("#frmApplicationEdit [name=Description]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "????????" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationChannelTag("") != null) { %> //??? $("#frmApplicationEdit [name=Channel]").formValidator({ validatorGroup: "ApplicationEdit", rules: { min: 1 }, message: { min: "???????????" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationLessonTag() == null) { %> //??? $("#frmApplicationEdit [name=Category]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "???????????" } }); <% } else if (CreateInstance.ConfigDao.ApplicationCategoryTag("") != null) { %> //??? $("#frmApplicationEdit [name=Category]").formValidator({ validatorGroup: "ApplicationEdit", rules: { min: 1 }, message: { min: "???????????" } }); <% } %> <% if (CreateInstance.ConfigDao.ApplicationLessonTag() != null) { %> $("#frmApplicationEdit [name=ParentPress]").formValidator({ validatorGroup: "ApplicationEdit", rules: { required: null }, message: { required: "??????????" } }); <% } //????????????????????????????????????????????? %> </script> <script type="text/javascript"> function ApplicationAddClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ApplicationAdd", data: Global.GetFormValue($("#frmApplicationEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('???'); flash('??????') Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('?????...'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('???'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function ApplicationEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ApplicationEdit", data: Global.GetFormValue($("#frmApplicationEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('???'); flash('??????') Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('?????...'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('???'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } //??????????? function GetTimeRange() { if ($("#divTimeRange").length > 0) { var userGuid = $("#frmApplicationEdit [Name=ParentUser]").val(); var recordEquipmentGuid = $("#frmApplicationEdit [Name=ParentRecordEquipment]").val(); var applicationDate = $("#frmApplicationEdit [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("<%= ControlPath("/My/TimeRange")%>", params, null, function (result) { $("#divTimeRange").html(result.Html); }); } else { $("#divTimeRange").html("????????????????????"); } } } $(function () { $("#frmApplicationEdit [Name=ParentRecordEquipment]").parent().find(".select-clear").bind("click", function () { GetTimeRange() }); $("#frmApplicationEdit [Name=ParentUser]").parent().find(".select-clear").bind("click", function () { GetTimeRange() }); GetTimeRange(); $("#frmApplicationEdit [Name=ApplicationDate]").datepicker({ minDate: 0, altFormat: "yy-mm-dd" }); <% if (this.Application == null) { %> $("#frmApplicationEdit [Name=ApplicationDate]").datepicker( { minDate: 0, onClose: function () { $.validator.itemValid("#frmApplicationEdit [name=ApplicationDate]", "ApplicationEdit"); } }); <% } else { %> $("#frmApplicationEdit [Name=StartTime]").datepicker( { minDate: 0, maxDate: new Date($("#frmApplicationEdit [name=EndTime]").val()), onClose: function () { $.validator.itemValid("#frmApplicationEdit [name=StartTime]", "ApplicationEdit"); } }); $("#frmApplicationEdit [Name=EndTime]").datepicker( { minDate: new Date($("#frmApplicationEdit [name=StartTime]").val()), onClose: function () { $.validator.itemValid("#frmApplicationEdit [name=StartTime]", "ApplicationEdit"); } }); <% } %> }) </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de