Example #1
0
        protected void InitPage(string planId)
        {
            EyouSoft.BLL.PlanStructure.BPlan BLL = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo model = BLL.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.购物, planId);

            if (model != null)
            {
                //地接社名称/联系人
                this.txtCompanyName.Text        = model.SourceName;
                this.txtCompanyContactName.Text = model.ContactName;
                this.txtContact.Text            = model.ContactPhone;
                this.txtFax.Text = model.ContactFax;
                //公司名、联系人
                this.txtSelfName.Text        = this.SiteUserInfo.CompanyName;
                this.txtSelfContactName.Text = this.SiteUserInfo.Name;
                this.txtSelfContact.Text     = this.SiteUserInfo.Telephone;
                this.txtSelfFax.Text         = this.SiteUserInfo.Fax;
                //线路名称
                //this.lbRouteName.Text = model.RouteName;
                //团号
                this.lbTourCode.Text = model.TourCode;
                //人数
                this.lbNum.Text = model.Num.ToString();
                //付款方式
                this.lbPaymentType.Text = model.PaymentType.ToString();
                //返利标准
                this.lbServiceStandard.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard);
                //备注
                this.lbCostRemarks.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.Remarks);
                //签发日期
                this.lbDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
        /// <summary>
        /// 获取飞机实体
        /// </summary>
        protected void GetAirModel()
        {
            string planId = Utils.GetQueryStringValue("planIdAir");

            if (!string.IsNullOrEmpty(planId))
            {
                EyouSoft.Model.PlanStructure.MPlanBaseInfo AirModel = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.飞机, planId);
                if (AirModel != null)
                {
                    this.supplierControl1.HideID = AirModel.SourceId;
                    this.supplierControl1.Name   = AirModel.SourceName;
                    this.txtContentFax.Text      = AirModel.ContactFax;
                    this.txtContentName.Text     = AirModel.ContactName;
                    this.txtContentPhone.Text    = AirModel.ContactPhone;
                    if (AirModel.PlanLargeTime != null && AirModel.PlanLargeTime.Count > 0)
                    {
                        this.tabHolderView.Visible = false;
                        this.repFilght.DataSource  = AirModel.PlanLargeTime;
                        this.repFilght.DataBind();
                    }
                    else
                    {
                        this.tabHolderView.Visible = true;
                    }
                    this.txtCostAccount.Text = Utils.FilterEndOfTheZeroDecimal(AirModel.Confirmation);
                    this.txtCostParticu.Text = AirModel.CostDetail;
                    this.txtGuidNotes.Text   = AirModel.GuideNotes;
                    this.txtOtherMark.Text   = AirModel.Remarks;
                    PantMent = ((int)AirModel.PaymentType).ToString();
                    Status   = ((int)AirModel.Status).ToString();
                }
            }
        }
        /// <summary>
        /// 绑定安排的计调项其它列表
        /// </summary>
        /// <param name="tourID">团号</param>
        protected void DataInit()
        {
            string tourId = Utils.GetQueryStringValue("tourId");

            if (!string.IsNullOrEmpty(tourId))
            {
                ListPower = this.panView.Visible = EyouSoft.Common.UtilsCommons.GetUpdateAndDeleteByStatus(tourId, SiteUserInfo.UserId);
                if (ListPower)
                {
                    ListPower = panView.Visible = Privs_AnPai;
                }

                this.supplierControl1.TourID = tourId;
                IList <EyouSoft.Model.PlanStructure.MPlan> list = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它, null, EyouSoft.Model.EnumType.PlanStructure.PlanAddStatus.计调安排时添加, false, null, tourId);
                if (list != null && list.Count > 0)
                {
                    this.repOtherList.DataSource = list;
                    this.repOtherList.DataBind();
                }
                else
                {
                    this.phdShowList.Visible = false;
                }
            }
        }
        /// <summary>
        /// 获取地接实体
        /// </summary>
        /// <param name="ID">计调项id</param>
        void GetAyencyModel()
        {
            string PlanId = Utils.GetQueryStringValue("PlanId");

            if (string.IsNullOrEmpty(PlanId))
            {
                RCWE("异常请求");
            }

            EyouSoft.Model.PlanStructure.MPlanBaseInfo AyencyM = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.地接, PlanId);

            if (AyencyM == null)
            {
                RCWE("异常请求");
            }

            this.supplierControl1.HideID = AyencyM.SourceId;
            this.supplierControl1.Name   = AyencyM.SourceName;
            this.txtContentName.Text     = AyencyM.ContactName;
            this.txtContentPhone.Text    = AyencyM.ContactPhone;
            this.txtContentFax.Text      = AyencyM.ContactFax;
            this.txtTravel.Text          = AyencyM.ReceiveJourney;
            this.txtServerStand.Text     = AyencyM.ServiceStandard;
            this.txtCustomer.Text        = AyencyM.CustomerInfo;
            this.txtPeopleNumber.Text    = AyencyM.Num.ToString();
            this.txtCostParticu.Text     = AyencyM.CostDetail;
            this.txtCostAccount.Text     = Utils.FilterEndOfTheZeroDecimal(AyencyM.Confirmation);
            panyMent = ((int)AyencyM.PaymentType).ToString();
            this.txtStartTime.Text   = UtilsCommons.GetDateString(AyencyM.StartDate, ProviderToDate);
            this.txtEndTime.Text     = UtilsCommons.GetDateString(AyencyM.EndDate, ProviderToDate);
            this.txtguidNotes.Value  = AyencyM.GuideNotes;
            this.txtOtherRemark.Text = AyencyM.Remarks;
            this.ddlProfit1.Items.FindByValue(AyencyM.IsRebate == true ? "0" : "1").Selected = true;
            states = ((int)AyencyM.Status).ToString();
        }
Example #5
0
 /// <summary>
 /// 获取导游实体
 /// </summary>
 /// <param name="ID">计调项id</param>
 protected void GetGuidModel(string planId)
 {
     if (!string.IsNullOrEmpty(planId))
     {
         EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, planId);
         EyouSoft.BLL.TourStructure.BTour           bll      = new EyouSoft.BLL.TourStructure.BTour();
         if (baseinfo != null)
         {
             this.LineSelect1.HideSelect = true;
             EyouSoft.Model.TourStructure.MTourBaseInfo model = bll.GetTourInfo(baseinfo.TourId);
             this.txttel.Text = baseinfo.ContactPhone;
             if (baseinfo.PlanGuide != null)
             {
                 this.txtStartAddress.Text = baseinfo.PlanGuide.OnLocation;
                 this.txtEndAddress.Text   = baseinfo.PlanGuide.NextLocation;
                 JobType = baseinfo.PlanGuide.TaskType.ToString();
             }
             this.GuidControl1.GuidID   = baseinfo.SourceId;
             this.GuidControl1.GuidName = baseinfo.SourceName;
             if (model != null)
             {
                 this.txtTourCode.Text     = model.TourCode;
                 this.LineSelect1.LineName = model.RouteName;
             }
             this.txtDate_Start.Text = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate);
             this.txtDate_End.Text   = UtilsCommons.GetDateString(baseinfo.EndDate, ProviderToDate);
             this.txttravel.Text     = baseinfo.ReceiveJourney;
             this.txtService.Text    = baseinfo.ServiceStandard;
             this.txtrmark.Text      = baseinfo.Remarks;
             this.txtCostDesc.Text   = baseinfo.CostDetail.ToString();
             this.txtPaidCost.Text   = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation);
             this.ddlState.Items.FindByValue(((int)baseinfo.Status).ToString()).Selected = true;
         }
     }
 }
Example #6
0
        /// <summary>
        /// 全局计调配置
        /// </summary>
        /// <param name="tourID">团号</param>
        /// <param name="tourStatus">团队状态</param>
        /// <returns></returns>
        protected string GlobalOpConfig(string tourID)
        {
            string msg = string.Empty;

            if (!string.IsNullOrEmpty(tourID))
            {
                bool ret = new EyouSoft.BLL.PlanStructure.BPlan().IsExist(tourID);
                if (ret)
                {
                    msg = UtilsCommons.AjaxReturnJson("0", "还有未落实的计调项,请落实!");
                }
                else
                {
                    EyouSoft.Model.TourStructure.MTourStatusChange statusChangeModel = new EyouSoft.Model.TourStructure.MTourStatusChange();
                    statusChangeModel.CompanyId  = this.SiteUserInfo.CompanyId;
                    statusChangeModel.DeptId     = this.SiteUserInfo.DeptId;
                    statusChangeModel.IssueTime  = System.DateTime.Now;
                    statusChangeModel.Operator   = this.SiteUserInfo.Name;
                    statusChangeModel.OperatorId = this.SiteUserInfo.UserId;
                    statusChangeModel.TourId     = tourID;
                    statusChangeModel.TourStatus = EyouSoft.Model.EnumType.TourStructure.TourStatus.计调配置完毕;
                    bool result = new EyouSoft.BLL.TourStructure.BTour().UpdateTourStatus(statusChangeModel);
                    if (result)
                    {
                        msg = UtilsCommons.AjaxReturnJson("1", "配置成功!");
                    }
                    else
                    {
                        msg = UtilsCommons.AjaxReturnJson("0", "配置失败!");
                    }
                }
            }
            return(msg);
        }
Example #7
0
        private void PageInit(string planid)
        {
            EyouSoft.BLL.PlanStructure.BPlan bll = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo mPlan = bll.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.飞机, planid);

            this.txtsourcename.Text = SiteUserInfo.CompanyName;
            this.txtname.Text       = SiteUserInfo.Name;
            this.txttel.Text        = SiteUserInfo.Telephone;
            this.txtfax.Text        = SiteUserInfo.Fax;
            //计调实体
            if (mPlan != null)
            {
                this.txtunitContactname.Text = mPlan.ContactName;
                this.txtunitname.Text        = mPlan.SourceName;
                this.txtunittel.Text         = mPlan.ContactPhone;
                this.txtunitfax.Text         = mPlan.ContactFax;
                this.lbCostDesc.Text         = EyouSoft.Common.Function.StringValidate.TextToHtml(mPlan.CostDetail);
                this.lbTotleCost.Text        = EyouSoft.Common.UtilsCommons.GetMoneyString(mPlan.Confirmation, ProviderToMoney);
                this.lbRemark.Text           = EyouSoft.Common.Function.StringValidate.TextToHtml(mPlan.Remarks);
                if (mPlan.PlanLargeTime != null && mPlan.PlanLargeTime.Count > 0)
                {
                    listCount = mPlan.PlanLargeTime.Count;
                    this.rptlist.DataSource = mPlan.PlanLargeTime;
                    this.rptlist.DataBind();
                }
                //this.lbRouteName.Text = mPlan.RouteName;
                this.lbTourID.Text = mPlan.TourCode;
                //this.txtplanName.Text = mPlan.OperatorName;
                //this.txtcaiwu.Text = mPlan.Accountant;
                //this.txtshenpi.Text = mPlan.Approver;
                //this.txtsellname.Text = mPlan.SellerName;
            }
        }
