You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.UI;
|
|
|
|
|
using System.Web.UI.WebControls;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Net;
|
|
|
|
|
using DSWeb.Models;
|
|
|
|
|
using DSWeb.EntityDA;
|
|
|
|
|
using DSWeb.Filter;
|
|
|
|
|
using DSWeb.Authority;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using DSWeb.Areas.MvcShipping.DAL.MsMainForm;
|
|
|
|
|
using DSWeb.Areas.MvcShipping.Models.MsMainForm;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DSWeb
|
|
|
|
|
{
|
|
|
|
|
public partial class _Default : PageBase
|
|
|
|
|
{
|
|
|
|
|
private string strUserID;
|
|
|
|
|
private string strShowName;
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
//其他判断
|
|
|
|
|
if (Session["USERID"] != null)
|
|
|
|
|
strUserID = Session["USERID"].ToString();
|
|
|
|
|
if (Session["SHOWNAME"] != null)
|
|
|
|
|
strShowName = Session["SHOWNAME"].ToString();
|
|
|
|
|
if (strUserID != null && strShowName != null)
|
|
|
|
|
{
|
|
|
|
|
if (Session["CODENAME"] != null && Session["PASS"] != null)
|
|
|
|
|
{
|
|
|
|
|
List<LoginSign> LoginInfo =
|
|
|
|
|
MsLoginSign.GetDataList(Session["CODENAME"].ToString(), Session["PASS"].ToString());
|
|
|
|
|
foreach (LoginSign sign in LoginInfo)
|
|
|
|
|
{
|
|
|
|
|
if (Session["COMPANYID"].ToString() != sign.CompanyID)
|
|
|
|
|
Response.Redirect("login.aspx");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Response.Redirect("login.aspx");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
Response.Redirect("login.aspx");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|