Ejemplo n.º 1
0
        private string method_2(int int_0, string string_2)
        {
            ilog_0.Debug(string.Concat(new object[] { "大厅清卡回置清卡日期传入参数:qkssyf:", string_2, "  fptype:", int_0 }));
            TaxCard card = TaxCardFactory.CreateTaxCard();

            if (card == null)
            {
                ilog_0.Debug("GetZQQKDate taxcard为null");
                return("");
            }
            DateTime lastRepDate = new DateTime(0x758, 11, 1);
            string   str2        = "";

            try
            {
                string        str;
                List <string> list = new List <string>();
                switch (int_0)
                {
                case 11:
                    list = card.method_41(11);
                    if ((list == null) || (list.Count < 1))
                    {
                        throw new Exception("大厅清卡回置dtHYLastCSDate货运异常");
                    }
                    lastRepDate = DateTime.Parse(list[0]);
                    ilog_0.Debug("大厅清卡回置dtHYLastCSDate:" + lastRepDate.AddMonths(-1).ToString());
                    goto Label_01C9;

                case 12:
                    if (!card.QYLX.ISJDC)
                    {
                        break;
                    }
                    list = card.method_41(12);
                    goto Label_016F;

                case 0x29:
                    list = card.method_41(0x29);
                    if ((list == null) || (list.Count < 1))
                    {
                        throw new Exception("大厅清卡回置dtJSPLastCSDate卷式票异常");
                    }
                    lastRepDate = DateTime.Parse(list[0]);
                    ilog_0.Debug("大厅清卡回置dtJSPLastCSDate:" + lastRepDate.AddMonths(-1).ToString());
                    goto Label_01C9;

                case 0:
                    lastRepDate = card.LastRepDate;
                    goto Label_01C9;

                default:
                    goto Label_01C9;
                }
                list = card.method_41(0x33);
Label_016F:
                if ((list != null) && (list.Count >= 1))
                {
                    lastRepDate = DateTime.Parse(list[0]);
                    ilog_0.Debug("大厅清卡回置dtJDCLastCSDate:" + lastRepDate.AddMonths(-1).ToString());
                }
                else
                {
                    throw new Exception("大厅清卡回置dtJDCLastCSDate机动车或电子异常");
                }
Label_01C9:
                str  = lastRepDate.AddMonths(-1).ToString("yyyyMM");
                str2 = (int.Parse(str) > int.Parse(string_2)) ? string_2 : str;
            }
            catch (Exception exception)
            {
                ilog_0.Error("GetZQQKDate异常:" + exception.ToString());
            }
            ilog_0.Debug(string.Concat(new object[] { "大厅清卡回置清卡日期:返回日期", str2, "  fptype:", int_0 }));
            return(str2);
        }