Example #8
0
        protected void InitPage(string planId)
        {
            EyouSoft.BLL.PlanStructure.BPlan BLL = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo model = BLL.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它, planId);

            if (model != null)
            {
                //名称/联系人
                this.txtCompanyName.Text        = model.SourceName;
                this.txtCompanyContactName.Text = model.ContactName;
                this.txtContact.Text            = model.ContactPhone;
                this.txtFax.Text = model.ContactFax;
                //公司名、联系人
                this.txtSelfName.Text        = this.SiteUserInfo.CompanyName;
                this.txtSelfContactName.Text = this.SiteUserInfo.Name;
                this.txtSelfContact.Text     = this.SiteUserInfo.Telephone;
                this.txtSelfFax.Text         = this.SiteUserInfo.Fax;
                //this.lbRouteName.Text = model.RouteName;
                this.lbTourCode.Text = model.TourCode;
                //人数
                this.lbNum.Text = model.Num.ToString();
                //支付方式
                this.lbPaymentType.Text = model.PaymentType.ToString();
                //支出项目
                this.lbCostDetail.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CostDetail);
                //结算费用
                this.lbConfirmation.Text = UtilsCommons.GetMoneyString(model.Confirmation, ProviderToMoney);
                //备注
                this.lbCostRemarks.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.Remarks);
                //签发日期
                this.lbDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
        /// <summary>
        /// 获取导游实体
        /// </summary>
        /// <param name="ID">计调项id</param>
        protected void GetGuidModel()
        {
            string planId = Utils.GetQueryStringValue("planId");

            if (!string.IsNullOrEmpty(planId))
            {
                EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, planId);
                if (baseinfo != null)
                {
                    this.GuidControl1.GuidID   = baseinfo.SourceId;
                    this.GuidControl1.GuidName = baseinfo.SourceName;
                    this.txtguidPhone.Text     = baseinfo.ContactPhone;
                    if (baseinfo.PlanGuide != null)
                    {
                        this.txtGroupPlace.Text = baseinfo.PlanGuide.OnLocation;
                        this.txtUnderPlace.Text = baseinfo.PlanGuide.NextLocation;
                        this.guidType.Items.FindByValue(((int)baseinfo.PlanGuide.TaskType).ToString()).Selected = true;
                    }
                    this.txtGroupTime.Text   = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate);
                    this.txtunderTime.Text   = UtilsCommons.GetDateString(baseinfo.EndDate, ProviderToDate);
                    this.txttravel.Text      = baseinfo.ReceiveJourney;
                    this.txtserverStand.Text = baseinfo.ServiceStandard;
                    //this.txtOtherRemark.Text = baseinfo.Remarks;
                    this.txtCostParticu.Text = baseinfo.CostDetail.ToString();
                    this.txtCostAccount.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation);
                    states = ((int)baseinfo.Status).ToString();
                    txtDaoYouXuZhi.Text = baseinfo.GuideNotes;
                }
            }
        }
        /// <summary>
        /// 获取领料实体
        /// </summary>
        /// <param name="planID"></param>
        protected void GetPickModel()
        {
            string planId = Utils.GetQueryStringValue("planId");

            if (!string.IsNullOrEmpty(planId))
            {
                EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.领料, planId);
                if (baseinfo != null)
                {
                    this.txtNums.Text = baseinfo.Num.ToString();
                    if (baseinfo.PlanGood != null)
                    {
                        this.txtUnitPrices.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.PlanGood.Price);
                    }
                    this.txtTotalPrices.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation);
                    //领料人
                    this.txtGuidNotes.Text    = baseinfo.GuideNotes;
                    this.txtOtherRemarks.Text = baseinfo.Remarks;
                    panyMent = ((int)baseinfo.PaymentType).ToString();
                    status   = ((int)baseinfo.Status).ToString();
                    //领料内容 id
                    this.SelectObject1.ObjectID   = baseinfo.SourceId;
                    this.SelectObject1.ObjectName = baseinfo.SourceName;
                    //领料人name
                    this.hrSelect.HrSelectName = baseinfo.ContactName;
                    //领料人id
                    this.hrSelect.HrSelectID = baseinfo.PlanGood.UserId;
                }
            }
        }
Example #11
0
        /// <summary>
        /// 获取计调安排浮动内容
        /// </summary>
        void GetJiDiaoAnPaiFuDongNeiRong()
        {
            string s = Utils.GetQueryStringValue("tourid");

            var items = new EyouSoft.BLL.PlanStructure.BPlan().GetJiDiaoAnPaiFuDongs(s, null);

            Utils.RCWE(Newtonsoft.Json.JsonConvert.SerializeObject(items));
        }
