Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //控件初始化
                LoadVisitors1.CurrentPageIframeId = Utils.GetQueryStringValue("iframeid");

                string orderId = Utils.GetQueryStringValue("orderId");
                string tourId  = Utils.GetQueryStringValue("tourId");
                #region 配置游客是否必填
                EyouSoft.BLL.CompanyStructure.CompanySetting        setBll = new EyouSoft.BLL.CompanyStructure.CompanySetting(); //初始化bll
                EyouSoft.Model.CompanyStructure.CompanyFieldSetting set    = null;                                               //配置实体
                set = setBll.GetSetting(CurrentUserCompanyID);
                hd_IsRequiredTraveller.Value = set.IsRequiredTraveller.ToString();
                #endregion
                if (orderId != "")
                {
                    this.hideOrderId.Value = orderId;
                }
                if (tourId != "")
                {
                    DataInit(tourId);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取指定公司的系统配置信息
        /// </summary>
        /// <param name="CompanyId">公司编号</param>
        /// <returns></returns>
        public EyouSoft.Model.CompanyStructure.CompanyFieldSetting GetSetting(int CompanyId)
        {
            if (CompanyId <= 0)
            {
                return(null);
            }

            EyouSoft.Model.CompanyStructure.CompanyFieldSetting config = (EyouSoft.Model.CompanyStructure.CompanyFieldSetting)EyouSoft.Cache.Facade.EyouSoftCache.GetCache(string.Format(EyouSoft.Cache.Tag.Company.CompanyConfig, CompanyId));

            if (config == null)
            {
                config = Dal.GetSetting(CompanyId);

                if (config != null)
                {
                    if (config.TanChuangTiXingInterval < 59)
                    {
                        config.TanChuangTiXingInterval = 600;
                    }
                    EyouSoft.Cache.Facade.EyouSoftCache.Add(string.Format(EyouSoft.Cache.Tag.Company.CompanyConfig, CompanyId), config);
                }
            }

            return(config);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 初始化芭比来系统系统配置
        /// </summary>
        private void InitBBLSysSetting()
        {
            EyouSoft.BLL.CompanyStructure.CompanySetting        settingbll = new EyouSoft.BLL.CompanyStructure.CompanySetting();
            EyouSoft.Model.CompanyStructure.CompanyFieldSetting setting    = settingbll.GetSetting(1);
            settingbll = null;
            //var setting1 = (EyouSoft.Model.CompanyStructure.CompanyFieldSetting)setting.Clone();

            string script = string.Empty;

            if (setting != null)
            {
                /*if (setting.PrintDocument != null && setting.PrintDocument.Count > 0)
                 * {
                 *  foreach (var item in setting.PrintDocument)
                 *  {
                 *      if (string.IsNullOrEmpty(item.PrintTemplate)) continue;
                 *      item.PrintTemplate = item.PrintTemplate.ToLower().Replace("/print/bbl/", "/print/normal/");
                 *  }
                 * }*/

                script = "var sysSetting={0};";
                script = string.Format(script, Newtonsoft.Json.JsonConvert.SerializeObject(setting));
                this.RegisterScript(script);
            }
            else
            {
                this.RegisterScript("var sysSetting=null;");
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// get company setting
        /// </summary>
        /// <returns></returns>
        private EyouSoft.Model.CompanyStructure.CompanyFieldSetting GetSetting()
        {
            EyouSoft.Model.CompanyStructure.CompanyFieldSetting setting = new EyouSoft.Model.CompanyStructure.CompanyFieldSetting();

            setting.AgencyFeeInfo              = (EyouSoft.Model.EnumType.CompanyStructure.AgencyFeeType)EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radAgencyFee"));
            setting.BackTourReminderDays       = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("txtLeaveTourReminderDays"));
            setting.CompanyId                  = 0;
            setting.CompanyLogo                = string.Empty;
            setting.CompanyPrintFile           = new EyouSoft.Model.CompanyStructure.CompanyPrintTemplate();
            setting.ComputeOrderType           = (EyouSoft.Model.EnumType.CompanyStructure.ComputeOrderType)EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radComputeOrderType"));
            setting.ContractReminderDays       = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("txtContractReminderDays"));
            setting.DisplayAfterMonth          = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("txtDisplayAfterMonth"));
            setting.DisplayBeforeMonth         = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("txtDisplayBeforeMonth"));
            setting.LeaveTourReminderDays      = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("txtLeaveTourReminderDays"));
            setting.PriceComponent             = (EyouSoft.Model.EnumType.CompanyStructure.PriceComponent)EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radPriceComponent"));
            setting.PrintDocument              = this.GetPrintDocumentSettings();
            setting.ProfitStatTourPagePath     = EyouSoft.Common.Utils.GetFormValue("txtProfitStatTourPagePath");
            setting.ReservationTime            = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("txtReservationTime"));
            setting.TicketTravellerCheckedType = (EyouSoft.Model.EnumType.CompanyStructure.TicketTravellerCheckedType)EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radTicketTravellerCheckedType"));
            setting.IsRequiredTraveller        = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radIsRequiredTraveller")) == 1 ? true : false;
            setting.TeamNumberOfPeople         = (EyouSoft.Model.EnumType.CompanyStructure.TeamNumberOfPeople)EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radTeamNumberOfPeople"));
            setting.TicketOfficeFillTime       = (EyouSoft.Model.EnumType.CompanyStructure.TicketOfficeFillTime)EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radTicketOfficeFillTime"));
            setting.IsTicketOutRegisterPayment = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radTicketOutClear")) == 1 ? true : false;
            setting.HuiKuanLvSFBHWeiShenHe     = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetFormValue("radHuiKuanLvSFBHWeiShenHe")) == 1;
            setting.SiteTourDisplayType        = EyouSoft.Common.Utils.GetEnumValue <EyouSoft.Model.EnumType.CompanyStructure.TourDisplayType>(EyouSoft.Common.Utils.GetFormValue("radSiteTourDisplayType"), EyouSoft.Model.EnumType.CompanyStructure.TourDisplayType.明细团);
            setting.SiteTemplate               = EyouSoft.Common.Utils.GetEnumValue <EyouSoft.Model.EnumType.SysStructure.SiteTemplate>(EyouSoft.Common.Utils.GetFormValue("txtSiteTemplate"), EyouSoft.Model.EnumType.SysStructure.SiteTemplate.None);

            return(setting);
        }
