Beispiel #1
0
        /// <summary>
        /// 团队支出
        /// </summary>
        /// <param name="BLL">计调BLL</param>
        /// <param name="tourId">团队编号</param>
        private void TourMoneyOut(BPlan BLL, string tourId)
        {
            IList <EyouSoft.Model.PlanStructure.MPlanBaseInfo> ls = BLL.GetList(tourId);

            if (ls != null && ls.Count > 0)
            {
                rpt_tourMoneyOut.DataSource = ls.Where(p => p.Type != PlanProject.购物);
                rpt_tourMoneyOut.DataBind();
                //lbl_tourMoneyOutSumNum.Text = ls.Sum(item => item.Num).ToString();
                lbl_tourMoneyOutSumConfirmation.Text = UtilsCommons.GetMoneyString((lbl_tourMoneyOut.Text = TourPay.Value = (tourMoneyOutSumNum = ls.Sum(item => item.Confirmation)).ToString()), ProviderToMoney);
                decimal yingFuJinE = ls.Sum(item => item.Confirmation);
                decimal yiFuJinE   = ls.Sum(item => item.Prepaid);
                ltrYiFuJinE.Text  = UtilsCommons.GetMoneyString(yiFuJinE, ProviderToMoney);
                ltrWeiFuJinE.Text = UtilsCommons.GetMoneyString(yingFuJinE - yiFuJinE, ProviderToMoney);
            }
            pan_tourMoneyOutMsg.Visible = !(pan_tourMoneyOut.Visible = ls != null && ls.Count > 0);
        }
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);
            }
        }
Beispiel #3
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit(string tourID)
        {
            PlanAddStatus?planAddStatus = null;

            IList <EnumObj> paymentList = EnumObj.GetList(typeof(Payment));

            if (paymentList != null && paymentList.Count > 0)
            {
                for (int i = 0; i < paymentList.Count; i++)
                {
                    if (IsChangeDaoYou == false && (Payment)Utils.GetInt(paymentList[i].Value) == Payment.导游现付)
                    {
                        //PaymentStr += "<option value='" + paymentList[i].Value + "'>" + paymentList[i].Text + "</option>";
                    }
                    else
                    {
                        PaymentStr += "<option value='" + paymentList[i].Value + "'>" + paymentList[i].Text + "</option>";
                    }
                }
            }

            BPlan bll       = new BPlan();
            bool  isShowMsg = true;

            planAddStatus = null;
            isShowMsg     = Bind(rpt_CheDui, bll.GetList(PlanProject.用车, null, planAddStatus, true, null, tourID), pan_CheDui) && isShowMsg;
            isShowMsg     = Bind(rpt_DaoYou, bll.GetList(PlanProject.导游, null, planAddStatus, true, null, tourID), pan_DaoYou) && isShowMsg;
            isShowMsg     = Bind(rpt_DiJie, bll.GetList(PlanProject.地接, null, planAddStatus, true, null, tourID), pan_DiJie) && isShowMsg;
            isShowMsg     = Bind(rpt_FeiJi, bll.GetList(PlanProject.飞机, null, planAddStatus, true, null, tourID), pan_FeiJi) && isShowMsg;
            isShowMsg     = Bind(rpt_GuoNeiYouLun, bll.GetList(PlanProject.国内游轮, null, planAddStatus, true, null, tourID), pan_GuoNeiYouLun) && isShowMsg;
            isShowMsg     = Bind(rpt_HuoChe, bll.GetList(PlanProject.火车, null, planAddStatus, true, null, tourID), pan_HuoChe) && isShowMsg;
            isShowMsg     = Bind(rpt_JinDian, bll.GetList(PlanProject.景点, null, planAddStatus, true, null, tourID), pan_JinDian) && isShowMsg;
            isShowMsg     = Bind(rpt_JiuDian, bll.GetList(PlanProject.酒店, null, planAddStatus, true, null, tourID), pan_JiuDian) && isShowMsg;
            isShowMsg     = Bind(rpt_LingLiao, bll.GetList(PlanProject.领料, null, planAddStatus, true, null, tourID), pan_LinLiao) && isShowMsg;
            isShowMsg     = Bind(rpt_QiChe, bll.GetList(PlanProject.汽车, null, planAddStatus, true, null, tourID), pan_QiChe) && isShowMsg;
            isShowMsg     = Bind(rpt_QiTa, bll.GetList(PlanProject.其它, null, planAddStatus, true, null, tourID), pan_QiTa) && isShowMsg;
            isShowMsg     = Bind(rpt_SheWaiYouLun, bll.GetList(PlanProject.涉外游轮, null, planAddStatus, true, null, tourID), pan_SheWaiYouLun) && isShowMsg;
            isShowMsg     = Bind(rpt_YongCan, bll.GetList(PlanProject.用餐, null, planAddStatus, true, null, tourID), pan_YongCan) && isShowMsg;

            pan_Msg.Visible = isShowMsg && IsShowOperate == -1 && ParentType == null;
        }