示例#1
0
        /// <summary>
        /// 根据系统ID获取系统信息(同时获取所有的区域联系人)
        /// </summary>
        /// <returns>返回系统信息实体</returns>
        public EyouSoft.Model.SystemStructure.SystemInfo GetSystemInfoModel()
        {
            EyouSoft.Model.SystemStructure.SystemInfo model = GetSystemModel();
            model.SysAreaContact = dalAreaContact.GetAreaContactList();

            return(model);
        }
示例#2
0
        private void InitAreaContentInfo()
        {
            EyouSoft.Model.SystemStructure.SystemInfo areaModel = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSystemInfoModel();
            if (areaModel != null)
            {
                EditeID = areaModel.ID;
                this.txt_ContentName.Value        = areaModel.ContactName;
                this.txt_CMQ.Value                = areaModel.MQ;
                this.txt_CMSN.Value               = areaModel.Msn;
                this.txt_ContentPhoneNum.Value    = areaModel.ContactMobile;
                this.txt_ContentTelNum.Value      = areaModel.ContactTel;
                this.txt_CQQ.Value                = areaModel.QQ1;
                this.txt_IndexInfo.Value          = areaModel.AllRight;
                this.txt_SiteOpeName.Value        = areaModel.SystemName;
                this.txt_UnionInfo.Value          = areaModel.SystemRemark;
                this.rpt_ContentPeople.DataSource = areaModel.SysAreaContact;
                this.rpt_ContentPeople.DataBind();

                if (!string.IsNullOrEmpty(areaModel.UnionLog))
                {
                    img_Path            = string.Format("<a href=\"{0}\"target='_blank'  title=\"点击查看\">{1}</a>", Domain.FileSystem + areaModel.UnionLog, areaModel.UnionLog.Substring(areaModel.UnionLog.LastIndexOf('/') + 1));
                    hdfAgoImgPath.Value = areaModel.UnionLog;
                }
            }
            //释放资源
            areaModel = null;
        }
示例#3
0
        /// <summary>
        /// 更新系统信息
        /// </summary>
        /// <param name="model">系统信息实体</param>
        /// <returns>返回受影响行数</returns>
        public virtual int UpdateSystemInfo(EyouSoft.Model.SystemStructure.SystemInfo model)
        {
            DbCommand dc = base.SystemStore.GetSqlStringCommand(SQL_DELETEDFILE_MOVE + Sql_SystemInfo_Update);

            #region 参数赋值

            base.SystemStore.AddInParameter(dc, "SystemName", DbType.String, model.SystemName);
            base.SystemStore.AddInParameter(dc, "ContactName", DbType.String, model.ContactName);
            base.SystemStore.AddInParameter(dc, "ContactTel", DbType.String, model.ContactTel);
            base.SystemStore.AddInParameter(dc, "ContactMobile", DbType.String, model.ContactMobile);
            base.SystemStore.AddInParameter(dc, "QQ1", DbType.String, model.QQ1);
            base.SystemStore.AddInParameter(dc, "QQ2", DbType.String, model.QQ2);
            base.SystemStore.AddInParameter(dc, "QQ3", DbType.String, model.QQ3);
            base.SystemStore.AddInParameter(dc, "QQ4", DbType.String, model.QQ4);
            base.SystemStore.AddInParameter(dc, "QQ5", DbType.String, model.QQ5);
            base.SystemStore.AddInParameter(dc, "Msn", DbType.String, model.Msn);
            base.SystemStore.AddInParameter(dc, "MQ", DbType.String, model.MQ);
            base.SystemStore.AddInParameter(dc, "SystemRemark", DbType.String, model.SystemRemark);
            base.SystemStore.AddInParameter(dc, "AgencyLog", DbType.String, model.AgencyLog);
            base.SystemStore.AddInParameter(dc, "UnionLog", DbType.String, model.UnionLog);
            base.SystemStore.AddInParameter(dc, "AllRight", DbType.String, model.AllRight);
            base.SystemStore.AddInParameter(dc, "ID", DbType.Int32, model.ID);

            #endregion

            return(DbHelper.ExecuteSql(dc, base.SystemStore));
        }
