Esempio n. 1
0
 /// <summary>
 /// 创建短信中心-常用短语及常用短语类型业务逻辑接口的实例
 /// </summary>
 /// <returns></returns>
 public static EyouSoft.IBLL.SMSStructure.ISendMessage CreateInstance()
 {
     EyouSoft.IBLL.SMSStructure.ISendMessage op1 = null;
     if (op1 == null)
     {
         op1 = ComponentFactory.Create <EyouSoft.IBLL.SMSStructure.ISendMessage>();
     }
     return(op1);
 }
Esempio n. 2
0
        protected void SendSMSMethod(int typeID)
        {
            #region 获取表单数据
            //单条短信价格
            //SMSDecimal = EyouSoft.Common.ConfigModel.ConfigClass.GetConfigDecimal("SMS_COSTOFSINGLE");
            EyouSoft.IBLL.SMSStructure.ISendMessage sBll = EyouSoft.BLL.SMSStructure.SendMessage.CreateInstance();
            string returnVal = "";
            //bool flag = false;
            List <EyouSoft.Model.SMSStructure.AcceptMobileInfo> list = new List <EyouSoft.Model.SMSStructure.AcceptMobileInfo>();
            string  strErr       = "";
            decimal teleNum      = 0;//号码数量
            string  erroNumber   = "";
            string  sendCustomer = "";
            if (!string.IsNullOrEmpty(Utils.GetFormValue(this.txt_SendPeople.UniqueID).Trim()) && ShowSender.Checked)
            {
                sendCustomer = Utils.GetFormValue(this.txt_SendPeople.UniqueID).Trim();
            }
            string tmpPhoneNo  = Utils.GetFormValue(this.txt_TelePhoneGroup.UniqueID).Trim();
            string tmpSendInfo = "";
            if (!string.IsNullOrEmpty(Utils.GetFormValue(this.txt_SendContent.UniqueID).Trim()))
            {
                tmpSendInfo = Utils.GetFormValue(this.txt_SendContent.UniqueID).Trim();
            }
            DateTime sendTime = DateTime.Now;
            if (!string.IsNullOrEmpty(Utils.GetFormValue("txt_SendSMS_OrderTime")) && StringValidate.IsDateTime(Utils.GetFormValue("txt_SendSMS_OrderTime")))
            {
                sendTime = DateTime.Parse(Utils.GetFormValue("txt_SendSMS_OrderTime"));
            }

            //发送类型
            EyouSoft.Model.SMSStructure.SendType sendType = (EyouSoft.Model.SMSStructure.SendType)Utils.GetInt(Utils.GetFormValue(this.ddl_SendType.UniqueID));
            //发送通道
            EyouSoft.Model.SMSStructure.SMSChannel sendChannel = new EyouSoft.Model.SMSStructure.SMSChannelList()[Utils.GetInt(Utils.GetFormValue(this.ddlSendChannel.UniqueID))];

            //加密手机号码
            string strEncryMobile = Utils.GetFormValue("EncryMobile");
            //有关发送所有的数据
            //isSend: false, dataSource:2, companyName:"",customerType:0, provinceId:0, cityId:0
            bool sendAll_isSend = Convert.ToBoolean(Utils.GetFormValue("isSendAll"));
            EyouSoft.Model.SMSStructure.CustomerInfo.CustomerSource sendAll_dataSource = EyouSoft.Model.SMSStructure.CustomerInfo.CustomerSource.平台组团社客户;
            string sendAll_companyName  = "";
            int    sendAll_customerType = 0;
            int    sendAll_provinceId   = 0;
            int    sendAll_cityId       = 0;
            if (sendAll_isSend)
            {
                sendAll_dataSource   = (EyouSoft.Model.SMSStructure.CustomerInfo.CustomerSource)Convert.ToInt32(Utils.GetFormValue("sendAll.dataSource"));
                sendAll_customerType = Convert.ToInt32(Utils.GetFormValue("sendAll.customerType"));
                sendAll_companyName  = Utils.GetFormValue("sendAll.companyName");
                sendAll_provinceId   = Convert.ToInt32(Utils.GetFormValue("sendAll.provinceId"));
                sendAll_cityId       = Convert.ToInt32(Utils.GetFormValue("sendAll.cityId"));
            }

            #endregion

            #region 数据验证
            if (string.IsNullOrEmpty(tmpSendInfo))
            {
                strErr += "请输入或导入发送内容!" + "\n";
            }
            //验证手机号码
            if (!string.IsNullOrEmpty(tmpPhoneNo))
            {
                tmpPhoneNo = tmpPhoneNo.Replace(',', ',');
                if (tmpPhoneNo.EndsWith(","))
                {
                    tmpPhoneNo = tmpPhoneNo.Substring(0, tmpPhoneNo.Length - 1);
                }
                string[] numberGroup = tmpPhoneNo.Split(',');
                teleNum = numberGroup.Length;
                for (int i = 0; i < teleNum; i++)
                {
                    if (StringValidate.IsMobileOrPHS(numberGroup[i]) == false)
                    {
                        erroNumber += numberGroup[i] + "\n";
                    }
                    else
                    {
                        list.Add(new EyouSoft.Model.SMSStructure.AcceptMobileInfo()
                        {
                            Mobile = numberGroup[i], IsEncrypt = false
                        });
                    }
                }
            }
            //添加加密手机号码
            if (!string.IsNullOrEmpty(strEncryMobile))
            {
                string[] numberGroup = strEncryMobile.Split(',');
                teleNum = numberGroup.Length;
                for (int i = 0; i < teleNum; i++)
                {
                    if (StringValidate.IsMobileOrPHS(numberGroup[i]) == false)
                    {
                        erroNumber += numberGroup[i] + "\n";
                    }
                    else
                    {
                        list.Add(new EyouSoft.Model.SMSStructure.AcceptMobileInfo()
                        {
                            Mobile = numberGroup[i], IsEncrypt = true
                        });
                    }
                }
            }
            //添加发送所有的号码
            if (sendAll_isSend)
            {
                IList <EyouSoft.Model.SMSStructure.AcceptMobileInfo> sendAll_list = EyouSoft.BLL.SMSStructure.Customer.CreateInstance().GetMobiles(CompanyID, "", sendAll_customerType, sendAll_dataSource, sendAll_provinceId, sendAll_cityId);
                if (sendAll_list != null && sendAll_list.Count > 0)
                {
                    list.AddRange(sendAll_list);
                }
            }
            if (list == null || list.Count <= 0)
            {
                strErr += "请输入或导入手机号码!" + "\n";
            }
            if (erroNumber != "")
            {
                strErr += erroNumber + "以上号码格式不正确!" + "\n";
            }
            #endregion

            if (strErr != "")
            {
                returnVal = "0@" + strErr;
            }
            else
            {
                if (typeID == 0)
                {
                    #region 发送短信之前确认发送信息
                    EyouSoft.Model.SMSStructure.SendMessageInfo SMS_Model = new EyouSoft.Model.SMSStructure.SendMessageInfo();

                    SMS_Model.Mobiles      = list;
                    SMS_Model.CompanyId    = CompanyID;
                    SMS_Model.SMSContent   = tmpSendInfo;
                    SMS_Model.UserFullName = sendCustomer;
                    SMS_Model.SendChannel  = sendChannel;
                    SMS_Model.SendType     = sendType;
                    SMS_Model.SendTime     = sendTime;

                    EyouSoft.Model.SMSStructure.SendResultInfo sModel = sBll.ValidateSend(SMS_Model);
                    if (sModel != null)
                    {
                        if (sModel.IsSucceed == true)
                        {
                            //验证成功返回帐户余额以及此次所要发送的短信条数
                            returnVal = string.Format("1@您的账户当前余额为:{0},此次消费金额为:{1},将共发送短信{2}条!是否确定发送短信?"
                                                      , sModel.AccountMoney.ToString("C2")
                                                      , sModel.CountFee.ToString("C2")
                                                      , (sModel.WaitSendMobileCount + sModel.WaitSendPHSCount).ToString());
                        }
                        else if (sModel.ErrorMessage.IndexOf("余额不足") > -1)
                        {
                            returnVal = "2@" + sModel.ErrorMessage;
                        }
                        else
                        {
                            returnVal = "0@" + sModel.ErrorMessage;
                        }
                    }
                    sModel    = null;
                    SMS_Model = null;
                    #endregion
                }
                else
                {
                    #region 发送操作

                    EyouSoft.Model.SMSStructure.SendMessageInfo sendMessageInfo = new EyouSoft.Model.SMSStructure.SendMessageInfo();
                    sendMessageInfo.CompanyId    = CompanyID;
                    sendMessageInfo.CompanyName  = this.SiteUserInfo.CompanyName;
                    sendMessageInfo.UserId       = this.SiteUserInfo.ID;
                    sendMessageInfo.UserFullName = sendCustomer;
                    sendMessageInfo.SMSContent   = tmpSendInfo;
                    sendMessageInfo.SendTime     = sendTime;
                    sendMessageInfo.Mobiles      = list;
                    sendMessageInfo.SendChannel  = sendChannel;
                    sendMessageInfo.SendType     = sendType;

                    EyouSoft.Model.SMSStructure.SendResultInfo SendResultModel = sBll.Send(sendMessageInfo);

                    if (SendResultModel.IsSucceed)
                    {
                        string isHasSendUser = "";

                        if (!string.IsNullOrEmpty(sendMessageInfo.UserFullName))
                        {
                            isHasSendUser = "******";
                        }

                        decimal costFee = sendMessageInfo.SendType == EyouSoft.Model.SMSStructure.SendType.直接发送 ? SendResultModel.SendFee : SendResultModel.CountFee;
                        returnVal = "1@您本次共发送短信" + sendMessageInfo.SMSContentSendComplete.Length + "个字" + isHasSendUser + "!\n发送移动、联通共" + SendResultModel.MobileSendNumberCount + "个号码、\n发送小灵通共" + SendResultModel.PHSSendNumberCount + "个号码、\n实际共消费金额为:" + costFee.ToString("C2") + "、\n实际发送短信" + (SendResultModel.MobileSendCount + SendResultModel.PHSSendCount) + "条";
                    }
                    else if (SendResultModel.ErrorMessage.IndexOf("余额不足") > -1)
                    {
                        returnVal = "2@" + SendResultModel.ErrorMessage;
                    }
                    else
                    {
                        returnVal = "0@" + SendResultModel.ErrorMessage;
                    }

                    SendResultModel = null;
                    sendMessageInfo = null;

                    #endregion
                }
            }
            Response.Clear();
            Response.Write(returnVal);
            Response.End();
            sBll = null;
        }
