Пример #1
0
        /// <summary>
        /// 获得团队报价列表
        /// </summary>
        /// <param name="CompanyId">报价所属公司编号</param>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="recordCount"></param>
        /// <param name="info">搜索实体</param>
        /// <param name="ModuleType">模块类型</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.TourStructure.MTourQuoteInfo> GetTourQuoteList(string CompanyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.TourStructure.MTourQuoteSearch info, EyouSoft.Model.EnumType.TourStructure.ModuleType ModuleType)
        {
            //是否仅查看自己的数据(true:仅查看计划销售员为自己的报价)
            bool isOnlySelf = false;

            //能查看到该菜单下面数据的部门编号,NULL为所有部门
            int[] DepartIds = null;
            switch (ModuleType)
            {
            case EyouSoft.Model.EnumType.TourStructure.ModuleType.组团:
            {
                DepartIds = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.组团团队_团队报价, out isOnlySelf);
                break;
            }

            case EyouSoft.Model.EnumType.TourStructure.ModuleType.出境:
            {
                DepartIds = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.出境团队_团队报价, out isOnlySelf);
                break;
            }

            case EyouSoft.Model.EnumType.TourStructure.ModuleType.地接:
            {
                DepartIds = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.地接团队_团队报价, out isOnlySelf);
                break;
            }
            }
            EyouSoft.Model.ComStructure.MComSetting MComSet = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CompanyId);
            return(dal.GetTourQuoteList(CompanyId, pageSize, pageIndex, ref recordCount, info, ModuleType, DepartIds, isOnlySelf, this.LoginUserId, MComSet.ShowBeforeMonth, MComSet.ShowAfterMonth));
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            EyouSoft.BLL.ComStructure.BComSetting comSettingBll = new EyouSoft.BLL.ComStructure.BComSetting();
            PrintPageSp = comSettingBll.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.分销商平台散拼线路行程单);
            string type = Request.Params["Type"];

            if (!string.IsNullOrEmpty(type))
            {
                switch (type)
                {
                case "Area":
                    Response.Write(GetArea());
                    Response.End();
                    break;
                }
            }

            if (!IsPostBack)
            {
                //公告
                this.HeadDistributorControl1.CompanyId = SiteUserInfo.CompanyId;
                //绑定数据、分页
                BindSource();
            }
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            type = Utils.GetInt(Utils.GetQueryStringValue("type"));
            sl   = Utils.GetInt(Utils.GetQueryStringValue("sl"));

            #region 获得打印单链接
            EyouSoft.BLL.ComStructure.BComSetting comSettingBll = new EyouSoft.BLL.ComStructure.BComSetting();
            PrintPageSp    = comSettingBll.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.散拼行程单);
            PrintPageOrder = comSettingBll.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.订单信息汇总表);
            comSettingBll  = null;
            #endregion

            #region 处理AJAX请求
            //获取ajax请求
            string doType = Utils.GetQueryStringValue("doType");
            //存在ajax请求
            if (doType != "")
            {
                AJAX(doType);
            }
            #endregion

            if (!IsPostBack)
            {
                //权限判断
                PowerControl();
                //初始化
                DataInit();
            }
        }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var info    = new EyouSoft.BLL.SysStructure.BSys().GetSysInfo(Utils.GetQueryStringValue("SysId"));
            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(Utils.GetQueryStringValue("cid"));

            if (info != null)
            {
                this.ltrSysId.Text     = info.SysId;
                this.ltrCompanyId.Text = info.CompanyId;
                this.ltrIssueTime.Text = info.IssueTime.ToString();
                this.ltrSysName1.Text  = this.ltrSysName2.Text = info.SysName;
                this.ltrFullname.Text  = info.FullName;
                this.ltrTelephone.Text = info.Telephone;
                this.ltrMobile.Text    = info.Mobile;
                this.ltrUserId.Text    = info.UserId;
                this.ltrUsername.Text  = info.Username;
                this.ltrPassword.Text  = info.Password.NoEncryptPassword;
            }

            if (setting.SmsConfig == null || !setting.SmsConfig.IsEnabled)
            {
                phSms.Visible       = false;
                phSmsCreate.Visible = true;
            }
            else
            {
                ltrSmsAccount.Text   = setting.SmsConfig.Account;
                ltrSmsAppKey.Text    = setting.SmsConfig.AppKey;
                ltrSmsAppSecret.Text = setting.SmsConfig.AppSecret;

                phSms.Visible       = true;
                phSmsCreate.Visible = false;
            }
        }