Exemplo n.º 5
0
 /// <summary>
 /// 设置打印模板显示
 /// </summary>
 /// <param name="set"></param>
 protected void SetPrintPic(EyouSoft.Model.CompanyStructure.CompanyFieldSetting set)
 {
     if (!string.IsNullOrEmpty(set.CompanyPrintFile.PageHeadFile))
     {
         hidHeader.Value = set.CompanyPrintFile.PageHeadFile;
     }
     if (!string.IsNullOrEmpty(set.CompanyPrintFile.PageFootFile))
     {
         hidFooter.Value = set.CompanyPrintFile.PageFootFile;
     }
     if (!string.IsNullOrEmpty(set.CompanyPrintFile.TemplateFile))
     {
         hidModel.Value = set.CompanyPrintFile.TemplateFile;
     }
     if (!string.IsNullOrEmpty(set.CompanyPrintFile.DepartStamp))
     {
         hidSeat.Value = set.CompanyPrintFile.DepartStamp;
     }
     if (!string.IsNullOrEmpty(set.CompanyLogo))
     {
         hidLog.Value = set.CompanyLogo;
     }
     companyLog = !string.IsNullOrEmpty(set.CompanyLogo) ? string.Format("<a href='{0}' class='" + hidLog.ClientID + "' target='_blank'>查看图片</a>&nbsp;<a href='javascript:;' onclick=\"return del('{1}',this);\"><img src='/images/fujian_x.gif'/></a>", set.CompanyLogo, hidLog.ClientID) : "暂无公司Logo";
     pageHeader = !string.IsNullOrEmpty(set.CompanyPrintFile.PageHeadFile) ? string.Format("<a href='{0}' class='" + hidHeader.ClientID + "' target='_blank'>查看页眉</a>&nbsp;<a href='javascript:;' onclick=\"return del('{1}',this);\"><img src='/images/fujian_x.gif'/></a>", set.CompanyPrintFile.PageHeadFile, hidHeader.ClientID) : "暂无页眉";
     pageFooter = !string.IsNullOrEmpty(set.CompanyPrintFile.PageFootFile) ? string.Format("<a href='{0}' class='" + hidFooter.ClientID + "' target='_blank'>查看页脚</a>&nbsp;<a href='javascript:;' onclick=\"return del('{1}',this);\"><img src='/images/fujian_x.gif'/></a>", set.CompanyPrintFile.PageFootFile, hidFooter.ClientID) : "暂无页脚";
     pageModel  = !string.IsNullOrEmpty(set.CompanyPrintFile.TemplateFile) ? string.Format("<a href='{0}' class='" + hidModel.ClientID + "' target='_blank'>查看模板</a>&nbsp;<a href='javascript:;' onclick=\"return del('{1}',this);\"><img src='/images/fujian_x.gif'/></a>", set.CompanyPrintFile.TemplateFile, hidModel.ClientID) : "暂无模板";
     departSeal = !string.IsNullOrEmpty(set.CompanyPrintFile.DepartStamp) ? string.Format("<a href='{0}' class='" + hidSeat.ClientID + "' target='_blank'>查看公章</a>&nbsp;<a href='javascript:;' onclick=\"return del('{1}',this);\"><img src='/images/fujian_x.gif'/></a>", set.CompanyPrintFile.DepartStamp, hidSeat.ClientID) : "暂无公章";
 }
