|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
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.Text;
|
|
|
|
|
using DSWeb.DataAccess;
|
|
|
|
|
using System.Data.SqlClient;
|
|
|
|
|
using DSWeb.Models;
|
|
|
|
|
using DSWeb.EntityDA;
|
|
|
|
|
using System.Web.Script.Serialization;
|
|
|
|
|
using JsonHelper;
|
|
|
|
|
using DSWeb.Log;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.PriceCarrier
|
|
|
|
|
{
|
|
|
|
|
public partial class CrmPriceCarrierInfo : System.Web.UI.Page
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity CrmPriceCarrierEntity = new CrmPriceCarrierEntity();
|
|
|
|
|
CrmPriceCarrierDA CrmPriceCarrierDA = new CrmPriceCarrierDA();
|
|
|
|
|
public string strHandleType = String.Empty;
|
|
|
|
|
public string strUserID;//用户GID
|
|
|
|
|
public string strCompanyID;//公司GID
|
|
|
|
|
public string strShowName;//用户显示名
|
|
|
|
|
public string strDeptName;//部门名称
|
|
|
|
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (Session["USERID"] != null)
|
|
|
|
|
{
|
|
|
|
|
strUserID = Session["USERID"].ToString().Trim();
|
|
|
|
|
this.hdUserID.Value = strUserID.Trim();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Server.Transfer("~/Error/FriendError.aspx");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (Session["SHOWNAME"] != null)
|
|
|
|
|
{
|
|
|
|
|
strShowName = Session["SHOWNAME"].ToString();
|
|
|
|
|
}
|
|
|
|
|
if (Session["COMPANYID"] != null)
|
|
|
|
|
{
|
|
|
|
|
strCompanyID = Session["COMPANYID"].ToString();
|
|
|
|
|
this.hdCompanyid.Value = strCompanyID.Trim();
|
|
|
|
|
}
|
|
|
|
|
if (Session["DEPTNAME"] != null)
|
|
|
|
|
{
|
|
|
|
|
strDeptName = Session["DEPTNAME"].ToString();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
if (Request.QueryString["handle"] != null)
|
|
|
|
|
{
|
|
|
|
|
Session["strHandleType"] = Request.QueryString["handle"].ToString();//"edit";
|
|
|
|
|
strHandleType = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["id"] != null)
|
|
|
|
|
{
|
|
|
|
|
Session["GID"] = Request.QueryString["id"].ToString();
|
|
|
|
|
this.hdGid.Value = Session["GID"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (Request.QueryString["isenabled"] != null)
|
|
|
|
|
{
|
|
|
|
|
this.isEnabled.Value = Request.QueryString["isenabled"].ToString();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
switch (strHandleType)
|
|
|
|
|
{
|
|
|
|
|
case "add"://新增
|
|
|
|
|
getaddnull();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
break;
|
|
|
|
|
case "addfull"://新增
|
|
|
|
|
btSubmit.Text = "锁定";
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity = CrmPriceCarrierDA.GetID(Session["GID"].ToString().Trim());
|
|
|
|
|
if (CrmPriceCarrierEntity.GID != null)
|
|
|
|
|
{
|
|
|
|
|
this.hd_comboPODLOAD.Value = CrmPriceCarrierEntity.PODLOAD == null ? "" :
|
|
|
|
|
this.hd_comboPORTDISCHARGE.Value = CrmPriceCarrierEntity.PORTDISCHARGE == null ? "" : CrmPriceCarrierEntity.PORTDISCHARGE.ToString().Trim();
|
|
|
|
|
this.hd_comboDESTINATION.Value = CrmPriceCarrierEntity.DESTINATION == null ? "" : CrmPriceCarrierEntity.DESTINATION.ToString().Trim();
|
|
|
|
|
this.hd_comboVIA.Value = CrmPriceCarrierEntity.VIA == null ? "" : CrmPriceCarrierEntity.VIA.ToString().Trim();
|
|
|
|
|
this.hd_comboPIRICEVIAPORT.Value = CrmPriceCarrierEntity.PIRICEVIAPORT == null ? "" : CrmPriceCarrierEntity.PIRICEVIAPORT.ToString().Trim();
|
|
|
|
|
tbPOC.Text = CrmPriceCarrierEntity.POC == null ? "" : CrmPriceCarrierEntity.POC.ToString().Trim();
|
|
|
|
|
this.hd_comboLANE.Value = CrmPriceCarrierEntity.LANE == null ? "" : CrmPriceCarrierEntity.LANE.ToString().Trim();
|
|
|
|
|
tbCARRIERLANE.Text = CrmPriceCarrierEntity.CARRIERLANE == null ? "" : CrmPriceCarrierEntity.CARRIERLANE.ToString().Trim();
|
|
|
|
|
this.hd_comboCARRIER.Value = CrmPriceCarrierEntity.CARRIER == null ? "" : CrmPriceCarrierEntity.CARRIER.ToString().Trim();
|
|
|
|
|
this.hd_comboFORWARDER.Value = CrmPriceCarrierEntity.FORWARDER == null ? "" : CrmPriceCarrierEntity.FORWARDER.ToString().Trim();
|
|
|
|
|
this.hd_comboETD.Value = CrmPriceCarrierEntity.ETD == null ? "" : CrmPriceCarrierEntity.ETD.ToString().Trim();
|
|
|
|
|
tbTT.Text = CrmPriceCarrierEntity.TT == null ? "" : CrmPriceCarrierEntity.TT.ToString().Trim();
|
|
|
|
|
this.hd_comboSVC.Value = CrmPriceCarrierEntity.SVC == null ? "" : CrmPriceCarrierEntity.SVC.ToString().Trim();
|
|
|
|
|
tbSC.Text = CrmPriceCarrierEntity.SC == null ? "" : CrmPriceCarrierEntity.SC.ToString().Trim();
|
|
|
|
|
tbNAMEAC.Text = CrmPriceCarrierEntity.NAMEAC == null ? "" : CrmPriceCarrierEntity.NAMEAC.ToString().Trim();
|
|
|
|
|
this.hd_comboSICUT.Value = CrmPriceCarrierEntity.SICUT == null ? "" : CrmPriceCarrierEntity.SICUT.ToString().Trim();
|
|
|
|
|
this.hd_comboCUSCLSG.Value = CrmPriceCarrierEntity.CUSCLSG == null ? "" : CrmPriceCarrierEntity.CUSCLSG.ToString().Trim();
|
|
|
|
|
this.hd_comboCYCLSG.Value = CrmPriceCarrierEntity.CYCLSG == null ? "" : CrmPriceCarrierEntity.CYCLSG.ToString().Trim();
|
|
|
|
|
tbOWS.Text = CrmPriceCarrierEntity.OWS == null ? "" : CrmPriceCarrierEntity.OWS.ToString().Trim();
|
|
|
|
|
tbCOMMODITY.Text = CrmPriceCarrierEntity.COMMODITY == null ? "" : CrmPriceCarrierEntity.COMMODITY.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
tb20GP0.Text = CrmPriceCarrierEntity.D_20GP0.ToString().Trim();
|
|
|
|
|
tb20RS0.Text = CrmPriceCarrierEntity.D_20RS0.ToString().Trim();
|
|
|
|
|
tb40GP0.Text = CrmPriceCarrierEntity.D_40GP0.ToString().Trim();
|
|
|
|
|
tb40HQ0.Text = CrmPriceCarrierEntity.D_40HQ0.ToString().Trim();
|
|
|
|
|
tb40RH0.Text = CrmPriceCarrierEntity.D_40RH0.ToString().Trim();
|
|
|
|
|
tb45HQ0.Text = CrmPriceCarrierEntity.D_45HQ0.ToString().Trim();
|
|
|
|
|
tb20GP1.Text = CrmPriceCarrierEntity.D_20GP1.ToString().Trim();
|
|
|
|
|
tb20RS1.Text = CrmPriceCarrierEntity.D_20RS1.ToString().Trim();
|
|
|
|
|
tb40GP1.Text = CrmPriceCarrierEntity.D_40GP1.ToString().Trim();
|
|
|
|
|
tb40HQ1.Text = CrmPriceCarrierEntity.D_40HQ1.ToString().Trim();
|
|
|
|
|
tb40RH1.Text = CrmPriceCarrierEntity.D_40RH1.ToString().Trim();
|
|
|
|
|
tb45HQ1.Text = CrmPriceCarrierEntity.D_45HQ1.ToString().Trim();
|
|
|
|
|
//tb20GP2.Text = CrmPriceCarrierEntity.D_20GP2.ToString().Trim();
|
|
|
|
|
//tb20RS2.Text = CrmPriceCarrierEntity.D_20RS2.ToString().Trim();
|
|
|
|
|
//tb40GP2.Text = CrmPriceCarrierEntity.D_40GP2.ToString().Trim();
|
|
|
|
|
//tb40HQ2.Text = CrmPriceCarrierEntity.D_40HQ2.ToString().Trim();
|
|
|
|
|
//tb40RH2.Text = CrmPriceCarrierEntity.D_40RH2.ToString().Trim();
|
|
|
|
|
//tb45HQ2.Text = CrmPriceCarrierEntity.D_45HQ2.ToString().Trim();
|
|
|
|
|
//tb20GP3.Text = CrmPriceCarrierEntity.D_20GP3.ToString().Trim();
|
|
|
|
|
//tb20RS3.Text = CrmPriceCarrierEntity.D_20RS3.ToString().Trim();
|
|
|
|
|
//tb40GP3.Text = CrmPriceCarrierEntity.D_40GP3.ToString().Trim();
|
|
|
|
|
//tb40HQ3.Text = CrmPriceCarrierEntity.D_40HQ3.ToString().Trim();
|
|
|
|
|
//tb40RH3.Text = CrmPriceCarrierEntity.D_40RH3.ToString().Trim();
|
|
|
|
|
//tb45HQ3.Text = CrmPriceCarrierEntity.D_45HQ3.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
tbPROFIT20GP.Text = CrmPriceCarrierEntity.PROFIT20GP1.ToString().Trim();
|
|
|
|
|
tbPROFIT20RS.Text = CrmPriceCarrierEntity.PROFIT20RS1.ToString().Trim();
|
|
|
|
|
tbPROFIT40GP.Text = CrmPriceCarrierEntity.PROFIT40GP1.ToString().Trim();
|
|
|
|
|
tbPROFIT40HQ.Text = CrmPriceCarrierEntity.PROFIT40HQ1.ToString().Trim();
|
|
|
|
|
tbPROFIT40RH.Text = CrmPriceCarrierEntity.PROFIT40RH1.ToString().Trim();
|
|
|
|
|
tbPROFIT45HQ.Text = CrmPriceCarrierEntity.PROFIT45HQ1.ToString().Trim();
|
|
|
|
|
tbOF20GP.Text = CrmPriceCarrierEntity.OF20GP.ToString().Trim();
|
|
|
|
|
tbBAF20GP.Text = CrmPriceCarrierEntity.BAF20GP.ToString().Trim();
|
|
|
|
|
tbCAF20GP.Text = CrmPriceCarrierEntity.CAF20GP.ToString().Trim();
|
|
|
|
|
tbPSS20GP.Text = CrmPriceCarrierEntity.PSS20GP.ToString().Trim();
|
|
|
|
|
tbGRI20GP.Text = CrmPriceCarrierEntity.GRI20GP.ToString().Trim();
|
|
|
|
|
tbINLAND20GP.Text = CrmPriceCarrierEntity.INLAND20GP.ToString().Trim();
|
|
|
|
|
tbISPS20GP.Text = CrmPriceCarrierEntity.ISPS20GP.ToString().Trim();
|
|
|
|
|
tbSZ20GP.Text = CrmPriceCarrierEntity.SZ20GP.ToString().Trim();
|
|
|
|
|
tbAG20GP.Text = CrmPriceCarrierEntity.AG20GP.ToString().Trim();
|
|
|
|
|
tbOF20RS.Text = CrmPriceCarrierEntity.OF20RS.ToString().Trim();
|
|
|
|
|
tbBAF20RS.Text = CrmPriceCarrierEntity.BAF20RS.ToString().Trim();
|
|
|
|
|
tbCAF20RS.Text = CrmPriceCarrierEntity.CAF20RS.ToString().Trim();
|
|
|
|
|
tbPSS20RS.Text = CrmPriceCarrierEntity.PSS20RS.ToString().Trim();
|
|
|
|
|
tbGRI20RS.Text = CrmPriceCarrierEntity.GRI20RS.ToString().Trim();
|
|
|
|
|
tbINLAND20RS.Text = CrmPriceCarrierEntity.INLAND20RS.ToString().Trim();
|
|
|
|
|
tbISPS20RS.Text = CrmPriceCarrierEntity.ISPS20RS.ToString().Trim();
|
|
|
|
|
tbSZ20RS.Text = CrmPriceCarrierEntity.SZ20RS.ToString().Trim();
|
|
|
|
|
tbAG20RS.Text = CrmPriceCarrierEntity.AG20RS.ToString().Trim();
|
|
|
|
|
tbOF40GP.Text = CrmPriceCarrierEntity.OF40GP.ToString().Trim();
|
|
|
|
|
tbBAF40GP.Text = CrmPriceCarrierEntity.BAF40GP.ToString().Trim();
|
|
|
|
|
tbCAF40GP.Text = CrmPriceCarrierEntity.CAF40GP.ToString().Trim();
|
|
|
|
|
tbPSS40GP.Text = CrmPriceCarrierEntity.PSS40GP.ToString().Trim();
|
|
|
|
|
tbGRI40GP.Text = CrmPriceCarrierEntity.GRI40GP.ToString().Trim();
|
|
|
|
|
tbINLAND40GP.Text = CrmPriceCarrierEntity.INLAND40GP.ToString().Trim();
|
|
|
|
|
tbISPS40GP.Text = CrmPriceCarrierEntity.ISPS40GP.ToString().Trim();
|
|
|
|
|
tbSZ40GP.Text = CrmPriceCarrierEntity.SZ40GP.ToString().Trim();
|
|
|
|
|
tbAG40GP.Text = CrmPriceCarrierEntity.AG40GP.ToString().Trim();
|
|
|
|
|
tbOF40HQ.Text = CrmPriceCarrierEntity.OF40HQ.ToString().Trim();
|
|
|
|
|
tbBAF40HQ.Text = CrmPriceCarrierEntity.BAF40HQ.ToString().Trim();
|
|
|
|
|
tbCAF40HQ.Text = CrmPriceCarrierEntity.CAF40HQ.ToString().Trim();
|
|
|
|
|
tbPSS40HQ.Text = CrmPriceCarrierEntity.PSS40HQ.ToString().Trim();
|
|
|
|
|
tbGRI40HQ.Text = CrmPriceCarrierEntity.GRI40HQ.ToString().Trim();
|
|
|
|
|
tbINLAND40HQ.Text = CrmPriceCarrierEntity.INLAND40HQ.ToString().Trim();
|
|
|
|
|
tbISPS40HQ.Text = CrmPriceCarrierEntity.ISPS40HQ.ToString().Trim();
|
|
|
|
|
tbSZ40HQ.Text = CrmPriceCarrierEntity.SZ40HQ.ToString().Trim();
|
|
|
|
|
tbAG40HQ.Text = CrmPriceCarrierEntity.AG40HQ.ToString().Trim();
|
|
|
|
|
tbOF40RH.Text = CrmPriceCarrierEntity.OF40RH.ToString().Trim();
|
|
|
|
|
tbBAF40RH.Text = CrmPriceCarrierEntity.BAF40RH.ToString().Trim();
|
|
|
|
|
tbCAF40RH.Text = CrmPriceCarrierEntity.CAF40RH.ToString().Trim();
|
|
|
|
|
tbPSS40RH.Text = CrmPriceCarrierEntity.PSS40RH.ToString().Trim();
|
|
|
|
|
tbGRI40RH.Text = CrmPriceCarrierEntity.GRI40RH.ToString().Trim();
|
|
|
|
|
tbINLAND40RH.Text = CrmPriceCarrierEntity.INLAND40RH.ToString().Trim();
|
|
|
|
|
tbISPS40RH.Text = CrmPriceCarrierEntity.ISPS40RH.ToString().Trim();
|
|
|
|
|
tbSZ40RH.Text = CrmPriceCarrierEntity.SZ40RH.ToString().Trim();
|
|
|
|
|
tbAG40RH.Text = CrmPriceCarrierEntity.AG40RH.ToString().Trim();
|
|
|
|
|
tbOF45HQ.Text = CrmPriceCarrierEntity.OF45HQ.ToString().Trim();
|
|
|
|
|
tbBAF45HQ.Text = CrmPriceCarrierEntity.BAF45HQ.ToString().Trim();
|
|
|
|
|
tbCAF45HQ.Text = CrmPriceCarrierEntity.CAF45HQ.ToString().Trim();
|
|
|
|
|
tbPSS45HQ.Text = CrmPriceCarrierEntity.PSS45HQ.ToString().Trim();
|
|
|
|
|
tbGRI45HQ.Text = CrmPriceCarrierEntity.GRI45HQ.ToString().Trim();
|
|
|
|
|
tbINLAND45HQ.Text = CrmPriceCarrierEntity.INLAND45HQ.ToString().Trim();
|
|
|
|
|
tbISPS45HQ.Text = CrmPriceCarrierEntity.ISPS45HQ.ToString().Trim();
|
|
|
|
|
tbSZ45HQ.Text = CrmPriceCarrierEntity.SZ45HQ.ToString().Trim();
|
|
|
|
|
tbAG45HQ.Text = CrmPriceCarrierEntity.AG45HQ.ToString().Trim();
|
|
|
|
|
tbREMARK.Text = CrmPriceCarrierEntity.REMARK == null ? "" : CrmPriceCarrierEntity.REMARK.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
if (CrmPriceCarrierEntity.VALIDDATE.ToString().Trim().IndexOf("0001")>-1)
|
|
|
|
|
{
|
|
|
|
|
tbVALIDDATE.Text = "";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tbVALIDDATE.Text = CrmPriceCarrierEntity.VALIDDATE.ToString("yyyy-MM-dd").Trim();
|
|
|
|
|
}
|
|
|
|
|
if (CrmPriceCarrierEntity.EFFECTIVEDATE.ToString().Trim().IndexOf("0001")>-1)
|
|
|
|
|
{
|
|
|
|
|
tbEFFECTIVEDATE.Text = "";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tbEFFECTIVEDATE.Text = CrmPriceCarrierEntity.EFFECTIVEDATE.ToString("yyyy-MM-dd").Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
Session["GID"] = getBSNO();
|
|
|
|
|
this.hdGid.Value = Session["GID"].ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Session["strHandleType"] = "add";
|
|
|
|
|
strHandleType = "add";
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
getaddnull();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "edit"://录入
|
|
|
|
|
CrmPriceCarrierEntity = CrmPriceCarrierDA.GetID(Session["GID"].ToString().Trim());
|
|
|
|
|
if (CrmPriceCarrierEntity.GID != null)
|
|
|
|
|
{
|
|
|
|
|
this.hd_comboPODLOAD.Value = CrmPriceCarrierEntity.PODLOAD == null ? "" :
|
|
|
|
|
this.hd_comboPORTDISCHARGE.Value = CrmPriceCarrierEntity.PORTDISCHARGE == null ? "" : CrmPriceCarrierEntity.PORTDISCHARGE.ToString().Trim();
|
|
|
|
|
this.hd_comboDESTINATION.Value = CrmPriceCarrierEntity.DESTINATION == null ? "" : CrmPriceCarrierEntity.DESTINATION.ToString().Trim();
|
|
|
|
|
this.hd_comboVIA.Value = CrmPriceCarrierEntity.VIA == null ? "" : CrmPriceCarrierEntity.VIA.ToString().Trim();
|
|
|
|
|
this.hd_comboPIRICEVIAPORT.Value = CrmPriceCarrierEntity.PIRICEVIAPORT == null ? "" : CrmPriceCarrierEntity.PIRICEVIAPORT.ToString().Trim();
|
|
|
|
|
tbPOC.Text = CrmPriceCarrierEntity.POC == null ? "" : CrmPriceCarrierEntity.POC.ToString().Trim();
|
|
|
|
|
this.hd_comboLANE.Value = CrmPriceCarrierEntity.LANE == null ? "" : CrmPriceCarrierEntity.LANE.ToString().Trim();
|
|
|
|
|
tbCARRIERLANE.Text = CrmPriceCarrierEntity.CARRIERLANE == null ? "" : CrmPriceCarrierEntity.CARRIERLANE.ToString().Trim();
|
|
|
|
|
this.hd_comboCARRIER.Value = CrmPriceCarrierEntity.CARRIER == null ? "" : CrmPriceCarrierEntity.CARRIER.ToString().Trim();
|
|
|
|
|
this.hd_comboFORWARDER.Value = CrmPriceCarrierEntity.FORWARDER == null ? "" : CrmPriceCarrierEntity.FORWARDER.ToString().Trim();
|
|
|
|
|
this.hd_comboETD.Value = CrmPriceCarrierEntity.ETD == null ? "" : CrmPriceCarrierEntity.ETD.ToString().Trim();
|
|
|
|
|
tbTT.Text = CrmPriceCarrierEntity.TT == null ? "" : CrmPriceCarrierEntity.TT.ToString().Trim();
|
|
|
|
|
this.hd_comboSVC.Value = CrmPriceCarrierEntity.SVC == null ? "" : CrmPriceCarrierEntity.SVC.ToString().Trim();
|
|
|
|
|
tbSC.Text = CrmPriceCarrierEntity.SC == null ? "" : CrmPriceCarrierEntity.SC.ToString().Trim();
|
|
|
|
|
tbNAMEAC.Text = CrmPriceCarrierEntity.NAMEAC == null ? "" : CrmPriceCarrierEntity.NAMEAC.ToString().Trim();
|
|
|
|
|
this.hd_comboSICUT.Value = CrmPriceCarrierEntity.SICUT == null ? "" : CrmPriceCarrierEntity.SICUT.ToString().Trim();
|
|
|
|
|
this.hd_comboCUSCLSG.Value = CrmPriceCarrierEntity.CUSCLSG == null ? "" : CrmPriceCarrierEntity.CUSCLSG.ToString().Trim();
|
|
|
|
|
this.hd_comboCYCLSG.Value = CrmPriceCarrierEntity.CYCLSG == null ? "" : CrmPriceCarrierEntity.CYCLSG.ToString().Trim();
|
|
|
|
|
tbOWS.Text = CrmPriceCarrierEntity.OWS == null ? "" : CrmPriceCarrierEntity.OWS.ToString().Trim();
|
|
|
|
|
tbCOMMODITY.Text = CrmPriceCarrierEntity.COMMODITY == null ? "" : CrmPriceCarrierEntity.COMMODITY.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
tb20GP0.Text = CrmPriceCarrierEntity.D_20GP0.ToString().Trim();
|
|
|
|
|
tb20RS0.Text = CrmPriceCarrierEntity.D_20RS0.ToString().Trim();
|
|
|
|
|
tb40GP0.Text = CrmPriceCarrierEntity.D_40GP0.ToString().Trim();
|
|
|
|
|
tb40HQ0.Text = CrmPriceCarrierEntity.D_40HQ0.ToString().Trim();
|
|
|
|
|
tb40RH0.Text = CrmPriceCarrierEntity.D_40RH0.ToString().Trim();
|
|
|
|
|
tb45HQ0.Text = CrmPriceCarrierEntity.D_45HQ0.ToString().Trim();
|
|
|
|
|
tb20GP1.Text = CrmPriceCarrierEntity.D_20GP1.ToString().Trim();
|
|
|
|
|
tb20RS1.Text = CrmPriceCarrierEntity.D_20RS1.ToString().Trim();
|
|
|
|
|
tb40GP1.Text = CrmPriceCarrierEntity.D_40GP1.ToString().Trim();
|
|
|
|
|
tb40HQ1.Text = CrmPriceCarrierEntity.D_40HQ1.ToString().Trim();
|
|
|
|
|
tb40RH1.Text = CrmPriceCarrierEntity.D_40RH1.ToString().Trim();
|
|
|
|
|
tb45HQ1.Text = CrmPriceCarrierEntity.D_45HQ1.ToString().Trim();
|
|
|
|
|
//tb20GP2.Text = CrmPriceCarrierEntity.D_20GP2.ToString().Trim();
|
|
|
|
|
//tb20RS2.Text = CrmPriceCarrierEntity.D_20RS2.ToString().Trim();
|
|
|
|
|
//tb40GP2.Text = CrmPriceCarrierEntity.D_40GP2.ToString().Trim();
|
|
|
|
|
//tb40HQ2.Text = CrmPriceCarrierEntity.D_40HQ2.ToString().Trim();
|
|
|
|
|
//tb40RH2.Text = CrmPriceCarrierEntity.D_40RH2.ToString().Trim();
|
|
|
|
|
//tb45HQ2.Text = CrmPriceCarrierEntity.D_45HQ2.ToString().Trim();
|
|
|
|
|
//tb20GP3.Text = CrmPriceCarrierEntity.D_20GP3.ToString().Trim();
|
|
|
|
|
//tb20RS3.Text = CrmPriceCarrierEntity.D_20RS3.ToString().Trim();
|
|
|
|
|
//tb40GP3.Text = CrmPriceCarrierEntity.D_40GP3.ToString().Trim();
|
|
|
|
|
//tb40HQ3.Text = CrmPriceCarrierEntity.D_40HQ3.ToString().Trim();
|
|
|
|
|
//tb40RH3.Text = CrmPriceCarrierEntity.D_40RH3.ToString().Trim();
|
|
|
|
|
//tb45HQ3.Text = CrmPriceCarrierEntity.D_45HQ3.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
tbPROFIT20GP.Text = CrmPriceCarrierEntity.PROFIT20GP1.ToString().Trim();
|
|
|
|
|
tbPROFIT20RS.Text = CrmPriceCarrierEntity.PROFIT20RS1.ToString().Trim();
|
|
|
|
|
tbPROFIT40GP.Text = CrmPriceCarrierEntity.PROFIT40GP1.ToString().Trim();
|
|
|
|
|
tbPROFIT40HQ.Text = CrmPriceCarrierEntity.PROFIT40HQ1.ToString().Trim();
|
|
|
|
|
tbPROFIT40RH.Text = CrmPriceCarrierEntity.PROFIT40RH1.ToString().Trim();
|
|
|
|
|
tbPROFIT45HQ.Text = CrmPriceCarrierEntity.PROFIT45HQ1.ToString().Trim();
|
|
|
|
|
tbOF20GP.Text = CrmPriceCarrierEntity.OF20GP.ToString().Trim();
|
|
|
|
|
tbBAF20GP.Text = CrmPriceCarrierEntity.BAF20GP.ToString().Trim();
|
|
|
|
|
tbCAF20GP.Text = CrmPriceCarrierEntity.CAF20GP.ToString().Trim();
|
|
|
|
|
tbPSS20GP.Text = CrmPriceCarrierEntity.PSS20GP.ToString().Trim();
|
|
|
|
|
tbGRI20GP.Text = CrmPriceCarrierEntity.GRI20GP.ToString().Trim();
|
|
|
|
|
tbINLAND20GP.Text = CrmPriceCarrierEntity.INLAND20GP.ToString().Trim();
|
|
|
|
|
tbISPS20GP.Text = CrmPriceCarrierEntity.ISPS20GP.ToString().Trim();
|
|
|
|
|
tbSZ20GP.Text = CrmPriceCarrierEntity.SZ20GP.ToString().Trim();
|
|
|
|
|
tbAG20GP.Text = CrmPriceCarrierEntity.AG20GP.ToString().Trim();
|
|
|
|
|
tbOF20RS.Text = CrmPriceCarrierEntity.OF20RS.ToString().Trim();
|
|
|
|
|
tbBAF20RS.Text = CrmPriceCarrierEntity.BAF20RS.ToString().Trim();
|
|
|
|
|
tbCAF20RS.Text = CrmPriceCarrierEntity.CAF20RS.ToString().Trim();
|
|
|
|
|
tbPSS20RS.Text = CrmPriceCarrierEntity.PSS20RS.ToString().Trim();
|
|
|
|
|
tbGRI20RS.Text = CrmPriceCarrierEntity.GRI20RS.ToString().Trim();
|
|
|
|
|
tbINLAND20RS.Text = CrmPriceCarrierEntity.INLAND20RS.ToString().Trim();
|
|
|
|
|
tbISPS20RS.Text = CrmPriceCarrierEntity.ISPS20RS.ToString().Trim();
|
|
|
|
|
tbSZ20RS.Text = CrmPriceCarrierEntity.SZ20RS.ToString().Trim();
|
|
|
|
|
tbAG20RS.Text = CrmPriceCarrierEntity.AG20RS.ToString().Trim();
|
|
|
|
|
tbOF40GP.Text = CrmPriceCarrierEntity.OF40GP.ToString().Trim();
|
|
|
|
|
tbBAF40GP.Text = CrmPriceCarrierEntity.BAF40GP.ToString().Trim();
|
|
|
|
|
tbCAF40GP.Text = CrmPriceCarrierEntity.CAF40GP.ToString().Trim();
|
|
|
|
|
tbPSS40GP.Text = CrmPriceCarrierEntity.PSS40GP.ToString().Trim();
|
|
|
|
|
tbGRI40GP.Text = CrmPriceCarrierEntity.GRI40GP.ToString().Trim();
|
|
|
|
|
tbINLAND40GP.Text = CrmPriceCarrierEntity.INLAND40GP.ToString().Trim();
|
|
|
|
|
tbISPS40GP.Text = CrmPriceCarrierEntity.ISPS40GP.ToString().Trim();
|
|
|
|
|
tbSZ40GP.Text = CrmPriceCarrierEntity.SZ40GP.ToString().Trim();
|
|
|
|
|
tbAG40GP.Text = CrmPriceCarrierEntity.AG40GP.ToString().Trim();
|
|
|
|
|
tbOF40HQ.Text = CrmPriceCarrierEntity.OF40HQ.ToString().Trim();
|
|
|
|
|
tbBAF40HQ.Text = CrmPriceCarrierEntity.BAF40HQ.ToString().Trim();
|
|
|
|
|
tbCAF40HQ.Text = CrmPriceCarrierEntity.CAF40HQ.ToString().Trim();
|
|
|
|
|
tbPSS40HQ.Text = CrmPriceCarrierEntity.PSS40HQ.ToString().Trim();
|
|
|
|
|
tbGRI40HQ.Text = CrmPriceCarrierEntity.GRI40HQ.ToString().Trim();
|
|
|
|
|
tbINLAND40HQ.Text = CrmPriceCarrierEntity.INLAND40HQ.ToString().Trim();
|
|
|
|
|
tbISPS40HQ.Text = CrmPriceCarrierEntity.ISPS40HQ.ToString().Trim();
|
|
|
|
|
tbSZ40HQ.Text = CrmPriceCarrierEntity.SZ40HQ.ToString().Trim();
|
|
|
|
|
tbAG40HQ.Text = CrmPriceCarrierEntity.AG40HQ.ToString().Trim();
|
|
|
|
|
tbOF40RH.Text = CrmPriceCarrierEntity.OF40RH.ToString().Trim();
|
|
|
|
|
tbBAF40RH.Text = CrmPriceCarrierEntity.BAF40RH.ToString().Trim();
|
|
|
|
|
tbCAF40RH.Text = CrmPriceCarrierEntity.CAF40RH.ToString().Trim();
|
|
|
|
|
tbPSS40RH.Text = CrmPriceCarrierEntity.PSS40RH.ToString().Trim();
|
|
|
|
|
tbGRI40RH.Text = CrmPriceCarrierEntity.GRI40RH.ToString().Trim();
|
|
|
|
|
tbINLAND40RH.Text = CrmPriceCarrierEntity.INLAND40RH.ToString().Trim();
|
|
|
|
|
tbISPS40RH.Text = CrmPriceCarrierEntity.ISPS40RH.ToString().Trim();
|
|
|
|
|
tbSZ40RH.Text = CrmPriceCarrierEntity.SZ40RH.ToString().Trim();
|
|
|
|
|
tbAG40RH.Text = CrmPriceCarrierEntity.AG40RH.ToString().Trim();
|
|
|
|
|
tbOF45HQ.Text = CrmPriceCarrierEntity.OF45HQ.ToString().Trim();
|
|
|
|
|
tbBAF45HQ.Text = CrmPriceCarrierEntity.BAF45HQ.ToString().Trim();
|
|
|
|
|
tbCAF45HQ.Text = CrmPriceCarrierEntity.CAF45HQ.ToString().Trim();
|
|
|
|
|
tbPSS45HQ.Text = CrmPriceCarrierEntity.PSS45HQ.ToString().Trim();
|
|
|
|
|
tbGRI45HQ.Text = CrmPriceCarrierEntity.GRI45HQ.ToString().Trim();
|
|
|
|
|
tbINLAND45HQ.Text = CrmPriceCarrierEntity.INLAND45HQ.ToString().Trim();
|
|
|
|
|
tbISPS45HQ.Text = CrmPriceCarrierEntity.ISPS45HQ.ToString().Trim();
|
|
|
|
|
tbSZ45HQ.Text = CrmPriceCarrierEntity.SZ45HQ.ToString().Trim();
|
|
|
|
|
tbAG45HQ.Text = CrmPriceCarrierEntity.AG45HQ.ToString().Trim();
|
|
|
|
|
tbREMARK.Text = CrmPriceCarrierEntity.REMARK == null ? "" : CrmPriceCarrierEntity.REMARK.ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
if (CrmPriceCarrierEntity.VALIDDATE.ToString().Trim().IndexOf("0001")>-1)
|
|
|
|
|
{
|
|
|
|
|
tbVALIDDATE.Text = "";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tbVALIDDATE.Text = CrmPriceCarrierEntity.VALIDDATE.ToString("yyyy-MM-dd").Trim();
|
|
|
|
|
}
|
|
|
|
|
if (CrmPriceCarrierEntity.EFFECTIVEDATE.ToString().Trim().IndexOf("0001")>-1)
|
|
|
|
|
{
|
|
|
|
|
tbEFFECTIVEDATE.Text = "";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tbEFFECTIVEDATE.Text = CrmPriceCarrierEntity.EFFECTIVEDATE.ToString("yyyy-MM-dd").Trim();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (CrmPriceCarrierEntity.LOCKFLAG)
|
|
|
|
|
{
|
|
|
|
|
getEnabled();
|
|
|
|
|
btSubmit.Text = "解锁";
|
|
|
|
|
this.hdLOCKFLAG.Value = "1";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
btSubmit.Text = "锁定";
|
|
|
|
|
this.hdLOCKFLAG.Value = "0";
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
if (this.isEnabled.Value.Trim() == "0")
|
|
|
|
|
{
|
|
|
|
|
getEnabled();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Session["strHandleType"] = "add";
|
|
|
|
|
strHandleType = "add";
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
getaddnull();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
if (this.isEnabled.Value.Trim() == "1")
|
|
|
|
|
{
|
|
|
|
|
//权限可视范围
|
|
|
|
|
if (strHandleType.Trim() == "edit")
|
|
|
|
|
{
|
|
|
|
|
RangeDA RangeDA = new RangeDA();
|
|
|
|
|
string strV = RangeDA.GetVISIBLERANGE(this.hdUserID.Value.Trim(), "modCrmPriceCarrierList");//运价查询列表
|
|
|
|
|
string strO = RangeDA.GetOPERATERANGE(this.hdUserID.Value.Trim(), "modCrmPriceCarrierList");//运价查询列表
|
|
|
|
|
string alt = "";
|
|
|
|
|
if (strV.Trim() != strO.Trim())
|
|
|
|
|
{
|
|
|
|
|
if (strO.Trim().Equals("0"))//全部
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
else if (strO.Trim().Equals("1"))//分公司
|
|
|
|
|
{
|
|
|
|
|
string slkj = Session["GID"].ToString().Trim();
|
|
|
|
|
alt = RangeDA.GetCrmPriceCarrierListCompany(this.hdUserID.Value.Trim(), Session["GID"].ToString().Trim());
|
|
|
|
|
if (alt == "")
|
|
|
|
|
{
|
|
|
|
|
this.isEnabled.Value = "0";
|
|
|
|
|
getEnabled();
|
|
|
|
|
}
|
|
|
|
|
ibAdd.Enabled = true;
|
|
|
|
|
ibFullAdd.Enabled = true;
|
|
|
|
|
}
|
|
|
|
|
else if (strO.Trim().Equals("2"))//部门
|
|
|
|
|
{
|
|
|
|
|
alt = RangeDA.GetCrmPriceCarrierListDEPT(this.hdUserID.Value.Trim(), Session["GID"].ToString().Trim());
|
|
|
|
|
if (alt == "")
|
|
|
|
|
{
|
|
|
|
|
this.isEnabled.Value = "0";
|
|
|
|
|
getEnabled();
|
|
|
|
|
}
|
|
|
|
|
ibAdd.Enabled = true;
|
|
|
|
|
ibFullAdd.Enabled = true;
|
|
|
|
|
}
|
|
|
|
|
else if (strO.Trim().Equals("3"))//个人
|
|
|
|
|
{
|
|
|
|
|
alt = RangeDA.GetCrmPriceCarrierListPerson(this.hdUserID.Value.Trim(), Session["GID"].ToString().Trim());
|
|
|
|
|
if (alt == "")
|
|
|
|
|
{
|
|
|
|
|
this.isEnabled.Value = "0";
|
|
|
|
|
getEnabled();
|
|
|
|
|
}
|
|
|
|
|
ibAdd.Enabled = true;
|
|
|
|
|
ibFullAdd.Enabled = true;
|
|
|
|
|
}
|
|
|
|
|
else if (strO.Trim().Equals("4"))//无
|
|
|
|
|
{
|
|
|
|
|
this.isEnabled.Value = "0";
|
|
|
|
|
getEnabled();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
//集装箱
|
|
|
|
|
if (Session["GID"] != null)
|
|
|
|
|
{
|
|
|
|
|
if (this.hdEnter.Value != "")
|
|
|
|
|
{
|
|
|
|
|
getEnter();
|
|
|
|
|
}
|
|
|
|
|
if (Session["GID"].ToString().Trim().Equals(""))
|
|
|
|
|
{
|
|
|
|
|
this.hdGid.Value = Session["GID"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
this.hdGid.Value = Session["GID"].ToString().Trim();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//Response.Write("-1");
|
|
|
|
|
//Response.End();
|
|
|
|
|
}
|
|
|
|
|
//加载下拉框
|
|
|
|
|
Page.ClientScript.RegisterStartupScript(this.GetType(), "key0", "<script>initcomboCARRIER();initComboFORWARDER();initComboPODLOAD();initcomboVIA();initComboPIRICEVIAPORT();initComboPORTDISCHARGE();initcomboDESTINATION();initComboSVC();initComboLANE();initcomboETD();initcomboSICUT();initcomboCUSCLSG();initcomboCYCLSG();</script>");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void getEnabled()
|
|
|
|
|
{
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
divibEnter.Disabled = true;
|
|
|
|
|
imgFresh.Disabled = true;
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
if (this.isEnabled.Value == "0")
|
|
|
|
|
{
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
this.hd_comboPODLOAD.Disabled = true;
|
|
|
|
|
this.hd_comboPORTDISCHARGE.Disabled = true;
|
|
|
|
|
this.hd_comboDESTINATION.Disabled = true;
|
|
|
|
|
this.hd_comboVIA.Disabled = true;
|
|
|
|
|
this.hd_comboPIRICEVIAPORT.Disabled = true;
|
|
|
|
|
tbPOC.Enabled = false;
|
|
|
|
|
this.hd_comboLANE.Disabled = true;
|
|
|
|
|
tbCARRIERLANE.Enabled = false;
|
|
|
|
|
this.hd_comboCARRIER.Disabled = true;
|
|
|
|
|
this.hd_comboFORWARDER.Disabled = true;
|
|
|
|
|
this.hd_comboETD.Disabled = true;
|
|
|
|
|
tbTT.Enabled = false;
|
|
|
|
|
tbVALIDDATE.Enabled = false;
|
|
|
|
|
tbEFFECTIVEDATE.Enabled = false;
|
|
|
|
|
this.hd_comboSVC.Disabled = true;
|
|
|
|
|
tbSC.Enabled = false;
|
|
|
|
|
tbNAMEAC.Enabled = false;
|
|
|
|
|
this.hd_comboSICUT.Disabled = true;
|
|
|
|
|
this.hd_comboCUSCLSG.Disabled = true;
|
|
|
|
|
this.hd_comboCYCLSG.Disabled = true;
|
|
|
|
|
tbOWS.Enabled = false;
|
|
|
|
|
tbCOMMODITY.Enabled = false;
|
|
|
|
|
tb20GP0.Enabled = false;
|
|
|
|
|
tb20RS0.Enabled = false;
|
|
|
|
|
tb40GP0.Enabled = false;
|
|
|
|
|
tb40HQ0.Enabled = false;
|
|
|
|
|
tb40RH0.Enabled = false;
|
|
|
|
|
tb45HQ0.Enabled = false;
|
|
|
|
|
tb20GP1.Enabled = false;
|
|
|
|
|
tb20RS1.Enabled = false;
|
|
|
|
|
tb40GP1.Enabled = false;
|
|
|
|
|
tb40HQ1.Enabled = false;
|
|
|
|
|
tb40RH1.Enabled = false;
|
|
|
|
|
tb45HQ1.Enabled = false;
|
|
|
|
|
//tb20GP2.Enabled = false;
|
|
|
|
|
//tb20RS2.Enabled = false;
|
|
|
|
|
//tb40GP2.Enabled = false;
|
|
|
|
|
//tb40HQ2.Enabled = false;
|
|
|
|
|
//tb40RH2.Enabled = false;
|
|
|
|
|
//tb45HQ2.Enabled = false;
|
|
|
|
|
//tb20GP3.Enabled = false;
|
|
|
|
|
//tb20RS3.Enabled = false;
|
|
|
|
|
//tb40GP3.Enabled = false;
|
|
|
|
|
//tb40HQ3.Enabled = false;
|
|
|
|
|
//tb40RH3.Enabled = false;
|
|
|
|
|
//tb45HQ3.Enabled = false;
|
|
|
|
|
//
|
|
|
|
|
tbPROFIT20GP.Enabled = false;
|
|
|
|
|
tbPROFIT20RS.Enabled = false;
|
|
|
|
|
tbPROFIT40GP.Enabled = false;
|
|
|
|
|
tbPROFIT40HQ.Enabled = false;
|
|
|
|
|
tbPROFIT40RH.Enabled = false;
|
|
|
|
|
tbPROFIT45HQ.Enabled = false;
|
|
|
|
|
tbOF20GP.Enabled = false;
|
|
|
|
|
tbOF20RS.Enabled = false;
|
|
|
|
|
tbBAF20GP.Enabled = false;
|
|
|
|
|
tbCAF20GP.Enabled = false;
|
|
|
|
|
tbPSS20GP.Enabled = false;
|
|
|
|
|
tbGRI20GP.Enabled = false;
|
|
|
|
|
tbINLAND20GP.Enabled = false;
|
|
|
|
|
tbISPS20GP.Enabled = false;
|
|
|
|
|
tbSZ20GP.Enabled = false;
|
|
|
|
|
tbAG20GP.Enabled = false;
|
|
|
|
|
tbBAF20RS.Enabled = false;
|
|
|
|
|
tbCAF20RS.Enabled = false;
|
|
|
|
|
tbPSS20RS.Enabled = false;
|
|
|
|
|
tbGRI20RS.Enabled = false;
|
|
|
|
|
tbINLAND20RS.Enabled = false;
|
|
|
|
|
tbISPS20RS.Enabled = false;
|
|
|
|
|
tbSZ20RS.Enabled = false;
|
|
|
|
|
tbAG20RS.Enabled = false;
|
|
|
|
|
tbOF40GP.Enabled = false;
|
|
|
|
|
tbBAF40GP.Enabled = false;
|
|
|
|
|
tbCAF40GP.Enabled = false;
|
|
|
|
|
tbPSS40GP.Enabled = false;
|
|
|
|
|
tbGRI40GP.Enabled = false;
|
|
|
|
|
tbINLAND40GP.Enabled = false;
|
|
|
|
|
tbISPS40GP.Enabled = false;
|
|
|
|
|
tbSZ40GP.Enabled = false;
|
|
|
|
|
tbAG40GP.Enabled = false;
|
|
|
|
|
tbOF40HQ.Enabled = false;
|
|
|
|
|
tbBAF40HQ.Enabled = false;
|
|
|
|
|
tbCAF40HQ.Enabled = false;
|
|
|
|
|
tbPSS40HQ.Enabled = false;
|
|
|
|
|
tbGRI40HQ.Enabled = false;
|
|
|
|
|
tbINLAND40HQ.Enabled = false;
|
|
|
|
|
tbISPS40HQ.Enabled = false;
|
|
|
|
|
tbSZ40HQ.Enabled = false;
|
|
|
|
|
tbAG40HQ.Enabled = false;
|
|
|
|
|
tbOF40RH.Enabled = false;
|
|
|
|
|
tbBAF40RH.Enabled = false;
|
|
|
|
|
tbCAF40RH.Enabled = false;
|
|
|
|
|
tbPSS40RH.Enabled = false;
|
|
|
|
|
tbGRI40RH.Enabled = false;
|
|
|
|
|
tbINLAND40RH.Enabled = false;
|
|
|
|
|
tbISPS40RH.Enabled = false;
|
|
|
|
|
tbSZ40RH.Enabled = false;
|
|
|
|
|
tbAG40RH.Enabled = false;
|
|
|
|
|
tbOF45HQ.Enabled = false;
|
|
|
|
|
tbBAF45HQ.Enabled = false;
|
|
|
|
|
tbCAF45HQ.Enabled = false;
|
|
|
|
|
tbPSS45HQ.Enabled = false;
|
|
|
|
|
tbGRI45HQ.Enabled = false;
|
|
|
|
|
tbINLAND45HQ.Enabled = false;
|
|
|
|
|
tbISPS45HQ.Enabled = false;
|
|
|
|
|
tbSZ45HQ.Enabled = false;
|
|
|
|
|
tbAG45HQ.Enabled = false;
|
|
|
|
|
tbREMARK.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
protected void getEnabledTrue()
|
|
|
|
|
{
|
|
|
|
|
ibAdd.Enabled = true;
|
|
|
|
|
ibFullAdd.Enabled = true;
|
|
|
|
|
divibEnter.Disabled = false;
|
|
|
|
|
imgFresh.Disabled = false;
|
|
|
|
|
ibDel.Enabled = true;
|
|
|
|
|
btSubmit.Enabled = true;
|
|
|
|
|
//
|
|
|
|
|
this.hd_comboPODLOAD.Disabled = false;
|
|
|
|
|
this.hd_comboPORTDISCHARGE.Disabled = false;
|
|
|
|
|
this.hd_comboVIA.Disabled = false;
|
|
|
|
|
this.hd_comboPIRICEVIAPORT.Disabled = false;
|
|
|
|
|
this.hd_comboCARRIER.Disabled = false;
|
|
|
|
|
this.hd_comboFORWARDER.Disabled = false;
|
|
|
|
|
this.hd_comboETD.Disabled = false;
|
|
|
|
|
this.hd_comboLANE.Disabled = false;
|
|
|
|
|
this.hd_comboSVC.Disabled = false;
|
|
|
|
|
this.hd_comboSICUT.Disabled = false;
|
|
|
|
|
this.hd_comboCUSCLSG.Disabled = false;
|
|
|
|
|
this.hd_comboCYCLSG.Disabled = false;
|
|
|
|
|
this.hd_comboDESTINATION.Disabled = false;
|
|
|
|
|
tbPOC.Enabled = true;
|
|
|
|
|
tbCARRIERLANE.Enabled = true;
|
|
|
|
|
tbTT.Enabled = true;
|
|
|
|
|
tbVALIDDATE.Enabled = true;
|
|
|
|
|
tbEFFECTIVEDATE.Enabled = true;
|
|
|
|
|
tbSC.Enabled = true;
|
|
|
|
|
tbNAMEAC.Enabled = true;
|
|
|
|
|
tbOWS.Enabled = true;
|
|
|
|
|
tbCOMMODITY.Enabled = true;
|
|
|
|
|
tb20GP0.Enabled = true;
|
|
|
|
|
tb20RS0.Enabled = true;
|
|
|
|
|
tb40GP0.Enabled = true;
|
|
|
|
|
tb40HQ0.Enabled = true;
|
|
|
|
|
tb45HQ0.Enabled = true;
|
|
|
|
|
tb20GP1.Enabled = true;
|
|
|
|
|
tb20RS1.Enabled = true;
|
|
|
|
|
tb40GP1.Enabled = true;
|
|
|
|
|
tb40HQ1.Enabled = true;
|
|
|
|
|
tb45HQ1.Enabled = true;
|
|
|
|
|
//tb20GP2.Enabled = true;
|
|
|
|
|
//tb20RS2.Enabled = true;
|
|
|
|
|
//tb40GP2.Enabled = true;
|
|
|
|
|
//tb40HQ2.Enabled = true;
|
|
|
|
|
//tb45HQ2.Enabled = true;
|
|
|
|
|
//tb20GP3.Enabled = true;
|
|
|
|
|
//tb20RS3.Enabled = true;
|
|
|
|
|
//tb40GP3.Enabled = true;
|
|
|
|
|
//tb40HQ3.Enabled = true;
|
|
|
|
|
//tb45HQ3.Enabled = true;
|
|
|
|
|
tb40RH0.Enabled = true;
|
|
|
|
|
tb40RH1.Enabled = true;
|
|
|
|
|
//tb40RH2.Enabled = true;
|
|
|
|
|
//tb40RH3.Enabled = true;
|
|
|
|
|
//
|
|
|
|
|
tbPROFIT20GP.Enabled = true;
|
|
|
|
|
tbPROFIT20RS.Enabled = true;
|
|
|
|
|
tbPROFIT40GP.Enabled = true;
|
|
|
|
|
tbPROFIT40HQ.Enabled = true;
|
|
|
|
|
tbPROFIT40RH.Enabled = true;
|
|
|
|
|
tbPROFIT45HQ.Enabled = true;
|
|
|
|
|
tbOF20GP.Enabled = true;
|
|
|
|
|
tbBAF20GP.Enabled = true;
|
|
|
|
|
tbCAF20GP.Enabled = true;
|
|
|
|
|
tbPSS20GP.Enabled = true;
|
|
|
|
|
tbGRI20GP.Enabled = true;
|
|
|
|
|
tbINLAND20GP.Enabled = true;
|
|
|
|
|
tbISPS20GP.Enabled = true;
|
|
|
|
|
tbSZ20GP.Enabled = true;
|
|
|
|
|
tbAG20GP.Enabled = true;
|
|
|
|
|
tbOF20RS.Enabled = true;
|
|
|
|
|
tbBAF20RS.Enabled = true;
|
|
|
|
|
tbCAF20RS.Enabled = true;
|
|
|
|
|
tbPSS20RS.Enabled = true;
|
|
|
|
|
tbGRI20RS.Enabled = true;
|
|
|
|
|
tbINLAND20RS.Enabled = true;
|
|
|
|
|
tbISPS20RS.Enabled = true;
|
|
|
|
|
tbSZ20RS.Enabled = true;
|
|
|
|
|
tbAG20RS.Enabled = true;
|
|
|
|
|
tbOF40GP.Enabled = true;
|
|
|
|
|
tbBAF40GP.Enabled = true;
|
|
|
|
|
tbCAF40GP.Enabled = true;
|
|
|
|
|
tbPSS40GP.Enabled = true;
|
|
|
|
|
tbGRI40GP.Enabled = true;
|
|
|
|
|
tbINLAND40GP.Enabled = true;
|
|
|
|
|
tbISPS40GP.Enabled = true;
|
|
|
|
|
tbSZ40GP.Enabled = true;
|
|
|
|
|
tbAG40GP.Enabled = true;
|
|
|
|
|
tbOF40HQ.Enabled = true;
|
|
|
|
|
tbBAF40HQ.Enabled = true;
|
|
|
|
|
tbCAF40HQ.Enabled = true;
|
|
|
|
|
tbPSS40HQ.Enabled = true;
|
|
|
|
|
tbGRI40HQ.Enabled = true;
|
|
|
|
|
tbINLAND40HQ.Enabled = true;
|
|
|
|
|
tbISPS40HQ.Enabled = true;
|
|
|
|
|
tbSZ40HQ.Enabled = true;
|
|
|
|
|
tbAG40HQ.Enabled = true;
|
|
|
|
|
tbOF40RH.Enabled = true;
|
|
|
|
|
tbBAF40RH.Enabled = true;
|
|
|
|
|
tbCAF40RH.Enabled = true;
|
|
|
|
|
tbPSS40RH.Enabled = true;
|
|
|
|
|
tbGRI40RH.Enabled = true;
|
|
|
|
|
tbINLAND40RH.Enabled = true;
|
|
|
|
|
tbISPS40RH.Enabled = true;
|
|
|
|
|
tbSZ40RH.Enabled = true;
|
|
|
|
|
tbAG40RH.Enabled = true;
|
|
|
|
|
tbOF45HQ.Enabled = true;
|
|
|
|
|
tbBAF45HQ.Enabled = true;
|
|
|
|
|
tbCAF45HQ.Enabled = true;
|
|
|
|
|
tbPSS45HQ.Enabled = true;
|
|
|
|
|
tbGRI45HQ.Enabled = true;
|
|
|
|
|
tbINLAND45HQ.Enabled = true;
|
|
|
|
|
tbISPS45HQ.Enabled = true;
|
|
|
|
|
tbSZ45HQ.Enabled = true;
|
|
|
|
|
tbAG45HQ.Enabled = true;
|
|
|
|
|
tbREMARK.Enabled = true;
|
|
|
|
|
}
|
|
|
|
|
protected String getBSNO()
|
|
|
|
|
{
|
|
|
|
|
string strBSNO = Guid.NewGuid().ToString();
|
|
|
|
|
strBSNO = strBSNO.Replace("-", "");
|
|
|
|
|
strBSNO = "CarP" + strBSNO;
|
|
|
|
|
return strBSNO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void getaddnull()
|
|
|
|
|
{
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
//
|
|
|
|
|
btSubmit.Text = "锁定";
|
|
|
|
|
//
|
|
|
|
|
Session["GID"] = getBSNO();
|
|
|
|
|
this.hdGid.Value = Session["GID"].ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
T_ALL_DA T_ALL_DA = new T_ALL_DA();
|
|
|
|
|
this.hd_comboPODLOAD.Value = T_ALL_DA.GetStrSQL("PORTLOAD", "select PORTLOAD from subcomp_seae_def where CORPID=(select GID from company where GID=(select COMPANYID from user_company where USERID='" + strUserID + "') and ISDELETED=0 and ISDISABLE=0)");
|
|
|
|
|
this.hd_comboPORTDISCHARGE.Value="";
|
|
|
|
|
this.hd_comboDESTINATION.Value="";
|
|
|
|
|
this.hd_comboVIA.Value="";
|
|
|
|
|
this.hd_comboPIRICEVIAPORT.Value = "";
|
|
|
|
|
tbPOC.Text="";
|
|
|
|
|
this.hd_comboLANE.Value="";
|
|
|
|
|
tbCARRIERLANE.Text="";
|
|
|
|
|
this.hd_comboCARRIER.Value="";
|
|
|
|
|
this.hd_comboFORWARDER.Value="";
|
|
|
|
|
this.hd_comboETD.Value="";
|
|
|
|
|
tbTT.Text="";
|
|
|
|
|
tbVALIDDATE.Text="";
|
|
|
|
|
tbEFFECTIVEDATE.Text="";
|
|
|
|
|
this.hd_comboSVC.Value="";
|
|
|
|
|
tbSC.Text="";
|
|
|
|
|
tbNAMEAC.Text="";
|
|
|
|
|
this.hd_comboSICUT.Value="";
|
|
|
|
|
this.hd_comboCUSCLSG.Value="";
|
|
|
|
|
this.hd_comboCYCLSG.Value="";
|
|
|
|
|
tbOWS.Text="";
|
|
|
|
|
tbCOMMODITY.Text="";
|
|
|
|
|
tb20GP0.Text="0";
|
|
|
|
|
tb20RS0.Text="0";
|
|
|
|
|
tb40GP0.Text="0";
|
|
|
|
|
tb40HQ0.Text="0";
|
|
|
|
|
tb45HQ0.Text="0";
|
|
|
|
|
tb20GP1.Text="0";
|
|
|
|
|
tb20RS1.Text="0";
|
|
|
|
|
tb40GP1.Text="0";
|
|
|
|
|
tb40HQ1.Text="0";
|
|
|
|
|
tb45HQ1.Text="0";
|
|
|
|
|
//tb20GP2.Text="0";
|
|
|
|
|
//tb20RS2.Text="0";
|
|
|
|
|
//tb40GP2.Text="0";
|
|
|
|
|
//tb40HQ2.Text="0";
|
|
|
|
|
//tb45HQ2.Text="0";
|
|
|
|
|
//tb20GP3.Text="0";
|
|
|
|
|
//tb20RS3.Text="0";
|
|
|
|
|
//tb40GP3.Text="0";
|
|
|
|
|
//tb40HQ3.Text="0";
|
|
|
|
|
//tb45HQ3.Text="0";
|
|
|
|
|
tb40RH0.Text = "0";
|
|
|
|
|
tb40RH1.Text = "0";
|
|
|
|
|
//tb40RH2.Text = "0";
|
|
|
|
|
//tb40RH3.Text = "0";
|
|
|
|
|
//
|
|
|
|
|
tbPROFIT20GP.Text="0";
|
|
|
|
|
tbPROFIT20RS.Text="0";
|
|
|
|
|
tbPROFIT40GP.Text="0";
|
|
|
|
|
tbPROFIT40HQ.Text="0";
|
|
|
|
|
tbPROFIT40RH.Text="0";
|
|
|
|
|
tbPROFIT45HQ.Text="0";
|
|
|
|
|
tbOF20GP.Text="0";
|
|
|
|
|
tbBAF20GP.Text="0";
|
|
|
|
|
tbCAF20GP.Text="0";
|
|
|
|
|
tbPSS20GP.Text="0";
|
|
|
|
|
tbGRI20GP.Text="0";
|
|
|
|
|
tbINLAND20GP.Text="0";
|
|
|
|
|
tbISPS20GP.Text="0";
|
|
|
|
|
tbSZ20GP.Text="0";
|
|
|
|
|
tbAG20GP.Text="0";
|
|
|
|
|
tbOF20RS.Text="0";
|
|
|
|
|
tbBAF20RS.Text="0";
|
|
|
|
|
tbCAF20RS.Text="0";
|
|
|
|
|
tbPSS20RS.Text="0";
|
|
|
|
|
tbGRI20RS.Text="0";
|
|
|
|
|
tbINLAND20RS.Text="0";
|
|
|
|
|
tbISPS20RS.Text="0";
|
|
|
|
|
tbSZ20RS.Text="0";
|
|
|
|
|
tbAG20RS.Text="0";
|
|
|
|
|
tbOF40GP.Text="0";
|
|
|
|
|
tbBAF40GP.Text="0";
|
|
|
|
|
tbCAF40GP.Text="0";
|
|
|
|
|
tbPSS40GP.Text="0";
|
|
|
|
|
tbGRI40GP.Text="0";
|
|
|
|
|
tbINLAND40GP.Text="0";
|
|
|
|
|
tbISPS40GP.Text="0";
|
|
|
|
|
tbSZ40GP.Text="0";
|
|
|
|
|
tbAG40GP.Text="0";
|
|
|
|
|
tbOF40HQ.Text="0";
|
|
|
|
|
tbBAF40HQ.Text="0";
|
|
|
|
|
tbCAF40HQ.Text="0";
|
|
|
|
|
tbPSS40HQ.Text="0";
|
|
|
|
|
tbGRI40HQ.Text="0";
|
|
|
|
|
tbINLAND40HQ.Text="0";
|
|
|
|
|
tbISPS40HQ.Text="0";
|
|
|
|
|
tbSZ40HQ.Text="0";
|
|
|
|
|
tbAG40HQ.Text="0";
|
|
|
|
|
tbOF40RH.Text="0";
|
|
|
|
|
tbBAF40RH.Text="0";
|
|
|
|
|
tbCAF40RH.Text="0";
|
|
|
|
|
tbPSS40RH.Text="0";
|
|
|
|
|
tbGRI40RH.Text="0";
|
|
|
|
|
tbINLAND40RH.Text="0";
|
|
|
|
|
tbISPS40RH.Text="0";
|
|
|
|
|
tbSZ40RH.Text="0";
|
|
|
|
|
tbAG40RH.Text="0";
|
|
|
|
|
tbOF45HQ.Text="0";
|
|
|
|
|
tbBAF45HQ.Text="0";
|
|
|
|
|
tbCAF45HQ.Text="0";
|
|
|
|
|
tbPSS45HQ.Text="0";
|
|
|
|
|
tbGRI45HQ.Text="0";
|
|
|
|
|
tbINLAND45HQ.Text="0";
|
|
|
|
|
tbISPS45HQ.Text="0";
|
|
|
|
|
tbSZ45HQ.Text="0";
|
|
|
|
|
tbAG45HQ.Text="0";
|
|
|
|
|
tbREMARK.Text="";
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected bool getAdd()
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity.GID = Session["GID"].ToString().Trim();
|
|
|
|
|
CrmPriceCarrierEntity.PODLOAD = this.hd_comboPODLOAD.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.PORTDISCHARGE = this.hd_comboPORTDISCHARGE.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.DESTINATION = this.hd_comboDESTINATION.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.VIA = this.hd_comboVIA.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.PIRICEVIAPORT = this.hd_comboPIRICEVIAPORT.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.POC = tbPOC.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.LANE = this.hd_comboLANE.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CARRIERLANE = tbCARRIERLANE.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CARRIER = this.hd_comboCARRIER.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.FORWARDER = this.hd_comboFORWARDER.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.ETD = this.hd_comboETD.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.TT = tbTT.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.SVC = this.hd_comboSVC.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.SC = tbSC.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.NAMEAC = tbNAMEAC.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.SICUT = this.hd_comboSICUT.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CUSCLSG = this.hd_comboCUSCLSG.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CYCLSG = this.hd_comboCYCLSG.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.OWS = tbOWS.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.INPUTBY = strUserID;
|
|
|
|
|
CrmPriceCarrierEntity.COMMODITY = tbCOMMODITY.Text.Trim();
|
|
|
|
|
//
|
|
|
|
|
if (tbVALIDDATE.Text.Trim() != "")
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity.VALIDDATE = DateTime.Parse(tbVALIDDATE.Text.Trim());
|
|
|
|
|
}
|
|
|
|
|
if (tbEFFECTIVEDATE.Text.Trim() != "")
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity.EFFECTIVEDATE = DateTime.Parse(tbEFFECTIVEDATE.Text.Trim());
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP0 = Decimal.Parse(tb20GP0.Text.Trim().Equals("") ? "0" : tb20GP0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS0 = Decimal.Parse(tb20RS0.Text.Trim().Equals("") ? "0" : tb20RS0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP0 = Decimal.Parse(tb40GP0.Text.Trim().Equals("") ? "0" : tb40GP0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ0 = Decimal.Parse(tb40HQ0.Text.Trim().Equals("") ? "0" : tb40HQ0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH0 = Decimal.Parse(tb40RH0.Text.Trim().Equals("") ? "0" : tb40RH0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ0 = Decimal.Parse(tb45HQ0.Text.Trim().Equals("") ? "0" : tb45HQ0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP1 = Decimal.Parse(tb20GP1.Text.Trim().Equals("") ? "0" : tb20GP1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS1 = Decimal.Parse(tb20RS1.Text.Trim().Equals("") ? "0" : tb20RS1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP1 = Decimal.Parse(tb40GP1.Text.Trim().Equals("") ? "0" : tb40GP1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ1 = Decimal.Parse(tb40HQ1.Text.Trim().Equals("") ? "0" : tb40HQ1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH1 = Decimal.Parse(tb40RH1.Text.Trim().Equals("") ? "0" : tb40RH1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ1 = Decimal.Parse(tb45HQ1.Text.Trim().Equals("") ? "0" : tb45HQ1.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20GP2 = Decimal.Parse(tb20GP2.Text.Trim().Equals("") ? "0" : tb20GP2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20RS2 = Decimal.Parse(tb20RS2.Text.Trim().Equals("") ? "0" : tb20RS2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40GP2 = Decimal.Parse(tb40GP2.Text.Trim().Equals("") ? "0" : tb40GP2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40HQ2 = Decimal.Parse(tb40HQ2.Text.Trim().Equals("") ? "0" : tb40HQ2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40RH2 = Decimal.Parse(tb40RH2.Text.Trim().Equals("") ? "0" : tb40RH2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_45HQ2 = Decimal.Parse(tb45HQ2.Text.Trim().Equals("") ? "0" : tb45HQ2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20GP3 = Decimal.Parse(tb20GP3.Text.Trim().Equals("") ? "0" : tb20GP3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20RS3 = Decimal.Parse(tb20RS3.Text.Trim().Equals("") ? "0" : tb20RS3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40GP3 = Decimal.Parse(tb40GP3.Text.Trim().Equals("") ? "0" : tb40GP3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40HQ3 = Decimal.Parse(tb40HQ3.Text.Trim().Equals("") ? "0" : tb40HQ3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40RH3 = Decimal.Parse(tb40RH3.Text.Trim().Equals("") ? "0" : tb40RH3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_45HQ3 = Decimal.Parse(tb45HQ3.Text.Trim().Equals("") ? "0" : tb45HQ3.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ3 = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT20GP1 = Decimal.Parse(tbPROFIT20GP.Text.Trim().Equals("") ? "0" : tbPROFIT20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT20RS1 = Decimal.Parse(tbPROFIT20RS.Text.Trim().Equals("") ? "0" : tbPROFIT20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT40GP1 = Decimal.Parse(tbPROFIT40GP.Text.Trim().Equals("") ? "0" : tbPROFIT40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT40HQ1 = Decimal.Parse(tbPROFIT40HQ.Text.Trim().Equals("") ? "0" : tbPROFIT40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT40RH1 = Decimal.Parse(tbPROFIT40RH.Text.Trim().Equals("") ? "0" : tbPROFIT40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT45HQ1 = Decimal.Parse(tbPROFIT45HQ.Text.Trim().Equals("") ? "0" : tbPROFIT45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF20GP = Decimal.Parse(tbOF20GP.Text.Trim().Equals("") ? "0" : tbOF20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF20GP = Decimal.Parse(tbBAF20GP.Text.Trim().Equals("") ? "0" : tbBAF20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF20GP = Decimal.Parse(tbCAF20GP.Text.Trim().Equals("") ? "0" : tbCAF20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS20GP = Decimal.Parse(tbPSS20GP.Text.Trim().Equals("") ? "0" : tbPSS20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI20GP = Decimal.Parse(tbGRI20GP.Text.Trim().Equals("") ? "0" : tbGRI20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND20GP = Decimal.Parse(tbINLAND20GP.Text.Trim().Equals("") ? "0" : tbINLAND20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS20GP = Decimal.Parse(tbISPS20GP.Text.Trim().Equals("") ? "0" : tbISPS20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ20GP = Decimal.Parse(tbSZ20GP.Text.Trim().Equals("") ? "0" : tbSZ20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG20GP = Decimal.Parse(tbAG20GP.Text.Trim().Equals("") ? "0" : tbAG20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF20RS = Decimal.Parse(tbOF20RS.Text.Trim().Equals("") ? "0" : tbOF20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF20RS = Decimal.Parse(tbBAF20RS.Text.Trim().Equals("") ? "0" : tbBAF20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF20RS = Decimal.Parse(tbCAF20RS.Text.Trim().Equals("") ? "0" : tbCAF20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS20RS = Decimal.Parse(tbPSS20RS.Text.Trim().Equals("") ? "0" : tbPSS20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI20RS = Decimal.Parse(tbGRI20RS.Text.Trim().Equals("") ? "0" : tbGRI20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND20RS = Decimal.Parse(tbINLAND20RS.Text.Trim().Equals("") ? "0" : tbINLAND20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS20RS = Decimal.Parse(tbISPS20RS.Text.Trim().Equals("") ? "0" : tbISPS20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ20RS = Decimal.Parse(tbSZ20RS.Text.Trim().Equals("") ? "0" : tbSZ20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG20RS = Decimal.Parse(tbAG20RS.Text.Trim().Equals("") ? "0" : tbAG20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF40GP = Decimal.Parse(tbOF40GP.Text.Trim().Equals("") ? "0" : tbOF40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF40GP = Decimal.Parse(tbBAF40GP.Text.Trim().Equals("") ? "0" : tbBAF40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF40GP = Decimal.Parse(tbCAF40GP.Text.Trim().Equals("") ? "0" : tbCAF40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS40GP = Decimal.Parse(tbPSS40GP.Text.Trim().Equals("") ? "0" : tbPSS40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI40GP = Decimal.Parse(tbGRI40GP.Text.Trim().Equals("") ? "0" : tbGRI40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND40GP = Decimal.Parse(tbINLAND40GP.Text.Trim().Equals("") ? "0" : tbINLAND40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS40GP = Decimal.Parse(tbISPS40GP.Text.Trim().Equals("") ? "0" : tbISPS40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ40GP = Decimal.Parse(tbSZ40GP.Text.Trim().Equals("") ? "0" : tbSZ40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG40GP = Decimal.Parse(tbAG40GP.Text.Trim().Equals("") ? "0" : tbAG40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF40HQ = Decimal.Parse(tbOF40HQ.Text.Trim().Equals("") ? "0" : tbOF40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF40HQ = Decimal.Parse(tbBAF40HQ.Text.Trim().Equals("") ? "0" : tbBAF40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF40HQ = Decimal.Parse(tbCAF40HQ.Text.Trim().Equals("") ? "0" : tbCAF40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS40HQ = Decimal.Parse(tbPSS40HQ.Text.Trim().Equals("") ? "0" : tbPSS40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI40HQ = Decimal.Parse(tbGRI40HQ.Text.Trim().Equals("") ? "0" : tbGRI40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND40HQ = Decimal.Parse(tbINLAND40HQ.Text.Trim().Equals("") ? "0" : tbINLAND40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS40HQ = Decimal.Parse(tbISPS40HQ.Text.Trim().Equals("") ? "0" : tbISPS40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ40HQ = Decimal.Parse(tbSZ40HQ.Text.Trim().Equals("") ? "0" : tbSZ40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG40HQ = Decimal.Parse(tbAG40HQ.Text.Trim().Equals("") ? "0" : tbAG40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF40RH = Decimal.Parse(tbOF40RH.Text.Trim().Equals("") ? "0" : tbOF40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF40RH = Decimal.Parse(tbBAF40RH.Text.Trim().Equals("") ? "0" : tbBAF40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF40RH = Decimal.Parse(tbCAF40RH.Text.Trim().Equals("") ? "0" : tbCAF40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS40RH = Decimal.Parse(tbPSS40RH.Text.Trim().Equals("") ? "0" : tbPSS40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI40RH = Decimal.Parse(tbGRI40RH.Text.Trim().Equals("") ? "0" : tbGRI40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND40RH = Decimal.Parse(tbINLAND40RH.Text.Trim().Equals("") ? "0" : tbINLAND40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS40RH = Decimal.Parse(tbISPS40RH.Text.Trim().Equals("") ? "0" : tbISPS40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ40RH = Decimal.Parse(tbSZ40RH.Text.Trim().Equals("") ? "0" : tbSZ40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG40RH = Decimal.Parse(tbAG40RH.Text.Trim().Equals("") ? "0" : tbAG40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF45HQ = Decimal.Parse(tbOF45HQ.Text.Trim().Equals("") ? "0" : tbOF45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF45HQ = Decimal.Parse(tbBAF45HQ.Text.Trim().Equals("") ? "0" : tbBAF45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF45HQ = Decimal.Parse(tbCAF45HQ.Text.Trim().Equals("") ? "0" : tbCAF45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS45HQ = Decimal.Parse(tbPSS45HQ.Text.Trim().Equals("") ? "0" : tbPSS45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI45HQ = Decimal.Parse(tbGRI45HQ.Text.Trim().Equals("") ? "0" : tbGRI45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND45HQ = Decimal.Parse(tbINLAND45HQ.Text.Trim().Equals("") ? "0" : tbINLAND45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS45HQ = Decimal.Parse(tbISPS45HQ.Text.Trim().Equals("") ? "0" : tbISPS45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ45HQ = Decimal.Parse(tbSZ45HQ.Text.Trim().Equals("") ? "0" : tbSZ45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG45HQ = Decimal.Parse(tbAG45HQ.Text.Trim().Equals("") ? "0" : tbAG45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.REMARK = tbREMARK.Text.Trim();
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity.CARRIERCN="";
|
|
|
|
|
CrmPriceCarrierEntity.BOOKINGFEE="";
|
|
|
|
|
CrmPriceCarrierEntity.CTNFEE="";
|
|
|
|
|
CrmPriceCarrierEntity.THCFEE="";
|
|
|
|
|
CrmPriceCarrierEntity.FILEFEE = "";
|
|
|
|
|
CrmPriceCarrierEntity.LCLCOST = "";
|
|
|
|
|
CrmPriceCarrierEntity.LCLPRICE = "";
|
|
|
|
|
CrmPriceCarrierEntity.CISF="";
|
|
|
|
|
CrmPriceCarrierEntity.REMARK2="";
|
|
|
|
|
CrmPriceCarrierEntity.TYPE="FCL";
|
|
|
|
|
//
|
|
|
|
|
int iResult = CrmPriceCarrierDA.InserInfo(CrmPriceCarrierEntity);
|
|
|
|
|
if (iResult > 0)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
protected bool getEdit()
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity.GID = Session["GID"].ToString().Trim();
|
|
|
|
|
CrmPriceCarrierEntity.PODLOAD = this.hd_comboPODLOAD.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.PORTDISCHARGE = this.hd_comboPORTDISCHARGE.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.DESTINATION = this.hd_comboDESTINATION.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.VIA = this.hd_comboVIA.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.PIRICEVIAPORT = this.hd_comboPIRICEVIAPORT.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.POC = tbPOC.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.LANE = this.hd_comboLANE.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CARRIERLANE = tbCARRIERLANE.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CARRIER = this.hd_comboCARRIER.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.FORWARDER = this.hd_comboFORWARDER.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.ETD = this.hd_comboETD.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.TT = tbTT.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.SVC = this.hd_comboSVC.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.SC = tbSC.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.NAMEAC = tbNAMEAC.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.SICUT = this.hd_comboSICUT.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CUSCLSG = this.hd_comboCUSCLSG.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.CYCLSG = this.hd_comboCYCLSG.Value.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.OWS = tbOWS.Text.Trim();
|
|
|
|
|
CrmPriceCarrierEntity.MODIFIEDUSER = strUserID;
|
|
|
|
|
CrmPriceCarrierEntity.COMMODITY = tbCOMMODITY.Text.Trim();
|
|
|
|
|
//
|
|
|
|
|
if (tbVALIDDATE.Text.Trim() != "")
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity.VALIDDATE = DateTime.Parse(tbVALIDDATE.Text.Trim());
|
|
|
|
|
}
|
|
|
|
|
if (tbEFFECTIVEDATE.Text.Trim() != "")
|
|
|
|
|
{
|
|
|
|
|
CrmPriceCarrierEntity.EFFECTIVEDATE = DateTime.Parse(tbEFFECTIVEDATE.Text.Trim());
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP0 = Decimal.Parse(tb20GP0.Text.Trim().Equals("") ? "0" : tb20GP0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS0 = Decimal.Parse(tb20RS0.Text.Trim().Equals("") ? "0" : tb20RS0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP0 = Decimal.Parse(tb40GP0.Text.Trim().Equals("") ? "0" : tb40GP0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ0 = Decimal.Parse(tb40HQ0.Text.Trim().Equals("") ? "0" : tb40HQ0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH0 = Decimal.Parse(tb40RH0.Text.Trim().Equals("") ? "0" : tb40RH0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ0 = Decimal.Parse(tb45HQ0.Text.Trim().Equals("") ? "0" : tb45HQ0.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP1 = Decimal.Parse(tb20GP1.Text.Trim().Equals("") ? "0" : tb20GP1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS1 = Decimal.Parse(tb20RS1.Text.Trim().Equals("") ? "0" : tb20RS1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP1 = Decimal.Parse(tb40GP1.Text.Trim().Equals("") ? "0" : tb40GP1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ1 = Decimal.Parse(tb40HQ1.Text.Trim().Equals("") ? "0" : tb40HQ1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH1 = Decimal.Parse(tb40RH1.Text.Trim().Equals("") ? "0" : tb40RH1.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ1 = Decimal.Parse(tb45HQ1.Text.Trim().Equals("") ? "0" : tb45HQ1.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20GP2 = Decimal.Parse(tb20GP2.Text.Trim().Equals("") ? "0" : tb20GP2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20RS2 = Decimal.Parse(tb20RS2.Text.Trim().Equals("") ? "0" : tb20RS2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40GP2 = Decimal.Parse(tb40GP2.Text.Trim().Equals("") ? "0" : tb40GP2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40HQ2 = Decimal.Parse(tb40HQ2.Text.Trim().Equals("") ? "0" : tb40HQ2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40RH2 = Decimal.Parse(tb40RH2.Text.Trim().Equals("") ? "0" : tb40RH2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_45HQ2 = Decimal.Parse(tb45HQ2.Text.Trim().Equals("") ? "0" : tb45HQ2.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20GP3 = Decimal.Parse(tb20GP3.Text.Trim().Equals("") ? "0" : tb20GP3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_20RS3 = Decimal.Parse(tb20RS3.Text.Trim().Equals("") ? "0" : tb20RS3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40GP3 = Decimal.Parse(tb40GP3.Text.Trim().Equals("") ? "0" : tb40GP3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40HQ3 = Decimal.Parse(tb40HQ3.Text.Trim().Equals("") ? "0" : tb40HQ3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_40RH3 = Decimal.Parse(tb40RH3.Text.Trim().Equals("") ? "0" : tb40RH3.Text.Trim());
|
|
|
|
|
//CrmPriceCarrierEntity.D_45HQ3 = Decimal.Parse(tb45HQ3.Text.Trim().Equals("") ? "0" : tb45HQ3.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ2 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_20GP3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_20RS3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40GP3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40HQ3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_40RH3 = 0;
|
|
|
|
|
CrmPriceCarrierEntity.D_45HQ3 = 0;
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT20GP1 = Decimal.Parse(tbPROFIT20GP.Text.Trim().Equals("") ? "0" :tbPROFIT20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT20RS1 = Decimal.Parse(tbPROFIT20RS.Text.Trim().Equals("") ? "0" :tbPROFIT20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT40GP1 = Decimal.Parse(tbPROFIT40GP.Text.Trim().Equals("") ? "0" :tbPROFIT40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT40HQ1 = Decimal.Parse(tbPROFIT40HQ.Text.Trim().Equals("") ? "0" :tbPROFIT40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT40RH1 = Decimal.Parse(tbPROFIT40RH.Text.Trim().Equals("") ? "0" :tbPROFIT40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PROFIT45HQ1 = Decimal.Parse(tbPROFIT45HQ.Text.Trim().Equals("") ? "0" :tbPROFIT45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF20GP = Decimal.Parse(tbOF20GP.Text.Trim().Equals("") ? "0" :tbOF20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF20GP = Decimal.Parse(tbBAF20GP.Text.Trim().Equals("") ? "0" :tbBAF20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF20GP = Decimal.Parse(tbCAF20GP.Text.Trim().Equals("") ? "0" : tbCAF20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS20GP = Decimal.Parse(tbPSS20GP.Text.Trim().Equals("") ? "0" : tbPSS20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI20GP = Decimal.Parse(tbGRI20GP.Text.Trim().Equals("") ? "0" :tbGRI20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND20GP = Decimal.Parse(tbINLAND20GP.Text.Trim().Equals("") ? "0" :tbINLAND20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS20GP = Decimal.Parse(tbISPS20GP.Text.Trim().Equals("") ? "0" :tbISPS20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ20GP = Decimal.Parse(tbSZ20GP.Text.Trim().Equals("") ? "0" :tbSZ20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG20GP = Decimal.Parse(tbAG20GP.Text.Trim().Equals("") ? "0" :tbAG20GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF20RS = Decimal.Parse(tbOF20RS.Text.Trim().Equals("") ? "0" :tbOF20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF20RS = Decimal.Parse(tbBAF20RS.Text.Trim().Equals("") ? "0" :tbBAF20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF20RS = Decimal.Parse(tbCAF20RS.Text.Trim().Equals("") ? "0" : tbCAF20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS20RS = Decimal.Parse(tbPSS20RS.Text.Trim().Equals("") ? "0" : tbPSS20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI20RS = Decimal.Parse(tbGRI20RS.Text.Trim().Equals("") ? "0" :tbGRI20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND20RS = Decimal.Parse(tbINLAND20RS.Text.Trim().Equals("") ? "0" :tbINLAND20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS20RS = Decimal.Parse(tbISPS20RS.Text.Trim().Equals("") ? "0" :tbISPS20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ20RS = Decimal.Parse(tbSZ20RS.Text.Trim().Equals("") ? "0" :tbSZ20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG20RS = Decimal.Parse(tbAG20RS.Text.Trim().Equals("") ? "0" :tbAG20RS.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF40GP = Decimal.Parse(tbOF40GP.Text.Trim().Equals("") ? "0" :tbOF40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF40GP = Decimal.Parse(tbBAF40GP.Text.Trim().Equals("") ? "0" :tbBAF40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF40GP = Decimal.Parse(tbCAF40GP.Text.Trim().Equals("") ? "0" :tbCAF40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS40GP = Decimal.Parse(tbPSS40GP.Text.Trim().Equals("") ? "0" :tbPSS40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI40GP = Decimal.Parse(tbGRI40GP.Text.Trim().Equals("") ? "0" :tbGRI40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND40GP = Decimal.Parse(tbINLAND40GP.Text.Trim().Equals("") ? "0" :tbINLAND40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS40GP = Decimal.Parse(tbISPS40GP.Text.Trim().Equals("") ? "0" :tbISPS40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ40GP = Decimal.Parse(tbSZ40GP.Text.Trim().Equals("") ? "0" :tbSZ40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG40GP = Decimal.Parse(tbAG40GP.Text.Trim().Equals("") ? "0" :tbAG40GP.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF40HQ = Decimal.Parse(tbOF40HQ.Text.Trim().Equals("") ? "0" :tbOF40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF40HQ = Decimal.Parse(tbBAF40HQ.Text.Trim().Equals("") ? "0" :tbBAF40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF40HQ = Decimal.Parse(tbCAF40HQ.Text.Trim().Equals("") ? "0" :tbCAF40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS40HQ = Decimal.Parse(tbPSS40HQ.Text.Trim().Equals("") ? "0" :tbPSS40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI40HQ = Decimal.Parse(tbGRI40HQ.Text.Trim().Equals("") ? "0" :tbGRI40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND40HQ = Decimal.Parse(tbINLAND40HQ.Text.Trim().Equals("") ? "0" :tbINLAND40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS40HQ = Decimal.Parse(tbISPS40HQ.Text.Trim().Equals("") ? "0" :tbISPS40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ40HQ = Decimal.Parse(tbSZ40HQ.Text.Trim().Equals("") ? "0" :tbSZ40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG40HQ = Decimal.Parse(tbAG40HQ.Text.Trim().Equals("") ? "0" :tbAG40HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF40RH = Decimal.Parse(tbOF40RH.Text.Trim().Equals("") ? "0" :tbOF40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF40RH = Decimal.Parse(tbBAF40RH.Text.Trim().Equals("") ? "0" :tbBAF40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF40RH = Decimal.Parse(tbCAF40RH.Text.Trim().Equals("") ? "0" :tbCAF40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS40RH = Decimal.Parse(tbPSS40RH.Text.Trim().Equals("") ? "0" :tbPSS40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI40RH = Decimal.Parse(tbGRI40RH.Text.Trim().Equals("") ? "0" :tbGRI40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND40RH = Decimal.Parse(tbINLAND40RH.Text.Trim().Equals("") ? "0" :tbINLAND40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS40RH = Decimal.Parse(tbISPS40RH.Text.Trim().Equals("") ? "0" :tbISPS40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ40RH = Decimal.Parse(tbSZ40RH.Text.Trim().Equals("") ? "0" :tbSZ40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG40RH = Decimal.Parse(tbAG40RH.Text.Trim().Equals("") ? "0" :tbAG40RH.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.OF45HQ = Decimal.Parse(tbOF45HQ.Text.Trim().Equals("") ? "0" :tbOF45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.BAF45HQ = Decimal.Parse(tbBAF45HQ.Text.Trim().Equals("") ? "0" :tbBAF45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.CAF45HQ = Decimal.Parse(tbCAF45HQ.Text.Trim().Equals("") ? "0" :tbCAF45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.PSS45HQ = Decimal.Parse(tbPSS45HQ.Text.Trim().Equals("") ? "0" :tbPSS45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.GRI45HQ = Decimal.Parse(tbGRI45HQ.Text.Trim().Equals("") ? "0" :tbGRI45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.INLAND45HQ = Decimal.Parse(tbINLAND45HQ.Text.Trim().Equals("") ? "0" :tbINLAND45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.ISPS45HQ = Decimal.Parse(tbISPS45HQ.Text.Trim().Equals("") ? "0" :tbISPS45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.SZ45HQ = Decimal.Parse(tbSZ45HQ.Text.Trim().Equals("") ? "0" :tbSZ45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.AG45HQ = Decimal.Parse(tbAG45HQ.Text.Trim().Equals("") ? "0" :tbAG45HQ.Text.Trim());
|
|
|
|
|
CrmPriceCarrierEntity.REMARK = tbREMARK.Text.Trim();
|
|
|
|
|
//
|
|
|
|
|
CrmPriceCarrierEntity.CARRIERCN = "";
|
|
|
|
|
CrmPriceCarrierEntity.BOOKINGFEE = "";
|
|
|
|
|
CrmPriceCarrierEntity.CTNFEE = "";
|
|
|
|
|
CrmPriceCarrierEntity.THCFEE = "";
|
|
|
|
|
CrmPriceCarrierEntity.FILEFEE = "";
|
|
|
|
|
CrmPriceCarrierEntity.LCLCOST = "";
|
|
|
|
|
CrmPriceCarrierEntity.LCLPRICE = "";
|
|
|
|
|
CrmPriceCarrierEntity.CISF = "";
|
|
|
|
|
CrmPriceCarrierEntity.REMARK2 = "";
|
|
|
|
|
CrmPriceCarrierEntity.TYPE = "FCL";
|
|
|
|
|
//
|
|
|
|
|
int iResult = CrmPriceCarrierDA.UpdateInfo(CrmPriceCarrierEntity);
|
|
|
|
|
if (iResult > 0)
|
|
|
|
|
{
|
|
|
|
|
//Response.Write("<script>alert('成功提交!');window.opener.location.reload();history.back();</script>");
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//Response.Write("<script>alert('出错,请重新填写!');history.back();</script>");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
protected void getEnter()
|
|
|
|
|
{
|
|
|
|
|
bool bl = false;
|
|
|
|
|
strHandleType = Session["strHandleType"].ToString();
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
if (strHandleType.Equals("add"))//新增
|
|
|
|
|
{
|
|
|
|
|
bl = getAdd();
|
|
|
|
|
}
|
|
|
|
|
else if (strHandleType.Equals("addfull"))//新增
|
|
|
|
|
{
|
|
|
|
|
bl = getAdd();
|
|
|
|
|
}
|
|
|
|
|
else if (strHandleType.Equals("edit"))//录入
|
|
|
|
|
{
|
|
|
|
|
bl = getEdit();
|
|
|
|
|
}
|
|
|
|
|
this.hdEnter.Value = "";
|
|
|
|
|
//
|
|
|
|
|
if (bl)
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = true;
|
|
|
|
|
ibAdd.Enabled = true;
|
|
|
|
|
ibFullAdd.Enabled = true;
|
|
|
|
|
//window.opener.location.reload();history.back();
|
|
|
|
|
//Response.Write("<script>alert('成功提交!');</script>");
|
|
|
|
|
Page.ClientScript.RegisterStartupScript(this.GetType(), "key1", "<script>reloadParent('" + Session["GID"].ToString().Trim() + "','" + strHandleType.Trim() + "');</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Response.Write("<script>alert('出错,请重新填写!');history.back();</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
protected void ibFullAdd_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
Session["strHandleType"] = "addfull";
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
Session["GID"] = getBSNO();
|
|
|
|
|
this.hdGid.Value = Session["GID"].ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
protected void ibAdd_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
Session["strHandleType"] = "add";
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
getaddnull();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
protected void ibDel_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (this.hdLOCKFLAG.Value.Trim().Equals("1"))
|
|
|
|
|
{
|
|
|
|
|
Response.Write("<script>alert('业务已锁定,不允许删除!');history.back();</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
string alt = CrmPriceCarrierDA.GetCrmPriceCarrierDel(" or GID='"+Session["GID"].ToString().Trim()+"'", strUserID.Trim());//,"FCL"
|
|
|
|
|
if (alt != "")
|
|
|
|
|
{
|
|
|
|
|
Response.Write("<script>alert('" + alt + "');history.back();</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
Session["strHandleType"] = "add";
|
|
|
|
|
this.hdHandle.Value = Session["strHandleType"].ToString().Trim();
|
|
|
|
|
//
|
|
|
|
|
getaddnull();
|
|
|
|
|
//
|
|
|
|
|
ibDel.Enabled = false;
|
|
|
|
|
ibAdd.Enabled = false;
|
|
|
|
|
ibFullAdd.Enabled = false;
|
|
|
|
|
btSubmit.Enabled = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsNumeric(string s)
|
|
|
|
|
{
|
|
|
|
|
bool bReturn = true;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
int inum = int.Parse(s);
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
bReturn = false;
|
|
|
|
|
}
|
|
|
|
|
return bReturn;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void btSubmit_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
int iii = 0;
|
|
|
|
|
if (this.hdLOCKFLAG.Value.Trim().Equals("0"))
|
|
|
|
|
{
|
|
|
|
|
iii = CrmPriceCarrierDA.UpdateInfoCNTRTOTAL("update crm_price_carrier set LOCKFLAG='1' where GID='" + Session["GID"].ToString().Trim() + "'", strUserID.Trim());
|
|
|
|
|
if (iii == 1)
|
|
|
|
|
{
|
|
|
|
|
btSubmit.Text = "解锁";
|
|
|
|
|
this.hdLOCKFLAG.Value = "1";
|
|
|
|
|
getEnabled();
|
|
|
|
|
Page.ClientScript.RegisterStartupScript(this.GetType(), "key4", "<script>reloadParent('" + Session["GID"].ToString().Trim() + "','" + strHandleType.Trim() + "');</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Response.Write("<script>alert('锁定出错!');</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
iii = CrmPriceCarrierDA.UpdateInfoCNTRTOTAL("update crm_price_carrier set LOCKFLAG='0' where GID='" + Session["GID"].ToString().Trim() + "'", strUserID.Trim());
|
|
|
|
|
if (iii == 1)
|
|
|
|
|
{
|
|
|
|
|
btSubmit.Text = "锁定";
|
|
|
|
|
this.hdLOCKFLAG.Value = "0";
|
|
|
|
|
getEnabledTrue();
|
|
|
|
|
Page.ClientScript.RegisterStartupScript(this.GetType(), "key5", "<script>reloadParent('" + Session["GID"].ToString().Trim() + "','" + strHandleType.Trim() + "');</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Response.Write("<script>alert('解锁出错!');</script>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|