Example #12
0
 /// <summary>
 /// 支付方式为导游签单的计调项统计
 /// </summary>
 /// <param name="tourID">团号</param>
 protected void GetSignNums(string tourID)
 {
     if (!string.IsNullOrEmpty(tourID))
     {
         int nums = new EyouSoft.BLL.PlanStructure.BPlan().GetGuideSignNum(tourID);
         this.litSignNums.Text = nums.ToString();
     }
 }
        /// <summary>
        /// init 导游须知
        /// </summary>
        void InitDaoYouXuZhi()
        {
            var info = new EyouSoft.BLL.PlanStructure.BPlan().GetGuidePrint(TourId);

            if (info == null)
            {
                return;
            }

            txtDaoYouXuZhi.Text = info.GuideNotes;
        }
Example #14
0
        protected void InitPage(string planId)
        {
            EyouSoft.BLL.PlanStructure.BPlan BLL = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo model = BLL.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.酒店, planId);

            if (model != null)
            {
                //地接社名称/联系人
                this.txtCompanyName.Text        = model.SourceName;
                this.txtCompanyContactName.Text = model.ContactName;
                this.txtContact.Text            = model.ContactPhone;
                this.txtFax.Text = model.ContactFax;
                //公司名、联系人
                this.txtSelfName.Text        = this.SiteUserInfo.CompanyName;
                this.txtSelfContactName.Text = this.SiteUserInfo.Name;
                this.txtSelfContact.Text     = this.SiteUserInfo.Telephone;
                this.txtSelfFax.Text         = this.SiteUserInfo.Fax;
                //线路名称
                //this.lbRouteName.Text = model.RouteName;
                //团号
                this.lbTourCode.Text = model.TourCode;
                //入住时间
                this.lbStartDate.Text = model.StartDate.HasValue ? model.StartDate.Value.ToString("yyyy-MM-dd") : "";
                //离店时间
                this.lbEndDate.Text = model.EndDate.HasValue ? model.EndDate.Value.ToString("yyyy-MM-dd") : "";
                //天数
                this.lbDays.Text = model.PlanHotel.Days.ToString();
                //房型
                if (model.PlanHotel.PlanHotelRoomList != null && model.PlanHotel.PlanHotelRoomList.Count > 0)
                {
                    this.rpt_PlanHotelRoomList.DataSource = model.PlanHotel.PlanHotelRoomList;
                    this.rpt_PlanHotelRoomList.DataBind();
                }
                //付费房数
                this.lbNum.Text = model.Num.ToString();
                //免费房数
                this.lbFreeNumber.Text = model.PlanHotel.FreeNumber.ToString();
                //是否含早
                this.lbIsMeal.Text = model.PlanHotel.IsMeal.ToString();
                //早餐费用
                this.lbMealCost.Text = UtilsCommons.GetMoneyString((decimal)model.PlanHotel.MealFrequency *
                                                                   (decimal)model.PlanHotel.MealNumber * model.PlanHotel.MealPrice, ProviderToMoney);
                //费用明细
                this.lbCostDetail.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CostDetail);
                //费用总额
                this.lbConfirmation.Text = UtilsCommons.GetMoneyString(model.Confirmation, ProviderToMoney);
                //备注
                //this.lbCostRemarks.Text = model.ContactName + "/" + model.ContactPhone + "<br/>" + model.Remarks;
                this.lbCostRemarks.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.Remarks);
                this.lbDate.Text        = DateTime.Now.ToString("yyyy-MM-dd");

                ltrZhiFuFangShi.Text = model.PaymentType.ToString();
            }
        }
Example #15
0
        /// <summary>
        /// 其它收入
        /// </summary>
        void DataInitOtherIncome()
        {
            IList <EyouSoft.Model.FinStructure.MOtherFeeInOut> otherFeeInOutlist = new EyouSoft.BLL.PlanStructure.BPlan().GetOtherIncome(TourId);

            if (otherFeeInOutlist != null && otherFeeInOutlist.Count > 0)
            {
                this.repOtherIncomList.DataSource = otherFeeInOutlist;
                this.repOtherIncomList.DataBind();
                //其它团队收入金额汇总
                hidTourIncomCount += otherFeeInOutlist.Sum(p => p.FeeAmount);
            }
        }
Example #16
0
        /// <summary>
        /// 团队支出
        /// </summary>
        void DataInitTourExpenceIncome()
        {
            IList <EyouSoft.Model.PlanStructure.MPlanBaseInfo> baseInfolist = new EyouSoft.BLL.PlanStructure.BPlan().GetList(TourId);

            if (baseInfolist != null && baseInfolist.Count > 0)
            {
                this.RepTourSeationExpList.DataSource = baseInfolist.Where(p => p.Type != EyouSoft.Model.EnumType.PlanStructure.PlanProject.购物);
                this.RepTourSeationExpList.DataBind();
                this.litConfirmaCount.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(baseInfolist.Sum(p => p.Confirmation), ProviderToMoney);
                //团队支出结算金额汇总
                hidTourExpenceCount = baseInfolist.Sum(p => p.Confirmation);
            }
        }
