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.

70 lines
1.8 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
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 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");
}
}
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
string str = "";
str = "sdfsdf";
}
/// <summary>
///
}
}