using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Collections.Generic; using System.Text; using DSWeb.Models; using DSWeb.EntityDA; using DSWeb.Authority; namespace DSWeb.BaseInfo { public partial class OpSeaiBaseInfo : System.Web.UI.Page { private string strUserID; private string strCompanyID;//公司GID private string strShowName;//用户显示名 private string strDeptName;//部门名称 private string strHandle; private string strBSNO; 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 (Session["COMPANYID"] != null) { strCompanyID = Session["COMPANYID"].ToString(); } if (Session["DEPTNAME"] != null) { strDeptName = Session["DEPTNAME"].ToString(); } if (Request.QueryString["handle"] != null) { strHandle = Request.QueryString["handle"].ToString().ToLower().Trim(); } if (Request.QueryString["bsno"] != null) { strBSNO = Request.QueryString["bsno"].ToString(); h_bsno.Value = strBSNO; } if (strHandle != null) { if (strBSNO != null) { GetOpSeaiInfo(); GetSeaImportInfoBlissueSur(strBSNO); GetOpStatus(strBSNO); } int iRecvAuthorityStatus = 0; int iPayAuthorityStatus = 0; UserAuthorityManage userRecvAuthorityManage = new UserAuthorityManage(strUserID, "modRecvFeeManagement"); if (userRecvAuthorityManage.OperateType != AuthorityType.NULL) { iRecvAuthorityStatus = userRecvAuthorityManage.CheckOperateRange(ModuleType.SEAIRECVFEE, userRecvAuthorityManage.OperateType, strShowName, strCompanyID, strDeptName, strBSNO, "", strUserID); h_recvauthority.Value = iRecvAuthorityStatus.ToString(); } else { h_recvauthority.Value = "1"; } //UserAuthorityManage userPayAuthorityManage = new UserAuthorityManage(strUserID, "modPayFeeManagement"); UserAuthorityManage userSeaiPayAuthorityManage = new UserAuthorityManage(strUserID, "modSeaiPayFeeManagement"); if (userSeaiPayAuthorityManage.OperateType != AuthorityType.NULL) { iPayAuthorityStatus = userSeaiPayAuthorityManage.CheckOperateRange(ModuleType.SEAIPAYFEE, userSeaiPayAuthorityManage.OperateType, strShowName, strCompanyID, strDeptName, strBSNO, "", strUserID); h_payauthority.Value = iPayAuthorityStatus.ToString(); } else { h_payauthority.Value = "1"; } } } private void GetOpStatus(string tempBSNO) { StringBuilder resultBuilder = new StringBuilder(); resultBuilder.Append("