diff --git a/插件库/Lskj.PubInvoiceOut/FrmMain.Designer.cs b/插件库/Lskj.PubInvoiceOut/FrmMain.Designer.cs index 40bbe0b..79de9d3 100644 --- a/插件库/Lskj.PubInvoiceOut/FrmMain.Designer.cs +++ b/插件库/Lskj.PubInvoiceOut/FrmMain.Designer.cs @@ -42,32 +42,4 @@ namespace Lskj.PubInvoiceOut this.progressPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.progressPanel.Location = new System.Drawing.Point(0, 0); this.progressPanel.Name = "progressPanel"; - this.progressPanel.Size = new System.Drawing.Size(284, 261); - this.progressPanel.TabIndex = 6; - this.progressPanel.Text = "progressPanel"; - this.progressPanel.Visible = false; - // - // FrmMain - // - 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(284, 261); - this.Controls.Add(this.progressPanel); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "FrmMain"; - this.Opacity = 0D; - this.ShowInTaskbar = false; - this.Text = "FrmMain"; - this.ResumeLayout(false); - - } - - #endregion - - private DevExpress.XtraWaitForm.ProgressPanel progressPanel; - } -} - + this.progr \ No newline at end of file diff --git a/插件库/Lskj.PubInvoiceOut/FrmMain.cs b/插件库/Lskj.PubInvoiceOut/FrmMain.cs index e68dba7..be16553 100644 --- a/插件库/Lskj.PubInvoiceOut/FrmMain.cs +++ b/插件库/Lskj.PubInvoiceOut/FrmMain.cs @@ -434,7 +434,7 @@ namespace Lskj.PubInvoiceOut DialogResult dialogResult = frmSendCode.ShowDialog(); if (dialogResult == DialogResult.OK) { - MainMakeInvoice(); + MainMakeRedInvoice(); return; } else @@ -471,7 +471,7 @@ namespace Lskj.PubInvoiceOut if (dialogResult == DialogResult.OK) { WaitForm.ShowForm(); - MainMakeInvoice(); + MainMakeRedInvoice(); return; } else @@ -942,6 +942,14 @@ namespace Lskj.PubInvoiceOut pmsJObject.Add("invoiceItems", invoiceItemsArray); HttpWebResponse webResponse = HttpTools.Post(url, JsonConvert.SerializeObject(pmsJObject), null, headerDic, HttpTools.Method.POST); string result = new StreamReader(webResponse.GetResponseStream(), Encoding.UTF8).ReadToEnd(); + try + { + string sql = $"insert into p_invoiceMsg (method,data,rtnMsg,sendDate) values ('蓝字发票开具',LEFT('{JsonConvert.SerializeObject(pmsJObject).Replace("'", "''")}',8000),LEFT('{result.Replace("'", "''")}',8000),'{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}');"; + SqlHelper.ExecuteNonQuery(sql); + } + catch (Exception) + { + } if (webResponse != null && !string.IsNullOrEmpty(result)) { JObject resultJObject = (JObject)JsonConvert.DeserializeObject(result);