Esempio n. 3
0
        private string FormSave()
        {
            //声明操作BLL
            EyouSoft.IBLL.NewTourStructure.IPowderList tourBll = EyouSoft.BLL.NewTourStructure.BPowderList.CreateInstance();
            //创建新的订单
            EyouSoft.Model.NewTourStructure.MTourOrder orderModel = new EyouSoft.Model.NewTourStructure.MTourOrder();

            string tourID = Utils.GetQueryStringValue("tourID");
            //成人数
            int adultCount = Utils.GetInt(Utils.GetFormValue(this.txtAdultCount.UniqueID));

            if (adultCount == 0)
            {
                return("请输入成人数!");
            }
            //儿童数
            int childCount = Utils.GetInt(Utils.GetFormValue(this.txtChildCount.UniqueID));
            //单房差
            int otherCount = Utils.GetInt(Utils.GetFormValue(this.txtOtherCount.UniqueID));
            //游客联系人
            string contact = Utils.GetFormValue(this.txtContact.UniqueID);
            //游客联系电话
            string conTactTel = Utils.GetFormValue(this.txtConTactTel.UniqueID);
            //负责人
            string fzr = Utils.GetFormValue(this.txtFzr.UniqueID);

            if (fzr == "")
            {
                fzr = SiteUserInfo.ContactInfo.ContactName;
            }
            //负责人电话
            string fzrTel = Utils.GetFormValue(this.txtFzrTel.UniqueID);

            if (fzrTel == "")
            {
                fzrTel = SiteUserInfo.ContactInfo.Tel;
            }
            //增减价格
            decimal addPrice = 0;

            decimal.TryParse(Utils.GetFormValue(this.txtAddPrice.UniqueID), out addPrice);
            //增减结算价
            decimal reductPrice = 0;

            decimal.TryParse(Utils.GetFormValue(this.txtReductPrice.UniqueID), out reductPrice);
            //游客备注
            string cusRemark = Utils.GetFormValue(this.txtCusRemark.UniqueID);
            //组团备注
            string remark = Utils.GetFormValue(this.txtRemark.UniqueID);

            #region 处理旅客
            string[] txtName    = Utils.GetFormValues("txtName");
            string[] txtTel     = Utils.GetFormValues("txtTel");
            string[] txtCard    = Utils.GetFormValues("txtCard");
            string[] txtCardS   = Utils.GetFormValues("txtCardS");
            string[] txtCardT   = Utils.GetFormValues("txtCardT");
            string[] sltSex     = Utils.GetFormValues("sltSex");
            string[] sltChild   = Utils.GetFormValues("sltChild");
            string[] txtNumber  = Utils.GetFormValues("txtNumber");
            string[] txtRemarks = Utils.GetFormValues("txtRemarks");
            string[] cbxVisitor = Utils.GetFormValues("cbxVisitor");


            IList <EyouSoft.Model.NewTourStructure.MTourOrderCustomer> customerList = new List <EyouSoft.Model.NewTourStructure.MTourOrderCustomer>();

            if (txtName.Length > 0)
            {
                for (int i = 0; i < txtName.Length; i++)
                {
                    EyouSoft.Model.NewTourStructure.MTourOrderCustomer model = new EyouSoft.Model.NewTourStructure.MTourOrderCustomer();
                    model.CertificatesType = EyouSoft.Model.TicketStructure.TicketCardType.身份证;
                    model.CompanyId        = SiteUserInfo.CompanyID;
                    if (cbxVisitor.Contains((i + 1).ToString()))
                    {
                        model.IsSaveToTicketVistorInfo = true;
                    }
                    model.Mobile       = txtTel[i];
                    model.CradType     = sltChild[i] == "0" ? EyouSoft.Model.TicketStructure.TicketVistorType.成人 : EyouSoft.Model.TicketStructure.TicketVistorType.儿童;
                    model.IdentityCard = txtCard[i];
                    model.IssueTime    = DateTime.Now;
                    model.Notes        = txtRemarks[i];
                    model.OtherCard    = txtCardT[i];
                    model.Passport     = txtCardS[i];
                    model.Sex          = sltSex[i] == "0" ? EyouSoft.Model.CompanyStructure.Sex.男 : EyouSoft.Model.CompanyStructure.Sex.女;
                    model.SiteNo       = txtNumber[i];
                    model.VisitorName  = txtName[i];
                    customerList.Add(model);
                }
            }
            #endregion

            #region 订单实体赋值
            orderModel.Add       = addPrice;
            orderModel.AdultNum  = adultCount;
            orderModel.Reduction = reductPrice;
            #region 获得计划中价格信息
            decimal reAdultPrice = 0;
            decimal reChilePrice = 0;
            decimal reOtherPrice = 0;
            decimal seAdultPrice = 0;
            decimal seChildPrice = 0;

            EyouSoft.Model.NewTourStructure.MPowderList tourModel = tourBll.GetModel(tourID);
            if (tourModel != null)
            {
                reAdultPrice = tourModel.RetailAdultPrice;
                reChilePrice = tourModel.RetailChildrenPrice;
                reOtherPrice = tourModel.MarketPrice;
                seAdultPrice = tourModel.SettlementAudltPrice;
                seChildPrice = tourModel.SettlementChildrenPrice;

                //订单实体赋值
                orderModel.BusinessNotes = "";
                orderModel.DayNum        = tourModel.Day;
                orderModel.LateNum       = tourModel.Late;
                orderModel.LeaveDate     = tourModel.LeaveDate;
                orderModel.RouteId       = tourModel.RouteId;
                orderModel.RouteName     = tourModel.RouteName;
                orderModel.ScheduleNum   = tourModel.OrderPeopleNum;
                orderModel.TourId        = tourModel.TourId;
                orderModel.TourNo        = tourModel.TourNo;
            }
            else
            {
                Response.Clear();
                Response.Write("error");
                Response.End();
            }
            #endregion
            orderModel.ChildPrice              = reChilePrice;
            orderModel.ChildrenNum             = childCount;
            orderModel.Customers               = customerList;
            orderModel.IssueTime               = DateTime.Now;
            orderModel.MarketPrice             = reOtherPrice;
            orderModel.OperationMsg            = "";
            orderModel.OperatorId              = SiteUserInfo.ID;
            orderModel.OperatorName            = SiteUserInfo.ContactInfo.ContactName;
            orderModel.OrderStatus             = EyouSoft.Model.NewTourStructure.PowderOrderStatus.组团社待处理;
            orderModel.PaymentStatus           = EyouSoft.Model.NewTourStructure.PaymentStatus.游客未支付;
            orderModel.PersonalPrice           = reAdultPrice;
            orderModel.SaveDate                = null;
            orderModel.SettlementAudltPrice    = seAdultPrice;
            orderModel.SettlementChildrenPrice = seChildPrice;
            orderModel.SingleRoomNum           = otherCount;
            orderModel.VisitorNotes            = cusRemark;
            orderModel.Travel         = SiteUserInfo.CompanyID;
            orderModel.TravelContact  = fzr;
            orderModel.TravelName     = SiteUserInfo.CompanyName;
            orderModel.TravelNotes    = remark;
            orderModel.TravelTel      = fzrTel;
            orderModel.VisitorContact = contact;
            orderModel.VisitorNotes   = cusRemark;
            orderModel.VisitorTel     = conTactTel;
            //计划销售总价
            orderModel.TotalSalePrice = adultCount * reAdultPrice + childCount * reChilePrice + otherCount * reOtherPrice + addPrice;
            //计算结算总价
            orderModel.TotalSettlementPrice = adultCount * seAdultPrice + childCount * seChildPrice + reductPrice;

            if (EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().AddOrUpdTourOrder(orderModel))
            {
                #region 发送短信模块
                EyouSoft.Model.SystemStructure.MSysSettingInfo SettingInfoModel = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSysSetting();
                //获得组团公司实体
                EyouSoft.Model.CompanyStructure.CompanyDetailInfo travelComModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
                ////获得专线或地接公司实体
                EyouSoft.Model.CompanyStructure.CompanyDetailInfo tourComModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(tourModel.Publishers);
                if (SettingInfoModel != null && travelComModel != null && tourComModel != null)
                {
                    if (SettingInfoModel.OrderSmsCompanyTypes.Contains(travelComModel.CompanyLev))
                    {
                        string sendMsg = SettingInfoModel.OrderSmsTemplate;
                        sendMsg = sendMsg.Replace("[预订公司]", SiteUserInfo.CompanyName);
                        sendMsg = sendMsg.Replace("[预订联系电话]", SiteUserInfo.ContactInfo.Mobile);
                        sendMsg = sendMsg.Replace("[预订出发时间]", tourModel.LeaveDate.ToString("yyyy-MM-dd"));
                        sendMsg = sendMsg.Replace("[预订产品]", tourModel.RouteName);
                        sendMsg = sendMsg.Replace("[预订数量]", orderModel.AdultNum.ToString() + "成," + orderModel.ChildrenNum.ToString() + "儿");

                        #region 发送操作
                        EyouSoft.Model.SMSStructure.SendMessageInfo sendMessageInfo = new EyouSoft.Model.SMSStructure.SendMessageInfo();
                        sendMessageInfo.CompanyId    = orderModel.Travel;
                        sendMessageInfo.CompanyName  = orderModel.TravelName;
                        sendMessageInfo.UserId       = this.SiteUserInfo.ID;
                        sendMessageInfo.UserFullName = SiteUserInfo.ContactInfo.ContactName;
                        sendMessageInfo.SMSContent   = sendMsg;
                        sendMessageInfo.SendTime     = DateTime.Now;
                        //添加要发送的手机号码
                        List <EyouSoft.Model.SMSStructure.AcceptMobileInfo> moblieList  = new List <EyouSoft.Model.SMSStructure.AcceptMobileInfo>();
                        EyouSoft.Model.SMSStructure.AcceptMobileInfo        mobileModel = new EyouSoft.Model.SMSStructure.AcceptMobileInfo();
                        mobileModel.IsEncrypt = false;
                        if (tourComModel.ContactInfo != null)
                        {
                            mobileModel.Mobile = tourComModel.ContactInfo.Mobile;
                        }
                        moblieList.Add(mobileModel);
                        sendMessageInfo.Mobiles = moblieList;

                        //发送通道
                        EyouSoft.Model.SMSStructure.SMSChannel sendChannel = new EyouSoft.Model.SMSStructure.SMSChannelList()[Convert.ToInt32(SettingInfoModel.OrderSmsChannelIndex)];
                        sendMessageInfo.SendChannel = sendChannel;
                        sendMessageInfo.SendType    = EyouSoft.Model.SMSStructure.SendType.直接发送;
                        EyouSoft.IBLL.SMSStructure.ISendMessage    sBll            = EyouSoft.BLL.SMSStructure.SendMessage.CreateInstance();
                        EyouSoft.Model.SMSStructure.SendResultInfo SendResultModel = sBll.Send(sendMessageInfo);
                        SendResultModel = null;
                        sendMessageInfo = null;

                        #endregion
                    }
                }
                #endregion
                return("ok");
            }
            else
            {
                return("服务器忙,请稍后再试!");
            }
            #endregion
        }