Example #17
0
 /// <summary>
 /// 报账汇总
 /// </summary>
 /// <param name="tourID">团号</param>
 protected void DataInitRenderAccount()
 {
     EyouSoft.Model.PlanStructure.MBZHZ renderAccount = new EyouSoft.BLL.PlanStructure.BPlan().GetBZHZ(TourId);
     if (renderAccount != null)
     {
         this.litGuideBorrowCount.Text   = EyouSoft.Common.UtilsCommons.GetMoneyString(renderAccount.GuideBorrow, ProviderToMoney);
         this.litGuideIncomeCount.Text   = EyouSoft.Common.UtilsCommons.GetMoneyString(renderAccount.GuideIncome, ProviderToMoney);
         this.litGuideMoneyRtnCount.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(renderAccount.GuideMoneyRtn, ProviderToMoney);
         this.litGuideOutlayCount.Text   = EyouSoft.Common.UtilsCommons.GetMoneyString(renderAccount.GuideOutlay, ProviderToMoney);
         this.litGuideRelSignCount.Text  = renderAccount.GuideRelSign.ToString();
         this.litGuideSignRtnCount.Text  = renderAccount.GuideSignRtn.ToString();
         this.litGuideUsedCount.Text     = renderAccount.GuideUsed.ToString();
     }
 }
Example #18
0
        protected void InitPage(string planId)
        {
            EyouSoft.BLL.PlanStructure.BPlan BLL = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo model = BLL.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.涉外游轮, planId);

            if (model != null)
            {
                //名称/联系人
                this.txtCompanyName.Text        = model.SourceName;
                this.txtCompanyContactName.Text = model.ContactName;
                this.txtContact.Text            = model.ContactPhone;
                this.txtFax.Text = model.ContactFax;
                //公司名、联系人
                this.txtSelfName.Text        = this.SiteUserInfo.CompanyName;
                this.txtSelfContactName.Text = this.SiteUserInfo.Name;
                this.txtSelfContact.Text     = this.SiteUserInfo.Telephone;
                this.txtSelfFax.Text         = this.SiteUserInfo.Fax;
                //线路名称
                //this.lbRouteName.Text = model.RouteName;
                //团号
                this.lbTourCode.Text = model.TourCode;
                //船名
                this.lbShipName.Text = model.PlanShip.ShipName;
                //登船日期
                this.lbStartDate.Text = model.StartDate.HasValue ? model.StartDate.Value.ToString("yyyy-MM-dd") : "";
                //登船码头
                this.lbLoadDock.Text = model.PlanShip.LoadDock;
                //航行
                this.lbLine.Text = model.PlanShip.Line;
                //停靠景点
                this.lbSight.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.PlanShip.Sight);
                //费用明细
                this.lbCostDetail.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CostDetail);
                //费用总额
                this.lbConfirmation.Text = UtilsCommons.GetMoneyString(model.Confirmation, ProviderToMoney);
                //备注
                this.lbCostRemarks.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.Remarks);
                //游客信息
                this.lbCustomerInfo.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CustomerInfo);
                //登船号
                this.lbLoadCode.Text = model.PlanShip.LoadCode;
                //签发日期
                this.lbDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
        protected void InitPage(string planId)
        {
            EyouSoft.BLL.PlanStructure.BPlan BLL = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo model = BLL.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用车, planId);

            if (model != null)
            {
                //地接社名称/联系人
                this.txtCompanyName.Text        = model.SourceName;
                this.txtCompanyContactName.Text = model.ContactName;
                this.txtContact.Text            = model.ContactPhone;
                this.txtFax.Text = model.ContactFax;
                //公司名、联系人
                this.txtSelfName.Text        = this.SiteUserInfo.CompanyName;
                this.txtSelfContactName.Text = this.SiteUserInfo.Name;
                this.txtSelfContact.Text     = this.SiteUserInfo.Telephone;
                this.txtSelfFax.Text         = this.SiteUserInfo.Fax;
                //线路名称
                //this.lbRouteName.Text = model.RouteName;
                //团号
                this.lbTourCode.Text = model.TourCode;
                //用车时间
                this.lbStartDate.Text = UtilsCommons.SetDateTimeFormart(model.StartDate) + ":" + model.StartTime + "      -     " + UtilsCommons.SetDateTimeFormart(model.EndDate) + ":" + model.EndTime;
                //用车类型
                this.lbModels.Text = model.PlanCar.VehicleType.ToString();
                //车型+人数
                this.lblCarType.Text = model.PlanCar.Models + "(" + model.PlanCar.SeatNumber.ToString() + ")";
                //用车数量
                this.lbNum.Text = model.Num.ToString();
                //付款方式
                this.lbPaymentType.Text = model.PaymentType.ToString();
                //行程
                this.lbReceiveJourney.Text =
                    EyouSoft.Common.Function.StringValidate.TextToHtml(model.ReceiveJourney);
                //费用明细
                this.lbCostDetail.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CostDetail);
                //费用总额
                this.lbConfirmation.Text = UtilsCommons.GetMoneyString(model.Confirmation, ProviderToMoney);
                //备注
                this.lbCostRemarks.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.Remarks);
                //签发日期
                this.lbDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
