SVN r1187
SVN-Revision: r1187
This commit is contained in:
@@ -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