Commit 476f545b by guanzhenshan

增加导出会计凭证功能

parent 2055af13
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; }
}
}
......@@ -21,6 +21,11 @@
<label>&nbsp;</label>
<button type="button" class="btn btn-primary" onclick="list();"><i class="fa fa-search"></i>&nbsp;查询</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, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment