MyOAExx/Views/System/Institution.cshtml

(开头部分) 3KB

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

@using OA.Models
@using OA.BLL
@{
    ViewBag.Title = "机构管理";
    Layout = "~/Views/_Master.cshtml";
}
@{
    IList<BranchInfo> branchs = (ViewData["BranchList"] as IList<BranchInfo>);
    BranchInfo branch = ViewData["branch"] as BranchInfo;
}

<script type="text/javascript">
    function AddInstitution() {
        var name = document.getElementById("txtName").value;
        var short = document.getElementById("shortName").value;
        if (name == "") {
            alert("机构名称不能为空");
            return false;
        }
        if (short == "") {
            alert("机构简称不能为空");
            return false;
        }
        return true;
    }
</script>

<h1><img src="/Images//img/icons/posts.png" alt="" />机构管理</h1>

<div class="bloc">
    <div class="title">
        员工管理
    </div>
    <div class="content">
        @if (ViewData["branch"] == null)
{
    <form action="AddBranchInfo" onsubmit="return AddInstitution()" method="post">
        <div class="submit">
            <input type="submit" value="添加机构" style=" float: right;" />
        </div>
        <div class="a">
            机构名称:<input type="text" name="BName" id="txtName" style="height: 22px; line-height: 22px; " />   机构简称:<input type="text" id="shortName" name="BShortName" style="height:22px;line-height:22px;" />
        </div>
        
    </form>
}
else
{
    using (Html.BeginForm("EditBranchInfo", "System", FormMethod.Post, new { Id = branch.BranchId }))
    {
                <div class="submit">
                    <input type="submit" value="保存修改" style=" float:right;" />
                </div>
                <div class="a">
                    机构名称:<input type="text" name="BName" value=@branch.BranchName /> 机构简称:<input type="text" name="BShortName" value=@branch.BranchShortName />
                </div>
            }
        }
        <table style="padding-top:20px; border:0px double red;">
            <thead>
后面还有 37 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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