MyOAExx/Views/System/SelectTable.cshtml
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "SelectTable";
Layout = "~/Views/_Master.cshtml";
}
@using OA.BLL;
@using OA.Models;
@{
IList<DepartInfo> deps = ViewData["Deps"] as IList<DepartInfo>;
int dep = ViewData["Dep"] == null ? 0 : int.Parse(ViewData["Dep"].ToString());
int countSign = ViewData["AllSign"] == null ? 0 : int.Parse(ViewData["AllSign"].ToString());
int month = ViewData["M"] == null ? DateTime.Now.Month : int.Parse(ViewData["M"].ToString());
int day = ViewData["day"] == null ? DateTime.Now.Day : int.Parse(ViewData["day"].ToString());
UserInfo u = Session["User"] as UserInfo;
DateTime t1 = ViewData["t1"] == null ? DateTime.Now.AddDays(-(DateTime.Now.Day - 1)) : DateTime.Parse(ViewData["t1"].ToString());
DateTime t2 = ViewData["t1"] == null ? DateTime.Now : DateTime.Parse(ViewData["t2"].ToString());
int i = 2;
//int i = 0;
}
@*<h1><img src="/img/icons/posts.png" alt="" />部门出勤率</h1>
<div class="bloc">
<div class="title">出勤率</div>
<div class="content" id="pie">
@if (u.RoleId == 2 || u.RoleId == 3)
{
<text>请选择月份</text>
if (month == 2)
{
<a href="/System/STable/@month">@month 月</a>
<a href="/System/STable/@(month-1)">@(month - 1) 月</a>
<a href="/System/STable/12">12 月</a>
}
else if (month == 1)
{
<a href="/System/STable/@month">@month 月</a>
<a href="/System/STable/12">12 月</a>
<a href="/System/STable/11">11 月</a>
}
else
{
<a href="/System/STable/@month">@month 月</a>
<a href="/System/STable/@(month-1)">@(month - 1) 月</a>
<a href="/System/STable/@(month-2)">@(month - 2) 月</a>
}
<br />
foreach (DepartInfo d in deps)
{
<table class="graph type-pie tips">
<caption>@d.DepartName</caption>
<thead>
<tr>
<td></td>
后面还有 105 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。