コード例 #1
0
 public static double GetUpLimit(InvSQInfo invUpLimit, string strFpzl)
 {
     foreach (PZSQType type in invUpLimit.PZSQType)
     {
         if (type.invType.Equals((InvoiceType)0) && strFpzl.Equals("增值税专用发票"))
         {
             return(type.InvAmountLimit);
         }
         if (type.invType.Equals((InvoiceType)2) && strFpzl.Equals("增值税普通发票"))
         {
             return(type.InvAmountLimit);
         }
         if (type.invType.Equals((InvoiceType)12) && strFpzl.Equals("机动车销售统一发票"))
         {
             return(type.InvAmountLimit);
         }
         if (type.invType.Equals((InvoiceType)11) && strFpzl.Equals("货物运输业增值税专用发票"))
         {
             return(type.InvAmountLimit);
         }
         if (type.invType.Equals((InvoiceType)0x33) && strFpzl.Equals("电子增值税普通发票"))
         {
             return(type.InvAmountLimit);
         }
         if (type.invType.Equals((InvoiceType)0x29) && strFpzl.Equals("增值税普通发票(卷票)"))
         {
             return(type.InvAmountLimit);
         }
     }
     return(0.0);
 }
コード例 #2
0
        public void InsertInvVolume(List <InvVolumeApp> invList)
        {
            InvSQInfo invUpLimit = base.TaxCardInstance.get_SQInfo();
            int       num        = 0;
            DataTable table      = this.CreateTableHeader();

            foreach (InvVolumeApp app in invList)
            {
                num = 0;
                DataRow row     = table.NewRow();
                string  invType = ShareMethods.GetInvType(app.InvType);
                row[this.strHead[num++]] = invType;
                double upLimit = ShareMethods.GetUpLimit(invUpLimit, invType);
                row[this.strHead[num++]] = Convert.ToString(upLimit);
                row[this.strHead[num++]] = app.TypeCode;
                row[this.strHead[num++]] = ShareMethods.GetFPLBMC(app, this._dictFPLBBM);
                row[this.strHead[num++]] = ShareMethods.FPHMTo8Wei(app.HeadCode);
                int number = app.Number;
                row[this.strHead[num++]] = Convert.ToString(number);
                row[this.strHead[num++]] = app.BuyDate.ToString("yyyy-MM-dd");
                table.Rows.Add(row);
            }
            this.dgInvInfo.DataSource = table;
        }