/// <summary>
        /// 报账汇总
        /// </summary>
        /// <param name="BLL">计调BLL</param>
        /// <param name="tourId">团号</param>
        private void TourSummarizing(BPlan BLL, string tourId)
        {
            MBZHZ model = BLL.GetBZHZ(tourId);

            if (model != null)
            {
                lbl_guidesIncome.Text        = UtilsCommons.GetMoneyString(model.GuideIncome, ProviderToMoney);
                lbl_guidesBorrower.Text      = UtilsCommons.GetMoneyString(model.GuideBorrow, ProviderToMoney);
                lbl_guidesSpending.Text      = UtilsCommons.GetMoneyString(model.GuideOutlay, ProviderToMoney);
                lbl_replacementOrReturn.Text = UtilsCommons.GetMoneyString(model.GuideMoneyRtn, ProviderToMoney);
                lbl_RCSN.Text = model.GuideRelSign.ToString();
                lbl_HUSN.Text = model.GuideUsed.ToString();
                lbl_RSN.Text  = model.GuideSignRtn.ToString();
            }
        }
Beispiel #2
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        private void DataInit()
        {
            string b = Utils.GetQueryStringValue("mark");

            switch (b)
            {
            case "1":
                this.lblMsg.Text = "提交成功!";
                break;

            case "2":
                this.lblMsg.Text = "提交失败!";
                break;

            case "3":
                this.lblMsg.Text = "保存成功!";
                break;
            }
            string tourId = Utils.GetQueryStringValue("tourId");
            BPlan  bll    = new BPlan();

            //团队支出
            IList <MPlanBaseInfo> list = bll.GetList(tourId);

            if (list != null && list.Count > 0)
            {
                rptList.DataSource = list;
                rptList.DataBind();
                this.litFrist.Text = "&nbsp;&nbsp;&nbsp;&nbsp;<span>类型</span>&nbsp;-&nbsp;<span>名称</span>&nbsp;-&nbsp;<span>结算费用</span>";
            }
            else
            {
                this.litFrist.Text = "暂无支出!";
            }

            //导游收入
            EyouSoft.Model.TourStructure.MOrderSum          sum    = new EyouSoft.Model.TourStructure.MOrderSum();
            IList <EyouSoft.Model.TourStructure.MTourOrder> orders = new EyouSoft.BLL.TourStructure.BTourOrder().GetTourOrderListById(ref sum, tourId);

            if (orders != null && orders.Count > 0)
            {
                repGuidInMoney.DataSource = orders;
                repGuidInMoney.DataBind();
                this.litSecond.Text = "&nbsp;&nbsp;&nbsp;&nbsp;<span>客源单位</span>&nbsp;-&nbsp;<span>团款现收</span>";
            }
            else
            {
                this.litSecond.Text = "暂无收入!";
            }

            //导游借款
            IList <MDebit> ls = new EyouSoft.BLL.FinStructure.BFinance().GetDebitLstByTourId(tourId, true);

            if (ls != null && ls.Count > 0)
            {
                this.rptDebit.DataSource = ls;
                this.rptDebit.DataBind();
                this.litThird.Text = "&nbsp;&nbsp;&nbsp;&nbsp;<span>姓名</span>&nbsp;-&nbsp;<span>日期</span>&nbsp;-&nbsp;<span>金额</span>";
            }
            else
            {
                this.litThird.Text = "暂无借款!";
            }

            //报账汇总
            MBZHZ model = bll.GetBZHZ(tourId);

            if (model != null)
            {
                lbl_guidesIncome.Text        = UtilsCommons.GetMoneyString(model.GuideIncome, ProviderToMoney);
                lbl_guidesBorrower.Text      = UtilsCommons.GetMoneyString(model.GuideBorrow, ProviderToMoney);
                lbl_guidesSpending.Text      = UtilsCommons.GetMoneyString(model.GuideOutlay, ProviderToMoney);
                lbl_replacementOrReturn.Text = UtilsCommons.GetMoneyString(model.GuideMoneyRtn, ProviderToMoney);
            }
        }