Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MySTAwardList.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTAwardList" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.?????? }.ToHtml()%> <div class="box well" style="display:none" id="divEdit"> <div class="p_title"> <span class="title">????????</span>???????????? <span class="f_r"> </span> </div> <hr /> <div class="userInput pwd"> <form id="frmSTAwardEdit" 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 HtmlText("Name", this.ViewData["_STAward.Name"]) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("WinNumber", this.ViewData["_STAward.WinNumber"]) { }%> <%= new HtmlYKTip("WinNumber")%> </td> </tr> <%-- <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_STAward.Description"], 2000)%> </td> </tr>--%> <tr style="display: none"> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_STAward.SortNumber"], 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("ParentSubject", this.Subject.Guid)%> <%= new HtmlSubmit(IN(this.ViewData["_STAward"], "??????", "??????"), "STAwardEdit", "STAwardEditClient(this);").Style(new { Width = "100px" })%> <input type="button" value="???" onclick="HideEdit();" style="width:100px;" /> </td> </tr> </table> </form> </div> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "STAwardEdit", form: "#frmSTAwardEdit", alertMessage: true, showMessage: false }); //?????? $("#frmSTAwardEdit [name=Name]").formValidator({ validatorGroup: "STAwardEdit", rules: { required: null }, message: { required: "???????????" } }); //?????? $("#frmSTAwardEdit [name=WinNumber]").formValidator({ validatorGroup: "STAwardEdit", rules: { required: null, regex: "num1" }, message: { required: "????????????", regex: "????????????" } }); //????? //$("#frmSTAwardEdit [name=SortNumber]").formValidator({ // validatorGroup: "STAwardEdit", // rules: // { // required: null, // regex: "num1" // }, // message: // { // required: "????????????", // regex: "????????????" // } //}); </script> <script type="text/javascript"> function STAwardEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STAwardEdit", data: Global.GetFormValue($("#frmSTAwardEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= IN(this.ViewData["_STAward"],"??????", "??????") %>'); alert('<%= IN(this.ViewData["_STAward"],"???????????????", "???????????????") %>'); Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('<%= IN(this.ViewData["_STAward"],"?????????...", "?????????...") %>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= IN(this.ViewData["_STAward"],"??????", "??????") %>'); 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.Subject._ListSTAward.Count %>????? </span><span class="f_r"> </span> </div> <div class="dataControl box"> <%= new HtmlButton("???...", "","ShowEdit(this);")%> <%= new HtmlButton("???", "STAwardBatchDelete(this);")%> </div> <div id="MySTAwardData" 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"> ??? </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.ListSTAward.Count - 1; i++) { var stAward = this.ListSTAward[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSTAward.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(stAward.Guid, stAward.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <%= stAward.Name %> </td> <td> <%= stAward.WinNumber %> </td> <td class="action"> <%= new HtmlAnchor("???") { Href = WebUrl.MySTAwardEdit(stAward.Guid) }%> | <a href="#delete" onclick="STAwardDelete(this,'<%= SetKey(stAward.Guid, stAward.Version) %>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySTAwardData .trselall").click(function () { if (this.checked == true) { $("#MySTAwardData .trsel").attr("checked", "checked"); } else { $("#MySTAwardData .trsel").removeAttr("checked"); } }) function SelectMySTAwardAll() { var bool = $("#MySTAwardData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySTAwardData .trsel").attr("checked", "checked"); $("#MySTAwardData .trselall").attr("checked", "checked"); } else { $("#MySTAwardData .trsel").removeAttr("checked"); $("#MySTAwardData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function STAwardBatchDelete(send) { var items = $("#MySTAwardData .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.STAwardBatchDelete", 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 STAwardDelete(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STAwardDelete", 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="SelectMySTAwardAll(); return false;" href="#">???? - ???</a> </div> </div> <script type="text/javascript"> function ShowEdit(send) { $("#divEdit").show(500); } function HideEdit(send) { $("#divEdit").hide(500); } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de