SVN r1187
SVN-Revision: r1187
This commit is contained in:
+1
-29
@@ -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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user