private static RegFileInfo smethod_3(string string_0, TaxCard taxCard_1) { DateTime time; if (taxCard_1 == null) { taxCard_1 = taxCard_0; } else { taxCard_0 = taxCard_1; } string taxCode = taxCard_1.TaxCode; if (((taxCard_1.TaxCode.Length > 15) && (SetupOrgCode != null)) && (SetupOrgCode.Length > 0)) { taxCode = taxCode + SetupOrgCode; } string b = taxCard_1.TaxCode; if ((taxCard_1.CorpCode != null) && (taxCard_1.CorpCode.Length >= 15)) { b = taxCard_1.TaxCode.Substring(0, 6) + taxCard_1.CorpCode.Substring(6, 9); } qwe qwe = new qwe(); taxCard_1.GetCardClock(out time, 0); if (Xihaa.abc(string_0, taxCode, (ushort)taxCard_1.Machine, time.ToString("yyyyMMdd"), ref qwe) == 0) { RegFileInfo info = new RegFileInfo(string_0, qwe, new FileInfo(string_0).LastWriteTime); string a = new string(info.FileContent.TaxCode); string str2 = a; if (a.StartsWith("50")) { a = "91" + a.Substring(2); } if (((!string.Equals(str2, taxCard_1.CompressCode) && !string.Equals(a, taxCard_1.CompressCode)) && (!string.Equals(a, b) && !string.Equals(a, taxCard_1.CorpCode))) && !string.Equals(a, taxCard_1.TaxCode)) { ilog_0.DebugFormat("文件原始税号={0},压缩税号={1};变换后税号1={2},变换后税号2={3};CorpCode税号={4},TaxCode税号={5};", new object[] { str2, taxCard_1.CompressCode, a, b, taxCard_1.CorpCode, taxCard_1.TaxCode }); info.ErrCode = "910103"; return(info); } if (taxCard_1.Machine != info.FileContent.BranchNo) { ilog_0.DebugFormat("开票机号={0},文件开票机号={1}", taxCard_1.Machine, info.FileContent.BranchNo); info.ErrCode = "910104"; return(info); } info.ErrCode = "0000"; return(info); } return(new RegFileInfo(string_0, qwe, new FileInfo(string_0).LastWriteTime) { ErrCode = "910101" }); }
public static extern uint abc(string string_0, string string_1, ushort ushort_0, string string_2, ref qwe qwe_0);
public RegFileInfo(string string_2, qwe qwe_1, DateTime dateTime_1) { this.string_0 = string_2; this.qwe_0 = qwe_1; this.dateTime_0 = dateTime_1; }