Example #20
0
        /// <summary>
        /// 初始化计调安排信息
        /// </summary>
        void InitAnPaiInfo()
        {
            if (string.IsNullOrEmpty(AnPaiId))
            {
                return;
            }
            var info = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, AnPaiId);

            if (info == null || string.IsNullOrEmpty(info.PlanId))
            {
                RCWE("异常请求");
            }

            if (!string.IsNullOrEmpty(info.GuideNotes))
            {
                TGuideNote.Visible = true;
                lbGuidNote.Text    = Utils.TextareaToHTML(info.GuideNotes);
            }
            else
            {
                TGuideNote.Visible = false;
            }

            if (!string.IsNullOrEmpty(info.ReceiveJourney))
            {
                TReceiveJourney.Visible = true;
                lbReceiveJourney.Text   = Utils.TextareaToHTML(info.ReceiveJourney);
            }
            else
            {
                TReceiveJourney.Visible = false;
            }

            if (!string.IsNullOrEmpty(info.ServiceStandard))
            {
                TService.Visible       = true;
                lbServiceStandard.Text = Utils.TextareaToHTML(info.ServiceStandard);
            }
            else
            {
                TService.Visible = false;
            }
        }
        private void PageInit(string planid)
        {
            EyouSoft.BLL.PlanStructure.BPlan bll = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo mPlan = bll.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.景点, planid);

            this.txtsourcename.Text = SiteUserInfo.CompanyName;
            this.txtname.Text       = SiteUserInfo.Name;
            this.txttel.Text        = SiteUserInfo.Telephone;
            this.txtfax.Text        = SiteUserInfo.Fax;
            //计调实体
            if (mPlan != null)
            {
                if (mPlan.PlanAttractions != null)
                {
                    this.lbScenicName.Text  = mPlan.PlanAttractions.Attractions;
                    this.lbPeopleCount.Text = (mPlan.PlanAttractions.AdultNumber + mPlan.PlanAttractions.ChildNumber).ToString();
                }

                string s = EyouSoft.Common.UtilsCommons.GetDateString(mPlan.StartDate, ProviderToDate);
                if (!string.IsNullOrEmpty(mPlan.StartTime))
                {
                    s += "&nbsp;" + mPlan.StartTime + "时";
                }
                s += " 至 " + EyouSoft.Common.UtilsCommons.GetDateString(mPlan.EndDate, ProviderToDate);
                if (!string.IsNullOrEmpty(mPlan.EndTime))
                {
                    s += "&nbsp;" + mPlan.EndTime + "时";
                }
                this.lbTime.Text = s;

                this.lbCostDesc.Text         = EyouSoft.Common.Function.StringValidate.TextToHtml(mPlan.CostDetail);
                this.lbTotleCost.Text        = EyouSoft.Common.UtilsCommons.GetMoneyString(mPlan.Confirmation, ProviderToMoney);
                this.LbRemark.Text           = EyouSoft.Common.Function.StringValidate.TextToHtml(mPlan.Remarks);
                this.txtunitContactname.Text = mPlan.ContactName;
                this.txtunitname.Text        = mPlan.SourceName;
                this.txtunittel.Text         = mPlan.ContactPhone;
                this.txtunitfax.Text         = mPlan.ContactFax;

                //this.lbRouteName.Text = mPlan.RouteName;
                this.lbTourID.Text = mPlan.TourCode;
            }
        }
Example #22
0
        protected void InitPage(string planId)
        {
            EyouSoft.BLL.PlanStructure.BPlan BLL = new EyouSoft.BLL.PlanStructure.BPlan();
            MPlanBaseInfo model = BLL.GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.地接, planId);

            if (model != null)
            {
                //地接社名称/联系人
                this.txtCompanyName.Text        = model.SourceName;
                this.txtCompanyContactName.Text = model.ContactName;
                this.txtContact.Text            = model.ContactPhone;
                this.txtFax.Text = model.ContactFax;
                //公司名、联系人
                this.txtSelfName.Text        = this.SiteUserInfo.CompanyName;
                this.txtSelfContactName.Text = this.SiteUserInfo.Name;
                this.txtSelfContact.Text     = this.SiteUserInfo.Telephone;
                this.txtSelfFax.Text         = this.SiteUserInfo.Fax;
                //线路名称
                //this.lbRouteName.Text = model.RouteName;
                //团号
                this.lbTourCode.Text = model.TourCode;
                //人数
                this.lbPersonNum.Text = model.Num.ToString();
                //接团日期
                this.lbStartDate.Text = model.StartDate.HasValue ? model.StartDate.Value.ToString("yyyy-MM-dd") : "";
                //送团日期
                this.lbEndDate.Text = model.EndDate.HasValue ? model.EndDate.Value.ToString("yyyy-MM-dd") : "";
                //接待行程
                this.lbReceiveJourney.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ReceiveJourney);
                //服务标准
                this.lbServiceStandard.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard);
                //费用明细
                this.lbCostDetail.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CostDetail);
                //费用总额
                this.lbConfirmation.Text = UtilsCommons.GetMoneyString(model.Confirmation, ProviderToMoney);
                //备注
                this.lbCostRemarks.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.Remarks);
                //游客信息
                this.lbCustomerInfo.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CustomerInfo);
                this.lbDate.Text         = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
        /// <summary>
        /// 团队计调项
        /// </summary>
        protected void DataInit()
        {
            ListPower = this.panView.Visible = EyouSoft.Common.UtilsCommons.GetUpdateAndDeleteByStatus(TourId, SiteUserInfo.UserId);
            if (ListPower)
            {
                ListPower = panView.Visible = Privs_AnPai;
            }

            IList <EyouSoft.Model.PlanStructure.MPlan> guideList = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.导游, null, EyouSoft.Model.EnumType.PlanStructure.PlanAddStatus.计调安排时添加, false, null, TourId);

            if (guideList != null && guideList.Count > 0)
            {
                this.repGuidList.DataSource = guideList;
                this.repGuidList.DataBind();
            }
            else
            {
                this.phdShowList.Visible = false;
            }
        }
