init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,123 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels;
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model CimImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = GondviseloImportExportController.CimGridName;
|
||||
var gridRowTemplateName = GondviseloImportExportController.CimGridRowTemplateName;
|
||||
|
||||
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">
|
||||
#: TipusNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Iranyitoszam #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Telepules #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Kozterulet #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: KozteruletJellegNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Hazszam #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Emelet #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: Ajto #
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "GondviseloNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloNeve"
|
||||
}, {
|
||||
field: "GondviseloRokonsagiFokNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloRokonsagiFoka"
|
||||
}, {
|
||||
field: "TipusNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimTipusa"
|
||||
}, {
|
||||
field: "Iranyitoszam",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimIranyitoszam"
|
||||
}, {
|
||||
field: "Telepules",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimHelysegNev"
|
||||
}, {
|
||||
field: "Kozterulet",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimKozteruletNev"
|
||||
}, {
|
||||
field: "KozteruletJellegNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimKozteruletJelleg"
|
||||
}, {
|
||||
field: "Hazszam",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimHazszam"
|
||||
}, {
|
||||
field: "Emelet",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimEmelet"
|
||||
}, {
|
||||
field: "Ajto",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloCimAjto"
|
||||
}
|
||||
];
|
||||
|
||||
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>
|
|
@ -0,0 +1,69 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model CsoportImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseTantargyfelosztasImportExportController.CsoportGridName;
|
||||
var gridRowTemplateName = BaseTantargyfelosztasImportExportController.CsoportGridRowTemplateName;
|
||||
|
||||
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>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "Nev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderNev"
|
||||
}
|
||||
];
|
||||
|
||||
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>
|
|
@ -0,0 +1,87 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels;
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model EmailImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = GondviseloImportExportController.EmailGridName;
|
||||
var gridRowTemplateName = GondviseloImportExportController.EmailGridRowTemplateName;
|
||||
|
||||
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">
|
||||
#: EmailCim #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TipusNev #
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "GondviseloNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloNeve"
|
||||
}, {
|
||||
field: "GondviseloRokonsagiFokNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloRokonsagiFoka"
|
||||
}, {
|
||||
field: "EmailCim",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameGondviseloEmailCime"
|
||||
}, {
|
||||
field: "TipusNev",
|
||||
title: "@ImportExportGondviseloResource.ImportHeaderNameEmailTipus"
|
||||
}
|
||||
];
|
||||
|
||||
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>
|
|
@ -0,0 +1,54 @@
|
|||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model ImportInfoSummaryListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseImportExportController.OsszefoglalasGridName;
|
||||
}
|
||||
|
||||
<div id="@gridName"></div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "ImportName",
|
||||
title: "@ImportExportCommonResource.Import"
|
||||
}, {
|
||||
field: "InsertRowCount",
|
||||
title: "@ImportExportCommonResource.ImportItemOperationEnumInsert"
|
||||
}, {
|
||||
field: "UpdateRowCount",
|
||||
title: "@ImportExportCommonResource.ImportItemOperationEnumUpdate"
|
||||
}, {
|
||||
field: "DeleteRowCount",
|
||||
title: "@ImportExportCommonResource.ImportItemOperationEnumDelete"
|
||||
}, {
|
||||
field: "UnchangedRowCount",
|
||||
title: "@ImportExportCommonResource.ImportItemOperationEnumDefault"
|
||||
}, {
|
||||
field: "InvalidRowCount",
|
||||
title: "@ImportExportCommonResource.ImportItemOperationEnumInvalid"
|
||||
}
|
||||
];
|
||||
|
||||
var gridDataSoure = {
|
||||
dataType: "json",
|
||||
data: @(Html.Raw(JsonConvert.SerializeObject(Model.ImportInfoSummaryModelList, Formatting.Indented)))
|
||||
};
|
||||
|
||||
$("#" + "@gridName").kendoGrid({
|
||||
columns: gridColumns,
|
||||
dataSource: gridDataSoure,
|
||||
sortable: true,
|
||||
scrollable: false,
|
||||
height: 675
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,69 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model OsztalyImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseTantargyfelosztasImportExportController.OsztalyGridName;
|
||||
var gridRowTemplateName = BaseTantargyfelosztasImportExportController.OsztalyGridRowTemplateName;
|
||||
|
||||
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>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "Nev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderNev"
|
||||
}
|
||||
];
|
||||
|
||||
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>
|
|
@ -0,0 +1,69 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.CommonModels
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model TantargyImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseTantargyfelosztasImportExportController.TantargyGridName;
|
||||
var gridRowTemplateName = BaseTantargyfelosztasImportExportController.TantargyGridRowTemplateName;
|
||||
|
||||
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>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "Nev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderNev"
|
||||
}
|
||||
];
|
||||
|
||||
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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -0,0 +1,69 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.TeremImportExport
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model TeremImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseOrarendImportExportController.TeremGridName;
|
||||
var gridRowTemplateName = BaseOrarendImportExportController.TeremGridRowTemplateName;
|
||||
|
||||
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>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "Nev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderNev"
|
||||
}
|
||||
];
|
||||
|
||||
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