@model ParcelWeb.Core.Dto.CreateOrEditDomesticShipmentDto @using ParcelWeb.Core.Dto @{ ViewBag.Title = "Enter Shipment"; //Layout = "~/Views/Shared/_AdminDomestic.cshtml"; }

Enter Shipment

@using (Html.BeginForm("Create", "DomesticShipment", FormMethod.Post, htmlAttributes: new { @class = "form form-horizontal" })) {

Basic Information

@Html.LabelFor(model => model.DeliveryServiceId, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.DropDownListFor(model => model.DeliveryServiceId, ViewBag.DeliveryServiceId as SelectList, "--Select Service--", new { @class = "custom-select block" }) @Html.ValidationMessageFor(model => model.DeliveryServiceId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.BookingDate, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.BookingDate, new { htmlAttributes = new { @readonly = "readonly", @class = "form-control", @Value = @DateTime.Now.ToShortDateString() } })
@Html.ValidationMessageFor(model => model.BookingDate, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalWeight, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.TotalWeight, new { htmlAttributes = new { @class = "form-control text-sm-left decimal-inputmask" } }) (Apprx.)
@Html.ValidationMessageFor(model => model.TotalWeight, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalCost, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.TotalCost, new { htmlAttributes = new { @class = "form-control text-sm-left decimal-inputmask" } }) @ViewBag.Currency
@Html.ValidationMessageFor(model => model.TotalCost, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalPieces, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.TotalPieces, new { htmlAttributes = new { @class = "form-control font-weight-bold text-md-center number-only" } }) @Html.ValidationMessageFor(model => model.TotalPieces, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.RefNo, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.RefNo, new { htmlAttributes = new { @class = "form-control", @Value = @ViewBag.orderId } }) @Html.ValidationMessageFor(model => model.RefNo, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ItemDescription, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.ItemDescription, new { htmlAttributes = new { @class = "form-control", @Placeholder = "Product/Item" } }) @Html.ValidationMessageFor(model => model.ItemDescription, "", new { @class = "text-danger" })
@Html.Label("Cubic(L x W x H)cm", htmlAttributes: new { @class = "font-weight-bold label-control col-md-4" })
@Html.EditorFor(model => model.Length, new { htmlAttributes = new { @class = "form-control text-sm-left ", placeholder = "Length" } }) @Html.ValidationMessageFor(model => model.Length, "", new { @class = "text-danger" })
@Html.EditorFor(model => model.Width, new { htmlAttributes = new { @class = "form-control text-sm-left ", placeholder = "Width" } }) @Html.ValidationMessageFor(model => model.Width, "", new { @class = "text-danger" })
@Html.EditorFor(model => model.Height, new { htmlAttributes = new { @class = "form-control text-sm-left ", placeholder = "Height" } }) @Html.ValidationMessageFor(model => model.Height, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.TotalVolWeight, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.TotalVolWeight, new { htmlAttributes = new { @readonly = "readonly", @class = "form-control-static" } }) @Html.ValidationMessageFor(model => model.TotalVolWeight, "", new { @class = "text-danger" })
@*//---------Shiper Detail--------------*@

SHIPPER DETAIL

@Html.LabelFor(model => model.SenderCode, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.DropDownListFor(model => model.SenderCode, @ViewBag.Shippers as SelectList, "--SELF--", new { @class = "form-control", @id = "cbxSenders" }) @Html.ValidationMessageFor(model => model.SenderCode, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderName, htmlAttributes: new { @class = "label-control col-md-4" })
@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.Email, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.SenderAddress.Email, new { htmlAttributes = new { @class = "form-control", @type = "email" } }) @Html.ValidationMessageFor(model => model.SenderAddress.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.Mobile, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.SenderAddress.Mobile, new { htmlAttributes = new { @class = "form-control", @type = "tel" } }) @Html.ValidationMessageFor(model => model.SenderAddress.Mobile, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.StreetAddress, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.TextAreaFor(model => model.SenderAddress.StreetAddress, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.SenderAddress.StreetAddress, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SenderAddress.CityId, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.ValidationMessage("SenderAddress.CityId", "", new { @class = "text-danger" })
@*//---------Consignee Detail--------------*@

CONSIGNEE DETAIL

@Html.LabelFor(model => model.ReceiverCode, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.ReceiverCode, new { htmlAttributes = new { @Placeholder = "(e.g: 030012XXXXXX)", @class = "form-control typeahead-remote" } }) (Search by Phone number e.g: 030012XXXXXX) @Html.ValidationMessageFor(model => model.ReceiverCode, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverName, htmlAttributes: new { @class = "label-control col-md-4" })
@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.Email, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.ReceiverAddress.Email, new { htmlAttributes = new { @class = "form-control", @type = "email" } }) @Html.ValidationMessageFor(model => model.ReceiverAddress.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.Mobile, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.EditorFor(model => model.ReceiverAddress.Mobile, new { htmlAttributes = new { @class = "form-control", @type = "tel" } }) @Html.ValidationMessageFor(model => model.ReceiverAddress.Mobile, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.StreetAddress, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.TextAreaFor(model => model.ReceiverAddress.StreetAddress, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.ReceiverAddress.StreetAddress, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReceiverAddress.CityId, htmlAttributes: new { @class = "label-control col-md-4" })
@Html.ValidationMessage("ReceiverAddress.CityId", "", new { @class = "text-danger" })
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }