初始化
This commit is contained in:
121
Face.Web/Content/Views/BillingRecords/PaymentInfo.cshtml
Normal file
121
Face.Web/Content/Views/BillingRecords/PaymentInfo.cshtml
Normal file
@@ -0,0 +1,121 @@
|
||||
@model Face.Domain.Entities.PaymentLog
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
tr > td:first-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
tr > td:last-child {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table class="table small m-b-xs">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
ID:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
写入人:
|
||||
</td>
|
||||
<td>
|
||||
@Model.EnteringName
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
交易方:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Barterer
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
机型:
|
||||
</td>
|
||||
<td>
|
||||
@Model.MachineType
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
单价:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Quantity
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
数量:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.Univalence
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
应收:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Payment
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
已付:
|
||||
</td>
|
||||
<td>
|
||||
@Model.PaymentTime.Value.ToString("yyyy/MM/dd")
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
流水ID:
|
||||
</td>
|
||||
<td>
|
||||
@Model.JournalID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
发生时间:
|
||||
</td>
|
||||
<td>
|
||||
@Model.TradeDate.Value.ToString("yyyy/MM/dd")
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
呆坏账:
|
||||
</td>
|
||||
<td>
|
||||
@Model.BadLoans
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
备注:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Remark
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
263
Face.Web/Content/Views/BillingRecords/PaymentList.cshtml
Normal file
263
Face.Web/Content/Views/BillingRecords/PaymentList.cshtml
Normal file
@@ -0,0 +1,263 @@
|
||||
@model List<Face.Domain.Entities.PaymentLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
List<Face.Domain.Entities.Supplier> BillList = Face.Services.Cache.CxwCacheHelp.GetSupplierList();//客户
|
||||
}
|
||||
|
||||
<style>
|
||||
#Info > table.table {
|
||||
margin: 0px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
#Info > table.table > tbody > tr > td {
|
||||
border: solid 1px #cccccc;
|
||||
}
|
||||
|
||||
#Info > table.table > tbody > tr > td:first-child {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#Info > table.table > tbody > tr > td:last-child {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#containet {
|
||||
display: inline-block;
|
||||
border: 1px solid #ed0181;
|
||||
padding: 19px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#pageMain li {
|
||||
list-style: none;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
#pageBox {
|
||||
padding: 10px 0 0 0;
|
||||
}
|
||||
|
||||
#pageBox span {
|
||||
display: inline-block;
|
||||
width: 60px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
background: #08a586;
|
||||
}
|
||||
|
||||
#pageNav {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#pageNav a {
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
color: #3a87ad;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#pageNav a.active, #pageNav a:hover {
|
||||
background: #3a87ad;
|
||||
color: #EFEFEF;
|
||||
}
|
||||
|
||||
#prev:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#next:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fontSize {
|
||||
font-size: 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<link href="~/Theme/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/dataTables/datatables.min.css" rel="stylesheet" />
|
||||
|
||||
<link href="~/Content/css/JournalList.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">应付列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("PaymentDetails", "BillingRecords")','orderBox_Content')"><a href="#orderBox_Content" style="color:white">添加应付记录</a></button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
<select id="selTime" class="form-control" style="display:inline;width:120px;">
|
||||
<option value="0">所有公司</option>
|
||||
@for (int i = 0; i < BillList.Count; i++)
|
||||
{
|
||||
<option value="@BillList[i].SupplierName">@BillList[i].SupplierName</option>
|
||||
}
|
||||
|
||||
</select>
|
||||
<div id="SelectDate">
|
||||
<label> <input type="radio" value="option2" name="date"> <i></i> 指定时间</label>
|
||||
<label> <input type="radio" value="option1" name="date"> <i></i> 按月筛选</label>
|
||||
<label> <input type="radio" value="option3" name="date" checked> <i></i> 所有时间</label>
|
||||
|
||||
<div id="condition" style="display:inline;">
|
||||
|
||||
<!--年份-->
|
||||
<select id="year" class="form-control" style="display:inline;width:90px;">
|
||||
<option value="0">所有</option>
|
||||
<option value="2019">2019</option>
|
||||
<option value="2020">2020</option>
|
||||
<option value="2021" selected="selected">2021</option>
|
||||
<option value="2022">2022</option>
|
||||
<option value="2023">2023</option>
|
||||
</select>
|
||||
<!--月份-->
|
||||
<select class="selMonths form-control" style="display:inline;width:90px;" name="Months">
|
||||
<option value="0">所有</option>
|
||||
<option value="1" selected="selected">一月</option>
|
||||
<option value="2">二月</option>
|
||||
<option value="3">三月</option>
|
||||
<option value="4">四月</option>
|
||||
<option value="5">五月</option>
|
||||
<option value="6">六月</option>
|
||||
<option value="7">七月</option>
|
||||
<option value="8">八月</option>
|
||||
<option value="9">九月</option>
|
||||
<option value="10">十月</option>
|
||||
<option value="11">十一月</option>
|
||||
<option value="12">十二月</option>
|
||||
</select>
|
||||
</div>
|
||||
<!--指定时间-->
|
||||
<div class="form-inline visible-*-block" id="data_5">
|
||||
<div class="input-daterange input-group visible-xs-2" id="datepicker">
|
||||
<input type="text" class="input-sm form-control" name="start" id="start" readonly />
|
||||
<span class="input-group-addon">至</span>
|
||||
<input type="text" class="input-sm form-control" name="end" id="end" readonly />
|
||||
</div>
|
||||
</div>
|
||||
<!--应付账单信息-->
|
||||
<div id="Info" class="row">
|
||||
<table class="table">
|
||||
<tr role="row">
|
||||
<td align="center">总记录:<span class="num">@ViewBag.num</span><br /><strong><span class="numOrder" style="font-size:15px">@ViewBag.money</span> </strong></td>
|
||||
<td align="center">已支付:<span class="paid">@ViewBag.paid</span><br /> <strong><span class="expenditure" style="font-size:15px">@ViewBag.paidMoney</span></strong></td>
|
||||
<td align="center">未支付:<span class="non_payment">@ViewBag.non_payment</span><br /><strong><span class="income" style="font-size:15px"> @ViewBag.paymentMoney</span></strong></td>
|
||||
<td align="center">已确认 <br /><strong><span class="confirm" style="font-size:15px"> @ViewBag.confirm</span></strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
<div class="table-responsive">
|
||||
<table class="table dataTables-example table-sm" border="0" id="pageMain">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="ReceivableList" onclick="gotoDetailPartialNeedDate('@Url.Action("PaymentDetails", "BillingRecords")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
|
||||
<td style="text-align:left;" height="16px"><span class="grey OccurrenceTime">ID:</span><span class="ReceivableID">@Model[i].ID</span></td>
|
||||
<td style="text-align:left" height="16px">@(Model[i].TradeDate == null ? null : @Model[i].TradeDate.Value.ToString("yyyy/MM/dd"))<span class="grey ID"></span></td>
|
||||
<td class="money" style="text-align:right"><strong style="font-size:17px;">@Model[i].Payment</strong></td>
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20"><strong class="fontSize">@Model[i].Barterer</strong></td>
|
||||
<td style="text-align:left" height="20">备注:<span class="grey OccurrenceTime">@Model[i].Remark</span></td>
|
||||
@if (Model[i].PaymentTime == null)
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:red;">未支付</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:green;">已支付@(Model[i].FinanceConfirm == true ? "ID:" + Model[i].JournalID : "")</td>
|
||||
}
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
</table>
|
||||
<ul class="pagination" id="pageNav">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
@*<div class="card-footer">
|
||||
|
||||
</div>*@
|
||||
<!-- /.card-footer-->
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!--分页-->
|
||||
<script src="~/CxwPlugin/PublicPaging.js"></script>
|
||||
|
||||
@*时间*@
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
@* 客户端信息 *@
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
|
||||
<!--自定义-->
|
||||
<script src="~/CxwPlugin/PaymentList.js"></script>
|
||||
<script>
|
||||
$("#condition").hide();//隐藏 公司 年 月 查询条件
|
||||
|
||||
$('#data_5 .input-daterange').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
$('#data_5').hide();
|
||||
|
||||
|
||||
</script>
|
||||
122
Face.Web/Content/Views/BillingRecords/ReceivableInfo.cshtml
Normal file
122
Face.Web/Content/Views/BillingRecords/ReceivableInfo.cshtml
Normal file
@@ -0,0 +1,122 @@
|
||||
@model Face.Domain.Entities.ReceivableLog
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
tr > td:first-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
tr > td:last-child {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table class="table small m-b-xs">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
ID:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
写入人:
|
||||
</td>
|
||||
<td>
|
||||
@Model.EnteringName
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
交易方:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Barterer
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
机型:
|
||||
</td>
|
||||
<td>
|
||||
@Model.MachineType
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
单价:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Quantity
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
数量:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.Univalence
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
应收:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Receivable
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
已收:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.CollectionTime.Value.ToString("yyyy/MM/dd")
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
流水ID:
|
||||
</td>
|
||||
<td>
|
||||
@Model.JournalID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
发生时间:
|
||||
</td>
|
||||
<td>
|
||||
@Model.TradeDate.Value.ToString("yyyy/MM/dd")
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
呆坏账:
|
||||
</td>
|
||||
<td>
|
||||
@Model.BadLoans
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
备注:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Remark
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
269
Face.Web/Content/Views/BillingRecords/ReceivableList.cshtml
Normal file
269
Face.Web/Content/Views/BillingRecords/ReceivableList.cshtml
Normal file
@@ -0,0 +1,269 @@
|
||||
@model List<Face.Domain.Entities.ReceivableLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
List<Face.Domain.Entities.Company> BillList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
}
|
||||
|
||||
<style>
|
||||
#Info > table.table {
|
||||
margin: 0px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
#Info > table.table > tbody > tr > td {
|
||||
border: solid 1px #cccccc;
|
||||
}
|
||||
|
||||
#Info > table.table > tbody > tr > td:first-child {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#Info > table.table > tbody > tr > td:last-child {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#containet {
|
||||
display: inline-block;
|
||||
border: 1px solid #ed0181;
|
||||
padding: 19px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#pageMain li {
|
||||
list-style: none;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
#pageBox {
|
||||
padding: 10px 0 0 0;
|
||||
}
|
||||
|
||||
#pageBox span {
|
||||
display: inline-block;
|
||||
width: 60px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
background: #08a586;
|
||||
}
|
||||
|
||||
#pageNav {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#pageNav a {
|
||||
display: inline-block;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
color: #3a87ad;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#pageNav a.active, #pageNav a:hover {
|
||||
background: #3a87ad;
|
||||
color: #EFEFEF;
|
||||
}
|
||||
|
||||
#prev:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#next:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.fontSize {
|
||||
font-size: 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<link href="~/Theme/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/dataTables/datatables.min.css" rel="stylesheet" />
|
||||
<link href="~/Content/css/JournalList.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">应收列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("ReceivableDetails", "BillingRecords")','orderBox_Content')"><a href="#orderBox_Content" style="color:white">添加应收记录</a></button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
<select id="selTime" class="form-control" style="display:inline;width:120px;">
|
||||
<option value="0">所有公司</option>
|
||||
@for (int i = 0; i < BillList.Count; i++)
|
||||
{
|
||||
<option value="@BillList[i].CompanyName">@BillList[i].CompanyName</option>
|
||||
}
|
||||
|
||||
</select>
|
||||
<div id="SelectDate">
|
||||
<label> <input type="radio" value="option2" name="date"> <i></i> 指定时间</label>
|
||||
<label> <input type="radio" value="option1" name="date"> <i></i> 按月筛选</label>
|
||||
<label> <input type="radio" value="option3" name="date" checked> <i></i> 所有</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="condition" style="display:inline;">
|
||||
<select id="year" class="form-control" style="display:inline;width:90px;">
|
||||
<option value="0">所有</option>
|
||||
<option value="2019">2019</option>
|
||||
<option value="2020">2020</option>
|
||||
<option value="2021" selected="selected">2021</option>
|
||||
<option value="2022">2022</option>
|
||||
<option value="2023">2023</option>
|
||||
</select>
|
||||
<select class="selMonths form-control" style="display:inline;width:90px;" name="Months">
|
||||
<option value="0">所有</option>
|
||||
<option value="1" selected="selected">一月</option>
|
||||
<option value="2">二月</option>
|
||||
<option value="3">三月</option>
|
||||
<option value="4">四月</option>
|
||||
<option value="5">五月</option>
|
||||
<option value="6">六月</option>
|
||||
<option value="7">七月</option>
|
||||
<option value="8">八月</option>
|
||||
<option value="9">九月</option>
|
||||
<option value="10">十月</option>
|
||||
<option value="11">十一月</option>
|
||||
<option value="12">十二月</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-inline visible-*-block" id="data_5">
|
||||
<div class="input-daterange input-group visible-xs-2" id="datepicker">
|
||||
<input type="text" class="input-sm form-control" name="start" id="start" readonly />
|
||||
<span class="input-group-addon">至</span>
|
||||
<input type="text" class="input-sm form-control" name="end" id="end" readonly />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="Info" class="row">
|
||||
<table class="table">
|
||||
<tr role="row">
|
||||
<td align="center">总记录:<span class="num">@ViewBag.num</span><br /><strong><span class="numOrder" style="font-size:15px">@ViewBag.money</span> </strong></td>
|
||||
<td align="center">已支付:<span class="paid">@ViewBag.paid</span><br /> <strong><span class="expenditure" style="font-size:15px">@ViewBag.paidMoney</span></strong></td>
|
||||
<td align="center">未支付:<span class="non_payment">@ViewBag.non_payment</span><br /><strong><span class="income" style="font-size:15px"> @ViewBag.paymentMoney</span></strong></td>
|
||||
<td align="center">已确认 <br /><strong><span class="confirm" style="font-size:15px"> @ViewBag.confirm</span></strong></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
<div class="table-responsive">
|
||||
@*信息*@
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="numOrder"> @ViewBag.num</span>
|
||||
<span class="expenditure"> @ViewBag.expenditure</span>
|
||||
<span class="income"> @ViewBag.income</span>
|
||||
<span class="money">@ViewBag.money</span>
|
||||
</div>
|
||||
<table class="table dataTables-example table-sm" border="0" id="pageMain">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="ReceivableList" onclick="gotoDetailPartialNeedDate('@Url.Action("ReceivableDetails", "BillingRecords")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
|
||||
|
||||
<td style="text-align:left;" height="16px"><span class="grey OccurrenceTime">ID:</span><span class="grey OccurrenceTime ReceivableID">@Model[i].ID</span></td>
|
||||
<td style="text-align:left" height="16px">@(Model[i].TradeDate == null ? null : @Model[i].TradeDate.Value.ToString("yyyy/MM/dd"))<span class="grey ID"></span></td>
|
||||
|
||||
|
||||
<td class="money" style="text-align:right"><strong style="font-size:17px;">@Model[i].Receivable</strong></td>
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20"><strong class="fontSize">@Model[i].Barterer</strong></td>
|
||||
<td style="text-align:left" height="20">备注:<span class="grey OccurrenceTime">@Model[i].Remark</span></td>
|
||||
@if (Model[i].CollectionTime == null)
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:red;">未支付</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:green;">已支付@(Model[i].FinanceConfirm == true ? "ID:" + Model[i].JournalID : "")</td>
|
||||
}
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
</table>
|
||||
<ul class="pagination" id="pageNav">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
@*<div class="card-footer">
|
||||
|
||||
</div>*@
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/ReceivableList.js"></script>
|
||||
|
||||
<!--分页-->
|
||||
<script src="~/CxwPlugin/PublicPaging.js"></script>
|
||||
|
||||
@*时间*@
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
@* 客户端信息 *@
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
|
||||
<script>
|
||||
$("#condition").hide();//隐藏 公司 年 月 查询条件
|
||||
|
||||
$('#data_5 .input-daterange').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
$("#data_5").hide();//指定时间
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
184
Face.Web/Content/Views/BillingRecords/_PaymentDetails.cshtml
Normal file
184
Face.Web/Content/Views/BillingRecords/_PaymentDetails.cshtml
Normal file
@@ -0,0 +1,184 @@
|
||||
@model Face.Domain.Entities.PaymentLog
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.Supplier> CompanyList = Face.Services.Cache.CxwCacheHelp.GetSupplierList();//客户
|
||||
}
|
||||
|
||||
@*<link href="~/Theme/css/bootstrap.min.css" rel="stylesheet"/>*@
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" style="@(ViewBag.title=="应付添加记录"?"color:blue;":"color:red;")">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input class="form-control" type="text" value="@Model.ID" name="ID" readonly>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">呆坏账</label>
|
||||
<div class="col-md-9">
|
||||
<input type="checkbox" name="BadLoa" />
|
||||
<input type="hidden" name="BadLoans" id="BadLoans" value="@Model.BadLoans" />
|
||||
|
||||
@*<input type='checkbox' name='BadLoans' class='mondey" + i + "' />*@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">交易方</label>
|
||||
<div class="col-md-9">
|
||||
<select class="Company form-control m-b" name="Barterer">
|
||||
@*<option value="1.AdminName">1.AdminName</option>*@
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option @(Model.Barterer == item.SupplierName ? "selected" : "" ) value="@item.SupplierName">@item.SupplierName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">订单号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入订单号" name="OrderNo" class="form-control" value="@Model.OrderNo">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row" id="data_1">
|
||||
<label class="col-md-3 control-label">发生时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" name="TradeDate" class="form-control" value="@(Model.TradeDate!=null ? Model.TradeDate.Value.ToString("yyyy/MM/dd"):DateTime.Now.ToString("yyyy/MM/dd"))" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">机型</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入机型" name="MachineType" class="form-control" value="@Model.MachineType">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">单价</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入单价" name="Univalence" class="form-control" value="@Model.Univalence">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">数量</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入数量" name="Quantity" class="form-control" value="@Model.Quantity">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">应付</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入应付" name="Payment" class="form-control" value="@Model.Payment">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9 ">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyPayment", "BillingRecords")','modifyOrderInternalForm','@Url.Action("PaymentList", "BillingRecords")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/CxwPlugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
var check = $("#BadLoans").val();
|
||||
if (check != "") {
|
||||
//console.log("经理");
|
||||
$("input[type='checkbox']").attr("checked", "checked");
|
||||
}
|
||||
});
|
||||
//呆坏账
|
||||
$("input[type='checkbox']").click(function () {//
|
||||
var check = $("input[type='checkbox']").prop('checked');
|
||||
if (check) {
|
||||
$("#BadLoans").val(check);
|
||||
} else {
|
||||
$("#BadLoans").val(check);
|
||||
}
|
||||
//console.log(check);
|
||||
});
|
||||
</script>
|
||||
@*<script src="~/Theme/js/bootstrap.min.js"></script>*@
|
||||
@*<script src="~/CxwPlugin/Images.js"></script>*@
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
@model List<Face.Domain.Entities.PaymentLog>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="num"> @ViewBag.num</span><!--总记录-->
|
||||
<span class="paid"> @ViewBag.paid</span><!--已支付-->
|
||||
<span class="non_payment"> @ViewBag.non_payment</span><!--未支付-->
|
||||
|
||||
<span class="money">@ViewBag.money</span><!--总金额-->
|
||||
<span class="paidMoney"> @ViewBag.paidMoney</span><!--已支付金额-->
|
||||
<span class="paymentMoney"> @ViewBag.paymentMoney</span><!--未支付金额-->
|
||||
<span class="confirm"> @ViewBag.confirm</span><!--已确认-->
|
||||
</div>
|
||||
<table class="table" border="0" id="pageMain">
|
||||
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="ReceivableList" onclick="gotoDetailPartialNeedDate('@Url.Action("PaymentDetails", "BillingRecords")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
|
||||
|
||||
<td style="text-align:left;" height="16px"><strong>ID:<span class="ReceivableID">@Model[i].ID</span></strong></td>
|
||||
<td style="text-align:left" height="16px">@(Model[i].TradeDate == null ? null : @Model[i].TradeDate.Value.ToString("yyyy/MM/dd"))<span class="grey ID"></span></td>
|
||||
|
||||
|
||||
<td class="money" style="text-align:right"><strong style="font-size:17px;">@Model[i].Payment</strong></td>
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20"><span class="grey OccurrenceTime">@Model[i].Barterer</span></td>
|
||||
<td style="text-align:left" height="20">备注:@Model[i].Remark<span class="grey OccurrenceTime"></span></td>
|
||||
@if (Model[i].PaymentTime == null)
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:red;">未支付</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:green;">已支付@(Model[i].FinanceConfirm == true ? "已确认" : "")</td>
|
||||
}
|
||||
|
||||
@*<td class="payment" style="text-align:right">@(Model[i].CollectionTime == null ? "未支付" : "已支付")</td>
|
||||
<td style="text-align:right">@(Model[i].CollectionTime == null ? "未支付" : "已支付")</td>*@
|
||||
@*<td style="text-align:right">@(Model[i].CollectionTime.Value != null || Model[i].CollectionTime.Value.ToString() != "" ? "已支付" : "未支付")</td>*@
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
|
||||
</table>
|
||||
<ul class="pagination" id="pageNav">
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
</ul>
|
||||
<!--分页-->
|
||||
<script>
|
||||
$(function () {
|
||||
var test = ({
|
||||
pageMain: '#pageMain', //主内容
|
||||
pageNav: '#pageNav', //中间数字
|
||||
pagePrev: '#prev', //上一页
|
||||
pageNext: '#next', //下一页
|
||||
curNum: 20, //每页显示的条数
|
||||
activeClass: 'active', //高亮显示的class*/
|
||||
ini: 0/*初始化显示的页面*/
|
||||
});
|
||||
tabPage(test);
|
||||
})
|
||||
|
||||
</script>
|
||||
184
Face.Web/Content/Views/BillingRecords/_ReceivableDetails.cshtml
Normal file
184
Face.Web/Content/Views/BillingRecords/_ReceivableDetails.cshtml
Normal file
@@ -0,0 +1,184 @@
|
||||
@model Face.Domain.Entities.ReceivableLog
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
}
|
||||
|
||||
@*<link href="~/Theme/css/bootstrap.min.css" rel="stylesheet"/>*@
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
@*<div class="content-wrapper">*@
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" style="@(ViewBag.title=="添加应收记录"?"color:blue;":"color:red;")">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input class="form-control" type="text" value="@Model.ID" name="ID" readonly>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">呆坏账</label>
|
||||
<div class="col-md-9">
|
||||
<input type="checkbox" name="BadLoa" />
|
||||
<input type="hidden" name="BadLoans" id="BadLoans" value="@Model.BadLoans" />
|
||||
|
||||
@*<input type='checkbox' name='BadLoans' class='mondey" + i + "' />*@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">交易方</label>
|
||||
<div class="col-md-9">
|
||||
<select class="Company form-control m-b" name="Barterer">
|
||||
@*<option value="1.AdminName">1.AdminName</option>*@
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option @(Model.Barterer == item.CompanyName ? "selected" : "" ) value="@item.CompanyName">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">订单号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入订单号" name="OrderNo" class="form-control" value="@Model.OrderNo">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row" id="data_1">
|
||||
<label class="col-md-3 control-label">发生时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" name="TradeDate" class="form-control" value="@(Model.TradeDate!=null ? Model.TradeDate.Value.ToString("yyyy/MM/dd"):DateTime.Now.ToString("yyyy/MM/dd"))" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">机型</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入机型" name="MachineType" class="form-control" value="@Model.MachineType">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">单价</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入单价" name="Univalence" class="form-control" value="@Model.Univalence">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">数量</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入数量" name="Quantity" class="form-control" value="@Model.Quantity">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">应收</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入应收" name="Receivable" class="form-control" value="@Model.Receivable">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyReceivable", "BillingRecords")','modifyOrderInternalForm','@Url.Action("ReceivableList", "BillingRecords")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@*</div>*@
|
||||
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/CxwPlugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
var check = $("#BadLoans").val();
|
||||
if (check != "") {
|
||||
//console.log("经理");
|
||||
$("input[type='checkbox']").attr("checked", "checked");
|
||||
}
|
||||
});
|
||||
//呆坏账
|
||||
$("input[type='checkbox']").click(function () {//
|
||||
var check = $("input[type='checkbox']").prop('checked');
|
||||
if (check) {
|
||||
$("#BadLoans").val(check);
|
||||
} else {
|
||||
$("#BadLoans").val(check);
|
||||
}
|
||||
//console.log(check);
|
||||
});
|
||||
</script>
|
||||
@*<script src="~/Theme/js/bootstrap.min.js"></script>*@
|
||||
<script src="~/CxwPlugin/Images.js"></script>
|
||||
@@ -0,0 +1,69 @@
|
||||
@model List<Face.Domain.Entities.ReceivableLog>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="num"> @ViewBag.num</span><!--总记录-->
|
||||
<span class="paid"> @ViewBag.paid</span><!--已支付-->
|
||||
<span class="non_payment"> @ViewBag.non_payment</span><!--未支付-->
|
||||
|
||||
<span class="money">@ViewBag.money</span><!--总金额-->
|
||||
<span class="paidMoney"> @ViewBag.paidMoney</span><!--已支付金额-->
|
||||
<span class="paymentMoney"> @ViewBag.paymentMoney</span><!--未支付金额-->
|
||||
<span class="confirm"> @ViewBag.confirm</span><!--已确认-->
|
||||
</div>
|
||||
<table class="table" border="0" id="pageMain">
|
||||
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="ReceivableList" onclick="gotoDetailPartialNeedDate('@Url.Action("ReceivableDetails", "BillingRecords")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
|
||||
|
||||
<td style="text-align:left;" height="16px"><span class="grey OccurrenceTime">ID:</span><span class="grey OccurrenceTime ReceivableID">@Model[i].ID</span></td>
|
||||
<td style="text-align:left" height="16px">@(Model[i].TradeDate == null ? null : @Model[i].TradeDate.Value.ToString("yyyy/MM/dd"))<span class="grey ID"></span></td>
|
||||
|
||||
|
||||
<td class="money" style="text-align:right"><strong style="font-size:17px;">@Model[i].Receivable</strong></td>
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20"><strong class="fontSize">@Model[i].Barterer</strong></td>
|
||||
<td style="text-align:left" height="20">备注:<span class="grey OccurrenceTime">@Model[i].Remark</span></td>
|
||||
@if (Model[i].CollectionTime == null)
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:red;">未支付</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td class="payment" style="text-align:right;color:green;">已支付@(Model[i].FinanceConfirm == true ? "已确认" : "")</td>
|
||||
}
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
|
||||
</table>
|
||||
<ul class="pagination" id="pageNav">
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
</ul>
|
||||
<!--分页-->
|
||||
<script>
|
||||
$(function () {
|
||||
var test = ({
|
||||
pageMain: '#pageMain', //主内容
|
||||
pageNav: '#pageNav', //中间数字
|
||||
pagePrev: '#prev', //上一页
|
||||
pageNext: '#next', //下一页
|
||||
curNum: 20, //每页显示的条数
|
||||
activeClass: 'active', //高亮显示的class*/
|
||||
ini: 0/*初始化显示的页面*/
|
||||
});
|
||||
tabPage(test);
|
||||
})
|
||||
|
||||
</script>
|
||||
@*<script src="~/CxwPlugin/PublicPaging.js"></script>*@
|
||||
107
Face.Web/Content/Views/CxwBasicFunc/CompanyList.cshtml
Normal file
107
Face.Web/Content/Views/CxwBasicFunc/CompanyList.cshtml
Normal file
@@ -0,0 +1,107 @@
|
||||
@model List<Face.Domain.Entities.Company>
|
||||
@*@model Face.Domain.Entities.Company*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">应收列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("CompanyDetails", "CxwBasicFunc")','companyBox_Content')">添加客户</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>企业名称</th>
|
||||
<th>行业</th>
|
||||
<th>公司地址</th>
|
||||
<th>详细地址</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("CompanyDetails", "CxwBasicFunc")',@Model[i].ID,'companyBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].CompanyName</td>
|
||||
<td>@Model[i].Industry</td>
|
||||
<td>@Model[i].Region</td>
|
||||
<td>@Model[i].Address</td>
|
||||
<td>@Model[i].CreateTime</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- /.card-body -->
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="companyBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>基础数据</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>客户列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/common.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
87
Face.Web/Content/Views/CxwBasicFunc/PLineList.cshtml
Normal file
87
Face.Web/Content/Views/CxwBasicFunc/PLineList.cshtml
Normal file
@@ -0,0 +1,87 @@
|
||||
@using PagedList.Mvc;
|
||||
@using PagedList;
|
||||
@model List<Face.Domain.Entities.ProductType>
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">产品类型列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("PLineDetails", "CxwBasicFunc")','plineBox_Content')">添加类型</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>类型名称</th>
|
||||
<th>型号说明</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("PLineDetails", "CxwBasicFunc")',@Model[i].ID,'plineBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].ProductName</td>
|
||||
<td>@Model[i].Desc</td>
|
||||
<td>@Model[i].Remark</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="plineBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="~/Plugin/common.js"></script>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
119
Face.Web/Content/Views/CxwBasicFunc/ProjectList.cshtml
Normal file
119
Face.Web/Content/Views/CxwBasicFunc/ProjectList.cshtml
Normal file
@@ -0,0 +1,119 @@
|
||||
@model List<Face.Domain.Entities.Product>
|
||||
@*@model List<Face.Domain.ViewModels.PPlan.CxwProduct>*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
}
|
||||
|
||||
<link href="~/Content/css/ProjectList.css" rel="stylesheet" />
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">产品列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddUser" onclick="gotoCommonPartial('@Url.Action("ProjectDetails", "CxwBasicFunc")','projectBox_Content')">添加产品</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<!--客户-->
|
||||
<select id="company" class="form-control" name="CompanyID" style="width:95px;">
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
<option value="0">所有</option>
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option value="@item.ID">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<div class="table-responsive">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<div class="row productData" style="margin: 0px;border-bottom:1px solid #cccccc;" onclick="gotoDetailPartial('@Url.Action("ProjectDetails", "CxwBasicFunc")',@Model[i].ID,'projectBox_Content')">
|
||||
<div class="col-xs-4" style="padding: 0px;">
|
||||
<div class="product">
|
||||
<ul id="productInfo">
|
||||
<li>ID:<span class="grey">@Model[i].ID</span></li>
|
||||
@foreach (var item in CompanyList)
|
||||
{
|
||||
if (Model[i].CompanyID == item.ID)
|
||||
{
|
||||
<li>客户:<span class="grey"> @item.CompanyName </span> </li>
|
||||
}
|
||||
}
|
||||
@foreach (var item in ProductTypeList)
|
||||
{
|
||||
if (Model[i].ProductTypeID == item.ID)
|
||||
{
|
||||
<li>类型:<span class="grey">@item.ProductName</span></li>
|
||||
}
|
||||
}
|
||||
<li>名称:<span class="grey">@Model[i].ProductName</span></li>
|
||||
<li>工艺流程:<span class="grey">@Model[i].ProcessFlow</span></li>
|
||||
<li>录入人:<span class="grey">@Model[i].EnteredBy</span></li>
|
||||
<li>单价:<span class="grey">@Model[i].ReferencePrice</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-5 col-md-2 col-lg-2 imge" style="padding: 1px;">
|
||||
@*<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image">*@
|
||||
<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image" height="118">
|
||||
|
||||
</div>
|
||||
<div class="col-xs-3" style="padding: 1px;">
|
||||
<ul id="productImg">
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image2)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image3)" alt="暂无图片" width="50" height="39"> </li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12" style="padding: 0px;">
|
||||
<span class="remark">备注:<span class="grey">@Model[i].Remark</span></span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<!--页-->
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" id="projectBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
<script src="~/CxwPlugin/ProjectPage.js"></script>
|
||||
<script src="~/CxwPlugin/ProjectList.js"></script>
|
||||
88
Face.Web/Content/Views/CxwBasicFunc/_CompanyDetails.cshtml
Normal file
88
Face.Web/Content/Views/CxwBasicFunc/_CompanyDetails.cshtml
Normal file
@@ -0,0 +1,88 @@
|
||||
@model Face.Domain.Entities.Company
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" >@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyCompanyForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">公司名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入公司名称" name="CompanyName" class="form-control" value="@Model.CompanyName">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">公司行业</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入公司行业" name="Industry" class="form-control" value="@Model.Industry">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">公司地址</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入公司地址 如:(广东省深圳市龙岗区)" name="Region" class="form-control" value="@Model.Region">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">详细地址</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入公司详细地址" name="Address" class="form-control" value="@Model.Address">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine" onclick="excutedUpDate('btnModifyPLine','@Url.Action("ModifyCompany", "CxwBasicFunc")','modifyCompanyForm','@Url.Action("CompanyList", "CxwBasicFunc")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
79
Face.Web/Content/Views/CxwBasicFunc/_PLineDetails.cshtml
Normal file
79
Face.Web/Content/Views/CxwBasicFunc/_PLineDetails.cshtml
Normal file
@@ -0,0 +1,79 @@
|
||||
@model Face.Domain.Entities.ProductType
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyPLineForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">产品类型名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入类型名称" name="ProductName" class="form-control" value="@Model.ProductName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">说明</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入型号说明" name="Desc" class="form-control" value="@Model.Desc">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
249
Face.Web/Content/Views/CxwBasicFunc/_ProjectDetails.cshtml
Normal file
249
Face.Web/Content/Views/CxwBasicFunc/_ProjectDetails.cshtml
Normal file
@@ -0,0 +1,249 @@
|
||||
@model Face.Domain.Entities.Product
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
//string imagesrc = "";
|
||||
//if (Model.PreviewImage != null)
|
||||
//{
|
||||
// //imagesrc = "data:image/" + Url.Action("GetImgPostFixByBytes", "Home", Model.PreviewImage) + ";base64," + Convert.ToBase64String(Model.PreviewImage);
|
||||
// imagesrc = "data:image/jpg;base64," + Convert.ToBase64String(Model.PreviewImage);
|
||||
//}
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
List<Face.Domain.Entities.ProcessFlow> ProcessFlowList = Face.Services.Cache.CxwCacheHelp.GetProcessFlow();//工艺流程
|
||||
|
||||
string[] jurisdiction = new string[ProcessFlowList.Count];
|
||||
if (Model.ProcessFlow != null)
|
||||
{
|
||||
string str = Model.ProcessFlow;
|
||||
jurisdiction = str.Split(',');
|
||||
ViewBag.jur = jurisdiction;
|
||||
}
|
||||
}
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyProjectForm">
|
||||
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" name="ID" class="form-control" value="@Model.ID" readonly />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">产品名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
@*<input type="hidden" name="ID" value="@Model.ID" />*@
|
||||
<input type="text" placeholder="请输入产品名称" id="ProductName" name="ProductName" class="form-control" value="@Model.ProductName">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">客户名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b " name="CompanyID">
|
||||
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option @(Model.CompanyID == item.ID ? "selected" : "" ) value="@item.ID">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">产品类型</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="ProductTypeID">
|
||||
|
||||
@if (ProductTypeList != null && ProductTypeList.Count > 0)
|
||||
{
|
||||
foreach (var item in ProductTypeList)
|
||||
{
|
||||
<option @(Model.ProductTypeID == item.ID ? "selected" : "" ) value="@item.ID">@item.ProductName</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">参考单价</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入参考单价" name="ReferencePrice" class="form-control" value="@Model.ReferencePrice">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">工序流程</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" id="ProcessFlow" name="ProcessFlow" class="form-control">
|
||||
@for (int i = 0; i < ProcessFlowList.Count; i++)
|
||||
{
|
||||
<div class="i-checks"><label> <input type="checkbox" value="@ProcessFlowList[i].ID" @if (ViewBag.jur != null) { foreach (var item in jurisdiction) { @(item.ToInt() == ProcessFlowList[i].ID ? "checked='checked'" : "") } }> <i></i>@ProcessFlowList[i].ProcessName</label></div>
|
||||
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
<div id="img">
|
||||
<input type="hidden" id="img9" name="Image" />
|
||||
|
||||
@if (Model.Image1 != null && Model.Image1 != "")
|
||||
{
|
||||
<input type="hidden" id="img1" name="Image1" value="@(Model.Image1)" />
|
||||
}
|
||||
@if (Model.Image2 != null && Model.Image2 != "")
|
||||
{
|
||||
<input type="hidden" id="img2" name="Image2" value="@(Model.Image2)" />
|
||||
}
|
||||
@if (Model.Image3 != null && Model.Image3 != "")
|
||||
{
|
||||
<input type="hidden" id="img3" name="Image3" value="@(Model.Image3)" />
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">参考图片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择多图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
@*@if (Model.Image1 != null && Model.Image1 != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image1)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg1">删除</button></th>
|
||||
</tr>}
|
||||
@if (Model.Image2 != null && Model.Image2 != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image2)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg2">删除</button></th>
|
||||
</tr>
|
||||
}
|
||||
@if (Model.Image3 != null && Model.Image3 != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image3)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg3">删除</button></th>
|
||||
</tr>
|
||||
}*@
|
||||
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
@*<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>*@
|
||||
<br />
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-3"></div>
|
||||
<div class="col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyProject" onclick="excutedUpDate('btnModifyProject','@Url.Action("ModifyProject", "CxwBasicFunc")','modifyProjectForm','@Url.Action("ProjectList", "CxwBasicFunc")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
|
||||
var url3 = "/Content/layui/layui.js";
|
||||
$.getScript(url3);
|
||||
|
||||
|
||||
var url4 = "/CxwPlugin/ProjectDetails.js";
|
||||
$.getScript(url4);
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@*<script src="~/Content/layui/layui.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/ProjectDetails.js"></script>*@
|
||||
|
||||
|
||||
|
||||
68
Face.Web/Content/Views/CxwBasicFunc/_ProjectListdata.cshtml
Normal file
68
Face.Web/Content/Views/CxwBasicFunc/_ProjectListdata.cshtml
Normal file
@@ -0,0 +1,68 @@
|
||||
@model List<Face.Domain.Entities.Product>
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
}
|
||||
<div class="table-responsive">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<div class="row productData" style="margin: 0px;border-bottom:1px solid #cccccc;" onclick="gotoDetailPartial('@Url.Action("ProjectDetails", "CxwBasicFunc")',@Model[i].ID,'projectBox_Content')">
|
||||
<div class="col-xs-4" style="padding: 0px;">
|
||||
<div class="product">
|
||||
<ul id="productInfo">
|
||||
<li>ID:<span class="grey">@Model[i].ID</span></li>
|
||||
@foreach (var item in CompanyList)
|
||||
{
|
||||
if (Model[i].CompanyID == item.ID)
|
||||
{
|
||||
<li>客户:<span class="grey"> @item.CompanyName </span> </li>
|
||||
}
|
||||
}
|
||||
@foreach (var item in ProductTypeList)
|
||||
{
|
||||
if (Model[i].ProductTypeID == item.ID)
|
||||
{
|
||||
<li>类型:<span class="grey">@item.ProductName</span></li>
|
||||
}
|
||||
}
|
||||
<li>名称:<span class="grey">@Model[i].ProductName</span></li>
|
||||
<li>工艺流程:<span class="grey">@Model[i].ProcessFlow</span></li>
|
||||
<li>录入人:<span class="grey">@Model[i].EnteredBy</span></li>
|
||||
<li>单价:<span class="grey">@Model[i].ReferencePrice</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-5 imge" style="padding: 1px;">
|
||||
@*<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image">*@
|
||||
<img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)&ftp=image" height="118">
|
||||
</div>
|
||||
<div class="col-xs-3" style="padding: 1px;">
|
||||
<ul id="productImg">
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image1)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image2)" alt="暂无图片" width="50" height="39"> </li>
|
||||
<li><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image3)" alt="暂无图片" width="50" height="39"> </li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12" style="padding: 0px;">
|
||||
<span class="remark">备注:<span class="grey">@Model[i].Remark</span></span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
|
||||
<script src="~/CxwPlugin/ProjectPage.js"></script>
|
||||
<script src="~/CxwPlugin/ProjectList.js"></script>
|
||||
|
||||
80
Face.Web/Content/Views/CxwHome/BasisFun.cshtml
Normal file
80
Face.Web/Content/Views/CxwHome/BasisFun.cshtml
Normal file
@@ -0,0 +1,80 @@
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>基础数据</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="contact-box center-version">
|
||||
<a href="@Url.Action("CompanyList", "CxwBasicFunc")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/006.png">
|
||||
<h3 class="m-b-xs"><strong>客户信息</strong></h3>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="contact-box center-version">
|
||||
<a href="@Url.Action("PLineList", "CxwBasicFunc")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/006.png">
|
||||
|
||||
<h3 class="m-b-xs"><strong>产品类型</strong></h3>
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="contact-box center-version">
|
||||
<a href="@Url.Action("ProjectList", "CxwBasicFunc")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/006.png">
|
||||
|
||||
|
||||
<h3 class="m-b-xs"><strong>产品信息</strong></h3>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@*<div class="col-lg-3 col-xs-6">
|
||||
<div class="contact-box center-version">
|
||||
<a href="@Url.Action("ProjectList", "JournalList")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/006.png">
|
||||
|
||||
|
||||
<h3 class="m-b-xs"><strong>流水帐</strong></h3>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.contact-box.center-version > a img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
</style>
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
|
||||
336
Face.Web/Content/Views/CxwHome/Index.cshtml
Normal file
336
Face.Web/Content/Views/CxwHome/Index.cshtml
Normal file
@@ -0,0 +1,336 @@
|
||||
@model List<Face.Domain.Application.Statistics>
|
||||
@{
|
||||
Layout = "/Views/Shared/_Layout.cshtml";
|
||||
var Umodel = Face.Services.CxwUserLoginHelpre.CurrentUser();
|
||||
}
|
||||
@*<link href="~/Theme/css/plugins/dataTables/datatables.min.css" rel="stylesheet" />*@
|
||||
<link href="~/NewFrame/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css" />
|
||||
<style>
|
||||
.statistics > tr > td {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
center p {
|
||||
font-size: 14px;
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
.business > td, .procurement > td, .life > td, .fixed > td {
|
||||
font-size: 14px;
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
.describe {
|
||||
font-size: 13px;
|
||||
color: #808080;
|
||||
}
|
||||
|
||||
td > strong {
|
||||
color: black;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
td > strong > span {
|
||||
font-size: 13px;
|
||||
color: #1E90FF;
|
||||
}
|
||||
.describe p{
|
||||
margin-bottom:0px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="ibox-content" style="padding:0px;">
|
||||
|
||||
@if (Umodel.AdminName == "admin")
|
||||
{
|
||||
<button class="btn btn-xs btn-info" type="button" onclick="clearCache()">更新账单缓存</button>
|
||||
}
|
||||
<div class="ibox-content text-center" id="step1" style="padding:0px;">
|
||||
<div class="p-sm" style="padding:0px;">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="@Url.Action("JournalList", "CxwJournalLog")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/008.png">
|
||||
<h6 class="m-b-xs"><strong>流水账</strong></h6>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("ReceivableList", "BillingRecords")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/008.png">
|
||||
<h6 class="m-b-xs"><strong>应收账</strong></h6>
|
||||
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="@Url.Action("PaymentList", "BillingRecords")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/008.png">
|
||||
<h6 class="m-b-xs"><strong>应付账</strong></h6>
|
||||
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@if (Umodel.AdminName == "admin" || Umodel.AdminName == "文祚平")
|
||||
{
|
||||
<td>
|
||||
<a href="@Url.Action("OperationLog", "Jurisdiction")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/009.png">
|
||||
<h6 class="m-b-xs"><strong>操作日志</strong></h6>
|
||||
|
||||
</a>
|
||||
</td>
|
||||
}
|
||||
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--交易记录-->
|
||||
<table class="table table-bordered" id="money">
|
||||
<tbody>
|
||||
<tr style="word-wrap:break-word;">
|
||||
<td>流水盈余<br /><strong style="padding-top:8px;font-size:16px;@(ViewBag.journal>0?"color:green;":"color:red;")">@ViewBag.journal</strong></td>
|
||||
|
||||
<td>应收盈余<br /><strong style="padding-top:8px;font-size:16px;@(ViewBag.receivable>0?"color:green;":"color:red;")">@ViewBag.receivable</strong></td>
|
||||
|
||||
<td>应付余款<br /><strong style="padding-top:8px;font-size:16px;">@ViewBag.payment</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">总盈余<br /><strong style="padding-top:8px;font-size:16px;@(ViewBag.Money>0?"color:green;":"color:red;")">@ViewBag.Money</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--交易统计-->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="ibox-content" style="padding:0px;">
|
||||
<div class="card-body table-responsive p-0">
|
||||
<table class="table table-sm table-striped table-bordered table-hover" id="editable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>年月</th>
|
||||
<th>收入</th>
|
||||
<th>支出</th>
|
||||
<th>余额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="statistics">
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr class="gradeX">
|
||||
<td class=" sorting_1"><span class="row-details row-details-close" data_id="@i">@Model[i].Date.Value.ToString("yyyy/MM")</span> </td>
|
||||
<td>@Model[i].Receivable</td>
|
||||
<td>@Model[i].Payment</td>
|
||||
<td style=@(Model[i].TotalMoney>0?"color:green;":"color:red;")>@Model[i].TotalMoney</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="describe">
|
||||
<!--写描述-->
|
||||
<p>固定支出:房租,水电、员工工资、员工借支</p>
|
||||
<p>生活支出:生活费、其他</p>
|
||||
<p>采购支出:采购(应付)、办公用品、工具设备、生产物料</p>
|
||||
<p>业务支出:快递费、业务餐费、出差餐补、业务提成、交通费、税务</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="ibox float-e-margins" id="orderInfo_Box">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="table-responsive" id="ordersPlannedSpeedBox_Content">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="table-responsive" id="detailsBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.contact-box.center-version > a img {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
</style>
|
||||
<script src="~/Theme/js/plugins/dataTables/datatables.min.js"></script>
|
||||
<script src="~/NewFrame/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
@*<script src="~/Theme/js/bootstrap-table-expandable.js"></script>*@
|
||||
|
||||
<script>
|
||||
|
||||
var oTable;
|
||||
$(document).ready(function () {
|
||||
|
||||
oTable = $('#editable').dataTable({
|
||||
"oLanguage": {
|
||||
"oAria": {
|
||||
"sSortAscending": " - click/return to sort ascending",
|
||||
"sSortDescending": " - click/return to sort descending"
|
||||
},
|
||||
"sLengthMenu": "显示 _MENU_ 记录",
|
||||
"sZeroRecords": "对不起,查询不到任何相关数据",
|
||||
"sEmptyTable": "未有相关数据",
|
||||
"sLoadingRecords": "正在加载数据-请等待...",
|
||||
"sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_ 条记录。",
|
||||
"sInfoEmpty": "当前显示0到0条,共0条记录",
|
||||
"sInfoFiltered": "(数据库中共为 _MAX_ 条记录)",
|
||||
"sProcessing": "<img src='../resources/user_share/row_details/select2-spinner.gif'/> 正在加载数据...",
|
||||
"sSearch": "模糊查询:",
|
||||
"sUrl": "",
|
||||
//多语言配置文件,可将oLanguage的设置放在一个txt文件中,例:Javascript/datatable/dtCH.txt
|
||||
"oPaginate": {
|
||||
"sFirst": "首页",
|
||||
"sPrevious": " 上一页 ",
|
||||
"sNext": " 下一页 ",
|
||||
"sLast": " 尾页 "
|
||||
}
|
||||
},
|
||||
"bFilter": false,
|
||||
"bLengthChange": false,
|
||||
"pageLength": 20,
|
||||
"order": [
|
||||
[0, 'desc']//第一列倒序
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.table').on('click', 'tbody.statistics>tr',
|
||||
function () {
|
||||
var nTr = $(this)[0];
|
||||
var date = $(this).children().children().text();
|
||||
if (oTable.fnIsOpen(nTr)) //判断是否已打开
|
||||
{
|
||||
/* This row is already open - close it */
|
||||
$(this).children().children().addClass("row-details-close").removeClass("row-details-open");
|
||||
oTable.fnClose(nTr);
|
||||
} else {
|
||||
/* Open this row */
|
||||
$(this).children().children().addClass("row-details-open").removeClass("row-details-close");
|
||||
GetConsumeInfo(nTr, date);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//统计某年月的支出
|
||||
function GetConsumeInfo(nTr, date) {
|
||||
$.ajax({
|
||||
url: "/CxwHome/ConsumeInfo",
|
||||
data: { "date": date },
|
||||
type: "post",
|
||||
success: function (data) {
|
||||
var sOut = "";
|
||||
//console.log(data);
|
||||
//for (var i = 0; i < data.length; i++) {
|
||||
//固定支出
|
||||
sOut += '<table class="table table-sm table-striped Info " onclick="stopBubbling()" border="0"><tbody>';
|
||||
|
||||
sOut += ' <tr class="fixed"><td style="width:30%;"><strong><span>固定支出:</span><br/>' + data["固定支出"] + '</strong></td>';
|
||||
sOut += '<td>(房租水电:<strong>' + (data["Chummage"] == undefined ? 0 : data["Chummage"]) + '</strong>' +
|
||||
',员工工资:<strong>' + (data["Salary"] == undefined ? 0 : data["Salary"]) + '</strong>' +
|
||||
',员工借支:<strong>' + (data["Advance"] == undefined ? 0 : data["Advance"]) + '</strong>' + ')</td>';
|
||||
|
||||
sOut += '</tr>';
|
||||
|
||||
//生活支出
|
||||
sOut += ' <tr class="life"><td style="width:30%;"><strong><span>生活支出:</span><br/>' + data["生活支出"] + '</strong></td>';
|
||||
sOut += '<td>(生活费:<strong>' + (data["Alimony"] == undefined ? 0 : data["Alimony"]) + '</strong>' +
|
||||
',其他:<strong>' + (data["Rests"] == undefined ? 0 : data["Rests"]) + '</strong>' + ')</td>';
|
||||
sOut += '</tr>';
|
||||
|
||||
//采购支出
|
||||
sOut += ' <tr class="procurement"><td style="width:30%;"><strong><span>采购支出:</span><br/>' + data["采购支出"] + '</strong></td>';
|
||||
sOut += '<td>(采购(应付):<strong>' + (data["procurement"] == undefined ? 0 : data["procurement"]) + '</strong>' +
|
||||
',办公用品:<strong>' + (data["Office"] == undefined ? 0 : data["Office"]) + '</strong>' +
|
||||
',工具设备:<strong>' + (data["Tool"] == undefined ? 0 : data["Tool"]) + '</strong>' +
|
||||
',生产物料:<strong>' + (data["Material"] == undefined ? 0 : data["Material"]) + '</strong>' + ')</td>';
|
||||
sOut += '</tr>';
|
||||
|
||||
//业务支出
|
||||
sOut += ' <tr class="business"><td style="width:30%;"><strong><span>业务支出:</span><br/>' + data["业务支出"] + '</strong></td>';
|
||||
sOut += '<td>(快递费:<strong>' + (data["express"] == undefined ? 0 : data["express"]) + '</strong>' +
|
||||
',业务餐费:<strong>' + (data["BusinessMeals"] == undefined ? 0 : data["BusinessMeals"]) + '</strong>' +
|
||||
',出差餐补:<strong>' + (data["MealSubsidy"] == undefined ? 0 : data["MealSubsidy"]) + '</strong>' +
|
||||
',业务提成:<strong>' + (data["Commission"] == undefined ? 0 : data["Commission"]) + '</strong>' +
|
||||
',交通费:<strong>' + (data["Fare"] == undefined ? 0 : data["Fare"]) + '</strong>' +
|
||||
',税务:<strong>' + (data["Tax"] == undefined ? 0 : data["Tax"]) + '</strong>' + ')</td>';
|
||||
sOut += '</tr>';
|
||||
sOut += '</tbody></table>';
|
||||
|
||||
|
||||
if (data["未知支出"] != undefined) {
|
||||
sOut += '<center> <p style="width:70%">未知支出:' + data["未知支出"] + '</p></center>';
|
||||
}
|
||||
//}
|
||||
//oTable.fnOpen(nTr, sOut, 'details');
|
||||
oTable.fnOpen(nTr, sOut, 'details');
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
function stopBubbling() {
|
||||
window.event ? window.event.cancelBubble = true : e.stopPropagation();
|
||||
}
|
||||
//清除缓存
|
||||
function clearCache() {
|
||||
$.ajax({
|
||||
url: "/CxwHome/clearCache",
|
||||
type: "post",
|
||||
success: function (res) {
|
||||
if (res.Status != 200) {
|
||||
$.toastr.error('失败! <br />' + res.Message, {
|
||||
time: 3000,
|
||||
position: 'top-center'
|
||||
});
|
||||
} else {
|
||||
$.toastr.success('清除成功', {
|
||||
time: 3000,
|
||||
position: 'top-center'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
17
Face.Web/Content/Views/CxwHome/Invariant.cshtml
Normal file
17
Face.Web/Content/Views/CxwHome/Invariant.cshtml
Normal file
@@ -0,0 +1,17 @@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<div id="topoContent">
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
gotoAction('/CxwJournalLog/JournalList');
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
56
Face.Web/Content/Views/CxwHome/JournalLog.cshtml
Normal file
56
Face.Web/Content/Views/CxwHome/JournalLog.cshtml
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>交易信息</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class="contact-box center-version">
|
||||
<a href="@Url.Action("JournalList", "CxwJournalLog")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/006.png">
|
||||
<h3 class="m-b-xs"><strong>流水帐</strong></h3>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@*<div class="col-lg-3 col-xs-6">
|
||||
<div class="contact-box center-version">
|
||||
<a href="@Url.Action("DeliverList", "CxwJournalLog")">
|
||||
<img alt="image" class="img-circle" src="~/Images/Project/006.png">
|
||||
|
||||
<h3 class="m-b-xs"><strong>送货记录</strong></h3>
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.contact-box.center-version > a img {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
45
Face.Web/Content/Views/CxwHome/NoAuthority.cshtml
Normal file
45
Face.Web/Content/Views/CxwHome/NoAuthority.cshtml
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
ViewBag.Title = "您没有访问此页面的权限";
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Face | @ViewBag.Title</title>
|
||||
|
||||
<link href="~/Theme/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="~/Theme/font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
<link href="~/Theme/css/animate.css" rel="stylesheet">
|
||||
<link href="~/Theme/css/style.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body class="gray-bg">
|
||||
|
||||
|
||||
<div class="middle-box text-center animated fadeInDown">
|
||||
<h1>500</h1>
|
||||
<h3 class="font-bold">提示:</h3>
|
||||
|
||||
<div class="error-desc">
|
||||
您没有访问此页面的权限.<br />
|
||||
<br /><a href="javascript:history.go(-1)" class="btn btn-primary m-t">返回上一页</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="~/Theme/js/jquery-2.1.1.js"></script>
|
||||
<script src="~/Theme/js/bootstrap.min.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
77
Face.Web/Content/Views/CxwIncome/BillList.cshtml
Normal file
77
Face.Web/Content/Views/CxwIncome/BillList.cshtml
Normal file
@@ -0,0 +1,77 @@
|
||||
|
||||
@model List<Face.Domain.Entities.Bill>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">单据列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("BillDetails", "CxwIncome")','companyBox_Content')">添加单据</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>单据类型</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("BillDetails", "CxwIncome")',@Model[i].ID,'companyBox_Content')">
|
||||
<td>@Model[i].ID</td>
|
||||
<td>@Model[i].BillType</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- /.card-body -->
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="companyBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/common.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
81
Face.Web/Content/Views/CxwIncome/IncomeList.cshtml
Normal file
81
Face.Web/Content/Views/CxwIncome/IncomeList.cshtml
Normal file
@@ -0,0 +1,81 @@
|
||||
|
||||
@model List<Face.Domain.Entities.Income>
|
||||
@*@model Face.Domain.Entities.Company*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">收支列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("IncomeDetails", "CxwIncome")','companyBox_Content')">添加收支</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>收支类型</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("IncomeDetails", "CxwIncome")',@Model[i].ID,'companyBox_Content')">
|
||||
<td>@Model[i].ID</td>
|
||||
<td>@Model[i].IncomeType</td>
|
||||
<td>@Model[i].Remark</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="companyBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/common.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
88
Face.Web/Content/Views/CxwIncome/SupplierList.cshtml
Normal file
88
Face.Web/Content/Views/CxwIncome/SupplierList.cshtml
Normal file
@@ -0,0 +1,88 @@
|
||||
|
||||
@model List<Face.Domain.Entities.Supplier>
|
||||
@*@model Face.Domain.Entities.Company*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">供应商列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("SupplierDetails", "CxwIncome")','companyBox_Content')">添加供应商</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>供应商名称</th>
|
||||
<th>行业</th>
|
||||
<th>供应商地址</th>
|
||||
<th>详细地址</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("SupplierDetails", "CxwIncome")',@Model[i].ID,'companyBox_Content')">
|
||||
<td>@Model[i].ID</td>
|
||||
<td>@Model[i].SupplierName</td>
|
||||
<td>@Model[i].Industry</td>
|
||||
<td>@Model[i].Region</td>
|
||||
<td>@Model[i].Address</td>
|
||||
<td>@Model[i].CreateTime</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="companyBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/common.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/mobile-detect@1.4.4/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
67
Face.Web/Content/Views/CxwIncome/_BillDetails.cshtml
Normal file
67
Face.Web/Content/Views/CxwIncome/_BillDetails.cshtml
Normal file
@@ -0,0 +1,67 @@
|
||||
|
||||
@model Face.Domain.Entities.Bill
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyCompanyForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">收支类型</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入单据类型" name="BillType" class="form-control" value="@Model.BillType">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine" onclick="excutedUpDate('btnModifyPLine','@Url.Action("ModifyBill", "CxwIncome")','modifyCompanyForm','@Url.Action("BillList", "CxwIncome")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
72
Face.Web/Content/Views/CxwIncome/_IncomeDetails.cshtml
Normal file
72
Face.Web/Content/Views/CxwIncome/_IncomeDetails.cshtml
Normal file
@@ -0,0 +1,72 @@
|
||||
@model Face.Domain.Entities.Income
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" >@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyCompanyForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">收支类型</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入收支类型" name="IncomeType" class="form-control" value="@Model.IncomeType">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine" onclick="excutedUpDate('btnModifyPLine','@Url.Action("ModifyIncome", "CxwIncome")','modifyCompanyForm','@Url.Action("IncomeList", "CxwIncome")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
88
Face.Web/Content/Views/CxwIncome/_SupplierDetails.cshtml
Normal file
88
Face.Web/Content/Views/CxwIncome/_SupplierDetails.cshtml
Normal file
@@ -0,0 +1,88 @@
|
||||
|
||||
@model Face.Domain.Entities.Supplier
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyCompanyForm">
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">供应商名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入供应商名称" name="SupplierName" class="form-control" value="@Model.SupplierName">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">供应商行业</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入供应商行业" name="Industry" class="form-control" value="@Model.Industry">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">供应商地址</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入供应商地址 如:(广东省深圳市龙岗区)" name="Region" class="form-control" value="@Model.Region">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">详细地址</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入供应商详细地址" name="Address" class="form-control" value="@Model.Address">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPLine" onclick="excutedUpDate('btnModifyPLine','@Url.Action("ModifySupplier", "CxwIncome")','modifyCompanyForm','@Url.Action("SupplierList", "CxwIncome")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var url = "/Theme/js/jquery.form.min.js";
|
||||
$.getScript(url);
|
||||
|
||||
var url1 = "/CxwPlugin/basicfunc.js";
|
||||
$.getScript(url1);
|
||||
|
||||
var url2 = "/CxwPlugin/inspinia-partial.js";
|
||||
$.getScript(url2);
|
||||
|
||||
</script>
|
||||
97
Face.Web/Content/Views/CxwJournalLog/DeliverList.cshtml
Normal file
97
Face.Web/Content/Views/CxwJournalLog/DeliverList.cshtml
Normal file
@@ -0,0 +1,97 @@
|
||||
@model List<Face.Domain.Entities.DeliverGoodsLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="@Url.Action("JournalLog","CxwHome")">交易信息</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>流水账列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>送货记录表</h5>
|
||||
<div class="ibox-tools">
|
||||
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("DeliverDetails", "CxwJournalLog")','orderBox_Content')">添加送货记录</button>
|
||||
|
||||
<a class="collapse-link">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>订单号</th>
|
||||
<th>送货人</th>
|
||||
<th>送货时间</th>
|
||||
<th>签收图片</th>
|
||||
<th>备注</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartialNeedDate('@Url.Action("DeliverDetails", "CxwJournalLog")',@Model[i].ID,'orderBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].OrderNo</td>
|
||||
<td>@(Model[i].DeliverName)</td>
|
||||
<td>@(Model[i].DeliverGoodsTime.ToString("yyyy/MM/dd"))</td>
|
||||
@if (Model[i].Image != null && Model[i].Image != "")
|
||||
{
|
||||
<td><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image)" alt="暂无图片" style="width:30px;height:30px;" /></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td></td>
|
||||
}
|
||||
<td>@Model[i].Remark</td>
|
||||
<td>@(Model[i].CreateTime.ToString("yyyy/MM/dd HH:mm"))</td>
|
||||
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
286
Face.Web/Content/Views/CxwJournalLog/JournalList.cshtml
Normal file
286
Face.Web/Content/Views/CxwJournalLog/JournalList.cshtml
Normal file
@@ -0,0 +1,286 @@
|
||||
@model List<Face.Domain.Entities.JournalLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
List<Face.Domain.Entities.Income> IncomeList = Face.Services.Cache.CxwCacheHelp.GetIncomeList();//收支类型
|
||||
List<Face.Domain.Entities.Bill> BillList = Face.Services.Cache.CxwCacheHelp.GetBillList();//单据类型
|
||||
}
|
||||
<link href="~/Content/css/JournalList.css" rel="stylesheet" />
|
||||
|
||||
<link href="~/Theme/css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">流水账列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("JournaDetails", "CxwJournalLog")','orderBox_Content')"><a href="#orderBox_Content" style="color:white;">添加流水帐</a></button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
<select id="selectTime" class="form-control" style="display:inline;width:115px;">
|
||||
<option value="all">所有时间</option>
|
||||
<option value="month">按年月</option>
|
||||
<option value="appoint">指定</option>
|
||||
</select>
|
||||
<select class="SpendingType form-control" style="display:inline;width:130px;" name="SpendingType">
|
||||
<option value="0">所有类型</option>
|
||||
@foreach (var item in IncomeList)
|
||||
{
|
||||
<option value="@item.ID">@item.IncomeType</option>
|
||||
}
|
||||
</select>
|
||||
@*时间筛选*@
|
||||
<div style="display:inline;">
|
||||
<select class="year form-control" style="width:100px;" name="Year">
|
||||
<option value="2020">2020</option>
|
||||
<option value="2021" selected="selected">2021</option>
|
||||
<option value="2022">2022</option>
|
||||
</select>
|
||||
<select class="Months form-control" style="display:inline;width:100px;" name="Months">
|
||||
<option value="1">一月</option>
|
||||
<option value="2">二月</option>
|
||||
<option value="3">三月</option>
|
||||
<option value="4">四月</option>
|
||||
<option value="5">五月</option>
|
||||
<option value="6">六月</option>
|
||||
<option value="7">七月</option>
|
||||
<option value="8">八月</option>
|
||||
<option value="9">九月</option>
|
||||
<option value="10">十月</option>
|
||||
<option value="11">十一月</option>
|
||||
<option value="12">十二月</option>
|
||||
</select>
|
||||
|
||||
<div class="form-inline visible-*-block" id="data_5">
|
||||
<div class="input-daterange input-group visible-xs-2" id="datepicker">
|
||||
<input type="text" class="input-sm form-control" name="start" id="start" readonly />
|
||||
<span class="input-group-addon">至</span>
|
||||
<input type="text" class="input-sm form-control" name="end" id="end" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@*交易信息*@
|
||||
<div id="Info" class="row">
|
||||
<table class="table">
|
||||
<tr role="row">
|
||||
<td align="center">总记录<br /><strong><span class="numOrder" style="font-size:15px"> @ViewBag.num</span> </strong></td>
|
||||
<td align="center">合计支出<br /> <strong><span class="expenditure" style="font-size:15px"> @ViewBag.expenditure</span></strong></td>
|
||||
<td align="center">合计收入 <br /><strong><span class="income" style="font-size:15px"> @ViewBag.income</span></strong></td>
|
||||
<td align="center">
|
||||
合计盈余 <br /><strong>
|
||||
@if (ViewBag.money > 0)
|
||||
{<span class="money" style="font-size:15px;color:green;">@ViewBag.money</span>}
|
||||
else
|
||||
{<span class="money" style="font-size:15px;color:red;">@ViewBag.money</span>}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<div class="table-responsive" id="contentx">
|
||||
@*信息*@
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="numOrder"> @ViewBag.num</span>
|
||||
<span class="expenditure"> @ViewBag.expenditure</span>
|
||||
<span class="income"> @ViewBag.income</span>
|
||||
<span class="money">@ViewBag.money</span>
|
||||
</div>
|
||||
<table class="table dataTables-example" border="0">
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="tbodyList" onclick="gotoDetailPartialNeedDate('@Url.Action("JournaDetails", "CxwJournalLog")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
<td rowspan="5" style="margin:0px;padding:0px;width:75px">
|
||||
<input type="hidden" id="ID" value="@Model[i].ID" />
|
||||
<div class="lightBoxGallery">
|
||||
<a href="/CxwBasicFunc/FileImage?url=@(Model[i].Image)&ftp=Image" data-gallery=""><img id="images" src="/CxwBasicFunc/FileImage?url=@(Model[i].Image)" width="85" height="85"></a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="text-align:left" height="20px">ID :<span class="grey ID">@(Model[i].ID)</span></td>
|
||||
|
||||
<td rowspan="3" style="text-align:left;font-size:16px;height:60px;">
|
||||
<span class="HandlerName" style="margin:10px 0px;">@Model[i].HandlerName</span><br />
|
||||
@if (Model[i].IncomeMoney != null)
|
||||
{
|
||||
<p style="color:green;">收入:<span style="font-size:15.5px" class="IncomeMoney">@Model[i].IncomeMoney</span></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p style="color:red;">支出:<span style="font-size:15.5px" class="ExpenditureMoney">@Model[i].ExpenditureMoney</span></p>
|
||||
}
|
||||
</td>
|
||||
|
||||
|
||||
<td rowspan="3" style="height:80px">
|
||||
|
||||
@if (Model[i].HandlerConfirm == true)
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-success btn-xs">经手人</button><br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-danger btn-xs">经手人</button><br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm == true)
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-success btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-danger btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
@if (Model[i].ShareholdersConfirm == true)
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-primary btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-danger btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm != true && Model[i].Exist != true)
|
||||
{
|
||||
<button type="button" id="del" onclick="DelJournal(@Model[i].ID,@i)" class="btn btn-danger btn-xs">删除</button>
|
||||
}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">日期:<span class="grey OccurrenceTime">@(Model[i].OccurrenceTime == null ? null : @Model[i].OccurrenceTime.Value.ToString("yyyy/MM/dd"))</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">交易方:<span class="grey OccurrenceTime">@Model[i].Barterer</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr height="18px">
|
||||
|
||||
@if (BillList != null && BillList.Count > 0)
|
||||
{
|
||||
foreach (var item in BillList)
|
||||
{
|
||||
if (Model[i].BillID == item.ID)
|
||||
{
|
||||
<td style="text-align:left" height="18px">单据:<span class="grey BillType"> @(item.BillType)</span></td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (IncomeList != null && IncomeList.Count > 0)
|
||||
{
|
||||
foreach (var item in IncomeList)
|
||||
{
|
||||
if (Model[i].IncomeID == item.ID)
|
||||
{
|
||||
<td colspan="2" style="text-align:left" height="18px">
|
||||
类型:
|
||||
<span class="grey IncomeType">
|
||||
@(item.IncomeType)
|
||||
@if (item.ID == 15 || item.ID == 18)
|
||||
{
|
||||
@(Model[i].ChequeID == null ? "" : "ID:" + Model[i].ChequeID)
|
||||
}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" colspan="3">备注:<span class="grey Remark">@Model[i].Remark</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
}
|
||||
|
||||
</table>
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
@*<div class="card-footer">
|
||||
|
||||
</div>*@
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@*自定义*@
|
||||
<script src="~/CxwPlugin/page.js"></script>
|
||||
<script src="~/CxwPlugin/JournalList.js"></script>
|
||||
|
||||
@*<script src="~/Theme/js/plugins/blueimp/jquery.blueimp-gallery.min.js"></script>*@
|
||||
<script src="~/Theme/js/plugins/sweetalert/sweetalert.min.js"></script>
|
||||
<script src="~/Theme/js/plugins/iCheck/icheck.min.js"></script>
|
||||
|
||||
@*时间*@
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
@*获取客户端信息*@
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
|
||||
<script>
|
||||
$(".year").hide();
|
||||
$(".Months").hide();
|
||||
$("#data_5").hide();//隐藏时间
|
||||
|
||||
$('#data_5 .input-daterange').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
132
Face.Web/Content/Views/CxwJournalLog/_DeliverDetails.cshtml
Normal file
132
Face.Web/Content/Views/CxwJournalLog/_DeliverDetails.cshtml
Normal file
@@ -0,0 +1,132 @@
|
||||
@model Face.Domain.Entities.DeliverGoodsLog
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
}
|
||||
|
||||
@*<link href="~/Theme/css/bootstrap.min.css" rel="stylesheet"/>*@
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>@ViewBag.title</h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link-partial">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link-partial">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">订单号</label>
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入订单号" name="OrderNo" class="form-control" value="@Model.OrderNo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">送货人</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入送货人" name="DeliverName" class="form-control" value="@Model.DeliverName">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="data_1">
|
||||
<label class="col-md-3 control-label">送货时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" class="form-control" name="DeliverGoodsTime" value="@Model.DeliverGoodsTime" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">签收图片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择一张图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image)" alt="暂无图片" style="width:30px;height:30px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg">删除</button></th>
|
||||
</tr>
|
||||
}
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="img">
|
||||
@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<input type="hidden" id="images" name="Image" value="@(Model.Image)" />
|
||||
}
|
||||
</div>
|
||||
<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyPLine", "CxwJournalLog")','modifyOrderInternalForm','@Url.Action("DeliverList", "CxwJournalLog")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/CxwPlugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="~/Theme/js/bootstrap.min.js"></script>
|
||||
<script src="~/CxwPlugin/Images.js"></script>
|
||||
283
Face.Web/Content/Views/CxwJournalLog/_JournaDetails.cshtml
Normal file
283
Face.Web/Content/Views/CxwJournalLog/_JournaDetails.cshtml
Normal file
@@ -0,0 +1,283 @@
|
||||
@model Face.Domain.Entities.JournalLog
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.Income> IncomeList = Face.Services.Cache.CxwCacheHelp.GetIncomeList();//收支类型
|
||||
List<Face.Domain.Entities.Bill> BillList = Face.Services.Cache.CxwCacheHelp.GetBillList();//单据类型
|
||||
List<Face.Domain.Entities.AdminUser> UserList = Face.Services.Cache.CxwCacheHelp.GetUserList();//用户
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.Supplier> SupplierList = Face.Services.Cache.CxwCacheHelp.GetSupplierList();//供应商
|
||||
}
|
||||
|
||||
<style>
|
||||
tbody > tr > td:nth-child(3) {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
tbody > tr > td:nth-child(4) {
|
||||
margin-right: -15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@*<link href="/Content/layui/layui.js" />
|
||||
<link href="/Content/layui/css/modules/laydate/default/laydate.css" />
|
||||
<link href="/Content/layui/css/modules/layer/default/layer.css" />
|
||||
<link href="/Content/layui/css/modules/code.css" />*@
|
||||
|
||||
|
||||
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" style="@(ViewBag.title!="添加流水账"?"color:blue;":"color:red;")">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input class="form-control" type="text" value="@Model.ID" name="ID" readonly>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">经手人</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="HandlerName">
|
||||
|
||||
@if (UserList != null && UserList.Count > 0)
|
||||
{
|
||||
foreach (var item in UserList)
|
||||
{
|
||||
if (item.AdminName != "admin")
|
||||
{
|
||||
<option @(Model.HandlerName == item.AdminName ? "selected" : "" ) value="@item.AdminName">@item.AdminName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">收入</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入收入" name="IncomeMoney" id="IncomeMoney" class="form-control" value="@Model.IncomeMoney">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">支出</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入支出" name="ExpenditureMoney" id="ExpenditureMoney" class="form-control" value="@Model.ExpenditureMoney">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">收支类型</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="IncomeID">
|
||||
<option value="">请选择收支类型</option>
|
||||
@if (IncomeList != null && IncomeList.Count > 0)
|
||||
{
|
||||
foreach (var item in IncomeList)
|
||||
{
|
||||
<option @(Model.IncomeID == item.ID ? "selected" : "" ) value="@item.ID">@item.IncomeType</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!--客户 供应商 临时-->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">交易方</label>
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="i-checks">
|
||||
<label> <input type="radio" value="option2" name="a"> <i></i> 供应商</label>
|
||||
<label> <input type="radio" value="option1" name="a"> <i></i> 客户</label>
|
||||
<label> <input type="radio" checked value="option3" name="a"> <i></i> 临时</label>
|
||||
<input class="form-control" id="Barterers" type="hidden" name="Barterer" value="@Model.Barterer" />
|
||||
<select class="Supplier form-control m-b" name="SupplierName" style="display:none;">
|
||||
@if (SupplierList != null && SupplierList.Count > 0)
|
||||
{
|
||||
foreach (var item in SupplierList)
|
||||
{
|
||||
<option value="@item.SupplierName">@item.SupplierName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<select class="Company form-control m-b" name="CompanyName" style="display:none;">
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option value="@item.CompanyName">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<input class="form-control temporary" type="text" placeholder="请输入临时交易方" value="" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--应收 应付 默认 单选框-->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">交易方</label>
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" id="counterparty" name="c" value="" />
|
||||
<div class="i-checks">
|
||||
<label> <input type="radio" class="receipt0" id="zero" value="receipt0" name="receivable"> <i></i> 应付账单</label>
|
||||
<label> <input type="radio" class="receipt1" id="two" value="receipt1" name="receivable"> <i></i> 应收账单</label>
|
||||
<label> <input type="radio" class="receipt2" id="one" value="receipt2" name="receivable" checked> <i></i> 默认账单</label>
|
||||
</div>
|
||||
<div id="Bill">
|
||||
<table class="table" style="margin-left:14px;" id="BillLog">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>ID</th>
|
||||
<th>日期</th>
|
||||
<th>金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<p>输入金额:<span class="receipts"></span></p>
|
||||
<p>账单笔数:<span class="BillCount"></span></p>
|
||||
<p>账单总额:<span class="BillMoney" style="font-size:15px"></span></p>
|
||||
<p>账单-金额差额:<span class="BillPrice" style="font-size:15px"></span></p>
|
||||
<p style="color:blue;">差额将自动录入到对应账单</p><!--<i class="fa fa-exclamation" style="color:red;"></i>-->
|
||||
<input type="hidden" id="BillingID" name="BillingID" placeholder="应收账单ID" />
|
||||
<input type="hidden" id="PaymentID" name="PaymentID" placeholder="应付账单ID" />
|
||||
<input type="hidden" id="margin" name="margin" placeholder="差额" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">单据类型</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="billID">
|
||||
|
||||
@if (BillList != null && BillList.Count > 0)
|
||||
{
|
||||
foreach (var item in BillList)
|
||||
{
|
||||
<option @(Model.BillID == item.ID ? "selected" : "" ) value="@item.ID">@item.BillType</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row" id="data_1">
|
||||
<label class="col-md-3 control-label">发生时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" name="OccurrenceTime" class="form-control" value="@(Model.OccurrenceTime!=null ? Model.OccurrenceTime.Value.ToString("yyyy/MM/dd"):DateTime.Now.ToString("yyyy/MM/dd"))" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">单据图片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="img">
|
||||
@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<input type="hidden" id="images" name="Image" value="@(Model.Image)" />
|
||||
}
|
||||
</div>
|
||||
<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" style="width:94px" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyProject", "CxwJournalLog")','modifyOrderInternalForm','@Url.Action("JournalList", "CxwJournalLog")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/CxwPlugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<!--layui-->
|
||||
@*<script src="~/Theme/layui/layui.js"></script>*@
|
||||
<script src="~/CxwPlugin/Images.js"></script>
|
||||
<script src="~/CxwPlugin/JournaDetails.js"></script>
|
||||
127
Face.Web/Content/Views/CxwJournalLog/_JournalInfo.cshtml
Normal file
127
Face.Web/Content/Views/CxwJournalLog/_JournalInfo.cshtml
Normal file
@@ -0,0 +1,127 @@
|
||||
@model Face.Domain.Entities.JournalLog
|
||||
|
||||
|
||||
<style>
|
||||
*{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
tr>td:first-child{
|
||||
text-align:right;
|
||||
}
|
||||
tr>td:last-child{
|
||||
text-align:left;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table class="table small m-b-xs">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
ID:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
经手人:
|
||||
</td>
|
||||
<td>
|
||||
@Model.HandlerName
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
收入:
|
||||
</td>
|
||||
<td>
|
||||
@Model.IncomeMoney
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
支出:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ExpenditureMoney
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
交易方:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Barterer
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
收支类型:
|
||||
</td>
|
||||
<td>
|
||||
@Model.IncomeID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
经手人确认时间:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.HandlerTime
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
财务确认:
|
||||
</td>
|
||||
<td>
|
||||
@Model.FinanceConfirm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
财务确认时间:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.FinanceTime
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
股东确认:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ShareholdersConfirm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
股东确认时间:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ShareholdersTime
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
录入时间:
|
||||
</td>
|
||||
<td>
|
||||
@Model.OccurrenceTime.Value.ToString("yyyy/MM/dd")
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
备注:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Remark
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
148
Face.Web/Content/Views/CxwJournalLog/_JournalListdata.cshtml
Normal file
148
Face.Web/Content/Views/CxwJournalLog/_JournalListdata.cshtml
Normal file
@@ -0,0 +1,148 @@
|
||||
@model List<Face.Domain.Entities.JournalLog>
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.Income> IncomeList = Face.Services.Cache.CxwCacheHelp.GetIncomeList();//收支类型
|
||||
List<Face.Domain.Entities.Bill> BillList = Face.Services.Cache.CxwCacheHelp.GetBillList();//单据类型
|
||||
}
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="numOrder"> @ViewBag.num</span>
|
||||
<span class="expenditure"> @ViewBag.expenditure</span>
|
||||
<span class="income"> @ViewBag.income</span>
|
||||
<span class="money">@ViewBag.money</span>
|
||||
</div>
|
||||
<table class="table dataTables-example" border="0">
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="tbodyList" onclick="gotoDetailPartialNeedDate('@Url.Action("JournaDetails", "CxwJournalLog")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
<td rowspan="5" style="margin:0px;padding:0px;width:75px">
|
||||
<input type="hidden" id="ID" value="@Model[i].ID" />
|
||||
<div class="lightBoxGallery">
|
||||
<a href="/CxwBasicFunc/FileImage?url=@(Model[i].Image)&ftp=Image" data-gallery=""><img id="images" src="/CxwBasicFunc/FileImage?url=@(Model[i].Image)" width="85" height="85"></a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="text-align:left" height="20px">ID :<span class="grey ID">@(Model[i].ID)</span></td>
|
||||
|
||||
<td rowspan="3" style="text-align:left;font-size:16px;height:60px;">
|
||||
<span class="HandlerName" style="margin:10px 0px;">@Model[i].HandlerName</span><br />
|
||||
@if (Model[i].IncomeMoney != null)
|
||||
{
|
||||
<p style="color:green;">收入:<span style="font-size:15.5px" class="IncomeMoney">@Model[i].IncomeMoney</span></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p style="color:red;">支出:<span style="font-size:15.5px" class="ExpenditureMoney">@Model[i].ExpenditureMoney</span></p>
|
||||
}
|
||||
</td>
|
||||
|
||||
|
||||
<td rowspan="3" style="height:80px">
|
||||
|
||||
@if (Model[i].HandlerConfirm == true)
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-primary btn-xs">经手人</button><br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-danger btn-xs">经手人</button><br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm == true)
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-primary btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-danger btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
@if (Model[i].ShareholdersConfirm == true)
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-primary btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-danger btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm != true && Model[i].Exist != true)
|
||||
{
|
||||
<button type="button" id="del" onclick="DelJournal(@Model[i].ID,@i)" class="btn btn-danger btn-xs">删除</button>
|
||||
}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">日期:<span class="grey OccurrenceTime">@(Model[i].OccurrenceTime == null ? null : @Model[i].OccurrenceTime.Value.ToString("yyyy/MM/dd"))</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">交易方:<span class="grey OccurrenceTime">@Model[i].Barterer</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr height="18px">
|
||||
|
||||
@if (BillList != null && BillList.Count > 0)
|
||||
{
|
||||
foreach (var item in BillList)
|
||||
{
|
||||
if (Model[i].BillID == item.ID)
|
||||
{
|
||||
<td style="text-align:left" height="18px">单据:<span class="grey BillType"> @(item.BillType)</span></td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (IncomeList != null && IncomeList.Count > 0)
|
||||
{
|
||||
foreach (var item in IncomeList)
|
||||
{
|
||||
if (Model[i].IncomeID == item.ID)
|
||||
{
|
||||
<td colspan="2" style="text-align:left" height="18px">
|
||||
类型:
|
||||
<span class="grey IncomeType">
|
||||
@(item.IncomeType)
|
||||
@if (item.ID == 15 || item.ID == 18)
|
||||
{
|
||||
@(Model[i].ChequeID == null ? "" : "ID:" + Model[i].ChequeID)
|
||||
}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" colspan="3">备注:<span class="grey Remark">@Model[i].Remark</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
}
|
||||
|
||||
</table>
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
|
||||
<script src="~/CxwPlugin/page.js"></script>
|
||||
<script src="~/CxwPlugin/JournalList.js"></script>
|
||||
98
Face.Web/Content/Views/CxwLogin/Index.cshtml
Normal file
98
Face.Web/Content/Views/CxwLogin/Index.cshtml
Normal file
@@ -0,0 +1,98 @@
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>Face-DATA | 登录</title>
|
||||
|
||||
<link href="~/Theme/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="~/Theme/font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
<!-- 插件消息框样式 https://gitee.com/wispx/toastr -->
|
||||
<link href="~/Theme/css/plugins/toastr/toastr.min.css" rel="stylesheet">
|
||||
|
||||
<link href="~/Theme/css/animate.css" rel="stylesheet">
|
||||
<link href="~/Theme/css/style.css" rel="stylesheet">
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="~/Theme/js/jquery-2.1.1.js"></script>
|
||||
|
||||
<script src="~/Theme/js/bootstrap.min.js"></script>
|
||||
<script src="~/Theme/js/jquery.cookie.js"></script>
|
||||
<script src="~/Theme/js/jquery.form.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
document.cookie = "userpw=John Doe";
|
||||
$.cookie('key', 'value', { expires: 7 });
|
||||
|
||||
var rem = $.cookie('remember');
|
||||
if (rem) {
|
||||
$("#remember").prop("checked", true);
|
||||
$("#username").val($.cookie("username"));
|
||||
$("#password").val($.cookie("password"));
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="middle-box loginscreen animated fadeInDown">
|
||||
<div>
|
||||
<div class="text-center">
|
||||
|
||||
<h1 class="logo-name" style="font-size:70px">Face</h1>
|
||||
<h1 class="logo-name" style="font-size:70px">DATA</h1>
|
||||
|
||||
</div>
|
||||
|
||||
<form class="m-t" role="form" id="loginForm">
|
||||
<div class="form-group">
|
||||
<input type="text" name="username" id="username" class="form-control" placeholder="请输入用户名">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" name="password" id="password" class="form-control" placeholder="请输入密码">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="i-checks"><label> <input type="checkbox" id="remember"><i></i> 记住密码 </label></div>
|
||||
|
||||
</div>
|
||||
<button type="button" id="btnlogin" class="btn btn-primary block full-width m-b">登 录</button>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 text-center m-t-lg m-b-lg">
|
||||
<p><strong>© 2021 Face</strong><br />v 1.0</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<!-- Toastr 插件消息框样式 https://gitee.com/wispx/toastr -->
|
||||
<script src="~/Theme/js/plugins/toastr/toastr.min.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/login.min.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
87
Face.Web/Content/Views/CxwOrder/OrderInternalList.cshtml
Normal file
87
Face.Web/Content/Views/CxwOrder/OrderInternalList.cshtml
Normal file
@@ -0,0 +1,87 @@
|
||||
@model List<Face.Domain.ViewModels.VM_OrderInternalList>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">内部订单列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartial('@Url.Action("OrderInternalDetails", "Order")','orderInternalBox_Content')">添加内部单</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>单号</th>
|
||||
<th>内部单号</th>
|
||||
<th>目标产量</th>
|
||||
<th>累计目标产量</th>
|
||||
<th>起止序号</th>
|
||||
<th>创建时间</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartial('@Url.Action("OrderInternalDetails", "Order")',@Model[i].ID,'orderInternalBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@(Model[i].OrderNo)</td>
|
||||
<td>@Model[i].InternalNo</td>
|
||||
<td>@Model[i].ObjectiveYield</td>
|
||||
<td>@Model[i].ObjectiveYieldTotal</td>
|
||||
|
||||
<td>@Model[i].Sn_StartEnd</td>
|
||||
<td>@Model[i].CreateTime</td>
|
||||
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ibox-content" id="contentx">
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="orderInternalBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
229
Face.Web/Content/Views/CxwOrder/OrderList.cshtml
Normal file
229
Face.Web/Content/Views/CxwOrder/OrderList.cshtml
Normal file
@@ -0,0 +1,229 @@
|
||||
@model List<Face.Domain.Entities.Order>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
|
||||
//List<Face.Domain.Entities.ProductType> ProductTypeList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//类型
|
||||
}
|
||||
<link href="~/Content/dist/bootstrap-table.min.css" />
|
||||
<style>
|
||||
h5 > button, a > button {
|
||||
font-size: 12px;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
border: 1px solid white;
|
||||
border-radius: 50%;
|
||||
background-color: Orange;
|
||||
color: white;
|
||||
margin: 0px 8px;
|
||||
}
|
||||
|
||||
.panel-title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.buttoncolor {
|
||||
background-color: LimeGreen;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">订单列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("OrderDetails", "CxwOrder")','orderBox_Content')">添加订单</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
<div class="ibox-content" style="padding:0px;">
|
||||
|
||||
<div class="row" style="margin: 0px;padding:0;border:1px solid #cccccc;">
|
||||
<div class="col-xs-7" style="padding:0px">
|
||||
<ul>
|
||||
<li>ID:</li>
|
||||
<li>M/O:</li>
|
||||
<li>业务员:</li>
|
||||
<li>客户:</li>
|
||||
<li>P/O:</li>
|
||||
<li>名称</li>
|
||||
<li>型号</li>
|
||||
<li>单价</li>
|
||||
<li>数量</li>
|
||||
@*<li>备注</li>*@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-5" style="padding: 0px;text-align:right;">
|
||||
<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2F1812.img.pp.sohu.com.cn%2Fimages%2Fblog%2F2009%2F11%2F18%2F18%2F8%2F125b6560a6ag214.jpg&refer=http%3A%2F%2F1812.img.pp.sohu.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1625988838&t=9ac08c1238f7abee6e7c48344ed77a3a" width="125" height="162">
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12" style="padding: 0px;">
|
||||
<span class="remark">备注:<span class="grey"></span></span>
|
||||
</div>
|
||||
@*<hr />*@
|
||||
<div class="panel-body" style="padding:0px;">
|
||||
<div class="panel-group" id="accordionTwo" style="margin-bottom:0px;">
|
||||
<div class="panel">
|
||||
<div class="panel-heading" style="padding:0px;">
|
||||
<h5 class="panel-title">
|
||||
<button id="assess" data-toggle="modal" data-target="#myModal">报价</button><button>确认</button>
|
||||
<a data-toggle="collapse" data-parent="#collapseTwo" href="#collapseTwo">
|
||||
|
||||
<button>生产</button>
|
||||
</a><button>完成</button>
|
||||
<button>出货</button>
|
||||
</h5>
|
||||
<div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content animated bounceInRight">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
<h4 class="modal-title">报价</h4>
|
||||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" class="form-control OrderID" value="1" />
|
||||
<div class="form-group"><label>报价</label> <input type="text" placeholder="请输入报价" class="form-control OrderOffer"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
|
||||
<button type="button" class="btn btn-primary assess">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="collapseTwo" class="panel-collapse collapse" style="padding:0px;">
|
||||
<div class="panel-body" style="padding:5px 0px;">
|
||||
<button>报价1</button>-》
|
||||
<button>报价2</button>-》
|
||||
<button>报价3</button>-》
|
||||
<button>报价4</button>-》
|
||||
<button>报价5</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@if (Model != null)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
|
||||
<div class="row" style="margin: 0px;padding:0;border:1px solid #cccccc;">
|
||||
<div class="col-xs-7" style="padding:0px">
|
||||
<ul>
|
||||
<li>ID:@Model[i].ID</li>
|
||||
<li>M/O:@Model[i].OrderID</li>
|
||||
<li>业务员:@Model[i].Salesman</li>
|
||||
<li>客户:@Model[i].CompanyID</li>
|
||||
<li>P/O:@Model[i].CompanyOrder</li>
|
||||
<li>名称: @Model[i].ProductName</li>
|
||||
<li>型号:@Model[i].ProductType</li>
|
||||
<li>单价:<span class="price">@Model[i].ProductPrice</span></li>
|
||||
<li>数量:@Model[i].Count</li>
|
||||
@*<li>备注</li>*@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-5" style="padding: 0px;text-align:right;">
|
||||
<img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2F1812.img.pp.sohu.com.cn%2Fimages%2Fblog%2F2009%2F11%2F18%2F18%2F8%2F125b6560a6ag214.jpg&refer=http%3A%2F%2F1812.img.pp.sohu.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1625988838&t=9ac08c1238f7abee6e7c48344ed77a3a" width="125" height="162">
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12" style="padding: 0px;">
|
||||
<span class="remark">备注:@Model[i].Remark<span class="grey"></span></span>
|
||||
</div>
|
||||
@*<hr />*@
|
||||
<div class="panel-body" style="padding:0px;">
|
||||
<div class="panel-group" id="accordion-@i" style="margin-bottom:0px;">
|
||||
<div class="panel">
|
||||
<div class="panel-heading" style="padding:0px;">
|
||||
<h5 class="panel-title">
|
||||
<button id="assess" data-toggle="modal" data-target="#myModal-@i">报价</button><button>确认</button>
|
||||
<a data-toggle="collapse" data-parent="#accordion-@i" href="#collapse-@i">
|
||||
<button>生产</button>
|
||||
</a>
|
||||
<button>完成</button><button>出货</button>
|
||||
</h5>
|
||||
<div class="modal inmodal" id="myModal-@i" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content animated bounceInRight">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
<h4 class="modal-title">报价</h4>
|
||||
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" class="form-control OrderID" value="@Model[i].ID" />
|
||||
<div class="form-group"><label>报价</label> <input type="text" placeholder="请输入报价" class="form-control OrderOffer"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
|
||||
<button type="button" class="btn btn-primary assess">保存</button>
|
||||
<input type="hidden" value="@i" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="collapse-@i" class="panel-collapse collapse" style="padding:0px;">
|
||||
<div class="panel-body" style="padding:5px 0px;">
|
||||
<button>报价1</button>-》
|
||||
<button>报价2</button>-》
|
||||
<button>报价3</button>-》
|
||||
<button>报价4</button>-》
|
||||
<button>报价5</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
@*<div class="ibox-content" id="contentx">
|
||||
|
||||
</div>*@
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="~/Content/dist/bootstrap-table.min.js"></script>
|
||||
<script src="~/Content/dist/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
<script src="~/CxwPlugin/SelOrder.js"></script>
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
<script src="~/CxwPlugin/OrderList.js"></script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
76
Face.Web/Content/Views/CxwOrder/StatusList.cshtml
Normal file
76
Face.Web/Content/Views/CxwOrder/StatusList.cshtml
Normal file
@@ -0,0 +1,76 @@
|
||||
@model List<Face.Domain.Entities.OrderStatu>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">订单状态列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("StatusDetails", "CxwOrder")','pPlanBox_Content')">添加订单状态</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>订单状态名称</th>
|
||||
<th>订单状态说明</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartialNeedDate('@Url.Action("StatusDetails", "CxwOrder")',@Model[i].ID,'pPlanBox_Content')">
|
||||
<td>@(Model[i].ID)</td>
|
||||
<td>@Model[i].Statu</td>
|
||||
<td>@Model[i].Statements</td>
|
||||
<td>@Model[i].Remark</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="pPlanBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
252
Face.Web/Content/Views/CxwOrder/_OrderDetails.cshtml
Normal file
252
Face.Web/Content/Views/CxwOrder/_OrderDetails.cshtml
Normal file
@@ -0,0 +1,252 @@
|
||||
@model Face.Domain.Entities.Order
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.AdminUser> userList =Face.Services.Cache.CxwCacheHelp.GetUserList();//用户列表
|
||||
List<Face.Domain.Entities.Company> companyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户列表
|
||||
List<Face.Domain.Entities.ProductType> projectList = Face.Services.Cache.CxwCacheHelp.GetUserDBProjectList();//产品类型列表
|
||||
List<Face.Domain.Entities.Product> productList = Face.Services.Cache.CxwCacheHelp.GetProduct();//产品列表
|
||||
var Umodel = Face.Services.CxwUserLoginHelpre.CurrentUser();//登录用户信息
|
||||
List<Face.Domain.Entities.ProcessFlow> ProcessFlowList = Face.Services.Cache.CxwCacheHelp.GetProcessFlow();//工艺流程
|
||||
|
||||
string[] jurisdiction = new string[ProcessFlowList.Count];
|
||||
if (Model.ProcessStatus != null)
|
||||
{
|
||||
string str = Model.ProcessStatus;
|
||||
jurisdiction = str.Split(',');
|
||||
ViewBag.jur = jurisdiction;
|
||||
}
|
||||
}
|
||||
<link href="/Content/layui/layui.js" />
|
||||
<link href="/Content/layui/css/modules/laydate/default/laydate.css" />
|
||||
<link href="/Content/layui/css/modules/layer/default/layer.css" />
|
||||
<link href="/Content/layui/css/modules/code.css" />
|
||||
@*<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyOrderForm">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">业务员</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="orderID" value="@Model.ID" />
|
||||
@*<input type="text" placeholder="请输入业务员" name="Salesman" class="form-control" value="@Model.Salesman">*@
|
||||
<select class="form-control m-b" name="Salesman">
|
||||
@if (userList != null && userList.Count > 0)
|
||||
{
|
||||
foreach (var item in userList)
|
||||
{
|
||||
if (item.AdminName != "admin")
|
||||
{
|
||||
<option @(Umodel.AdminName == item.AdminName ? "selected" : "" ) value="@item.AdminName">@item.AdminName</option>
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">所属客户</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="companyID">
|
||||
@if (companyList != null && companyList.Count > 0)
|
||||
{
|
||||
foreach (var item in companyList)
|
||||
{
|
||||
<option @(Model.CompanyID == item.ID ? "selected" : "" ) value="@item.ID">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">产品名称</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="productID">
|
||||
@if (productList != null && productList.Count > 0)
|
||||
{
|
||||
foreach (var item in productList)
|
||||
{
|
||||
<option @(Model.ProductName == item.ProductName ? "selected" : "" ) value="@item.ProductName">@item.ProductName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">产品型号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="productID">
|
||||
@if (projectList != null && projectList.Count > 0)
|
||||
{
|
||||
foreach (var item in projectList)
|
||||
{
|
||||
<option @(Model.ProductType == item.ProductName ? "selected" : "" ) value="@item.ProductName">@item.ProductName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">单价</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="number" placeholder="请输入单价" name="ProductPrice" class="form-control" value="@Model.ProductPrice">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">生产数量</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="number" placeholder="请输入生产数量" name="Count" class="form-control" value="@Model.Count">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">订单总价</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="number" placeholder="请输入订单总价" name="TotalPrice" class="form-control" value="@Model.TotalPrice">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*<div class="form-group">
|
||||
<label class="col-md-3 control-label">订单阶段</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入订单阶段" name="OrderStatus" class="form-control" value="@Model.OrderStatus">
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">工艺流程阶段</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" placeholder="请输入工艺流程阶段" id="ProcessFlow" name="ProcessStatus" class="form-control" value="@Model.ProcessStatus">
|
||||
@for (int i = 0; i < ProcessFlowList.Count; i++)
|
||||
{
|
||||
<div class="i-checks"><label> <input type="checkbox" value="@ProcessFlowList[i].ID" @if (ViewBag.jur != null) { foreach (var item in jurisdiction) { @(item.ToInt() == ProcessFlowList[i].ID ? "checked='checked'" : "") } }> <i></i>@ProcessFlowList[i].ProcessName</label></div>
|
||||
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">成品照片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择一张图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image)" alt="暂无图片" style="width:100px;height:100px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg">删除</button></th>
|
||||
</tr>
|
||||
}
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="img">
|
||||
@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<input type="hidden" id="images" name="Image" value="@(Model.Image)" />
|
||||
}
|
||||
</div>
|
||||
<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyOrder" onclick="excutedUpDate('btnModifyOrder','@Url.Action("ModifyOrder", "CxwOrder")','modifyOrderForm','@Url.Action("OrderList", "CxwOrder")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/Plugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_delivery .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="~/Theme/layui/layui.js"></script>
|
||||
<script src="~/CxwPlugin/Images.js"></script>
|
||||
|
||||
120
Face.Web/Content/Views/CxwOrder/_OrderInternalDetails.cshtml
Normal file
120
Face.Web/Content/Views/CxwOrder/_OrderInternalDetails.cshtml
Normal file
@@ -0,0 +1,120 @@
|
||||
@model Face.Domain.Entities.TBL_OrderInternal
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
List<Face.Domain.Entities.TBL_Orders> orderList = Face.Services.Cache.CacheHelp.GetUserDBOrderList();//订单列表
|
||||
|
||||
}
|
||||
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" >@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">订单</label>
|
||||
<input type="hidden" name="id" value="@Model.ID" />
|
||||
<div class="col-md-9">
|
||||
|
||||
<select class="form-control m-b" name="orderID">
|
||||
@if (orderList != null && orderList.Count > 0)
|
||||
{
|
||||
foreach (var item in orderList)
|
||||
{
|
||||
<option @(Model.OrderID == item.OrderID ? "selected" : "" ) value="@item.OrderID">@item.OrderNo</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">内部单号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入内部单号" name="internalNo" class="form-control" value="@Model.InternalNo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">目标产量</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入目标产量" name="objectiveYield" class="form-control" value="@Model.ObjectiveYield">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">累计目标产量</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入累计目标产量" name="objectiveYieldTotal" class="form-control" value="@Model.ObjectiveYieldTotal">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">起始序列号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入起始序列号" name="sn_Start" class="form-control" value="@Model.Sn_Start">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">结束序列号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入结束序列号" name="sn_End" class="form-control" value="@Model.Sn_End">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyOrderInternal", "Order")','modifyOrderInternalForm','@Url.Action("OrderInternalList", "Order")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.getScript("/Plugin/basicfunc.js");
|
||||
$.getScript("/Theme/js/jquery.form.min.js");
|
||||
$.getScript("/Plugin/inspinia-partial.js");
|
||||
|
||||
</script>
|
||||
|
||||
22
Face.Web/Content/Views/CxwOrder/_OrdersInfo.cshtml
Normal file
22
Face.Web/Content/Views/CxwOrder/_OrdersInfo.cshtml
Normal file
@@ -0,0 +1,22 @@
|
||||
@model Face.Domain.ViewModels.VM_OrderInfo
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="ibox-footer">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<small class="stats-label">客户:@Model.CustomerAbbr</small>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<small class="stats-label">机型:@Model.ProjectName</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-footer">
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<small class="stats-label">订单号:@Model.OrderNo</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
96
Face.Web/Content/Views/CxwOrder/_StatusDetails.cshtml
Normal file
96
Face.Web/Content/Views/CxwOrder/_StatusDetails.cshtml
Normal file
@@ -0,0 +1,96 @@
|
||||
@model Face.Domain.Entities.OrderStatu
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
}
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" >@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- from -->
|
||||
<form class="form-horizontal" id="modifyPPlanForm">
|
||||
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" name="ID" class="form-control" value="@Model.ID" readonly />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">订单状态名称</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入订单状态名称" name="Statu" class="form-control" value="@Model.Statu">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">订单状态说明</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入订单状态说明" name="Statements" class="form-control" value="@Model.Statements">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPPlan" onclick="excutedUpDate('btnModifyPPlan','@Url.Action("ModifyStatus", "CxwOrder")','modifyPPlanForm','@Url.Action("StatusList", "CxwOrder")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/Plugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/Plugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
</script>
|
||||
86
Face.Web/Content/Views/CxwPPlan/PPlanList.cshtml
Normal file
86
Face.Web/Content/Views/CxwPPlan/PPlanList.cshtml
Normal file
@@ -0,0 +1,86 @@
|
||||
@model List<Face.Domain.Entities.ProductionPlan>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">生产计划列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("PPlanDetails", "CxwPPlan")','pPlanBox_Content')">添加生产计划</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>产品编号</th>
|
||||
<th>订单编号</th>
|
||||
|
||||
<th>目标产量</th>
|
||||
<th>工序流程</th>
|
||||
<th>生产时间</th>
|
||||
<th>预计时间</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartialNeedDate('@Url.Action("PPlanDetails", "CxwPPlan")',@Model[i].ID,'pPlanBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].ProductID</td>
|
||||
<td>@Model[i].OrderNo</td>
|
||||
<td>@Model[i].Count</td>
|
||||
<td>@Model[i].ProcessFlow</td>
|
||||
<td>@Model[i].ProductionTime.ToString("yyyy/MM/dd")</td>
|
||||
<td>@Model[i].ScheduledTime</td>
|
||||
<td>@Model[i].Remark</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="pPlanBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
80
Face.Web/Content/Views/CxwPPlan/ProcessFlowList.cshtml
Normal file
80
Face.Web/Content/Views/CxwPPlan/ProcessFlowList.cshtml
Normal file
@@ -0,0 +1,80 @@
|
||||
@model List<Face.Domain.Entities.ProcessFlow>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">工艺流程列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("ProcessDetails", "CxwPPlan")','pPlanBox_Content')">添加工艺流程</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>工艺名称</th>
|
||||
<th>工艺说明</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartialNeedDate('@Url.Action("ProcessDetails", "CxwPPlan")',@Model[i].ID,'pPlanBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].ProcessName</td>
|
||||
<td>@Model[i].Desc</td>
|
||||
<td>@Model[i].Remark</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
<div class="col-sm-4" id="pPlanBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
105
Face.Web/Content/Views/CxwPPlan/_PPlanDetails.cshtml
Normal file
105
Face.Web/Content/Views/CxwPPlan/_PPlanDetails.cshtml
Normal file
@@ -0,0 +1,105 @@
|
||||
@model Face.Domain.Entities.ProductionPlan
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
List<Face.Domain.Entities.ProductType> pLineList = Face.Services.Cache.CxwCacheHelp.GetUserDBPLineList();//产品类型列表
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>@ViewBag.Title</h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link-partial">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link-partial">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyPPlanForm">
|
||||
<input type="hidden" name="id" value="@Model.ID" />
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">产品编号</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入产品编号" name="ProductID" class="form-control" value="@Model.ProductID">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">订单编号</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入订单编号" name="OrderNo" class="form-control" value="@Model.OrderNo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">目标产量</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入目标产量" name="Count" class="form-control" value="@Model.Count">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">工序流程</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入工序流程" name="ProcessFlow" class="form-control" value="@Model.ProcessFlow">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="data_1">
|
||||
<label class="col-md-3 control-label">生产时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" class="form-control" name="ProductionTime" value="@(Model.ProductionTime.ToString("yyyy/MM/dd"))" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">预计时间</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入预计时间" name="ScheduledTime" class="form-control" value="@Model.ScheduledTime">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPPlan" onclick="excutedUpDate('btnModifyPPlan','@Url.Action("ModifyPPlan", "CxwPPlan")','modifyPPlanForm','@Url.Action("PPlanList", "CxwPPlan")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/Plugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/Plugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
</script>
|
||||
85
Face.Web/Content/Views/CxwPPlan/_ProcessDetails.cshtml
Normal file
85
Face.Web/Content/Views/CxwPPlan/_ProcessDetails.cshtml
Normal file
@@ -0,0 +1,85 @@
|
||||
@model Face.Domain.Entities.ProcessFlow
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
List<Face.Domain.Entities.ProductType> pLineList = Face.Services.Cache.CxwCacheHelp.GetUserDBPLineList();//产品类型列表
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>@ViewBag.Title</h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link-partial">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link-partial">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyPPlanForm">
|
||||
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">工艺名称</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入工艺名称" name="ProcessName" class="form-control" value="@Model.ProcessName">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">工艺说明</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入工艺说明" name="Desc" class="form-control" value="@Model.Desc">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyPPlan" onclick="excutedUpDate('btnModifyPPlan','@Url.Action("ModifyProcess", "CxwPPlan")','modifyPPlanForm','@Url.Action("ProcessFlowList", "CxwPPlan")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/Plugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/Plugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
</script>
|
||||
129
Face.Web/Content/Views/CxwUser/AddUser.cshtml
Normal file
129
Face.Web/Content/Views/CxwUser/AddUser.cshtml
Normal file
@@ -0,0 +1,129 @@
|
||||
@*@model Face.Domain.ViewModels.User.ResultAddUserVM*@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<link href="~/Theme/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>基础数据</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>添加用户</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-8">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>添加用户</h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="addUserForm">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">用户名</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="用户名" name="adminname" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">密码</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="password" placeholder="密码" name="password" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">确认密码</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="password" placeholder="确认密码" name="confirmpassword" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">所属公司</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="所属公司" name="company" class="form-control">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">职位</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="职位" name="title" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">手机号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="tel" placeholder="手机号" name="phone" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">微信号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="微信号" name="weiXin" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Email</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="email" placeholder="Email" name="email" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">QQ</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="email" placeholder="QQ" name="qq" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddUser">添加</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="~/Theme/js/jquery.form.min.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/user.js"></script>
|
||||
|
||||
|
||||
141
Face.Web/Content/Views/CxwUser/UserDetails.cshtml
Normal file
141
Face.Web/Content/Views/CxwUser/UserDetails.cshtml
Normal file
@@ -0,0 +1,141 @@
|
||||
@model Face.Domain.Entities.AdminUser
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
@*List<Face.Domain.Entities.AdminUser> companyList = Face.Services.Cache.CxwCacheHelp.GetCompanyList();*@
|
||||
//List<Face.Domain.Entities.TBL_UTS_Manage_DBList> dbList = Face.Services.Cache.CacheHelp.GetSysDBList();
|
||||
//List<Face.Domain.Entities.TBL_UTS_Manage_UserAuth_Operation> userAuthList = Face.Services.Cache.CacheHelp.GetUserAuthList().Where(x => x.UserID == Model.UserID).ToList();
|
||||
}
|
||||
|
||||
<link href="~/Theme/css/plugins/switchery/switchery.css" rel="stylesheet">
|
||||
|
||||
<!-- Switchery -->
|
||||
<script src="~/Theme/js/plugins/switchery/switchery.js"></script>
|
||||
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>用户详情</h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link-partial">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link-partial">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyUserForm">
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">用户名</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="userID" value="@Model.ID" />
|
||||
<input type="text" placeholder="用户名" name="AdminUser" class="form-control" value="@Model.AdminName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">密码</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="password" placeholder="密码" name="resetpassowrd" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">确认密码</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="password" placeholder="确认密码" name="passowrd" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">所属公司</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="company">
|
||||
<option @(Model.Company == @Model.Company ? "selected" : "" ) value="@Model.Company">@Model.Company</option>
|
||||
@* @if (companyList != null && companyList.Count > 0)
|
||||
{
|
||||
foreach (var item in companyList)
|
||||
{
|
||||
<option @(Model.Company == item.Company ? "selected" : "" ) value="@item.Company">@item.Company</option>
|
||||
}
|
||||
<option @(Model.Company == item.Company ? "selected" : "" ) value="@item.Company">@item.Company</option>
|
||||
}*@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@*<div class="form-group">
|
||||
<label class="col-md-3 control-label">可查数据库</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
@if (dbList != null && dbList.Count > 0)
|
||||
{
|
||||
foreach (var item in dbList)
|
||||
{
|
||||
<label class="checkbox-inline ">
|
||||
<input type="checkbox" @(userAuthList.Where(x => x.DatabaseID == item.DatabaseID).Count() > 0 ? "checked disabled" : "") name="haveDBName" value="@item.DatabaseID">@item.DatabaseName
|
||||
</label>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">手机号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="tel" placeholder="手机号" name="phone" class="form-control" value="@Model.Phone">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">微信号</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="微信号" name="weiXin" class="form-control" value="@Model.WeiXin">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">Email</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="email" placeholder="Email" name="email" class="form-control" value="@Model.Email">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*<div class="form-group">
|
||||
<label class="col-md-3 control-label">是否有效</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="checkbox" class="js-switch" name="isValid" @(Model.IsValid == true ? "checked" : "") />
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyUser">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 自定义脚本和插件 -->
|
||||
<script src="~/CxwPlugin/inspinia-partial.js"></script>
|
||||
@*<script src="~/Theme/js/inspinia.js"></script>*@
|
||||
<script src="~/Theme/js/jquery.form.min.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/user.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var elem = document.querySelector('.js-switch');
|
||||
var switchery = new Switchery(elem, { color: '#1AB394' });
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
112
Face.Web/Content/Views/CxwUser/UserList.cshtml
Normal file
112
Face.Web/Content/Views/CxwUser/UserList.cshtml
Normal file
@@ -0,0 +1,112 @@
|
||||
@model List<Face.Domain.Entities.AdminUser>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
|
||||
@*List<Face.Domain.Entities.TBL_UTS_Manage_Company> companyList = Face.Services.Cache.CacheHelp.GetCompanyList();*@
|
||||
|
||||
}
|
||||
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li>
|
||||
<a>基础数据</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>用户列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>用户列表</h5>
|
||||
|
||||
|
||||
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
<a class="close-link">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>用户名</th>
|
||||
<th>所属公司</th>
|
||||
<th>手机号</th>
|
||||
<th>微信号</th>
|
||||
<th>Email</th>
|
||||
<th>创建时间</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr class="gradeC" onclick="userDetails(@Model[i].ID)">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].AdminName</td>
|
||||
<td>
|
||||
@Model[i].Company
|
||||
</td>
|
||||
<td>@Model[i].Phone</td>
|
||||
<td>@Model[i].WeiXin</td>
|
||||
<td>@Model[i].Email</td>
|
||||
<td>@Model[i].CreateTime</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4" id="userDetailsBox">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*<script type="text/javascript">
|
||||
function userDetails(id) {
|
||||
// Ajax提交数据
|
||||
$.ajax({
|
||||
url: "/APP/user/UserDetails",//@Url.Action("GetDataqueryDetails", "ConditionQuery")",//"APP/login/login", // 提交到controller的url路径
|
||||
type: "get", // 提交方式
|
||||
data: { "userID": id }, // data为String类型,必须为 Key/Value 格式。
|
||||
//dataType: "json", // 服务器端返回的数据类型
|
||||
success: function (res) { // 请求成功后的回调函数,其中的参数data为controller返回的map,也就是说,然后通过data这个参数取JSON数据中的值
|
||||
$("#userDetailsBox").html(res);
|
||||
$.toastr.success('添加成功');
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
}
|
||||
</script>*@
|
||||
|
||||
|
||||
<script src="~/CxwPlugin/user.js"></script>
|
||||
176
Face.Web/Content/Views/Jurisdiction/Index.cshtml
Normal file
176
Face.Web/Content/Views/Jurisdiction/Index.cshtml
Normal file
@@ -0,0 +1,176 @@
|
||||
@model List<Face.Domain.Entities.Module>
|
||||
@{
|
||||
/**/
|
||||
|
||||
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
List<Face.Domain.Entities.AdminUser> UserList = Face.Services.Cache.CxwCacheHelp.GetUserList();//用户
|
||||
List<Face.Domain.Entities.RoleAuthority> RoleList = Face.Services.Cache.CxwCacheHelp.GetRoles();//角色
|
||||
string str = ViewBag.jurisdiction;
|
||||
string[] jurisdiction = str.Split(',');
|
||||
|
||||
}
|
||||
<link href="~/Theme/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/dataTables/datatables.min.css" rel="stylesheet" />
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
@*<li>
|
||||
<a href="@Url.Action("JournalLog", "CxwHome")">交易信息</a>
|
||||
</li>*@
|
||||
<li class="active">
|
||||
<strong>权限列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
@*<div class="col-sm-2">
|
||||
|
||||
<select class="form-control input-sm input-s-sm inline username" name="HandlerName" style="display:inline;">
|
||||
|
||||
@if (UserList != null && UserList.Count > 0)
|
||||
{
|
||||
foreach (var item in UserList)
|
||||
{
|
||||
if (item.AdminName != "admin")
|
||||
{
|
||||
<option value="@item.ID">@item.AdminName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
<select class="form-control input-sm input-s-sm inline Role" name="Role" style="display:inline;">
|
||||
|
||||
@if (RoleList != null && RoleList.Count > 0)
|
||||
{
|
||||
foreach (var item in RoleList)
|
||||
{
|
||||
if (item.RoleName != "管理员")
|
||||
{
|
||||
<option value="@item.ID">@item.RoleName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>*@
|
||||
<div id="SelectDate">
|
||||
<label> <input type="radio" value="user" name="Module" checked> <i></i> 用户</label>
|
||||
<label> <input type="radio" value="role" name="Module"> <i></i> 角色</label>
|
||||
</div>
|
||||
<div id="condition" style="display:inline;">
|
||||
<select id="username" class="form-control username" style="display:inline;width:90px;">
|
||||
@if (UserList != null && UserList.Count > 0)
|
||||
{
|
||||
foreach (var item in UserList)
|
||||
{
|
||||
if (item.AdminName != "admin")
|
||||
{
|
||||
<option value="@item.ID">@item.AdminName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<select class="Role form-control" style="display:inline;width:90px;" name="RoleID">
|
||||
@if (RoleList != null && RoleList.Count > 0)
|
||||
{
|
||||
foreach (var item in RoleList)
|
||||
{
|
||||
if (item.RoleName != "管理员")
|
||||
{
|
||||
<option value="@item.ID">@item.RoleName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content" id="content">
|
||||
<table class="table table-striped table-bordered table-hover " id="editable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>操作</th>
|
||||
<th>控制器</th>
|
||||
<th>方法</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr class="gradeX">
|
||||
@*@(Model.HandlerName == item.AdminName ? "selected" : "")*@
|
||||
|
||||
@*<td><input type="checkbox" class="i-checks" name="input[]" @(Model[i].ID == jurisdiction[1].ToInt() ? "checked" : "") /></td>*@
|
||||
<td><input type="checkbox" class="i-checks" value="@Model[i].ID" name="input[]" @foreach (var item in jurisdiction){@(item.ToInt() == Model[i].ID ? "checked='checked'" : "")} /><input type="hidden" value="@Model[i].ID"> </td>
|
||||
|
||||
<td>@Model[i].Operation</td>
|
||||
<td>@Model[i].Controller</td>
|
||||
<td>@Model[i].Method</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="~/Theme/js/plugins/peity/jquery.peity.min.js"></script>
|
||||
<script src="~/Theme/js/plugins/dataTables/datatables.min.js"></script>
|
||||
|
||||
<script src="~/Theme/js/demo/peity-demo.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
<script src="~/CxwPlugin/Jurisdiction.js"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
var oTable = $('#editable').DataTable({
|
||||
"bLengthChange": false,
|
||||
});
|
||||
|
||||
/* Apply the jEditable handlers to the table */
|
||||
//oTable.$('td').editable('../example_ajax.php', {
|
||||
// "callback": function (sValue, y) {
|
||||
// var aPos = oTable.fnGetPosition(this);
|
||||
// oTable.fnUpdate(sValue, aPos[0], aPos[1]);
|
||||
// },
|
||||
// "submitdata": function (value, settings) {
|
||||
// return {
|
||||
// "row_id": this.parentNode.getAttribute('id'),
|
||||
// "column": oTable.fnGetPosition(this)[2]
|
||||
// };
|
||||
// },
|
||||
|
||||
// "width": "90%",
|
||||
// "height": "100%"
|
||||
//});
|
||||
|
||||
});
|
||||
$("ul").delegate("li.paginate_button>a", "click", function () {
|
||||
console.log("2");
|
||||
|
||||
});
|
||||
</script>
|
||||
173
Face.Web/Content/Views/Jurisdiction/OperationInfo.cshtml
Normal file
173
Face.Web/Content/Views/Jurisdiction/OperationInfo.cshtml
Normal file
@@ -0,0 +1,173 @@
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover " id="editable">
|
||||
<thead>
|
||||
<tr>
|
||||
@*<th>#</th>*@
|
||||
<th>名字</th>
|
||||
<th>时间</th>
|
||||
<th>操作</th>
|
||||
<th>IP</th>
|
||||
<th>型号</th>
|
||||
<th>浏览器</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var name = $("#username").find("option:selected").val();//月
|
||||
var tablesc = $("#editable").DataTable({
|
||||
language: {
|
||||
"processing": "处理中...",
|
||||
"lengthMenu": "_MENU_ 记录/页",
|
||||
"zeroRecords": "没有匹配的记录",
|
||||
"info": "第 _START_ 至 _END_ 项记录,共 _TOTAL_ 项",
|
||||
"infoEmpty": "第 0 至 0 项记录,共 0 项",
|
||||
"infoFiltered": "",
|
||||
"infoPostFix": "",
|
||||
"decimal": ",",
|
||||
"thousands": ".",
|
||||
"emptyTable": "未找到符合条件的数据",
|
||||
"paginate": {
|
||||
"first": "«",
|
||||
"previous": "‹",
|
||||
"next": "›",
|
||||
"last": "»"
|
||||
}
|
||||
},
|
||||
retrieve: true,
|
||||
paging: true,
|
||||
ordering: false,
|
||||
info: true,
|
||||
autoWidth: false,
|
||||
pageLength: 10,//每页显示10条数据
|
||||
pagingType: "full_numbers", //分页样式:simple,simple_numbers,full,full_numbers,zzzzzzz
|
||||
bFilter: false, //去掉搜索框方法
|
||||
bLengthChange: true,//也就是页面上确认是否可以进行选择一页展示多少条
|
||||
serverSide: true, //启用服务器端分页,要进行后端分页必须的环节
|
||||
ajax: function (data, callback, settings) {
|
||||
//封装相应的请求参数,这里获取页大小和当前页码
|
||||
var pagesize = data.length;//页面显示记录条数,在页面显示每页显示多少项的时候,页大小
|
||||
var page = (data.start) / data.length + 1;//当前页码
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/Jurisdiction/ShowInfo",
|
||||
cache: false, //禁用缓存
|
||||
//data: json, //传入已封装的参数
|
||||
data: { "page": page, "pagesize": pagesize, "username": name }, //传入已封装的参数
|
||||
dataType: "json",//返回数据格式为json
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
//console.log(res.Status);
|
||||
var returnData = {};
|
||||
//returnData.draw = arr.data.pagination.TotalCount;//这里直接自行返回了draw计数器,应该由后台返回,没什么卵用!
|
||||
returnData.recordsTotal = res.Status;//totalCount指的是总记录数
|
||||
returnData.recordsFiltered = res.Status;//后台不实现过滤功能,全部的记录数都需输出到前端,记录数为总数
|
||||
for (var i = 0; i < res.Data.length; i++) {
|
||||
res.Data[i].CreateTiem = changeDateFormat(res.Data[i].CreateTiem);
|
||||
}
|
||||
returnData.data = res.Data;//返回列表
|
||||
//console.log(res.Data[0].CreateTiem);
|
||||
callback(returnData);//这个别忘了!!!
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert("查询失败");
|
||||
$wrapper.spinModal(false);
|
||||
}
|
||||
});
|
||||
},
|
||||
columns: [
|
||||
//{ "data": "ID" },
|
||||
{ "data": "Name" },
|
||||
{ "data": "CreateTiem" },
|
||||
{ "data": "Operation" },
|
||||
{ "data": "IPSite" },
|
||||
{ "data": "SystemVersion" },
|
||||
{ "data": "Browser" },
|
||||
]
|
||||
});
|
||||
|
||||
});
|
||||
//debugger;
|
||||
$("#username").off("change").change(function () {
|
||||
$("#editable").dataTable().fnClearTable();
|
||||
$("#editable").dataTable().fnDestroy();
|
||||
var name = $("#username").find("option:selected").val();//月
|
||||
var tables = $("#editable").DataTable({
|
||||
language: {
|
||||
"processing": "处理中...",
|
||||
"lengthMenu": "_MENU_ 记录/页",
|
||||
"zeroRecords": "没有匹配的记录",
|
||||
"info": "第 _START_ 至 _END_ 项记录,共 _TOTAL_ 项",
|
||||
"infoEmpty": "第 0 至 0 项记录,共 0 项",
|
||||
"infoFiltered": "",
|
||||
"infoPostFix": "",
|
||||
"decimal": ",",
|
||||
"thousands": ".",
|
||||
"emptyTable": "未找到符合条件的数据",
|
||||
"paginate": {
|
||||
"first": "«",
|
||||
"previous": "‹",
|
||||
"next": "›",
|
||||
"last": "»"
|
||||
}
|
||||
},
|
||||
retrieve: true,
|
||||
paging: true,
|
||||
ordering: false,
|
||||
info: true,
|
||||
autoWidth: false,
|
||||
pageLength: 10,//每页显示10条数据
|
||||
pagingType: "full_numbers", //分页样式:simple,simple_numbers,full,full_numbers,zzzzzzz
|
||||
bFilter: false, //去掉搜索框方法
|
||||
bLengthChange: true,//也就是页面上确认是否可以进行选择一页展示多少条
|
||||
serverSide: true, //启用服务器端分页,要进行后端分页必须的环节
|
||||
ajax: function (data, callback, settings) {
|
||||
//封装相应的请求参数,这里获取页大小和当前页码
|
||||
var pagesize = data.length;//页面显示记录条数,在页面显示每页显示多少项的时候,页大小
|
||||
var page = (data.start) / data.length + 1;//当前页码
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/Jurisdiction/ShowInfo",
|
||||
cache: false, //禁用缓存
|
||||
//data: json, //传入已封装的参数
|
||||
data: { "page": page, "pagesize": pagesize, "username": name }, //传入已封装的参数
|
||||
dataType: "json",//返回数据格式为json
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
//console.log(res.Status);
|
||||
var returnData = {};
|
||||
//returnData.draw = arr.data.pagination.TotalCount;//这里直接自行返回了draw计数器,应该由后台返回,没什么卵用!
|
||||
returnData.recordsTotal = res.Status;//totalCount指的是总记录数
|
||||
returnData.recordsFiltered = res.Status;//后台不实现过滤功能,全部的记录数都需输出到前端,记录数为总数
|
||||
for (var i = 0; i < res.Data.length; i++) {
|
||||
res.Data[i].CreateTiem = changeDateFormat(res.Data[i].CreateTiem);
|
||||
}
|
||||
returnData.data = res.Data;//返回列表
|
||||
//console.log(res.Data[0].CreateTiem);
|
||||
callback(returnData);//这个别忘了!!!
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
alert("查询失败");
|
||||
$wrapper.spinModal(false);
|
||||
}
|
||||
});
|
||||
},
|
||||
columns: [
|
||||
//{ "data": "ID" },
|
||||
{ "data": "Name" },
|
||||
{ "data": "CreateTiem" },
|
||||
{ "data": "Operation" },
|
||||
{ "data": "IPSite" },
|
||||
{ "data": "SystemVersion" },
|
||||
{ "data": "Browser" },
|
||||
]
|
||||
});
|
||||
})
|
||||
</script>
|
||||
85
Face.Web/Content/Views/Jurisdiction/OperationLog.cshtml
Normal file
85
Face.Web/Content/Views/Jurisdiction/OperationLog.cshtml
Normal file
@@ -0,0 +1,85 @@
|
||||
@model List<Face.Domain.Entities.OperationLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
List<Face.Domain.Entities.AdminUser> UserList = Face.Services.Cache.CxwCacheHelp.GetUserList();//用户
|
||||
|
||||
}
|
||||
<link href="~/Theme/font-awesome/css/font-awesome.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/dataTables/datatables.min.css" rel="stylesheet" />
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>权限列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-sm-8" style="padding:0px">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<select id="username" class="form-control username" style="display:inline;width:90px;">
|
||||
<option value="0">所有人</option>
|
||||
@if (UserList != null && UserList.Count > 0)
|
||||
{
|
||||
foreach (var item in UserList)
|
||||
{
|
||||
if (item.AdminName != "admin")
|
||||
{
|
||||
<option value="@item.AdminName">@item.AdminName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="ibox-content" style="padding:0px">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover " id="editable">
|
||||
<thead>
|
||||
<tr>
|
||||
@*<th>#</th>*@
|
||||
<th>名字</th>
|
||||
<th>时间</th>
|
||||
<th>操作</th>
|
||||
<th>IP</th>
|
||||
<th>型号</th>
|
||||
<th>浏览器</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="~/Theme/js/plugins/peity/jquery.peity.min.js"></script>
|
||||
<script src="~/Theme/js/plugins/dataTables/datatables.min.js"></script>
|
||||
@*时间*@
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
|
||||
<script src="~/Theme/js/demo/peity-demo.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
<script src="~/CxwPlugin/OperationLog.js"></script>
|
||||
|
||||
36
Face.Web/Content/Views/Jurisdiction/_Jurisdiction.cshtml
Normal file
36
Face.Web/Content/Views/Jurisdiction/_Jurisdiction.cshtml
Normal file
@@ -0,0 +1,36 @@
|
||||
@model List<Face.Domain.Entities.Module>
|
||||
@{
|
||||
/**/
|
||||
|
||||
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.AdminUser> UserList = Face.Services.Cache.CxwCacheHelp.GetUserList();//用户
|
||||
List<Face.Domain.Entities.RoleAuthority> RoleList = Face.Services.Cache.CxwCacheHelp.GetRoles();//角色
|
||||
string str = ViewBag.jurisdiction;
|
||||
string[] jurisdiction = str.Split(',');
|
||||
|
||||
}
|
||||
|
||||
<table class="table table-striped table-bordered table-hover " id="editable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>操作</th>
|
||||
<th>控制器</th>
|
||||
<th>方法</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr class="gradeX">
|
||||
<td><input type="checkbox" class="i-checks" value="@Model[i].ID" name="input[]" @foreach (var item in jurisdiction) { @(item.ToInt() == Model[i].ID ? "checked='checked'" : "") } /><input type="hidden" value="@Model[i].ID"> </td>
|
||||
<td>@Model[i].Operation</td>
|
||||
<td>@Model[i].Controller</td>
|
||||
<td>@Model[i].Method</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
14
Face.Web/Content/Views/Shared/Error.cshtml
Normal file
14
Face.Web/Content/Views/Shared/Error.cshtml
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>错误</title>
|
||||
</head>
|
||||
<body>
|
||||
<hgroup>
|
||||
<h1>错误。</h1>
|
||||
<h2>处理你的请求时出错。</h2>
|
||||
</hgroup>
|
||||
</body>
|
||||
</html>
|
||||
328
Face.Web/Content/Views/Shared/_Layout.cshtml
Normal file
328
Face.Web/Content/Views/Shared/_Layout.cshtml
Normal file
@@ -0,0 +1,328 @@
|
||||
@{
|
||||
|
||||
string curl = Request.Url.ToString().ToLower();
|
||||
//List<Face.Domain.Entities.TBL_UTS_Manage_UserAuth_Operation> userCustomerList = ViewBag.UserCustomerList;
|
||||
|
||||
string OnUserCustomerSessionName = "UserOperationSessionName";
|
||||
var onCustomer = System.Web.HttpContext.Current.ViewData[OnUserCustomerSessionName];
|
||||
|
||||
//string OnUserCuListSessionName = "UserOperationListSessionName";
|
||||
//List<Face.Domain.Entities.TBL_UTS_Manage_UserAuth_Operation> userCustomerList = System.Web.HttpContext.Current.ViewData[OnUserCuListSessionName] as List<Face.Domain.Entities.TBL_UTS_Manage_UserAuth_Operation>;
|
||||
|
||||
var Umodel = Face.Services.CxwUserLoginHelpre.CurrentUser();
|
||||
//Face.Services.Manager.Logs.WriteLog("母版开始" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff"));
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>@ViewBag.Title - Face</title>
|
||||
|
||||
|
||||
<!--文件框-->
|
||||
<link href="~/Theme/css/fileinput.min.css" rel="stylesheet" />
|
||||
|
||||
<!-- Toastr style提示框样式 -->
|
||||
<link href="~/Theme/css/plugins/toastr/toastr.css" rel="stylesheet">
|
||||
|
||||
<link href="~/Content/layui/css/layui.css" rel="stylesheet" />
|
||||
<link href="~/NewFrame/plugins/bootstrap/css/bootstrap.min.css" />
|
||||
|
||||
<!-- Font Awesome -->
|
||||
<link rel="stylesheet" href="~/NewFrame/plugins/fontawesome-free/css/all.min.css">
|
||||
<!-- Theme style -->
|
||||
<link rel="stylesheet" href="~/NewFrame/dist/css/adminlte.min.css">
|
||||
|
||||
|
||||
<script src="~/Theme/js/jquery-2.1.1.js"></script>
|
||||
@*<script src="~/Theme/js/jquery-3.5.1.min.js"></script>*@
|
||||
|
||||
</head>
|
||||
<body class="hold-transition sidebar-mini">
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
|
||||
<!-- 头部导航部分-->
|
||||
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
||||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Right navbar links -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- Navbar Search -->
|
||||
<li class="nav-item" style="color:#999c9e;">
|
||||
<a href="javascript:window.history.back();">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-reply-fill" viewBox="0 0 16 16">
|
||||
<path d="M5.921 11.9 1.353 8.62a.719.719 0 0 1 0-1.238L5.921 4.1A.716.716 0 0 1 7 4.719V6c1.5 0 6 0 7 8-2.5-4.5-7-4-7-4v1.281c0 .56-.606.898-1.079.62z" />
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item" style="color:#999c9e;">
|
||||
<a class="nav-link" href="#" role="button">欢迎您,<strong>@(Umodel.AdminName)</strong></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="@Url.Action("Logout", "CxwHome") ">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-in-right" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M6 3.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 0-1 0v2A1.5 1.5 0 0 0 6.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-8A1.5 1.5 0 0 0 5 3.5v2a.5.5 0 0 0 1 0v-2z" />
|
||||
<path fill-rule="evenodd" d="M11.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H1.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z" />
|
||||
</svg> 退出
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- 左侧导航部分-->
|
||||
|
||||
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
||||
<!-- 头部Logo -->
|
||||
@*<a href="index3.html" class="brand-link">
|
||||
<img src="~/NewFrame/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
|
||||
<span class="brand-text font-weight-light">AdminLTE 3</span>
|
||||
</a>*@
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<!-- 用户名 头像 -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img id="images" style="display:none" src="/ImgServer/FileImage?url= @ViewData["judeg"]">
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="#" class="d-block"></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 左侧导航 -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("Index", "CxwHome")" class="nav-link">
|
||||
<i class="nav-icon fas fa-th"></i>
|
||||
<p>
|
||||
首页
|
||||
</p>
|
||||
</a>
|
||||
</li>
|
||||
@if (Umodel.AdminName == "admin" || Umodel.AdminName == "文祚平" || Umodel.AdminName == "蓝瑞璋")
|
||||
{
|
||||
if (Umodel.AdminName == "admin" || Umodel.AdminName == "文祚平")
|
||||
{
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>
|
||||
用户管理
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("UserList", "CxwUser")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>用户列表</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("adduser", "CxwUser")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>添加用户</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>
|
||||
基础数据
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("CompanyList", "CxwBasicFunc")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>客户信息</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("SupplierList", "CxwIncome")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>供应商</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("BillList", "CxwIncome")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>单据类型</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("IncomeList", "CxwIncome")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>收支类型</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("PLineList", "CxwBasicFunc")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>产品类型</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("ProcessFlowList", "CxwPPlan")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>工艺流程</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("StatusList", "CxwOrder")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>订单状态</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
if (Umodel.AdminName == "admin" || Umodel.AdminName == "文祚平")
|
||||
{
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>
|
||||
订单管理
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("OrderList", "CxwOrder")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>订单列表</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>
|
||||
生产计划
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("PPlanList", "CxwPPlan")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>计划列表</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>
|
||||
交易信息
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("JournalList", "CxwJournalLog")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>流水账</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("DeliverList", "CxwJournalLog")" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>送货记录</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="@Url.Action("OperationLog", "Jurisdiction")" class="nav-link">
|
||||
<i class="nav-icon fas fa-th"></i>
|
||||
<p>
|
||||
操作日志
|
||||
</p>
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
@RenderBody()
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<!--layui-->
|
||||
<script src="~/Theme/layui/layui.js"></script>
|
||||
|
||||
<!-- Toastr 提示框脚本-->
|
||||
@*<script src="~/Theme/js/plugins/toastr/toastr.min.js"></script>*@
|
||||
<script src="~/Theme/js/plugins/toastr/toastr.js"></script>
|
||||
|
||||
<script src="~/CxwPlugin/common.js"></script>
|
||||
@*<script src="~/NewFrame/plugins/jquery/jquery.min.js"></script>*@
|
||||
<!-- Bootstrap 4 -->
|
||||
<script src="~/NewFrame/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<!-- jquery-validation -->
|
||||
<script src="~/NewFrame/plugins/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script src="~/NewFrame/plugins/jquery-validation/additional-methods.min.js"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="~/NewFrame/dist/js/adminlte.min.js"></script>
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
@*<script src="~/NewFrame/dist/js/demo.js"></script>*@
|
||||
|
||||
<style>
|
||||
.pagination {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function gotoAction(gourl) {
|
||||
//location.href = "/CxwHome/Invariant";
|
||||
console.log(gourl);
|
||||
$.ajax({
|
||||
url: gourl,
|
||||
type: "post",
|
||||
async: true,
|
||||
success: function (res) {
|
||||
console.log(res);
|
||||
$("#topoContent").html(res);
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
</script>
|
||||
49
Face.Web/Content/Views/Web.config
Normal file
49
Face.Web/Content/Views/Web.config
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Optimization"/>
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="Face.Web" />
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
|
||||
<system.webServer>
|
||||
<security>
|
||||
<requestFiltering >
|
||||
<requestLimits maxAllowedContentLength="2147483647" ></requestLimits>
|
||||
</requestFiltering>
|
||||
</security>
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler"/>
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
|
||||
<system.web>
|
||||
<httpRuntime maxRequestLength="2097151" executionTimeout="120"/>
|
||||
<compilation>
|
||||
<assemblies>
|
||||
<add assembly="System.Web.Mvc, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
</assemblies>
|
||||
</compilation>
|
||||
</system.web>
|
||||
</configuration>
|
||||
3
Face.Web/Content/Views/_ViewStart.cshtml
Normal file
3
Face.Web/Content/Views/_ViewStart.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
Reference in New Issue
Block a user