基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
@@ -0,0 +1,636 @@
namespace Lskj.Control.HighBeaterInvoice
{
partial class FrmHighBeater
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmHighBeater));
this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
this.startBtn = new DevExpress.XtraEditors.SimpleButton();
this.btn_selectPic = new DevExpress.XtraEditors.ButtonEdit();
this.label3 = new System.Windows.Forms.Label();
this.btn_select = new DevExpress.XtraEditors.ButtonEdit();
this.btn_oneByone = new DevExpress.XtraEditors.SimpleButton();
this.btn_AutoSize = new DevExpress.XtraEditors.SimpleButton();
this.btn_right = new DevExpress.XtraEditors.SimpleButton();
this.btn_left = new DevExpress.XtraEditors.SimpleButton();
this.btn_max = new DevExpress.XtraEditors.SimpleButton();
this.btn_min = new DevExpress.XtraEditors.SimpleButton();
this.GroupBox8 = new System.Windows.Forms.GroupBox();
this.com_fileFormat = new DevExpress.XtraEditors.ComboBoxEdit();
this.com_Colorformat = new DevExpress.XtraEditors.ComboBoxEdit();
this.Label14 = new System.Windows.Forms.Label();
this.TrackQuality = new System.Windows.Forms.TrackBar();
this.Label7 = new System.Windows.Forms.Label();
this.Label10 = new System.Windows.Forms.Label();
this.Label11 = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.rad_ManualTrim = new System.Windows.Forms.RadioButton();
this.rad_AutoTrim = new System.Windows.Forms.RadioButton();
this.rad_DontTrim = new System.Windows.Forms.RadioButton();
this.GroupBox1 = new System.Windows.Forms.GroupBox();
this.Label9 = new System.Windows.Forms.Label();
this.com_Equip = new System.Windows.Forms.ComboBox();
this.com_resolution = new System.Windows.Forms.ComboBox();
this.Label8 = new System.Windows.Forms.Label();
this.GroupBox12 = new System.Windows.Forms.GroupBox();
this.btn_ImgStting = new DevExpress.XtraEditors.SimpleButton();
this.GroupBox7 = new System.Windows.Forms.GroupBox();
this.btn_obtain = new DevExpress.XtraEditors.SimpleButton();
this.cek_autoExposure = new System.Windows.Forms.CheckBox();
this.TrackBar1 = new System.Windows.Forms.TrackBar();
this.TrackBar2 = new System.Windows.Forms.TrackBar();
this.Label2 = new System.Windows.Forms.Label();
this.Label1 = new System.Windows.Forms.Label();
this.axCamCaptureCtl = new AxCamCaptureCtlLib.AxCamCaptureCtl();
this.label15 = new System.Windows.Forms.Label();
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
this.panelControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.btn_selectPic.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.btn_select.Properties)).BeginInit();
this.GroupBox8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.com_fileFormat.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.com_Colorformat.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.TrackQuality)).BeginInit();
this.groupBox5.SuspendLayout();
this.GroupBox1.SuspendLayout();
this.GroupBox12.SuspendLayout();
this.GroupBox7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TrackBar1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.TrackBar2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axCamCaptureCtl)).BeginInit();
this.SuspendLayout();
//
// panelControl1
//
this.panelControl1.Appearance.BackColor = System.Drawing.Color.White;
this.panelControl1.Appearance.Options.UseBackColor = true;
this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
this.panelControl1.Controls.Add(this.startBtn);
this.panelControl1.Controls.Add(this.btn_selectPic);
this.panelControl1.Controls.Add(this.label3);
this.panelControl1.Controls.Add(this.btn_select);
this.panelControl1.Controls.Add(this.btn_oneByone);
this.panelControl1.Controls.Add(this.btn_AutoSize);
this.panelControl1.Controls.Add(this.btn_right);
this.panelControl1.Controls.Add(this.btn_left);
this.panelControl1.Controls.Add(this.btn_max);
this.panelControl1.Controls.Add(this.btn_min);
this.panelControl1.Controls.Add(this.GroupBox8);
this.panelControl1.Controls.Add(this.groupBox5);
this.panelControl1.Controls.Add(this.GroupBox1);
this.panelControl1.Controls.Add(this.axCamCaptureCtl);
this.panelControl1.Controls.Add(this.label15);
this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelControl1.Location = new System.Drawing.Point(0, 0);
this.panelControl1.Margin = new System.Windows.Forms.Padding(4);
this.panelControl1.Name = "panelControl1";
this.panelControl1.Size = new System.Drawing.Size(1011, 661);
this.panelControl1.TabIndex = 0;
//
// startBtn
//
this.startBtn.Location = new System.Drawing.Point(568, 573);
this.startBtn.Margin = new System.Windows.Forms.Padding(4);
this.startBtn.Name = "startBtn";
this.startBtn.Size = new System.Drawing.Size(52, 67);
this.startBtn.TabIndex = 97;
this.startBtn.Text = "执行";
//
// btn_selectPic
//
this.btn_selectPic.Location = new System.Drawing.Point(123, 614);
this.btn_selectPic.Margin = new System.Windows.Forms.Padding(4);
this.btn_selectPic.Name = "btn_selectPic";
this.btn_selectPic.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
this.btn_selectPic.Size = new System.Drawing.Size(437, 24);
this.btn_selectPic.TabIndex = 96;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(20, 617);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(98, 18);
this.label3.TabIndex = 95;
this.label3.Text = "手动选择图片";
//
// btn_select
//
this.btn_select.Location = new System.Drawing.Point(123, 575);
this.btn_select.Margin = new System.Windows.Forms.Padding(4);
this.btn_select.Name = "btn_select";
this.btn_select.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton()});
this.btn_select.Size = new System.Drawing.Size(437, 24);
this.btn_select.TabIndex = 94;
//
// btn_oneByone
//
this.btn_oneByone.Location = new System.Drawing.Point(565, 545);
this.btn_oneByone.Location = new System.Drawing.Point(541, 534);
this.btn_oneByone.Margin = new System.Windows.Forms.Padding(4);
this.btn_oneByone.Name = "btn_oneByone";
this.btn_oneByone.Size = new System.Drawing.Size(79, 29);
this.btn_oneByone.TabIndex = 93;
this.btn_oneByone.Text = "1:1";
this.btn_oneByone.Click += new System.EventHandler(this.OnToOneClick);
//
// btn_AutoSize
//
this.btn_AutoSize.Location = new System.Drawing.Point(436, 534);
this.btn_AutoSize.Margin = new System.Windows.Forms.Padding(4);
this.btn_AutoSize.Name = "btn_AutoSize";
this.btn_AutoSize.Size = new System.Drawing.Size(79, 29);
this.btn_AutoSize.TabIndex = 93;
this.btn_AutoSize.Text = "适合大小";
this.btn_AutoSize.Click += new System.EventHandler(this.OnfitAutoClick);
//
// btn_right
//
this.btn_right.Location = new System.Drawing.Point(332, 534);
this.btn_right.Margin = new System.Windows.Forms.Padding(4);
this.btn_right.Name = "btn_right";
this.btn_right.Size = new System.Drawing.Size(79, 29);
this.btn_right.TabIndex = 93;
this.btn_right.Text = "右旋转";
this.btn_right.Click += new System.EventHandler(this.OnRightRevClick);
//
// btn_left
//
this.btn_left.Location = new System.Drawing.Point(229, 534);
this.btn_left.Margin = new System.Windows.Forms.Padding(4);
this.btn_left.Name = "btn_left";
this.btn_left.Size = new System.Drawing.Size(79, 29);
this.btn_left.TabIndex = 93;
this.btn_left.Text = "左旋转";
this.btn_left.Click += new System.EventHandler(this.OnLeftRevClick);
//
// btn_max
//
this.btn_max.Location = new System.Drawing.Point(127, 534);
this.btn_max.Margin = new System.Windows.Forms.Padding(4);
this.btn_max.Name = "btn_max";
this.btn_max.Size = new System.Drawing.Size(79, 29);
this.btn_max.TabIndex = 93;
this.btn_max.Text = "放大";
this.btn_max.Click += new System.EventHandler(this.OnBtnMaxClick);
//
// btn_min
//
this.btn_min.Location = new System.Drawing.Point(24, 534);
this.btn_min.Margin = new System.Windows.Forms.Padding(4);
this.btn_min.Name = "btn_min";
this.btn_min.Size = new System.Drawing.Size(79, 29);
this.btn_min.TabIndex = 93;
this.btn_min.Text = "缩小";
this.btn_min.Click += new System.EventHandler(this.OnBtnMinClick);
//
// GroupBox8
//
this.GroupBox8.Controls.Add(this.com_fileFormat);
this.GroupBox8.Controls.Add(this.com_Colorformat);
this.GroupBox8.Controls.Add(this.Label14);
this.GroupBox8.Controls.Add(this.TrackQuality);
this.GroupBox8.Controls.Add(this.Label7);
this.GroupBox8.Controls.Add(this.Label10);
this.GroupBox8.Controls.Add(this.Label11);
this.GroupBox8.Location = new System.Drawing.Point(716, 514);
this.GroupBox8.Margin = new System.Windows.Forms.Padding(4);
this.GroupBox8.Name = "GroupBox8";
this.GroupBox8.Padding = new System.Windows.Forms.Padding(4);
this.GroupBox8.Size = new System.Drawing.Size(244, 124);
this.GroupBox8.TabIndex = 92;
this.GroupBox8.TabStop = false;
this.GroupBox8.Text = "图像格式";
//
// com_fileFormat
//
this.com_fileFormat.Location = new System.Drawing.Point(103, 61);
this.com_fileFormat.Margin = new System.Windows.Forms.Padding(4);
this.com_fileFormat.Name = "com_fileFormat";
this.com_fileFormat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.com_fileFormat.Properties.Items.AddRange(new object[] {
"jpg",
"bmp",
"png",
"tiff",
"gif",
"pdf"});
this.com_fileFormat.Size = new System.Drawing.Size(125, 24);
this.com_fileFormat.TabIndex = 43;
this.com_fileFormat.SelectedIndexChanged += new System.EventHandler(this.OnFileFormatSelectedIndexChanged);
//
// com_Colorformat
//
this.com_Colorformat.Location = new System.Drawing.Point(103, 28);
this.com_Colorformat.Margin = new System.Windows.Forms.Padding(4);
this.com_Colorformat.Name = "com_Colorformat";
this.com_Colorformat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.com_Colorformat.Properties.Items.AddRange(new object[] {
"彩色",
"灰度",
"黑白"});
this.com_Colorformat.Size = new System.Drawing.Size(125, 24);
this.com_Colorformat.TabIndex = 42;
this.com_Colorformat.SelectedIndexChanged += new System.EventHandler(this.OnColorformatSelectedIndexChanged);
//
// Label14
//
this.Label14.AutoSize = true;
this.Label14.Location = new System.Drawing.Point(209, 100);
this.Label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label14.Name = "Label14";
this.Label14.Size = new System.Drawing.Size(32, 18);
this.Label14.TabIndex = 41;
this.Label14.Text = "100";
//
// TrackQuality
//
this.TrackQuality.AutoSize = false;
this.TrackQuality.Location = new System.Drawing.Point(41, 95);
this.TrackQuality.Margin = new System.Windows.Forms.Padding(4);
this.TrackQuality.Maximum = 100;
this.TrackQuality.Name = "TrackQuality";
this.TrackQuality.Size = new System.Drawing.Size(171, 25);
this.TrackQuality.TabIndex = 40;
this.TrackQuality.TickStyle = System.Windows.Forms.TickStyle.None;
this.TrackQuality.Value = 100;
//
// Label7
//
this.Label7.AutoSize = true;
this.Label7.Location = new System.Drawing.Point(8, 98);
this.Label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label7.Name = "Label7";
this.Label7.Size = new System.Drawing.Size(38, 18);
this.Label7.TabIndex = 39;
this.Label7.Text = "质量";
//
// Label10
//
this.Label10.AutoSize = true;
this.Label10.Location = new System.Drawing.Point(27, 31);
this.Label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label10.Name = "Label10";
this.Label10.Size = new System.Drawing.Size(68, 18);
this.Label10.TabIndex = 30;
this.Label10.Text = "颜色格式";
//
// Label11
//
this.Label11.AutoSize = true;
this.Label11.Location = new System.Drawing.Point(28, 64);
this.Label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label11.Name = "Label11";
this.Label11.Size = new System.Drawing.Size(68, 18);
this.Label11.TabIndex = 37;
this.Label11.Text = "文件格式";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.rad_ManualTrim);
this.groupBox5.Controls.Add(this.rad_AutoTrim);
this.groupBox5.Controls.Add(this.rad_DontTrim);
this.groupBox5.Location = new System.Drawing.Point(716, 381);
this.groupBox5.Margin = new System.Windows.Forms.Padding(4);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Padding = new System.Windows.Forms.Padding(4);
this.groupBox5.Size = new System.Drawing.Size(243, 125);
this.groupBox5.TabIndex = 91;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "裁切";
//
// rad_ManualTrim
//
this.rad_ManualTrim.AutoSize = true;
this.rad_ManualTrim.Location = new System.Drawing.Point(67, 79);
this.rad_ManualTrim.Margin = new System.Windows.Forms.Padding(4);
this.rad_ManualTrim.Name = "rad_ManualTrim";
this.rad_ManualTrim.Size = new System.Drawing.Size(89, 22);
this.rad_ManualTrim.TabIndex = 19;
this.rad_ManualTrim.Text = "手动裁切";
this.rad_ManualTrim.UseVisualStyleBackColor = true;
this.rad_ManualTrim.CheckedChanged += new System.EventHandler(this.OnFrmManualTrim);
//
// rad_AutoTrim
//
this.rad_AutoTrim.AutoSize = true;
this.rad_AutoTrim.Location = new System.Drawing.Point(67, 49);
this.rad_AutoTrim.Margin = new System.Windows.Forms.Padding(4);
this.rad_AutoTrim.Name = "rad_AutoTrim";
this.rad_AutoTrim.Size = new System.Drawing.Size(89, 22);
this.rad_AutoTrim.TabIndex = 18;
this.rad_AutoTrim.Text = "自动裁切";
this.rad_AutoTrim.UseVisualStyleBackColor = true;
this.rad_AutoTrim.CheckedChanged += new System.EventHandler(this.OnFrmAutoTrim);
//
// rad_DontTrim
//
this.rad_DontTrim.AutoSize = true;
this.rad_DontTrim.Checked = true;
this.rad_DontTrim.Location = new System.Drawing.Point(67, 20);
this.rad_DontTrim.Margin = new System.Windows.Forms.Padding(4);
this.rad_DontTrim.Name = "rad_DontTrim";
this.rad_DontTrim.Size = new System.Drawing.Size(74, 22);
this.rad_DontTrim.TabIndex = 17;
this.rad_DontTrim.TabStop = true;
this.rad_DontTrim.Text = "不裁切";
this.rad_DontTrim.UseVisualStyleBackColor = true;
this.rad_DontTrim.CheckedChanged += new System.EventHandler(this.OnFrmDontTrim);
//
// GroupBox1
//
this.GroupBox1.Controls.Add(this.Label9);
this.GroupBox1.Controls.Add(this.com_Equip);
this.GroupBox1.Controls.Add(this.com_resolution);
this.GroupBox1.Controls.Add(this.Label8);
this.GroupBox1.Controls.Add(this.GroupBox12);
this.GroupBox1.Controls.Add(this.GroupBox7);
this.GroupBox1.Location = new System.Drawing.Point(685, 26);
this.GroupBox1.Margin = new System.Windows.Forms.Padding(4);
this.GroupBox1.Name = "GroupBox1";
this.GroupBox1.Padding = new System.Windows.Forms.Padding(4);
this.GroupBox1.Size = new System.Drawing.Size(297, 348);
this.GroupBox1.TabIndex = 90;
this.GroupBox1.TabStop = false;
this.GroupBox1.Text = "参数设置";
//
// Label9
//
this.Label9.AutoSize = true;
this.Label9.Location = new System.Drawing.Point(31, 31);
this.Label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label9.Name = "Label9";
this.Label9.Size = new System.Drawing.Size(38, 18);
this.Label9.TabIndex = 66;
this.Label9.Text = "设备";
//
// com_Equip
//
this.com_Equip.FormattingEnabled = true;
this.com_Equip.Location = new System.Drawing.Point(76, 26);
this.com_Equip.Margin = new System.Windows.Forms.Padding(4);
this.com_Equip.Name = "com_Equip";
this.com_Equip.Size = new System.Drawing.Size(204, 26);
this.com_Equip.TabIndex = 67;
//
// com_resolution
//
this.com_resolution.Enabled = false;
this.com_resolution.FormattingEnabled = true;
this.com_resolution.Location = new System.Drawing.Point(76, 71);
this.com_resolution.Margin = new System.Windows.Forms.Padding(4);
this.com_resolution.Name = "com_resolution";
this.com_resolution.Size = new System.Drawing.Size(204, 26);
this.com_resolution.TabIndex = 64;
this.com_resolution.SelectedIndexChanged += new System.EventHandler(this.OnComResSelectedIndexChanged);
//
// Label8
//
this.Label8.AutoSize = true;
this.Label8.Location = new System.Drawing.Point(19, 76);
this.Label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label8.Name = "Label8";
this.Label8.Size = new System.Drawing.Size(53, 18);
this.Label8.TabIndex = 65;
this.Label8.Text = "分辨率";
//
// GroupBox12
//
this.GroupBox12.Controls.Add(this.btn_ImgStting);
this.GroupBox12.Location = new System.Drawing.Point(16, 259);
this.GroupBox12.Margin = new System.Windows.Forms.Padding(4);
this.GroupBox12.Name = "GroupBox12";
this.GroupBox12.Padding = new System.Windows.Forms.Padding(4);
this.GroupBox12.Size = new System.Drawing.Size(265, 74);
this.GroupBox12.TabIndex = 63;
this.GroupBox12.TabStop = false;
//
// btn_ImgStting
//
this.btn_ImgStting.Location = new System.Drawing.Point(12, 21);
this.btn_ImgStting.Margin = new System.Windows.Forms.Padding(4);
this.btn_ImgStting.Name = "btn_ImgStting";
this.btn_ImgStting.Size = new System.Drawing.Size(240, 38);
this.btn_ImgStting.TabIndex = 93;
this.btn_ImgStting.Text = "图像设置";
this.btn_ImgStting.Click += new System.EventHandler(this.OnPicSettingClick);
//
// GroupBox7
//
this.GroupBox7.Controls.Add(this.btn_obtain);
this.GroupBox7.Controls.Add(this.cek_autoExposure);
this.GroupBox7.Controls.Add(this.TrackBar1);
this.GroupBox7.Controls.Add(this.TrackBar2);
this.GroupBox7.Controls.Add(this.Label2);
this.GroupBox7.Controls.Add(this.Label1);
this.GroupBox7.Location = new System.Drawing.Point(16, 105);
this.GroupBox7.Margin = new System.Windows.Forms.Padding(4);
this.GroupBox7.Name = "GroupBox7";
this.GroupBox7.Padding = new System.Windows.Forms.Padding(4);
this.GroupBox7.Size = new System.Drawing.Size(265, 152);
this.GroupBox7.TabIndex = 63;
this.GroupBox7.TabStop = false;
//
// btn_obtain
//
this.btn_obtain.Location = new System.Drawing.Point(11, 15);
this.btn_obtain.Margin = new System.Windows.Forms.Padding(4);
this.btn_obtain.Name = "btn_obtain";
this.btn_obtain.Size = new System.Drawing.Size(244, 31);
this.btn_obtain.TabIndex = 94;
this.btn_obtain.Text = "获取参数";
this.btn_obtain.Click += new System.EventHandler(this.OnBtnobtainClick);
//
// cek_autoExposure
//
this.cek_autoExposure.AutoSize = true;
this.cek_autoExposure.Enabled = false;
this.cek_autoExposure.Location = new System.Drawing.Point(159, 121);
this.cek_autoExposure.Margin = new System.Windows.Forms.Padding(4);
this.cek_autoExposure.Name = "cek_autoExposure";
this.cek_autoExposure.Size = new System.Drawing.Size(90, 22);
this.cek_autoExposure.TabIndex = 10;
this.cek_autoExposure.Text = "自动曝光";
this.cek_autoExposure.UseVisualStyleBackColor = true;
this.cek_autoExposure.CheckedChanged += new System.EventHandler(this.OnCheckBoxCheckedChanged);
//
// TrackBar1
//
this.TrackBar1.AutoSize = false;
this.TrackBar1.Enabled = false;
this.TrackBar1.Location = new System.Drawing.Point(60, 50);
this.TrackBar1.Margin = new System.Windows.Forms.Padding(4);
this.TrackBar1.Name = "TrackBar1";
this.TrackBar1.Size = new System.Drawing.Size(197, 38);
this.TrackBar1.TabIndex = 8;
this.TrackBar1.TickStyle = System.Windows.Forms.TickStyle.None;
this.TrackBar1.Scroll += new System.EventHandler(this.OnTrackBarScrol);
//
// TrackBar2
//
this.TrackBar2.AutoSize = false;
this.TrackBar2.Enabled = false;
this.TrackBar2.Location = new System.Drawing.Point(60, 86);
this.TrackBar2.Margin = new System.Windows.Forms.Padding(4);
this.TrackBar2.Name = "TrackBar2";
this.TrackBar2.Size = new System.Drawing.Size(197, 36);
this.TrackBar2.TabIndex = 9;
this.TrackBar2.TickStyle = System.Windows.Forms.TickStyle.None;
this.TrackBar2.Scroll += new System.EventHandler(this.OnTrackExposureScrol);
//
// Label2
//
this.Label2.AutoSize = true;
this.Label2.Enabled = false;
this.Label2.Location = new System.Drawing.Point(15, 92);
this.Label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label2.Name = "Label2";
this.Label2.Size = new System.Drawing.Size(38, 18);
this.Label2.TabIndex = 12;
this.Label2.Text = "曝光";
//
// Label1
//
this.Label1.AutoSize = true;
this.Label1.Enabled = false;
this.Label1.Location = new System.Drawing.Point(15, 58);
this.Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(38, 18);
this.Label1.TabIndex = 11;
this.Label1.Text = "亮度";
//
// axCamCaptureCtl
//
this.axCamCaptureCtl.Enabled = true;
this.axCamCaptureCtl.Location = new System.Drawing.Point(24, 28);
this.axCamCaptureCtl.Margin = new System.Windows.Forms.Padding(4);
this.axCamCaptureCtl.Name = "axCamCaptureCtl";
this.axCamCaptureCtl.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axCamCaptureCtl.OcxState")));
this.axCamCaptureCtl.Size = new System.Drawing.Size(590, 490);
this.axCamCaptureCtl.TabIndex = 83;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(20, 578);
this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(98, 18);
this.label15.TabIndex = 82;
this.label15.Text = "图片保存路径";
//
// FrmHighBeater
//
this.Appearance.BackColor = System.Drawing.SystemColors.Control;
this.Appearance.Options.UseBackColor = true;
this.Appearance.Options.UseFont = true;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1011, 661);
this.Controls.Add(this.panelControl1);
this.KeyPreview = true;
this.Margin = new System.Windows.Forms.Padding(5);
this.MaximizeBox = false;
this.Name = "FrmHighBeater";
this.Text = "高拍仪(回车自动拍摄)";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnFrmHighBeater_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
this.panelControl1.ResumeLayout(false);
this.panelControl1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.btn_selectPic.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.btn_select.Properties)).EndInit();
this.GroupBox8.ResumeLayout(false);
this.GroupBox8.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.com_fileFormat.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.com_Colorformat.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.TrackQuality)).EndInit();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.GroupBox1.ResumeLayout(false);
this.GroupBox1.PerformLayout();
this.GroupBox12.ResumeLayout(false);
this.GroupBox7.ResumeLayout(false);
this.GroupBox7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.TrackBar1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.TrackBar2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axCamCaptureCtl)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.PanelControl panelControl1;
private System.Windows.Forms.Label label15;
private DevExpress.XtraEditors.SimpleButton btn_oneByone;
private DevExpress.XtraEditors.SimpleButton btn_AutoSize;
private DevExpress.XtraEditors.SimpleButton btn_right;
private DevExpress.XtraEditors.SimpleButton btn_left;
private DevExpress.XtraEditors.SimpleButton btn_max;
private DevExpress.XtraEditors.SimpleButton btn_min;
internal System.Windows.Forms.GroupBox GroupBox8;
internal System.Windows.Forms.Label Label14;
internal System.Windows.Forms.TrackBar TrackQuality;
internal System.Windows.Forms.Label Label7;
internal System.Windows.Forms.Label Label10;
internal System.Windows.Forms.Label Label11;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.RadioButton rad_ManualTrim;
private System.Windows.Forms.RadioButton rad_AutoTrim;
private System.Windows.Forms.RadioButton rad_DontTrim;
internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.ComboBox com_resolution;
internal System.Windows.Forms.Label Label8;
internal System.Windows.Forms.GroupBox GroupBox12;
internal System.Windows.Forms.GroupBox GroupBox7;
internal System.Windows.Forms.CheckBox cek_autoExposure;
internal System.Windows.Forms.TrackBar TrackBar1;
internal System.Windows.Forms.TrackBar TrackBar2;
internal System.Windows.Forms.Label Label2;
internal System.Windows.Forms.Label Label1;
private DevExpress.XtraEditors.SimpleButton btn_ImgStting;
private DevExpress.XtraEditors.SimpleButton btn_obtain;
private DevExpress.XtraEditors.ButtonEdit btn_select;
private DevExpress.XtraEditors.ComboBoxEdit com_fileFormat;
private DevExpress.XtraEditors.ComboBoxEdit com_Colorformat;
internal System.Windows.Forms.Label Label9;
internal System.Windows.Forms.ComboBox com_Equip;
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
public AxCamCaptureCtlLib.AxCamCaptureCtl axCamCaptureCtl;
private DevExpress.XtraEditors.ButtonEdit btn_selectPic;
private System.Windows.Forms.Label label3;
private DevExpress.XtraEditors.SimpleButton startBtn;
}
}
@@ -0,0 +1,609 @@
using DevExpress.XtraEditors.Controls;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Windows.Forms;
using AxCamCaptureCtlLib;
using Newtonsoft.Json.Linq;
namespace Lskj.Control.HighBeaterInvoice
{
public partial class FrmHighBeater : BaseForm
{
#region
/// <summary>
/// 是否能打开
/// </summary>
public bool isopen = false;
/// <summary>
/// 图片保存地址
/// </summary>
public string ImgPath;
/// <summary>
/// 图片下载个数
/// </summary>
public int count = 0;
public DataTable dataSource;
#endregion
#region
/// <summary>
/// 旋转位置
/// </summary>
private int rotateAngle = 0;
/// <summary>
/// 接口数字头
/// </summary>
private const String host = "https://multcommon.market.alicloudapi.com";
/// <summary>
/// 接口path字段
/// </summary>
private const String path = "/ocrservice/mixedMultiCommon";
/// <summary>
/// 接口调用方法
/// </summary>
private const String method = "POST";
/// <summary>
/// 接口调用的appcode值
/// </summary>
private const String appcode = "a3d2489d8d994df3b42f8c655acfed8a";
#endregion
public FrmHighBeater()
{
InitializeComponent();
this.KeyDown += new KeyEventHandler(OnKeyDown);
this.startBtn.Click += new EventHandler(OnStartBtn);
InitializeLoad();
}
#region
#region
/// <summary>
/// 初始化事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void InitializeLoad()
{
int devCount = axCamCaptureCtl.GetDeviceCount(); //获取设备支持的视频格式数目
if (devCount <= 0)
{
MessageUtil.Show("没发现合适的设备");
return;
}
for (int k = 0; k < devCount; k++)
{
com_Equip.Items.Add(axCamCaptureCtl.GetDeviceName(k)); //获取设备名称
}
com_Equip.SelectedIndex = 0;
int resCount = axCamCaptureCtl.GetResolutionCount(com_Equip.SelectedIndex);
for (int j = 0; j < resCount; j++)
{
com_resolution.Items.Add(axCamCaptureCtl.GetResolution(j)); //获取分辨率
}
com_resolution.SelectedIndex = 6;
com_Colorformat.SelectedIndex = 0; //默认为彩色
com_fileFormat.SelectedIndex = 0; //默认文件格式为jpg
ImgPath = Lskj.Util.PubUtil.CreateInvoicePic; //System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
btn_select.Text = ImgPath;
btn_select.ButtonClick += new ButtonPressedEventHandler(OnButtonEditClick);
btn_selectPic.ButtonClick += new ButtonPressedEventHandler(OnBtn_selectPic_ButtonClick);
}
#region
public void OpenDev()
{
if (isopen == true) return;
string SizeStr = com_resolution.SelectedItem.ToString();
int pos, width, height;
pos = SizeStr.LastIndexOf("*");
width = Convert.ToInt32(SizeStr.Substring(0, pos)); //宽
height = Convert.ToInt32(SizeStr.Substring(pos + 1, SizeStr.Length - (pos + 1))); //高
int i = this.axCamCaptureCtl.OpenDevice(com_Equip.SelectedIndex, width, height); //开启摄像头
if (i == 0)
{
//MessageBox.Show("开启成功");
isopen = true;
}
else
{
//MessageBox.Show("开启失败!");
//return;
}
//axCamCaptureCtl1.CAM_Open(0, 1, 2592, 1944); //开启摄像头
}
#endregion
#endregion
#endregion
#region
#region
/// <summary>
/// 分辨率改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnComResSelectedIndexChanged(object sender, EventArgs e)
{
if (isopen == true)
{
this.axCamCaptureCtl.CloseDevice();
string SizeStr = com_resolution.SelectedItem.ToString();
int pos, width, height;
pos = SizeStr.LastIndexOf("*");
width = Convert.ToInt32(SizeStr.Substring(0, pos)); //宽
height = Convert.ToInt32(SizeStr.Substring(pos + 1, SizeStr.Length - (pos + 1))); //高
int i = this.axCamCaptureCtl.OpenDevice(com_Equip.SelectedIndex, width, height); //开启摄像头
//if (i == 0)
//{
// MessageBox.Show("切换分辨率失败!");
// isopen = true;
//}
//else
//{
// MessageBox.Show("切换分辨率失败!");
//}
}
}
#endregion
#region
/// <summary>
/// 手动查询图片执行
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnStartBtn(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.btn_selectPic.Text))
{
string headStr = string.Empty;
string extensionStr = Path.GetExtension(this.btn_selectPic.Text).ToLower();
switch (extensionStr)
{
case ".jpg":
case ".jpeg":
headStr = "data:image/jpeg;base64,";
break;
case ".png":
headStr = "data:image/png;base64,";
break;
}
//string base64str = headStr + axCamCaptureCtl.GetBase64FromFile(this.btn_selectPic.Text);
if (!string.IsNullOrEmpty(Business.SystemInfo.Instance.GpyAccessKey) && !string.IsNullOrEmpty(Business.SystemInfo.Instance.GpyAccessSecret))
{
MethodClass.Api.AccessKey = Business.SystemInfo.Instance.GpyAccessKey;
MethodClass.Api.AccessSecret = Business.SystemInfo.Instance.GpyAccessSecret;
}
string resultStr = MethodClass.Api.GetResult("", "", this.btn_selectPic.Text);
JObject result = (JObject)JsonConvert.DeserializeObject(resultStr);
if (result["data"] == null && result["message"] != null && result["status"] != null)
{
MessageUtil.Show(string.Format("错误编号:{0}\r\n错误信息:{1}", result["status"] + "", result["message"] + ""));
this.DialogResult = DialogResult.No;
}
else
{
if (result["data"] != null && result["data"]["type"] != null)
{
string _result = TranInvoiceData.TranData(@resultStr, result["data"]["type"] + "");
JObject nResult = (JObject)JsonConvert.DeserializeObject(_result);
DataRow row = this.dataSource.NewRow();
foreach (DataColumn col in this.dataSource.Columns)
{
if (nResult["data"]["details"][col.Caption + ""] != null)
{
row[col.ColumnName] = nResult["data"]["details"][col.Caption + ""] + "";
}
}
if (result["data"]["items"] != null)
{
foreach (DataColumn col in this.dataSource.Columns)
{
if (nResult["data"]["details"]["items"][col.Caption + ""] != null)
{
row[col.ColumnName] = nResult["data"]["details"]["items"][col.Caption + ""] + "";
}
}
}
this.dataSource.Rows.Add(row);
}
else
{
MessageUtil.Show("未识别到数据!");
}
//result.
this.DialogResult = DialogResult.OK;
}
}
else
{
this.axCamCaptureCtl.Focus();
SendKeys.Send("{ENTER}");
}
}
#endregion
#region
/// <summary>
/// 缩小操作
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnBtnMinClick(object sender, EventArgs e)
{
this.axCamCaptureCtl.ZoomOut();
}
/// <summary>
/// 放大操作
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnBtnMaxClick(object sender, EventArgs e)
{
this.axCamCaptureCtl.ZoomIn();
}
/// <summary>
/// 左旋转操作
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnLeftRevClick(object sender, EventArgs e)
{
rotateAngle -= 90;
if (rotateAngle < 0)
rotateAngle = 270;
this.axCamCaptureCtl.SetRotate(rotateAngle);
}
/// <summary>
/// 右旋转操作
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnRightRevClick(object sender, EventArgs e)
{
rotateAngle += 90;
if (rotateAngle > 270)
rotateAngle = 0;
this.axCamCaptureCtl.SetRotate(rotateAngle);
}
/// <summary>
/// 自动适合大小
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnfitAutoClick(object sender, EventArgs e)
{
this.axCamCaptureCtl.BestSize();
}
/// <summary>
/// 设置1:1对比
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnToOneClick(object sender, EventArgs e)
{
this.axCamCaptureCtl.TrueSize();
}
#endregion
#region
/// <summary>
/// 文件存储地址改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnButtonEditClick(object sender, ButtonPressedEventArgs e)
{
folderBrowserDialog1.Description = "请选择文件夹";
if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
{
ImgPath = folderBrowserDialog1.SelectedPath;
btn_select.Text = ImgPath;
}
}
private void OnBtn_selectPic_ButtonClick(object sender, ButtonPressedEventArgs e)
{
OpenFileDialog fileDialog = new OpenFileDialog();
fileDialog.Title = "请选择文件";
fileDialog.Filter = "图片文件(*.bmp;*.jpg;*.png)|*.bmp;*.jpg;*.png|All files (*.*)|*.*";
if (fileDialog.ShowDialog() == DialogResult.OK)
{
//ImgPath = folderBrowserDialog1.SelectedPath;
//btn_select.Text = ImgPath;
btn_selectPic.Text = fileDialog.FileName;
}
}
#endregion
#region ocr获取参数事件
/// <summary>
/// ocr获取参数事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnBtnobtainClick(object sender, EventArgs e)
{
Label1.Enabled = true;
Label2.Enabled = true;
TrackBar1.Enabled = true;
cek_autoExposure.Enabled = true;
int min, max, currentVal, defVal;
string strRang = axCamCaptureCtl.GetCamProcParmRange(0); //获取亮度值范围
int pos = strRang.LastIndexOf("|");
min = Convert.ToInt32(strRang.Substring(0, pos));
max = Convert.ToInt32(strRang.Substring(pos + 1, strRang.Length - (pos + 1)));
string CurrentDefStr = axCamCaptureCtl.GetCamProcParmDefCurrVal(0); //获取亮度当前值及默认值
pos = CurrentDefStr.LastIndexOf("|");
defVal = Convert.ToInt32(CurrentDefStr.Substring(0, pos));
currentVal = Convert.ToInt32(CurrentDefStr.Substring(pos + 1, CurrentDefStr.Length - (pos + 1)));
TrackBar1.Minimum = min;
TrackBar1.Maximum = max;
TrackBar1.Value = currentVal;
strRang = axCamCaptureCtl.GetCamExpParmRange(); //获取曝光值范围
pos = strRang.LastIndexOf("|");
min = Convert.ToInt32(strRang.Substring(0, strRang.LastIndexOf("|")));
max = Convert.ToInt32(strRang.Substring(pos + 1, strRang.Length - (pos + 1)));
CurrentDefStr = axCamCaptureCtl.GetCamExpParmDefCurrVal(); ; //获取曝光当前值及默认值
pos = CurrentDefStr.LastIndexOf("|");
defVal = Convert.ToInt32(CurrentDefStr.Substring(0, pos));
currentVal = Convert.ToInt32(CurrentDefStr.Substring(pos + 1, CurrentDefStr.Length - (pos + 1)));
TrackBar2.Minimum = min;
TrackBar2.Maximum = max;
TrackBar2.Value = currentVal;
cek_autoExposure.Checked = true;
}
#endregion
#region
/// <summary>
/// 调节亮度事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnTrackBarScrol(object sender, EventArgs e)
{
axCamCaptureCtl.SetCamProcParm(0, TrackBar1.Value);
}
/// <summary>
/// 调节曝光
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnTrackExposureScrol(object sender, EventArgs e)
{
axCamCaptureCtl.SetCamExpParm(TrackBar2.Value);
}
/// <summary>
/// 是否自动曝光
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnCheckBoxCheckedChanged(object sender, EventArgs e)
{
if (cek_autoExposure.Checked == true)
{
axCamCaptureCtl.SetAutoExp(true);
TrackBar2.Enabled = false;
}
else
{
axCamCaptureCtl.SetAutoExp(false);
TrackBar2.Enabled = true;
}
}
#endregion
#region
/// <summary>
/// 图像设置
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnPicSettingClick(object sender, EventArgs e)
{
axCamCaptureCtl.ShowImageSettingWindow();
}
#endregion
#region
/// <summary>
/// 关闭事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnFrmHighBeater_FormClosing(object sender, FormClosingEventArgs e)
{
//if (isopen == true)
//{
// this.axCamCaptureCtl.CloseDevice(); //关闭摄像头
// isopen = false;
//}
}
#endregion
#region
/// <summary>
/// 界面键盘事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnKeyDown(object sender, KeyEventArgs e)
{
//回车直接拍照
if (e.KeyCode == Keys.Enter)
{
count++;
string savePath = "";
if (com_fileFormat.SelectedIndex == 0) savePath = ImgPath + "\\" + Convert.ToString(count) + ".jpg";
if (com_fileFormat.SelectedIndex == 1) savePath = ImgPath + "\\" + Convert.ToString(count) + ".bmp";
if (com_fileFormat.SelectedIndex == 2) savePath = ImgPath + "\\" + Convert.ToString(count) + ".png";
if (com_fileFormat.SelectedIndex == 3) savePath = ImgPath + "\\" + Convert.ToString(count) + ".tiff";
if (com_fileFormat.SelectedIndex == 4) savePath = ImgPath + "\\" + Convert.ToString(count) + ".gif";
if (com_fileFormat.SelectedIndex == 5) savePath = ImgPath + "\\" + Convert.ToString(count) + ".pdf";
axCamCaptureCtl.CaptureImage(savePath);
if (savePath == "")
{
MessageBox.Show("高拍仪生成拍照失败!");
}
else
{
string headStr = string.Empty;
string extensionStr = Path.GetExtension(savePath).ToLower();
switch (extensionStr)
{
case ".jpg":
case ".jpeg":
headStr = "data:image/jpeg;base64,";
break;
case ".png":
headStr = "data:image/png;base64,";
break;
}
//string base64str = headStr + axCamCaptureCtl.GetBase64FromFile(savePath);
if (!string.IsNullOrEmpty(Business.SystemInfo.Instance.GpyAccessKey) && !string.IsNullOrEmpty(Business.SystemInfo.Instance.GpyAccessSecret))
{
MethodClass.Api.AccessKey = Business.SystemInfo.Instance.GpyAccessKey;
MethodClass.Api.AccessSecret = Business.SystemInfo.Instance.GpyAccessSecret;
}
string resultStr = MethodClass.Api.GetResult("", "", savePath);
JObject result = (JObject)JsonConvert.DeserializeObject(resultStr);
if (result["data"] == null && result["message"] != null && result["status"] != null)
{
MessageUtil.Show(string.Format("错误编号:{0}\r\n错误信息:{1}", result["status"] + "", result["message"] + ""));
this.DialogResult = DialogResult.No;
}
else
{
if (result["data"] != null && result["data"]["type"] != null)
{
string _result = TranInvoiceData.TranData(@resultStr, result["data"]["type"] + "");
JObject nResult = (JObject)JsonConvert.DeserializeObject(_result);
DataRow row = this.dataSource.NewRow();
foreach (DataColumn col in this.dataSource.Columns)
{
if (nResult["data"]["details"][col.Caption + ""] != null)
{
row[col.ColumnName] = nResult["data"]["details"][col.Caption + ""] + "";
}
}
if (result["data"]["items"] != null)
{
foreach (DataColumn col in this.dataSource.Columns)
{
if (nResult["data"]["details"]["items"][col.Caption + ""] != null)
{
row[col.ColumnName] = nResult["data"]["details"]["items"][col.Caption + ""] + "";
}
}
}
this.dataSource.Rows.Add(row);
}
else
{
MessageUtil.Show("未识别到数据!");
}
//result.
this.DialogResult = DialogResult.OK;
}
//textBox1.Text += httpResponse.StatusCode;
//textBox1.Text += httpResponse.Method;
//textBox1.Text += httpResponse.Headers;
//Stream st = httpResponse.GetResponseStream();
//StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
//textBox1.Text += reader.ReadToEnd();
//textBox1.Text += "\n";
}
}
}
#endregion
#region
/// <summary>
/// 质量设置事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnTrackQuality(object sender, EventArgs e)
{
axCamCaptureCtl.SetJpgQuanlity(TrackQuality.Value);
Label14.Text = Convert.ToString(TrackQuality.Value);
}
#endregion
#region
/// <summary>
/// 不裁切
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnFrmDontTrim(object sender, EventArgs e)
{
axCamCaptureCtl.SetCutType(0);
}
/// <summary>
/// 自动裁切
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnFrmAutoTrim(object sender, EventArgs e)
{
axCamCaptureCtl.SetCutType(1);
}
/// <summary>
/// 手动裁切
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void OnFrmManualTrim(object sender, EventArgs e)
{
axCamCaptureCtl.SetCutType(2);
}
#endregion
#region
/// <summary>
/// 扫码方法
/// </summary>
/// <param name="sender"></param>
/// <param name="certificate"></param>
/// <param name="chain"></param>
/// <param name="errors"></param>
/// <returns></returns>
public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
return true;
}
#endregion
#region
/// <summary>
/// 颜色格式
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnColorformatSelectedIndexChanged(object sender, EventArgs e)
{
axCamCaptureCtl.SetImageColorMode(com_Colorformat.SelectedIndex);
}
/// <summary>
/// 文件格式
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void OnFileFormatSelectedIndexChanged(object sender, EventArgs e)
{
axCamCaptureCtl.SetImageFormat(com_fileFormat.SelectedIndex);
}
#endregion
#endregion
}
}
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="axCamCaptureCtl.OcxState" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACFTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5BeEhvc3QrU3RhdGUBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAAJQAAAAIB
AAAAAQAAAAAAAAAAAAAAABAAAAAAAAEA+jwAAKUyAAAAAAAACw==
</value>
</data>
<metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
@@ -0,0 +1,377 @@
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;
}
}
}