Пример #5
0
        /// <summary>
        /// 获取短线更改提醒
        /// </summary>
        private string GetShortLine()
        {
            string result = string.Empty;

            System.Text.StringBuilder strbuder = new System.Text.StringBuilder();

            EyouSoft.Model.ComStructure.MComSetting model = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(SiteUserInfo.CompanyId);

            if (model != null && model.IsEnableDuanXian)
            {
                IList <EyouSoft.Model.TourStructure.MCarTypeSeatChange> list = new BTour().GetCarTypeSeatChangeList(SiteUserInfo.CompanyId, SiteUserInfo.TourCompanyInfo.CompanyId, 5, null);
                if (list != null)
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        strbuder.AppendFormat(" <li><em>{0}</em> <a href='{1}'> {2}({4})</a><span class='date'>{3}</span> </li>", (i + 1).ToString(), list[i].CarChangeType == CarChangeType.车地点变更 ? "MyOrder.aspx?orderId=" + list[i].OrderId + "&id=" + list[i].Id : "MyOrder.aspx?tourid=" + list[i].TourId + "&id=" + list[i].Id, list[i].RouteName.Length >= 20 ? list[i].RouteName.Substring(0, 10) : list[i].RouteName, list[i].IssueTime.ToString("MM-dd"), list[i].CarChangeType == CarChangeType.车型座次变更 ? "计划变更" : "订单变更");
                    }
                    result = "{\"result\":\"1\",\"msg\":\"" + strbuder.ToString() + "\"}";
                }
                else
                {
                    result = "{\"result\":\"0\",\"msg\":\"\"}";
                }
            }
            return(result);
        }
Пример #6
0
        /// <summary>
        /// 初始化打印路径信息
        /// </summary>
        void InitPrintPath()
        {
            var printBLL = new EyouSoft.BLL.ComStructure.BComSetting();

            Print_JieSuanDan = printBLL.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.结算单);
            printBLL         = null;
        }
Пример #7
0
        /// <summary>
        /// 游客名单
        /// </summary>
        /// <param name="tourId"></param>
        /// <returns></returns>
        protected string GetPrintPage(string tourId)
        {
            string url = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.游客名单);

            url = url + "?tourId=" + tourId;
            return(url);
        }
Пример #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(CompanyId))
            {
                var domain = EyouSoft.Security.Membership.UserProvider.GetDomain();
                if (domain != null)
                {
                    CompanyId = domain.CompanyId;
                }
            }

            if (string.IsNullOrEmpty(CompanyId))
            {
                Response.Clear();
                Response.Write("异常请求,系统域名配置错误。");
                Response.End();
            }

            if (!IsPostBack)
            {
                this.Notice1.CompanyId = CompanyId;
                this.Notice1.ItemType  = EyouSoft.Model.EnumType.GovStructure.ItemType.供应商;
            }

            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CompanyId);

            if (setting != null && !string.IsNullOrEmpty(setting.GYSLogo))
            {
                this.ltrLogo.Text = "<img src=\"" + setting.GYSLogo + "\" style=\"width:371px;height:64px;\" />";
            }
        }
Пример #9
0
        /// <summary>
        /// 初始化团号规则
        /// </summary>
        protected void PageInit()
        {
            EyouSoft.Model.ComStructure.MComSetting model = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(SiteUserInfo.CompanyId);
            IList <EyouSoft.Model.ComStructure.MTourNoOptionCode> TourCodeItemList  = new EyouSoft.BLL.ComStructure.BTourNoOptionCode().GetModel(SiteUserInfo.CompanyId);
            IList <EyouSoft.Model.ComStructure.MComDepartment>    ComDepartmentList = new EyouSoft.BLL.ComStructure.BComDepartment().GetList(SiteUserInfo.CompanyId);

            if (!string.IsNullOrEmpty(model.TourNoSetting))
            {
                string[] str = new string[model.TourNoSetting.Length - 1];
                for (int i = 0; i < model.TourNoSetting.Length - 1; i++)
                {
                    str[i] = model.TourNoSetting.Substring(i, 1);
                }
                repItemList.DataSource = str;
                repItemList.DataBind();
            }
            else
            {
                repItemList.DataSource = new string[] { "0" };
                repItemList.DataBind();
            }
            repDepartList.DataSource = ComDepartmentList;
            repDepartList.DataBind();
            repTourTypeList.DataSource = EyouSoft.Common.EnumObj.GetList(typeof(EyouSoft.Model.EnumType.TourStructure.TourType));
            repTourTypeList.DataBind();

            System.Text.StringBuilder Depart      = new System.Text.StringBuilder("[");
            System.Text.StringBuilder TourType    = new System.Text.StringBuilder("[");
            System.Text.StringBuilder LDateFormat = new System.Text.StringBuilder("[");
            foreach (var item in TourCodeItemList)
            {
                if (item.ItemType == EyouSoft.Model.EnumType.ComStructure.OptionItemType.公司简称)
                {
                    txtCompanyCode.Text = item.Code;
                }
                if (item.ItemType == EyouSoft.Model.EnumType.ComStructure.OptionItemType.部门简称)
                {
                    Depart.AppendFormat("{0}\"ID\":\"{1}\",\"Value\":\"{2}\"{3},", "{", item.ItemId, item.Code, "}");
                }
                if (item.ItemType == EyouSoft.Model.EnumType.ComStructure.OptionItemType.团队类型)
                {
                    TourType.AppendFormat("{0}\"ID\":\"{1}\",\"Value\":\"{2}\"{3},", "{", item.ItemId, item.Code, "}");
                }
                if (item.ItemType == EyouSoft.Model.EnumType.ComStructure.OptionItemType.出团日期)
                {
                    LDateFormat.AppendFormat("{0}\"ID\":\"{1}\",\"Value\":\"{2}\"{3},", "{", item.ItemId, item.Code, "}");
                }
            }
            Depart.Replace(",", "", Depart.Length - 1, 1);
            TourType.Replace(",", "", TourType.Length - 1, 1);
            LDateFormat.Replace(",", "", LDateFormat.Length - 1, 1);
            Depart.Append("]");
            TourType.Append("]");
            LDateFormat.Append("]");
            DepartValueList   = Depart.ToString();
            TourTypeValueList = TourType.ToString();
            LDateFormatList   = LDateFormat.ToString();
        }
