Beispiel #1
0
        /// <summary>
        /// 取對應機型的機場建設稅
        /// </summary>
        /// <param name="planetype"></param>
        /// <returns></returns>
        public string step5(string planetype)
        {
            string ret = "0";

            this.Text = "正在取机场建设税……";
            Application.DoEvents();
            if (planetype == "" || planetype == null || ChildCount > 0)
            {
                return("0");
            }
            EasyTax et = new EasyTax();

            return(et.GetTaxBuild(planetype));
        }
Beispiel #2
0
 /// <summary>
 /// 取對應距離的燃油稅
 /// </summary>
 /// <param name="dis"></param>
 /// <returns></returns>
 public string step6(string dis)
 {
     try
     {
         this.Text = "正在取燃油税……";
         Application.DoEvents();
         if (dis == "" || dis == null)
         {
             return("0");
         }
         EasyTax et  = new EasyTax();
         string  ret = et.GetTaxFuel(dis);
         if (ChildCount > 0)
         {
             ret = string.Format("{0}", (int.Parse(ret) / 2 + 5) / 10 * 10);
         }
         return(ret);
     }
     catch
     {
         return("0");
     }
 }