예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //初始化backPage
            frontPage = this.Page as FrontPage;
            if (frontPage == null)
            {
                throw new Exception("页面没有正确继承FrontPage");
            }

            if (!Page.IsPostBack)
            {
                //组团logo
                EyouSoft.Model.CompanyStructure.CustomerConfig Customer =
                    new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerConfigModel(frontPage.SiteUserInfo.TourCompany.TourCompanyId);
                if (Customer != null)
                {
                    if (Customer.FilePathLogo != "" && !string.IsNullOrEmpty(Customer.FilePathLogo))
                    {
                        InnerLogo = Customer.FilePathLogo;
                    }
                }
                //专线Logo
                BigLogo = new EyouSoft.BLL.CompanyStructure.CompanySetting().GetCompanyLogo(frontPage.SiteUserInfo.TourCompany.TourCompanyId, EyouSoft.Model.EnumType.CompanyStructure.CompanyUserType.组团用户);

                AutoPositionLinks();
            }
        }
예제 #2
0
        /// <summary>
        /// 绑定操作员
        /// </summary>
        private void GroupUser()
        {
            int    zId      = Utils.GetInt(Utils.GetQueryStringValue("zId"));
            string cityHtml = string.Empty;

            EyouSoft.BLL.CompanyStructure.Customer csBLL = new EyouSoft.BLL.CompanyStructure.Customer();
            IList <EyouSoft.Model.CompanyStructure.CustomerContactInfo> csList = null;

            csList = csBLL.GetCustomerContactList(zId);
            StringBuilder strBuilder = new StringBuilder();

            strBuilder.AppendFormat("<option value=\"0\"selected=\"selected\">--请选择--</option>");
            if (csList != null)
            {
                for (int i = 0; i < csList.Count; i++)
                {
                    strBuilder.AppendFormat("<option value=\"" + csList[i].ID + "\">" + csList[i].Name + "</option>");
                }
            }

            cityHtml = strBuilder.ToString();
            //异步执行代码返回
            Response.Clear();
            Response.Write(string.Format(cityHtml));
            Response.End();
            return;
        }
예제 #3
0
        protected int RecordCount = 0;  //总记录数
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PageIndex = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetQueryStringValue("Page"), 1);
                EyouSoft.BLL.CompanyStructure.Customer       custBll   = new EyouSoft.BLL.CompanyStructure.Customer(); //客户资料bll
                EyouSoft.Model.CompanyStructure.CustomerInfo custModel = null;                                         //客户资料实体
                int custId = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetQueryStringValue("custId"));
                if (custId > 0)
                {
                    custModel = new EyouSoft.Model.CompanyStructure.CustomerInfo();
                    custModel = custBll.GetCustomerModel(custId);
                    //获取联系人集合
                    IList <EyouSoft.Model.CompanyStructure.CustomerContactInfo> custList = custModel.CustomerContactList;
                    if (custList != null && custList.Count > 0)
                    {
                        this.CloseNumberList.DataSource = custList;
                        this.CloseNumberList.DataBind();
                        BIndPage();
                    }
                    else
                    {
                        this.Close_ExportPageInfo1.Visible = false;
                    }
                }
            }
        }
예제 #4
0
파일: Print.Master.cs 프로젝트: windygu/bbl
        protected void Page_Load(object sender, EventArgs e)
        {
            bool _IsLogin = EyouSoft.Security.Membership.UserProvider.IsUserLogin(out SiteUserInfo);


            if (!IsPostBack)
            {
                this.hidDocName.Value = EyouSoft.Common.Utils.GetQueryStringValue("docName");
                this.hidDocName.Value = "个人详细信息";

                if (SiteUserInfo == null)
                {
                    EyouSoft.BLL.SysStructure.SystemDomain   bll    = new EyouSoft.BLL.SysStructure.SystemDomain();
                    EyouSoft.Model.SysStructure.SystemDomain domain = bll.GetDomain(Request.Url.Host.ToLower());
                    CurrentUserCompanyID = domain.CompanyId;
                    EyouSoft.BLL.CompanyStructure.Customer Customer = new EyouSoft.BLL.CompanyStructure.Customer();
                    EyouSoft.Model.CompanyStructure.CompanyPrintTemplate CustomerConfig = GetTemplateByCompaneyId(CurrentUserCompanyID);

                    if (CustomerConfig != null)
                    {
                        DepartStamp  = CustomerConfig.DepartStamp;
                        PageHeadFile = CustomerConfig.PageHeadFile;
                        PageFootFile = CustomerConfig.PageFootFile;
                    }
                }
                else
                {
                    if (SiteUserInfo.ContactInfo.UserType == EyouSoft.Model.EnumType.CompanyStructure.CompanyUserType.专线用户)
                    {
                        CurrentUserCompanyID = SiteUserInfo.CompanyID;
                        EyouSoft.Model.CompanyStructure.CompanyPrintTemplate modelDepartmentPrint = GetTemplate();

                        if (modelDepartmentPrint != null)
                        {
                            DepartStamp  = modelDepartmentPrint.DepartStamp;
                            PageHeadFile = modelDepartmentPrint.PageHeadFile;
                            PageFootFile = modelDepartmentPrint.PageFootFile;
                        }
                    }

                    else if (SiteUserInfo.ContactInfo.UserType == EyouSoft.Model.EnumType.CompanyStructure.CompanyUserType.组团用户)
                    {
                        CurrentUserCompanyID = SiteUserInfo.TourCompany.TourCompanyId;
                        EyouSoft.BLL.CompanyStructure.Customer         Customer       = new EyouSoft.BLL.CompanyStructure.Customer();
                        EyouSoft.Model.CompanyStructure.CustomerConfig CustomerConfig = Customer.GetCustomerConfigModel(CurrentUserCompanyID);

                        if (CustomerConfig != null)
                        {
                            DepartStamp  = CustomerConfig.CustomerStamp;
                            PageHeadFile = CustomerConfig.PageHeadFile;
                            PageFootFile = CustomerConfig.PageFootFile;
                        }
                    }
                }
            }
            this.ibtnWord.Attributes.Add("onclick", "ReplaceInput();");
        }
예제 #5
0
파일: SignUp.aspx.cs 프로젝트: windygu/bbl
 protected void GetBackMoney()
 {
     EyouSoft.Model.CompanyStructure.CustomerInfo companyModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(SiteUserInfo.TourCompany.TourCompanyId);
     if (companyModel != null)
     {
         this.lblBackMoney.Text   = companyModel.CommissionCount.ToString("f2");
         this.hideBackMoney.Value = companyModel.CommissionCount.ToString("f2");
         this.hideBackType.Value  = ((int)companyModel.CommissionType).ToString();
     }
 }
예제 #6
0
        /// <summary>
        /// 绑定列表
        /// </summary>
        void Bind()
        {
            #region 设置公司ID产生省份城市列表
            ucProvince1.CompanyId  = CurrentUserCompanyID;
            ucProvince1.IsFav      = true;
            ucProvince1.ProvinceId = Utils.GetInt(Utils.GetQueryStringValue("pid"));
            ucCity1.CompanyId      = CurrentUserCompanyID;
            ucCity1.ProvinceId     = Utils.GetInt(Utils.GetQueryStringValue("pid"));
            ucCity1.IsFav          = true;
            ucCity1.CityId         = Utils.GetInt(Utils.GetQueryStringValue("cid"));

            txtCompanyName.Value = Server.HtmlDecode(Utils.GetQueryStringValue("comName"));
            txtContact.Value     = Server.HtmlDecode(Utils.GetQueryStringValue("contactName"));
            txt_tel.Value        = Utils.GetQueryStringValue("phone");
            #endregion
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);

            EyouSoft.Model.CompanyStructure.MCustomerSeachInfo searchModel = new EyouSoft.Model.CompanyStructure.MCustomerSeachInfo();
            if (Utils.GetInt(Utils.GetQueryStringValue("pid")) > 0)
            {
                searchModel.ProvinceId = Utils.GetInt(Utils.GetQueryStringValue("pid"));
            }
            if (Utils.GetInt(Utils.GetQueryStringValue("cid")) > 0)
            {
                searchModel.CityId = Utils.GetInt(Utils.GetQueryStringValue("cid"));
            }
            searchModel.ContactName      = Server.HtmlDecode(Utils.GetQueryStringValue("contactName"));
            searchModel.CustomerName     = Server.HtmlDecode(Utils.GetQueryStringValue("comName"));
            searchModel.ContactTelephone = Utils.GetQueryStringValue("phone");


            //int cityid = ucCity1.CityId;
            //int provinceId = ucProvince1.ProvinceId;
            //if (cityid > 0)
            //    searchModel.CityId = cityid;
            //if (provinceId > 0)
            //    searchModel.ProvinceId = provinceId;
            //searchModel.ContactName = contacter;
            //searchModel.CustomerName = companyName;
            //searchModel.ContactTelephone = txt_tel.Value;
            //绑定客户列表
            EyouSoft.BLL.CompanyStructure.Customer custBll            = new EyouSoft.BLL.CompanyStructure.Customer();
            IList <EyouSoft.Model.CompanyStructure.CustomerInfo> list = custBll.GetCustomers(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, searchModel);
            if (list != null && list.Count > 0)
            {
                rptCustomer.DataSource = list;
                rptCustomer.DataBind();
                BindExportPage();
            }
            else
            {
                rptCustomer.EmptyText   = "<tr><td colspan='10' align='center'>对不起,暂无客户资料信息!</td></tr>";
                ExportPageInfo1.Visible = false;
            }
        }
예제 #7
0
 protected bool IsDelete; //是否有删除权限
 protected void Page_Load(object sender, EventArgs e)
 {
     #region 判断权限
     if (!CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_营销活动_栏目))
     {
         Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.客户关系管理_营销活动_栏目, true);
         return;
     }
     if (CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_营销活动_删除活动))
     {
         IsDelete = true;
     }
     if (CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_营销活动_新增活动))
     {
         IsAdd = true;
     }
     if (CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_营销活动_修改活动))
     {
         IsUpdate = true;
     }
     #endregion
     pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
     //获取查询条件
     EyouSoft.BLL.CompanyStructure.Customer custBll = new EyouSoft.BLL.CompanyStructure.Customer();
     string method = Utils.GetFormValue("method");
     if (method == "del")
     {   //删除
         int[] ids    = Utils.GetFormValue("ids").Split(',').Select(i => Utils.GetInt(i)).ToArray();
         bool  result = custBll.DeleteCustomerMarketingS(ids);
         Utils.ResponseMeg(result, result? "删除成功!":"删除失败!");
         return;
     }
     string active = Request.QueryString["active"];               //活动主题
     active = !string.IsNullOrEmpty(active) ? Utils.InputText(Server.UrlDecode(active)) : "";
     string activeDate = Utils.GetQueryStringValue("activeDate"); //活动时间
     int    pageCount  = 0;
     //绑定营销活动
     IList <EyouSoft.Model.CompanyStructure.CustomerMarketingInfo> list = custBll.SearchCustomerMarketList(pageSize, pageIndex, CurrentUserCompanyID, active, activeDate, ref recordCount, ref pageCount);
     if (list != null && list.Count > 0)
     {
         rptCustomer.DataSource = list;
         rptCustomer.DataBind();
         BindExportPage();
     }
     else
     {
         rptCustomer.EmptyText   = "<tr><td colspan='10' align='center'>对不起,暂无营销活动信息!</td></tr>";
         ExportPageInfo1.Visible = false;
     }
     //恢复查询关键字
     txtActive.Value     = active;     //活动主题
     txtActiveDate.Value = activeDate; //活动时间
 }