Пример #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            TourId = Utils.GetQueryStringValue("tourid");

            var tourType = new EyouSoft.BLL.TourStructure.BTour().GetTourType(TourId);

            var bll = new EyouSoft.BLL.ComStructure.BComSetting();

            Print_DaoYouRenWuDan = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.导游任务单);
            if (tourType == TourType.出境团队 ||
                tourType == TourType.地接团队 ||
                tourType == TourType.组团团队)
            {
                Print_XingChengDan = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.团队行程单);
            }
            else
            {
                Print_XingChengDan = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.散拼行程单);
            }
            Print_YouKeMingDan             = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.游客名单);
            Print_DingDanXingXiHuiZongBiao = bll.GetPrintUri(CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.订单信息汇总表);

            if (!string.IsNullOrEmpty(Print_DaoYouRenWuDan) && Print_DaoYouRenWuDan != "javascript:void(0)")
            {
                Print_DaoYouRenWuDan += "?tourid=" + TourId;
            }
            else
            {
                Print_DaoYouRenWuDan = "javascript:void(0)";
            }

            if (!string.IsNullOrEmpty(Print_XingChengDan) && Print_XingChengDan != "javascript:void(0)")
            {
                Print_XingChengDan += "?tourid=" + TourId;
            }
            else
            {
                Print_XingChengDan = "javascript:void(0)";
            }

            if (!string.IsNullOrEmpty(Print_YouKeMingDan) && Print_YouKeMingDan != "javascript:void(0)")
            {
                Print_YouKeMingDan += "?tourid=" + TourId;
            }
            else
            {
                Print_YouKeMingDan = "javascript:void(0)";
            }

            if (!string.IsNullOrEmpty(Print_DingDanXingXiHuiZongBiao) && Print_DingDanXingXiHuiZongBiao != "javascript:void(0)")
            {
                Print_DingDanXingXiHuiZongBiao += "?type=2&tourid=" + TourId;
            }
            else
            {
                Print_DingDanXingXiHuiZongBiao = "javascript:void(0)";
            }
        }
Пример #11
0
        protected void Save()
        {
            string filePageMei      = Utils.GetFormValue(UploadYM.ClientHideID);
            string filePageFoot     = Utils.GetFormValue(UploadYJ.ClientHideID);
            string fileWordTemplate = Utils.GetFormValue(UploadWordTemp.ClientHideID);
            string fileSeal         = Utils.GetFormValue(UploadGZ.ClientHideID);

            EyouSoft.Model.ComStructure.MComSetting model = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CurrentUserCompanyID);
            model = model ?? new EyouSoft.Model.ComStructure.MComSetting();

            if (!string.IsNullOrEmpty(filePageMei))
            {
                model.PagePath = filePageMei.Split('|')[1];
            }
            else
            {
                model.PagePath = Utils.GetFormValue("hidYM");
            }

            if (!string.IsNullOrEmpty(filePageFoot))
            {
                model.FooterPath = filePageFoot.Split('|')[1];
            }
            else
            {
                model.FooterPath = Utils.GetFormValue("hidYJ");
            }

            if (!string.IsNullOrEmpty(fileWordTemplate))
            {
                model.WordTemplate = fileWordTemplate.Split('|')[1];
            }
            else
            {
                model.WordTemplate = Utils.GetFormValue("hidWordTemp");
            }
            if (!string.IsNullOrEmpty(fileSeal))
            {
                model.CompanyChapter = fileSeal.Split('|')[1];
            }
            else
            {
                model.CompanyChapter = Utils.GetFormValue("hidGZ");
            }
            model.CompanyId = SiteUserInfo.CompanyId;
            Response.Clear();
            if (new EyouSoft.BLL.ComStructure.BComSetting().UpdateComSetting(model))
            {
                Response.Write(UtilsCommons.AjaxReturnJson("1", "修改成功!"));
            }
            else
            {
                Response.Write(UtilsCommons.AjaxReturnJson("0", "修改失败!"));
            }
            Response.End();
        }