示例#4
0
 /// <summary>
 /// 获的版权
 /// </summary>
 protected void GetUnionRight()
 {
     EyouSoft.Model.SystemStructure.SystemInfo model = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSystemModel();
     if (model != null)
     {
         UnionRight = model.AllRight;
     }
 }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     EyouSoft.IBLL.SystemStructure.ISystemInfo bll   = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance();
     EyouSoft.Model.SystemStructure.SystemInfo model = bll.GetSystemInfoModel();
     if (model != null)
     {
         this.ltrCopyRight.Text = model.AllRight;
     }
     model = null;
     bll   = null;
 }
示例#6
0
 /// <summary>
 /// 获的联盟LOGO
 /// </summary>
 #region 设置头部的logo
 protected void GetUnionLogo()
 {
     EyouSoft.Model.SystemStructure.SystemInfo Model = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSystemModel();
     if (Model != null)
     {
         UnionLogo = EyouSoft.Common.Domain.FileSystem + Model.UnionLog;
     }
     else
     {
         UnionLogo = EyouSoft.Common.Domain.ServerComponents + "/images/UserPublicCenter/indexlogo.gif";
     }
     Model = null;
 }
示例#7
0
        /// <summary>
        /// 根据系统ID获取系统信息(不含区域联系人)
        /// </summary>
        /// <returns>返回系统信息实体</returns>
        public EyouSoft.Model.SystemStructure.SystemInfo GetSystemModel()
        {
            EyouSoft.Model.SystemStructure.SystemInfo model = new EyouSoft.Model.SystemStructure.SystemInfo();
            object CacheModel = EyouSoft.Cache.Facade.EyouSoftCache.GetCache(EyouSoft.CacheTag.System.SystemInfo);

            if (CacheModel == null)
            {
                model = dal.GetSystemModel();
                EyouSoft.Cache.Facade.EyouSoftCache.Add(EyouSoft.CacheTag.System.SystemInfo, model);
            }
            else
            {
                model = (EyouSoft.Model.SystemStructure.SystemInfo)CacheModel;
            }

            return(model);
        }
示例#8
0
        /// <summary>
        /// 根据系统ID获取系统信息(不含区域联系人)
        /// </summary>
        /// <returns>返回系统信息实体</returns>
        public virtual EyouSoft.Model.SystemStructure.SystemInfo GetSystemModel()
        {
            Model.SystemStructure.SystemInfo model = new EyouSoft.Model.SystemStructure.SystemInfo();
            DbCommand dc = base.SystemStore.GetSqlStringCommand(Sql_SystemInfo_Select);

            #region 实体赋值

            using (IDataReader dr = DbHelper.ExecuteReader(dc, base.SystemStore))
            {
                while (dr.Read())
                {
                    if (!dr.IsDBNull(0))
                    {
                        model.ID = dr.GetInt32(0);
                    }
                    model.SystemName    = dr[1].ToString();
                    model.ContactName   = dr[2].ToString();
                    model.ContactTel    = dr[3].ToString();
                    model.ContactMobile = dr[4].ToString();
                    model.QQ1           = dr[5].ToString();
                    model.QQ2           = dr[6].ToString();
                    model.QQ3           = dr[7].ToString();
                    model.QQ4           = dr[8].ToString();
                    model.QQ5           = dr[9].ToString();
                    model.Msn           = dr[10].ToString();
                    model.MQ            = dr[11].ToString();
                    model.SystemRemark  = dr[12].ToString();
                    model.AgencyLog     = dr[13].ToString();
                    model.UnionLog      = dr[14].ToString();
                    model.AllRight      = dr[15].ToString();

                    break;
                }
            }

            #endregion

            return(model);
        }
