Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<AutoStore.Domain.Core.Order>
- <div id="Orders" class="modal fade">
- <div class="modal-dialog modal-lg" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title">Список заказов</h4>
- </div>
- <div class="modal-body">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>Дата заказа</th>
- <th>Марка автомобиля</th>
- <th>Модель автомобиля</th>
- <th>Цена</th>
- <th>Клиент</th>
- <th>Сотрудник</th>
- <th>Статус заказа</th>
- </tr>
- </thead>
- <tbody id="orderInf">
- @foreach (var item in Model)
- {
- string clientFIO = item.Clients.CSurname + " " + item.Clients.CName + " " + item.Clients.CPatronymic;
- string sellerFIO = item.Sellers == null ? "" : item.Sellers.SSurname + " " + item.Sellers.SName + " " + item.Sellers.SPatronymic;
- <tr id="@item.Id">
- <td>@Html.DisplayFor(i => item.OrderDate)</td>
- <td>@Html.DisplayFor(i => item.Cars.Equipment.CarModel.Mark.MarkName)</td>
- <td>@Html.DisplayFor(i => item.Cars.Equipment.CarModel.ModelName)</td>
- <td>@Html.DisplayFor(i => item.TotalPrice)</td>
- <td>@Html.DisplayFor(i => clientFIO)</td>
- <td>@Html.DisplayFor(i => sellerFIO)</td>
- <td>@Html.DisplayFor(i => item.Status)</td>
- </tr>
- }
- </tbody>
- </table>
- <div id="equip"></div>
- </div>
- <div class="modal-footer">
- <button id="btnHideInf" type="button" class="btn btn-primary">Скрыть информацию</button>
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Закрыть</button>
- </div>
- </div>
- </div>
- </div>
- @model IEnumerable<AutoStore.Domain.Core.Seller>
- <div id="Sellers" class="modal fade">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title">Список продавцов</h4>
- </div>
- <div class="modal-body">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>Сотрудник</th>
- <th>Должность</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var item in Model)
- {
- string sellerFIO = item.SSurname + " " + item.SName + " " + item.SPatronymic;
- <tr>
- <td>@Html.DisplayFor(i => sellerFIO)</td>
- <td>@Html.DisplayFor(i => item.Position)</td>
- </tr>
- }
- </tbody>
- </table>
- </div>
- <div class="modal-footer">
- <button id="btnHideInf" type="button" class="btn btn-primary">Скрыть информацию</button>
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Закрыть</button>
- </div>
- </div>
- </div>
- </div>
- <div id="modalMenu"></div>
- $.ajax({
- type: "GET",
- url: "/Administration/_IssuedOrders",
- success: function (result) {
- $('#modalMenu').html(result);
- $('#Orders').modal('show');
- }
- })
- $.ajax({
- type: "GET",
- url: "/Administration/_SellersList",
- success: function (result) {
- $('#modalSellers').html(result);
- $('#Sellers').modal('show');
- }
- });
Add Comment
Please, Sign In to add comment