예제 #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadVisitors1.CurrentPageIframeId = Utils.GetQueryStringValue("iframeId");// Request.QueryString["iframeId"];
            if (!IsPostBack)
            {
                #region 获取客户单位的责任销售
                if (Utils.GetQueryStringValue("act") == "getSeller")
                {
                    Response.Clear();
                    int comId = Utils.GetInt(Utils.GetQueryStringValue("comId"));
                    EyouSoft.BLL.CompanyStructure.Customer       custBll  = new EyouSoft.BLL.CompanyStructure.Customer();
                    EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = custBll.GetCustomerModel(comId);
                    if (cusModel != null)
                    {
                        string        saler         = cusModel.Saler == null || cusModel.Saler == "" ? "暂无销售" : cusModel.Saler;
                        StringBuilder jsonNameAndId = new StringBuilder();
                        string        userList      = "";
                        jsonNameAndId.Append("[");
                        foreach (var vc in cusModel.CustomerContactList)
                        {
                            jsonNameAndId.Append("{\"Name\":\"" + vc.Name + "\",\"ID\":" + vc.ID + "},");
                        }
                        userList  = jsonNameAndId.ToString().TrimEnd(',');
                        userList += "]";
                        Response.Write("[{\"saler\":\"" + saler + "\",cusList:" + userList + ",\"CommissionType\":\"" + ((int)cusModel.CommissionType).ToString() + "\",CommissionCount:" + Utils.FilterEndOfTheZeroDecimal(cusModel.CommissionCount) + "}]");
                    }
                    Response.End();
                }


                #endregion

                BindXlInfo();
                BindPireList();
                strTraffic = GetSelectTraffic(-1);
                #region                                                                                                          //配置留位时间读取

                EyouSoft.BLL.CompanyStructure.CompanySetting        setBll = new EyouSoft.BLL.CompanyStructure.CompanySetting(); //初始化bll
                EyouSoft.Model.CompanyStructure.CompanyFieldSetting set    = null;                                               //配置实体
                set = setBll.GetSetting(CurrentUserCompanyID);
                txtEndTime.Attributes["onfocus"] = "WdatePicker({errDealMode:1,minDate:'" + DateTime.Now.ToString() + "',maxDate:'" + DateTime.Now.AddMinutes(set.ReservationTime).ToString() + "',dateFmt:'yyyy/MM/dd HH:mm',alwaysUseStartDate:true});";
                hd_waitTime.Value            = set.ReservationTime.ToString();
                hd_IsRequiredTraveller.Value = set.IsRequiredTraveller.ToString();
                #endregion
            }
            #region 获取关联交通成本价
            if (Utils.GetQueryStringValue("act") == "getPrice")
            {
                GetPrice();
            }
            #endregion
        }
예제 #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     csBll = new EyouSoft.BLL.CompanyStructure.CompanyUser(SiteUserInfo);
     cBll  = new EyouSoft.BLL.CompanyStructure.Customer();
     if (!IsPostBack)
     {
         cominit();//初使化修改信息
     }
     else
     {
         InitSave();
     }
 }
예제 #10
0
        void BindCusList()
        {
            string tourId  = Utils.GetQueryStringValue("tourId");
            string orderId = Utils.GetQueryStringValue("orderId");

            if (tourId != "")
            {
                EyouSoft.BLL.TourStructure.TourOrder orderbll = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo);
                if (orderId != "")
                {
                    EyouSoft.Model.TourStructure.TourOrder orderModel = orderbll.GetOrderModel(CurrentUserCompanyID, orderId);
                    if (orderModel != null)
                    {
                        txt_RouteName.Value = orderModel.RouteName;
                        int companyId = orderModel.BuyCompanyID;

                        EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(companyId);
                        if (cusModel != null)
                        {
                            txt_tel.Value      = cusModel.Phone;
                            txt_fax.Value      = cusModel.Fax;
                            txt_lxr.Value      = cusModel.ContactName;
                            txtJbr.Value       = cusModel.ContactName;
                            txt_TeamName.Value = cusModel.Name;
                            txt_jiafan.Value   = cusModel.Name;
                        }
                        txt_large.Value     = EyouSoft.Common.Function.StringValidate.ConvertNumAmtToChinese(orderModel.SumPrice);
                        txt_Price.Value     = orderModel.SumPrice.ToString("###,##0.00");
                        txt_PepoleNum.Value = orderModel.AdultNumber + "/成人数" + "+" + orderModel.ChildNumber + "/儿童数";
                        IList <EyouSoft.Model.TourStructure.TourOrderCustomer> cusList = orderModel.CustomerList.Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                        cus_list.DataSource = cusList;
                        cus_list.DataBind();
                        if (cusList.Count > 0)
                        {
                            txt_first.Value = cusList[0].ContactTel;
                        }
                    }
                }
                else
                {
                    IList <EyouSoft.Model.TourStructure.TourOrderCustomer> cusList = orderbll.GetTravellers(tourId).Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();;

                    cus_list.DataSource = cusList;
                    cus_list.DataBind();
                    if (cusList.Count > 0)
                    {
                        txt_first.Value = cusList[0].ContactTel;
                    }
                }
            }
        }
예제 #11
0
파일: SignUp.aspx.cs 프로젝트: windygu/bbl
        protected void BindAreaInfo()
        {
            //计划中心业务逻辑类
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour();
            //计划团队信息实体类
            string TourId = Utils.GetQueryStringValue("tourId");

            if (TourId != null && TourId != "")
            {
                model = (EyouSoft.Model.TourStructure.TourInfo)bll.GetTourInfo(TourId);
                if (model != null)
                {
                    this.lt_xianluName.Text = model.RouteName;
                    this.lt_teamCode.Text   = model.TourCode;
                    this.lt_startDate.Text  = model.LDate.ToShortDateString();
                    this.lt_shengyu.Text    = (model.PlanPeopleNumber - model.VirtualPeopleNumber).ToString();
                    //计调员
                    this.litCoordinatorId.Text = model.Coordinator.Name.ToString();
                    //计调员编号
                    this.hidCoordinatorId.Value = model.Coordinator.CoordinatorId.ToString();

                    #region 线路区域
                    int Areaid = model.AreaId;
                    EyouSoft.BLL.CompanyStructure.Area   AreaBll = new EyouSoft.BLL.CompanyStructure.Area();
                    EyouSoft.Model.CompanyStructure.Area Area    = new EyouSoft.Model.CompanyStructure.Area();
                    Area = AreaBll.GetModel(Areaid);

                    //计调员
                    if (Area != null)
                    {
                        this.Area.Text = Area.AreaName;
                    }
                    #endregion

                    //销售员
                    EyouSoft.Model.CompanyStructure.CustomerInfo Customer = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(SiteUserInfo.TourCompany.TourCompanyId);
                    if (Customer != null)
                    {
                        this.litseller.Text = Customer.Saler;
                    }
                }
            }
            //初始化联系人
            this.txtContactName.Text = SiteUserInfo.ContactInfo.ContactName;
            //电话
            this.txtContactPhone.Text = SiteUserInfo.ContactInfo.ContactTel;
            //手机
            this.txtContactMobile.Text = SiteUserInfo.ContactInfo.ContactMobile;
            //传真
            this.txtContactFax.Text = SiteUserInfo.ContactInfo.ContactFax;
        }
예제 #12
0
        /// <summary>
        /// 根据组团ID 获得操作员
        /// </summary>
        protected void DdlUserListInit(int selectIndex)
        {
            this.czy.Items.Clear();
            this.czy.Items.Add(new ListItem("--请选择--", "0"));
            int zId = Utils.GetInt(Utils.GetQueryStringValue("zId"));

            //if (zId != 0)
            //{
            //    EyouSoft.BLL.CompanyStructure.CompanyUser csBLL = new EyouSoft.BLL.CompanyStructure.CompanyUser();
            //    EyouSoft.Model.CompanyStructure.QueryCompanyUser QueryModel = new EyouSoft.Model.CompanyStructure.QueryCompanyUser();
            //    IList<EyouSoft.Model.CompanyStructure.CompanyUser> csList = null;
            //    QueryModel.ZuTuanCompanyId = zId;
            //    QueryModel.CompanyId = SiteUserInfo.CompanyID;
            //    csList = csBLL.GetCompanyUsers(QueryModel);
            //    if (csList != null)
            //    {
            //        for (int i = 0; i < csList.Count; i++)
            //        {
            //            ListItem item = new ListItem();
            //            item.Value = csList[i].ID.ToString();
            //            item.Text = csList[i].PersonInfo.ContactName;
            //            if (csList[i].ID == selectIndex)
            //            {
            //                item.Selected = true;
            //            }
            //            this.czy.Items.Add(item);
            //        }
            //    }
            //}

            if (zId <= 0)
            {
                return;
            }
            var items = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerContactList(zId);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    if (item == null || string.IsNullOrEmpty(item.Name))
                    {
                        continue;
                    }
                    czy.Items.Add(new ListItem(item.Name, item.ID.ToString()));
                }

                czy.SelectedValue = selectIndex.ToString();
            }
        }
예제 #13
0
        protected void rptList_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            EyouSoft.Model.CompanyStructure.CustomerMessageModel cmm = e.Item.DataItem as EyouSoft.Model.CompanyStructure.CustomerMessageModel;
            EyouSoft.Model.CompanyStructure.CustomerInfo         cci = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(cmm.MessageCompanyId);
            Literal lt_groupName = e.Item.FindControl("lt_groupName") as Literal;
            Literal lt_Contract  = e.Item.FindControl("lt_Contract") as
                                   Literal;

            if (cci != null)
            {
                lt_groupName.Text = cci.Name;
                lt_Contract.Text  = cci.Phone;
            }
        }
예제 #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //判断权限
            if (!CheckGrant(global::Common.Enum.TravelPermission.短信中心_短信中心_栏目))
            {
                Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.短信中心_短信中心_栏目, true);
                return;
            }
            #region 绑定客户列表
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            itemIndex = (pageIndex - 1) * pageSize + 1;
            //获取查询条件
            string userName    = Utils.GetQueryStringValue("username");    //姓名
            string mobile      = Utils.GetQueryStringValue("mobile");      //手机号
            string companyname = Utils.GetQueryStringValue("companyname"); //单位名称

            EyouSoft.BLL.SMSStructure.CustomerList custBll = new EyouSoft.BLL.SMSStructure.CustomerList();
            //绑定客户列表

            #endregion


            #region 导出客户Excel
            //导出Excel
            EyouSoft.BLL.CompanyStructure.Customer customerBll = new EyouSoft.BLL.CompanyStructure.Customer();//客户bll
            //查询条件实体
            EyouSoft.Model.CompanyStructure.MCustomerSeachInfo searchModel = new EyouSoft.Model.CompanyStructure.MCustomerSeachInfo();
            searchModel.ContactName  = userName;
            searchModel.Mobile       = mobile;
            searchModel.CustomerName = companyname;
            IList <EyouSoft.Model.CompanyStructure.CustomerInfo> list = customerBll.GetCustomers(SiteUserInfo.CompanyID, pageSize, pageIndex, ref recordCount, searchModel);

            if (list != null && list.Count > 0)
            {
                rptCustomer.DataSource = list;
                rptCustomer.DataBind();
                BindExportPage();
            }
            else
            {
                rptCustomer.EmptyText   = "<tr><td colspan='7' align='center'>对不起,暂无客户信息!</td></tr>";
                ExportPageInfo1.Visible = false;
            }
            #endregion

            //恢复查询条件
            txtCompanyName.Value = companyname; //单位名称
            txtMobile.Value      = mobile;      //手机号
            txtUserName.Value    = userName;    //姓名
        }
예제 #15
0
 /// <summary>
 /// 页面初始化方法
 /// </summary>
 protected void DataInit(int customerID)
 {
     EyouSoft.Model.CompanyStructure.CustomerInfo customerModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(customerID);
     if (customerModel != null)
     {
         this.lblCompanyName.Text = customerModel.Name;
         this.rptList.DataSource  = customerModel.CustomerContactList;
         this.rptList.DataBind();
     }
     else
     {
         Response.Clear();
         Response.Write("该客户信息未找到!");
         Response.End();
     }
 }
예제 #16
0
        /// <summary>
        /// 绑定操作员
        /// </summary>
        private void GroupUser()
        {
            int zId = Utils.GetInt(Utils.GetQueryStringValue("zId"));
            //string cityHtml = string.Empty;

            //EyouSoft.BLL.CompanyStructure.CompanyUser csBLL = new EyouSoft.BLL.CompanyStructure.CompanyUser();
            //EyouSoft.Model.CompanyStructure.QueryCompanyUser QueryModel = new EyouSoft.Model.CompanyStructure.QueryCompanyUser();
            //IList<EyouSoft.Model.CompanyStructure.CompanyUser> csList = null;
            //QueryModel.ZuTuanCompanyId = zId;
            //QueryModel.CompanyId = SiteUserInfo.CompanyID;
            //csList = csBLL.GetCompanyUsers(QueryModel);
            //StringBuilder strBuilder = new StringBuilder();
            //strBuilder.AppendFormat("<option value=\"0\"selected=\"selected\">--请选择--</option>");
            //if (csList != null)
            //{
            //    for (int i = 0; i < csList.Count; i++)
            //    {
            //        strBuilder.AppendFormat("<option value=\"" + csList[i].ID + "\">" + csList[i].PersonInfo.ContactName + "</option>");
            //    }
            //}

            //cityHtml = strBuilder.ToString();

            StringBuilder s = new StringBuilder();

            s.Append("<option value=\"0\"selected=\"selected\">--请选择--</option>");
            var items = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerContactList(zId);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    if (item == null || string.IsNullOrEmpty(item.Name))
                    {
                        continue;
                    }
                    s.AppendFormat("<option value=\"{0}\">{1}</option>", item.ID, item.Name);
                }
            }

            //异步执行代码返回
            Response.Clear();
            Response.Write(s.ToString());
            Response.End();
        }