Пример #12
0
        /// <summary>
        /// 根据类型得到提醒数
        /// </summary>
        /// <param name="CompanyId"></param>
        /// <param name="OperatorId"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        public int GetRemindCountByType(string CompanyId, string OperatorId, RemindType type)
        {
            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CompanyId);

            if (setting == null)
            {
                setting = new EyouSoft.Model.ComStructure.MComSetting();
            }

            return(_idal.GetRemindCountByType(CompanyId, OperatorId, type, setting));
            //int recordCount = 0;
            //switch (type)
            //{
            //    case RemindType.变更提醒:
            //        {
            //            int temp = 0;
            //            GetOrderChangeRemindLst(20, 1, ref temp, CompanyId, OperatorId);
            //            GetTourChangeRemindLst(20, 1, ref recordCount, CompanyId, OperatorId);
            //            recordCount += temp;
            //            break;
            //        }
            //    case RemindType.订单提醒:
            //        GetOrderRemindLst(20, 1, ref recordCount, OperatorId, CompanyId);
            //        break;
            //    case RemindType.合同到期提醒:
            //        {
            //            int temp1 = 0;
            //            int temp2 = 0;
            //            GetLaborContractExpireRemindLst(20, 1, ref temp1, CompanyId);
            //            GetCompanyContractExpireRemindLst(20, 1, ref temp2, CompanyId);
            //            GetSourceContractExpireRemindLst(20, 1, ref recordCount, CompanyId);
            //            recordCount = recordCount + temp1 + temp2;
            //            break;
            //        }
            //    case RemindType.计调提醒:
            //        GetPlanRemindLst(20, 1, ref recordCount, CompanyId, OperatorId);
            //        break;
            //    case RemindType.收款提醒:
            //        GetReceivablesRemindLst(20, 1, ref recordCount, CompanyId, OperatorId);
            //        break;
            //    case RemindType.预控到期提醒:
            //        {
            //            int temp1 = 0;
            //            int temp2 = 0;
            //            GetHotelcontrolHotelUsedLst(20, 1, ref temp1, CompanyId, OperatorId);
            //            GetShipcontrolHotelUsedLst(20, 1, ref temp2, CompanyId, OperatorId);
            //            GetCarcontrolHotelUsedLst(20, 1, ref recordCount, CompanyId, OperatorId);
            //            recordCount = recordCount + temp1 + temp2;
            //            break;
            //        }
            //    case RemindType.询价提醒:
            //        GetInquiryRemindLst(20, 1, ref recordCount, OperatorId, CompanyId);
            //        break;
            //}
            //return recordCount;
        }
Пример #13
0
        /// <summary>
        /// 获取客户超限详细(NULL表示未超限)
        /// </summary>
        /// <param name="CrmId">客户编号</param>
        /// <param name="Money">当前金额</param>
        /// <param name="CompanyId">公司编号</param>
        /// <returns></returns>
        public EyouSoft.Model.FinStructure.MCustomerWarning GetCustomerOverrunDetail(string CrmId, decimal Money, string CompanyId)
        {
            bool ArrearsRangeControl = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CompanyId).ArrearsRangeControl;

            if (ArrearsRangeControl)
            {
                return(dal.GetCustomerOverrunDetail(CrmId, Money));
            }
            return(null);
        }
Пример #14
0
        /// <summary>
        /// 初始化打印路径
        /// </summary>
        void InitPrintFilePath()
        {
            var bll = new EyouSoft.BLL.ComStructure.BComSetting();

            PrintFilePath_HeSuanDan       = bll.GetPrintUri(CurrentUserCompanyID, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.核算单);
            PrintFilePath_ZT_XingChengDan = bll.GetPrintUri(CurrentUserCompanyID, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.团队行程单);
            PrintFilePath_SP_XingChengDan = bll.GetPrintUri(CurrentUserCompanyID, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.散拼行程单);

            bll = null;
        }
Пример #15
0
        /// <summary>
        /// 游客名单
        /// </summary>
        /// <param name="tourId"></param>
        /// <returns></returns>
        protected string GetPrintPage(string tourId, string orderId)
        {
            string url = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.分销商平台游客信息打印单);

            if (url != "javascript:void(0)")
            {
                url = url + "?tourId=" + tourId + "&orderId=" + orderId;
            }
            return(url);
        }
