Ejemplo n.º 1
0
        /// <summary>
        /// 购买车辆利息
        /// </summary>
        /// <returns></returns>
        public double GetLiXiCost()
        {
            double fee = 0;

            if (this.TrainBigKind == ETrainBigKind.普通列车)
            {
                fee += YinZuo * YinZuoPrice + RuanZuo * RuanZuoPrice;
                fee += OpenYinWo * OpenYinWoPrice + CloseYinWo * CloseYinWoPrice;
                fee += RuanWo * RuanWoPrice + CanChe * CanChePrice;
                fee += FaDianChe * FaDianChePrice + ShuYinChe * ShuYinChePrice;

                fee = fee * CheDiShu * FixLiXi;
            }
            else
            {
                double db = 0;
                if (this.HighTrainBigKind == EHighTrainBigKind.动车200公里)
                {
                    db = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车购买成本标准"));
                }
                else
                {
                    db = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车购买成本标准"));
                }
                db = db * 8;
                if (this.HighTrainBianZhu == EHighTrainBianZhu.重联)
                {
                    db = db * 2;
                }

                db  = db * this.CheDiShu * this.FixLiXi;
                fee = db;
            }
            return(fee);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 得到总的服务人员
        /// </summary>
        /// <returns></returns>
        private int GetTotalServicePersonCount()
        {
            int result = 18;

            if (this.TrainBigKind == ETrainBigKind.普通列车)
            {
                if (this.ServerPerson == EServerPerson.一人1车)
                {
                    result = (result - this.CanChe - this.FaDianChe) + 1 + 2 + 2 * this.FaDianChe;
                }
                else if (this.ServerPerson == EServerPerson.一人2车)
                {
                    double t1 = (result - this.CanChe - this.FaDianChe) / 2.0;
                    result = (int)(Math.Ceiling(t1)) + 1 + 2 + 2 * this.FaDianChe;
                }
                else
                {
                }
            }
            else
            {
                //动车,8节动座6人,16节动座10人,16节动卧13人
                result = int.Parse(JStrInfoBU.GetStrTextByID("8节动座服务人员数"));
                if (this.HighTrainBianZhu == EHighTrainBianZhu.重联)
                {
                    result = int.Parse(JStrInfoBU.GetStrTextByID("16节动座服务人员数"));
                }
                if (this.TrainType == "CRH2E")
                {
                    result = result = int.Parse(JStrInfoBU.GetStrTextByID("16节动卧服务人员"));
                }
            }
            return(result);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         this.Fee1.Text = JStrInfoBU.GetStrTextByID("宿营车定员");
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         this.Fee1.Text = JStrInfoBU.GetStrTextByID("普通列车旅客服务费标准");
         this.Fee2.Text = JStrInfoBU.GetStrTextByID("动车旅客服务费标准");
     }
 }
Ejemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         this.Fee1.Text = JStrInfoBU.GetStrTextByID("基本硬座费率");
         this.Fee2.Text = JStrInfoBU.GetStrTextByID("空调费率");
         this.Fee3.Text = JStrInfoBU.GetStrTextByID("保险费率");
         this.Fee4.Text = JStrInfoBU.GetStrTextByID("卧铺订票费");
     }
 }
Ejemplo n.º 6
0
        /// <summary>
        /// 车辆消耗备用品
        /// </summary>
        /// <returns></returns>
        public double GetXiaoHaoCost()
        {
            double fee = 0;

            if (this.TrainBigKind == ETrainBigKind.普通列车)
            {
                JTable             tab1      = new JTable("CHEXIANWEIGHTPROFILE");
                List <SearchField> condition = new List <SearchField>();
                tab1.OrderBy = "CHEXIANTYPE";
                DataSet ds1 = tab1.SearchData(null, -1, "*");
                foreach (DataRow dr1 in ds1.Tables[0].Rows)
                {
                    ECommCheXian type1 = (ECommCheXian)(int.Parse(dr1["CHEXIANTYPE"].ToString()));
                    switch (type1)
                    {
                    case ECommCheXian.硬座:
                        fee = fee + this.YinZuo * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.软座:
                        fee = fee + this.RuanZuo * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.开放式硬卧:
                        fee = fee + this.OpenYinWo * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.包房式硬卧:
                        fee = fee + this.CloseYinWo * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.软卧:
                        fee = fee + this.RuanWo * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.高级软卧:
                        fee = fee + this.AdvanceRuanWo * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.餐车:
                        fee = fee + this.CanChe * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.供电车:
                        fee = fee + this.FaDianChe * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;

                    case ECommCheXian.宿营车:
                        fee = fee + this.ShuYinChe * double.Parse(dr1["UNITXHCOST"].ToString());
                        break;
                    }
                }
                tab1.Close();
                fee = fee * this.YongCheDiShu;
            }
            else
            {
                double db = 0;
                if (this.HighTrainBigKind == EHighTrainBigKind.动车200公里)
                {
                    db = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车客运消耗备用备品成本"));
                }
                else
                {
                    db = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车客运消耗备用备品成本"));
                }
                fee = db;                     //分200公里/300公里 标准2个标准
            }
            return(fee);
        }
Ejemplo n.º 7
0
        public static void SetData()
        {
            BaseFee         = double.Parse(JStrInfoBU.GetStrTextByID("基本硬座费率"));
            BaoXianFee      = double.Parse(JStrInfoBU.GetStrTextByID("保险费率"));
            KongTiaoFeeRate = double.Parse(JStrInfoBU.GetStrTextByID("空调费率"));

            SaleRateForComm = double.Parse(JStrInfoBU.GetStrTextByID("普通列车售票服务费比例"));
            SaleRateForHigh = double.Parse(JStrInfoBU.GetStrTextByID("动车售票服务费比例"));

            ServiceRateForComm = int.Parse(JStrInfoBU.GetStrTextByID("普通列车旅客服务费标准"));
            ServiceRateForHigh = int.Parse(JStrInfoBU.GetStrTextByID("动车旅客服务费标准"));

            WaterRateForComm = double.Parse(JStrInfoBU.GetStrTextByID("普通列车上水站费用标准"));
            WaterRateForHigh = double.Parse(JStrInfoBU.GetStrTextByID("动车上水站费用标准"));

            PersonCost    = double.Parse(JStrInfoBU.GetStrTextByID("普通列车人年工资成本标准"));
            PersonAddRate = int.Parse(JStrInfoBU.GetStrTextByID("普通列车人年工资附加费标准"));

            PersonOtherCost = double.Parse(JStrInfoBU.GetStrTextByID("普通列车人年其他费用标准"));
            YongYouBiaoZhun = double.Parse(JStrInfoBU.GetStrTextByID("普通列车用油的定额标准"));
            OilUnitCost     = double.Parse(JStrInfoBU.GetStrTextByID("油价标准"));
            FixLiXi         = double.Parse(JStrInfoBU.GetStrTextByID("固定利率"));

            HighTrainWeight200 = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车车厢重量"));
            HighTrainWeight300 = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车车厢重量"));

            HighTrainCost200 = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车日常检修成本"));
            HighTrainCost300 = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车日常检修成本"));

            HighTrainFixCost200 = double.Parse(JStrInfoBU.GetStrTextByID("200公里车辆定期检修成本"));
            HighTrainFixCost300 = double.Parse(JStrInfoBU.GetStrTextByID("300公里车辆定期检修成本"));

            HighTrainXhCost200 = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车客运消耗备用备品成本"));
            HighTrainXhCost300 = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车客运消耗备用备品成本"));

            HighTrainLiXiCost200 = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车购买成本标准"));
            HighTrainLiXiCost300 = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车购买成本标准"));

            HighTrainServerCount1 = int.Parse(JStrInfoBU.GetStrTextByID("8节动座服务人员数"));
            HighTrainServerCount2 = int.Parse(JStrInfoBU.GetStrTextByID("16节动座服务人员数"));
            HighTrainServerCount3 = int.Parse(JStrInfoBU.GetStrTextByID("16节动卧服务人员"));

            WoPuDingPiaoFee = double.Parse(JStrInfoBU.GetStrTextByID("卧铺订票费"));        //卧铺订票费

            TrainZheJiuRate = double.Parse(JStrInfoBU.GetStrTextByID("普列折旧费率"));
            HighZheJiuRate  = double.Parse(JStrInfoBU.GetStrTextByID("动列折旧费率"));

            JianBeiLv1 = double.Parse(JStrInfoBU.GetStrTextByID("列车检备率"));
            JianBeiLv2 = double.Parse(JStrInfoBU.GetStrTextByID("动车检备率"));


            //宿营车厢的定员配置
            if (JStrInfoBU.GetStrTextByID("宿营车定员").Trim() != String.Empty)
            {
                SyCheXianPCount = int.Parse(JStrInfoBU.GetStrTextByID("宿营车定员"));
            }
            else
            {
                SyCheXianPCount = 42;
            }

            //轮渡费单价表配置
            if (JStrInfoBU.GetStrTextByID("空调客车轮渡费").Trim() != String.Empty)
            {
                ShipFee1 = int.Parse(JStrInfoBU.GetStrTextByID("空调客车轮渡费").Trim());
            }
            else
            {
                ShipFee1 = 100;
            }

            if (JStrInfoBU.GetStrTextByID("非空调客车轮渡费").Trim() != String.Empty)
            {
                ShipFee2 = int.Parse(JStrInfoBU.GetStrTextByID("非空调客车轮渡费").Trim());
            }
            else
            {
                ShipFee2 = 70;
            }

            //直供电牵引付加费
            if (JStrInfoBU.GetStrTextByID("直供电内燃牵引附加费").Trim() != String.Empty)
            {
                QianYinFjFee1 = int.Parse(JStrInfoBU.GetStrTextByID("直供电内燃牵引附加费").Trim());
            }
            else
            {
                QianYinFjFee1 = 50;
            }

            if (JStrInfoBU.GetStrTextByID("直供电电力牵引附加费").Trim() != String.Empty)
            {
                QianYinFjFee2 = int.Parse(JStrInfoBU.GetStrTextByID("直供电电力牵引附加费").Trim());
            }
            else
            {
                QianYinFjFee2 = 25;
            }


            if (JStrInfoBU.GetStrTextByID("间接费用分摊").Trim() != String.Empty)
            {
                JianJieFee = double.Parse(JStrInfoBU.GetStrTextByID("间接费用分摊").Trim());
            }
            else
            {
                JianJieFee = 0.2822;
            }


            if (JStrInfoBU.GetStrTextByID("检修费率系数").Trim() != String.Empty)
            {
                JianXiuFeeRate = double.Parse(JStrInfoBU.GetStrTextByID("检修费率系数").Trim());
            }
            else
            {
                JianJieFee = 1.0;
            }
            /*----------------------------------------------------------*/
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 计算列车的重量
        /// </summary>
        /// <returns></returns>
        private double GetTrainWeight()
        {
            double result = 0;

            if (this.TrainBigKind == ETrainBigKind.普通列车)
            {
                if (this.YinZuo > 0)
                {
                    result = result + this.YinZuo * GetCheXianWeight(ECommCheXian.硬座);
                }
                if (this.RuanZuo > 0)
                {
                    result = result + this.RuanZuo * GetCheXianWeight(ECommCheXian.硬座);
                }

                if (this.OpenYinWo > 0)
                {
                    result = result + this.OpenYinWo * GetCheXianWeight(ECommCheXian.开放式硬卧);
                }

                if (this.CloseYinWo > 0)
                {
                    result = result + this.CloseYinWo * GetCheXianWeight(ECommCheXian.包房式硬卧);
                }

                if (this.RuanWo > 0)
                {
                    result = result + this.RuanWo * GetCheXianWeight(ECommCheXian.软卧);
                }

                if (this.AdvanceRuanWo > 0)
                {
                    result = result + this.AdvanceRuanWo * GetCheXianWeight(ECommCheXian.高级软卧);
                }

                if (this.CanChe > 0)
                {
                    result = result + this.CanChe * GetCheXianWeight(ECommCheXian.餐车);
                }

                if (this.FaDianChe > 0)
                {
                    result = result + this.FaDianChe * GetCheXianWeight(ECommCheXian.供电车);
                }

                if (this.ShuYinChe > 0)
                {
                    result = result + this.ShuYinChe * GetCheXianWeight(ECommCheXian.宿营车);
                }
            }
            else
            {
                //计算动车组的重量
                double temp = 0;
                if (this.HighTrainBigKind == EHighTrainBigKind.动车200公里)
                {
                    temp = double.Parse(JStrInfoBU.GetStrTextByID("200公里动车车厢重量"));
                }
                else
                {
                    temp = double.Parse(JStrInfoBU.GetStrTextByID("300公里动车车厢重量"));
                }
                temp = temp * 8;
                if (this.HighTrainBianZhu == EHighTrainBianZhu.重联)
                {
                    temp = temp * 2;
                }
                result = temp;
            }
            return(result);
        }