예제 #17
0
파일: Default.aspx.cs 프로젝트: windygu/bbl
        /// <summary>
        /// 绑定欠款信息
        /// </summary>
        private void InitBindMsg()
        {
            EyouSoft.BLL.CompanyStructure.Customer custBll = new EyouSoft.BLL.CompanyStructure.Customer();//客户资料bll
            //已欠款金额
            decimal debtAmount = 0;
            //最高欠款金额
            decimal maxDebtAmount = 0;

            custBll.GetCustomerDebt(CurrentUserCompanyID, out debtAmount, out maxDebtAmount);
            if (debtAmount >= maxDebtAmount)
            {
                lblMsg.Text = "您已超过最高欠款额度,请结账后再继续预订,咨询电话:";
                EyouSoft.BLL.CompanyStructure.CompanyInfo   companyBll = new EyouSoft.BLL.CompanyStructure.CompanyInfo();
                EyouSoft.Model.CompanyStructure.CompanyInfo infoModel  = companyBll.GetModel(SiteUserInfo.CompanyID, SiteUserInfo.SysId);//公司信息实体

                if (infoModel != null)
                {
                    lblMsg.Text += infoModel.ContactTel.ToString();//电话
                }
            }
        }
예제 #18
0
        /// <summary>
        ///责任销售批量修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            //销售员编号
            int Sellerid = Utils.GetInt(Utils.GetFormValue(this.ddl_Oprator.UniqueID));

            if (Sellerid <= 0)
            {
                EyouSoft.Common.Function.MessageBox.ResponseScript(this, Utils.ShowMsg("请选择责任销售员!"));
                Response.Redirect("/CRM/customerinfos/CustomerList.aspx");
                return;
            }
            //销售员名字
            string SellerName = Utils.GetFormValue(this.SellerName.UniqueID);

            if (SellerName == "" && string.IsNullOrEmpty(SellerName))
            {
                EyouSoft.Common.Function.MessageBox.ResponseScript(this, Utils.ShowMsg("请选择责任销售员!"));
                Response.Redirect("/CRM/customerinfos/CustomerList.aspx");
                return;
            }
            //客户资料集合编号
            string CustomerIds = Utils.GetFormValue(this.Customerids.UniqueID);

            if (!string.IsNullOrEmpty(CustomerIds) && CustomerIds != "")
            {
                IList <string> list = CustomerIds.Split(',').ToList();
                IList <int>    ids  = null;
                if (list != null && list.Count > 0)
                {
                    ids = new List <int>();
                    for (int i = 0; i < list.Count; i++)
                    {
                        ids.Add(Convert.ToInt32(list[i].ToString()));
                    }
                }
                bool result = false;
                result = new EyouSoft.BLL.CompanyStructure.Customer().BatchSpecifiedSeller(SiteUserInfo.CompanyID, ids, Sellerid, SellerName);
                Utils.ShowAndRedirect(result ? "批量修改成功!" : "批量修改失败!", "/CRM/customerinfos/CustomerList.aspx");
            }
        }
예제 #19
0
        protected bool IsChecked1; //团队状态是4

        #region 页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            #region  拉框添加点击事件
            ddlSupperlierList.Attributes.Add("onchange", "ChecklocaCustomer(this)");
            #endregion

            #region 修改权限验证
            if (!CheckGrant(TravelPermission.单项服务_单项服务_修改服务))
            {
                Utils.ResponseNoPermit(TravelPermission.单项服务_单项服务_修改服务, true);
                return;
            }
            #endregion

            #region 配置
            EyouSoft.BLL.CompanyStructure.CompanySetting        setBll = new EyouSoft.BLL.CompanyStructure.CompanySetting(); //初始化bll
            EyouSoft.Model.CompanyStructure.CompanyFieldSetting set    = setBll.GetSetting(CurrentUserCompanyID);            //配置实体
            hd_IsRequiredTraveller.Value = set.IsRequiredTraveller.ToString();                                               //游客是否允许为空配置
            #endregion
            // 绑定项目类型
            BindPriceItem();
            if (Request.QueryString["EditId"] != null)//修改ID
            {
                EditId = Request.QueryString["EditId"];
            }

            #region 新增权限验证
            if (!CheckGrant(TravelPermission.单项服务_单项服务_新增服务))
            {
                Utils.ResponseNoPermit(TravelPermission.单项服务_单项服务_新增服务, true);
                return;
            }
            #endregion
            EyouSoft.BLL.TourStructure.TourOrder tourOrderBll = new EyouSoft.BLL.TourStructure.TourOrder(this.SiteUserInfo);

            this.txtOrderNo.Value = tourOrderBll.CreateOrderNo();


            if (!Page.IsPostBack)
            {
                #region 栏目权限验证
                if (!CheckGrant(TravelPermission.单项服务_单项服务_栏目))
                {
                    Utils.ResponseNoPermit(TravelPermission.单项服务_单项服务_栏目, true);
                    return;
                }
                #endregion

                LoadVisitors1.CurrentPageIframeId = Request.QueryString["iframeId"];

                if (EditId != "")
                {
                    EyouSoft.BLL.TourStructure.Tour tourBll = new EyouSoft.BLL.TourStructure.Tour(this.SiteUserInfo);
                    EditModel = (EyouSoft.Model.TourStructure.TourSingleInfo)tourBll.GetTourInfo(EditId);
                    if (EditModel == null)
                    {
                        Utils.ShowAndRedirect("未能找到您要修改的记录!", "/SingleServe/SingleServeList.aspx");
                    }
                    IsUpdate   = true;                                                                //确认修改操作
                    IsChecked  = ((int)EditModel.Status) == 5;                                        //判断团队状态是否核算结束
                    IsChecked1 = ((int)EditModel.Status) == 4;                                        //判断团队状态是否是财务核算
                    #region 初始化表单值
                    txtContactName.Value      = EditModel.ContacterName;                              //联系人
                    txtCustomerCompany.Value  = EditModel.BuyerCName;                                 //客户单位名称
                    this.TxtStartTime.Value   = EditModel.LDate.ToString("yyyy-MM-dd");               //委托出团日期
                    this.txtTourCode.Value    = EditModel.TourCode;                                   //团号
                    this.hideOldTeamNum.Value = EditModel.TourCode;                                   //团号
                    hfSelectCustId.Value      = EditModel.BuyerCId.ToString();                        //客户单位编号
                    selectOperator1.OperId    = EditModel.SellerId.ToString();                        //销售员编号
                    selectOperator1.OperName  = EditModel.SellerName;                                 //销售员名称
                    txtOrderNo.Value          = EditModel.OrderCode;                                  //订单号
                    txtPersonNum.Value        = EditModel.PlanPeopleNumber.ToString();
                    txtTel.Value         = EditModel.ContacterTelephone;                              //电话
                    txtTotalIncome.Value = Utils.FilterEndOfTheZeroDecimal(EditModel.TotalAmount);    //合计收入
                    txtTotalOutlay.Value = Utils.FilterEndOfTheZeroDecimal(EditModel.TotalOutAmount); //合计支出
                    txtGrossProfit.Value = Utils.FilterEndOfTheZeroDecimal(EditModel.GrossProfit);    //毛利
                    hfOBuyerId.Value     = EditModel.BuyerCId.ToString();
                    #region 绑定游客信息
                    if (EditModel.Customers != null && EditModel.Customers.Count > 0)
                    {
                        StringBuilder VisitorBuilder = new StringBuilder();
                        VisitorBuilder.Append("[");
                        foreach (var item in EditModel.Customers)
                        {
                            VisitorBuilder.Append("[");
                            VisitorBuilder.AppendFormat("'{0}','{1}','{2}','{3}','{4}','{5}','{6}'",
                                                        item.VisitorName, (int)item.VisitorType, (int)item.CradType, item.CradNumber,
                                                        (int)item.Sex, item.ContactTel, FormatSpecialServe(item.SpecialServiceInfo), item.ID);
                            VisitorBuilder.Append("],");
                        }
                        VisitorBuilder.Append("]");
                        VisitorArr = VisitorBuilder.ToString().Substring(0, VisitorBuilder.Length - 2) + "]";
                    }
                    else
                    {
                        VisitorArr = "[]";
                    }
                    #endregion

                    #region 客户要求
                    if (EditModel.Services != null && EditModel.Services.Count > 0)
                    {
                        GuestRequestJSON = Newtonsoft.Json.JsonConvert.SerializeObject(EditModel.Services);
                    }
                    else
                    {
                        GuestRequestJSON = "{}";
                    }
                    #endregion

                    #region 供应商安排
                    if (EditModel.Plans != null && EditModel.Plans.Count > 0)
                    {
                        SupplierJSON = Newtonsoft.Json.JsonConvert.SerializeObject(EditModel.Plans);
                    }
                    #endregion

                    #region 附件信息
                    if (!string.IsNullOrEmpty(EditModel.CustomerFilePath))
                    {
                        aFile.HRef      = EditModel.CustomerFilePath;
                        aFile.Target    = "_blank";
                        hFileInfo.Value = EditModel.CustomerFilePath;
                    }
                    #endregion

                    #endregion
                }
            }

            string type = Utils.GetQueryStringValue("type");
            if (type == "getInfo")
            {
                int cid = Utils.GetInt(Utils.GetQueryStringValue("cid"));
                EyouSoft.BLL.CompanyStructure.Customer       custBll = new EyouSoft.BLL.CompanyStructure.Customer();
                EyouSoft.Model.CompanyStructure.CustomerInfo model   = custBll.GetCustomerModel(cid);
                Response.Clear();
                if (model != null)
                {
                    Response.Write(model.ContactName + "|" + model.Phone);
                }
                else
                {
                    Response.Write(" | ");
                }
                Response.End();
            }
        }