Пример #16
0
        /// <summary>
        /// 获取游船提前提醒天数
        /// </summary>
        /// <returns></returns>
        protected string GetLastTime()
        {
            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(SiteUserInfo.CompanyId);

            if (setting != null)
            {
                return(setting.ShipControlRemind.ToString());
            }

            return(string.Empty);
        }
Пример #17
0
        /// <summary>
        /// 公司合同到期提醒
        /// 说明:提醒权限人
        /// </summary>
        /// <param name="pageSize">每页条数</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="companyId">系统公司编号</param>
        /// <returns>劳动合同信息列表</returns>
        public IList <MCompanyContractExpireRemind> GetCompanyContractExpireRemindLst(int pageSize, int pageIndex, ref int recordCount, string companyId)
        {
            int EarlyDays = 10;
            var setting   = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(companyId);

            if (setting != null)
            {
                EarlyDays = setting.ComPanyContractRemind;
            }

            return(_idal.GetCompanyContractExpireRemindLst(pageSize, pageIndex, ref recordCount, companyId, EarlyDays));
        }
Пример #18
0
        /// <summary>
        /// 获取短信账户信息
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <returns></returns>
        public EyouSoft.Model.SmsStructure.MSmsAccountInfo GetAccountInfo(string companyId)
        {
            if (string.IsNullOrEmpty(companyId))
            {
                return(null);
            }
            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(companyId);

            if (setting == null || setting.SmsConfig == null || !setting.SmsConfig.IsEnabled)
            {
                return(null);
            }

            var api = GetSmsCenterApi();

            var account = new EyouSoft.BLL.SmsCenter.MSmsAccountBase();

            account.AccountId = setting.SmsConfig.Account;
            account.AppKey    = setting.SmsConfig.AppKey;
            account.AppSecret = setting.SmsConfig.AppSecret;

            var apiRetInfo = api.GetSmsAccount(account);

            if (apiRetInfo != null)
            {
                var info = new EyouSoft.Model.SmsStructure.MSmsAccountInfo();

                info.Account   = apiRetInfo.AccountId;
                info.AppKey    = apiRetInfo.AppKey;
                info.AppSecret = apiRetInfo.AppSecret;
                info.YuE       = apiRetInfo.Amount;


                if (apiRetInfo.SmsUnitPrice != null && apiRetInfo.SmsUnitPrice.Length > 0)
                {
                    info.Prices = new List <EyouSoft.Model.SmsStructure.MSmsPriceInfo>();
                    foreach (var item in apiRetInfo.SmsUnitPrice)
                    {
                        var tmp = new EyouSoft.Model.SmsStructure.MSmsPriceInfo();
                        tmp.ChannelIndex = (int)item.Cnannel;
                        tmp.Price        = item.Price;
                        tmp.ChannelName  = item.Name;

                        info.Prices.Add(tmp);
                    }
                }

                return(info);
            }

            return(null);
        }
Пример #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            EyouSoft.BLL.ComStructure.BComSetting comSettingBll = new EyouSoft.BLL.ComStructure.BComSetting();
            PrintPageSp = comSettingBll.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.分销商平台散拼线路行程单);
            PrintPageDd = comSettingBll.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.分销商平台订单信息汇总单);
            PrintPageYk = comSettingBll.GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.分销商平台游客信息打印单);



            //ajax
            string type = Request.Params["Type"];

            if (!string.IsNullOrEmpty(type))
            {
                if (type.Equals("Cancle"))
                {
                    Response.Clear();
                    Response.Write(Cancle());
                    Response.End();
                }
            }
            queryID      = Utils.GetQueryStringValue("id");
            queryTourId  = Utils.GetQueryStringValue("tourid");
            queryOrderID = Utils.GetQueryStringValue("orderId");
            if (!IsPostBack)
            {
                //公告
                this.HeadDistributorControl1.CompanyId = SiteUserInfo.CompanyId;
                BindSource();
            }

            //将获取订单信息改为已读状态

            if (queryID != "")
            {
                EyouSoft.BLL.TourStructure.BTour bll = new EyouSoft.BLL.TourStructure.BTour();
                bll.IsReadCarTypeSeatChange(queryID);
            }

            string getdate = Utils.GetQueryStringValue("getdate");

            if (!string.IsNullOrEmpty(getdate))
            {
                Response.Clear();
                Response.Write(GetShortLine());
                Response.End();
            }
        }
Пример #20
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        void InitSetting()
        {
            string s       = "var setting={0};";
            var    setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CompanyId);

            if (setting != null)
            {
                s = string.Format(s, Newtonsoft.Json.JsonConvert.SerializeObject(setting));
            }
            else
            {
                s = string.Format(s, "null");
            }

            RegisterScript(s);
        }
