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
476f545b
Commit
476f545b
authored
Feb 02, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加导出会计凭证功能
parent
2055af13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
0 deletions
+106
-0
mPlatformAccountingSetting.cs
Bailun.DC.Models/Report/mPlatformAccountingSetting.cs
+91
-0
FinanceController.cs
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
+0
-0
ShippingIncoming.cshtml
...C.Web/Areas/Reports/Views/Finance/ShippingIncoming.cshtml
+15
-0
No files found.
Bailun.DC.Models/Report/mPlatformAccountingSetting.cs
0 → 100644
View file @
476f545b
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.Report
{
/// <summary>
/// 平台的凭证对应配置
/// </summary>
public
class
mPlatformAccountingSetting
{
/// <summary>
/// 平台类型
/// </summary>
public
string
platform_type
{
get
;
set
;
}
/// <summary>
/// 凭证ID
/// </summary>
public
string
cert_id
{
get
;
set
;
}
/// <summary>
/// 制单人
/// </summary>
public
string
creator
{
get
;
set
;
}
/// <summary>
/// 科目编码
/// </summary>
public
string
subject_no
{
get
;
set
;
}
/// <summary>
/// 客户编码
/// </summary>
public
string
customer_no
{
get
;
set
;
}
/// <summary>
/// 站点
/// </summary>
public
string
website
{
get
;
set
;
}
/// <summary>
/// 币种
/// </summary>
public
string
currency
{
get
;
set
;
}
/// <summary>
/// 币种名称
/// </summary>
public
string
currencyname
{
get
;
set
;
}
}
/// <summary>
/// 财务分类科目编码对应配置
/// </summary>
public
class
mFinanceCategorySubjectNo
{
/// <summary>
/// 财务分类名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// 科目编码
/// </summary>
public
string
subject_no
{
get
;
set
;
}
}
/// <summary>
/// 获取资金系统每月的汇率
/// </summary>
public
class
mFundExchangRate
{
public
string
currency
{
get
;
set
;
}
public
decimal
?
exchange_rate
{
get
;
set
;
}
}
public
class
FundExchangRate_Response
{
public
int
code
{
get
;
set
;
}
public
string
msg
{
get
;
set
;
}
public
int
count
{
get
;
set
;
}
public
List
<
mFundExchangRate
>
data
{
get
;
set
;
}
}
}
Bailun.DC.Web/Areas/Reports/Controllers/FinanceController.cs
View file @
476f545b
This diff is collapsed.
Click to expand it.
Bailun.DC.Web/Areas/Reports/Views/Finance/ShippingIncoming.cshtml
View file @
476f545b
...
...
@@ -21,6 +21,11 @@
<label> </label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i> 查询</button>
<button type="button" class="btn btn-danger" onclick="exportxls();">导出</button>
@if (ViewBag.type == 1)
{
<button type="button" class="btn btn-danger" onclick="exportCert();">导出凭证</button>
}
</div>
</div>
</form>
...
...
@@ -176,6 +181,16 @@
window.open('@Url.Content("~/Reports/Finance/ExportShippingIncoming?month=")' + mon+'&type=@(ViewBag.type)', '_blank');
}
function exportCert() {
var mon = $('#month').val();
if (mon == '') {
alert('请选择月份');
return;
}
window.open('@Url.Content("~/Reports/Finance/ExportShippingIncomingCertficate?month=")' + mon+'&type=@(ViewBag.type)', '_blank');
}
function clearHtml(s) {
// 去除 富文本格式
s = s.replace(/(\n)/g, "");
...
...
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