Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MySubject.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubject.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubject" %> <div class="flat data-box"> <div class="head"> <span class="title">??????<%= this.Query.RecordCount %>??<%= Define.Get("Client_??????") %></span> </div> <div class="dataControl "> <form id="frmSubjectSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MySubject") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton(Define.Get("Client_?????????"), "window.location.href='" + WebUrl.MySubjectAdd() + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("???", "SubjectBatchDelete(this);") { Class="pull-right btn-danger" }%> </form> <script type="text/javascript"> $(function () { $("#frmSubjectSearch [name=BeginTime]").datepicker({ maxDate: new Date($("#frmSubjectSearch [name=EndTime]").val()), onClose: function () { $("#frmSubjectSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmSubjectSearch [name=EndTime]").datepicker({ minDate: new Date($("#frmSubjectSearch [name=BeginTime]").val()), onClose: function () { $("#frmSubjectSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function SubjectBatchDelete(send) { var items = $("#MySubjectData .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("???????????<%= Define.Get("Client_??????")%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_??????")%>??????") Global.Disabled(send, false); $("#frmSubjectSearch").submit(); }, 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 { flash("???????????<%= Define.Get("Client_??????")%>??"); } }; //??? function SubjectDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_??????")%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_??????")%>??????") Global.Disabled(send, false); $("#frmSubjectSearch").submit(); }, 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); } }); } }; //??????? function SubjectChangeStatusClient(send, pkid) { var confirmMsg = ""; //????????????????? if ($(send).val() == 3) { confirmMsg = "????????????????????????????????????????" } else { confirmMsg = "?????????<%= Define.Get("Client_??????")%>?????"; } if (confirm(confirmMsg) == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectChangeStatus", data: "key=" + pkid + "&Status=" + $(send).val(), async: true, dataType: 'json', success: function (result) { flash("<%= Define.Get("Client_??????")%>??????????") send.lang = send.value; Global.Disabled(send, false); location.reload(); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.value = send.lang; var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } }; //???????? function SubjectChangeSortNumberClient(send, pkid) { if (send.value != send.lang) { if (confirm("?????????<%= Define.Get("Client_??????")%>???????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { flash("<%= Define.Get("Client_??????")%>???????????") Global.Disabled(send, false); $("#frmSubjectSearch").submit(); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { send.value = send.lang; Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } } }; </script> </div> <div id="MySubjectData" 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" width="190px">?????? </td> <td valign="middle" width="290px">??????</td> <td valign="middle" class="disabled">??????? </td> <td valign="middle" class="disabled" width="250px">?????? </td> <td valign="middle" class="disabled" width="150px">???????????? </td> <td valign="middle" class="disabled" style="width: 70px;">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubject.Count - 1; i++) { var subject = this.ListSubject[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubject.Count - 1 ? "lastLine" : "" %> <%= subject.ParentSubject !=null ? "subLine" : "" %>' > <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(subject.Guid, subject.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <li class="min-video-photo"> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#",OnClick= "CheckStatus()", Title = subject.Name}%></div> </li> <% } else { %> <li class="min-video-photo"> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank", Title = subject.Name}%></div> </li> <% } %> </ul> </td> <td> <p> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <%= new HtmlAnchor(subject.Name) { Href = "#",OnClick="CheckStatus();",Suffix="..", TextLength=22 }%> <% } else { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.MySubjectEdit(subject.Guid), Target = "_blank",Suffix="..", TextLength=22 }%> <% } %> <br /> ????????<%=CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == subject) %>?? <br /> <%--?????????<%= AVA.ResourcesPlatform.Factory.CreateInstance.SubjectVideoDao.Where(l => l._ListSTUserVideo.Select(s => s.ParentSubjectVideo.Guid).ToArray().Contains(l.Guid)).Count()%>--%> ????????????<% = (CreateInstance.SubjectVideoDao.Count(l => l.ParentSubject == subject))-(CreateInstance.SubjectVideoDao.Count(l => l._ListSTUserVideo.Any(li => li.ParentSubjectVideo.ParentSubject == subject))) %>?? <br /> ???????????????<%= (CreateInstance.SubjectUserApplyDao.Count(l=>l.ApplyStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectUserApplyApplyStatusEnum.??? && l.ParentSubject == subject)) %>?? <br /> <% if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.???????? || subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.??????) { %> <span><%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define()%></span> <% } %> <%-- <% var classExamine = ""; if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.??????) { classExamine = "pass"; } else if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine%>"> <nobr> <%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define()%> </nobr> </span> <% if (subject.LockSubject == (int)AVA.ResourcesPlatform.Model.Pub.SubjectLockSubjectEnum.???) { %> <%= new HtmlSpan("???") { Title = subject.ParentLockUser.UserName + " " + subject.LockDateTime + " " + subject.LockDescription }.Style(new { Color = "Red" })%> <% } %> <br /> <% if (subject.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.SubjectShareUploadEnum.??) { %> ?????? <% } %> ?????<%= subject.VideoView%> ?????<%= subject.CommentCount%>--%> </p> </td> <td> <% var classStatus = ""; if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <% var isOver = false; if (subject.ParentSubject != null && subject.ParentSubject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { isOver = true; } %> <span class="<%=classStatus%> short_input" > <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "SubjectChangeStatusClient(this,'" + SetKey(subject.Guid, subject.Version) + "');", Lang = subject.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = isOver ? (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.??? : subject.Status, Disabled=isOver }.Style(new { Width = "auto" })%> </span><br /> <%if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.??? && AVA.ResourcesPlatform.Factory.CreateInstance.SubjectDao.Count(l => l.ParentSubject == subject) > 0) { if (subject.CutoffTime > DateTime.Now) { %> <p style="color:red;">??????</p> <% } else { %> <p style="color:red;">??????</p> <% } } %> </td> <td> <%= subject.BeginTime.ToShortDate()%> ?? <%= subject.EndTime.ToShortDate()%> </td> <td> <%= subject.CutoffTime.ToShortDate()%> </td> <td> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectEdit(subject.Guid) }%> | <a href="#delete" onclick="SubjectDelete(this,'<%= SetKey(subject.Guid, subject.Version)%>'); return false;">???</a> <br /> <%--<%= new HtmlAnchor(Define.Get("Client_???")) { Href = WebUrl.MySubjectAlbumList(subject.Guid) }%> <%--<br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectUserList(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectUserApplyList(subject.Guid) }%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectAttachmentList(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectVideoList(subject.Guid) }%> <br />--%> <% if (SettingGroup.HasMeeting == true) { %> <%-- <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectMeetingList(subject.Guid) }%> | <% } %> <%= new HtmlAnchor("???") { Href = WebUrl.MySubjectApplicationList(subject.Guid) }%> <br /> <% if (subject.STEnable == true) { %> <%= new HtmlAnchor("???") { Href = WebUrl.MySTAwardList(subject.Guid) }%> | <%= new HtmlAnchor("?????") { Href = WebUrl.MySTScoreItemList(subject.Guid) }%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySTUserList(subject.Guid) }%> | <%= new HtmlAnchor("???") { Href = WebUrl.MySTfinallyScoreList(subject.Guid) }%> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.MySTVideoScore(subject.Guid) }%> |--%> <% } %> <%= new HtmlText("SortNumber", subject.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};SubjectChangeSortNumberClient(this,'" + SetKey(subject.Guid, subject.Version) + "')", Lang = subject.SortNumber.ToString(), Width = 50, Title = "??????"+ Define.Get("Client_???")+"?????" }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> function CheckStatus(){ flash("???????????"); return false; } $("#MySubjectData .trselall").click(function () { if (this.checked == true) { $("#MySubjectData .trsel").attr("checked", "checked"); } else { $("#MySubjectData .trsel").removeAttr("checked"); } }) function SelectMySubjectAll() { var bool = $("#MySubjectData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectData .trsel").attr("checked", "checked"); $("#MySubjectData .trselall").attr("checked", "checked"); } else { $("#MySubjectData .trsel").removeAttr("checked"); $("#MySubjectData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySubjectAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubject(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de