Example #1
0
        protected virtual string GetInvUpLimit(string strFpzl)
        {
            double minValue = double.MinValue;
            string str2     = strFpzl;

            if (str2 != null)
            {
                if (!(str2 == "增值税专用发票"))
                {
                    if (str2 == "增值税普通发票")
                    {
                        if (!base.TaxCardInstance.get_QYLX().ISPTFP)
                        {
                            return(new string('-', 12));
                        }
                    }
                    else if (str2 == "机动车销售统一发票")
                    {
                        if (!base.TaxCardInstance.get_QYLX().ISJDC)
                        {
                            return(new string('-', 12));
                        }
                    }
                    else if (str2 == "货物运输业增值税专用发票")
                    {
                        if (!base.TaxCardInstance.get_QYLX().ISHY)
                        {
                            return(new string('-', 12));
                        }
                    }
                    else if (str2 == "电子增值税普通发票")
                    {
                        if (!base.TaxCardInstance.get_QYLX().ISPTFPDZ)
                        {
                            return(new string('-', 12));
                        }
                    }
                    else if ((str2 == "增值税普通发票(卷票)") && !base.TaxCardInstance.get_QYLX().ISPTFPJSP)
                    {
                        return(new string('-', 12));
                    }
                }
                else if (!base.TaxCardInstance.get_QYLX().ISZYFP)
                {
                    return(new string('-', 12));
                }
            }
            minValue = ShareMethods.GetUpLimit(base.TaxCardInstance.get_SQInfo(), strFpzl);
            return(string.Format("{0:0.00}", minValue));
        }
Example #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;
        }