예제 #1
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public string method_19(string string_0)
        {
            string str = "s";

            if (!string.IsNullOrEmpty(string_0))
            {
                Class101.smethod_0("(发票下载)通过受理序列号查询fpzl:" + string_0);
                try
                {
                    Dictionary <string, object> parameter = new Dictionary <string, object>();
                    parameter.Add("SLXLH", string_0);
                    str = this.ibaseDAO_0.queryValueSQL <string>("Aisino.Framework.MainForm.UpDown.GetFPZLBySLXLH", parameter);
                    switch (str)
                    {
                    case null:
                    case "":
                        Class101.smethod_0("(发票下载)通过受理序列号查询fpzl不存在!初始化为s");
                        str = "s";
                        break;
                    }
                    Class101.smethod_0("(发票下载)通过受理序列号查询fpzl:" + str);
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("获取发票上传时间异常!" + exception.ToString());
                }
            }
            return(str);
        }
예제 #2
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public string method_18(string string_0, string string_1)
        {
            string str = null;

            if (!string.IsNullOrEmpty(string_0) && !string.IsNullOrEmpty(string_1))
            {
                try
                {
                    foreach (Dictionary <string, object> dictionary in Class87.list_0)
                    {
                        int num = Convert.ToInt32(string_1);
                        if (dictionary["FPDM"].ToString().Equals(string_0) && dictionary["FPHM"].ToString().Equals(num.ToString()))
                        {
                            return(dictionary["BSRZ"].ToString());
                        }
                    }
                    return(str);
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("发票上传-批量接口获取报送日志异常:" + exception.ToString());
                }
            }
            return(str);
        }
예제 #3
0
 public void method_1(bool bool_2, bool bool_3)
 {
     try
     {
         this.dateTime_0 = DateTime.Now;
         string str = string.Empty;
         if (bool_2 || (Class97.dataTable_0.Rows.Count < Class87.int_0))
         {
             if (((Class94.dictionary_0 != null) && bool_2) && (HttpsSender.TestConnect(Class94.dictionary_0, out str) != 0))
             {
                 Class101.smethod_0("(发票上传)不进行发票上传,原因:" + str);
             }
             else
             {
                 Class101.smethod_0("(上传线程)开始,是否在主线程运行:" + bool_2);
                 this.method_0(bool_2, bool_3, string.Empty, string.Empty, string.Empty, string.Empty);
                 Class101.smethod_0("(上传线程)结束,是否在主线程运行:" + bool_2);
             }
         }
     }
     catch (Exception exception)
     {
         Class101.smethod_1("发票上传异常!" + exception.ToString());
     }
 }
예제 #4
0
 internal static void smethod_2(XmlDocument xmlDocument_0, string string_2)
 {
     if (xmlDocument_0 != null)
     {
         string str = string.Empty;
         if ((string_2.LastIndexOf(".xml") <= -1) && (string_2.LastIndexOf(".XML") <= -1))
         {
             str = string_1 + @"\" + string_2 + ".xml";
         }
         else
         {
             str = string_1 + @"\" + string_2;
         }
         if (!string.IsNullOrEmpty(str))
         {
             try
             {
                 xmlDocument_0.Save(str);
             }
             catch (Exception exception)
             {
                 Class101.smethod_1("保存xml文件(" + str + ")失败:" + exception.ToString());
             }
         }
     }
 }
예제 #5
0
파일: Class90.cs 프로젝트: hkloudou/HX-Base
 public bool method_0()
 {
     try
     {
         Class83 class2 = new Class83();
         Class94.dictionary_0 = new Dictionary <string, object>();
         if ((Class94.dictionary_0 != null) && class2.method_0(ref Class94.dictionary_0))
         {
             Class94.string_0 = Convert.ToString(Class94.dictionary_0["ACCEPT_WEB_SERVER"]);
             Class94.bool_0   = Convert.ToBoolean(Class94.dictionary_0["UPLOADNOW"]);
             Class94.bool_1   = Convert.ToBoolean(Class94.dictionary_0["INTERVALFLAG"]);
             Class94.int_0    = Convert.ToInt32(Class94.dictionary_0["INTERVALTIME"]);
             Class94.bool_2   = Convert.ToBoolean(Class94.dictionary_0["ACCUMULATEFLAG"]);
             Class94.int_1    = Convert.ToInt32(Class94.dictionary_0["ACCUMULATENUM"]);
             int num = Convert.ToInt32(Class94.dictionary_0["DATASIZE"]);
             if (num > 0)
             {
                 Class87.int_3 = num;
                 Class87.int_2 = num;
             }
             return(true);
         }
         return(false);
     }
     catch (Exception exception)
     {
         Class101.smethod_1("get Dzdzxx info failed!" + exception.ToString());
         return(false);
     }
 }
