demo20230512/Areas/admin/Views/Company/CompanyAdminAccess.cshtml

151 lines
6.5 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@using Resources
@using Weee.Models
@model Qcarbon.ViewModels.admin.companyAdminAccessVM
@{
ViewBag.Title = "一般公司管理者權限設定";
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
@Html.HiddenFor(model => model.userId)
@Html.HiddenFor(model => model.companyID)
<div class="col-md-12">
<div class="row docs-row">
<div class="col-xs-5">
<h2 class="docs-h2">@ViewBag.Title</h2>
</div>
</div>
<div class="row docs-row">
<div class="col-xs-12">
<div class="form-group row">
<div class="col-sm-7">
@Html.ValidationSummary(true, "", new { @class = "text-danger font-weight-bold" })
@if (!string.IsNullOrWhiteSpace(ViewBag.OKmsg))
{
<div class="alert alert-success" role="alert">
@ViewBag.OKmsg
</div>
}
else if (!string.IsNullOrWhiteSpace(ViewBag.errMsg))
{
<div class="alert alert-danger" role="alert">
@ViewBag.errMsg
</div>
}
</div>
</div>
<div class="form-group row">
<div class="col-xs-2">
@Html.DisplayNameFor(model => model.companyName)
</div>
<div class="col-xs-3" style="color:blue">
@Model.companyName
</div>
<div class="col-xs-1">
@Html.DisplayNameFor(model => model.companyDescription)
</div>
<div class="col-xs-2" style="color:blue">
@Model.companyDescription
</div>
<div class="col-xs-1">
@Html.DisplayNameFor(model => model.userName)
</div>
<div class="col-xs-2" style="color:blue">
@Model.userName
</div>
</div>
<div class="form-group row">
<div class="col-xs-2">
@Html.DisplayNameFor(model => model.AccountType)
</div>
<div class="col-xs-3" style="color:blue">
@Html.RadioButtonFor(model => model.AccountType, ACCOUNT_TYPE.ORGANICATION12)
組織型C1C2
@Html.RadioButtonFor(model => model.AccountType, ACCOUNT_TYPE.ORGANIZATION_ONLY)
僅組織型
@Html.RadioButtonFor(model => model.AccountType, ACCOUNT_TYPE.FULL_FUNCTION)
完整功能
</div>
<div class="col-xs-1">
@Html.DisplayNameFor(model => model.activeStartDate)
</div>
<div class="col-xs-2" style="color:blue">
@Html.TextBoxFor(model => model.activeStartDate, new { @class = "form-control" })
</div>
<div class="col-xs-1">
@Html.DisplayNameFor(model => model.activeEndDate)
</div>
<div class="col-xs-2" style="color:blue">
@Html.TextBoxFor(model => model.activeEndDate, new { @class = "form-control" })
</div>
</div>
<div class="form-group row">
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.lcaLimit)
</div>
<div class="col-xs-3">
@Html.TextBoxFor(model => model.lcaLimit, new { @class = "form-control", type = "number" })
</div>
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.lcaQuantity)
</div>
<div class="col-xs-3" style="color:blue">
@Model.lcaQuantity
</div>
</div>
<div class="form-group row">
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.listReportLimit)
</div>
<div class="col-xs-3">
@Html.TextBoxFor(model => model.listReportLimit, new { @class = "form-control", type = "number" })
</div>
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.listReportQuantity)
</div>
<div class="col-xs-3" style="color:blue">
@Model.listReportQuantity
</div>
</div>
<div class="form-group row">
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.lcaUserLimit)
</div>
<div class="col-xs-3">
@Html.TextBoxFor(model => model.lcaUserLimit, new { @class = "form-control", type = "number" })
</div>
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.lcaUserQuantity)
</div>
<div class="col-xs-3" style="color:blue">
@Model.lcaUserQuantity
</div>
</div>
<div class="form-group row">
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.supplierLimit)
</div>
<div class="col-xs-3">
@Html.TextBoxFor(model => model.supplierLimit, new { @class = "form-control", type = "number" })
</div>
<div class="col-xs-3">
@Html.DisplayNameFor(model => model.supplierQuantity)
</div>
<div class="col-xs-3" style="color:blue">
@Model.supplierQuantity
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<input type="submit" value="儲存" class="btn btn-default" />
</div>
</div>
</div>
}