public object[] UploadFPBySingle(object[] object_2) { if ((object_2 != null) && (object_2.Length >= 1)) { try { Class87.bool_3 = true; Class101.smethod_0(string.Concat(new object[] { "传递的参数个数:", object_2.Length, " ", object_2[0].ToString(), " ", object_2[1].ToString(), " ", object_2[2].ToString() })); Class87.bool_2 = true; if (Class87.bool_4) { new ServerUP().UPLoadSingleInInterface(object_2[0].ToString(), object_2[1].ToString(), object_2[2].ToString()); } else { Class85 class2 = new Class85(); Class87.string_1 = string.Empty; Class87.bool_0 = false; Class101.smethod_0("接口开始上传"); class2.method_2(object_2[0].ToString(), object_2[1].ToString(), object_2[2].ToString()); } Class101.smethod_0("接口上传结束"); } catch (Exception exception) { Class101.smethod_1("接口上传异常:" + exception.ToString()); Class87.string_1 = exception.ToString(); } Class101.smethod_0(string.Concat(new object[] { "接口调用结束:", Class87.bool_0, " ", Class87.string_0, " ", Class87.string_1 })); return(new object[] { Class87.bool_0, Class87.string_0, Class87.string_1 }); } return(new object[] { false, "-0001", "没有传递需要上传的发票信息!" }); }
public void UpdateSPFL() { try { MessageHelper.MsgWait("正在同步" + Class95.string_2 + "信息,请耐心等待..."); Class84 class2 = new Class84(); string str = class2.method_31(); string str2 = ""; Class101.smethod_0("商品分类信息同步,发送给局端数据:" + str); if (HttpsSender.SendMsg("0037", str, out str2) != 0) { Class101.smethod_1("商品分类更新失败:" + str2); if (!this.isAuto) { MessageHelper.MsgWait(); Class86.smethod_7(Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新:" + str2); } } else { Class101.smethod_1("商品分类信息同步,局端返回数据:" + str2); class2.method_32(str2, this.isAuto); } MessageHelper.MsgWait(); } catch (Exception exception) { MessageHelper.MsgWait(); Class101.smethod_1("UpdateSPFL:" + exception.ToString()); if (!this.isAuto) { Class86.smethod_7("商品和服务税收分类编码更新失败,请选择手动更新或去税局下载更新包导入更新:" + exception.Message); } } }
private string method_6(DataTable dataTable_0) { string innerXml = ""; if ((dataTable_0 != null) && (dataTable_0.Rows.Count >= 1)) { try { XmlDocument document = new XmlDocument(); document.AppendChild(document.CreateXmlDeclaration("1.0", "GBK", "")); XmlNode newChild = document.CreateNode(XmlNodeType.Element, "INPUT", ""); document.AppendChild(newChild); foreach (DataRow row in dataTable_0.Rows) { XmlNode node2 = document.CreateNode(XmlNodeType.Element, "FP", ""); newChild.AppendChild(node2); XmlElement element = document.CreateElement("FPDM"); element.InnerText = row["FPDM"].ToString(); node2.AppendChild(element); XmlElement element2 = document.CreateElement("FPHM"); element2.InnerText = row["FPHM"].ToString(); node2.AppendChild(element2); XmlElement element3 = document.CreateElement("FPZL"); element3.InnerText = row["FPZL"].ToString(); node2.AppendChild(element3); } innerXml = document.InnerXml; } catch (Exception exception) { Class101.smethod_1("GetUPFPInfo:" + exception.ToString()); } } return(innerXml); }
private void method_4(string string_1, List <Dictionary <string, object> > list_0) { try { XmlDocument document = new XmlDocument(); document.AppendChild(document.CreateXmlDeclaration("1.0", "GBK", "")); XmlElement newChild = document.CreateElement("FPXT"); document.AppendChild(newChild); XmlElement element2 = document.CreateElement("OUTPUT"); newChild.AppendChild(element2); XmlElement element3 = document.CreateElement("CODE"); element3.InnerText = "0000"; element2.AppendChild(element3); XmlElement element4 = document.CreateElement("MESS"); element4.InnerText = "处理成功!"; element2.AppendChild(element4); XmlElement element5 = document.CreateElement("DATA"); element2.AppendChild(element5); XmlElement element6 = document.CreateElement("NSRSBH"); element6.InnerText = this.taxCard_0.TaxCode; element5.AppendChild(element6); XmlElement element7 = document.CreateElement("KPJH"); element7.InnerText = this.taxCard_0.Machine.ToString(); element5.AppendChild(element7); XmlElement element8 = document.CreateElement("SBBH"); element8.InnerText = this.taxCard_0.GetInvControlNum(); element5.AppendChild(element8); XmlElement element9 = document.CreateElement("FP_SUCC"); element5.AppendChild(element9); XmlElement element10 = document.CreateElement("FPXX"); element10.InnerText = string_1; element9.AppendChild(element10); XmlElement element11 = document.CreateElement("FP_ERR"); element5.AppendChild(element11); foreach (Dictionary <string, object> dictionary in list_0) { XmlElement element12 = document.CreateElement("FP"); element11.AppendChild(element12); XmlElement element13 = document.CreateElement("FPDM"); element13.InnerText = dictionary["FPDM"].ToString(); element12.AppendChild(element13); XmlElement element14 = document.CreateElement("FPHM"); element14.InnerText = dictionary["FPHM"].ToString(); element12.AppendChild(element14); XmlElement element15 = document.CreateElement("CODE"); element15.InnerText = "0001"; element12.AppendChild(element15); XmlElement element16 = document.CreateElement("MESS"); element16.InnerText = dictionary["BSRZ"].ToString(); element12.AppendChild(element16); } Class87.xmlDocument_1 = document; Class87.string_3 = "0000"; Class87.string_2 = "处理完成"; } catch (Exception exception) { Class101.smethod_1("GetDownloadInfoInInterface:" + exception.ToString()); } }
private void method_0() { try { string str = PropertyUtil.GetValue("Debug", "0").ToString(); if (!string.IsNullOrEmpty(str) && str.Equals("1")) { Class101.bool_0 = true; int num2 = int.Parse(PropertyUtil.GetValue("iTotalFPNum", "10000")); if (num2 > 0) { Class87.int_0 = num2; } int num = int.Parse(PropertyUtil.GetValue("overTimeToValid", "30")); if (num > 0) { Class87.int_4 = num; } string str3 = PropertyUtil.GetValue("sSaveTest", "0").ToString(); if (!string.IsNullOrEmpty(str3) && str3.Equals("1")) { Class103.bool_0 = true; } string str2 = PropertyUtil.GetValue("ShowDebugUPDown", "0").ToString(); if (!string.IsNullOrEmpty(str2) && str2.Equals("1")) { Class101.bool_0 = true; } } } catch (Exception exception) { Class101.smethod_1("获取用户设置失败!" + exception.ToString()); } }
public object[] UploadFPInPatch(object[] object_2) { Class84 class2 = new Class84(); Class101.smethod_0("发票上传-批量接口:进入"); if ((object_2 != null) && (object_2.Length >= 1)) { Class101.smethod_0("发票上传-批量接口:传入发票为:" + object_2[0].ToString()); try { Class87.bool_3 = true; if (Class87.bool_4) { new ServerUP().UPloadInPatch(object_2[0].ToString()); } else { Class87.bool_2 = true; Class85 class3 = new Class85(); Class87.string_1 = string.Empty; Class87.bool_0 = false; class3.method_3(object_2[0].ToString()); } Class101.smethod_0("发票上传-批量接口:离开"); } catch (Exception exception) { Class101.smethod_1("发票上传-批量接口:接口异常" + exception.ToString()); Class87.string_1 = exception.ToString(); } return(new object[] { Class87.xmlDocument_0 }); } Class101.smethod_0("发票上传-批量接口:没有传入发票信息"); return(new object[] { class2.method_24() }); }
private void backgroundWorker_2_DoWork(object sender, DoWorkEventArgs e) { try { if (base.TaxCardInstance.QYLX.ISTDQY) { this.bool_1 = true; } else { this.bool_1 = false; bool shouGongXiaZai = false; DateTime now = DateTime.Now; while (!this.backgroundWorker_2.CancellationPending) { if ((now.AddSeconds((double)this.int_2) > DateTime.Now) && !UpLoadCheckState.ShouGongXiaZai) { Thread.Sleep(0x3e8); } else { if (UpLoadCheckState.CheckState()) { Thread.Sleep(0x3e8); continue; } now = DateTime.Now; shouGongXiaZai = UpLoadCheckState.ShouGongXiaZai; this.class105_0.method_0(); if (shouGongXiaZai) { UpLoadCheckState.ShouGongXiaZai = false; shouGongXiaZai = false; } } } e.Cancel = true; this.bool_1 = true; BackWorkCancleStyle style = new BackWorkCancleStyle { CanclType = CancleStyle.Cancle }; e.Result = style; Class101.smethod_0("<下载线程>下载线程退出,准备软件退出!"); } } catch (Exception exception) { e.Cancel = true; BackWorkCancleStyle style2 = new BackWorkCancleStyle { CanclType = CancleStyle.Exception }; this.bool_1 = false; e.Result = style2; Class101.smethod_1("(下载线程异常:)" + exception.ToString()); } }
private void backgroundWorker_1_DoWork_1(object sender, DoWorkEventArgs e) { try { if (base.TaxCardInstance.QYLX.ISTDQY) { this.bool_0 = true; } else { this.bool_0 = false; this.class85_0.class90_0.method_0(); while (!this.backgroundWorker_1.CancellationPending) { if (UpLoadCheckState.CheckState()) { Thread.Sleep(0x3e8); } else { this.serverUP_0.UPDownLoadFP(); Thread.Sleep(0x3e8); } } e.Cancel = true; this.bool_0 = true; BackWorkCancleStyle style = new BackWorkCancleStyle { CanclType = CancleStyle.Cancle }; e.Result = style; Class101.smethod_0("(上传线程backWorkUploadForServerUp_DoWork)线程终止,软件准备退出!"); } } catch (Exception exception) { e.Cancel = true; BackWorkCancleStyle style2 = new BackWorkCancleStyle { CanclType = CancleStyle.Exception }; this.bool_0 = true; e.Result = style2; Class101.smethod_1("(上传线程backWorkUploadForServerUp_DoWork异常:)" + exception.ToString()); } }
private int method_2() { int num = -1; try { Class100 class2 = new Class100(); num = class2.method_10(UpdateTransMethod.WBS) + class2.method_10(UpdateTransMethod.BSZ); if (num > 0) { num = (num / Class87.int_1) + 1; } } catch (Exception exception) { Class101.smethod_1("GetPageNum:" + exception.ToString()); } return(num); }
public static void CallUpload() { Class101.smethod_0("开始呼叫上传线程进行发票上传..."); if (bContinuUpload) { Class101.smethod_0("上传线程处于呼叫中..."); } else { try { bContinuUpload = true; } catch (Exception exception) { Class101.smethod_1("呼叫上传线异常:" + exception.ToString()); } Class101.smethod_0("呼叫上传线程进行发票上传结束..."); } }
public void UPDownLoadFP() { try { string str; this.int_0 = this.method_2(); if (this.int_0 < 1) { Class101.smethod_0("UPDownLoadFP begin:" + this.int_0 + " 没有需要上传数据,退出UPDownLoadFP"); return; } Class101.smethod_0("UPDownLoadFP begin:" + this.int_0); int num = 0; while (num < this.int_0) { Thread.Sleep(0x7d0); string str2 = this.method_0((num + 1).ToString()); if (str2.Trim() == "") { break; } str = ""; if (HttpsSender.SendMsg(this.string_0, str2, out str) != 0) { goto Label_00F3; } Class101.smethod_0(string.Concat(new object[] { "UPDownLoadFP ", num, " 服务器返回数据:", str })); this.method_1(str); num++; } goto Label_0128; Label_00F3 :; Class101.smethod_0(string.Concat(new object[] { "UPDownLoadFP ", num, " 服务器返回错误信息:", str })); Label_0128: Class101.smethod_0("UPDownLoadFP over:"); } catch (Exception exception) { Class101.smethod_1("UPDownLoadFP:" + exception.ToString()); } }
public void UPloadInPatch(string string_1) { Class84 class2 = new Class84(); if (string_1 == "") { Class87.xmlDocument_0 = class2.method_24(); } else { try { string[] strArray = string_1.Split(new char[] { ';' }); if ((strArray != null) && (strArray.Length >= 1)) { string str = "'0'"; foreach (string str3 in strArray) { if (!(str3 == "")) { str = str + ",'" + str3 + "'"; } } string str2 = "SELECT FPDM,FPHM,FPZL,BSZT,BSRZ,ZFBZ FROM XXFP WHERE FPDM||','||FPHM||','||FPZL IN (" + str + ")"; DataTable table = this.ibaseDAO_0.querySQLDataTable(str2); this.method_3(table); } else { Class101.smethod_0("UPloadInPatch:未获取到发票信息"); } } catch (Exception exception) { Class101.smethod_1("UPloadInPatch:" + exception.ToString()); } } }
private string method_0(string string_1) { string str = ""; try { List <Fpxx> list = new GetFpInfoDal().GetFpInfo(string_1, Class87.int_1.ToString(), UpdateTransMethod.BszAndWbs, "", "", "", ""); if ((list == null) || (list.Count < 1)) { return(str); } XmlDocument document = new XmlDocument(); document.AppendChild(document.CreateXmlDeclaration("1.0", "GBK", "")); XmlNode newChild = document.CreateNode(XmlNodeType.Element, "INPUT", ""); document.AppendChild(newChild); foreach (Fpxx fpxx in list) { XmlNode node2 = document.CreateNode(XmlNodeType.Element, "FP", ""); newChild.AppendChild(node2); XmlElement element = document.CreateElement("FPDM"); element.InnerText = fpxx.fpdm; node2.AppendChild(element); XmlElement element2 = document.CreateElement("FPHM"); element2.InnerText = fpxx.fphm; node2.AppendChild(element2); XmlElement element3 = document.CreateElement("FPZL"); switch (fpxx.fplx) { case FPLX.ZYFP: element3.InnerText = "s"; break; case FPLX.PTFP: element3.InnerText = "c"; break; case FPLX.HYFP: element3.InnerText = "f"; break; case FPLX.JDCFP: element3.InnerText = "j"; break; case FPLX.JSFP: element3.InnerText = "q"; break; case FPLX.DZFP: element3.InnerText = "p"; break; default: element3.InnerText = fpxx.fplx.ToString(); break; } node2.AppendChild(element3); } return(document.InnerXml); } catch (Exception exception) { Class101.smethod_1("GetUPFPInfo:" + exception.ToString()); } return(str); }
private void method_3(DataTable dataTable_0) { if ((dataTable_0 != null) && (dataTable_0.Rows.Count >= 1)) { try { List <string> slxlhs = new List <string>(); List <string> list2 = new List <string>(); List <Dictionary <string, object> > parameter = new List <Dictionary <string, object> >(); List <Dictionary <string, string> > listFP = new List <Dictionary <string, string> >(); Dictionary <string, object> item = new Dictionary <string, object>(); Dictionary <string, string> dictionary2 = new Dictionary <string, string>(); string str = this.method_5(); string str2 = ""; foreach (DataRow row in dataTable_0.Rows) { item = new Dictionary <string, object>(); dictionary2 = new Dictionary <string, string>(); if (row["BSZT"].ToString() == "0") { dictionary2.Add("FPDM", row["FPDM"].ToString()); dictionary2.Add("FPHM", row["FPHM"].ToString()); dictionary2.Add("FPZL", row["FPZL"].ToString()); dictionary2.Add("BSRZ", row["BSRZ"].ToString()); str2 = row["BSRZ"].ToString(); } else { item.Add("FPDM", row["FPDM"]); item.Add("FPHM", row["FPHM"]); item.Add("FPZL", row["FPZL"]); item.Add("ZFBZ", row["ZFBZ"]); item.Add("SCSJ", DateTime.Now.ToString()); item.Add("FPSLH", str); str2 = row["BSRZ"].ToString(); } if (dictionary2.Count > 0) { listFP.Add(dictionary2); } if (item.Count > 0) { parameter.Add(item); list2.Add("Aisino.Framework.MainForm.UpDown.replaceFPSLH"); } } if (parameter.Count > 0) { slxlhs.Add(str); } if ((list2.Count > 0) && (this.ibaseDAO_0.未确认DAO方法1(list2.ToArray(), parameter) > 0)) { this.class84_0.method_23(slxlhs, listFP); Class87.bool_0 = true; Class87.string_0 = "0000"; Class87.string_1 = str; } else { slxlhs.Clear(); foreach (Dictionary <string, object> dictionary3 in parameter) { Dictionary <string, string> dictionary4 = new Dictionary <string, string>(); foreach (KeyValuePair <string, object> pair in dictionary3) { dictionary4.Add(pair.Key, pair.Value.ToString()); } listFP.Add(dictionary4); } this.class84_0.method_23(slxlhs, listFP); Class87.bool_0 = false; Class87.string_0 = "-0005"; Class87.string_1 = str2; } } catch (Exception exception) { Class101.smethod_1("AnalysDatatbleFromXXFP:" + exception.ToString()); } } }
public List <Fpxx> GetFpInfo(string string_0, string string_1, UpdateTransMethod updateTransMethod_0, string string_2, string string_3, string string_4, string string_5) { if (!string.IsNullOrEmpty(string_0) && !string.IsNullOrEmpty(string_1)) { try { object[] objArray = new object[5]; if (((string.IsNullOrEmpty(string_3) || string.IsNullOrEmpty(string_2)) || string.IsNullOrEmpty(string_4)) && string.IsNullOrEmpty(string_5)) { string str = string.Empty; string str2 = string.Empty; if (updateTransMethod_0 == UpdateTransMethod.WBS) { str = "0"; str2 = "0"; } else if (updateTransMethod_0 == UpdateTransMethod.BSZ) { str = "3"; str2 = "3"; } else if (updateTransMethod_0 == UpdateTransMethod.YBS) { str = "1"; str2 = "1"; } else if (updateTransMethod_0 == UpdateTransMethod.BSSB) { str = "2"; str2 = "2"; } else { str = "0"; str2 = "3"; } objArray = new object[] { string_0, string_1, str, str2 }; } else if (string.IsNullOrEmpty(string_5)) { int result = 0; int.TryParse(string_2, out result); objArray = new object[] { string_4, string_3, result, string.Empty, "1" }; } else { objArray = new object[] { string.Empty, string.Empty, string.Empty, string.Empty, "2", string_5 }; } Class101.smethod_0(string.Concat(new object[] { "(上传线程)发票查询接口调用前--", objArray[0], ",", objArray[1], ",", objArray[2], ",", objArray[3] })); object[] objArray2 = ServiceFactory.InvokePubService("Aisino.Fwkp.Fpkj.FPChanXunPageShareMethods", objArray); if ((objArray2 != null) && (objArray2.Length > 0)) { if ((objArray.Length > 4) && string.IsNullOrEmpty(string_5)) { return(new List <Fpxx> { (objArray2[0] as Fpxx) }); } return(objArray2[0] as List <Fpxx>); } } catch (Exception exception) { Class101.smethod_1("获取发票信息失败!" + exception.ToString()); } } return(null); }
private void backgroundWorker_1_DoWork(object sender, DoWorkEventArgs e) { try { if (base.TaxCardInstance.QYLX.ISTDQY) { this.bool_0 = true; } else { this.bool_0 = false; bool flag2 = true; DateTime now = DateTime.Now; bool flag = true; bool shouGongShangChuan = false; this.class85_0.class90_0.method_0(); while (!this.backgroundWorker_1.CancellationPending) { if (UpLoadCheckState.CheckState()) { Thread.Sleep(0x3e8); } else { if ((!bContinuUpload && !flag2) && (!this.class85_0.method_4(now) && !UpLoadCheckState.ShouGongShangChuan)) { Thread.Sleep(0x3e8); continue; } if ((!bContinuUpload && !flag) && ((now.AddMinutes((double)(Class87.int_6 / 3)) > DateTime.Now) && !UpLoadCheckState.ShouGongShangChuan)) { Thread.Sleep(0x3e8); continue; } shouGongShangChuan = UpLoadCheckState.ShouGongShangChuan; this.class85_0.method_1(false, flag2); if (shouGongShangChuan) { UpLoadCheckState.ShouGongShangChuan = false; shouGongShangChuan = false; } flag = this.class85_0.method_6(); now = DateTime.Now; flag2 = false; if (bContinuUpload) { bContinuUpload = false; } } } e.Cancel = true; this.bool_0 = true; BackWorkCancleStyle style = new BackWorkCancleStyle { CanclType = CancleStyle.Cancle }; e.Result = style; Class101.smethod_0("(上传线程)线程终止,软件准备退出!"); } } catch (Exception exception) { e.Cancel = true; BackWorkCancleStyle style2 = new BackWorkCancleStyle { CanclType = CancleStyle.Exception }; this.bool_0 = true; e.Result = style2; Class101.smethod_1("(上传线程异常:)" + exception.ToString()); } }
// Token: 0x060004F4 RID: 1268 RVA: 0x00005563 File Offset: 0x00003763 internal void method_0(object object_0) { Class101.smethod_1(this.jobject_0[Class185.smethod_0(537692535)].ToString(), this.jobject_0[Class185.smethod_0(537703519)].ToString()); }
public void DonwloadInInterface(string string_1) { if (string_1 == "") { Class87.xmlDocument_1 = this.class84_0.method_26(0); } else { try { Dictionary <string, object> parameter = new Dictionary <string, object>(); parameter.Add("SLXLH", string_1); DataTable table = this.ibaseDAO_0.querySQLDataTable("Aisino.Framework.MainForm.UpDown.SelectFPsBySLH", parameter); if ((table != null) && (table.Rows.Count >= 1)) { string str = this.method_6(table); string str2 = ""; if (HttpsSender.SendMsg(this.string_0, str, out str2) == 0) { this.method_1(str2); } string str3 = ""; List <Dictionary <string, object> > list = new List <Dictionary <string, object> >(); List <Dictionary <string, object> > list2 = new List <Dictionary <string, object> >(); Dictionary <string, object> item = new Dictionary <string, object>(); Dictionary <string, object> dictionary3 = new Dictionary <string, object>(); foreach (DataRow row in table.Rows) { item = new Dictionary <string, object>(); dictionary3 = new Dictionary <string, object>(); if (row["BSZT"].ToString() == "1") { string str4 = str3; str3 = str4 + row["FPDM"].ToString() + "," + row["FPHM"].ToString() + ";"; dictionary3.Add("FPDM", row["FPDM"]); dictionary3.Add("FPHM", row["FPHM"]); dictionary3.Add("FPZL", row["FPZL"]); } else { item.Add("FPDM", row["FPDM"]); item.Add("FPHM", row["FPHM"]); item.Add("FPZL", row["FPZL"]); item.Add("BSRZ", row["BSRZ"]); } if (dictionary3.Count > 0) { list2.Add(dictionary3); } if (item.Count > 0) { list.Add(item); } } if (str3 != "") { str3 = str3.Trim(new char[] { ';' }); this.ibaseDAO_0.未确认DAO方法3("Aisino.Framework.MainForm.UpDown.DeleteFPSLH", list2); Class87.bool_1 = true; Class87.string_0 = "0000"; Class87.string_2 = "处理完成!"; } this.method_4(str3, list); } } catch (Exception exception) { Class87.bool_1 = false; Class87.string_0 = "0000"; Class87.string_2 = "处理完成!"; Class101.smethod_1("DonwloadInInterface:" + exception.ToString()); } } }
private void method_1(string string_1) { if (string_1 != "") { try { XmlDocument document = new XmlDocument(); document.LoadXml(string_1); List <string> list = new List <string>(); List <Dictionary <string, object> > parameter = new List <Dictionary <string, object> >(); Dictionary <string, object> item = new Dictionary <string, object>(); XmlNodeList elementsByTagName = document.GetElementsByTagName("FP"); if ((elementsByTagName != null) && (elementsByTagName.Count >= 1)) { foreach (XmlNode node in elementsByTagName) { XmlNodeList childNodes = node.ChildNodes; if ((childNodes != null) && (childNodes.Count >= 1)) { item = new Dictionary <string, object>(); foreach (XmlNode node2 in childNodes) { switch (node2.Name) { case "FPDM": { item.Add("FPDM", node2.InnerText); continue; } case "FPHM": { item.Add("FPHM", node2.InnerText); continue; } case "FPZL": { item.Add("FPZL", node2.InnerText); continue; } case "BSZT": { if (!(node2.InnerText == "2")) { break; } item.Add("BSZT", "0"); continue; } case "BSRZ": { item.Add("BSRZ", node2.InnerText); continue; } case "ZFBZ": { item.Add("ZFBZ", node2.InnerText); continue; } case "ZFRQ": { item.Add("ZFRQ", node2.InnerText); continue; } default: { continue; } } item.Add("BSZT", node2.InnerText); } if (item["BSZT"].ToString() == "4") { if (Class87.bool_2) { Class87.string_3 = "-0009"; Class87.string_2 = "验签失败,系统已自动作废该发票,稍后系统会重新上传该张发票!"; } if (item["FPZL"].ToString() != "p") { string str2 = string.Concat(new object[] { "发票(发票代码:", item["FPDM"], " 发票号码:", item["FPHM"], ")验签失败,请手工作废该发票!或者稍后进行发票修复重新同步该发票报送状态。" }); if (!Class87.bool_2) { MessageBoxHelper.Show(str2, "发票验签失败", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } else if (item["FPZL"].ToString() == "p") { item["BSZT"] = "0"; item["BSRZ"] = "该发票验签失败,服务器已自动作废该发票,客户端报送状态已置为未报送,稍后会从服务器重新同步报送状态!"; string str3 = string.Concat(new object[] { "发票(发票代码:", item["FPDM"], " 发票号码:", item["FPHM"], ")验签失败,服务器已自动作废该发票,客户端报送状态已置为未报送,稍后会从服务器重新同步报送状态!" }); if (!Class87.bool_2) { MessageBoxHelper.Show(str3, "发票验签失败", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } } if ((item["FPZL"].ToString() == "p") && (item["ZFBZ"].ToString() == "1")) { if (item["BSZT"].ToString() == "1") { string str4 = string.Concat(new object[] { "电子增值税普通发票(发票代码:", item["FPDM"], " 发票号码:", item["FPHM"], ")由于验签失败,服务器端已自动作废该发票,并且重新上传成功,状态置为已报送。" }); if (!Class87.bool_2) { MessageBoxHelper.Show(str4, "电子增值税普通发票自动作废提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } } new Class84().method_29(item["FPDM"].ToString(), item["FPHM"].ToString()); } list.Add("Aisino.Framework.MainForm.UpDown.UpdateFPWithResultFromKPServer"); parameter.Add(item); } } if ((list.Count > 0) && (parameter.Count == list.Count)) { this.ibaseDAO_0.未确认DAO方法1(list.ToArray(), parameter); } } } catch (Exception exception) { Class101.smethod_1("AnalysInfoFromServer:" + exception.ToString()); } } }