예제 #6
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
 public byte[] method_13(byte[] byte_0, string string_0)
 {
     byte[] array = new byte[byte_0.Length];
     if (!string.IsNullOrEmpty(string_0) && (byte_0.Length >= 1))
     {
         string text1 = string_0 + "#";
         try
         {
             byte_0.CopyTo(array, 0);
             Class100 class2   = new Class100();
             string[] strArray = string_0.Split(new char[] { ';' });
             if ((strArray != null) && (strArray.Length >= 1))
             {
                 array = this.method_16(array, new byte[] { Convert.ToByte(strArray.Length) });
                 for (int i = 0; i < strArray.Length; i++)
                 {
                     string[] strArray2 = strArray[i].Split(new char[] { ',' });
                     if ((strArray2 != null) && (strArray2.Length > 0))
                     {
                         Class96 class3 = new Class96 {
                             FPDM = strArray2[0],
                             FPNO = strArray2[1]
                         };
                         class3 = class2.method_3(Class97.dataTable_0, class3.FPNO, class3.FPDM);
                         string dZSYH = "0";
                         if ((class3 != null) && !string.IsNullOrEmpty(class3.DZSYH))
                         {
                             dZSYH = class3.DZSYH;
                             Class101.smethod_0("组装密文地址索引号:fpdm:" + strArray2[0] + "   fphm:" + strArray2[1] + "   dzsyh:" + dZSYH);
                         }
                         else
                         {
                             Class101.smethod_0("组装密文地址索引号--fprow为null或者空:fpdm:" + strArray2[0] + "   fphm:" + strArray2[1]);
                             dZSYH = this.method_12(strArray2[1], strArray2[0]);
                             if (string.IsNullOrEmpty(dZSYH))
                             {
                                 Class101.smethod_0("组装密文无地址索引号--补0:fpdm:" + strArray2[0] + "   fphm:" + strArray2[1]);
                                 dZSYH = "0";
                             }
                         }
                         byte[] bytes = BitConverter.GetBytes(Convert.ToInt32(dZSYH));
                         bytes = this.method_17(bytes);
                         array = this.method_16(array, bytes);
                     }
                 }
                 return(array);
             }
             Class101.smethod_1("(发票下载)组装地址索引号异常:受理序列号为空");
             return(array);
         }
         catch (Exception exception)
         {
             Class101.smethod_1("(发票下载)组装地址索引号异常:" + exception.ToString());
             array = byte_0;
         }
         return(array);
     }
     Class101.smethod_1("(发票下载)组装地址索引号异常:受理序列号为空");
     return(array);
 }
예제 #7
0
파일: Class88.cs 프로젝트: hkloudou/HX-Base
 public static void smethod_4()
 {
     try
     {
         if (Class87.list_1.Count >= 1)
         {
             IBaseDAO baseDAOSQLite = BaseDAOFactory.GetBaseDAOSQLite();
             new Dictionary <string, string>();
             TaxCard.CreateInstance(CTaxCardType.const_7);
             List <string> list = new List <string>();
             for (int i = 0; i < Class87.list_1.Count; i++)
             {
                 if (Class87.list_1[i].ContainsKey("BSRZ"))
                 {
                     list.Add("Aisino.Framework.MainForm.UpDown.UpdateBSRZ");
                     Class87.list_1[i]["BSRZ"] = "【" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "】" + Class87.list_1[i]["BSRZ"].ToString();
                     if (Class87.list_1[i]["BSRZ"].ToString().Length > 0xc3)
                     {
                         Class87.list_1[i]["BSRZ"] = Class87.list_1[i]["BSRZ"].ToString().Substring(0, 0xc3);
                     }
                 }
             }
             if (baseDAOSQLite.未确认DAO方法1(list.ToArray(), Class87.list_1) > 0)
             {
                 Class87.list_1.Clear();
             }
         }
     }
     catch (Exception exception)
     {
         Class101.smethod_1("(下载线程)更改发票报送日志出错:" + exception.ToString());
     }
 }
