Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyLLScoreItem.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyLLScoreItem.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyLLScoreItem" %> <%= new MyListenLessonNavInstance(this) { Local = MyListenLessonNavItem.??????????? }.ToHtml()%> <div class="box well" id="divEdit"> <div class="p_title"> <span class="title">????????</span>?????????????? <span class="f_r"> </span> </div> <hr /> <div class="userInput pwd"> <form id="frmLLScoreItemEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("ParentSTScoreType","Name", "Guid", "Guid") { Option = this._ListSTScoreType }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <% if (this._ListSTScoreType.Count == 0) { %> ????????????????? <% } %> <%= new HtmlYKTip("ParentSTScoreType") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>?????????</span></td> <td> <%= new HtmlText("Name", null, 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("ScoreRatio", null) { }%> <%= new HtmlYKTip("ScoreRatio")%> </td> </tr> <%-- <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", null, 2000)%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("SortNumber", null, 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr>--%> <%-- <tr> <td style="text-align: right;"></td> <td></td> </tr>--%> <tr> <td style="text-align: right;"></td> <td> <%= new HtmlHidden("Key",this.KEY)%> <%= new HtmlHidden("ParentListenLesson", this.ListenLesson.Guid)%> <%= new HtmlSubmit("????????", "LLScoreItemEdit", "LLScoreItemEditClient(this);").Style(new { Width = "100px" })%> <input type="button" value="???" onclick="HideEdit();" style="width:100px;" /> </td> </tr> </table> </form> </div> </div> <script type="text/javascript"> function ShowEdit(send) { $("#divEdit").show(500); } function HideEdit(send) { $("#divEdit").hide(500); } </script> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "LLScoreItemEdit", form: "#frmLLScoreItemEdit", alertMessage: true, showMessage: false }); //?????????? $("#frmLLScoreItemEdit [name=ParentSTScoreType]").formValidator({ validatorGroup: "LLScoreItemEdit", rules: { required: null }, message: { required: "???????????" } }); //????? $("#frmLLScoreItemEdit [name=Name]").formValidator({ validatorGroup: "LLScoreItemEdit", rules: { required: null }, message: { required: "?????????" } }); //?????? $("#frmLLScoreItemEdit [name=ScoreRatio]").formValidator({ validatorGroup: "LLScoreItemEdit", rules: { required: null, regex: "decmal1" }, message: { required: "????????????", regex: "????????????" } }); </script> <script type="text/javascript"> function LLScoreItemEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLScoreItemEdit", data: Global.GetFormValue($("#frmLLScoreItemEdit")), async: true, dataType: 'json', success: function (result) { $(send).val("????????"); alert("?????????????????"); 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); } }); } </script> <!--????????????--> <div class="box well"> <div class="p_title"> <span class="title">????????</span>??????????? <span> <%= this.ListenLesson._ListLLScoreItem.Count %>?????? </span><span class="f_r"> </span> </div> <div class="dataControl box"> <%= new HtmlButton("???...", "","ShowEdit(this);")%> <%= new HtmlButton("???", "LLScoreItemBatchDelete(this);")%> <% var allScore = this.ListLLScoreItem.Sum(l => l.ScoreRatio); if (allScore != 100) { %> <span class="required"> ????????????100??????<%= allScore %> </span> <% } %> </div> <div id="MyLLScoreItemData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel" style="width: 20px;"> <input type="checkbox" class="trselall" /> </td> <td valign="middle" class="disabled"> ?????? </td> <td valign="middle"> ????? </td> <td valign="middle" class="disabled"> ?????? </td> <td valign="middle" class="disabled" style="width: 100px;"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListLLScoreItem.Count - 1; i++) { var llScore = this.ListLLScoreItem[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListLLScoreItem.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(llScore.Guid, llScore.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <%= llScore.ParentSTScoreType.Name %> </td> <td> <%= llScore.Name %> </td> <td> <%= llScore.ScoreRatio %> </td> <td class="action"> <%= new HtmlAnchor("???") { Href = WebUrl.MyLLScoreItemEdit(llScore.Guid) }%> | <a href="#delete" onclick="LLScoreItemDelete(this,'<%= SetKey(llScore.Guid, llScore.Version) %>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyLLScoreItemData .trselall").click(function () { if (this.checked == true) { $("#MyLLScoreItemData .trsel").attr("checked", "checked"); } else { $("#MyLLScoreItemData .trsel").removeAttr("checked"); } }) function SelectMyLLScoreItemAll() { var bool = $("#MyLLScoreItemData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyLLScoreItemData .trsel").attr("checked", "checked"); $("#MyLLScoreItemData .trselall").attr("checked", "checked"); } else { $("#MyLLScoreItemData .trsel").removeAttr("checked"); $("#MyLLScoreItemData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function LLScoreItemBatchDelete(send) { var items = $("#MyLLScoreItemData .trsel:checked"); var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("?????????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLScoreItemBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("?????????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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); } }); } } else { alert("???????????????????????"); } }; //?????? function LLScoreItemDelete(send, pkid) { if (confirm("???????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLScoreItemDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("?????????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, beforeSend: function () { $(send).html("?????"); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; </script> <div> <a onclick="SelectMyLLScoreItemAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de