Exemplo n.º 6
0
        protected string file;  //页面上附件的路径
        protected void Page_Load(object sender, EventArgs e)
        {
            //询价权限判断
            if (!CheckGrant(TravelPermission.团队计划_组团社询价_栏目))
            {
                Utils.ResponseNoPermit(TravelPermission.团队计划_组团社询价_栏目, true);
            }
            int    id  = 0;
            string ids = "";

            this.xianluWindow1.publishType = 1;
            type = Utils.GetQueryStringValue("type");
            if (!IsPostBack)
            {
                if (type == "create")
                {
                    id = Utils.GetInt(Utils.GetQueryStringValue("id"));
                    InitInfo(id);
                }
                else if (type == "del")
                {
                    ids = Utils.GetQueryStringValue("ids");
                    Del(ids);
                }
                BindArea();
                #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
            }
        }
Exemplo n.º 7
0
        /// <summary>
        /// 设置系统配置信息
        /// </summary>
        /// <param name="model">系统配置实体</param>
        /// <returns>true:成功 false:失败</returns>
        public bool SetCompanySetting(EyouSoft.Model.CompanyStructure.CompanyFieldSetting model)
        {
            bool dalResult = Dal.SetCompanySetting(model);

            if (dalResult)
            {
                EyouSoft.Cache.Facade.EyouSoftCache.Remove(string.Format(EyouSoft.Cache.Tag.Company.CompanyConfig, model.CompanyId));

                #region LGWR
                EyouSoft.Model.CompanyStructure.SysHandleLogs logInfo = new EyouSoft.Model.CompanyStructure.SysHandleLogs();
                logInfo.CompanyId    = 0;
                logInfo.DepatId      = 0;
                logInfo.EventCode    = EyouSoft.Model.CompanyStructure.SysHandleLogsNO.EventCode;
                logInfo.EventIp      = string.Empty;
                logInfo.EventMessage = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "{0}在" + EyouSoft.Model.EnumType.CompanyStructure.SysPermissionClass.系统设置_系统配置.ToString() + "更新了系统配置信息。";
                logInfo.EventTime    = DateTime.Now;
                logInfo.EventTitle   = "更新系统配置";
                logInfo.ModuleId     = EyouSoft.Model.EnumType.CompanyStructure.SysPermissionClass.系统设置_系统配置;
                logInfo.OperatorId   = 0;
                new EyouSoft.BLL.CompanyStructure.SysHandleLogs().Add(logInfo);
                #endregion
            }

            return(dalResult);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 创建系统配置的XML
        /// </summary>
        /// <param name="model">系统配置实体</param>
        /// <returns></returns>
        private string CreateSettingXml(EyouSoft.Model.CompanyStructure.CompanyFieldSetting model)
        {
            if (model == null)
            {
                return(string.Empty);
            }
            StringBuilder strSettingXml = new StringBuilder();

            strSettingXml.Append("<ROOT>");
            strSettingXml.AppendFormat("<SettingInfo FieldName=\"ContractReminderDays\" FieldValue=\"{0}\" />", model.ContractReminderDays);
            strSettingXml.AppendFormat("<SettingInfo FieldName=\"DisplayAfterMonth\" FieldValue=\"{0}\" />", model.DisplayAfterMonth);
            strSettingXml.AppendFormat("<SettingInfo FieldName=\"DisplayBeforeMonth\" FieldValue=\"{0}\" />", model.DisplayBeforeMonth);
            strSettingXml.AppendFormat("<SettingInfo FieldName=\"ReservationTime\" FieldValue=\"{0}\" />", model.ReservationTime);
            strSettingXml.AppendFormat("<SettingInfo FieldName=\"PriceComponent\" FieldValue=\"{0}\" />", (int)model.PriceComponent);
            strSettingXml.AppendFormat("<SettingInfo FieldName=\"CompanyLogo\" FieldValue=\"{0}\" />", model.CompanyLogo);
            if (model.PrintDocument != null && model.PrintDocument.Count > 0)
            {
                foreach (var item in model.PrintDocument)
                {
                    strSettingXml.AppendFormat("<SettingInfo FieldName=\"PrintDocument_{0}\" FieldValue=\"{1}\" />", (int)item.PrintTemplateType, item.PrintTemplate);
                }
            }
            strSettingXml.Append("</ROOT>");
            return(strSettingXml.ToString());
        }
Exemplo n.º 9
0
 /// <summary>
 /// 绑定默认值(送团人,集合地点,集合标志)
 /// </summary>
 private void BindDefaultValue()
 {
     EyouSoft.BLL.CompanyStructure.CompanySetting        bll   = new CompanySetting();
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = bll.GetSetting(this.SiteUserInfo.CompanyID);
     if (model != null)
     {
         SelectgroupPepole.OperId   = model.SongTuanRenId;
         SelectgroupPepole.OperName = model.SongTuanRenName;
         txt_jh_area.Text           = model.JiHeDiDian;
         txt_jh_logo.Text           = model.JiHeBiaoZhi;
     }
 }
Exemplo n.º 10
0
 /// <summary>
 /// 绑定默认值(送团人,集合地点,集合标志)
 /// </summary>
 private void BindDefaultValue()
 {
     EyouSoft.BLL.CompanyStructure.CompanySetting        bll   = new CompanySetting();
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = bll.GetSetting(this.SiteUserInfo.CompanyID);
     if (model != null)
     {
         selectOperator1.OperId   = model.SongTuanRenId;
         selectOperator1.OperName = model.SongTuanRenName;
         txtPlace.Text            = model.JiHeDiDian;
         txtLogo.Text             = model.JiHeBiaoZhi;
     }
 }
Exemplo n.º 11
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
        }
