Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
5ef2f0fb
Commit
5ef2f0fb
authored
Aug 22, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成每日发生额统计报表汇总
parent
2f0562c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
173 additions
and
3 deletions
+173
-3
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+0
-0
HappenAmountCount.cshtml
....Web/Areas/Reports/Views/Finance/HappenAmountCount.cshtml
+167
-0
Main.cshtml
Bailun.DC.Web/Views/Home/Main.cshtml
+6
-3
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
5ef2f0fb
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Views/Finance/HappenAmountCount.cshtml
0 → 100644
View file @
5ef2f0fb
@{
ViewData["Title"] = "每日发生额汇总";
Layout = "~/Pages/Shared/_MainLayout.cshtml";
ViewBag.Nav = new string[] { "财务", "每日发生额汇总" };
}
<div class="row">
<div class="col-sm-12">
@*<div class="alert alert-warning">
说明:数据统计截止到昨日
</div>*@
<div class="ibox-content m-b-sm border-bottom">
<form id="toolbar">
<div class="form-inline" style="line-height:40px;">
<div class="form-group">
<label>日期方式:</label>
<select id="dateWay" name="dateWay" class="form-control">
@*<option value="1">按日</option>*@
<option value="2">按周</option>
<option value="3">按月</option>
</select>
</div>
<div class="form-group">
<label>统计时间</label>
<input id="start" name="start" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))" />
<span>至</span>
<input id="end" name="end" type="text" class="form-control" style="width:130px;" value="@(DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"))" />
</div>
<div class="form-group">
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
</div>
</div>
</form>
</div>
<div class="ibox-content m-b-sm border-bottom">
<table id="roletable" class="table table-hover table-bordered table-condensed table-striped">
<thead>
<tr></tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
@section css{
<link href="~/css/bootstrap-table-fixed-columns.css" rel="stylesheet" />
<style>
.mules {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
}
@section scripts{
<script src="~/js/bootstrap-table-fixed-columns.js" type="text/javascript"></script>
<script type="text/javascript">
var tb;
var companyid = 0;
$(document).ready(function () {
laydate.render({ elem: '#start' });
laydate.render({ elem: '#end' });
var height = document.body.clientHeight;
$("#roletable").attr("data-height", (height - 170));
list();
//$('#warehousetype').change(function () {
// listwarehouse();
//})
})
function list() {
var lindex = layer.load(1, { shade: false }); //0代表加载的风格,支持0-2
$.submit({
type:'POST',
url: '@Url.Content("~/Reports/Finance/HappenAmountCountJson")',
paramData: $("#toolbar").serialize(),
func: function (result) {
layer.close(lindex);
if (result.success) {
if (result.list.length == 0) {
alert('没有找到符合条件的数据');
return false;
}
var w = $('#roletable').parent().width()+40;
if (w < (160 * result.head.length + 40)) {
w = (160 * result.head.length + 40);
}
$('#roletable').parent().css('width', (w) + 'px');
$('#roletable').css('width', (w-40) + 'px');
$('#roletable').find('tbody').html('');
$('#roletable').find('thead').html('');
if (result.head.length > 0) {
var s = '<tr>';
for (var i = 0; i < result.head.length; i++) {
s += ('<th style="width:160px;">' + result.head[i] + '</th>');
}
s += '</tr>';
$('#roletable').find('thead').append(s);
}
for (var i = 0; i < result.list.length; i++) {
var s = '<tr>';
var obj = result.list[i];
s += ('<td style="width:160px;">' + obj.typename + '</td>');
if (obj.list.length > 0) {
for (var j = 0; j < obj.list.length; j++) {
if (obj.type == 99) {
s += ('<td style="width:160px;">' + obj.list[j] + '</td>');
}
else {
s += ('<td style="width:160px;"><a onclick="showdetail(\'' + result.head[j + 1] + '\')">' + obj.list[j] + '</a></td>');
}
}
}
s += "</tr>";
$('#roletable').find('tbody').append(s);
}
}
else {
layer.msg('出现异常。');
}
}
})
}
function showdetail(categoryname, colname) {
layer_show(categoryname +' '+ colname+' 的Sku明细', '@Url.Content("~/Reports/Warehouse/ListDailyPurchaseSales?categoryname=")' + categoryname + '&colname=' + colname + '&dateWay=' + $('#dateWay').val() + '&t=' + $('#t').val(), '90%', '90%');
}
function listwarehouse() {
var type = $('#warehousetype').val();
$.submit({
url: '@Url.Content("~/Home/ListWarehouseFromStockAndSales")',
paramData: 'warehousetype=' + type,
type:'POST',
func: function (result) {
if (result != null && result != undefined) {
$('#warehouse_code').html('<option value="">选择仓库</option>');
for (var i = 0; i < result.length; i++) {
$('#warehouse_code').append('<option value="' + result[i].warehouse_code + '">' + result[i].warehouse_name + '</option>');
}
}
}
})
}
</script>
}
Bailun.DC.Web/Views/Home/Main.cshtml
View file @
5ef2f0fb
...
...
@@ -115,9 +115,6 @@
<li>
<a
class=
"J_menuItem"
href=
"@Url.Content("
~/
Reports
/
Warehouse
/
WarehouseRedundancy
")"
data-index=
"0"
>
仓库库存分析报表
</a>
</li>
<li>
<a
class=
"J_menuItem"
href=
"@Url.Content("
~/
Reports
/
Warehouse
/
DailyPurchaseSalesCount
")"
data-index=
"0"
>
每日销进差异汇总
</a>
</li>
</ul>
</li>
<li>
...
...
@@ -352,6 +349,12 @@
<li>
<a
class=
"J_menuItem"
href=
"@Url.Content("
~/
Reports
/
Finance
/
AdministrativeCost
")"
data-index=
"0"
>
管理成本报表
</a>
</li>
<li>
<a
class=
"J_menuItem"
href=
"@Url.Content("
~/
Reports
/
Warehouse
/
DailyPurchaseSalesCount
")"
data-index=
"0"
>
每日销进差异汇总
</a>
</li>
<li>
<a
class=
"J_menuItem"
href=
"@Url.Content("
~/
Reports
/
Finance
/
HappenAmountCount
")"
data-index=
"0"
>
每日发生额汇总
</a>
</li>
</ul>
</li>
<li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment