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
afc014c2
Commit
afc014c2
authored
Nov 30, 2021
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改功能:调整接口
parent
8e72221a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
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
+3
-4
No files found.
Bailun.DC.Services/FinanceReportServices.cs
View file @
afc014c2
...
@@ -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://
finance-balance-sheet.data-center-job:8080
/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)+
"&logisticsPayableSum="
+
amount
;
var
url
=
"http://
api.dcjava.bailuntec.com
/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://
finance-balance-sheet.data-center-job:8080
/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)
+
"&"
+
paramname
+
"="
+
amount
;
var
url
=
"http://
api.dcjava.bailuntec.com
/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 @
afc014c2
...
@@ -906,7 +906,7 @@
...
@@ -906,7 +906,7 @@
var day = $('#' + c).attr('dd');
var day = $('#' + c).attr('dd');
$.submit({
$.submit({
url: 'http://
finance-balance-sheet.data-center-job:8080
/balanceSheetModify/record',
url: 'http://
api.dcjava.bailuntec.com
/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 @
afc014c2
...
@@ -215,7 +215,7 @@
...
@@ -215,7 +215,7 @@
obj[col] = val;
obj[col] = val;
$.submit({
$.submit({
url: 'http://
finance-balance-sheet.data-center-job:8080
/balanceSheetModify/record',
url: 'http://
api.dcjava.bailuntec.com
/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 @
afc014c2
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
<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>
...
@@ -1843,14 +1842,14 @@
...
@@ -1843,14 +1842,14 @@
}
}
debugger;
debugger;
$.ajax({
$.ajax({
url: 'http://
finance-balance-sheet.data-center-job:8080
/reload',
url: 'http://
api.dcjava.bailuntec.com
/reload',
type: "POST",
type: "POST",
data: {
localDate:
day},
data: {
localDate :
day},
success: function (result) {
success: function (result) {
debugger;
debugger;
alert('重新同步成功!');
alert('重新同步成功!');
},
},
error: function () {
error: function (
err
) {
debugger;
debugger;
alert(err.statusText);
alert(err.statusText);
}
}
...
...
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