示例#9
0
        /// <summary>
        /// 更新系统信息
        /// </summary>
        /// <param name="model">系统信息实体(区域联系人实体集合为null或者count小于等于0时不修改区域联系人)</param>
        /// <returns>-3:添加区域联系人失败;-2:删除区域联系人失败;-1:修改系统信息失败;0:系统实体为空;1:Success</returns>
        public int UpdateSystemInfo(EyouSoft.Model.SystemStructure.SystemInfo model)
        {
            if (model == null)
            {
                return(0);
            }

            int Result = 0;

            using (TransactionScope UpdateTran = new TransactionScope())
            {
                Result = dal.UpdateSystemInfo(model);
                if (Result <= 0)
                {
                    return(-1);
                }

                dalAreaContact.DeleteSysAreaContact();
                //if (Result <= 0)
                //return -2;

                Result = dalAreaContact.AddSysAreaContact(model.SysAreaContact);
                //if (Result <= 0)
                //    return -3;

                Result = 1;
                UpdateTran.Complete();
            }
            if (Result == 1)
            {
                //清空缓存
                EyouSoft.Cache.Facade.EyouSoftCache.Remove(EyouSoft.CacheTag.System.SystemInfo);
            }

            return(Result);
        }
示例#10
0
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            if (EditeFlag)
            {
                string strErr = "";
                #region 获取联盟表单信息
                string siteOpeName = Utils.GetFormValue("txt_SiteOpeName", 250);
                //验证平台名称不为空
                if (siteOpeName == "")
                {
                    strErr += "平台名称不能为空!\\n";
                }
                if (strErr != "")
                {
                    MessageBox.Show(this, strErr);
                    return;
                }
                string ContentName     = Utils.GetFormValue("txt_ContentName", 50);
                string ContentPhoneNum = Utils.GetFormValue("txt_ContentPhoneNum", 50);
                string ContentTelNum   = Utils.GetFormValue("txt_ContentTelNum", 50);
                string CMQ             = Utils.GetFormValue("txt_CMQ", 30);
                string CQQ             = Utils.GetFormValue("txt_CQQ", 30);
                string CMSN            = Utils.GetFormValue("txt_CMSN", 40);
                string UnionInfo       = Server.HtmlDecode(Request.Form["txt_UnionInfo"]);
                string IndexInfo       = Server.HtmlDecode(Request.Form["txt_IndexInfo"]);
                #endregion

                #region 获取区域联系人表单信息
                //区域联系人信息
                string[] txt_AreaList          = Utils.GetFormValues("txt_Area");
                string[] sel_ContentTypeList   = Utils.GetFormValues("sel_ContentType");
                string[] txt_ContentPeopleList = Utils.GetFormValues("txt_ContentPeople");
                string[] txt_ContentPhoneList  = Utils.GetFormValues("txt_ContentPhone");
                string[] txt_ContentTelList    = Utils.GetFormValues("txt_ContentTel");
                string[] txt_ContentQQList     = Utils.GetFormValues("txt_ContentQQ");
                string[] txt_ContentMQList     = Utils.GetFormValues("txt_ContentMQ");

                #region 保存区域联系人信息
                IList <EyouSoft.Model.SystemStructure.SysAreaContact> areaList = new List <EyouSoft.Model.SystemStructure.SysAreaContact>();
                if (txt_AreaList != null)
                {
                    EyouSoft.Model.SystemStructure.SysAreaContact areaModel = null;
                    for (int index = 0; index < txt_AreaList.Length; index++)
                    {
                        if (!string.IsNullOrEmpty(txt_AreaList[index].Trim()) || !string.IsNullOrEmpty(txt_ContentPeopleList[index].Trim()) || !string.IsNullOrEmpty(txt_ContentPhoneList[index].Trim()) || !string.IsNullOrEmpty(txt_ContentTelList[index].Trim()) || !string.IsNullOrEmpty(txt_ContentQQList[index].Trim()) || !string.IsNullOrEmpty(txt_ContentMQList[index].Trim()))
                        {
                            areaModel = new EyouSoft.Model.SystemStructure.SysAreaContact();
                            areaModel.ContactMobile = txt_ContentTelList[index];
                            areaModel.ContactName   = txt_ContentPeopleList[index];
                            areaModel.ContactTel    = txt_ContentPhoneList[index];
                            areaModel.MQ            = txt_ContentMQList[index];
                            areaModel.QQ            = txt_ContentQQList[index];
                            areaModel.SaleArea      = txt_AreaList[index];
                            areaModel.SaleType      = int.Parse(sel_ContentTypeList[index]);
                            areaList.Add(areaModel);
                            //释放资源
                            areaModel = null;
                        }
                    }
                }
                #endregion
                #endregion

                #region 保存联盟基本信息
                EyouSoft.Model.SystemStructure.SystemInfo sysModel = new EyouSoft.Model.SystemStructure.SystemInfo();
                sysModel.ID             = EditeID;
                sysModel.SystemName     = siteOpeName;
                sysModel.ContactName    = ContentName;
                sysModel.ContactTel     = ContentTelNum;
                sysModel.ContactMobile  = ContentPhoneNum;
                sysModel.QQ1            = CQQ;
                sysModel.Msn            = CMSN;
                sysModel.SystemRemark   = UnionInfo;
                sysModel.AllRight       = IndexInfo;
                sysModel.SysAreaContact = areaList;
                sysModel.MQ             = CMQ;
                if (!string.IsNullOrEmpty(Utils.GetFormValue("SingleFileUpload1$hidFileName")))
                {
                    sysModel.UnionLog = Utils.GetFormValue("SingleFileUpload1$hidFileName");
                }
                else
                {
                    sysModel.UnionLog = Utils.GetFormValue(hdfAgoImgPath.UniqueID);
                }

                int retInt = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().UpdateSystemInfo(sysModel);
                if (retInt > 0)
                {
                    MessageBox.ShowAndRedirect(this, "修改成功", "BasicInfoManagement.aspx");
                }
                //释放资源
                areaList = null;
                sysModel = null;
                #endregion
            }
            else
            {
                Utils.ResponseNoPermit(YuYingPermission.平台管理_基本信息, true);
                return;
            }
        }
