Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Control\My\TimeRange.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TimeRange.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.TimeRange" %> <% if (this.ListApplicationTimeSetting.Count > 0) { for (int i = 0; i <= this.ListApplicationTimeSetting.Count - 1; i++) { if (i != 0) { %> <br /> <% } var item = this.ListApplicationTimeSetting[i]; //???????????? var startTime = new DateTime(this.IssueDate.Year, this.IssueDate.Month, this.IssueDate.Day, item.StartTime.Hour, item.StartTime.Minute, item.StartTime.Second); var endTime = new DateTime(this.IssueDate.Year, this.IssueDate.Month, this.IssueDate.Day, item.EndTime.Hour, item.EndTime.Minute, item.EndTime.Second); //?????????????? bool apply = true; bool reject = CreateInstance.RecordEquipmentRejectDao.AllowedApplyForIssue(this.RecordEquipment, startTime, endTime); if (reject == false) { apply = false; %> <label> <%= new HtmlCheckBox("", false, "", "") { Disabled = true }.Style(new { Width = "Auto", Display="inline" })%> <%= item.StartTime.ToTime()%> - <%= item.EndTime.ToTime()%> [<%= Define.Get("ApplicationTimeSetting_??????").ToScriptTag()%>] </label> <% } if (this.CheckApplyIssued == true && apply == true) { var issue = CreateInstance.ApplicationDao.AllowedApplyForIssue(this.RecordEquipment, startTime, endTime, null); if (issue == false) { apply = false; %> <label title=""> <%= new HtmlCheckBox("", false, "", "") { Disabled = true }.Style(new { Width = "Auto", Display="inline" })%> <%= item.StartTime.ToTime()%> - <%= item.EndTime.ToTime()%> [<%= Define.Get("ApplicationTimeSetting_????????????").ToScriptTag()%>] </label> <% } } if (apply == true) { //???????????????????? var issueCount = CreateInstance.ApplicationDao.IssueCount(this.RecordEquipment, startTime, endTime, null); %> <label title=""> <%= new HtmlCheckBox("TimeRange", false, startTime.ToLongDate() + "|" + endTime.ToLongDate() + "|" + item.Chatper.ToString("").Replace("\"","").Replace("\'",""), "").Style(new { Width = "Auto", Display="inline" })%> <%= item.StartTime.ToTime()%> - <%= item.EndTime.ToTime()%> <% if (issueCount > 0) { %> <%= Define.Get("Application_?????0}????????", issueCount).ToScriptTag()%> <% } %> </label> <% } } } else { %> <%= this.Message %> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de