예제 #8
0
        public Dictionary <string, string> method_4(DataRow dataRow_0, string string_0)
        {
            if (dataRow_0 == null)
            {
                return(null);
            }
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            try
            {
                dictionary.Add("FPDM", dataRow_0["FPDM"].ToString());
                dictionary.Add("FPHM", dataRow_0["FPNO"].ToString());
                dictionary.Add("BSZT", dataRow_0["FPStatus"].ToString());
                if (string_0 == "up")
                {
                    dictionary.Add("BSRZ", this.method_5(dataRow_0["FPDM"].ToString(), int.Parse(dataRow_0["FPNO"].ToString()).ToString()));
                }
                else
                {
                    dictionary.Add("BSRZ", this.method_6(dataRow_0["FPDM"].ToString(), int.Parse(dataRow_0["FPNO"].ToString()).ToString()));
                }
                string str = string.Empty;
                if (dataRow_0["Fplx"].ToString().Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase))
                {
                    str = "s";
                }
                else if (dataRow_0["Fplx"].ToString().Equals("PTFP", StringComparison.CurrentCultureIgnoreCase))
                {
                    str = "c";
                }
                else if (dataRow_0["Fplx"].ToString().Equals("HYFP", StringComparison.CurrentCultureIgnoreCase))
                {
                    str = "f";
                }
                else if (dataRow_0["Fplx"].ToString().Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase))
                {
                    str = "j";
                }
                else if (dataRow_0["Fplx"].ToString().Equals("DZFP", StringComparison.CurrentCultureIgnoreCase))
                {
                    str = "p";
                }
                else if (dataRow_0["Fplx"].ToString().Equals("JSFP", StringComparison.CurrentCultureIgnoreCase))
                {
                    str = "q";
                }
                else
                {
                    str = dataRow_0["Fplx"].ToString();
                }
                dictionary.Add("FPZL", str);
                Class101.smethod_0("组装Linux开票服务器dict:FPDM-" + dataRow_0["FPDM"].ToString() + "  FPHM-" + dataRow_0["FPNO"].ToString() + "   fpzl-" + str + "  bszt-" + dataRow_0["FPStatus"].ToString() + "   bsrz-" + dictionary["BSRZ"]);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("组装Linux开票服务器dict异常:" + exception.ToString());
            }
            return(dictionary);
        }
