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
23b503f7
Commit
23b503f7
authored
Nov 30, 2021
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改功能:调整接口
parent
39cb30ce
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
10 deletions
+43
-10
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+2
-2
BalanceSheetNew.cshtml
...DC.Web/Areas/Reports/Views/Finance/BalanceSheetNew.cshtml
+1
-1
BalanceSheetNew_210128.cshtml
...Areas/Reports/Views/Finance/BalanceSheetNew_210128.cshtml
+1
-1
Index2.cshtml
Bailun.DC.Web/Areas/Reports/Views/Finance/Index2.cshtml
+39
-6
No files found.
Bailun.DC.Services/FinanceReportServices.cs
View file @
23b503f7
...
@@ -456,7 +456,7 @@ namespace Bailun.DC.Services
...
@@ -456,7 +456,7 @@ namespace Bailun.DC.Services
/// <returns></returns>
/// <returns></returns>
public
string
UpdateLogisticsEndAmount
(
DateTime
day
,
decimal
amount
)
public
string
UpdateLogisticsEndAmount
(
DateTime
day
,
decimal
amount
)
{
{
var
url
=
"http://
api.dcjava.bailuntec.com
/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)+
"&logisticsPayableSum="
+
amount
;
var
url
=
"http://
finance-balance-sheet.data-center-job:8080
/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)+
"&logisticsPayableSum="
+
amount
;
var
result
=
Common
.
HttpHelper
.
NetHelper
.
Request
(
url
);
var
result
=
Common
.
HttpHelper
.
NetHelper
.
Request
(
url
);
...
@@ -480,7 +480,7 @@ namespace Bailun.DC.Services
...
@@ -480,7 +480,7 @@ namespace Bailun.DC.Services
/// <returns></returns>
/// <returns></returns>
public
string
UpdateLogisticsEndAmount
(
DateTime
day
,
decimal
amount
,
string
paramname
)
public
string
UpdateLogisticsEndAmount
(
DateTime
day
,
decimal
amount
,
string
paramname
)
{
{
var
url
=
"http://
api.dcjava.bailuntec.com
/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)
+
"&"
+
paramname
+
"="
+
amount
;
var
url
=
"http://
finance-balance-sheet.data-center-job:8080
/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)
+
"&"
+
paramname
+
"="
+
amount
;
var
result
=
Common
.
HttpHelper
.
NetHelper
.
Request
(
url
);
var
result
=
Common
.
HttpHelper
.
NetHelper
.
Request
(
url
);
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/BalanceSheetNew.cshtml
View file @
23b503f7
...
@@ -906,7 +906,7 @@
...
@@ -906,7 +906,7 @@
var day = $('#' + c).attr('dd');
var day = $('#' + c).attr('dd');
$.submit({
$.submit({
url: 'http://
api.dcjava.bailuntec.com
/balanceSheetModify/record',
url: 'http://
finance-balance-sheet.data-center-job:8080
/balanceSheetModify/record',
paramData: '{"statistical_time":"' + day + '","' + c + '":' + val + ',"company_value":0,"company_name":"百伦供应链"}',
paramData: '{"statistical_time":"' + day + '","' + c + '":' + val + ',"company_value":0,"company_name":"百伦供应链"}',
contenttype: 'application/json',
contenttype: 'application/json',
type: 'POST',
type: 'POST',
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/BalanceSheetNew_210128.cshtml
View file @
23b503f7
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
obj[col] = val;
obj[col] = val;
$.submit({
$.submit({
url: 'http://
api.dcjava.bailuntec.com
/balanceSheetModify/record',
url: 'http://
finance-balance-sheet.data-center-job:8080
/balanceSheetModify/record',
paramData: '{"statistical_time":"' + mon.split('T')[0] + '","' + col + '":' + val +',"company_value":0,"company_name":"百伦供应链"}',
paramData: '{"statistical_time":"' + mon.split('T')[0] + '","' + col + '":' + val +',"company_value":0,"company_name":"百伦供应链"}',
contenttype:'application/json',
contenttype:'application/json',
type:'POST',
type:'POST',
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/Index2.cshtml
View file @
23b503f7
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<button type="button" class="btn btn-sm btn-warning" onclick="showchart();">环比报表</button>
<button type="button" class="btn btn-sm btn-warning" onclick="showchart();">环比报表</button>
<button type="button" class="btn btn-sm btn-primary" onclick="showtask();">任务运行情况</button>
<button type="button" class="btn btn-sm btn-primary" onclick="showtask();">任务运行情况</button>
<button type="button" class="btn btn-sm btn-success" onclick="resync();">重新同步数据</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
@@ -1428,23 +1429,34 @@
...
@@ -1428,23 +1429,34 @@
text-align: center;
text-align: center;
}
}
.item-row{border-bottom:solid 1px #eee;border-right:solid 1px #eee;}
.item-row {
.item-row:hover{background-color:#eee;}
border-bottom: solid 1px #eee;
.item-row div{cursor:pointer;}
border-right: solid 1px #eee;
}
.item-row:hover {
background-color: #eee;
}
.item-row div {
cursor: pointer;
}
.item-col, .item-row div {
.item-col, .item-row div {
/*margin: -1px;
/*margin: -1px;
border: solid 1px #eee;
border: solid 1px #eee;
border-right-width: 0px;*/
border-right-width: 0px;*/
height: 32px;
height: 32px;
line-height: 32px;
line-height: 32px;
border-right:solid 1px #eee;
border-right: solid 1px #eee;
white-space: nowrap;
white-space: nowrap;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
}
}
.second-row div{border-left-width:0px;}
.second-row div {
border-left-width: 0px;
}
</style>
</style>
}
}
...
@@ -1823,6 +1835,27 @@
...
@@ -1823,6 +1835,27 @@
layer_show('任务运行情况', '@Url.Content("~/Reports/Finance/BalanceSheetTask")', '90%', '90%');
layer_show('任务运行情况', '@Url.Content("~/Reports/Finance/BalanceSheetTask")', '90%', '90%');
}
}
function resync() {
var day = $('#day').val();
if (day == '') {
alert('请选择日期');
return false;
}
debugger;
$.ajax({
url: 'http://finance-balance-sheet.data-center-job:8080/reload?localDate',
type: "POST",
data: { localDate:day},
success: function (result) {
debugger;
alert('重新同步成功!');
},
error: function () {
debugger;
alert(err.statusText);
}
});
}
</script>
</script>
}
}
...
...
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