init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,117 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.TantargyfelosztasImportExport
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model TantargyfelosztasImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseTantargyfelosztasImportExportController.TantargyfelosztasGridName;
|
||||
var gridRowTemplateName = BaseTantargyfelosztasImportExportController.TantargyfelosztasGridRowTemplateName;
|
||||
|
||||
var gridDataSoureSortFieldName1 = "Nev";
|
||||
}
|
||||
|
||||
<div id="@gridName"></div>
|
||||
|
||||
<script id="@gridRowTemplateName" type="text/x-kendo-template">
|
||||
# if (Operation === @((int)ImportItemOperationEnum.Default)) { #
|
||||
<tr data-uid="#= uid #" role="row">
|
||||
# } else if (Operation === @((int)ImportItemOperationEnum.Insert)) { #
|
||||
<tr data-uid="#= uid #" role="row" class="importInsert">
|
||||
# } else if (Operation === @((int)ImportItemOperationEnum.Update)) { #
|
||||
<tr data-uid="#= uid #" role="row" class="importUpdate">
|
||||
# } else if (Operation === @((int)ImportItemOperationEnum.Delete)) { #
|
||||
<tr data-uid="#= uid #" role="row" class="importDelete">
|
||||
# } #
|
||||
<td role="gridcell">
|
||||
#: OperationText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Nev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OsztalyCsoportNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TanarNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TantargyNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Oraszam #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Tuloraszam #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: IsOsszevontOraText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: IsNemzetisegiOraText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: MegbizasiOraszam #
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "Nev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderNev"
|
||||
}, {
|
||||
field: "OsztalyCsoportNev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderOsztalyCsoportNev"
|
||||
}, {
|
||||
field: "TanarNev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderTanarNev"
|
||||
}, {
|
||||
field: "TantargyNev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderTantargyNev"
|
||||
}, {
|
||||
field: "Oraszam",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderOraszam"
|
||||
}, {
|
||||
field: "Tuloraszam",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderTuloraszam"
|
||||
}, {
|
||||
field: "IsOsszevontOraText",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderIsOsszevontOra"
|
||||
}, {
|
||||
field: "IsNemzetisegiOraText",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderIsNemzetisegiOra"
|
||||
}, {
|
||||
field: "MegbizasiOraszam",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderMegbizasiSzerzodesselEllatottOra"
|
||||
}
|
||||
];
|
||||
|
||||
var gridDataSoure = {
|
||||
dataType: "json",
|
||||
data: @(Html.Raw(JsonConvert.SerializeObject(Model.ImportItemModelList, Formatting.Indented))),
|
||||
sort: [
|
||||
{ field: "@gridDataSoureSortFieldName1", dir: "asc" },
|
||||
{ field: "OperationText", dir: "desc" }
|
||||
]
|
||||
};
|
||||
|
||||
KretaImportGridHelper.initializeGrid(
|
||||
"@gridName",
|
||||
gridColumns,
|
||||
gridDataSoure,
|
||||
"@gridRowTemplateName"
|
||||
);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue