Пример #1
0
        public bool method_3(string string_0)
        {
            bool flag = false;

            if (string.IsNullOrEmpty(string_0))
            {
                return(false);
            }
            Class81 class2 = new Class81();

            if (class2.method_4().Trim().Equals(string_0.Trim()))
            {
                return(true);
            }
            try
            {
                string[] strArray = string_0.Split(new char[] { ',' });
                if (strArray != null)
                {
                    object[] objArray;
                    if (strArray.Length != 3)
                    {
                        return(flag);
                    }
                    if ((strArray[0] == "0") && (strArray[1] == "0"))
                    {
                        objArray = new object[] { true, false, strArray[0], false, strArray[1], strArray[2] };
                    }
                    else if ((strArray[0] != "0") && (strArray[1] == "0"))
                    {
                        objArray = new object[] { false, true, strArray[0], false, strArray[1], strArray[2] };
                    }
                    else if ((strArray[0] == "0") && (strArray[1] != "0"))
                    {
                        objArray = new object[] { false, false, strArray[0], true, strArray[1], strArray[2] };
                    }
                    else
                    {
                        objArray = new object[] { false, true, strArray[0], true, strArray[1], strArray[2] };
                    }
                    object[] objArray2 = ServiceFactory.InvokePubService("Aisino.Fwkp.UpdateDZDZInfo", objArray);
                    if ((objArray2 != null) && (objArray2.Length >= 1))
                    {
                        return(Convert.ToBoolean(objArray2[0]));
                    }
                }
                return(flag);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("更新上传方式失败!" + exception.ToString());
            }
            return(flag);
        }
Пример #2
0
        public int method_10(UpdateTransMethod updateTransMethod_0)
        {
            Class81 class2 = new Class81();

            switch (updateTransMethod_0)
            {
            case UpdateTransMethod.WBS:
                return(class2.method_0(0));

            case UpdateTransMethod.YBS:
                return(class2.method_0(1));

            case UpdateTransMethod.BSSB:
                return(class2.method_0(2));

            case UpdateTransMethod.BSZ:
                return(class2.method_0(3));
            }
            return(0);
        }
Пример #3
0
 public Class85()
 {
     this.dateTime_0 = new DateTime(0x76c, 1, 1);
     this.list_0     = new List <XmlDocument>();
     this.list_1     = new List <XmlDocument>();
     this.list_2     = new List <XmlDocument>();
     this.list_3     = new List <XmlDocument>();
     this.list_4     = new List <XmlDocument>();
     this.dateTime_1 = new DateTime(0x76c, 1, 1);
     this.class90_0  = new Class90();
     this.class84_0  = new Class84();
     this.class100_0 = new Class100();
     this.class81_0  = new Class81();
     try
     {
         this.dateTime_1 = DateTime.Now;
         this.bool_1     = RegisterManager.CheckRegFile("JI");
     }
     catch
     {
     }
 }
Пример #4
0
        public bool method_2(ref List <Fpxx> list_0, ref List <Fpxx> list_1, ref List <Fpxx> list_2, ref List <Fpxx> list_3, ref List <Fpxx> list_4, string string_0, UpdateTransMethod updateTransMethod_0, string string_1, string string_2, string string_3, string string_4)
        {
            List <Fpxx> list   = new GetFpInfoDal().GetFpInfo(string_0, Class87.int_1.ToString(), updateTransMethod_0, string_2, string_1, string_3, string_4);
            Class81     class2 = new Class81();

            if ((list != null) && (list.Count >= 1))
            {
                Class96 class3 = new Class96();
                TaxCard card   = TaxCard.CreateInstance(CTaxCardType.const_7);
                try
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        Class101.smethod_0("发票类型:" + list[i].fplx.ToString());
                        if ((list[i].bszt.ToString() == "3") && !Class87.bool_3)
                        {
                            class3.FpKPJH           = card.Machine.ToString();
                            class3.FPNO             = list[i].fphm;
                            class3.FPDM             = list[i].fpdm;
                            class3.FpNSRSBH         = card.TaxCode;
                            class3.FpSBBH           = card.GetInvControlNum();
                            class3.Fplx             = list[i].fplx.ToString();
                            class3.ISFpDownFailed   = false;
                            class3.IsFpUpFailed     = false;
                            class3.Boolean_0        = true;
                            class3.FpUploadTime     = this.class81_0.method_1(class3.FPNO, class3.FPDM, class3.Fplx).ToString();
                            class3.FPSQHRecieveTime = DateTime.Now.ToString();
                            class3.FPSLH            = class2.method_3(class3.FPNO, class3.FPDM, class3.Fplx);
                            string str = this.class81_0.method_2(class3.FPNO, class3.FPDM, class3.Fplx);
                            class3.DZSYH = list[i].dzsyh;
                            Class101.smethod_0("(发票上传)上传报送中发票--fpdm:" + list[i].fpdm + "    fphm:" + list[i].fphm + "   dzsyh:" + list[i].dzsyh + "  zfbz:" + str + "  fpslh:" + class3.FPSLH);
                            if (str.Equals("1"))
                            {
                                class3.ZFBZ = true;
                            }
                            else if (str.Equals("0"))
                            {
                                class3.ZFBZ = false;
                            }
                            else
                            {
                                class3.ZFBZ = list[i].zfbz;
                            }
                            if ((class3.FPSLH != null) && !(class3.FPSLH == ""))
                            {
                                class3.FPStatus = list[i].bszt.ToString();
                            }
                            else
                            {
                                class3.FPStatus = "0";
                            }
                            this.method_1(class3, Enum10.Insert);
                        }
                        else if ((list[i].fplx != FPLX.PTFP) && (list[i].fplx != FPLX.ZYFP))
                        {
                            if (list[i].fplx == FPLX.HYFP)
                            {
                                list_1.Add(list[i]);
                            }
                            else if (list[i].fplx == FPLX.JDCFP)
                            {
                                list_2.Add(list[i]);
                            }
                            else if (list[i].fplx == FPLX.DZFP)
                            {
                                list_3.Add(list[i]);
                            }
                            else if (list[i].fplx == FPLX.JSFP)
                            {
                                list_4.Add(list[i]);
                            }
                        }
                        else
                        {
                            list_0.Add(list[i]);
                        }
                        Class101.smethod_0("发票上传:fpdm:" + list[i].fpdm + "  发票号码:" + list[i].fphm.ToString() + "  发票种类:" + list[i].fplx.ToString() + "  报送状态:" + list[i].bszt.ToString());
                    }
                    return(true);
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("(上传线程)分发发票信息表到上传线程表出错!" + exception.ToString());
                }
                finally
                {
                    list.Clear();
                    list = null;
                }
                Class101.smethod_0("(上传线程)分发发票信息表到上传线程表出错!");
                return(false);
            }
            return(false);
        }