Пример #21
0
        /// <summary>
        /// 设置短信账户价格信息
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="items">价格信息集合</param>
        /// <returns></returns>
        public bool SetSmsPrices(string companyId, IList <EyouSoft.Model.SmsStructure.MSmsPriceInfo> items)
        {
            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(companyId);

            if (setting == null || setting.SmsConfig == null || !setting.SmsConfig.IsEnabled)
            {
                return(false);
            }
            if (items == null || items.Count == 0)
            {
                return(false);
            }


            return(SetSmsPrices(setting.SmsConfig.Account, setting.SmsConfig.AppKey, setting.SmsConfig.AppSecret, items));
        }
Пример #22
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Ajax
            string type = EyouSoft.Common.Utils.GetFormValue("Type");

            if (!string.IsNullOrEmpty(type))
            {
                string id = EyouSoft.Common.Utils.GetFormValue("OrderId");
                Response.Clear();
                Response.Write(DoUpdate(id));
                Response.End();
            }

            if (!IsPostBack)
            {
                string orderId = EyouSoft.Common.Utils.GetQueryStringValue("OrderId");

                if (!string.IsNullOrEmpty(orderId))
                {
                    PageInit(orderId);
                    this.hfLDate.Value = Utils.GetQueryStringValue("LDate");
                    this.hfRDate.Value = Utils.GetQueryStringValue("RDate");
                }

                #region 获得留位时间
                EyouSoft.BLL.ComStructure.BComSetting   settingBll = new EyouSoft.BLL.ComStructure.BComSetting();
                EyouSoft.Model.ComStructure.MComSetting settModel  = settingBll.GetModel(SiteUserInfo.CompanyId);
                if (settModel != null)
                {
                    if (settModel.SaveTime != 0)
                    {
                        this.MaxDateTime = DateTime.Now.AddMinutes(settModel.SaveTime).ToString("yyyy-MM-dd HH:mm");
                    }
                    else
                    {
                        this.MaxDateTime = DateTime.Now.AddYears(1).ToString("yyyy-MM-dd HH:mm");
                    }
                }
                else
                {
                    this.MaxDateTime = DateTime.Now.AddYears(1).ToString("yyyy-MM-dd HH:mm");
                }
                settingBll = null;
                settModel  = null;
                #endregion
            }
        }
Пример #23
0
        protected void Save()
        {
            IList <EyouSoft.Model.ComStructure.MTourNoOptionCode> TourNoOptionCodeList = new List <EyouSoft.Model.ComStructure.MTourNoOptionCode>();

            EyouSoft.Model.ComStructure.MComSetting model = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CurrentUserCompanyID);
            model = model ?? new EyouSoft.Model.ComStructure.MComSetting();

            //model.ShowBeforeMonth = Utils.GetInt(showMonthBegin.Value);
            //model.ShowAfterMonth = Utils.GetInt(showMonthEnd.Value);
            model.SaveTime = Utils.GetInt(txtLeaveHours.Value) * 60 + Utils.GetInt(txtLeaveMinutes.Value);
            //model.RemindTime = Utils.GetInt(txtTipHours.Value) * 3600 + Utils.GetInt(txtTipMinutes.Value) * 60 + Utils.GetInt(txtTipSecond.Value);
            //if (chkCountry.Checked)
            //{
            //    model.CountryArea = Utils.GetInt(txtAdvanceDayforCountry.Value);
            //}
            //if (chkProvince.Checked)
            //{
            //    model.ProvinceArea = Utils.GetInt(txtAdvanceDayforProvince.Value);
            //}
            //if (chkForeign.Checked)
            //{
            //    model.ExitArea = Utils.GetInt(txtAdvanceDayforForeign.Value);
            //}
            //model.ArrearsRangeControl = chkQianKuaiControl.Checked;

            model.CountryArea  = Utils.GetIntSign(txtAdvanceDayforCountry.Value);
            model.ProvinceArea = Utils.GetIntSign(txtAdvanceDayforProvince.Value);
            model.ExitArea     = Utils.GetIntSign(txtAdvanceDayforForeign.Value);

            //model.FinancialExpensesReview = chkPayOutCheck.Checked;
            //model.FinancialIncomeReview = chkIncomeCheck.Checked;
            //model.IntegralProportion = Utils.GetInt(txtCreditsPer.Value);
            model.SkipGuide         = chkGuidBZ.Checked;
            model.SkipSale          = chkSaleBZ.Checked;
            model.SkipFinalJudgment = chkEndBZ.Checked;
            model.CompanyId         = SiteUserInfo.CompanyId;
            Response.Clear();
            if (new EyouSoft.BLL.ComStructure.BComSetting().UpdateComSetting(model))
            {
                Response.Write(UtilsCommons.AjaxReturnJson("1", "修改成功"));
            }
            else
            {
                Response.Write(UtilsCommons.AjaxReturnJson("1", "修改失败"));
            }
            Response.End();
        }