Exemplo n.º 12
0
        /// <summary>
        /// 获取申请机票游客勾选配置
        /// </summary>
        /// <param name="companyId">公司(专线)编号</param>
        /// <returns></returns>
        public Model.EnumType.CompanyStructure.TicketTravellerCheckedType GetTicketTravellerCheckedType(int companyId)
        {
            Model.EnumType.CompanyStructure.TicketTravellerCheckedType ticketTravellerCheckedType = EyouSoft.Model.EnumType.CompanyStructure.TicketTravellerCheckedType.All;

            EyouSoft.Model.CompanyStructure.CompanyFieldSetting settings = this.GetSetting(companyId);

            if (settings != null)
            {
                ticketTravellerCheckedType = settings.TicketTravellerCheckedType;
            }

            return(ticketTravellerCheckedType);
        }
Exemplo n.º 13
0
        /// <summary>
        /// 获取收款提醒配置
        /// </summary>
        /// <param name="companyId">公司编号(专线)</param>
        /// <returns></returns>
        public EyouSoft.Model.EnumType.CompanyStructure.ReceiptRemindType GetReceiptRemindType(int companyId)
        {
            EyouSoft.Model.EnumType.CompanyStructure.ReceiptRemindType receiptRemindType = EyouSoft.Model.EnumType.CompanyStructure.ReceiptRemindType.AllUser;

            EyouSoft.Model.CompanyStructure.CompanyFieldSetting settings = this.GetSetting(companyId);

            if (settings != null)
            {
                receiptRemindType = settings.ReceiptRemindType;
            }

            return(receiptRemindType);
        }