Esempio n. 4
0
        /// <summary>
        /// 保存
        /// </summary>
        private void Save()
        {
            routeId = Utils.GetQueryStringValue("routeId");
            tourId  = Utils.GetQueryStringValue("tourId");
            if (tourId.Length <= 0 && routeId.Length > 0)
            {
                #region 组团社-单团预定
                MTourList model   = new MTourList();
                MRoute    brModel = BRoute.CreateInstance().GetModel(routeId);
                //线路Id
                model.RouteId = routeId;
                //线路名称
                model.RouteName = brModel.RouteName;
                //下单人编号
                model.OperatorId = SiteUserInfo.ID;
                //下单人名称
                model.OperatorName = SiteUserInfo.UserName;
                //下单时间
                model.IssueTime = DateTime.Now;
                //预定人数
                model.ScheduleNum = Utils.GetInt(Utils.GetFormValue(txt_adultPrice.UniqueID));
                //组团社备注
                model.TravelNotes = Utils.GetFormValue(txt_travelNotes.UniqueID);
                //组团社联系人
                model.TravelContact = Utils.GetFormValue(txt_travelContact.UniqueID);
                //组团社联系人电话
                model.TravelTel = Utils.GetFormValue(txt_travelTel.UniqueID);
                //游客联系人
                model.VisitorContact = Utils.GetFormValue(txt_visitorContact.UniqueID);
                //游客联系人电话
                model.VisitorTel = Utils.GetFormValue(txt_visitorTel.UniqueID);
                //出发日期
                model.StartDate = Utils.GetDateTime(Utils.GetFormValue(txt_leaveDate.UniqueID));
                //预订公司编号
                model.Travel = SiteUserInfo.CompanyID;
                //发布线路专线商或地接社公司编号
                model.Business = Utils.GetQueryStringValue("companyID");
                bool isSave = BTourList.CreateInstance().AddTourList(model);

                #region 发送短信模块
                if (isSave)
                {
                    EyouSoft.Model.SystemStructure.MSysSettingInfo SettingInfoModel = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSysSetting();
                    //获得组团公司实体
                    EyouSoft.Model.CompanyStructure.CompanyDetailInfo travelComModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(SiteUserInfo.CompanyID);
                    ////获得专线或地接公司实体
                    EyouSoft.Model.CompanyStructure.CompanyDetailInfo tourComModel = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel(brModel.Publishers);
                    if (SettingInfoModel != null && travelComModel != null)
                    {
                        if (SettingInfoModel.OrderSmsCompanyTypes.Contains(travelComModel.CompanyLev))
                        {
                            string sendMsg = SettingInfoModel.OrderSmsTemplate;
                            sendMsg = sendMsg.Replace("[预订公司]", SiteUserInfo.CompanyName);
                            sendMsg = sendMsg.Replace("[预订联系电话]", SiteUserInfo.ContactInfo.Mobile);
                            sendMsg = sendMsg.Replace("[预订出发时间]", model.StartDate.ToString("yyyy-MM-dd"));
                            sendMsg = sendMsg.Replace("[预订产品]", model.RouteName);
                            sendMsg = sendMsg.Replace("[预订数量]", model.ScheduleNum.ToString() + "人");

                            #region 发送操作
                            EyouSoft.Model.SMSStructure.SendMessageInfo sendMessageInfo = new EyouSoft.Model.SMSStructure.SendMessageInfo();
                            sendMessageInfo.CompanyId    = SiteUserInfo.CompanyID;
                            sendMessageInfo.CompanyName  = SiteUserInfo.CompanyName;
                            sendMessageInfo.UserId       = this.SiteUserInfo.ID;
                            sendMessageInfo.UserFullName = SiteUserInfo.ContactInfo.ContactName;
                            sendMessageInfo.SMSContent   = sendMsg;
                            sendMessageInfo.SendTime     = DateTime.Now;
                            //添加要发送的手机号码
                            List <EyouSoft.Model.SMSStructure.AcceptMobileInfo> moblieList  = new List <EyouSoft.Model.SMSStructure.AcceptMobileInfo>();
                            EyouSoft.Model.SMSStructure.AcceptMobileInfo        mobileModel = new EyouSoft.Model.SMSStructure.AcceptMobileInfo();
                            mobileModel.IsEncrypt = false;
                            if (tourComModel.ContactInfo != null)
                            {
                                mobileModel.Mobile = tourComModel.ContactInfo.Mobile;
                            }
                            moblieList.Add(mobileModel);
                            sendMessageInfo.Mobiles = moblieList;

                            //发送通道
                            EyouSoft.Model.SMSStructure.SMSChannel sendChannel = new EyouSoft.Model.SMSStructure.SMSChannelList()[Convert.ToInt32(SettingInfoModel.OrderSmsChannelIndex)];
                            sendMessageInfo.SendChannel = sendChannel;
                            sendMessageInfo.SendType    = EyouSoft.Model.SMSStructure.SendType.直接发送;
                            EyouSoft.IBLL.SMSStructure.ISendMessage    sBll            = EyouSoft.BLL.SMSStructure.SendMessage.CreateInstance();
                            EyouSoft.Model.SMSStructure.SendResultInfo SendResultModel = sBll.Send(sendMessageInfo);
                            SendResultModel = null;
                            sendMessageInfo = null;

                            #endregion
                        }
                    }
                }
                #endregion

                Response.Clear();
                Response.Write(isSave.ToString().ToLower());
                Response.End();
                #endregion
            }
            else if (tourId.Length > 0)
            {
                #region 组团-地接-专线修改
                MTourList model = BTourList.CreateInstance().GetModel(tourId);
                model.ScheduleNum = Utils.GetInt(Utils.GetFormValue(txt_adultPrice.UniqueID));
                if (Utils.GetQueryStringValue("isZT").Length > 0)
                {
                    //组团修改
                    model.TravelNotes = Utils.GetFormValue(txt_travelNotes.UniqueID);
                    //组团社联系人
                    model.TravelContact = Utils.GetFormValue(txt_travelContact.UniqueID);
                    //组团社联系人电话
                    model.TravelTel = Utils.GetFormValue(txt_travelTel.UniqueID);
                    //游客联系人
                    model.VisitorContact = Utils.GetFormValue(txt_visitorContact.UniqueID);
                    //游客联系人电话
                    model.VisitorTel = Utils.GetFormValue(txt_visitorTel.UniqueID);
                    Response.Clear();
                    Response.Write(BTourList.CreateInstance().OrderModifyZT(model));
                    Response.End();
                }
                else
                {
                    //专线,地接修改
                    model.BusinessNotes = Utils.GetFormValue(txt_businessNotes.UniqueID);
                    Response.Clear();
                    Response.Write(BTourList.CreateInstance().OrderModifyZXDJ(model));
                    Response.End();
                }
                #endregion
            }
        }