예제 #20
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        void BindXC()
        {
            tabxcquick.Visible   = false;
            tabProject.Visible   = false;
            tabProject20.Visible = false;
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明散拼计划对象
            EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)bll.GetTourInfo(Utils.GetQueryStringValue("tourId"));
            if (model != null)
            {
                #region 标准,快速 公有数据
                xcTime             = model.LDate;
                lblGoTraffic.Text  = model.LTraffic;
                lblEndTraffic.Text = model.RTraffic;
                lblTid.Text        = model.TourCode;
                #endregion
                #region 组团社联系信息
                this.lblSetMan.Text = model.BuyerCName;
                EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(model.BuyerCId);
                if (cusModel != null)
                {
                    //组团 联系人电话
                    this.lblSetPhone.Text  = cusModel.Phone;
                    this.lblSetPhone2.Text = cusModel.Phone;
                    //组团联系人Fax
                    this.lblSetFAX.Text  = cusModel.Fax;
                    this.lblSetMan.Text  = cusModel.Name;
                    this.lblSetMan2.Text = cusModel.Name;
                    this.lblSetName.Text = cusModel.ContactName;
                }
                #endregion

                #region 专线
                EyouSoft.Model.CompanyStructure.ContactPersonInfo userInfoModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserBasicInfo(model.OperatorId);
                if (userInfoModel != null)
                {
                    ////主要联系人电话
                    //this.lblGetMan.Text = userInfoModel.ContactTel;
                    ////专线FAX
                    //this.lblGetFAX.Text = userInfoModel.ContactFax;

                    EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(model.CompanyId, SiteUserInfo.SysId);
                    if (companyModel != null)
                    {
                        this.lblGetPhone.Text  = companyModel.ContactTel;
                        this.lblGetPhone2.Text = companyModel.ContactTel;
                        this.lblGetMan.Text    = companyModel.CompanyName;
                        this.lblGetMan2.Text   = companyModel.CompanyName;
                        this.lblGetName.Text   = companyModel.ContactName;
                        this.lblGetFAX.Text    = companyModel.ContactFax;
                    }
                }
                #endregion

                if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    #region 标准发布
                    if (model.TourNormalInfo != null)
                    {
                        this.lblLineName.Text   = model.RouteName == "" ? "" : model.RouteName;
                        this.lblDaySum.Text     = model.TourDays.ToString() == "" ? "0" : model.TourDays.ToString();
                        this.lblGoTraffic.Text  = model.LTraffic;
                        this.lblEndTraffic.Text = model.RTraffic;
                        this.lblManSum.Text     = model.PlanPeopleNumber.ToString();

                        if (model.TourNormalInfo.Plans != null && model.TourNormalInfo.Plans.Count > 0)
                        {
                            xc_list.DataSource = model.TourNormalInfo.Plans;
                            xc_list.DataBind();
                        }

                        lblBuHanXiangMu.Text   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                        lblZiFeiXIangMu.Text   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZiFeiXIangMu);
                        lblErTongAnPai.Text    = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ErTongAnPai);
                        lblGouWuAnPai.Text     = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.GouWuAnPai);
                        lblZhuYiShiXiang.Text  = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                        lblTotalAmount.Text    = model.TotalAmount.ToString("#0.00") + "元";
                        lblGatheringPlace.Text = model.GatheringPlace;
                        lblGatheringTime.Text  = model.GatheringTime;

                        if (model.Services != null && model.Services.Count > 0)
                        {
                            rpt_sList.DataSource = model.Services;
                            rpt_sList.DataBind();
                            sListRowsCount = model.Services.Count;
                        }

                        tabProject.Visible   = true;
                        tabProject20.Visible = true;
                    }
                    #endregion
                }
                else
                {
                    #region 快速发布
                    tabxcquick.Visible      = true;
                    this.lblLineName.Text   = model.RouteName == "" ? "" : model.RouteName;
                    this.lblDaySum.Text     = model.TourDays.ToString() == "" ? "0" : model.TourDays.ToString();
                    this.lblGoTraffic.Text  = model.LTraffic;
                    this.lblEndTraffic.Text = model.RTraffic;
                    this.lblManSum.Text     = model.PlanPeopleNumber.ToString();
                    if (model.TourQuickInfo != null)
                    {
                        lblKs.Text        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourQuickInfo.Remark);
                        lblQuickPlan.Text = model.TourQuickInfo.QuickPlan;
                    }
                    #endregion
                }
            }
            else
            {
                Response.Clear();
                Response.Write("未找到信息");
                Response.End();
            }
        }
예제 #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //判断权限
            if (!CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_客户资料_导入客户))
            {
                Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.客户关系管理_客户资料_导入客户, true);
                return;
            }
            EyouSoft.BLL.CompanyStructure.Customer custBll = new EyouSoft.BLL.CompanyStructure.Customer();//客户bll
            string method = Utils.GetFormValue("method");

            if (method == "save")
            {
                #region 导入
                bool     result      = false;
                string[] customerArr = Utils.GetFormValues("custData");//获取导入的客户
                if (customerArr != null && customerArr.Length > 0)
                {
                    IList <EyouSoft.Model.CompanyStructure.CustomerInfo> custList = new List <EyouSoft.Model.CompanyStructure.CustomerInfo>();
                    foreach (string cust in customerArr)
                    {
                        string[] custArr = cust.Split(',');//获取每个客户的信息
                        //单位名称
                        int sname = Utils.GetQueryStringValue("sname") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("sname"));
                        //许可证号
                        int slice = Utils.GetQueryStringValue("slice") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("slice"));
                        //地址
                        int sadd = Utils.GetQueryStringValue("sadd") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("sadd"));
                        //邮编
                        int scode = Utils.GetQueryStringValue("scode") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("scode"));
                        //传真
                        int sfax = Utils.GetQueryStringValue("sfax") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("sfax"));
                        //主要联系人
                        int scon = Utils.GetQueryStringValue("scon") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("scon"));
                        //电话
                        int stel = Utils.GetQueryStringValue("stel") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("stel"));
                        //手机
                        int smob = Utils.GetQueryStringValue("smob") == "-1" ? -1 : Utils.GetInt(Utils.GetQueryStringValue("smob"));

                        EyouSoft.Model.CompanyStructure.CustomerInfo custModel = new EyouSoft.Model.CompanyStructure.CustomerInfo
                        {
                            Name        = sname != -1 && custArr.Length >= sname ? custArr[sname] : "",
                            Licence     = slice != -1 && custArr.Length >= slice ? custArr[slice] : "",
                            Adress      = sadd != -1 && custArr.Length >= sadd ? custArr[sadd] : "",
                            PostalCode  = scode != -1 && custArr.Length >= scode ? custArr[scode] : "",
                            ContactName = scon != -1 && custArr.Length >= scon ? custArr[scon] : "",
                            Phone       = stel != -1 && custArr.Length >= stel ? custArr[stel] : "",
                            Mobile      = smob != -1 && custArr.Length >= smob ? custArr[smob] : "",
                            Fax         = sfax != -1 && custArr.Length >= sfax ? custArr[sfax] : "",
                            IsDelete    = false,
                            IsEnable    = true,

                            //Name = custArr[0],
                            //Licence = custArr[1],
                            //Adress = custArr[2],
                            //PostalCode = custArr[3],
                            //ContactName = custArr[5],
                            //Phone = custArr[6],
                            //Mobile = custArr[7],
                            //Fax = custArr[4],
                            //IsDelete = false,
                            //IsEnable = true,
                            CompanyId = CurrentUserCompanyID
                        };
                        custList.Add(custModel);
                    }
                    result = custBll.AddCustomerMore(custList);
                }
                Utils.ResponseMeg(result, result ? "导入成功!" : "导入失败!");
                return;

                #endregion
            }
        }
예제 #22
0
        protected bool HasPermit;//是否有权限
        protected void Page_Load(object sender, EventArgs e)
        {
            string method   = Utils.GetFormValue("hidMethod");                                             //当前操作
            int    activeId = Utils.GetInt(Utils.GetQueryStringValue("aid"));                              //活动Id

            EyouSoft.BLL.CompanyStructure.Customer custBll = new EyouSoft.BLL.CompanyStructure.Customer(); //客户bll
            EyouSoft.Model.CompanyStructure.CustomerMarketingInfo marketModel = null;                      //营销活动实体
            if (method == "save")
            {
                #region 保存
                marketModel             = new EyouSoft.Model.CompanyStructure.CustomerMarketingInfo();
                marketModel.Theme       = Utils.InputText(txtActive.Value);                                      //活动主题
                marketModel.Content     = Utils.InputText(txtActiveContant.Value);                               //活动内容
                marketModel.Time        = Utils.GetDateTime(Utils.InputText(txtActiveDate.Value), DateTime.Now); //活动时间
                marketModel.Effect      = Utils.InputText(txtActiveResult.Value);                                //活动效果
                marketModel.Sponsor     = Utils.InputText(txtActiveUser.Value);                                  //主办人
                marketModel.Participant = Utils.InputText(txtMeeter.Value);                                      //参加单位
                marketModel.State       = (byte)Utils.GetInt(Utils.InputText(selActiveState.Value));             //活动状态
                marketModel.OperatorId  = SiteUserInfo.ID;                                                       //添加人
                marketModel.CompanyId   = CurrentUserCompanyID;                                                  //公司编号
                marketModel.IssueTime   = DateTime.Now;                                                          //添加时间
                string showMess = "数据保存成功";
                bool   result   = false;
                if (activeId != 0)
                {
                    //修改
                    marketModel.Id = activeId;
                    result         = custBll.UpdateCustomerMarket(marketModel);
                }
                else
                {
                    //添加
                    result = custBll.AddCustomerMarket(marketModel);
                }
                if (!result)
                {
                    showMess = "数据保存失败!";
                }
                MessageBox.ResponseScript(this, string.Format(";alert('{0}');window.parent.location='/CRM/customerservice/MarketActive.aspx';window.parent.Boxy.getIframeDialog('{1}').hide()", showMess, Utils.GetQueryStringValue("iframeId")));
                #endregion
            }
            else
            {
                #region 初始化营销活动
                if (activeId != 0)
                {
                    marketModel = custBll.GetCustomerMarketModel(activeId);
                    //判断权限
                    if (!CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_营销活动_修改活动))
                    {
                        Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.客户关系管理_营销活动_修改活动, true);
                        return;
                    }
                    if (marketModel != null)
                    {
                        txtActive.Value        = marketModel.Theme;                       //活动主题
                        txtActiveContant.Value = marketModel.Content;                     //活动内容
                        txtActiveDate.Value    = marketModel.Time.ToString("yyyy-MM-dd"); //活动时间
                        txtActiveResult.Value  = marketModel.Effect;                      //活动效果
                        txtActiveUser.Value    = marketModel.Sponsor;                     //主办人
                        txtMeeter.Value        = marketModel.Participant;                 //参加单位
                        selActiveState.Value   = marketModel.State.ToString();            //活动状态
                    }
                }
                else
                {
                    if (!CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_营销活动_新增活动))
                    {
                        Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.客户关系管理_营销活动_新增活动, true);
                        return;
                    }
                }
                #endregion
            }
        }
예제 #23
0
        /// <summary>
        /// 初始化方法
        /// </summary>
        void BindXC()
        {
            string tourId = Utils.GetQueryStringValue("tourId");

            if (tourId == "")
            {
                Response.Write("未找到信息!");
                return;
            }

            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            //声明散拼计划对象
            EyouSoft.Model.TourStructure.TourInfo model = (EyouSoft.Model.TourStructure.TourInfo)bll.GetTourInfo(tourId);
            if (model != null)
            {
                //设置出团时间
                xcTime = model.LDate;
                //发送专线
                this.txtFromCompany.Text = SiteUserInfo.CompanyName;
                this.txtCompany.Text     = SiteUserInfo.CompanyName;
                if (SiteUserInfo.ContactInfo != null)
                {
                    //联系人姓名
                    this.txtFromName.Text = SiteUserInfo.ContactInfo.ContactName;
                    //联系人传真
                    this.txtFromFax.Text = SiteUserInfo.ContactInfo.ContactFax;
                    //联系人电话
                    this.txtFromTel.Text    = SiteUserInfo.ContactInfo.ContactTel;
                    this.txtContactTel.Text = SiteUserInfo.ContactInfo.ContactTel;
                }

                //线路名称
                this.txtAreaName.Text = model.RouteName;
                //天数
                this.txtDayCount.Text = model.TourDays.ToString();
                //出发交通
                this.txtLTraffic.Text = model.LTraffic;
                //返程交通
                this.txtRTraffic.Text = model.RTraffic;
                //人数
                //this.txtPeopleCount.Text = model.PlanPeopleNumber.ToString();
                //设置游客信息
                IList <EyouSoft.Model.TourStructure.TourOrderCustomer> customerList = new EyouSoft.BLL.TourStructure.TourOrder().GetTravellers(tourId).Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                ;
                if (customerList != null && customerList.Count > 0)
                {
                    visitorRowsCount = customerList.Count;
                    //绑定旅客列表
                    this.rptCustomerList.DataSource = customerList;
                    this.rptCustomerList.DataBind();
                }
                //获取订单信息
                EyouSoft.Model.TourStructure.TourOrder orderModel = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderModel(SiteUserInfo.CompanyID, Utils.GetQueryStringValue("orderId"));
                int buyCompanyID = orderModel.BuyCompanyID;
                #region 接收方信息
                EyouSoft.Model.CompanyStructure.CustomerInfo cModel = new EyouSoft.Model.CompanyStructure.CustomerInfo();
                EyouSoft.BLL.CompanyStructure.Customer       cBLL   = new EyouSoft.BLL.CompanyStructure.Customer();
                cModel            = cBLL.GetCustomerModel(buyCompanyID);
                txtToCompany.Text = cModel.Name;
                txtToName.Text    = cModel.ContactName;
                txtToFax.Text     = cModel.Fax;
                txtToTel.Text     = cModel.Phone;
                #endregion
                //标准版
                if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    //隐藏快速版行程安排
                    this.tblXCFast.Visible = false;
                    //隐藏快速版服务标准
                    this.tblFastService.Visible = false;

                    if (model.SentPeoples != null && model.SentPeoples.Count > 0)
                    {
                        //送团人信息
                        for (int i = 0; i < model.SentPeoples.Count; i++)
                        {
                            EyouSoft.Model.CompanyStructure.CompanyUser SendUserInfo = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserInfo(model.SentPeoples[i].OperatorId);
                            if (SendUserInfo != null)
                            {
                                //送团人
                                this.txtSendMan.Text += SendUserInfo.PersonInfo.ContactName == null ? "" : SendUserInfo.PersonInfo.ContactName + ",";
                                //送团电话
                                this.txtSendTel.Text += SendUserInfo.PersonInfo == null ? "" : SendUserInfo.PersonInfo.ContactTel + ",";
                            }
                        }
                        this.txtSendMan.Text = this.txtSendMan.Text.TrimEnd(',');
                        this.txtSendTel.Text = this.txtSendTel.Text.TrimEnd(',');
                    }
                    if (model.TourNormalInfo != null)
                    {
                        //行程安排
                        this.xc_list.DataSource = model.TourNormalInfo.Plans;
                        this.xc_list.DataBind();
                        //包含项目
                        this.rptProject.DataSource = model.TourNormalInfo.Services;
                        this.rptProject.DataBind();
                        //不包含项目
                        this.lblNoPriject.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                        //儿童安排
                        this.lblChildren.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ErTongAnPai);

                        //购物安排
                        this.lblShop.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.GouWuAnPai);
                        //赠送项目
                        this.lblZiFei.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZiFeiXIangMu);
                        //注意事项
                        this.lblZhuyi.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                        //温馨提醒
                        this.lblTiXing.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.WenXinTiXing);
                    }
                    //获得报价说明
                    if (Utils.GetQueryStringValue("orderId") != "")
                    {
                        //EyouSoft.Model.TourStructure.TourOrder orderModel = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderModel(SiteUserInfo.CompanyID, Utils.GetQueryStringValue("orderId"));
                        if (orderModel != null)
                        {
                            //成人价格
                            this.lblManPrice.Text = EyouSoft.Common.Utils.FilterEndOfTheZeroString(orderModel.PersonalPrice.ToString("0.00"));
                            //成人数
                            this.lblManCount.Text = orderModel.AdultNumber.ToString();
                            //儿童价格
                            this.lblChildPrice.Text = EyouSoft.Common.Utils.FilterEndOfTheZeroString(orderModel.ChildPrice.ToString("0.00"));
                            //儿童数
                            this.lblChildCount.Text  = orderModel.ChildNumber.ToString();
                            this.txtPeopleCount.Text = (orderModel.AdultNumber + orderModel.ChildNumber).ToString();
                            //总价格
                            this.lblAllPrice.Text = EyouSoft.Common.Utils.FilterEndOfTheZeroString(orderModel.SumPrice.ToString("0.00"));
                        }
                        else
                        {
                            //成人价格
                            this.lblManPrice.Text = "0";
                            //成人数
                            this.lblManCount.Text = "0";
                            //儿童价格
                            this.lblChildPrice.Text = "0";
                            //儿童数
                            this.lblChildCount.Text = "0";
                            //总价格
                            this.lblAllPrice.Text = "0";
                        }
                    }
                    else
                    {
                        //成人价格
                        this.lblManPrice.Text = "0";
                        //成人数
                        this.lblManCount.Text = "0";
                        //儿童价格
                        this.lblChildPrice.Text = "0";
                        //儿童数
                        this.lblChildCount.Text = "0";
                        //总价格
                        this.lblAllPrice.Text = "0";
                    }
                }
                //快速版
                else
                {
                    this.txtPeopleCount.Text = (orderModel.AdultNumber + orderModel.ChildNumber).ToString();
                    //隐藏标准版 行程安排
                    this.tblXingCheng.Visible = false;
                    //隐藏标准版 服务
                    this.tblNoService.Visible = false;
                    if (model.TourQuickInfo != null)
                    {
                        //设置行程安排
                        this.lclXingCheng.Text = model.TourQuickInfo.QuickPlan;
                        //设置服务标准
                        this.lclService.Text = model.TourQuickInfo.Service;
                    }
                }
            }


            EyouSoft.Model.CompanyStructure.CompanyInfo infoModel = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(SiteUserInfo.CompanyID, SiteUserInfo.SysId);
            if (infoModel != null)
            {
                EyouSoft.Model.CompanyStructure.CompanyAccount account = null;//公司账户
                if (infoModel.CompanyAccountList != null && infoModel.CompanyAccountList.Count > 0)
                {
                    account = infoModel.CompanyAccountList[0];

                    this.lblCompanyName.Text  = SiteUserInfo.CompanyName;
                    this.lblBankName.Text     = account.BankName;
                    this.lblBankNum.Text      = account.BankNo;
                    this.lblBankUserName.Text = account.AccountName;
                }
            }
        }
예제 #24
0
파일: Reg.aspx.cs 프로젝트: windygu/bbl
        /// <summary>
        /// 注册用户
        /// </summary>
        protected void lkBtnSave_Click(object sender, EventArgs e)
        {
            #region 验证
            if (string.IsNullOrEmpty(Utils.GetFormValue(this.txtProvince.UniqueID)))
            {
                Response.Write("<script>alert('请选择省份!');location.href=location.href</script>");
                return;
            }

            if (string.IsNullOrEmpty(Utils.GetFormValue("txtCity")))
            {
                Response.Write("<script>alert('请选择城市!');location.href=location.href</script>");
                return;
            }

            if (string.IsNullOrEmpty(this.txtCompanyName.Text.Trim()))
            {
                Response.Write("<script>alert('请请输入单位名称!');location.href=location.href</script>");
                return;
            }
            if (string.IsNullOrEmpty(this.txtUserName.Text.Trim()))
            {
                Response.Write("<script>alert('请输入用户名!');location.href=location.href</script>");
                return;
            }
            if (string.IsNullOrEmpty(this.txtUserPwd.Text.Trim()))
            {
                Response.Write("<script>alert('请输入密码!');location.href=location.href</script>");
                return;
            }
            #endregion

            //声明新的对象
            EyouSoft.Model.CompanyStructure.CustomerInfo custModel = new EyouSoft.Model.CompanyStructure.CustomerInfo();
            //联系人集合
            IList <EyouSoft.Model.CompanyStructure.CustomerContactInfo> list = new List <EyouSoft.Model.CompanyStructure.CustomerContactInfo>();
            //声明联系人
            EyouSoft.Model.CompanyStructure.CustomerContactInfo custInfo = new EyouSoft.Model.CompanyStructure.CustomerContactInfo();
            //联系人账户信息赋值
            custInfo.UserAccount           = new EyouSoft.Model.CompanyStructure.UserAccount();
            custInfo.UserAccount.CompanyId = Master.CompanyId;
            custInfo.UserAccount.UserName  = txtUserName.Text;
            custInfo.Sex = "0";
            custInfo.UserAccount.PassWordInfo = new EyouSoft.Model.CompanyStructure.PassWord {
                NoEncryptPassword = txtUserPwd.Text
            };
            list.Add(custInfo);

            #region Model赋值
            custModel.Name                = this.txtCompanyName.Text.Trim();                             //单位名称
            custModel.Licence             = this.txtLicense.Text.Trim();                                 //许可证号
            custModel.Adress              = this.txtAddress.Text.Trim();                                 //地址
            custModel.PostalCode          = this.txtPostalCode.Text.Trim();                              //邮编
            custModel.ContactName         = this.txtContact.Text.Trim();                                 //主要联系人
            custModel.Phone               = this.txtTel.Text.Trim();                                     //电话
            custModel.Mobile              = this.txtPhone.Text;                                          //手机
            custModel.Fax                 = this.txtFax.Text.Trim();                                     //传真
            custModel.ProviceId           = Utils.GetInt(Utils.GetFormValue(this.txtProvince.UniqueID)); //省份ID
            custModel.CityId              = Utils.GetInt(Utils.GetFormValue("txtCity"));                 //城市ID
            custModel.CustomerContactList = list;
            custModel.CompanyId           = Master.CompanyId;                                            //所属公司
            custModel.IssueTime           = DateTime.Now;

            custModel.IsEnable = false;
            custModel.IsDelete = false;
            #endregion

            int count = new EyouSoft.BLL.CompanyStructure.Customer().AddCustomer(custModel);
            if (count > 0)
            {
                Response.Write("<script>alert('注册成功');location.href=location.href;</script>");
            }
            else
            {
                Response.Write("<script>alert('注册失败');location.href=location.href;</script>");
            }
        }
