|
|
|
@ -111,7 +111,8 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
return Content("<script>location.href='/MvcShipping/HuaiTaiInsurance/Error'</script>");
|
|
|
|
|
}
|
|
|
|
|
public ActionResult InsuranceOK(string id = null, string InsID = null)
|
|
|
|
|
|
|
|
|
|
public ActionResult InsuranceOK(string id = null, string InsID = null, bool copy = false)
|
|
|
|
|
{
|
|
|
|
|
string userid = Convert.ToString(Session["USERID"]);
|
|
|
|
|
//var str = GetRangDAStr("index", userid, Convert.ToString(Session["SHOWNAME"]), Convert.ToString(Session["COMPANYID"]));
|
|
|
|
@ -126,6 +127,8 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
{
|
|
|
|
|
var t = context.Insurance.Where(p => p.GID == InsID).FirstOrDefault();
|
|
|
|
|
var moneyType = context.CodeInsuranceCurrency.Select(p => p.Code).Distinct().ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ViewData["moneyType"] = moneyType;
|
|
|
|
|
ViewData["MBLNO"] = t.BillNumber;//提单号
|
|
|
|
|
ViewData["Marks"] = t.Sign;//唛头
|
|
|
|
@ -142,16 +145,28 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
ViewData["PORTDISCHARGE"] = t.ToArea;//目的港
|
|
|
|
|
ViewData["beibaoren"] = t.BInsuredName;//被保人
|
|
|
|
|
ViewData["toubaoren"] = Convert.ToString(Session["COMNAME"]);//投保人
|
|
|
|
|
//var snumb = "QDDJY" + DateTime.Now.ToString("yyyyMMddHHmmss") + DateTime.Now.Millisecond;//流水号
|
|
|
|
|
//ViewData["liushui"] = snumb;
|
|
|
|
|
|
|
|
|
|
ViewData["sumAndb"] = t.PackAndQuantity;
|
|
|
|
|
var vnumb = context.TSysCountryCode.AsNoTracking().Where(c => c.parameterCode != null && c.parameterCode != "").OrderBy(c => c.CountryCode).Distinct().ToList();
|
|
|
|
|
ViewData["country"] = vnumb;
|
|
|
|
|
ViewData["StartPort"] = context.CodeLoadport.ToList();
|
|
|
|
|
ViewData["EndPort"] = context.CodeDisport.ToList();
|
|
|
|
|
//var chaka = CountryCode(context.TSysCountryCode.Where(p => p.CountryCode == t.ToContry).FirstOrDefault().CountryName);
|
|
|
|
|
|
|
|
|
|
ViewData["ChaK"] = context.TsysCountryCodeCheckone.Where(p => p.Nation == t.ToContry).ToList();
|
|
|
|
|
if (!copy)
|
|
|
|
|
{
|
|
|
|
|
ViewData["CDid"] = id;
|
|
|
|
|
ViewData["liushui"] = t.SerialNumber;//提单号;
|
|
|
|
|
ViewData["MBLNO"] = t.BillNumber;//提单号
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var snumb = "QDDJY" + DateTime.Now.ToString("yyyyMMddHHmmss") + DateTime.Now.Millisecond;//流水号
|
|
|
|
|
ViewData["liushui"] = snumb;
|
|
|
|
|
ViewData["MBLNO"] = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ViewData["currency"] = GetMoneyName(t.AmtCurrency);
|
|
|
|
|
ViewData["letterOf"] = t.CreditNODesc;
|
|
|
|
|
ViewData["NewSpecialAgreement"] = t.NewSpecialAgreement;
|
|
|
|
@ -163,9 +178,8 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
ViewData["TransportDetail"] = t.TransportDetail;
|
|
|
|
|
ViewData["OriginalSum"] = t.OriginalSum;
|
|
|
|
|
ViewData["toubaoren"] = t.ApplicantName;
|
|
|
|
|
ViewData["liushui"] = t.SerialNumber;
|
|
|
|
|
ViewData["Premium"] = t.Premium;
|
|
|
|
|
ViewData["CargoType"] = t.CargoType;
|
|
|
|
|
|
|
|
|
|
ViewData["WarIns"] = t.WarIns.ToString();
|
|
|
|
|
ViewData["StrikeIns"] = t.StrikeIns.ToString();
|
|
|
|
|
ViewData["changeRate"] = t.ChargeRate;
|
|
|
|
@ -271,7 +285,6 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult InsuranceEdit(string id = null)
|
|
|
|
|
{
|
|
|
|
|
string userid = Convert.ToString(Session["USERID"]);
|
|
|
|
|