Files
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

378 lines
42 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace Lskj.Control.HighBeaterInvoice
{
class TranInvoiceData
{
public static string TranData(string jsonStr, string type)
{
switch (type)
{
case "10100":
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code_confirm"), string.Format("\"{0}\"", "机打发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number_confirm"), string.Format("\"{0}\"", "机打发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "pretax_amount"), string.Format("\"{0}\"", "税前金额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total_cn"), string.Format("\"{0}\"", "价税合计(大写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax"), string.Format("\"{0}\"", "税额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "check_code"), string.Format("\"{0}\"", "校验码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "machine_code"), string.Format("\"{0}\"", "机器编号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller"), string.Format("\"{0}\"", "销售方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_tax_id"), string.Format("\"{0}\"", "销售方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_addr_tel"), string.Format("\"{0}\"", "销售方地址、账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_bank_account"), string.Format("\"{0}\"", "销售方银行账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_tax_id"), string.Format("\"{0}\"", "购买方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_bank_account"), string.Format("\"{0}\"", "购买方银行账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_addr_tel"), string.Format("\"{0}\"", "购买方地址、账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_type"), string.Format("\"{0}\"", "发票是第几联"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_name"), string.Format("\"{0}\"", "发票联次"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "ciphertext"), string.Format("\"{0}\"", "密码区"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "travel_tax"), string.Format("\"{0}\"", "车船税"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "receiptor"), string.Format("\"{0}\"", "收款人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "reviewer"), string.Format("\"{0}\"", "复核"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "issuer"), string.Format("\"{0}\"", "开票人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "remark"), string.Format("\"{0}\"", "备注"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "item_names"), string.Format("\"{0}\"", "品名"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "agent_mark"), string.Format("\"{0}\"", "是否代开"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "acquisition_mark"), string.Format("\"{0}\"", "是否收购"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "block_chain"), string.Format("\"{0}\"", "区块链标记"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "electronic_mark"), string.Format("\"{0}\"", "是否为电子增票"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "transit_mark"), string.Format("\"{0}\"", "通行费标志"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "oil_mark"), string.Format("\"{0}\"", "成品油标志"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "specification"), string.Format("\"{0}\"", "规格型号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "unit"), string.Format("\"{0}\"", "单位"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "quantity"), string.Format("\"{0}\"", "数量"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "price"), string.Format("\"{0}\"", "单价"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_rate"), string.Format("\"{0}\"", "税率"));
break;
case "10101":
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code_confirm"), string.Format("\"{0}\"", "机打发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number_confirm"), string.Format("\"{0}\"", "机打发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "pretax_amount"), string.Format("\"{0}\"", "税前金额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total_cn"), string.Format("\"{0}\"", "价税合计(大写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax"), string.Format("\"{0}\"", "税额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "check_code"), string.Format("\"{0}\"", "校验码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "machine_code"), string.Format("\"{0}\"", "机器编号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller"), string.Format("\"{0}\"", "销售方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_tax_id"), string.Format("\"{0}\"", "销售方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_addr_tel"), string.Format("\"{0}\"", "销售方地址、账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_bank_account"), string.Format("\"{0}\"", "销售方银行账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_tax_id"), string.Format("\"{0}\"", "购买方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_bank_account"), string.Format("\"{0}\"", "购买方银行账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_addr_tel"), string.Format("\"{0}\"", "购买方地址、账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_type"), string.Format("\"{0}\"", "发票是第几联"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_name"), string.Format("\"{0}\"", "发票联次"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "ciphertext"), string.Format("\"{0}\"", "密码区"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "travel_tax"), string.Format("\"{0}\"", "车船税"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "receiptor"), string.Format("\"{0}\"", "收款人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "reviewer"), string.Format("\"{0}\"", "复核"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "issuer"), string.Format("\"{0}\"", "开票人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "remark"), string.Format("\"{0}\"", "备注"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "item_names"), string.Format("\"{0}\"", "品名"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "agent_mark"), string.Format("\"{0}\"", "是否代开"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "acquisition_mark"), string.Format("\"{0}\"", "是否收购"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "block_chain"), string.Format("\"{0}\"", "区块链标记"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "electronic_mark"), string.Format("\"{0}\"", "是否为电子增票"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "transit_mark"), string.Format("\"{0}\"", "通行费标志"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "oil_mark"), string.Format("\"{0}\"", "成品油标志"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "specification"), string.Format("\"{0}\"", "规格型号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "unit"), string.Format("\"{0}\"", "单位"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "quantity"), string.Format("\"{0}\"", "数量"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "price"), string.Format("\"{0}\"", "单价"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_rate"), string.Format("\"{0}\"", "税率"));
break;
case "10102":
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code_confirm"), string.Format("\"{0}\"", "机打发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number_confirm"), string.Format("\"{0}\"", "机打发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "pretax_amount"), string.Format("\"{0}\"", "税前金额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total_cn"), string.Format("\"{0}\"", "价税合计(大写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax"), string.Format("\"{0}\"", "税额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "check_code"), string.Format("\"{0}\"", "校验码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "machine_code"), string.Format("\"{0}\"", "机器编号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller"), string.Format("\"{0}\"", "销售方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_tax_id"), string.Format("\"{0}\"", "销售方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_addr_tel"), string.Format("\"{0}\"", "销售方地址、账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_bank_account"), string.Format("\"{0}\"", "销售方银行账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_tax_id"), string.Format("\"{0}\"", "购买方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_bank_account"), string.Format("\"{0}\"", "购买方银行账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_addr_tel"), string.Format("\"{0}\"", "购买方地址、账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_type"), string.Format("\"{0}\"", "发票是第几联"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_name"), string.Format("\"{0}\"", "发票联次"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "ciphertext"), string.Format("\"{0}\"", "密码区"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "travel_tax"), string.Format("\"{0}\"", "车船税"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "receiptor"), string.Format("\"{0}\"", "收款人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "reviewer"), string.Format("\"{0}\"", "复核"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "issuer"), string.Format("\"{0}\"", "开票人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "remark"), string.Format("\"{0}\"", "备注"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "item_names"), string.Format("\"{0}\"", "品名"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "agent_mark"), string.Format("\"{0}\"", "是否代开"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "acquisition_mark"), string.Format("\"{0}\"", "是否收购"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "block_chain"), string.Format("\"{0}\"", "区块链标记"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "electronic_mark"), string.Format("\"{0}\"", "是否为电子增票"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "transit_mark"), string.Format("\"{0}\"", "通行费标志"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "oil_mark"), string.Format("\"{0}\"", "成品油标志"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "specification"), string.Format("\"{0}\"", "规格型号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "unit"), string.Format("\"{0}\"", "单位"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "quantity"), string.Format("\"{0}\"", "数量"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "price"), string.Format("\"{0}\"", "单价"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_rate"), string.Format("\"{0}\"", "税率"));
break;
case "10103"://增值税普通发票(卷票)
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code_confirm"), string.Format("\"{0}\"", "机打发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number_confirm"), string.Format("\"{0}\"", "机打发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "check_code"), string.Format("\"{0}\"", "校验码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller"), string.Format("\"{0}\"", "销售方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_tax_id"), string.Format("\"{0}\"", "销售方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_tax_id"), string.Format("\"{0}\"", "购买方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "category"), string.Format("\"{0}\"", "种类"));//oil 表示是加油票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "service_name"), string.Format("\"{0}\"", "服务类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "item_names"), string.Format("\"{0}\"", "品名"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "quantity"), string.Format("\"{0}\"", "数量"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "price"), string.Format("\"{0}\"", "单价"));
break;
case "10104"://机动车销售统一发票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code_confirm"), string.Format("\"{0}\"", "机打发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number_confirm"), string.Format("\"{0}\"", "机打发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "pretax_amount"), string.Format("\"{0}\"", "税前金额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller"), string.Format("\"{0}\"", "销售方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_tax_id"), string.Format("\"{0}\"", "销售方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "address"), string.Format("\"{0}\"", "销货单位地址"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "phone"), string.Format("\"{0}\"", "销货单位电话"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "account"), string.Format("\"{0}\"", "销货单位账号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_id"), string.Format("\"{0}\"", "买方单位代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_authorities"), string.Format("\"{0}\"", "主管税务机关"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_authorities_code"), string.Format("\"{0}\"", "主管税务机关代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "car_code"), string.Format("\"{0}\"", "车架号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "car_engine_code"), string.Format("\"{0}\"", "发动机号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "car_model"), string.Format("\"{0}\"", "厂牌型号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "certificate_number"), string.Format("\"{0}\"", "合格证号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax"), string.Format("\"{0}\"", "税额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_rate"), string.Format("\"{0}\"", "税率"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "car_type"), string.Format("\"{0}\"", "车辆类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tonnage"), string.Format("\"{0}\"", "吨位"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_type"), string.Format("\"{0}\"", "发票是第几联"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "form_name"), string.Format("\"{0}\"", "发票联次"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "issuer"), string.Format("\"{0}\"", "开票人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_num"), string.Format("\"{0}\"", "完税凭证号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "max_people_num"), string.Format("\"{0}\"", "限乘人数"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "origin"), string.Format("\"{0}\"", "产地"));
break;
case "10200"://定额发票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
break;
case "10400"://机打发票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time"), string.Format("\"{0}\"", "时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "check_code"), string.Format("\"{0}\"", "校验码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "category"), string.Format("\"{0}\"", "种类"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "pretax_amount"), string.Format("\"{0}\"", "税前金额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total_cn"), string.Format("\"{0}\"", "价税合计(大写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller"), string.Format("\"{0}\"", "销售方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seller_tax_id"), string.Format("\"{0}\"", "销售方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_tax_id"), string.Format("\"{0}\"", "购买方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "electronic_mark"), string.Format("\"{0}\"", "是否为电子增票"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "unit"), string.Format("\"{0}\"", "单位"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "quantity"), string.Format("\"{0}\"", "数量"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "company_seal"), string.Format("\"{0}\"", "是否有公司印章"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "electronic_mark"), string.Format("\"{0}\"", "是否为电子增票"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_rate"), string.Format("\"{0}\"", "税率"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "price"), string.Format("\"{0}\"", "单价"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax"), string.Format("\"{0}\"", "税额"));
break;
case "10503"://火车票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time"), string.Format("\"{0}\"", "乘车时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "station_geton"), string.Format("\"{0}\"", "上车车站"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "station_getoff"), string.Format("\"{0}\"", "下车车站"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "train_number"), string.Format("\"{0}\"", "车次"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seat"), string.Format("\"{0}\"", "座位类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "serial_number"), string.Format("\"{0}\"", "序列号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "user_id"), string.Format("\"{0}\"", "身份证号"));
break;
case "10505"://客运汽车
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time"), string.Format("\"{0}\"", "时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "station_geton"), string.Format("\"{0}\"", "出发车站"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "station_getoff"), string.Format("\"{0}\"", "达到车站"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "name"), string.Format("\"{0}\"", "服务名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "user_id"), string.Format("\"{0}\"", "身份证号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
break;
case "10506"://航空运输电子客票行程单
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "user_name"), string.Format("\"{0}\"", "乘机人姓名"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "user_id"), string.Format("\"{0}\"", "身份证号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "check_code"), string.Format("\"{0}\"", "校验码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "agentcode"), string.Format("\"{0}\"", "销售单位代号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "issue_by"), string.Format("\"{0}\"", "填开单位"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "fare"), string.Format("\"{0}\"", "票价"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax"), string.Format("\"{0}\"", "税额"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "fuel_surcharge"), string.Format("\"{0}\"", "燃油附加费"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "caac_development_fund"), string.Format("\"{0}\"", "民航发展基金"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "insurance"), string.Format("\"{0}\"", "保险费"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "international_flag"), string.Format("\"{0}\"", "国内国际标签"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "print_number"), string.Format("\"{0}\"", "印刷序号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "endorsement"), string.Format("\"{0}\"", "签注"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "flights"), string.Format("\"{0}\"", "航班信息"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "from"), string.Format("\"{0}\"", "出发站"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "to"), string.Format("\"{0}\"", "到达站"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "class_name"), string.Format("\"{0}\"", "舱位等级"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "flight_number"), string.Format("\"{0}\"", "航班号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time"), string.Format("\"{0}\"", "乘机时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "seat"), string.Format("\"{0}\"", "座位等级"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "carrier"), string.Format("\"{0}\"", "承运人"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "allow"), string.Format("\"{0}\"", "免费行李"));
break;
case "10507"://过路费发票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time"), string.Format("\"{0}\"", "时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "entrance"), string.Format("\"{0}\"", "入口"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "exit"), string.Format("\"{0}\"", "出口"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "highway_flag"), string.Format("\"{0}\"", "高速标志(0:没有; 1: 有)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
break;
case "10900"://可报销其他发票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "title"), string.Format("\"{0}\"", "标题"));
break;
case "10500"://出租车发票
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "code"), string.Format("\"{0}\"", "印刷发票代码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time_geton"), string.Format("\"{0}\"", "上车时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time_getoff"), string.Format("\"{0}\"", "下车时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "mileage"), string.Format("\"{0}\"", "里程"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "place"), string.Format("\"{0}\"", "发票所在地"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "province"), string.Format("\"{0}\"", "省"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "license_plate"), string.Format("\"{0}\"", "车牌号"));
break;
case "20105"://滴滴出行行程单
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date_start"), string.Format("\"{0}\"", "行程开始时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date_end"), string.Format("\"{0}\"", "行程结束时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "phone"), string.Format("\"{0}\"", "行程人手机号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "kind"), string.Format("\"{0}\"", "发票消费类型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "items"), string.Format("\"{0}\"", "行程信息"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "car_type"), string.Format("\"{0}\"", "车型"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "time_geton"), string.Format("\"{0}\"", "上车时间"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "city"), string.Format("\"{0}\"", "市"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "station_geton"), string.Format("\"{0}\"", "起点"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "station_getoff"), string.Format("\"{0}\"", "终点"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "mileage"), string.Format("\"{0}\"", "里程(公里)"));
break;
case "10902"://完税证明
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "number"), string.Format("\"{0}\"", "印刷发票号码"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "total"), string.Format("\"{0}\"", "价税合计(小写)"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer"), string.Format("\"{0}\"", "购买方名称"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "buyer_tax_id"), string.Format("\"{0}\"", "购买方纳税人识别号"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "date"), string.Format("\"{0}\"", "开票日期"));
jsonStr = jsonStr.Replace(string.Format("\"{0}\"", "tax_authorities"), string.Format("\"{0}\"", "国家税务总局"));
break;
}
return jsonStr = jsonStr;
}
}
}