using DSWeb.Areas.MvcShipping.DAL.MsOpSeaeBaoXian; using DSWeb.Areas.MvcShipping.Models.MsOpSeaeBaoXian; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.UI; using System.Web.UI.WebControls; namespace DSWeb.Areas.MvcShipping.Views.MsOpSeaeBaoXianLS { public partial class index : ViewPage { public OpSeaeBaoXianModel_Query_Response _Model; protected void Page_Load(object sender, EventArgs e) { var uid = Session["USERID"]; if (uid!=null) { try { var comid = Session["COMPANYID"].ToString(); _Model = MsOpSeaeBaoXianDAL.query(uid.ToString(),"01", comid); if (_Model.success == "true") { Response.Redirect(_Model.result.url); } else { Response.Write(_Model.message); } } catch (Exception ex) { Response.Write(ex.Message); } } else { Response.Write("登陆超时,请重新登陆!"); } } } }