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

FACTURE PHARMACIE

@using (Html.BeginForm("CreateDirect", "FACTUREPHARMACIES", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
@if (ViewBag.Message != null) {

@ViewBag.Message

} @Html.ValidationSummary(true, "", 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.LIBELLE_ETABLISSEMENT, "PHARMACIE", 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" })
@Html.LabelFor(model => model.NUMERO, "NUMERO DE LA FACTURE", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.NUMERO, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.NUMERO, "", 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.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.CODEAFFECTION, "CODE AFFECTION", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.CODEAFFECTION, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.CODEAFFECTION, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.MONTANT, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.MONTANT, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.MONTANT, "", 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.PARTLDFG, "PART LDFG", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.PARTLDFG, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PARTLDFG, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PRESCRIPTEUR, "PRESCRIPTEUR", htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.PRESCRIPTEUR, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.PRESCRIPTEUR, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.PHOTO, "FICHIER", htmlAttributes: new { @class = "control-label " }) @Html.TextBox("PHOTO", "", new { @type = "file", @class = "form-control" }) @Html.ValidationMessageFor(model => model.PHOTO, "", new { @class = "text-danger" })
}