数据大屏优化
This commit is contained in:
@@ -69,25 +69,25 @@ namespace FineUIPro.Web
|
||||
if (!IsPostBack)
|
||||
{
|
||||
bool IsSSO = false;
|
||||
Sys_User user=new Sys_User();
|
||||
string message="";
|
||||
Sys_User user = new Sys_User();
|
||||
string message = "";
|
||||
|
||||
var ThisUnit = CommonService.GetIsThisUnit();
|
||||
string token;
|
||||
switch (ThisUnit.CollCropCode)
|
||||
{
|
||||
case "913201001349030968":
|
||||
|
||||
|
||||
token = Request.Params["token"];
|
||||
if (string.IsNullOrEmpty(token)) return;
|
||||
IsSSO = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (IsSSO )
|
||||
if (IsSSO)
|
||||
{
|
||||
if (message != "")
|
||||
{
|
||||
{
|
||||
Response.Write("<script language=javascript>alert('" + message + "');</script>");
|
||||
}
|
||||
else
|
||||
@@ -97,9 +97,10 @@ namespace FineUIPro.Web
|
||||
string url = "";
|
||||
//Funs.SystemUrl = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port + "/cncechsse/";
|
||||
BLL.LogService.AddLog(this.CurrUser.UserId, "登录成功!");
|
||||
if (this.CurrUser.IsOffice==true) //本部人员跳转到公司级
|
||||
{
|
||||
url = "index.aspx";
|
||||
if (this.CurrUser.IsOffice == true) //本部人员跳转到公司级
|
||||
{
|
||||
//url = "index.aspx";
|
||||
url = "index.aspx?unitId=" + this.CurrUser.UnitId;
|
||||
}
|
||||
else //非本部人员跳转到项目级
|
||||
{
|
||||
@@ -116,24 +117,24 @@ namespace FineUIPro.Web
|
||||
//// 项目菜单
|
||||
url = "indexProject.aspx?projectId=" + this.CurrUser.LastProjectId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
HttpContext.Current.Response.Write("<script> top.window.location.href='" + url + "';</script>");
|
||||
HttpContext.Current.Response.End();
|
||||
// Response.Redirect( url);
|
||||
// Server.Execute( url);
|
||||
// Response.Write("<script language='javascript'>window.open('" + url + "');</script>");
|
||||
// Server.Execute( url);
|
||||
// Response.Write("<script language='javascript'>window.open('" + url + "');</script>");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
[WebMethod]
|
||||
public static string LoginPost(string user, string pwd,string rbSys)
|
||||
public static string LoginPost(string user, string pwd, string rbSys)
|
||||
{
|
||||
return new Login().btnLogin_Click(user, pwd, rbSys);
|
||||
}
|
||||
@@ -240,11 +241,17 @@ namespace FineUIPro.Web
|
||||
//}
|
||||
if (rbSys == "工程")
|
||||
{
|
||||
this.SysType = "GONGCHENG";
|
||||
this.SysType = "GONGCHENG";
|
||||
}
|
||||
else if (rbSys == "公司/分公司")
|
||||
{
|
||||
url = "index.aspx";
|
||||
//url = "index.aspx";
|
||||
string unitId = Const.UnitId_XJYJ;
|
||||
if (!string.IsNullOrWhiteSpace(this.CurrUser.UnitId) && this.CurrUser.Base_Unit.IsBranch == true)
|
||||
{
|
||||
unitId = this.CurrUser.UnitId;
|
||||
}
|
||||
url = "index.aspx?unitId=" + unitId;
|
||||
this.SysType = "GONGCHENG";
|
||||
}
|
||||
else if (rbSys == "实业")
|
||||
@@ -262,7 +269,7 @@ namespace FineUIPro.Web
|
||||
|
||||
}
|
||||
if (string.IsNullOrEmpty(error))
|
||||
{
|
||||
{
|
||||
return url;
|
||||
}
|
||||
else
|
||||
@@ -282,11 +289,11 @@ namespace FineUIPro.Web
|
||||
[WebMethod]
|
||||
public static string ResetPost(string accout, string name, string idcard)
|
||||
{
|
||||
|
||||
|
||||
Model.Sys_User sysUser = (from y in Funs.DB.Sys_User
|
||||
where y.Account == accout && y.IsPost == true
|
||||
select y).FirstOrDefault();
|
||||
if (sysUser ==null)
|
||||
if (sysUser == null)
|
||||
{
|
||||
return "用户名或密码错误,请重新输入";
|
||||
}
|
||||
@@ -294,7 +301,7 @@ namespace FineUIPro.Web
|
||||
{
|
||||
return "用户名或密码错误,请重新输入";
|
||||
}
|
||||
else if(name != sysUser.UserName)
|
||||
else if (name != sysUser.UserName)
|
||||
{
|
||||
return "用户名或密码错误,请重新输入";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user