예제 #9
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public FPLX method_14(string string_0)
        {
            FPLX zYFP = FPLX.ZYFP;

            try
            {
                Class100 class2   = new Class100();
                string[] strArray = string_0.Split(new char[] { ';' });
                if ((strArray != null) && (strArray.Length >= 1))
                {
                    string[] strArray2 = strArray[0].Split(new char[] { ',' });
                    Class96  class3    = new Class96 {
                        FPDM = strArray2[0],
                        FPNO = strArray2[1]
                    };
                    class3 = class2.method_3(Class97.dataTable_0, class3.FPNO, class3.FPDM);
                    if (class3 == null)
                    {
                        Class101.smethod_1("(发票下载)获取发票种类异常:fpRow为null");
                        return(zYFP);
                    }
                    if (class3.Fplx.Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.ZYFP);
                    }
                    if (class3.Fplx.Equals("PTFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.PTFP);
                    }
                    if (class3.Fplx.Equals("HYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.HYFP);
                    }
                    if (class3.Fplx.Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.JDCFP);
                    }
                    if (class3.Fplx.Equals("DZFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        return(FPLX.DZFP);
                    }
                    if (class3.Fplx.Equals("JSFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        zYFP = FPLX.JSFP;
                    }
                    return(zYFP);
                }
                Class101.smethod_1("(发票下载)获取发票种类异常:受理序列号为空");
                return(zYFP);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("发票下载:" + exception.ToString());
            }
            return(zYFP);
        }
예제 #10
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public string method_3(string string_0, string string_1, string string_2)
        {
            string str = string.Empty;

            if (!string.IsNullOrEmpty(string_0))
            {
                try
                {
                    string str2 = "";
                    if (string_2.Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "s";
                    }
                    else if (string_2.Equals("PTFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "c";
                    }
                    else if (string_2.Equals("HYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "f";
                    }
                    else if (string_2.Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "j";
                    }
                    else if (string_2.Equals("DZFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "p";
                    }
                    else if (string_2.Equals("JSFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "q";
                    }
                    else
                    {
                        str2 = string_2;
                    }
                    int result = 0;
                    int.TryParse(string_0, out result);
                    Dictionary <string, object> parameter = new Dictionary <string, object>();
                    parameter.Add("FPHM", result);
                    parameter.Add("FPDM", string_1);
                    parameter.Add("FPZL", str2);
                    str = this.ibaseDAO_0.queryValueSQL <string>("Aisino.Framework.MainForm.UpDown.FPSLHChaxun", parameter);
                    if (str == null)
                    {
                        str = string.Empty;
                    }
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("获取发票受理序列号失败!" + exception.ToString());
                }
            }
            return(str);
        }
예제 #11
0
파일: Class83.cs 프로젝트: hkloudou/HX-Base
        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);
        }
예제 #12
0
        public bool method_1(List <string> sqlID, List <Dictionary <string, object> > param, bool bool_0)
        {
            bool flag = false;

            if (((sqlID != null) && (sqlID.Count >= 1)) && ((param != null) && (param.Count >= 1)))
            {
                try
                {
                    int num = this.ibaseDAO_0.未确认DAO方法1(sqlID.ToArray(), param);
                    if (num > 0)
                    {
                        flag = true;
                    }
                    if (!bool_0 && (num > 0))
                    {
                        MessageHelper.MsgWait();
                        Class86.smethod_8(Class95.string_2 + "更新成功,请及时维护" + Class95.string_2 + "库。");
                        Class95.bool_1   = true;
                        Class95.string_1 = Class95.string_2 + "更新成功,请及时维护" + Class95.string_2 + "库。";
                        return(flag);
                    }
                    if (!bool_0 && (num <= 0))
                    {
                        MessageHelper.MsgWait();
                        Class86.smethod_7(Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新。");
                        Class95.bool_1   = true;
                        Class95.string_1 = Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新。";
                        return(flag);
                    }
                    if (num <= 0)
                    {
                        Class95.bool_1   = true;
                        Class95.string_1 = Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新。";
                        return(flag);
                    }
                    Class95.bool_1   = true;
                    Class95.string_1 = Class95.string_2 + "更新成功,请及时维护" + Class95.string_2 + "库。";
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("UpdateSPFLTable异常:" + exception.ToString());
                    if (!bool_0)
                    {
                        MessageHelper.MsgWait();
                        Class86.smethod_7(Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新:" + exception.Message);
                    }
                    Class95.bool_1   = true;
                    Class95.string_1 = Class95.string_2 + "更新失败,请选择手动更新或去税局下载更新包导入更新:" + exception.Message;
                }
                return(flag);
            }
            Class101.smethod_0("sqlid为空或者param为空");
            return(flag);
        }
예제 #13
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public string method_11(string string_0, string string_1, string string_2)
        {
            string str = "0";

            Class101.smethod_0("(发票上传)开始获取地址索引号--fpdm:" + string_1 + "   fphm:" + string_0);
            if (!string.IsNullOrEmpty(string_0))
            {
                try
                {
                    string str2 = "";
                    if (string_2.Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "s";
                    }
                    else if (string_2.Equals("PTFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "c";
                    }
                    else if (string_2.Equals("HYFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "f";
                    }
                    else if (string_2.Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "j";
                    }
                    else if (string_2.Equals("DZFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "p";
                    }
                    else if (string_2.Equals("JSFP", StringComparison.CurrentCultureIgnoreCase))
                    {
                        str2 = "q";
                    }
                    else
                    {
                        str2 = string_2;
                    }
                    int result = 0;
                    int.TryParse(string_0, out result);
                    Dictionary <string, object> parameter = new Dictionary <string, object>();
                    parameter.Add("FPHM", result);
                    parameter.Add("FPDM", string_1);
                    parameter.Add("FPZL", str2);
                    str = this.ibaseDAO_0.queryValueSQL <string>("Aisino.Framework.MainForm.UpDown.GetDZSHY", parameter);
                    Class101.smethod_0("(发票上传)获取地址索引号结束--fpdm:" + string_1 + "   fphm:" + string_0 + "   dzsyh:" + str);
                }
                catch (Exception exception)
                {
                    Class101.smethod_1("获取发票上传时间异常!" + exception.ToString());
                }
            }
            return(str);
        }
예제 #14
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public int method_7(string string_0, string string_1, string string_2, int int_0)
        {
            int    num = 0;
            string str = "";

            if (string_2.Equals("ZYFP", StringComparison.CurrentCultureIgnoreCase))
            {
                str = "s";
            }
            else if (string_2.Equals("PTFP", StringComparison.CurrentCultureIgnoreCase))
            {
                str = "c";
            }
            else if (string_2.Equals("HYFP", StringComparison.CurrentCultureIgnoreCase))
            {
                str = "f";
            }
            else if (string_2.Equals("JDCFP", StringComparison.CurrentCultureIgnoreCase))
            {
                str = "j";
            }
            else if (string_2.Equals("DZFP", StringComparison.CurrentCultureIgnoreCase))
            {
                str = "p";
            }
            else if (string_2.Equals("JSFP", StringComparison.CurrentCultureIgnoreCase))
            {
                str = "q";
            }
            else
            {
                str = string_2;
            }
            int result = 0;

            int.TryParse(string_0, out result);
            Dictionary <string, object> parameter = new Dictionary <string, object>();

            parameter.Add("FPHM", result);
            parameter.Add("FPDM", string_1);
            parameter.Add("FPZL", str);
            parameter.Add("BSCS", int_0);
            try
            {
                num = this.ibaseDAO_0.queryValueSQL <int>("Aisino.Framework.MainForm.UpDown.SetBSCS", parameter);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("(下载线程)设置报送次数失败!" + exception.ToString());
            }
            return(num);
        }
예제 #15
0
 public void method_2(string string_0, string string_1, string string_2)
 {
     try
     {
         this.class90_0.method_0();
         this.dateTime_0 = DateTime.Now;
         this.method_0(false, false, string_1, string_0, string_2, string.Empty);
     }
     catch (Exception exception)
     {
         Class101.smethod_1("在主线程启用上传异常!" + exception.ToString());
     }
 }
예제 #16
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
 private byte[] method_16(byte[] byte_0, byte[] byte_1)
 {
     byte[] array = new byte[byte_0.Length + byte_1.Length];
     try
     {
         byte_0.CopyTo(array, 0);
         byte_1.CopyTo(array, byte_0.Length);
     }
     catch (Exception exception)
     {
         Class101.smethod_1(exception.ToString());
     }
     return(array);
 }
예제 #17
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public string method_4()
        {
            string str = string.Empty;

            try
            {
                Dictionary <string, object> parameter = new Dictionary <string, object>();
                str = this.ibaseDAO_0.queryValueSQL <string>("Aisino.Framework.MainForm.UpDown.CXSCFS", parameter);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("获取上传方式失败!" + exception.ToString());
            }
            return(str);
        }
예제 #18
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
 public int method_8(List <string> sqlID, List <Dictionary <string, object> > param)
 {
     if ((sqlID.Count >= 1) && (param.Count >= 1))
     {
         try
         {
             return(this.ibaseDAO_0.未确认DAO方法1(sqlID.ToArray(), param));
         }
         catch (Exception exception)
         {
             Class101.smethod_1("更新发票报送日志异常:" + exception.ToString());
         }
     }
     return(0);
 }
예제 #19
0
        public DataTable method_2()
        {
            DataTable table = new DataTable();

            try
            {
                string str = "SELECT SJBM FROM BM_SPFL";
                table = this.ibaseDAO_0.querySQLDataTable(str);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("GetSJBM:" + exception.ToString());
            }
            return(table);
        }
예제 #20
0
        public int method_4()
        {
            int num = 0;

            try
            {
                Dictionary <string, object> parameter = new Dictionary <string, object>();
                num = this.ibaseDAO_0.queryValueSQL <int>("Aisino.Framework.MainForm.UpDown.GetTotalRowCountFromSPFL", parameter);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("UpdateBMBBBH:" + exception.ToString());
            }
            return(num);
        }
예제 #21
0
 public void method_3(string string_0)
 {
     try
     {
         Class87.string_4 = string_0;
         this.class90_0.method_0();
         this.dateTime_0 = DateTime.Now;
         this.class90_0.method_1();
         Class101.smethod_0("发票上传-批量接口:设置包大小" + Class87.int_3.ToString());
         this.method_0(false, false, string.Empty, string.Empty, string.Empty, string_0);
     }
     catch (Exception exception)
     {
         Class101.smethod_1("在主线程启用上传异常!" + exception.ToString());
     }
 }
예제 #22
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public int method_0(int int_0)
        {
            int num = 0;
            Dictionary <string, object> parameter = new Dictionary <string, object>();

            parameter.Add("BSZT", int_0);
            try
            {
                num = this.ibaseDAO_0.queryValueSQL <int>("Aisino.Framework.MainForm.UpDown.GetFPNum", parameter);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("获取发票张数失败!" + exception.ToString());
            }
            return(num);
        }
예제 #23
0
파일: Class81.cs 프로젝트: hkloudou/HX-Base
        public void method_15()
        {
            Class100      class2 = new Class100();
            Class84       class3 = new Class84();
            List <string> slxlhs = new List <string>();
            List <Dictionary <string, string> > listFP = new List <Dictionary <string, string> >();

            try
            {
                foreach (string str in Class87.string_4.Split(new char[] { ';' }))
                {
                    if (!string.IsNullOrEmpty(str))
                    {
                        string[] strArray3 = str.Split(new char[] { ',' });
                        if (strArray3.Length >= 2)
                        {
                            string str2 = strArray3[1];
                            if (str2.Length < 8)
                            {
                                str2 = str2.PadLeft(8, '0');
                            }
                            Class96 class4 = class2.method_3(Class97.dataTable_0, str2, strArray3[0]);
                            if ((class4 != null) && !string.IsNullOrEmpty(class4.FPSLH))
                            {
                                if (!slxlhs.Contains(class4.FPSLH))
                                {
                                    slxlhs.Add(class4.FPSLH);
                                }
                            }
                            else
                            {
                                Dictionary <string, string> item = new Dictionary <string, string>();
                                item.Add("FPDM", strArray3[0]);
                                item.Add("FPHM", str2);
                                listFP.Add(item);
                            }
                        }
                    }
                }
                Class87.xmlDocument_0 = class3.method_23(slxlhs, listFP);
            }
            catch (Exception exception)
            {
                Class101.smethod_1("发票上传-获取批量上传结果异常:" + exception.ToString());
            }
        }
예제 #24
0
 public DataRow[] method_11(string string_0)
 {
     if (!string.IsNullOrEmpty(string_0))
     {
         try
         {
             lock (Class97.dataTable_0)
             {
                 return(Class97.dataTable_0.Select("FPSLH='" + string_0 + "'"));
             }
         }
         catch (Exception exception)
         {
             Class101.smethod_1("(下载线程)根据受理序列号查询发票异常:" + exception.ToString());
         }
     }
     return(null);
 }
예제 #25
0
        private int method_5(UpdateTransMethod updateTransMethod_0)
        {
            int num = -1;

            try
            {
                num = this.class100_0.method_10(updateTransMethod_0);
                if (num > 0)
                {
                    num = (num / Class87.int_1) + 1;
                }
            }
            catch (Exception exception)
            {
                Class101.smethod_1("(上传线程)获取总页数失败!" + exception.ToString());
            }
            return(num);
        }
예제 #26
0
        public DataTable method_4()
        {
            DataTable table = new DataTable();

            try
            {
                lock (Class97.dataTable_0)
                {
                    Class97.dataTable_0.DefaultView.RowFilter = "isDBUpdated = true AND FPStatus='3'";
                    table = Class97.dataTable_0.DefaultView.ToTable(true, new string[] { "FPSLH" });
                    Class97.dataTable_0.DefaultView.RowFilter = "";
                }
            }
            catch (Exception exception)
            {
                Class101.smethod_1("获取需下载发票信息失败!" + exception.ToString());
            }
            return(table);
        }
예제 #27
0
 private void method_1()
 {
     if (File.Exists(this.string_1))
     {
         File.Delete(this.string_1);
     }
     if ((this.string_0 != "") && (this.string_1 != ""))
     {
         try
         {
             string str = "";
             Class101.smethod_0("开始企业信息上传,【企业参数同步】上传报文:" + this.string_0);
             if (HttpsSender.SendMsg("0001", this.string_0, out str) != 0)
             {
                 Class101.smethod_1("企业信息上传失败!    " + str.ToString());
                 Class95.bool_0   = false;
                 Class95.string_0 = "企业参数更新失败:" + str;
                 Class95.bool_1   = false;
                 Class95.string_1 = Class95.string_2 + "同步失败:" + str;
                 if (Class87.bool_3)
                 {
                     Class87.dictionary_0["UpdateBZ"] = "0";
                     Class87.dictionary_0["Message"]  = str;
                 }
             }
             else
             {
                 XmlDocument document = new XmlDocument();
                 document.LoadXml(str);
                 document.Save(this.string_1);
             }
         }
         catch (Exception exception)
         {
             Class101.smethod_1("DownloadQYSQXX异常:" + exception.ToString());
         }
     }
     else
     {
         Class101.smethod_0("开始企业参数同步:contentToServer" + this.string_0 + "   filename:" + this.string_1);
     }
 }
예제 #28
0
 public bool method_7(XmlDocument xmlDocument_0, XmlDocument xmlDocument_1)
 {
     if ((xmlDocument_0 != null) && (xmlDocument_1 != null))
     {
         Class84 class2 = new Class84();
         string  str    = "";
         try
         {
             string str2 = string.Empty;
             string str3 = class2.method_11(xmlDocument_0, ref str, out str2);
             if (string.IsNullOrEmpty(str))
             {
                 string str4 = "已执行发票上传,服务器处理异常";
                 if (string.IsNullOrEmpty(str2))
                 {
                     str4 = str4 + "。";
                 }
                 else
                 {
                     str4 = str4 + ",服务器返回错误信息:" + str2;
                 }
                 Class87.string_0 = "-0005";
                 Class87.string_1 = "服务器处理异常,发票上传失败!";
                 class2.method_20(xmlDocument_1, str4, 0);
                 Class101.smethod_1("(发票上传):局端处理错误:" + str3);
                 return(false);
             }
             Class101.smethod_0("(发票上传)开始解析卷票上传结果中序列号");
             class2.method_13(xmlDocument_1, str);
             class2.method_20(xmlDocument_1, "已执行发票上传,发票报送状态已置为报送中。", 3);
             Class87.string_0 = "0000";
             Class87.string_1 = str;
             return(true);
         }
         catch (Exception)
         {
         }
         return(false);
     }
     Class101.smethod_1("(发票上传):无返回信息!");
     return(false);
 }
예제 #29
0
        public string method_0()
        {
            string str = "0.0";

            try
            {
                string str2 = "Aisino.Framework.MainForm.UpDown.GetSPBMBBBH";
                Dictionary <string, object> parameter = new Dictionary <string, object>();
                str = this.ibaseDAO_0.queryValueSQL <string>(str2, parameter);
                if ((str != null) && !(str == ""))
                {
                    return(str);
                }
                str = "0.0";
            }
            catch (Exception exception)
            {
                Class101.smethod_1("GetSBBPBBH:" + exception.ToString());
            }
            return(str);
        }
예제 #30
0
파일: Class83.cs 프로젝트: hkloudou/HX-Base
 public bool method_0(ref Dictionary <string, object> dictionary_0)
 {
     try
     {
         object[] objArray = ServiceFactory.InvokePubService("Aisino.Fwkp.QueryDZDZInfo", new object[0]);
         if ((objArray != null) && (objArray.Length >= 1))
         {
             dictionary_0 = objArray[0] as Dictionary <string, object>;
         }
         else
         {
             return(false);
         }
     }
     catch (Exception exception)
     {
         Class101.smethod_1("get Dzdzxx info failed! " + exception.ToString());
         return(false);
     }
     return(true);
 }