示例#11
0
        /// <summary>
        /// 获取系统信息(同时获取所有的区域联系人)
        /// </summary>
        /// <returns>返回系统信息实体</returns>
        public virtual EyouSoft.Model.SystemStructure.SystemInfo GetSystemInfoModel()
        {
            Model.SystemStructure.SystemInfo model = new EyouSoft.Model.SystemStructure.SystemInfo();

            string strWhere = " SELECT [Id],[SaleArea],[SaleType],[ContactName],[ContactTel],[ContactMobile],[QQ],[MQ] FROM [tbl_SysAreaContact]; ";

            strWhere += Sql_SystemInfo_Select + " ; ";

            DbCommand dc = base.SystemStore.GetSqlStringCommand(strWhere);

            #region 实体赋值

            List <Model.SystemStructure.SysAreaContact> AllAreaContact = new List <Model.SystemStructure.SysAreaContact>();
            using (IDataReader dr = DbHelper.ExecuteReader(dc, base.SystemStore))
            {
                Model.SystemStructure.SysAreaContact AreaContactModel = null;
                while (dr.Read())
                {
                    AreaContactModel = new EyouSoft.Model.SystemStructure.SysAreaContact();
                    if (!dr.IsDBNull(0))
                    {
                        AreaContactModel.ID = dr.GetInt32(0);
                    }
                    AreaContactModel.SaleArea = dr[1].ToString();
                    if (!dr.IsDBNull(2))
                    {
                        AreaContactModel.SaleType = dr.GetByte(2);
                    }
                    AreaContactModel.ContactName   = dr[3].ToString();
                    AreaContactModel.ContactTel    = dr[4].ToString();
                    AreaContactModel.ContactMobile = dr[5].ToString();
                    AreaContactModel.QQ            = dr[6].ToString();
                    AreaContactModel.MQ            = dr[7].ToString();

                    AllAreaContact.Add(AreaContactModel);
                }

                AreaContactModel = null;
                dr.NextResult();

                while (dr.Read())
                {
                    if (!dr.IsDBNull(0))
                    {
                        model.ID = dr.GetInt32(0);
                    }
                    model.SystemName    = dr[1].ToString();
                    model.ContactName   = dr[2].ToString();
                    model.ContactTel    = dr[3].ToString();
                    model.ContactMobile = dr[4].ToString();
                    model.QQ1           = dr[5].ToString();
                    model.QQ2           = dr[6].ToString();
                    model.QQ3           = dr[7].ToString();
                    model.QQ4           = dr[8].ToString();
                    model.QQ5           = dr[9].ToString();
                    model.Msn           = dr[10].ToString();
                    model.MQ            = dr[11].ToString();
                    model.SystemRemark  = dr[12].ToString();
                    model.AgencyLog     = dr[13].ToString();
                    model.UnionLog      = dr[14].ToString();
                    model.AllRight      = dr[15].ToString();

                    model.SysAreaContact = AllAreaContact;

                    break;
                }

                AllAreaContact.Clear();
                AllAreaContact = null;
            }

            #endregion

            return(model);
        }
