265 lines
12 KiB
C#
265 lines
12 KiB
C#
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("<div class=\"head\">");
|
|
resultBuilder.Append("<div class=\"head_begin\"></div>");
|
|
resultBuilder.Append("<div>业务状态</div>");
|
|
resultBuilder.Append("<div>完成时间</div>");
|
|
resultBuilder.Append("<div>完成人</div>");
|
|
resultBuilder.Append("<div class=\"head_end\">备注</div></div>");
|
|
|
|
OpStatusDA opStatusDA = new OpStatusDA();
|
|
IList<OpStatusEntity> opStatusEntities = new List<OpStatusEntity>();
|
|
|
|
opStatusEntities = opStatusDA.GetOpStatusByBSNO(tempBSNO);
|
|
|
|
if (opStatusEntities.Count > 0)
|
|
{
|
|
for (int i = 0; i < opStatusEntities.Count; i++)
|
|
{
|
|
if (i == opStatusEntities.Count - 1)
|
|
{
|
|
resultBuilder.Append("<div class=\"row lastrow\">");
|
|
resultBuilder.Append("<div class=\"row_begin\"></div>");
|
|
resultBuilder.Append("<div class=\"row_id\">" + opStatusEntities[i].GID + "</div>");
|
|
resultBuilder.Append("<div>" + opStatusEntities[i].Status + "</div>");
|
|
resultBuilder.Append("<div>" + opStatusEntities[i].CompleteTime + "</div>");
|
|
resultBuilder.Append("<div>" + opStatusEntities[i].CompleteOperator + "</div>");
|
|
resultBuilder.Append("<div class=\"row_end\">" + opStatusEntities[i].Remark + "</div>");
|
|
resultBuilder.Append("</div>");
|
|
}
|
|
else
|
|
{
|
|
resultBuilder.Append("<div class=\"row\">");
|
|
resultBuilder.Append("<div class=\"row_begin\"></div>");
|
|
resultBuilder.Append("<div class=\"row_id\">" + opStatusEntities[i].GID + "</div>");
|
|
resultBuilder.Append("<div>" + opStatusEntities[i].Status + "</div>");
|
|
resultBuilder.Append("<div>" + opStatusEntities[i].CompleteTime + "</div>");
|
|
resultBuilder.Append("<div>" + opStatusEntities[i].CompleteOperator + "</div>");
|
|
resultBuilder.Append("<div class=\"row_end\">" + opStatusEntities[i].Remark + "</div>");
|
|
resultBuilder.Append("</div>");
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
resultBuilder.Append("<div class=\"row lastrow\">");
|
|
resultBuilder.Append("<div class=\"row_begin\"></div>");
|
|
resultBuilder.Append("<div class=\"row_id\"></div>");
|
|
resultBuilder.Append("<div></div>");
|
|
resultBuilder.Append("<div></div>");
|
|
resultBuilder.Append("<div></div>");
|
|
resultBuilder.Append("<div class=\"row_end\"></div>");
|
|
resultBuilder.Append("</div>");
|
|
}
|
|
dvOpStatus.InnerHtml = resultBuilder.ToString();
|
|
}
|
|
//获取提单签发信息
|
|
private void GetSeaImportInfoBlissueSur(string tempBSNO)
|
|
{
|
|
StringBuilder resultBuilder = new StringBuilder();
|
|
|
|
resultBuilder.Append("<div class=\"head\">");
|
|
resultBuilder.Append("<div class=\"head_begin\"></div>");
|
|
resultBuilder.Append("<div>处理状态</div>");
|
|
resultBuilder.Append("<div>处理人</div>");
|
|
resultBuilder.Append("<div>处理时间</div>");
|
|
resultBuilder.Append("<div class=\"head_end\">备注</div></div>");
|
|
|
|
OpBlissueDA opBlissueDA = new OpBlissueDA();
|
|
IList<OpBlissueEntity> opBlissueEntities = new List<OpBlissueEntity>();
|
|
//根据委托业务BSNO获取提前签发所有信息
|
|
opBlissueEntities = opBlissueDA.GetOpBlissueByBSNO(tempBSNO);
|
|
|
|
if (opBlissueEntities.Count > 0)
|
|
{
|
|
for (int i = 0; i < opBlissueEntities.Count; i++)
|
|
{
|
|
if (i == opBlissueEntities.Count - 1)
|
|
{
|
|
resultBuilder.Append("<div class=\"row lastrow\">");
|
|
resultBuilder.Append("<div class=\"row_begin\"></div>");
|
|
resultBuilder.Append("<div class=\"row_id\">" + opBlissueEntities[i].ID + "</div>");
|
|
resultBuilder.Append("<div>" + opBlissueEntities[i].BLSTATUS + "</div>");
|
|
resultBuilder.Append("<div>" + opBlissueEntities[i].OPNAME + "</div>");
|
|
resultBuilder.Append("<div>" + opBlissueEntities[i].OPTIME + "</div>");
|
|
resultBuilder.Append("<div class=\"row_end\">" + opBlissueEntities[i].REMARK + "</div>");
|
|
resultBuilder.Append("</div>");
|
|
}
|
|
else
|
|
{
|
|
resultBuilder.Append("<div class=\"row\">");
|
|
resultBuilder.Append("<div class=\"row_begin\"></div>");
|
|
resultBuilder.Append("<div class=\"row_id\">" + opBlissueEntities[i].ID + "</div>");
|
|
resultBuilder.Append("<div>" + opBlissueEntities[i].BLSTATUS + "</div>");
|
|
resultBuilder.Append("<div>" + opBlissueEntities[i].OPNAME + "</div>");
|
|
resultBuilder.Append("<div>" + opBlissueEntities[i].OPTIME + "</div>");
|
|
resultBuilder.Append("<div class=\"row_end\">" + opBlissueEntities[i].REMARK + "</div>");
|
|
resultBuilder.Append("</div>");
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
resultBuilder.Append("<div class=\"row lastrow\">");
|
|
resultBuilder.Append("<div class=\"row_begin\"></div>");
|
|
resultBuilder.Append("<div class=\"row_id\"></div>");
|
|
resultBuilder.Append("<div></div>");
|
|
resultBuilder.Append("<div></div>");
|
|
resultBuilder.Append("<div></div>");
|
|
resultBuilder.Append("<div class=\"row_end\"></div>");
|
|
resultBuilder.Append("</div>");
|
|
}
|
|
dvBlissue.InnerHtml = resultBuilder.ToString();
|
|
}
|
|
private void GetOpSeaiInfo()
|
|
{
|
|
SeaImportInfoDA seaImportDA = new SeaImportInfoDA();
|
|
TopSeaiEntity topSeiEntity = seaImportDA.GetID(strBSNO);
|
|
|
|
if (topSeiEntity.BSNO != null)
|
|
{
|
|
////委托业务编号
|
|
//dvOrderNumVal.Value = topSeaEntity.BSNO;
|
|
//委托编号
|
|
dvCustnoVal.InnerHtml = topSeiEntity.CUSTNO;
|
|
//主提单号
|
|
//dvMblnoVal.InnerHtml = topSeiEntity.MBLNO;
|
|
//箱型箱量
|
|
dvCtntotalVal.InnerHtml = topSeiEntity.CNTRTOTAL;
|
|
////付费方式
|
|
//dvPaymentVal.InnerHtml = topSeiEntity.BLFRT;
|
|
//揽货人
|
|
dvChannelSaleVal.InnerHtml = topSeiEntity.SALE;
|
|
//委托单位
|
|
dvCustomerVal.InnerHtml = topSeiEntity.CUSTOMERNAME;
|
|
//卸货港
|
|
dvDischargePortVal.InnerHtml = topSeiEntity.PORTDISCHARGE;
|
|
////MBL付费方式
|
|
//dvPaymentMBLVal.InnerHtml = topSeiEntity.MBLFRT;
|
|
//业务来源
|
|
dvBssourceVal.InnerHtml = topSeiEntity.BSSOURCE;
|
|
////航线
|
|
//dvLaneVal.InnerHtml = topSeiEntity.LANE;
|
|
//船名
|
|
dvVesselVal.InnerHtml = topSeiEntity.VESSEL;
|
|
//航次
|
|
dvVoynoVal.InnerHtml = topSeiEntity.VOYNO;
|
|
//毛重
|
|
dvKGSVal.InnerHtml = topSeiEntity.KGS.ToString().Trim();
|
|
//毛重
|
|
dvNETWEIGHTVal.InnerHtml = topSeiEntity.NETWEIGHT.ToString().Trim();
|
|
////是否熏蒸
|
|
//ck_isfumigation.Checked = topSeiEntity.ISFUMIGATION;
|
|
////是否仓储
|
|
//ck_isstorage.Checked = topSeiEntity.ISSTORAGE;
|
|
////是否陆运
|
|
//ck_island.Checked = topSeiEntity.ISLAND;
|
|
////是否报关
|
|
//ck_iscustoms.Checked = topSeiEntity.ISCUSTOMS;
|
|
////是否报检
|
|
//ck_isinspection.Checked = topSeiEntity.ISINSPECTION;
|
|
////是否订舱
|
|
//ck_isbooking.Checked = topSeiEntity.ISBOOKING;
|
|
////使用代理
|
|
//ck_isagent.Checked = topSeiEntity.ISAGENT;
|
|
////分单签单
|
|
//ck_ishblno.Checked = topSeiEntity.ISHBLNO;
|
|
}
|
|
}
|
|
}
|
|
}
|