@model ParcelWeb.Core.Dto.CreateOrUpdateShipmentDto @{ ViewBag.Title = "Edit Shipment"; }
@foreach (var item in @Model.ShipmentTrackingDetail) { }
Date Time Status Location Action
@item.Date.ToShortDateString() @item.Time.ToShortTimeString() @item.Status.Description @item.Location

BARCODE DETAILS

@Model.TrackingId

@Model.Status.Name

UPDATE STATUS

@Html.DropDownList("StatusId", null, "--Select Status--", new { @class = "form-control square", @required = "required" })

MODIFY SHIPMENT DETAILS - @Model.TrackingId

Change and edit shipment info below

@Html.ValidationSummary(false)
@Html.HiddenFor(model => model.ShipmentId) @Html.HiddenFor(model => model.TrackingId) @Html.HiddenFor(model => model.TrackingCode) @*//------------Shipment Detail Section-------------*@

@Html.LabelFor(model => model.DeliveryServiceId, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.DropDownListFor(model => model.DeliveryServiceId, null, new { @class = "custom-select block" }) @Html.ValidationMessageFor(model => model.DeliveryServiceId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ParcelTypeId, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.DropDownListFor(model => model.ParcelTypeId, ViewBag.ParcelType as SelectList, new { @class = "custom-select block" }) @Html.ValidationMessageFor(model => model.ParcelTypeId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ItemDescription, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.ItemDescription, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ItemDescription, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.RefNo,"Order Id", htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.RefNo, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.RefNo, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.CurrencyId, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.DropDownListFor(model => model.CurrencyId, ViewBag.Currency as SelectList, new { @class = "custom-select block" }) @Html.ValidationMessageFor(model => model.CurrencyId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalCost,"COD Amount", htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.TotalCost, new { htmlAttributes = new { @class = "form-control text-sm-left decimal-inputmask" } }) .00
@Html.ValidationMessageFor(model => model.TotalCost, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalPieces, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.TotalPieces, new { htmlAttributes = new { @class = "form-control font-weight-bold number-only" } }) @Html.ValidationMessageFor(model => model.TotalPieces, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalWeight, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.EditorFor(model => model.TotalWeight, new { htmlAttributes = new { @class = "form-control text-sm-left decimal-inputmask" } }) Kgs
@Html.ValidationMessageFor(model => model.TotalWeight, "", new { @class = "text-danger" })
@*----------END ShipmentDetail*@
@Html.LabelFor(model => model.BookingDate, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.BookingDate, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.BookingDate, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DeliveryDate, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.DeliveryDate, new { htmlAttributes = new { @class = "form-control" } })
(Expected Delivery Date) @Html.ValidationMessageFor(model => model.DeliveryDate, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.SenderCode)
@Html.LabelFor(model => model.SenderName, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.SenderName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.SenderName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.StreetAddress, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.SenderAddress.StreetAddress, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.SenderAddress.StreetAddress, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.Mobile, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.SenderAddress.Mobile, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.SenderAddress.Mobile, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.CountryId, htmlAttributes: new { @class = "control-label" }) @Html.DropDownListFor(model => model.SenderAddress.CountryId, @ViewBag.SenderCountry as SelectList, "--Select Country--", new { @class = "form-control select2-size-sm" }) @Html.ValidationMessageFor(model => model.SenderAddress.CountryId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.CityId, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.SenderAddress.CityId, new { htmlAttributes = new { @class = "form-control" } }) @*@Html.DropDownListFor(model => model.SenderAddress.CityId, @ViewBag.SenderCity as SelectList, "--Select City--", new { @class = "form-control" })*@ @Html.ValidationMessageFor(model => model.SenderAddress.CityId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.ZipCode, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.SenderAddress.ZipCode, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.SenderAddress.ZipCode, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.Phone, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.SenderAddress.Phone, new { htmlAttributes = new { @class = "form-control", @type = "tel" } })
@Html.ValidationMessageFor(model => model.SenderAddress.Phone, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.Email, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.SenderAddress.Email, new { htmlAttributes = new { @class = "form-control", @type = "email" } }) @@example.com
@Html.ValidationMessageFor(model => model.SenderAddress.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.Fax, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.SenderAddress.Fax, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.SenderAddress.Fax, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.ReceiverCode)
@Html.LabelFor(model => model.ReceiverName, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.ReceiverName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ReceiverName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.StreetAddress, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.ReceiverAddress.StreetAddress, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ReceiverAddress.StreetAddress, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.Mobile, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.ReceiverAddress.Mobile, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ReceiverAddress.Mobile, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.CountryId, htmlAttributes: new { @class = "control-label" }) @Html.DropDownListFor(model => model.ReceiverAddress.CountryId, @ViewBag.ReceiverCountry as SelectList, "--Select Country--", new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ReceiverAddress.CountryId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.CityId, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.ReceiverAddress.CityId, new { htmlAttributes = new { @class = "form-control" } }) @*@Html.DropDownListFor(model => model.ReceiverAddress.CityId, @ViewBag.ReceiverCity as SelectList, "--Select City--", new { @class = "form-control" })*@ @Html.ValidationMessageFor(model => model.ReceiverAddress.CityId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.State, htmlAttributes: new { @class = "control-label col-md-3" })
@Html.ValidationMessage("ReceiverAddress.State", "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.ZipCode, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.ReceiverAddress.ZipCode, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ReceiverAddress.ZipCode, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.Phone, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.ReceiverAddress.Phone, new { htmlAttributes = new { @class = "form-control", @type = "tel" } })
@Html.ValidationMessageFor(model => model.ReceiverAddress.Phone, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.Email, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.ReceiverAddress.Email, new { htmlAttributes = new { @class = "form-control", @type = "email" } }) @@example.com
@Html.ValidationMessageFor(model => model.ReceiverAddress.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.Fax, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.ReceiverAddress.Fax, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ReceiverAddress.Fax, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DeliveryDetail.DeliveryStaff, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.DeliveryDetail.DeliveryStaff, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.DeliveryDetail.DeliveryStaff, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DeliveryDetail.ReceivedPreson, htmlAttributes: new { @class = "control-label" })
@Html.EditorFor(model => model.DeliveryDetail.ReceivedPreson, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.DeliveryDetail.ReceivedPreson, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DeliveryDetail.DeliveredOn, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.DeliveryDetail.DeliveredOn, new { htmlAttributes = new { @class = "form-control", @Value = @DateTime.Now } }) @Html.ValidationMessageFor(model => model.DeliveryDetail.DeliveredOn, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.DeliveryDetail.PODUrl) @Html.HiddenFor(model => model.DeliveryDetail.FileName) Formats( .docx |.pdf |.xls |.xlsx |.ppt |.txt)
@section Scripts { @Scripts.Render("~/bundles/jqueryval") @* *@ @Html.Raw(TempData["msg"]) }