Пример #24
0
        /// <summary>
        /// 初始化金蝶默认科目配置
        /// </summary>
        void InitKisConfig()
        {
            var info = new EyouSoft.BLL.ComStructure.BComSetting().GetKisConfigInfo(CompanyId);

            string s = "var kisConfig={0};";

            if (info != null)
            {
                s = string.Format(s, Newtonsoft.Json.JsonConvert.SerializeObject(info));
            }
            else
            {
                s = string.Format(s, "{}");
            }

            RegisterScript(s);
        }
Пример #25
0
        /// <summary>
        /// 打印单
        /// </summary>
        /// <param name="TourId"></param>
        /// <param name="TourType"></param>
        /// <returns></returns>
        protected string PrintUrl(object TourId, object TourType)
        {
            string Url = "#";

            if (TourType != null)
            {
                if (TourType.ToString() == EyouSoft.Model.EnumType.TourStructure.TourType.出境散拼.ToString() || TourType.ToString() == EyouSoft.Model.EnumType.TourStructure.TourType.地接散拼.ToString() || TourType.ToString() == EyouSoft.Model.EnumType.TourStructure.TourType.组团散拼.ToString())
                {
                    Url = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.散拼行程单) + "?tourId=" + TourId;
                }
                if (TourType.ToString() == EyouSoft.Model.EnumType.TourStructure.TourType.出境团队.ToString() || TourType.ToString() == EyouSoft.Model.EnumType.TourStructure.TourType.地接团队.ToString() || TourType.ToString() == EyouSoft.Model.EnumType.TourStructure.TourType.组团团队.ToString())
                {
                    Url = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.团队行程单) + "?tourId=" + TourId;
                }
            }
            return(Url);
        }
Пример #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Ajax
            string type = Request.Params["Type"];

            if (!string.IsNullOrEmpty(type))
            {
                if (type.Equals("Save"))
                {
                    Response.Clear();
                    Response.Write(Save());
                    Response.End();
                }
            }

            if (!IsPostBack)
            {
                string tourId = EyouSoft.Common.Utils.GetQueryStringValue("TourId");
                PageInit(tourId);
                //公告
                this.HeadDistributorControl1.CompanyId = SiteUserInfo.CompanyId;

                #region 获得留位时间
                EyouSoft.BLL.ComStructure.BComSetting   settingBll = new EyouSoft.BLL.ComStructure.BComSetting();
                EyouSoft.Model.ComStructure.MComSetting settModel  = settingBll.GetModel(SiteUserInfo.CompanyId);
                if (settModel != null)
                {
                    if (settModel.SaveTime != 0)
                    {
                        this.MaxDateTime = DateTime.Now.AddMinutes(settModel.SaveTime).ToString("yyyy-MM-dd HH:mm");
                    }
                    else
                    {
                        this.MaxDateTime = DateTime.Now.AddYears(1).ToString("yyyy-MM-dd HH:mm");
                    }
                }
                else
                {
                    this.MaxDateTime = DateTime.Now.AddYears(1).ToString("yyyy-MM-dd HH:mm");
                }
                settingBll = null;
                settModel  = null;
                #endregion
            }
        }
Пример #27
0
        /// <summary>
        /// 获取子系统信息集合
        /// </summary>
        /// <param name="pageSize">每页显示记录数</param>
        /// <param name="pageIndex">当前页索引</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="searchInfo">查询信息</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.SysStructure.MSysInfo> GetSyss(int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.SysStructure.MSysSearchInfo searchInfo)
        {
            var items = dal.GetSyss(pageSize, pageIndex, ref recordCount, searchInfo);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(item.CompanyId);
                    if (setting != null)
                    {
                        item.SmsConfig = setting.SmsConfig;
                    }
                }
            }

            return(items);
        }
Пример #28
0
        /// <summary>
        /// 游船预控到期提醒
        /// 说明:提醒预控登记人
        /// </summary>
        /// <param name="pageSize">每页条数</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="companyId">系统公司编号</param>
        /// <param name="operatorId">用户编号</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.SourceStructure.MSourceSueShip> GetShipcontrolHotelUsedLst(int pageSize, int pageIndex, ref int recordCount, string companyId, string operatorId)
        {
            int EarlyDays = 10;
            var setting   = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(companyId);

            if (setting != null)
            {
                EarlyDays = setting.ShipControlRemind;
            }

            EyouSoft.Model.SourceStructure.MSourceSueShipSearch search = new EyouSoft.Model.SourceStructure.MSourceSueShipSearch()
            {
                CompanyId  = companyId,
                OperatorId = operatorId,
                IsTranTip  = true,
                EarlyDays  = EarlyDays
            };
            return(Sourcedal.GetListSueShip(pageIndex, pageSize, ref recordCount, search));
        }