Example #24
0
        /// <summary>
        /// 初始化支出合计
        /// </summary>
        void InitZhiChuHeJi()
        {
            var info = new EyouSoft.BLL.PlanStructure.BPlan().GetTourTotalInOut(TourId);

            if (info != null)
            {
                if (!IsJinDaoYouZhiFu)
                {
                    ltrZhiChuHeJi.Text = UtilsCommons.GetMoneyString(info.TourOutlay, ProviderToMoney);
                }
                else
                {
                    ltrZhiChuHeJi.Text = UtilsCommons.GetMoneyString(info.DaoYouZhiFuJinE, ProviderToMoney);
                }
            }
            else
            {
                ltrZhiChuHeJi.Text = UtilsCommons.GetMoneyString(0, ProviderToMoney);
            }
        }
Example #25
0
        /// <summary>
        /// 获取其它计调项实体
        /// </summary>
        /// <param name="planID">计调项id</param>
        protected void GetOtherPlan()
        {
            string planId = Utils.GetQueryStringValue("planId");

            if (!string.IsNullOrEmpty(planId))
            {
                EyouSoft.Model.PlanStructure.MPlanBaseInfo baseModel = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它, planId);
                if (baseModel != null)
                {
                    this.supplierControl1.HideID = baseModel.SourceId;
                    this.supplierControl1.Name   = baseModel.SourceName;

                    if (!string.IsNullOrEmpty(baseModel.SueId.Trim()))
                    {
                        this.supplierControl1.HideID_zyyk = baseModel.SueId;
                        this.supplierControl1.isyukong    = "1";
                        SueID = baseModel.SueId;
                        var sueHotel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByOtherId(baseModel.SueId, this.SiteUserInfo.CompanyId);
                        if (sueHotel != null)
                        {
                            this.hidUserNum.Value = (sueHotel.ControlNum - sueHotel.AlreadyNum + baseModel.Num).ToString();
                        }
                    }
                    else
                    {
                        this.supplierControl1.isyukong = "0";
                    }

                    this.txtContactFax.Text   = baseModel.ContactFax;
                    this.txtContactName.Text  = baseModel.ContactName;
                    this.txtContactPhone.Text = baseModel.ContactPhone;
                    this.txtOutProject.Text   = baseModel.CostDetail;
                    this.txtTotalPrices.Text  = Utils.FilterEndOfTheZeroDecimal(baseModel.Confirmation);
                    this.txtNums.Text         = baseModel.Num.ToString();
                    this.txtGuisNotes.Text    = baseModel.GuideNotes;
                    this.txtOtherMark.Text    = baseModel.Remarks;
                    panyMent = ((int)baseModel.PaymentType).ToString();
                    status   = ((int)baseModel.Status).ToString();
                }
            }
        }
Example #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Utils.GetQueryStringValue("type") == "Agency" || Utils.GetQueryStringValue("type") == "Departure" || Utils.GetQueryStringValue("type") == "Team")
         {
             string tourId = Utils.GetQueryStringValue("Id");
             if (tourId != "" && !string.IsNullOrEmpty(tourId))
             {
                 EyouSoft.Model.PlanStructure.MPlanTourGuide tourGuidInfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(tourId, CompanyId, Project);
                 if (tourGuidInfo != null)
                 {
                     //线路名称
                     this.litRouteName.Text = tourGuidInfo.RouteName;
                     //团号
                     this.litTourId.Text = tourGuidInfo.TourCode;
                     //出发时间
                     this.litTourendInfo.Text = tourGuidInfo.LDate.ToString("yyyy-MM-dd");
                     //出发交通
                     this.litTourStartInfo.Text = tourGuidInfo.LTraffic;
                     //销售员
                     if (tourGuidInfo.SaleInfo != null)
                     {
                         this.LitSellerName.Text = tourGuidInfo.SaleInfo.Name;
                     }
                     //人数
                     int Count = tourGuidInfo.Adults + tourGuidInfo.Childs + tourGuidInfo.Others;
                     this.LitPeople.Text = Count.ToString();
                     //内部信息
                     if (tourGuidInfo.TourService != null)
                     {
                         this.LitInterInfo.Text = tourGuidInfo.TourService.InsiderInfor;
                     }
                     //计调需知
                     this.LitOperNeet.Text = tourGuidInfo.ServiceStandards;
                 }
             }
         }
     }
 }
        /// <summary>
        /// 获取用餐实体
        /// </summary>
        /// <param name="planID">计调项id</param>
        protected void GetDinModel()
        {
            string planId = Utils.GetQueryStringValue("planId");

            if (!string.IsNullOrEmpty(planId))
            {
                EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用餐, planId);
                if (baseinfo != null)
                {
                    this.supplierControl1.HideID = baseinfo.SourceId;
                    this.supplierControl1.Name   = baseinfo.SourceName;
                    this.txtContactFax.Text      = baseinfo.ContactFax;
                    this.txtContactName.Text     = baseinfo.ContactName;
                    this.txtContactPhone.Text    = baseinfo.ContactPhone;
                    this.txtDinningDate.Text     = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate);
                    if (baseinfo.PlanDiningPricelist != null && baseinfo.PlanDiningPricelist.Count > 0)
                    {
                        this.tabViewPrices.Visible   = false;
                        this.repPriceList.DataSource = baseinfo.PlanDiningPricelist;
                        this.repPriceList.DataBind();
                    }
                    else
                    {
                        this.tabViewPrices.Visible = true;
                    }
                    this.txtPeopleNum.Text   = baseinfo.Num.ToString();
                    this.txtCostDetail.Text  = baseinfo.CostDetail;
                    this.txtTotalPrices.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation);
                    this.txtGuidNotes.Text   = baseinfo.GuideNotes;
                    this.txtOtherMarks.Text  = baseinfo.Remarks;
                    panMent = ((int)baseinfo.PaymentType).ToString();
                    Status  = ((int)baseinfo.Status).ToString();
                }
                else
                {
                    Utils.ResponseGoBack();
                }
            }
        }
