SVN r1187

SVN-Revision: r1187
This commit is contained in:
tdx
2026-05-30 13:40:44 +00:00
parent 6234fd7091
commit 0b8d679d6a
2 changed files with 11 additions and 31 deletions
+10 -2
View File
@@ -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);