Пример #29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         EyouSoft.Model.SysStructure.MSysDomain sysDomain = EyouSoft.Security.Membership.UserProvider.GetDomain();
         if (sysDomain != null)
         {
             EyouSoft.Model.ComStructure.MComSetting settingModel = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(sysDomain.CompanyId);
             if (settingModel != null)
             {
                 this.LogoImgUrl = settingModel.MLogo;
             }
         }
         if (this.LogoImgUrl != "")
         {
             this.litLogo.Text = "<img src='" + this.LogoImgUrl + "' border='0' alt='' />";
         }
     }
 }
Пример #30
0
        /// <summary>
        /// 获取表单值
        /// </summary>
        EyouSoft.Model.ComStructure.MComSetting GetFormValue()
        {
            var setting = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(CompanyId);

            setting = setting ?? new EyouSoft.Model.ComStructure.MComSetting();

            setting.CompanyId = CompanyId;

            setting.TourNoSetting              = Utils.GetFormValue("txtTourCodeRule");
            setting.ShowBeforeMonth            = Utils.GetInt(Utils.GetFormValue("txtShowBeforeMonth"), 12);
            setting.ShowAfterMonth             = Utils.GetInt(Utils.GetFormValue("txtShowAfterMonth"), 12);
            setting.SaveTime                   = Utils.GetInt(Utils.GetFormValue("txtSaveTime"), 1440);
            setting.CountryArea                = Utils.GetInt(Utils.GetFormValue("txtCountryArea"), 3);
            setting.ProvinceArea               = Utils.GetInt(Utils.GetFormValue("txtProvinceArea"), 3);
            setting.ExitArea                   = Utils.GetInt(Utils.GetFormValue("txtExitArea"), 3);
            setting.IntegralProportion         = Utils.GetInt(Utils.GetFormValue("txtIntegralProportion"), 1);
            setting.SkipGuide                  = Utils.GetFormValue("ckbSkipGuide") == "1";
            setting.SkipSale                   = Utils.GetFormValue("ckbSkipSale") == "1";
            setting.SkipFinalJudgment          = Utils.GetFormValue("ckbSkipFinalJudgment") == "1";
            setting.ContractRemind             = Utils.GetInt(Utils.GetFormValue("txtContractRemind"), 15);
            setting.SContractRemind            = Utils.GetInt(Utils.GetFormValue("txtSContractRemind"), 15);
            setting.ComPanyContractRemind      = Utils.GetInt(Utils.GetFormValue("txtComPanyContractRemind"), 15);
            setting.FinancialExpensesReview    = Utils.GetFormValue("ckbFinancialExpensesReview") == "1";
            setting.FinancialIncomeReview      = Utils.GetFormValue("ckbFinancialIncomeReview") == "1";
            setting.ArrearsRangeControl        = Utils.GetFormValue("ckbArrearsRangeControl") == "1";
            setting.HotelControlRemind         = Utils.GetInt(Utils.GetFormValue("txtHotelControlRemind"), 15);
            setting.CarControlRemind           = Utils.GetInt(Utils.GetFormValue("txtCarControlRemind"), 15);
            setting.ShipControlRemind          = Utils.GetInt(Utils.GetFormValue("txtShipControlRemind"), 15);
            setting.SightControlRemind         = Utils.GetInt(Utils.GetFormValue("txtSightControlRemind"), 15);
            setting.OtherControlRemind         = Utils.GetInt(Utils.GetFormValue("txtOtherControlRemind"), 15);
            setting.IsEnableKis                = Utils.GetFormValue("chkIsEnableKis") == "1";
            setting.MaxUserNumber              = Utils.GetInt(Utils.GetFormValue("txtMaxUserNumber"));
            setting.UserLoginLimitType         = Utils.GetEnumValue <EyouSoft.Model.EnumType.ComStructure.UserLoginLimitType>(Utils.GetFormValue("radUserLoginLimitType"), EyouSoft.Model.EnumType.ComStructure.UserLoginLimitType.None);
            setting.IsEnableDuanXian           = Utils.GetFormValue("chkIsEnableDuanXian") == "1";
            setting.IsZiDongShanChuSanPinJiHua = Utils.GetFormValue("chkIsZiDongShanChuSanPinJiHua") == "1";
            setting.ShouKuanZhiFuFangShi       = Utils.GetInt(Utils.GetFormValue("txtShouKuanZhiFuFangShi"));
            setting.FuKuanZhiFuFangShi         = Utils.GetInt(Utils.GetFormValue("txtFuKuanZhiFuFangShi"));

            setting.PrintDocument = GetPrintSettings();

            return(setting);
        }