112 lines
3.2 KiB
C#
112 lines
3.2 KiB
C#
|
using BLL;
|
|||
|
using System;
|
|||
|
using System.Web;
|
|||
|
using System.Web.UI.WebControls;
|
|||
|
using System.Xml;
|
|||
|
using System.Linq;
|
|||
|
using System.Configuration;
|
|||
|
|
|||
|
namespace FineUIPro.Web
|
|||
|
{
|
|||
|
public partial class indexShiYe : PageBase
|
|||
|
{
|
|||
|
|
|||
|
private string _menuType = "menu";
|
|||
|
private int _examplesCount = 0;
|
|||
|
private string _searchText = "";
|
|||
|
#region Page_Init
|
|||
|
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
/// <param name="sender"></param>
|
|||
|
/// <param name="e"></param>
|
|||
|
protected void Page_Init(object sender, EventArgs e)
|
|||
|
{
|
|||
|
////////////////////////////////////////////////////////////////
|
|||
|
string themeStr = Request.QueryString["theme"];
|
|||
|
string menuStr = Request.QueryString["menu"];
|
|||
|
if (!String.IsNullOrEmpty(themeStr) || !String.IsNullOrEmpty(menuStr))
|
|||
|
{
|
|||
|
if (!String.IsNullOrEmpty(themeStr))
|
|||
|
{
|
|||
|
HttpCookie cookie = new HttpCookie("Theme_Pro", "Cupertino")
|
|||
|
{
|
|||
|
Expires = DateTime.Now.AddYears(1)
|
|||
|
};
|
|||
|
Response.Cookies.Add(cookie);
|
|||
|
}
|
|||
|
|
|||
|
if (!String.IsNullOrEmpty(menuStr))
|
|||
|
{
|
|||
|
HttpCookie cookie = new HttpCookie("MenuStyle_Pro", menuStr)
|
|||
|
{
|
|||
|
Expires = DateTime.Now.AddYears(1)
|
|||
|
};
|
|||
|
Response.Cookies.Add(cookie);
|
|||
|
}
|
|||
|
|
|||
|
PageContext.Redirect("~/indexProjectShiYe.aspx");
|
|||
|
return;
|
|||
|
}
|
|||
|
////////////////////////////////////////////////////////////////
|
|||
|
|
|||
|
if (!IsPostBack)
|
|||
|
{
|
|||
|
//this.CurrUser.LoginProjectId = null;
|
|||
|
UserService.UpdateUser(this.CurrUser);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 加载页面
|
|||
|
/// </summary>
|
|||
|
/// <param name="sender"></param>
|
|||
|
/// <param name="e"></param>
|
|||
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
this.mainTabStrip.ShowTabHeader = false;
|
|||
|
if (!IsPostBack)
|
|||
|
{
|
|||
|
//this.btnRetweet.Hidden = true;
|
|||
|
this.spDate.InnerText = DateTime.Now.ToLongDateString().ToString();
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
protected void btnHome_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
var currUser = Funs.DB.Sys_User.FirstOrDefault(x => x.UserId == this.CurrUser.UserId);
|
|||
|
string url = "~/indexProjectShiYe.aspx";
|
|||
|
// string url = "~/indexProject.aspx?projectId=" + this.CurrUser.LastProjectId;
|
|||
|
// UserService.UpdateLastUserInfo(this.CurrUser.UserId, null, false, this.CurrUser.LastProjectId);
|
|||
|
PageContext.Redirect(url, "_top");
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 重新生成系统菜单
|
|||
|
/// </summary>
|
|||
|
/// <param name="sender"></param>
|
|||
|
/// <param name="e"></param>
|
|||
|
protected void btnRetweet_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
////设置菜单
|
|||
|
CreateMenuXML.getMenuXML();
|
|||
|
|
|||
|
ShowNotify("菜单刷新完成!", MessageBoxIcon.Success);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|