protected void BindTops() { int count = 5; this.rptTop.DataSource = SYS_FamousBll.GetInstance().GetTodayTopList(count); this.rptTop.DataBind(); }
/// <summary> /// 首页置顶 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void SetTop(bool input) { try { int sysno = 0; if (input) { sysno = int.Parse(Request.QueryString["top"]); } else { sysno = int.Parse(Request.QueryString["notop"]); } SYS_FamousMod m_famous = SYS_FamousBll.GetInstance().GetModel(sysno); if (input) { m_famous.IsTop = (int)AppEnum.BOOL.True; } else { m_famous.IsTop = (int)AppEnum.BOOL.False; } SYS_FamousBll.GetInstance().Update(m_famous); ltrNotice.Text = "该记录已置顶!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('noticediv').style.display='';", true); } catch { ltrError.Text = "系统错误,置顶失败!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('errordiv').style.display='';", true); } }
protected void Button2_Click(object sender, EventArgs e) { string key = txtName.Text.Split(new char[] { ' ' })[txtName.Text.Split(new char[] { ' ' }).Length - 1]; int tmp = 0; DataTable m_dt = SYS_FamousBll.GetInstance().GetList(10, 1, key, AppConst.DateTimeNull, AppConst.DateTimeNull, ((int)AppEnum.State.normal).ToString(), false, ref tmp); Repeater2.DataSource = m_dt; Repeater2.DataBind(); keysauto1.Style["display"] = ""; HiddenField11.Value = m_dt.Rows.Count.ToString() + "|0"; }
protected void BindFamous() { this.m_famous = SYS_FamousBll.GetInstance().GetModel(this.sysno); if (this.m_famous.Photo == "") { this.m_famous.Photo = ""; } else if (!this.m_famous.Photo.Contains("//")) { this.m_famous.Photo = AppCmn.AppConfig.WebResourcesPath() + "FamousPhoto/" + this.m_famous.Photo; } this.DataBind(); }
protected void BindContent() { DateTime beginTime = AppCmn.AppConst.DateTimeNull; DateTime endTime = AppCmn.AppConst.DateTimeNull; try { if (txtTimeBegin.Text != "") { beginTime = DateTime.Parse(txtTimeBegin.Text.Trim()); } if (txtTimeEnd.Text != "") { endTime = DateTime.Parse(txtTimeEnd.Text.Trim()); } } catch { } DataTable m_dt = SYS_FamousBll.GetInstance().GetList(AppConst.PageSize, pageindex, txtName.Text.Trim(), beginTime, endTime, drpStatus.SelectedValue, false, ref total); m_dt.Columns.Add("deleteurl"); m_dt.Columns.Add("topurl"); m_dt.Columns.Add("topname"); for (int i = 0; i < m_dt.Rows.Count; i++) { m_dt.Rows[i]["deleteurl"] = urlnow + "&delete="; if (m_dt.Rows[i]["IsTop"].ToString() == ((int)AppEnum.BOOL.True).ToString()) { m_dt.Rows[i]["topurl"] = urlnow + "¬op="; m_dt.Rows[i]["topname"] = "取消置顶"; } else { m_dt.Rows[i]["topurl"] = urlnow + "&top="; m_dt.Rows[i]["topname"] = "置顶到首页"; } } rptFamous.DataSource = m_dt; rptFamous.DataBind(); Pager1.url = "Celebritys.aspx?name=" + txtName.Text.Trim() + "&begin=" + txtTimeBegin.Text.Trim() + "&end=" + txtTimeEnd.Text.Trim() + "&status=" + drpStatus.SelectedValue + "&pn="; if (total % AppConst.PageSize == 0) { this.Pager1.total = total / AppConst.PageSize; } else { this.Pager1.total = total / AppConst.PageSize + 1; } this.Pager1.index = pageindex; this.Pager1.numlenth = 3; }
protected void BindFamous() { DataTable m_dt = new DataTable(); if (HttpRuntime.Cache[AppConst.HomePageFamous] == null) { m_dt = SYS_FamousBll.GetInstance().GetTodayTopList(6); for (int i = 0; i < m_dt.Rows.Count; i++) { if (m_dt.Rows[i]["photo"].ToString() == "") { m_dt.Rows[i]["photo"] = AppConst.OriginalFamousPhoto; } else if (!m_dt.Rows[i]["photo"].ToString().Contains("//")) { m_dt.Rows[i]["photo"] = "WebResources/FamousPhoto/" + m_dt.Rows[i]["photo"]; } } HttpRuntime.Cache.Insert(AppConst.HomePageFamous, m_dt, null, DateTime.Now.AddHours(1), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.High, null); } m_dt = HttpRuntime.Cache[AppConst.HomePageFamous] as DataTable; rptFamous.DataSource = m_dt; rptFamous.DataBind(); DataTable m_dt1 = new DataTable(); if (HttpRuntime.Cache[AppConst.HomePageFamousKey] == null) { int total = 0; m_dt1 = SYS_Famous_KeyWordsBll.GetInstance().GetList(20, 1, "", "", true, ref total); HttpRuntime.Cache.Insert(AppConst.HomePageFamousKey, m_dt1, null, DateTime.Now.AddHours(1), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.High, null); } m_dt1 = HttpRuntime.Cache[AppConst.HomePageFamousKey] as DataTable; rptKeys.DataSource = m_dt1; rptKeys.DataBind(); }
/// <summary> /// 删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Delete() { try { SYS_FamousMod m_famous = SYS_FamousBll.GetInstance().GetModel(int.Parse(Request.QueryString["delete"])); m_famous.DR = (int)AppEnum.State.deleted; SYS_FamousBll.GetInstance().Update(m_famous); if (m_famous.Source != "") { SPD_FamousBll.GetInstance().InputReturn(m_famous.SysNo); } ltrNotice.Text = "该记录已删除!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('noticediv').style.display='';", true); } catch { ltrError.Text = "系统错误,删除失败!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('errordiv').style.display='';", true); } }
protected void BindSearchList() { int state; int total = 0; int count = 10; DataTable m_dt = new DataTable(); if (this.key != 0) { state = 0; m_dt = SYS_FamousBll.GetInstance().GetListByKeys(count, 1, this.key, state.ToString(), ref total); } else { state = 0; m_dt = SYS_FamousBll.GetInstance().GetList(count, 1, SQLData.SQLFilter(this.txtKeyword.Text.Trim()), AppConst.DateTimeNull, AppConst.DateTimeNull, state.ToString(), false, ref total); } for (int i = 0; i < m_dt.Rows.Count; i++) { if (m_dt.Rows[i]["photo"].ToString() == "") { m_dt.Rows[i]["photo"] = ""; } else if (!m_dt.Rows[i]["photo"].ToString().Contains("//")) { m_dt.Rows[i]["photo"] = AppCmn.AppConfig.WebResourcesPath() + "FamousPhoto/" + m_dt.Rows[i]["photo"]; } m_dt.Rows[i]["Description"] = CommonTools.CutStr(CommonTools.NoHTML(m_dt.Rows[i]["Description"].ToString()), 150); } this.rptResult.DataSource = m_dt; this.rptResult.DataBind(); this.Literal1.Text = total.ToString(); if (total < 10) { this.Literal2.Text = total.ToString(); } }
/// <summary> /// 批量导入 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Unnamed2_Click(object sender, EventArgs e) { using (SQLData m_data = new SQLData()) { for (int i = 16831; i < 40965; i++) { DataRow m_dr = m_data.CmdtoDataRow("select * from [SPD_Famous] where sysno =" + i); if (m_dr["Name"].ToString() == "" || m_dr["Biography"].ToString() == "" || m_dr["Biography"].ToString() == "SameNameError") { continue; } SYS_FamousMod m_famous = new SYS_FamousMod(); if (m_dr["FamousSysNo"].ToString() != "") { m_famous = SYS_FamousBll.GetInstance().GetModel(int.Parse(m_dr["FamousSysNo"].ToString())); m_famous.Photo = m_dr["photo"].ToString(); SYS_FamousBll.GetInstance().Update(m_famous); //Console.WriteLine(m_dr["sysno"] + " update "); continue; } DataTable m_area = SYS_DistrictBll.GetInstance().GetTreeDetail(m_dr["HomeTown"].ToString().Split(new char[] { '(', ',' })[0].Trim()); if (!CommonTools.IsDataTableNoRow(m_area)) { m_famous.HomeTown = int.Parse(m_area.Rows[0]["SysNo3"].ToString()); } string[] tmp = m_dr["BirthTmp"].ToString().Split(new char[] { '-', ' ', ':' }); int month = 0; int day = 0; int hour = 0; int minute = 0; if (tmp.Length > 6) { if (m_dr["BirthTmp"].ToString().StartsWith("-")) { m_famous.BirthYear = int.Parse("-" + tmp[1]); month = int.Parse(tmp[2].Replace("January", "1").Replace("February", "2").Replace("March", "3") .Replace("April", "4").Replace("May", "5").Replace("June", "6").Replace("July", "7") .Replace("August", "8").Replace("September", "9").Replace("October", "10") .Replace("November", "11").Replace("December", "12")); day = int.Parse(tmp[3]); if (tmp[4] == "12" && tmp[5] == "00" && tmp[6] == "PM") { hour = int.Parse(tmp[4]); m_famous.TimeUnknown = 1; } else { if (tmp[6] == "PM" && tmp[4] != "12") { hour = (int.Parse(tmp[4]) + 12); } else { hour = int.Parse(tmp[4]); } m_famous.TimeUnknown = 0; } minute = int.Parse(tmp[5]); } } else { m_famous.BirthYear = int.Parse(tmp[0]); month = int.Parse(tmp[1].Replace("January", "1").Replace("February", "2").Replace("March", "3") .Replace("April", "4").Replace("May", "5").Replace("June", "6").Replace("July", "7") .Replace("August", "8").Replace("September", "9").Replace("October", "10") .Replace("November", "11").Replace("December", "12")); day = int.Parse(tmp[2]); if (tmp[3] == "12" && tmp[4] == "00" && tmp[5] == "PM") { hour = int.Parse(tmp[3]); m_famous.TimeUnknown = 1; } else { if (tmp[5] == "PM" && tmp[3] != "12") { hour = int.Parse(tmp[3]) + 12; } else { hour = int.Parse(tmp[3]); } m_famous.TimeUnknown = 0; } minute = int.Parse(tmp[4]); } m_famous.BirthTime = new DateTime(8000, month, day, hour, minute, 0); m_famous.CateSysNo = 1; m_famous.CustomerSysNo = 1; m_famous.Description = m_dr["Biography"].ToString(); m_famous.DR = 0; m_famous.FullName = m_dr["FamousName"].ToString(); m_famous.Gender = int.Parse(m_dr["Gender"].ToString()); if (m_dr["Height"].ToString() != "") { m_famous.Height = int.Parse(m_dr["Height"].ToString().Replace("m", "")); } m_famous.IsTop = 0; m_famous.Name = m_dr["Name"].ToString(); m_famous.Source = "AstroTheme"; m_famous.TS = DateTime.Now; m_famous.Photo = m_dr["photo"].ToString(); m_famous.SysNo = SYS_FamousBll.GetInstance().Add(m_famous); SPD_FamousMod m_spider = SPD_FamousBll.GetInstance().GetModel(i); m_spider.FamousSysNo = m_famous.SysNo; SPD_FamousBll.GetInstance().Update(m_spider); //Console.WriteLine(m_dr["sysno"] + " add "); } } }
protected void PrepareForm() { #region 项绑定 drpCate.DataSource = SYS_Famous_CategoryBll.GetInstance().GetList(); drpCate.DataTextField = "Name"; drpCate.DataValueField = "SysNo"; drpCate.DataBind(); drpDistrict1.DataSource = SYS_DistrictBll.GetInstance().GetFirstLevel(0); drpDistrict1.DataTextField = "Name"; drpDistrict1.DataValueField = "SysNo"; drpDistrict1.DataBind(); drpDistrict1.Items.Insert(0, new ListItem("请选择", "0")); chkTime.DataSource = AppEnum.GetTimeUnknown(); chkTime.DataTextField = "Value"; chkTime.DataValueField = "Key"; chkTime.DataBind(); #endregion if (type == "ADD") { } else if (type == "EDIT") { if (Request.QueryString["id"] != null && Request.QueryString["id"] != "") { try { SysNo = int.Parse(Request.QueryString["id"]); SYS_FamousMod m_famous = SYS_FamousBll.GetInstance().GetModel(SysNo); txtSysNo.Text = m_famous.SysNo.ToString(); txtName.Text = m_famous.Name; txtFullName.Text = m_famous.FullName; txtDesc.Text = m_famous.Description; txtYear.Text = m_famous.BirthYear.ToString(); txtMonth.Text = m_famous.BirthTime.Month.ToString(); txtDay.Text = m_famous.BirthTime.Day.ToString(); txtHour.Text = m_famous.BirthTime.Hour.ToString(); txtMinute.Text = m_famous.BirthTime.Minute.ToString(); if (m_famous.Height != AppConst.IntNull) { txtHeight.Text = m_famous.Height.ToString(); } chkTime.SelectedIndex = chkTime.Items.IndexOf(chkTime.Items.FindByValue(m_famous.TimeUnknown.ToString())); drpCate.SelectedIndex = drpCate.Items.IndexOf(drpCate.Items.FindByValue(m_famous.CateSysNo.ToString())); drpGender.SelectedIndex = drpGender.Items.IndexOf(drpGender.Items.FindByValue(m_famous.Gender.ToString())); DataTable m_area = SYS_DistrictBll.GetInstance().GetTreeDetail(m_famous.HomeTown); if (!CommonTools.IsDataTableNoRow(m_area)) { drpDistrict1.SelectedIndex = drpDistrict1.Items.IndexOf(drpDistrict1.Items.FindByValue(m_area.Rows[0]["SysNo1"].ToString())); drpDistrict1_SelectedIndexChanged(new object(), new EventArgs()); drpDistrict2.SelectedIndex = drpDistrict2.Items.IndexOf(drpDistrict2.Items.FindByValue(m_area.Rows[0]["SysNo2"].ToString())); drpDistrict2_SelectedIndexChanged(new object(), new EventArgs()); drpDistrict3.SelectedIndex = drpDistrict3.Items.IndexOf(drpDistrict3.Items.FindByValue(m_area.Rows[0]["SysNo3"].ToString())); drpDistrict3_SelectedIndexChanged(new object(), new EventArgs()); } DataTable m_keydt = REL_Famous_KeyWordBll.GetInstance().GetFamousList(SysNo); if (!AppCmn.CommonTools.IsDataTableNoRow(m_keydt)) { for (int i = 0; i < m_keydt.Rows.Count; i++) { txtKey.Text += m_keydt.Rows[i]["KeyWords"].ToString() + " "; } txtKey.Text = txtKey.Text.Trim(); } } catch { Response.Redirect("../Error.aspx?msg="); return; } } } else if (type == "INPUT") { if (Request.QueryString["id"] != null && Request.QueryString["id"] != "") { try { int spider = int.Parse(Request.QueryString["id"]); SPD_FamousMod m_spider = SPD_FamousBll.GetInstance().GetModel(spider); txtSysNo.Text = "自动生成"; txtFullName.Text = m_spider.FamousName; string[] tmp = m_spider.BirthTmp.Split(new char[] { '-', ' ', ':' }); if (tmp.Length > 6) { if (m_spider.BirthTmp.StartsWith("-")) { txtYear.Text = "-" + tmp[1]; txtMonth.Text = tmp[2].Replace("January", "1").Replace("February", "2").Replace("March", "3") .Replace("April", "4").Replace("May", "5").Replace("June", "6").Replace("July", "7") .Replace("August", "8").Replace("September", "9").Replace("October", "10") .Replace("November", "11").Replace("December", "12"); txtDay.Text = tmp[3]; if (tmp[4] == "12" && tmp[5] == "00" && tmp[6] == "PM") { txtHour.Text = tmp[4]; chkTime.SelectedIndex = 0; } else { if (tmp[6] == "PM") { txtHour.Text = (int.Parse(tmp[4]) + 12).ToString(); } else { txtHour.Text = tmp[4]; } chkTime.SelectedIndex = 1; } txtMinute.Text = tmp[5]; } } else { txtYear.Text = tmp[0]; txtMonth.Text = tmp[1].Replace("January", "1").Replace("February", "2").Replace("March", "3") .Replace("April", "4").Replace("May", "5").Replace("June", "6").Replace("July", "7") .Replace("August", "8").Replace("September", "9").Replace("October", "10") .Replace("November", "11").Replace("December", "12"); txtDay.Text = tmp[2]; if (tmp[3] == "12" && tmp[4] == "00" && tmp[5] == "PM") { txtHour.Text = tmp[3]; chkTime.SelectedIndex = 0; } else { if (tmp[5] == "PM") { txtHour.Text = (int.Parse(tmp[3]) + 12).ToString(); } else { txtHour.Text = tmp[3]; } chkTime.SelectedIndex = 1; } txtMinute.Text = tmp[4]; } txtHeight.Text = m_spider.Height.Replace("m", ""); drpGender.SelectedIndex = drpGender.Items.IndexOf(drpGender.Items.FindByValue(m_spider.Gender.ToString())); DataTable m_area = SYS_DistrictBll.GetInstance().GetTreeDetail(m_spider.HomeTown.Split(new char[] { '(', ',' })[0].Trim()); if (!CommonTools.IsDataTableNoRow(m_area)) { drpDistrict1.SelectedIndex = drpDistrict1.Items.IndexOf(drpDistrict1.Items.FindByValue(m_area.Rows[0]["SysNo1"].ToString())); drpDistrict1_SelectedIndexChanged(new object(), new EventArgs()); drpDistrict2.SelectedIndex = drpDistrict2.Items.IndexOf(drpDistrict2.Items.FindByValue(m_area.Rows[0]["SysNo2"].ToString())); drpDistrict2_SelectedIndexChanged(new object(), new EventArgs()); drpDistrict3.SelectedIndex = drpDistrict3.Items.IndexOf(drpDistrict3.Items.FindByValue(m_area.Rows[0]["SysNo3"].ToString())); drpDistrict3_SelectedIndexChanged(new object(), new EventArgs()); } } catch { } } } }
protected void Unnamed3_Click(object sender, EventArgs e) { string[] keys = this.txtKey.Text.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); DataTable m_keys = new DataTable(); SYS_FamousMod m_famous = new SYS_FamousMod(); if (type == "EDIT") { if (Request.QueryString["id"] != null && Request.QueryString["id"] != "") { SysNo = int.Parse(Request.QueryString["id"]); } m_famous = SYS_FamousBll.GetInstance().GetModel(SysNo); m_keys = REL_Famous_KeyWordBll.GetInstance().GetFamousList(SysNo); } try { m_famous.BirthYear = int.Parse(txtYear.Text); m_famous.BirthTime = new DateTime(AppConst.DateTimeNull.Year, int.Parse(txtMonth.Text), int.Parse(txtDay.Text), int.Parse(txtHour.Text), int.Parse(txtMinute.Text), 0); m_famous.CateSysNo = int.Parse(drpCate.SelectedValue); m_famous.CustomerSysNo = GetSession().AdminEntity.CustomerSysNo; m_famous.Description = txtDesc.Text; m_famous.FullName = txtFullName.Text; m_famous.Gender = int.Parse(drpGender.SelectedValue); if (txtHeight.Text != AppConst.StringNull) { m_famous.Height = int.Parse(txtHeight.Text); } if (drpDistrict3.SelectedValue == "0") { ltrError.Text = "请选择第三级地区!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('errordiv').style.display='';closeforseconds();", true); } m_famous.HomeTown = int.Parse(drpDistrict3.SelectedValue); m_famous.Name = txtName.Text; if (type == "INPUT") { m_famous.Source = "AstroTheme"; } else { m_famous.Source = "手动添加"; } m_famous.TimeUnknown = int.Parse(chkTime.SelectedValue); } catch { ltrError.Text = "输入资料格式有误,请检查!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('errordiv').style.display='';closeforseconds();", true); return; } try { if (type == "ADD") { m_famous.SysNo = SYS_FamousBll.GetInstance().Add(m_famous); for (int i = 0; i < keys.Length; i++) { SYS_Famous_KeyWordsMod tmp_key = new SYS_Famous_KeyWordsMod(); tmp_key.SysNo = SYS_Famous_KeyWordsBll.GetInstance().GetSysNoByName(keys[i]); if (tmp_key.SysNo == AppConst.IntNull) { tmp_key.KeyWords = keys[i]; tmp_key.SysNo = SYS_Famous_KeyWordsBll.GetInstance().Add(tmp_key); } REL_Famous_KeyWordMod tmp_rel = new REL_Famous_KeyWordMod(); tmp_rel.Famous_SysNo = m_famous.SysNo; tmp_rel.KeyWord_SysNo = tmp_key.SysNo; REL_Famous_KeyWordBll.GetInstance().Add(tmp_rel); } LogManagement.getInstance().WriteTrace(m_famous.SysNo, "Celebrity.Add", "IP:" + Request.UserHostAddress + "|AdminID:" + GetSession().AdminEntity.Username); } else if (type == "EDIT") { SYS_FamousBll.GetInstance().Update(m_famous); REL_Famous_KeyWordBll.GetInstance().RemoveAllKeyByFamous(m_famous.SysNo); for (int i = 0; i < keys.Length; i++) { SYS_Famous_KeyWordsMod tmp_key = new SYS_Famous_KeyWordsMod(); tmp_key.SysNo = SYS_Famous_KeyWordsBll.GetInstance().GetSysNoByName(keys[i]); if (tmp_key.SysNo == AppConst.IntNull) { tmp_key.KeyWords = keys[i]; tmp_key.SysNo = SYS_Famous_KeyWordsBll.GetInstance().Add(tmp_key); } REL_Famous_KeyWordMod tmp_rel = new REL_Famous_KeyWordMod(); tmp_rel.Famous_SysNo = m_famous.SysNo; tmp_rel.KeyWord_SysNo = tmp_key.SysNo; REL_Famous_KeyWordBll.GetInstance().Add(tmp_rel); } LogManagement.getInstance().WriteTrace(m_famous.SysNo, "Celebrity.Edit", "IP:" + Request.UserHostAddress + "|AdminID:" + GetSession().AdminEntity.Username); } else if (type == "INPUT") { m_famous.SysNo = SYS_FamousBll.GetInstance().Add(m_famous); int spider = int.Parse(Request.QueryString["id"]); SPD_FamousMod m_spider = SPD_FamousBll.GetInstance().GetModel(spider); m_spider.FamousSysNo = m_famous.SysNo; SPD_FamousBll.GetInstance().Update(m_spider); for (int i = 0; i < keys.Length; i++) { SYS_Famous_KeyWordsMod tmp_key = new SYS_Famous_KeyWordsMod(); tmp_key.SysNo = SYS_Famous_KeyWordsBll.GetInstance().GetSysNoByName(keys[i]); if (tmp_key.SysNo == AppConst.IntNull) { tmp_key.KeyWords = keys[i]; tmp_key.SysNo = SYS_Famous_KeyWordsBll.GetInstance().Add(tmp_key); } REL_Famous_KeyWordMod tmp_rel = new REL_Famous_KeyWordMod(); tmp_rel.Famous_SysNo = m_famous.SysNo; tmp_rel.KeyWord_SysNo = tmp_key.SysNo; REL_Famous_KeyWordBll.GetInstance().Add(tmp_rel); } LogManagement.getInstance().WriteTrace(m_famous.SysNo, "Celebrity.Input", "IP:" + Request.UserHostAddress + "|AdminID:" + GetSession().AdminEntity.Username); } ltrNotice.Text = "该记录已保存成功!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('noticediv').style.display='';", true); } catch (Exception ex) { ltrError.Text = "系统错误,保存失败!"; this.ClientScript.RegisterStartupScript(this.GetType(), "", "document.getElementById('errordiv').style.display='';closeforseconds();", true); LogManagement.getInstance().WriteException(ex, "Celebrity.Save", "IP:" + Request.UserHostAddress + "|AdminID:" + GetSession().AdminEntity.Username); } }