Example #28
0
        /// <summary>
        /// 获取安排的购物计调项实体
        /// </summary>
        /// <param name="planID">计调项id</param>
        protected void GetShopModel()
        {
            string planId = Utils.GetQueryStringValue("planId");

            if (!string.IsNullOrEmpty(planId))
            {
                EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.购物, planId);
                if (baseinfo != null)
                {
                    this.SupplierControl1.HideID = baseinfo.SourceId;
                    this.SupplierControl1.Name   = baseinfo.SourceName;
                    this.txtContactName.Text     = baseinfo.ContactName;
                    this.txtContactPhone.Text    = baseinfo.ContactPhone;
                    this.txtContactFax.Text      = baseinfo.ContactFax;
                    this.txtPeopleNums.Text      = baseinfo.Num.ToString();
                    this.txtProfitStand.Text     = baseinfo.ServiceStandard;
                    this.txtGuidNotes.Text       = baseinfo.GuideNotes;
                    this.txtOtherRemark.Text     = baseinfo.Remarks;
                    status = ((int)baseinfo.Status).ToString();
                }
            }
        }
Example #29
0
        /// <summary>
        /// 团队收支汇总
        /// </summary>
        void IncomCount()
        {
            /*this.litTourIncomCount.Text = UtilsCommons.GetMoneyString(hidTourIncomCount, ProviderToMoney);
             * this.litTourExpenceCount.Text = UtilsCommons.GetMoneyString(hidTourExpenceCount, ProviderToMoney);
             * //团队利润
             * this.litProfit1Count.Text = UtilsCommons.GetMoneyString((hidTourIncomCount - hidTourExpenceCount).ToString(), ProviderToMoney);
             * if (hidTourIncomCount != 0)
             * {
             *  //团队利润率
             *  this.litProfitLCount.Text = UtilsCommons.GetMoneyString(((hidTourIncomCount - hidTourExpenceCount) / hidTourIncomCount) * 100, ProviderToMoney);
             * }
             * else
             * {
             *  this.litProfitLCount.Text = "0";
             * }*/

            var info = new EyouSoft.BLL.PlanStructure.BPlan().GetTourTotalInOut(TourId);

            this.litTourIncomCount.Text   = UtilsCommons.GetMoneyString(info.TourIncome + info.QiTaShouRu, ProviderToMoney);
            this.litTourExpenceCount.Text = UtilsCommons.GetMoneyString(info.TourOutlay, ProviderToMoney);
            this.litProfit1Count.Text     = UtilsCommons.GetMoneyString(info.TourProfit, ProviderToMoney);
            this.litProfitLCount.Text     = info.TourProRate.ToString("F2") + "%";
        }
Example #30
0
        /// <summary>
        /// 初始化安排的火车计调项列表
        /// </summary>
        /// <param name="tourID">团号</param>
        protected void DataInit()
        {
            string tourId = Utils.GetQueryStringValue("tourId");

            if (!string.IsNullOrEmpty(tourId))
            {
                ListPower = this.panView1.Visible = EyouSoft.Common.UtilsCommons.GetUpdateAndDeleteByStatus(tourId, SiteUserInfo.UserId);
                if (ListPower)
                {
                    ListPower = panView1.Visible = Privs_AnPai;
                }

                IList <EyouSoft.Model.PlanStructure.MPlan> trainList = new EyouSoft.BLL.PlanStructure.BPlan().GetList(EyouSoft.Model.EnumType.PlanStructure.PlanProject.火车, null, EyouSoft.Model.EnumType.PlanStructure.PlanAddStatus.计调安排时添加, false, null, tourId);
                if (trainList != null && trainList.Count > 0)
                {
                    this.reptrainlist.DataSource = trainList;
                    this.reptrainlist.DataBind();
                }
                else
                {
                    this.panShowListSecond.Visible = false;
                }
            }
        }