MyOAExx/Views/System/Table.cshtml

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@{
    ViewBag.Title = "Table";
    Layout = "~/Views/_Master.cshtml";
}

@using OA.BLL;
@using OA.Models;

@{
    IList<ManualSign> mlist = ViewData["Mlist"] == null ? null : ViewData["Mlist"] as IList<ManualSign>;
    UserInfo u = Session["User"] as UserInfo;
    IList<SignState> signlist = ViewData["SignState"] as IList<SignState>;
    IList<DepartInfo> deps = ViewData["Deps"] as IList<DepartInfo>;

    Session["mlist"] = mlist;

    string STime = ViewData["STime"] == null ? "" : ViewData["STime"].ToString();
    string ETime = ViewData["ETime"] == null ? "" : ViewData["ETime"].ToString();
    int dep = ViewData["Dep"] == null ? 0 : int.Parse(ViewData["Dep"].ToString());
    int Sign = ViewData["Sign"] == null ? 0 : int.Parse(ViewData["Sign"].ToString());

}

<h1><img src="/Images/img/icons/posts.png" alt="" />员工考勤</h1>
<div class="bloc">
    <div class="title">员工考勤</div>
    <div class="content">
        @using (Html.BeginForm("Manual", "System", FormMethod.Post))
        {
            <div class="input kao">
                <strong>签卡起始日期:</strong>
                @if (STime == null)
                {
                    <input type="text" class="datepicker" id="input4" name="STime" style="height:28px;line-height:28px;" />
                }
                else
                {
                    <input type="text" class="datepicker" id="input4" name="STime" style="height:28px;line-height:28px;" value="@STime" />
                }
                <strong>签卡结束日期:</strong>
                @if (ETime == null)
                {
                    <input type="text" class="datepicker" id="input5" name="ETime" style="height: 28px; line-height: 28px; " />
                }
                else
                {
                    <input type="text" class="datepicker" id="input5" name="ETime" style="height: 28px; line-height: 28px; " value="@ETime" />
                }
                @*</div>
                    <div class="input kao"><br />*@
                @if (u.RoleId == 2 || u.RoleId == 3)
                {
                    <strong>部门查询:</strong>
                    <select name="dep" style="width:80px;">
                        @if (dep != 0)
                        {
                            <option value="@dep">
                                @DepartInfoManager.GetDepartInfoByDepartId(dep).DepartName
                            </option>
                        }
后面还有 101 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。