init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,87 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Newtonsoft.Json
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels;
|
||||
|
||||
@model TelefonImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = GondviseloImportExportController.TelefonszamGridName;
|
||||
var gridRowTemplateName = GondviseloImportExportController.TelefonszamGridRowTemplateName;
|
||||
|
||||
var gridDataSoureSortFieldName1 = "GondviseloNev";
|
||||
}
|
||||
|
||||
<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">
|
||||
#: GondviseloNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: GondviseloRokonsagiFokNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Telefonszam #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TipusNev #
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "GondviseloNeve",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloNeve"
|
||||
}, {
|
||||
field: "GondviseloRokonsagiFokNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloRokonsagiFoka"
|
||||
}, {
|
||||
field: "Telefonszam",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloTelefonszama"
|
||||
}, {
|
||||
field: "TipusNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameTelefonTipus"
|
||||
}
|
||||
];
|
||||
|
||||
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