Exemplo n.º 14
0
        /// <summary>
        /// 获取弹窗提醒间隔时间(单位:秒),默认值600秒。
        /// </summary>
        /// <param name="companyId"></param>
        /// <returns></returns>
        public int GetTanChuangTiXingInterval(int companyId)
        {
            int interval = 600;

            EyouSoft.Model.CompanyStructure.CompanyFieldSetting settings = this.GetSetting(companyId);

            if (settings != null && settings.TanChuangTiXingInterval > 59)
            {
                interval = settings.TanChuangTiXingInterval;
            }

            return(interval);
        }
Exemplo n.º 15
0
        //同意留位
        protected void btnYes_Click(object sender, EventArgs e)
        {
            //点同意留位,状态为已留位
            EyouSoft.BLL.CompanyStructure.CompanySetting        setBll   = new EyouSoft.BLL.CompanyStructure.CompanySetting();
            EyouSoft.Model.CompanyStructure.CompanyFieldSetting setModel = setBll.GetSetting(SiteUserInfo.CompanyID);
            //留位时间
            DateTime seatDate = Utils.GetDateTime(txtEndTime.Text);

            if (setModel != null)
            {
                if (seatDate != DateTime.MinValue)
                {
                    if (seatDate > DateTime.Now.AddMinutes(Convert.ToDouble(setModel.ReservationTime)))
                    {
                        printFaiMsg(string.Format("留位时间最长到{0}", DateTime.Now.AddMinutes(setModel.ReservationTime)));

                        return;
                    }
                }
                else
                {
                    printFaiMsg("留位时间输入错误!");

                    return;
                }
            }
            EyouSoft.BLL.TourStructure.Tour bll = new EyouSoft.BLL.TourStructure.Tour(SiteUserInfo);
            string TourId = Utils.GetQueryStringValue("tourId");

            model = (EyouSoft.Model.TourStructure.TourInfo)bll.GetTourInfo(TourId);

            #region 提交财务后不允许操作 by  txb 6.17
            if (model != null)
            {
                if (!Utils.PlanIsUpdateOrDelete(model.Status.ToString()))
                {
                    Response.Write("<script>alert('该团已提交财务,不能对它操作!');location.href=location.href;</script>");
                    return;
                }
            }
            #endregion
            if (model != null)
            {
                //EyouSoft.Model.EnumType.TourStructure.OrderState.已留位
                Save(false, seatDate);
            }

            bll   = null;
            model = null;
        }
Exemplo n.º 16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 权限验证
            if (!CheckGrant(TravelPermission.统计分析_利润统计_利润统计栏目))
            {
                Utils.ResponseNoPermit(TravelPermission.统计分析_利润统计_利润统计栏目, true);
                return;
            }
            #endregion

            #region  根据Url参数,设置显示记录数
            if ((Request.QueryString["isAll"] != null && Utils.InputText(Request.QueryString["isAll"]) == "1") ||
                (Request.QueryString["isExport"] != null && Utils.InputText(Request.QueryString["isExport"]) == "1") ||
                Utils.GetInt(Utils.GetQueryStringValue("IsCartogram"), 0) > 0)
            {
                PageSize = int.MaxValue - 1;
            }
            #endregion

            #region 获取团队数URL
            EyouSoft.BLL.CompanyStructure.CompanySetting        setBll   = new EyouSoft.BLL.CompanyStructure.CompanySetting();
            EyouSoft.Model.CompanyStructure.CompanyFieldSetting setModel = setBll.GetSetting(SiteUserInfo.CompanyID);
            URL = setModel.ProfitStatTourPagePath;
            #endregion

            #region 初始化数据
            if (!IsPostBack)
            {
                InitProAreaStaticlist();
            }
            #endregion

            #region 导出报表
            if (Utils.GetQueryStringValue("isExport") == "1")
            {
                if (list != null && list.Count != 0)
                {
                    ToExcel(this.crp_PrintGetProAreaList, list);
                }
            }
            #endregion

            #region 统计图异步请求
            if (Utils.GetInt(Utils.GetQueryStringValue("IsCartogram"), 0) > 0)
            {
                GetCartogramFlashXml();
            }
            #endregion
        }