Пример #5
0
 public Class100()
 {
     this.class81_0 = new Class81();
 }
Пример #6
0
 public static void smethod_1()
 {
     try
     {
         lock (Class97.dataTable_0)
         {
             List <string> list = new List <string>();
             List <Dictionary <string, object> > parameter = new List <Dictionary <string, object> >();
             List <Dictionary <string, object> > list3     = new List <Dictionary <string, object> >();
             Class89  class2        = new Class89();
             IBaseDAO baseDAOSQLite = BaseDAOFactory.GetBaseDAOSQLite();
             List <Dictionary <string, string> > list4 = new List <Dictionary <string, string> >();
             TaxCard   card     = TaxCard.CreateInstance(CTaxCardType.const_7);
             DataRow[] rowArray = Class97.dataTable_0.Select("(FPStatus = '0' OR FPStatus = '2' OR FPStatus = '4') AND isDBUpdated=false");
             if ((rowArray != null) && (rowArray.Length >= 1))
             {
                 Class81 class3 = new Class81();
                 foreach (DataRow row in rowArray)
                 {
                     if (row["FPStatus"].ToString() == "0")
                     {
                         list.Add("Aisino.Framework.MainForm.UpDown.UpdateFpStatus");
                         parameter.Add(class2.method_0(row));
                         list.Add("Aisino.Framework.MainForm.UpDown.replaceFPSLH");
                         parameter.Add(class2.method_1(row));
                     }
                     else
                     {
                         if (!row["Fplx"].ToString().Equals("DZFP"))
                         {
                             class3.method_6(row["FPNO"].ToString(), row["FPDM"].ToString(), row["Fplx"].ToString(), row["FPStatus"].ToString());
                         }
                         list.Add("Aisino.Framework.MainForm.UpDown.DeleteFPSLH");
                         parameter.Add(class2.method_1(row));
                     }
                     list3.Add(class2.method_2(row));
                     if (card.SubSoftVersion == "Linux")
                     {
                         list4.Add(class2.method_4(row, "down"));
                     }
                 }
                 if (card.SubSoftVersion == "Linux")
                 {
                     string str = new Class84().method_30(list4);
                     Class101.smethod_0("发送给Linux服务器端数据:" + str);
                     Class101.smethod_0("GeneralCmdHandle返回:" + card.GeneralCmdHandle("C028", str));
                     string errCode = card.ErrCode;
                     Class101.smethod_0(string.Concat(new object[] { "ErrorCode:", errCode, "   retCode:", card.RetCode }));
                     string messageInfo = MessageManager.GetMessageInfo(errCode);
                     Class101.smethod_0("RetCode:" + card.RetCode);
                     Class101.smethod_0("底层返回信息:ErrCode:" + errCode + "  描述信息:" + messageInfo);
                     if (((card.RetCode == 0) && (baseDAOSQLite.未确认DAO方法1(list.ToArray(), parameter) > 0)) && (list3.Count >= 1))
                     {
                         for (int i = 0; i < list3.Count; i++)
                         {
                             class2.method_3(list3[i]);
                             Class101.smethod_0("(下载线程)更新数据库:发票代码:" + list3[i]["FPDM"].ToString() + "   发票号码:" + list3[i]["FPHM"].ToString() + "   报送状态:" + list3[i]["BSZT"].ToString());
                         }
                     }
                 }
                 else if ((baseDAOSQLite.未确认DAO方法1(list.ToArray(), parameter) > 0) && (list3.Count >= 1))
                 {
                     for (int j = 0; j < list3.Count; j++)
                     {
                         class2.method_3(list3[j]);
                         Class101.smethod_0("(下载线程)更新数据库:发票代码:" + list3[j]["FPDM"].ToString() + "   发票号码:" + list3[j]["FPHM"].ToString() + "   报送状态:" + list3[j]["BSZT"].ToString());
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         Class101.smethod_1("(下载线程)批量更新数据库(0-2)失败!" + exception.ToString());
     }
 }