示例#12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Cookies["ssotest"] != null)
                {
                    btnLogin.Disabled = true;
                    btnLogin.Value    = "已登录";
                    if (Session["UID"] != null)
                    {
                        txtUsername.Value = Session["UID"].ToString();
                    }
                }
            }
            Response.Write(DateTime.Now);
            Person p = new Person();

            p.ID       = 1;
            p.Name     = "张三";
            p.Age      = 20;
            p.BirthDay = DateTime.Now.AddYears(-20);


            string _Key = "92$#@!#@5tr%u8wsf]543$,23{e7w%$#";
            string _IV  = "!54~1)e74&m3+-q#";

            EyouSoft.Common.EncryptUtility.HashCrypto crypto = new EyouSoft.Common.EncryptUtility.HashCrypto();
            crypto     = new EyouSoft.Common.EncryptUtility.HashCrypto();
            crypto.Key = _Key;
            crypto.IV  = _IV;

            if (Request.QueryString["d"] != null)
            {
                Response.Write(crypto.DeRijndaelEncrypt(Request.QueryString["d"]));
                Response.End();
            }
            else if (Request.QueryString["c"] != null)
            {
                Response.Write(crypto.RijndaelEncrypt(Request.QueryString["c"]));
                Response.End();
            }


            //EyouSoft.HotelBI.SingleSeach searchModel = new EyouSoft.HotelBI.SingleSeach();
            //searchModel.HotelCode = "SOHOTO2235";//酒店代码
            //searchModel.CheckInDate = "2011-01-24";//入住时间
            //searchModel.CheckOutDate = "2011-01-25";//离店时间
            //searchModel.RoomTypeCode = "INCE022";//房型代码
            //searchModel.VendorCode = string.Empty;//供应商代码
            //searchModel.RatePlanCode = "BK001";//价格计划代码
            //searchModel.AvailReqType = EyouSoft.HotelBI.AvailReqTypeEnum.includeStatic;//查询完整酒店信息
            //EyouSoft.HotelBI.ErrorInfo errorInfo = null;//错误信息实体
            //EyouSoft.Model.HotelStructure.HotelInfo hotelModel =
            //    EyouSoft.BLL.HotelStructure.Hotel.CreateInstance().GetHotelModel(searchModel, out errorInfo);//酒店实体

            //EyouSoft.BLL.ToolStructure.MsgTipRecord.CreateInstance().IsSendMsgTip(EyouSoft.Model.ToolStructure.MsgType.AddFriend, EyouSoft.Model.ToolStructure.MsgSendWay.SMS, "48144", 362);
            //IList<EyouSoft.Model.TicketStructure.TicketSeattle> tlist = null;
            //tlist = EyouSoft.BLL.TicketStructure.TicketSeattle.CreateInstance().GetTicketSeattleByFreight(null);
            //tlist = EyouSoft.BLL.TicketStructure.TicketSeattle.CreateInstance().GetTicketSeattleByFreight(136);
            //Response.Write(EyouSoft.Common.SerializationHelper.ConvertJSON<Person>(p));
            //Response.Write(EyouSoft.Common.SerializationHelper.InvertJSON<Person>(@"{""Age"":20,""BirthDay"":""\/Date(644135865375+0800)\/"",""ID"":1,""Name"":""张三""} "));
            System.Diagnostics.Stopwatch stop = new System.Diagnostics.Stopwatch();
            stop.Reset();
            stop.Start();

            //IList<EyouSoft.Model.TourStructure.TourInfo> tlist = RabbitMQ.Client.Examples.SingleGet.Main(new string[] { "192.168.1.254:5672", "q1" });
            //Response.Write("团队数:" + tlist.Count);
            //foreach (EyouSoft.Model.TourStructure.TourInfo m in tlist)
            //{
            //    Response.Write("团队创建时间:" + m.CreateTime.ToString() + "<BR>");
            //    EyouSoft.BLL.TourStructure.Tour.CreateInstance().UpdateTemplateTourInfo(m);
            //}

            //EyouSoft.Model.SystemStructure.SysCompanyDomain model = EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().GetSysCompanyDomain(EyouSoft.Model.SystemStructure.DomainType.网店域名, "");
            //if (model != null)
            //    Response.Write(model.Domain);
            //EyouSoft.BLL.AdvStructure.Adv.CreateInstance().GetAdvs(362, EyouSoft.Model.AdvStructure.AdvPosition.首页广告精品推荐图文);
            //Response.Write(string.CompareOrdinal("ASDF", "asdf"));
            //string ltr = "<font color=red>adfsdfdf</font>";
            //string[] ddd = System.Text.RegularExpressions.Regex.Split("<font color=red>adfsdfdf</font>", "<(.|\\n)*?>"
            //    );
            //if (ddd.Length == 5)
            //{
            //    Response.Write(ltr.Replace(ddd[2],ddd[2].Substring(1,3)));
            //}

            //Response.Write(EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetSysCityModel("bangbu.tongye114.com").CityId);

            //List<int> asdf = new List<int>();
            //EyouSoft.BLL.SystemStructure.SysArea.CreateInstance().AddSysArea(new EyouSoft.Model.SystemStructure.SysArea() {
            //    AreaName = "Asdfsd",
            //    RouteType = EyouSoft.Model.SystemStructure.AreaType.国内短线
            //});
            //EyouSoft.BLL.CompanyStructure.CompanyDepartment.CreateInstance().Exists("8ec1b5ab-9cd7-45b8-92ab-b90f8ad85f28", "dasf","");
            // EyouSoft.BLL.CompanyStructure.SupplierInfo.CreateInstance().GetModel("ec50ba84-4b07-4ecc-abac-7c192068d11d");
            // EyouSoft.Model.SystemStructure.SysCompanyDomain domain = EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().GetSysCompanyDomain(EyouSoft.Model.SystemStructure.DomainType.网店域名, "www.test.com:30000");
            //Response.Write(domain.CompanyId);
            //EyouSoft.BLL.SystemStructure.SysPermissionCategory.CreateInstance().GetList(new int[2] { 1, 2 });
            //EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();

            //IList<EyouSoft.Model.AdvStructure.AdvInfo> AdvImagesList = EyouSoft.BLL.AdvStructure.Adv.CreateInstance().GetAdvs(362, EyouSoft.Model.AdvStructure.AdvPosition.首页广告旅游动态图文);

            //EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance().UpdateUserPassWord("5345", "000000","000000q");

            //EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetCompanyState("0001a989-c9f7-4235-a426-ba23fa77b4c1");


            //EyouSoft.Model.AdvStructure.AdvInfo adv = EyouSoft.BLL.AdvStructure.Adv.CreateInstance().DeleteAdv(152);
            //adv.Title = "111111111111111111";
            //adv.ImgPath = "dddddddddddddd";
            //EyouSoft.BLL.AdvStructure.Adv.CreateInstance().UpdateAdv(adv);
            //EyouSoft.BLL.AdvStructure.Adv.CreateInstance().DeleteAdv(149);
            //EyouSoft.Model.CommunityStructure.InfoArticle modeli = new EyouSoft.Model.CommunityStructure.InfoArticle();
            //modeli.AreaId = EyouSoft.Model.CommunityStructure.TopicAreas.成功故事;
            //modeli.ArticleTag = "sdgsdg,sgsdge";
            //modeli.ArticleText = "1111111111";
            //modeli.ArticleTitle = "2222222222";
            //modeli.Editor = "3";
            //modeli.ID = "28C94009-70B7-4D39-9C97-33EB6CB1D889";
            //modeli.ImgPath = "388888888777";
            //modeli.ImgThumb = "36666666699";
            //modeli.Source = "lllllllllllll";
            //modeli.TitleColor = "#FFFFF";
            //EyouSoft.BLL.CommunityStructure.InfoArticle.CreateInstance().Delete(modeli.ID);


            //EyouSoft.Model.SystemStructure.Affiche modela = new EyouSoft.Model.SystemStructure.Affiche();
            //modela.AfficheClass = EyouSoft.Model.SystemStructure.AfficheType.成功出票;
            //modela.AfficheInfo = "asdadsfsdfsd";
            //modela.AfficheTitle = "爱上对方爱上对方按时打发短发是打发打";
            //modela.PicPath = "5555558888";
            //modela.ID = 13;
            //EyouSoft.BLL.SystemStructure.Affiche.CreateInstance().Delete(13);

            //EyouSoft.Cache.Facade.EyouSoftCache.Add(EyouSoft.CacheTag.System.SysSiteUpdateKey, DateTime.Now);

            //IList<EyouSoft.Model.SystemStructure.CityBase> list7 = EyouSoft.BLL.CompanyStructure.CompanyCity.CreateInstance().GetCompanyPortCity("0001a989-c9f7-4235-a426-ba23fa77b4c1");
            //Response.Write(list7.Count);
            stop.Stop();
            Response.Write("<BR>执行时间:" + stop.ElapsedMilliseconds);
            Response.Write("<script>setTimeout('location.reload()', 5000);</script>");
            Response.End();

            //EyouSoft.Cache.Facade.CacheObject<EyouSoft.Model.CompanyStructure.Company> model5 = (EyouSoft.Cache.Facade.CacheObject<EyouSoft.Model.CompanyStructure.Company>)EyouSoft.BLL.TestBLL.CreateInstance().GetCache("asdfa11");



            EyouSoft.BLL.SystemStructure.SysFriendLink.CreateInstance().DeleteSysFriendLink(38);
            return;

            EyouSoft.Model.CompanyStructure.ProductInfo model = new EyouSoft.Model.CompanyStructure.ProductInfo();
            model.ProductRemark = "14B17664-9CB5-483C-8A44-6A7F0F55C12E";
            model.ImagePath     = "99887y66";
            model.ImageLink     = "";
            model.ID            = 2;
            IList <EyouSoft.Model.CompanyStructure.ProductInfo> list5 = new List <EyouSoft.Model.CompanyStructure.ProductInfo>();

            list5.Add(model);
            //EyouSoft.BLL.CompanyStructure.SupplierInfo.CreateInstance().SetProduct("ec50ba84-4b07-4ecc-abac-7c192068d11d","","",list5);
            return;

            EyouSoft.BLL.MQStructure.IMFriendList.CreateInstance().InStepFriends(10481);
            if (EyouSoft.BLL.TestBLL.CreateInstance().GetCache("adasdf") != null)
            {
                Response.Write("<BR>CACHE:" + EyouSoft.BLL.TestBLL.CreateInstance().GetCache("adasdf").ToString());
            }

            EyouSoft.BLL.SystemStructure.SysFriendLink.CreateInstance().GetSysFriendLinkList(EyouSoft.Model.SystemStructure.FriendLinkType.文字);
            EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Remove(new string[1] {
                "asdf"
            });
            EyouSoft.Model.SystemStructure.SystemInfo SystemModel = EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSystemInfoModel();
            EyouSoft.BLL.SystemStructure.SysFriendLink.CreateInstance().GetSysFriendLinkList(EyouSoft.Model.SystemStructure.FriendLinkType.文字);
            //EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().Remove(new string[2] { "adsfsdf", "3333" });
            IList <EyouSoft.Model.SystemStructure.SysPermissionCategory> list = EyouSoft.BLL.SystemStructure.SysPermissionCategory.CreateInstance().GetList(new int[1] {
                1
            });
            IList <EyouSoft.Model.SystemStructure.SysPermissionCategory> list1 = EyouSoft.BLL.SystemStructure.SysPermissionCategory.CreateInstance().GetList(EyouSoft.Model.SystemStructure.PermissionType.大平台);

            string[] df = {};
            EyouSoft.BLL.SystemStructure.SysCompanyDomain.CreateInstance().GetDomainList(df);
            //EyouSoft.SSOComponent.Entity.SSOResponse response = new EyouSoft.SSOComponent.Remote.UserLogin().UserLoginPassword("enowinfo", "ba44e622a04a76beade0da36a3760d76", "",EyouSoft.SSOComponent.Entity.PasswordType.MD5);
            //bool a = response.IsValid;

            //EyouSoft.SSOComponent.Entity.UserInfo User = new EyouSoft.SSOComponent.Entity.UserInfo();
            //User.CompanyRole.SetRole(EyouSoft.Model.CompanyStructure.CompanyType.车队);
            //new EyouSoft.SSOComponent.UserLogin().UserLoginAct("enowinfo", "ba44e622a04a76beade0da36a3760d76", "", EyouSoft.SSOComponent.Entity.PasswordType.MD5);

            //EyouSoft.Model.TourStructure.TourInfo model = new EyouSoft.Model.TourStructure.TourInfo();
            //Response.Write("<BR>Master:" + EyouSoft.BLL.TourStructure.Tour.CreateInstance().InsertTemplateTourInfo(model));
            //Response.Write("<BR>Master:" + EyouSoft.BLL.TourStructure.Tour.CreateInstance().DeleteByVirtual("dfg"));
            EyouSoft.BLL.SystemStructure.SysCity.CreateInstance().GetCityList(5, 0, null, null, null);
            EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance().GetModel("1e5edc20-4b83-4c16-8c52-008e0c09bd1e");
            EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSystemModel();
            EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().GetSystemInfoModel();
            EyouSoft.BLL.SystemStructure.SysArea.CreateInstance().GetSysAreaModel(0);

            EyouSoft.Model.SystemStructure.SystemInfo info = new EyouSoft.Model.SystemStructure.SystemInfo();
            info.ID           = 1;
            info.SystemRemark = "assdfdf";
            info.SystemName   = "测试系统";
            EyouSoft.BLL.SystemStructure.SystemInfo.CreateInstance().UpdateSystemInfo(info);

            EyouSoft.Model.CompanyStructure.CompanyAreaSetting area = new EyouSoft.Model.CompanyStructure.CompanyAreaSetting();
            area.AreaID     = 1;
            area.CompanyID  = "1e5edc20-4b83-4c16-8c52-008e0c09bd1e";
            area.PrefixText = "YL";
            IList <EyouSoft.Model.CompanyStructure.CompanyAreaSetting> areal = new List <EyouSoft.Model.CompanyStructure.CompanyAreaSetting>();

            areal.Add(area);
            EyouSoft.BLL.CompanyStructure.CompanyAreaSetting.CreateInstance().Update(areal);


            //Response.Write("<BR>Master:" + EyouSoft.BLL.TestBLL.CreateInstance().TestConn(1));
            // //Response.Write("<BR>Slave:" + EyouSoft.BLL.TestBLL.CreateInstance().TestData());
            if (EyouSoft.BLL.TestBLL.CreateInstance().GetCache("adasdf") != null)
            {
                Response.Write("<BR>CACHE:" + EyouSoft.BLL.TestBLL.CreateInstance().GetCache("adasdf").ToString());
            }
            // //Response.Write("<BR>2Master:" + EyouSoft.BLL.Test.TestBLL2.CreateInstance().TestConn());
            // //Response.Write("<BR>2Slave:" + EyouSoft.BLL.Test.TestBLL2.CreateInstance().TestData());
            stop.Stop();
            Response.Write("<BR>执行时间:" + stop.ElapsedMilliseconds);

            System.IO.StreamReader ad = new System.IO.StreamReader(@"C:\companylog.txt");
            while (ad.Peek() > 0)
            {
                string a = ad.ReadLine();
                Response.Write("pppp:" + a + "<BR>");
            }
            ad.Close();
        }