@model MALDFGASSURANCE.Models.FACTURE @{ ViewBag.Title = "Modifier"; Layout = "~/Views/Shared/_Layout.cshtml"; }

MODIFIER LA FACTURE

@using (Html.BeginForm("EditDirect", "FACTURES", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.NUMERO_FACTURE) @if (@ViewBag.Message != null) {

@ViewBag.Message

}
@Html.LabelFor(model => model.LIBELLE_ETABLISSEMENT, "ETABLISSEMENT", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.LIBELLE_ETABLISSEMENT, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.LIBELLE_ETABLISSEMENT, "", new { @class = "text-danger" })
@if (ViewData["MATRICULE"] != null) { } else { @Html.LabelFor(model => model.MATRICULE, "MATRICULE", htmlAttributes: new { @class = "control-label " }) @Html.DropDownList("MATRICULE", null, htmlAttributes: new { @class = "form-control ", @id = "kt_select2_2" }) @Html.ValidationMessageFor(model => model.MATRICULE, "", new { @class = "text-danger" }) }
@Html.LabelFor(model => model.DATE_EMISSION_FACTURE, "DATE D'EMISSION DE LA FACTURE", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.DATE_EMISSION_FACTURE, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.DATE_EMISSION_FACTURE, "", new { @class = "text-danger" })
@*
@Html.LabelFor(model => model.PARTASSURE, "PART ASSURE", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.PARTASSURE, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PARTASSURE, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PARTLDF, "PART LDF", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.PARTLDF, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PARTLDF, "", new { @class = "text-danger" })
*@
@Html.LabelFor(model => model.MONTANT_TOTAL_FACTURE, "TOTAL FACTURE", htmlAttributes: new { @class = "control-label " }) @Html.EditorFor(model => model.MONTANT_TOTAL_FACTURE, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.MONTANT_TOTAL_FACTURE, "", new { @class = "text-danger" })
@*
@Html.LabelFor(model => model.NUMBON, "NUMERO DU BON", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.NUMBON, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.NUMBON, "", new { @class = "text-danger" })
*@
@Html.LabelFor(model => model.NUMFACTURE, "NUMERO DE LA FACTURE", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.NUMFACTURE, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.NUMFACTURE, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PHOTO, "PIECE (format autorisé: Jpeg,Png,Pdf,Jpg)", htmlAttributes: new { @class = "control-label " }) @Html.TextBox("PHOTO", "", new { @type = "file", @class = "form-control" }) @Html.ValidationMessageFor(model => model.PHOTO, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PHOTO, "PIECE", htmlAttributes: new { @class = "control-label " })

Voir
}