Exemplo n.º 17
0
 /// <summary>
 /// 获取统计分析利润统计团队数页面路径配置
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public string GetProfitStatTourPagePath(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return("");
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.ProfitStatTourPagePath);
     }
     else
     {
         return("");
     }
 }
Exemplo n.º 18
0
 /// <summary>
 /// 获取机票票款计算公式
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public EyouSoft.Model.EnumType.CompanyStructure.AgencyFeeType?GetAgencyFee(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(null);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.AgencyFeeInfo);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 19
0
 /// <summary>
 /// 合同提前多少天提醒
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public int GetContractReminderDays(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(0);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.ContractReminderDays);
     }
     else
     {
         return(0);
     }
 }
Exemplo n.º 20
0
 /// <summary>
 /// 最长留位时间
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public int GetReservationTime(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(0);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.ReservationTime);
     }
     else
     {
         return(0);
     }
 }
Exemplo n.º 21
0
 /// <summary>
 /// 列表控制显示前几个月
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public int GetDisplayBeforeMonth(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(0);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.DisplayBeforeMonth);
     }
     else
     {
         return(0);
     }
 }
Exemplo n.º 22
0
 /// <summary>
 /// 系统价格组成类型
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public EyouSoft.Model.EnumType.CompanyStructure.PriceComponent GetPriceComponent(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(0);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.PriceComponent);
     }
     else
     {
         return(0);
     }
 }
Exemplo n.º 23
0
 /// <summary>
 /// 公司打印模版集合
 /// </summary>
 /// <param name="CompanyId">公司编号</param>
 /// <returns></returns>
 public IList <EyouSoft.Model.CompanyStructure.PrintDocument> GetPrintDocument(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(null);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.PrintDocument);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 24
0
 /// <summary>
 /// 获取指定公司的打印文件
 /// </summary>
 /// <param name="CompanyId"></param>
 /// <returns></returns>
 public EyouSoft.Model.CompanyStructure.CompanyPrintTemplate GetCompanyPrintFile(int CompanyId)
 {
     if (CompanyId <= 0)
     {
         return(null);
     }
     EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
     if (model != null)
     {
         return(model.CompanyPrintFile);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 25
0
        /// <summary>
        /// 设置系统配置信息
        /// </summary>
        /// <param name="model">系统配置实体</param>
        /// <returns>true:成功 false:失败</returns>
        public bool SetCompanySetting(EyouSoft.Model.CompanyStructure.CompanyFieldSetting model)
        {
            StringBuilder strSql = new StringBuilder();

            if (model.ContractReminderDays > 0)
            {
                strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "ContractReminderDays", model.ContractReminderDays);
            }
            if (model.BackTourReminderDays > 0)
            {
                strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "BackTourReminderDays", model.BackTourReminderDays);
            }
            if (model.DisplayAfterMonth > 0)
            {
                strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "DisplayAfterMonth", model.DisplayAfterMonth);
            }
            if (model.DisplayBeforeMonth > 0)
            {
                strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "DisplayBeforeMonth", model.DisplayBeforeMonth);
            }
            if (model.LeaveTourReminderDays > 0)
            {
                strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "LeaveTourReminderDays", model.LeaveTourReminderDays);
            }
            if (model.ReservationTime > 0)
            {
                strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "ReservationTime", model.ReservationTime);
            }

            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "PriceComponent", (int)model.PriceComponent);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "CompanyLogo", model.CompanyLogo);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "DepartStamp", model.CompanyPrintFile.DepartStamp);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "PageFootFile", model.CompanyPrintFile.PageFootFile);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "PageHeadFile", model.CompanyPrintFile.PageHeadFile);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "TemplateFile", model.CompanyPrintFile.TemplateFile);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "ReceiptRemindType", (int)model.ReceiptRemindType);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "TanChuangTiXingInterval", model.TanChuangTiXingInterval);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "SongTuanRenId", model.SongTuanRenId);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "SongTuanRenName", model.SongTuanRenName);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "JiHeDiDian", model.JiHeDiDian);
            strSql.AppendFormat(SQL_BcthSetSeting, model.CompanyId, "JiHeBiaoZhi", model.JiHeBiaoZhi);

            DbCommand dc = this._db.GetSqlStringCommand(strSql.ToString());

            return(EyouSoft.Toolkit.DAL.DbHelper.ExecuteSqlTrans(dc, this._db) > 0 ? true : false);
        }
Exemplo n.º 26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 权限验证
            if (!CheckGrant(TravelPermission.统计分析_利润统计_利润统计栏目))
            {
                Utils.ResponseNoPermit(TravelPermission.统计分析_利润统计_利润统计栏目, true);
                return;
            }
            #endregion

            #region 根据Url参数,来设置PageSize
            string IsPrint       = Request.QueryString["isAll"];
            string isExportValue = Request.QueryString["isExport"];
            if ((IsPrint != "" && IsPrint == "1") || (isExportValue != "" && isExportValue == "1"))
            {
                //设置显示的记录为最大值
                PageSize = int.MaxValue - 1;
            }
            #endregion

            //是否导出
            if (isExportValue != "" && isExportValue == "1")
            {
                IsExport = true;
            }

            #region 获取团队数URL
            EyouSoft.BLL.CompanyStructure.CompanySetting        setBll   = new EyouSoft.BLL.CompanyStructure.CompanySetting();
            EyouSoft.Model.CompanyStructure.CompanyFieldSetting setModel = setBll.GetSetting(SiteUserInfo.CompanyID);
            URL = setModel.ProfitStatTourPagePath;
            #endregion

            #region 初始化数据
            if (!IsPostBack)
            {
                InitProTimeStaticlist();
            }
            #endregion

            #region 导出
            if ((list != null && list.Count != 0) && IsExport)
            {
                ToExcel(this.crp_PrintProTimeStaList, list);
            }
            #endregion
        }
Exemplo n.º 27
0
        /// <summary>
        /// 获取公司统计订单方式
        /// </summary>
        /// <param name="CompanyId">公司编号</param>
        /// <returns></returns>
        public Model.EnumType.CompanyStructure.ComputeOrderType?GetComputeOrderType(int CompanyId)
        {
            if (CompanyId <= 0)
            {
                return(null);
            }

            EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
            if (model != null)
            {
                return(model.ComputeOrderType);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 28
0
        /// <summary>
        /// 创建公司配置信息XMLDocument
        /// </summary>
        /// <param name="setting"></param>
        /// <returns></returns>
        private string CreateCompanySettingsXML(EyouSoft.Model.CompanyStructure.CompanyFieldSetting setting)
        {
            //XML:<ROOT><Info Key="配置KEY" Value="配置VALUE" /></ROOT>
            if (setting == null)
            {
                return(string.Empty);
            }
            StringBuilder xmlDoc = new StringBuilder();

            xmlDoc.Append("<ROOT>");
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "AgencyFee", (int)setting.AgencyFeeInfo);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "BackTourDays", setting.BackTourReminderDays);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "ComputeOrderType", (int)setting.ComputeOrderType);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "ContractReminderDays", setting.ContractReminderDays);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "DisplayAfterMonth", setting.DisplayAfterMonth);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "DisplayBeforeMonth", setting.DisplayBeforeMonth);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "LeaveTourDays", setting.LeaveTourReminderDays);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "PriceComponent", (int)setting.PriceComponent);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "ProfitStatTourPagePath", setting.ProfitStatTourPagePath);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "ReservationTime", (int)setting.ReservationTime);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "TicketTravellerCheckedType", (int)setting.TicketTravellerCheckedType);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "IsRequiredTraveller", setting.IsRequiredTraveller ? "1" : "0");
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "TeamNumberOfPeople", (int)setting.TeamNumberOfPeople);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "TicketOfficeFillTime", (int)setting.TicketOfficeFillTime);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "IsTicketOutRegisterPayment", setting.IsTicketOutRegisterPayment ? "1" : "0");
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "HuiKuanLvSFBHWeiShenHe", setting.HuiKuanLvSFBHWeiShenHe ? "1" : "0");
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "SiteTourDisplayType", (int)setting.SiteTourDisplayType);
            xmlDoc.AppendFormat("<Info Key=\"{0}\" Value=\"{1}\" />", "SiteTemplateId", (int)setting.SiteTemplate);

            if (setting.PrintDocument != null && setting.PrintDocument.Count > 0)
            {
                foreach (var item in setting.PrintDocument)
                {
                    xmlDoc.AppendFormat("<Info Key=\"PrintDocument_{0}\" Value=\"{1}\" />", (int)item.PrintTemplateType, item.PrintTemplate);
                }
            }

            xmlDoc.Append("</ROOT>");


            return(xmlDoc.ToString());
        }