예제 #25
0
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            LinkButton btn = sender as LinkButton;

            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            model = (EyouSoft.Model.TourStructure.TourInfo)bll.GetTourInfo(Request.QueryString["tourId"]);

            if (model != null)
            {
                if (!Utils.PlanIsUpdateOrDelete(model.Status.ToString()))
                {
                    Response.Write("<script>alert('该团已提交财务,不能对它操作!');location.href=location.href;</script>");
                    return;
                }
            }
            //结算标准
            string  jsbj      = Request.Form["radio"];
            int     cr_num    = Utils.GetInt(txt_crNum.Value);
            int     et_num    = Utils.GetInt(txt_rtNum.Value);
            decimal sum_money = Utils.GetDecimal(txt_sumMoney.Value);
            string  special   = txt_Special.Value;

            //散拼信息
            //EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour();
            //model = (EyouSoft.Model.TourStructure.TourInfo)bll.GetTourInfo(Request.QueryString["tourId"]);

            //model.PriceStandards

            EyouSoft.BLL.TourStructure.TourOrder   orderbll   = new EyouSoft.BLL.TourStructure.TourOrder();
            EyouSoft.Model.TourStructure.TourOrder ordermodel = new EyouSoft.Model.TourStructure.TourOrder();
            int crNum = Utils.GetInt(txt_crNum.Value);

            if (crNum == 0)
            {
                EyouSoft.Common.Function.MessageBox.Show(this.Page, "请填写成人数!");
                BindXlInfo();
                BindPireList();
                return;
            }
            ordermodel.AdultNumber = crNum;
            ordermodel.AreaId      = model.AreaId;
            int teamId = Utils.GetInt(Utils.GetFormValue("hd_teamId"));

            if (teamId == 0)
            {
                EyouSoft.Common.Function.MessageBox.Show(this.Page, "请选择组团社!");
                BindXlInfo();
                BindPireList();
                return;
                //Response.Write("<script>alert('请选择组团社');location.href=location.href;</script>");
            }

            ordermodel.BuyCompanyID   = teamId;
            ordermodel.BuyCompanyName = Utils.GetFormValue("txt_teamName");

            ordermodel.ChildNumber = Utils.GetInt(txt_rtNum.Value);
            ordermodel.ChildPrice  = Utils.GetDecimal(Utils.GetFormValue("hd_rt_price"));
            int cusLevel = Utils.GetInt(Utils.GetFormValue("hd_cuslevel"));

            if (cusLevel == 0)
            {
                EyouSoft.Common.Function.MessageBox.Show(this.Page, "请选择客户等级!");
                BindXlInfo();
                BindPireList();
                return;
            }
            ordermodel.CustomerLevId = cusLevel;
            IList <EyouSoft.Model.TourStructure.TourOrderCustomer> cus_list = new List <EyouSoft.Model.TourStructure.TourOrderCustomer>();

            string[] cus_arr    = Utils.GetFormValues("txtVisitorName");
            string[] uri        = Utils.GetFormValues("tefu");
            string[] cradType   = Utils.GetFormValues("ddlCardType");
            decimal  orderprice = 0;

            for (int k = 0; k < cus_arr.Length; k++)
            {
                if (cus_arr[k] == "")
                {
                    break;
                }
                EyouSoft.Model.TourStructure.TourOrderCustomer item = new EyouSoft.Model.TourStructure.TourOrderCustomer();
                item.VisitorName = cus_arr[k];
                item.VisitorType = Utils.GetFormValues("ddlVisitorType")[k] == "1" ? EyouSoft.Model.EnumType.TourStructure.VisitorType.成人 : EyouSoft.Model.EnumType.TourStructure.VisitorType.儿童;
                //switch (Utils.GetFormValues("ddlCardType")[k])
                //{
                //    case "1":
                //        {
                //            item.CradType = EyouSoft.Model.EnumType.TourStructure.CradType.身份证;
                //        } break;
                //    case "2":
                //        {
                //            item.CradType = EyouSoft.Model.EnumType.TourStructure.CradType.护照;
                //        } break;
                //    case "3":
                //        {
                //            item.CradType = EyouSoft.Model.EnumType.TourStructure.CradType.军官证;
                //        } break;
                //    case "4":
                //        {
                //            item.CradType = EyouSoft.Model.EnumType.TourStructure.CradType.台胞证;
                //        } break;
                //    case "5":
                //        {
                //            item.CradType = EyouSoft.Model.EnumType.TourStructure.CradType.港澳通行证;
                //        } break;
                //    default:
                //        {
                //            item.CradType = EyouSoft.Model.EnumType.TourStructure.CradType.未知;
                //        } break;
                //}
                item.CradType   = (EyouSoft.Model.EnumType.TourStructure.CradType)Utils.GetInt(cradType[k]);
                item.CradNumber = Utils.GetFormValues("txtCardNo")[k];
                switch (Utils.GetFormValues("ddlSex")[k])
                {
                case "2":
                {
                    item.Sex = EyouSoft.Model.EnumType.CompanyStructure.Sex.男;
                } break;

                case "1":
                {
                    item.Sex = EyouSoft.Model.EnumType.CompanyStructure.Sex.女;
                } break;

                default:
                {
                    item.Sex = EyouSoft.Model.EnumType.CompanyStructure.Sex.未知;
                } break;
                }
                item.ContactTel = Utils.GetFormValues("txtContactTel")[k];
                EyouSoft.Model.TourStructure.CustomerSpecialService css = new EyouSoft.Model.TourStructure.CustomerSpecialService();

                css.Fee                 = Utils.GetDecimal(Utils.GetFromQueryStringByKey(uri[k], "txtCost"));
                css.IsAdd               = Utils.GetFromQueryStringByKey(uri[k], "ddlOperate") == "0" ? true : false;
                css.IssueTime           = DateTime.Now;
                css.ProjectName         = Utils.GetFromQueryStringByKey(uri[k], "txtItem");
                css.ServiceDetail       = Utils.GetFromQueryStringByKey(uri[k], "txtServiceContent");
                item.SpecialServiceInfo = css;
                item.IssueTime          = DateTime.Now;
                item.CompanyID          = CurrentUserCompanyID;
                cus_list.Add(item);
                orderprice += Utils.GetDecimal(Utils.GetFromQueryStringByKey(uri[k], "txtCost"));
            }
            ordermodel.IssueTime       = DateTime.Now;
            ordermodel.OperatorContent = Utils.GetFormValue("txt_actMsg");
            ordermodel.SpecialContent  = Utils.GetFormValue("txt_Special");
            ordermodel.CustomerList    = cus_list;
            ordermodel.LastDate        = DateTime.Now;
            ordermodel.LeaveDate       = model.LDate;
            ordermodel.PriceStandId    = Utils.GetInt(Utils.GetFormValue("hd_level"));

            ordermodel.PersonalPrice   = Utils.GetDecimal(Utils.GetFormValue("hd_cr_price"));
            ordermodel.ChildPrice      = Utils.GetDecimal(Utils.GetFormValue("hd_rt_price"));
            ordermodel.ID              = Guid.NewGuid().ToString();
            ordermodel.CustomerList    = cus_list;
            ordermodel.TourId          = model.TourId;
            ordermodel.OrderType       = EyouSoft.Model.EnumType.TourStructure.OrderType.代客预定;
            ordermodel.SellCompanyId   = CurrentUserCompanyID;
            ordermodel.SellCompanyName = SiteUserInfo.CompanyName;
            ordermodel.ViewOperatorId  = SiteUserInfo.ID;
            ordermodel.TourNo          = model.TourCode;
            ordermodel.Tourdays        = model.TourDays;
            ordermodel.TourClassId     = EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划;
            ordermodel.OperatorID      = SiteUserInfo.ID;
            ordermodel.OperatorName    = SiteUserInfo.ContactInfo.ContactName;
            ordermodel.OrderState      = EyouSoft.Model.EnumType.TourStructure.OrderState.未处理;
            ordermodel.OtherPrice      = orderprice;
            ordermodel.RouteId         = model.RouteId;
            ordermodel.RouteName       = model.RouteName;
            ordermodel.SumPrice        = Utils.GetDecimal(Utils.GetFormValue(txt_sumMoney.UniqueID)) + orderprice;
            ordermodel.PeopleNumber    = Utils.GetInt(Utils.GetFormValue("txt_crNum")) + Utils.GetInt(Utils.GetFormValue("txt_rtNum"));
            ordermodel.ContactTel      = lt_phone.Text;
            ordermodel.ContactName     = lb_username.Text;
            ordermodel.ContactMobile   = lt_tel.Text;
            ordermodel.LeaveTraffic    = lt_startBus.Text;
            ordermodel.ReturnTraffic   = lt_backBus.Text;
            ordermodel.ContactFax      = lt_fax.Text;
            EyouSoft.BLL.CompanyStructure.Customer               csbll    = new EyouSoft.BLL.CompanyStructure.Customer();
            EyouSoft.Model.CompanyStructure.CustomerInfo         cusmodel = csbll.GetCustomerModel(Utils.GetInt(Utils.GetFormValue("hd_teamId"))); //
            EyouSoft.Model.TourStructure.TourOrderAmountPlusInfo am       = new EyouSoft.Model.TourStructure.TourOrderAmountPlusInfo();
            am.AddAmount          = Utils.GetDecimal(Utils.GetFormValue("txt_addmoney"));                                                          //增加费用
            am.ReduceAmount       = Utils.GetDecimal(Utils.GetFormValue("txt_minusmoney"));                                                        //减少费用
            am.Remark             = Utils.GetFormValue("txt_remark");                                                                              //备注
            ordermodel.AmountPlus = am;
            if (cusmodel != null)
            {
                ordermodel.SalerId   = cusmodel.SaleId;
                ordermodel.SalerName = cusmodel.Saler;
            }

            #region 返佣和对方操作员
            ordermodel.BuyerContactId   = Utils.GetInt(Utils.GetFormValue("otherOprator"));
            ordermodel.BuyerContactName = Utils.InputText(Utils.GetFormValue("hd_orderOprator"));
            ordermodel.CommissionType   = (EyouSoft.Model.EnumType.CompanyStructure.CommissionType)Utils.GetInt(Utils.GetFormValue("hd_rebateType"));
            ordermodel.CommissionPrice  = Utils.GetDecimal(Utils.GetFormValue("txt_Rebate"));
            #endregion

            switch (btn.CommandName)
            {
            ///提交
            case "submit":
            {
                ordermodel.SaveSeatDate = DateTime.Now;
                ordermodel.OrderState   = EyouSoft.Model.EnumType.TourStructure.OrderState.未处理;
            } break;

            case "Reservations":
            {
                ordermodel.OrderState   = EyouSoft.Model.EnumType.TourStructure.OrderState.已留位;
                ordermodel.SaveSeatDate = Utils.GetDateTime(txtEndTime.Text, DateTime.Now);
            } break;        //留位
            }
            string fileAtt    = "";
            string oldfileAtt = "";

            if (EyouSoft.Common.Function.UploadFile.FileUpLoad(Request.Files[0], "VisitorInfoFile", out fileAtt, out oldfileAtt))
            {
                ordermodel.CustomerFilePath = fileAtt;
            }
            else
            {
                EyouSoft.Common.Function.MessageBox.Show(this.Page, "上传附件失败!");
                return;
            }

            ordermodel.BuyerTourCode  = Utils.GetFormValue(txtBuyerTourCode.ClientID);
            ordermodel.OrderTrafficId = Utils.GetInt(Utils.GetFormValue("selectTraffic"));

            /// 0:失败;
            /// 1:成功;
            /// 2:该团队的订单总人数+当前订单人数大于团队计划人数总和;
            /// 3:该客户所欠金额大于最高欠款金额;
            int i = orderbll.AddOrder(ordermodel);
            switch (i)
            {
            case 1:
            {
                Response.Write("<script>alert('提交成功');parent.Boxy.getIframeDialog('" + Request.QueryString["iframeid"] + "').hide();parent.location.href=parent.location.href;</script>");
            } break;

            case 2: { Response.Write("<script>alert('该团队的订单总人数+当前订单人数大于团队计划人数总和');location.href=location.href;</script>"); } break;

            case 3: { Response.Write("<script>alert('该客户所欠金额大于最高欠款金额');location.href=location.href;</script>"); } break;

            case 4:
            {
                Response.Write("<script>alert('订单人数加上交通出团日期当天已使用票数大于交通出团日期当天人数,添加失败!');location.href=location.href;</script>");
                break;
            }

            default: { Response.Write("<script>alert('添加失败!');location.href=location.href;</script>"); } break;
            }
        }
예제 #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //判断权限
            if (!CheckGrant(global::Common.Enum.TravelPermission.客户关系管理_质量管理_新增回访))
            {
                Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.客户关系管理_质量管理_新增回访, true);
                return;
            }
            string method = Utils.GetFormValue("hidMethod");//操作

            ucPeople1.IsVisist = true;
            ucPeople1.isRequiredVisiterName = true;
            ucPeople1.VisiterName           = SiteUserInfo.ContactInfo.ContactName;
            if (method == "save")
            {
                #region 添加客户回访
                string showMess = "数据保存成功!";
                bool   result   = false;
                EyouSoft.BLL.CompanyStructure.Customer custBll = new EyouSoft.BLL.CompanyStructure.Customer();
                EyouSoft.Model.CompanyStructure.CustomerCallBackInfo custVisistModel = new EyouSoft.Model.CompanyStructure.CustomerCallBackInfo();

                List <EyouSoft.Model.CompanyStructure.CustomerCallBackResultInfo> resultList = new List <EyouSoft.Model.CompanyStructure.CustomerCallBackResultInfo>();
                EyouSoft.Model.CompanyStructure.CustomerCallBackResultInfo        infoModel  = new EyouSoft.Model.CompanyStructure.CustomerCallBackResultInfo
                {
                    Car           = (byte)ucContent1.LevelCar,
                    DepartureTime = ucContent1.LeaveDate,
                    Guide         = (byte)ucContent1.LevelGuideService,
                    Hotel         = (byte)ucContent1.LevelHotelCondition,
                    Journey       = (byte)ucContent1.LevelTravel,
                    meals         = (byte)ucContent1.LevelFood,
                    RouteID       = Utils.GetInt(ucContent1.RouteId),
                    RouteName     = ucContent1.RouteName,
                    Shopping      = (byte)ucContent1.LevelShopping,
                    Spot          = (byte)ucContent1.LevelLandScape,
                    Remark        = ucContent1.Remark
                };

                resultList.Add(infoModel);
                custVisistModel.CustomerCallBackResultInfoList = resultList;
                custVisistModel.Time         = ucPeople1.VisistDate;
                custVisistModel.CompanyId    = CurrentUserCompanyID;
                custVisistModel.CallBacker   = ucPeople1.VisiterName;
                custVisistModel.CustomerName = ucPeople1.ByVisisterCompany;                 //被访客户
                custVisistModel.CustomerId   = Utils.GetInt(ucPeople1.ByVisisterCompanyId); //被访客户ID
                custVisistModel.CustomerUser = ucPeople1.ByVisisterName;                    //被访人
                custVisistModel.Remark       = Utils.InputText(txtRemarkP.Value);           //备注
                custVisistModel.IsCallBack   = EyouSoft.Model.EnumType.CompanyStructure.CallBackType.回访;
                result = custBll.AddCustomerCallBack(custVisistModel);
                if (!result)
                {
                    showMess = "数据保存失败!";
                }
                if (result)
                {
                    MessageBox.ResponseScript(this, string.Format(";alert('{0}');window.parent.location='/CRM/customerservice/CustomerVisit.aspx';window.parent.Boxy.getIframeDialog('{1}').hide()", showMess, Utils.GetQueryStringValue("iframeId")));
                }
                else
                {
                    MessageBox.ShowAndRedirect(this, "数据保存失败!", this.Request.Url.ToString());
                }

                #endregion
            }
        }
예제 #27
0
        void Bind()
        {
            //声明bll对象
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            string tourId = Utils.GetQueryStringValue("tourId");

            if (tourId == "")
            {
                Response.Write("未找到信息!");
                return;
            }


            //声明团队计划对象
            EyouSoft.Model.TourStructure.TourBaseInfo basemodel = bll.GetTourInfo(tourId);
            LeaveDate        = basemodel.LDate;
            lt_LDate.Text    = basemodel.LDate.Month.ToString() + "月" + basemodel.LDate.Day.ToString() + "日" + basemodel.TourType.ToString();
            lt_TourName.Text = basemodel.RouteName;
            #region 组团端
            EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(basemodel.BuyerCId);
            if (cusModel != null)
            {
                txt_to_fax.Text  = cusModel.Fax;
                txt_to_name.Text = cusModel.Name;
                txt_to_tel.Text  = cusModel.Phone;
                txt_to_user.Text = cusModel.ContactName;
            }
            #endregion
            #region 专线
            EyouSoft.Model.CompanyStructure.ContactPersonInfo userInfoModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserBasicInfo(basemodel.OperatorId);
            if (userInfoModel != null)
            {
                //主要联系人电话
                this.txt_fr_tel.Text = userInfoModel.ContactTel;
                //专线FAX
                this.txt_fr_fax.Text = userInfoModel.ContactFax;

                EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(basemodel.CompanyId, SiteUserInfo.SysId);
                if (companyModel != null)
                {
                    this.txt_fr_user.Text = companyModel.ContactName;
                    txt_fr_name.Text      = companyModel.CompanyName;
                    txt_fr_tel.Text       = companyModel.ContactTel;
                    txt_fr_tel.Text       = companyModel.ContactFax;
                }
            }
            #endregion
            if (basemodel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                EyouSoft.Model.TourStructure.TourInfo model = (EyouSoft.Model.TourStructure.TourInfo)basemodel;
                if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    tb_normal.Visible    = true;
                    rptTravel.DataSource = model.TourNormalInfo.Plans;
                    rptTravel.DataBind();
                    rptProject.DataSource = model.TourNormalInfo.Services;
                    rptProject.DataBind();
                    div_noproject.Visible = true;
                    lblNoProject.Text     = TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                    div_notice.Visible    = true;
                    lt_notice.Text        = TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                }
                else
                {
                    tb_normal.Visible       = false;
                    tb_quick.Visible        = true;
                    tb_quickService.Visible = true;
                    lb_Quick.Text           = model.TourQuickInfo.QuickPlan;
                    lt_service.Text         = model.TourQuickInfo.Service;
                }
            }
            else
            if (basemodel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
            {
                EyouSoft.Model.TourStructure.TourTeamInfo model = (EyouSoft.Model.TourStructure.TourTeamInfo)basemodel;
                if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                {
                    tb_normal.Visible = true;
                    if (model.TourNormalInfo != null)
                    {
                        rptTravel.DataSource = model.TourNormalInfo.Plans;
                        rptTravel.DataBind();
                        rptProject.DataSource = model.Services;
                        rptProject.DataBind();
                        div_noproject.Visible = true;
                        lblNoProject.Text     = TextToHtml(model.TourNormalInfo.BuHanXiangMu);
                        div_notice.Visible    = true;
                        lt_notice.Text        = TextToHtml(model.TourNormalInfo.ZhuYiShiXiang);
                    }
                }
                else
                {
                    if (model.TourQuickInfo != null)
                    {
                        tb_normal.Visible       = false;
                        tb_quick.Visible        = true;
                        tb_quickService.Visible = true;
                        lb_Quick.Text           = model.TourQuickInfo.QuickPlan;
                        lt_service.Text         = model.TourQuickInfo.Service;
                    }
                }

                /*#region 结算价
                 * TourQuotePrint priantTQP = new TourQuotePrint();
                 * string number = string.Empty;
                 * string money = string.Empty;
                 * priantTQP.getPepoleNum(SiteUserInfo.CompanyID,model.PlanPeopleNumber, model.TourTeamUnit, ref number, ref money);
                 * this.txt_Money.Text = money;
                 #endregion*/
            }
            else if (basemodel.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.单项服务)
            {
                p_title.Visible   = false;
                d_title.Visible   = false;
                Title             = "单项服务确认单";
                tb_single.Visible = true;
                tb_normal.Visible = false;
                EyouSoft.Model.TourStructure.TourSingleInfo model = (EyouSoft.Model.TourStructure.TourSingleInfo)basemodel;
                rpt_single.DataSource = model.Plans;
                rpt_single.DataBind();
                txt_Money.Text = model.TotalAmount.ToString("#,##0.00");
            }


            if (basemodel.TourType != EyouSoft.Model.EnumType.TourStructure.TourType.单项服务)
            {
                phJieSuanJiaGe.Visible = true;
                EyouSoft.BLL.PlanStruture.TravelAgency planbll = new EyouSoft.BLL.PlanStruture.TravelAgency();
                IList <EyouSoft.Model.PlanStructure.LocalTravelAgencyInfo> agencys = planbll.GetList(tourId);
                planbll = null;

                if (agencys != null && agencys.Count > 0)
                {
                    System.Text.StringBuilder s = new System.Text.StringBuilder();

                    foreach (var agency in agencys)
                    {
                        s.AppendFormat("单位名称:{0} 结算费用:{1}    ", agency.LocalTravelAgency, Utils.FilterEndOfTheZeroDecimal(agency.Settlement));
                    }

                    txt_Money.Text = s.ToString();
                }
            }
        }