Exemplo n.º 29
0
        /// <summary>
        /// 获取指定公司的LOGO
        /// </summary>
        /// <param name="CompanyId">公司编号</param>
        /// <returns></returns>
        public string GetCompanyLogo(int CompanyId, EyouSoft.Model.EnumType.CompanyStructure.CompanyUserType CompanyType)
        {
            if (CompanyId <= 0)
            {
                return(string.Empty);
            }
            string CompanyLogo = string.Empty;

            if (CompanyType == EyouSoft.Model.EnumType.CompanyStructure.CompanyUserType.专线用户)
            {
                EyouSoft.Model.CompanyStructure.CompanyFieldSetting model = this.GetSetting(CompanyId);
                if (model != null)
                {
                    CompanyLogo = model.CompanyLogo;
                }
                model = null;
            }
            else
            {
                int BrandId = 0;
                EyouSoft.Model.CompanyStructure.CustomerInfo CustomerModel = new DAL.CompanyStructure.Customer().GetCustomerModel(CompanyId);
                if (CustomerModel != null)
                {
                    BrandId       = CustomerModel.BrandId;
                    CustomerModel = null;
                }
                if (BrandId > 0)
                {
                    EyouSoft.Model.CompanyStructure.CompanyBrand BrandModel = new DAL.CompanyStructure.CompanyBrand().GetModel(BrandId);
                    if (BrandModel != null)
                    {
                        CompanyLogo = BrandModel.Logo1;
                    }
                    BrandModel = null;
                }
            }
            return(CompanyLogo);
        }
Exemplo n.º 30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            tsModel = new LineInquireQuoteInfo();

            EyouSoft.BLL.TourStructure.LineInquireQuoteInfo tsBLL = new EyouSoft.BLL.TourStructure.LineInquireQuoteInfo();

            if (!IsPostBack)
            {
                loedUser();
                type = Utils.GetQueryStringValue("type");//操作
                tid  = Utils.GetInt(Utils.GetQueryStringValue("tid"));
                switch (type)
                {
                case "Update":

                    bind();
                    txtLDate.Text      = tsModel.LeaveDate.Value.ToString("yyyy-MM-dd");
                    xianluWindow1.Name = tsModel.RouteName;
                    xianluWindow1.Id   = tsModel.RouteId.ToString();
                    if (tsModel.SpecialClaim != "")
                    {
                        txt_xinchen.Text = tsModel.XingCheng.QuotePlan;
                    }
                    break;
                }
                #region 配置
                EyouSoft.BLL.CompanyStructure.CompanySetting        setBll = new EyouSoft.BLL.CompanyStructure.CompanySetting(); //初始化bll
                EyouSoft.Model.CompanyStructure.CompanyFieldSetting set    = setBll.GetSetting(SiteUserInfo.CompanyID);          //配置实体
                hd_IsRequiredTraveller.Value = set.IsRequiredTraveller.ToString();
                #endregion
            }
            //else
            //{
            //    Save();//保存或修改操作
            //}
        }