예제 #28
0
        protected void GetSingleServer(string Tourid, string planId)
        {
            EyouSoft.BLL.TourStructure.Tour             tourBll   = new EyouSoft.BLL.TourStructure.Tour(this.SiteUserInfo);
            EyouSoft.Model.TourStructure.TourSingleInfo EditModel = null;
            EditModel = (EyouSoft.Model.TourStructure.TourSingleInfo)tourBll.GetTourInfo(Tourid);
            if (EditModel != null)
            {
                //计划人数
                this.PelpeoNumber.Value = EditModel.PlanPeopleNumber.ToString();
                //确认时间
                this.ConfirmDate.Value = System.DateTime.Now.ToString("yyyy-MM-dd");
                //供应商信息集合
                IList <EyouSoft.Model.TourStructure.PlanSingleInfo> planlist = EditModel.Plans;

                if (planId != "")
                {
                    EyouSoft.Model.TourStructure.PlanSingleInfo singleModel = new EyouSoft.BLL.TourStructure.Tour().GetSinglePlanInfo(planId);
                    if (singleModel != null)
                    {
                        //获取供应商信息--供应商名称
                        this.txtTo.Value = singleModel.SupplierName;
                        //获取供应商信息--供应商Id
                        int supplierid = singleModel.SupplierId;
                        //实例化供应商基础信息BLL
                        EyouSoft.BLL.CompanyStructure.SupplierBaseHandle csBLL = new EyouSoft.BLL.CompanyStructure.SupplierBaseHandle();
                        //实例化供应商基础信息Model
                        EyouSoft.Model.CompanyStructure.SupplierBasic model = new EyouSoft.Model.CompanyStructure.SupplierBasic();
                        //根据供应商基础信息ID获取供应商实体
                        model = csBLL.GetSupplierBase(supplierid);
                        //供应商基础信息不为空并且联系人不为空
                        if (model != null && model.SupplierContact != null)
                        {
                            //供应商 联系人电话
                            this.txtTel.Value = model.SupplierContact[0].ContactTel;
                            //供应商联系人Fax
                            this.txtFax.Value = model.SupplierContact[0].ContactFax;
                        }


                        this.lblServiceType.Text  = "<strong>服务类别:</strong>" + singleModel.ServiceType.ToString();
                        this.lblSupplierName.Text = "<strong>供应商:</strong>" + singleModel.SupplierName;
                        this.lblArrange.Text      = "<strong>具体安排:</strong>" + singleModel.Arrange;
                    }
                    else
                    {
                        this.pnlIsShow.Visible       = false;
                        this.Repeaterlist.DataSource = planlist;
                        this.Repeaterlist.DataBind();
                    }
                }
                else
                {
                    //客户单位名称
                    this.txtTo.Value = EditModel.BuyerCName;
                    EyouSoft.Model.CompanyStructure.CustomerInfo cusModel = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(EditModel.BuyerCId);
                    if (cusModel != null)
                    {
                        //组团 联系人电话
                        this.txtTel.Value = cusModel.Phone;
                        //组团联系人Fax
                        this.txtFax.Value = cusModel.Fax;
                    }
                    this.pnlIsShow.Visible       = false;
                    this.Repeaterlist.DataSource = planlist;
                    this.Repeaterlist.DataBind();
                }



                #region 专线
                EyouSoft.Model.CompanyStructure.ContactPersonInfo userInfoModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserBasicInfo(EditModel.OperatorId);
                if (userInfoModel != null)
                {
                    //主要联系人电话
                    this.txtTelS.Value = userInfoModel.ContactTel;
                    //专线FAX
                    this.txtFaxS.Value = userInfoModel.ContactFax;

                    EyouSoft.Model.CompanyStructure.CompanyInfo companyModel = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(EditModel.CompanyId, SiteUserInfo.SysId);
                    if (companyModel != null)
                    {
                        this.txtFr.Value = companyModel.CompanyName;
                    }
                }
                #endregion


                //游客信息
                IList <EyouSoft.Model.TourStructure.TourOrderCustomer> customer = EditModel.Customers.Where(x => x.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                ;
                if (customer.Count > 0 && customer != null)
                {
                    this.repCustomer.DataSource = customer;
                    this.repCustomer.DataBind();
                }
            }
        }
예제 #29
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        /// <param name="tourId"></param>
        protected void DataInit(string tourId)
        {
            EyouSoft.BLL.TourStructure.Tour           bll   = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);

            EyouSoft.Model.TourStructure.TourInfo     infoModel = null;
            EyouSoft.Model.TourStructure.TourTeamInfo teamModel = null;

            if (model != null && model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
            {
                infoModel = (EyouSoft.Model.TourStructure.TourInfo)model;
                if (infoModel != null)
                {
                    //线路名称
                    this.litRouteName.Text = infoModel.RouteName;
                    this.litLdate.Text     = infoModel.LDate.ToString("yyyy-MM-dd");
                    //专线主要联系人
                    this.litContectName.Value = this.SiteUserInfo.ContactInfo.ContactName;
                    this.litQuerenDate.Value  = DateTime.Now.ToString("yyyy-MM-dd");
                }

                EyouSoft.Model.TourStructure.TourOrder customerList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderModel(SiteUserInfo.CompanyID, EyouSoft.Common.Utils.GetQueryStringValue("orderId"));
                if (customerList != null)
                {
                    //组团社
                    buyCompanyName = customerList.BuyCompanyName;
                    //组团社联系人
                    buyCompanyContentName       = customerList.BuyerContactName;
                    this.litbuyCompanyName.Text = customerList.BuyCompanyName;

                    this.litPeopleCount.Text = customerList.PeopleNumber.ToString();
                    this.litCostDetail.Text  = (customerList.AdultNumber) + "*" + (customerList.PersonalPrice.ToString("0.00")) + " + " + (customerList.ChildNumber) + " * " + (customerList.ChildPrice.ToString("0.00"));
                    this.litCostSum.Text     = customerList.SumPrice.ToString("0.00");
                    string vistors = string.Empty;
                    if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                    {
                        customerList.CustomerList = customerList.CustomerList.Where(p => p.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                        if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                        {
                            for (int i = 0; i < customerList.CustomerList.Count; i++)
                            {
                                vistors += customerList.CustomerList[i].VisitorName + ",";
                            }
                        }
                    }
                    this.litVistors.Text = vistors.TrimEnd(',');
                    //备注
                    if (customerList.AmountPlus != null)
                    {
                        this.litremark.Text = customerList.AmountPlus.Remark;
                    }
                }
            }
            else
            {
                teamModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
                if (teamModel != null)
                {
                    //组团社
                    buyCompanyName = teamModel.BuyerCName;

                    this.litbuyCompanyName.Text = teamModel.BuyerCName;

                    //组团社联系人
                    EyouSoft.Model.CompanyStructure.CustomerInfo CustomerInfo = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(teamModel.BuyerCId);
                    if (CustomerInfo != null)
                    {
                        if (CustomerInfo.CustomerContactList != null && CustomerInfo.CustomerContactList.Count > 0)
                        {
                            buyCompanyContentName = CustomerInfo.CustomerContactList[0].Name;
                        }
                    }
                    this.litRouteName.Text = teamModel.RouteName;
                    this.litLdate.Text     = teamModel.LDate.ToString("yyyy-MM-dd");
                    //专线主要联系人
                    this.litContectName.Value = this.SiteUserInfo.ContactInfo.ContactName;
                    this.litQuerenDate.Value  = DateTime.Now.ToString("yyyy-MM-dd");
                }

                EyouSoft.Model.TourStructure.TourOrder customerList = new EyouSoft.BLL.TourStructure.TourOrder(SiteUserInfo).GetOrderModel
                                                                          (SiteUserInfo.CompanyID, EyouSoft.Common.Utils.GetQueryStringValue("orderId"));
                if (customerList != null)
                {
                    this.litPeopleCount.Text = customerList.PeopleNumber.ToString();

                    if (customerList.TourTeamUnit != null)
                    {
                        this.litCostDetail.Text = customerList.TourTeamUnit.UnitAmountCr.ToString("0.00") + "+" + customerList.TourTeamUnit.UnitAmountEt.ToString("0.00") + "+" + customerList.TourTeamUnit.UnitAmountQp.ToString("0.00");
                    }
                    this.litCostSum.Text = customerList.SumPrice.ToString("0.00");

                    string vistors = string.Empty;
                    if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                    {
                        customerList.CustomerList = customerList.CustomerList.Where(p => p.CustomerStatus == EyouSoft.Model.EnumType.TourStructure.CustomerStatus.正常).ToList();
                        if (customerList.CustomerList != null && customerList.CustomerList.Count > 0)
                        {
                            for (int i = 0; i < customerList.CustomerList.Count; i++)
                            {
                                vistors += customerList.CustomerList[i].VisitorName + ",";
                            }
                        }
                    }
                    this.litVistors.Text = vistors.TrimEnd(',');
                    //备注
                    if (customerList.AmountPlus != null)
                    {
                        this.litremark.Text = customerList.AmountPlus.Remark;
                    }
                }
            }


            //公司账户信息
            EyouSoft.Model.CompanyStructure.CompanyInfo info = new EyouSoft.BLL.CompanyStructure.CompanyInfo().GetModel(CurrentUserCompanyID, CurrentUserCompanyID);
            if (info != null)
            {
                if (info.CompanyAccountList != null && info.CompanyAccountList.Count > 0)
                {
                    if (string.IsNullOrEmpty(info.CompanyAccountList[0].AccountName))
                    {
                        this.trAccountNameView.Visible = false;
                    }
                    else
                    {
                        this.lithuming.Text = info.CompanyAccountList[0].AccountName;
                    }
                    if (string.IsNullOrEmpty(info.CompanyAccountList[0].BankName) && string.IsNullOrEmpty(info.CompanyAccountList[0].BankNo))
                    {
                        this.trBankView.Visible = false;
                    }
                    else
                    {
                        this.litkaihuhang.Text = info.CompanyAccountList[0].BankName;
                        this.litzhanghao.Text  = info.CompanyAccountList[0].BankNo;
                    }
                }
                else
                {
                    this.trBankView.Visible        = false;
                    this.trAccountNameView.Visible = false;
                }
            }
        }
예제 #30
0
        /// <summary>
        /// 页面初始化方法
        /// </summary>
        /// <param name="tourId"></param>
        protected void DataInit(string tourId)
        {
            EyouSoft.BLL.TourStructure.Tour           bll   = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            EyouSoft.Model.TourStructure.TourBaseInfo model = bll.GetTourInfo(tourId);
            if (model != null)
            {
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.散拼计划)
                {
                    EyouSoft.Model.TourStructure.TourInfo tModel = (EyouSoft.Model.TourStructure.TourInfo)model;
                    if (tModel != null)
                    {
                        //线路名称
                        this.litRouteName.Text = tModel.RouteName;

                        EyouSoft.Model.TourStructure.TourOrder order = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderModel(CurrentUserCompanyID, Utils.GetQueryStringValue("orderId"));
                        if (order != null)
                        {
                            //组团社
                            this.litBuyCompanyName.Text = order.BuyCompanyName;
                            //组团社联系人
                            this.litCustomName.Text = order.ContactName;
                            this.litTel.Text        = order.ContactTel;
                            this.litFax.Text        = order.ContactFax;
                            //游客信息
                            string strVistors = string.Empty;
                            if (order.CustomerList != null && order.CustomerList.Count > 0)
                            {
                                for (int i = 0; i < order.CustomerList.Count; i++)
                                {
                                    strVistors += order.CustomerList[i].VisitorName + ",";
                                }
                                this.litVisitorsList.Text = strVistors.TrimEnd(',');
                            }
                        }


                        //机场送团
                        if (tModel.SentPeoples != null && tModel.SentPeoples.Count > 0)
                        {
                            string strSongTuanName = string.Empty;
                            for (int i = 0; i < tModel.SentPeoples.Count; i++)
                            {
                                strSongTuanName += tModel.SentPeoples[i].OperatorName + ",";
                            }
                            this.litSongTuanName.Text = strSongTuanName.TrimEnd(',');

                            //手机
                            EyouSoft.Model.CompanyStructure.CompanyUser userModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserInfo(tModel.SentPeoples[0].OperatorId);
                            if (userModel != null)
                            {
                                this.litSongTuanPhone.Text = userModel.PersonInfo.ContactMobile;
                            }
                        }

                        //去程航班/时间
                        this.litLFilght.Text = tModel.LTraffic;

                        //返程航班/时间
                        this.litRFilght.Text = tModel.RTraffic;
                        //集合地点
                        this.litJihePlace.Text = tModel.GatheringPlace;
                        if (tModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                        {
                            this.litQplan.Visible = false;
                            this.pnequick.Visible = false;
                            if (tModel.TourNormalInfo != null)
                            {
                                //注意事项
                                this.litZhuYiShiXiang.Text = tModel.TourNormalInfo.ZhuYiShiXiang;
                                //温馨提醒
                                this.litWenXinTiXing.Text = tModel.TourNormalInfo.WenXinTiXing;
                                //行程安排
                                if (tModel.TourNormalInfo.Plans != null && tModel.TourNormalInfo.Plans.Count > 0)
                                {
                                    for (int i = 0; i < tModel.TourNormalInfo.Plans.Count; i++)
                                    {
                                        TravelplanStr += "<tr><td height=\"25\" align=\"center\" bgcolor=\"#FFFFFF\">" + tModel.LDate.AddDays(i).ToString("yyyy-MM-dd") + "</td><td align=\"left\" bgcolor=\"#FFFFFF\">" + tModel.TourNormalInfo.Plans[i].Plan + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + (tModel.TourNormalInfo.Plans[i].Dinner.Contains("2") ? "早," : "") + "" + (tModel.TourNormalInfo.Plans[i].Dinner.Contains("3") ? "中," : "") + "" + (tModel.TourNormalInfo.Plans[i].Dinner.Contains("4") ? "晚," : "") + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + tModel.TourNormalInfo.Plans[i].Hotel + "</td></tr>";
                                    }
                                }
                            }
                        }
                        else
                        {
                            this.pnetab.Visible = false;
                            this.tabView.Attributes.Add("style", "border: 1px #000000 solid");
                            this.pneStand.Visible = false;
                            if (tModel.TourQuickInfo != null)
                            {
                                this.litQplan.Text       = tModel.TourQuickInfo.QuickPlan;
                                this.litServerStand.Text = tModel.TourQuickInfo.Service;
                            }
                        }
                    }
                }
                if (model.TourType == EyouSoft.Model.EnumType.TourStructure.TourType.团队计划)
                {
                    EyouSoft.Model.TourStructure.TourTeamInfo ttModel = (EyouSoft.Model.TourStructure.TourTeamInfo)model;
                    if (ttModel != null)
                    {
                        //线路名称
                        this.litRouteName.Text = ttModel.RouteName;
                        //组团社
                        this.litBuyCompanyName.Text = ttModel.BuyerCName;
                        //组团社联系人
                        EyouSoft.Model.CompanyStructure.CustomerInfo CustomerInfo = new EyouSoft.BLL.CompanyStructure.Customer().GetCustomerModel(ttModel.BuyerCId);
                        if (CustomerInfo != null)
                        {
                            this.litCustomName.Text = CustomerInfo.ContactName;
                            this.litTel.Text        = CustomerInfo.Phone;
                            this.litFax.Text        = CustomerInfo.Fax;
                        }

                        EyouSoft.Model.TourStructure.TourOrder order = new EyouSoft.BLL.TourStructure.TourOrder().GetOrderModel(CurrentUserCompanyID, Utils.GetQueryStringValue("orderId"));
                        if (order != null)
                        {
                            //组团社
                            this.litBuyCompanyName.Text = order.BuyCompanyName;
                            //组团社联系人
                            this.litCustomName.Text = order.ContactName;
                            this.litTel.Text        = order.ContactTel;
                            this.litFax.Text        = order.ContactFax;
                            //游客信息
                            string strVistors = string.Empty;
                            if (order.CustomerList != null && order.CustomerList.Count > 0)
                            {
                                for (int i = 0; i < order.CustomerList.Count; i++)
                                {
                                    strVistors += order.CustomerList[i].VisitorName + ",";
                                }
                                this.litVisitorsList.Text = strVistors.TrimEnd(',');
                            }
                        }

                        //机场送团
                        if (ttModel.SentPeoples != null && ttModel.SentPeoples.Count > 0)
                        {
                            string strSongTuanName = string.Empty;
                            for (int i = 0; i < ttModel.SentPeoples.Count; i++)
                            {
                                strSongTuanName += ttModel.SentPeoples[i].OperatorName + ",";
                            }
                            this.litSongTuanName.Text = strSongTuanName.TrimEnd(',');

                            //手机
                            EyouSoft.Model.CompanyStructure.CompanyUser userModel = new EyouSoft.BLL.CompanyStructure.CompanyUser().GetUserInfo(ttModel.SentPeoples[0].OperatorId);
                            if (userModel != null)
                            {
                                this.litSongTuanPhone.Text = userModel.PersonInfo.ContactMobile;
                            }
                        }

                        //去程航班/时间
                        this.litLFilght.Text = ttModel.LTraffic;

                        //返程航班/时间
                        this.litRFilght.Text = ttModel.RTraffic;

                        //集合地点
                        this.litJihePlace.Text = ttModel.GatheringPlace;
                        if (ttModel.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
                        {
                            this.litQplan.Visible = false;
                            this.pnequick.Visible = false;
                            if (ttModel.TourNormalInfo != null)
                            {
                                //注意事项
                                this.litZhuYiShiXiang.Text = ttModel.TourNormalInfo.ZhuYiShiXiang;
                                //温馨提醒
                                this.litWenXinTiXing.Text = ttModel.TourNormalInfo.WenXinTiXing;
                                //行程安排
                                if (ttModel.TourNormalInfo.Plans != null && ttModel.TourNormalInfo.Plans.Count > 0)
                                {
                                    for (int i = 0; i < ttModel.TourNormalInfo.Plans.Count; i++)
                                    {
                                        TravelplanStr += "<tr><td height=\"25\" align=\"center\" bgcolor=\"#FFFFFF\">" + ttModel.LDate.AddDays(i).ToString("yyyy-MM-dd") + "</td><td align=\"left\" bgcolor=\"#FFFFFF\">" + ttModel.TourNormalInfo.Plans[i].Plan + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + (ttModel.TourNormalInfo.Plans[i].Dinner.Contains("2") ? "早," : "") + "" + (ttModel.TourNormalInfo.Plans[i].Dinner.Contains("3") ? "中," : "") + "" + (ttModel.TourNormalInfo.Plans[i].Dinner.Contains("4") ? "晚," : "") + "</td><td align=\"center\" bgcolor=\"#FFFFFF\">" + ttModel.TourNormalInfo.Plans[i].Hotel + "</td></tr>";
                                    }
                                }
                            }
                        }
                        else
                        {
                            this.pnetab.Visible   = false;
                            this.pneStand.Visible = false;
                            this.tabView.Attributes.Add("style", "border: 1px #000000 solid");
                            if (ttModel.TourQuickInfo != null)
                            {
                                this.litQplan.Text       = ttModel.TourQuickInfo.QuickPlan;
                                this.litServerStand.Text = ttModel.TourQuickInfo.Service;
                            }
                        }
                    }
                }
            }
        }