init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,152 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.OrarendImportExport
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model OrarendImportItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var gridName = BaseOrarendImportExportController.GridName;
|
||||
var gridRowTemplateName = BaseOrarendImportExportController.GridRowTemplateName;
|
||||
|
||||
var gridDataSoureSortFieldName1 = "HetirendTipusNev";
|
||||
var gridDataSoureSortFieldName2 = "HetNapjaTipusNev";
|
||||
var gridDataSoureSortFieldName3 = "OraSorszamText";
|
||||
var gridDataSoureSortFieldName4 = "OraKezdeteText";
|
||||
var gridDataSoureSortFieldName5 = "OraVegeText";
|
||||
}
|
||||
|
||||
<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">
|
||||
# if (Operation === @((int)ImportItemOperationEnum.Update)) { #
|
||||
@(Html.Raw(ImportExportOrarendResource.ImportItemOperationEnumLezaras))
|
||||
# } else { #
|
||||
#: OperationText #
|
||||
# } #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: HetirendTipusNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: HetNapjaTipusNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OraSorszamText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OraKezdeteText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OraVegeText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OsztalyCsoportNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TanarNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TantargyNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: TeremNev #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OraErvenyessegKezdeteText #
|
||||
</td>
|
||||
<td role="gridcell">
|
||||
#: OraErvenyessegVegeText #
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
var gridColumns = [
|
||||
{
|
||||
field: "OperationText",
|
||||
title: "@ImportExportCommonResource.Muvelet",
|
||||
width: 140
|
||||
}, {
|
||||
field: "HetirendTipusNev",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderHetirendTipusNev",
|
||||
width: 110
|
||||
}, {
|
||||
field: "HetNapjaTipusNev",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderHetNapjaTipusNev",
|
||||
width: 90
|
||||
}, {
|
||||
field: "OraSorszamText",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderHetOraSorszam",
|
||||
width: 50
|
||||
}, {
|
||||
field: "OraKezdeteText",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderHetOraKezdete",
|
||||
width: 85
|
||||
}, {
|
||||
field: "OraVegeText",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderHetOraVege",
|
||||
width: 85
|
||||
}, {
|
||||
field: "OsztalyCsoportNev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderOsztalyCsoportNev",
|
||||
width: 185
|
||||
}, {
|
||||
field: "TanarNev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderTanarNev",
|
||||
width: 185
|
||||
}, {
|
||||
field: "TantargyNev",
|
||||
title: "@ImportExportTantargyfelosztasResource.ContainerMainGridHeaderTantargyNev",
|
||||
width: 185
|
||||
}, {
|
||||
field: "TeremNev",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderHetTeremNev",
|
||||
width: 179
|
||||
}, {
|
||||
field: "OraErvenyessegKezdeteText",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderOraErvenyessegKezdete",
|
||||
width: 110
|
||||
}, {
|
||||
field: "OraErvenyessegVegeText",
|
||||
title: "@ImportExportOrarendResource.ContainerMainGridHeaderOraErvenyessegVege",
|
||||
width: 110
|
||||
}
|
||||
];
|
||||
|
||||
var gridDataSoure = {
|
||||
dataType: "json",
|
||||
data: @(Html.Raw(JsonConvert.SerializeObject(Model.ImportItemModelList, Formatting.Indented))),
|
||||
sort: [
|
||||
{ field: "@gridDataSoureSortFieldName1", dir: "asc" },
|
||||
{ field: "@gridDataSoureSortFieldName2", dir: "asc" },
|
||||
{ field: "@gridDataSoureSortFieldName3", dir: "asc" },
|
||||
{ field: "@gridDataSoureSortFieldName4", dir: "asc" },
|
||||
{ field: "@gridDataSoureSortFieldName5", dir: "asc" },
|
||||
{ field: "OperationText", dir: "desc" }
|
||||
]
|
||||
};
|
||||
|
||||
KretaImportGridHelper.initializeGrid(
|
||||
"@gridName",
|
||||
gridColumns,
|
||||
gridDataSoure,
|
||||
"@gridRowTemplateName"
|
||||
);
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,149 @@
|
|||
@using Kreta.Enums.ManualEnums.ImportExport
|
||||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.OrarendImportExport
|
||||
@using Newtonsoft.Json
|
||||
|
||||
@model OrarendImportNemImportalhatoItemListModel
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
var nemImportalhatoSorokGridName = BaseImportExportController.NemImportalhatoSorokGridName;
|
||||
|
||||
var gridDataSoureSortFieldName1 = "HetirendImportData";
|
||||
var gridDataSoureSortFieldName2 = "NapImportData";
|
||||
var gridDataSoureSortFieldName3 = "OraImportData";
|
||||
var gridDataSoureSortFieldName4 = "FoglalkozasKezdeteImportData";
|
||||
var gridDataSoureSortFieldName5 = "FoglalkozasVegeImportData";
|
||||
}
|
||||
|
||||
<div id="@nemImportalhatoSorokGridName"></div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var nemImportalhatoSorokGridColumns = [];
|
||||
|
||||
@if (Model.OrarendImportTipus == (int) OrarendImportTipusEnum.ErvenyessegiIdovelImport)
|
||||
{
|
||||
<text>
|
||||
nemImportalhatoSorokGridColumns.push({
|
||||
field: "OraErvenyessegKezdeteImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameOraErvenyessegKezdete",
|
||||
width: 200
|
||||
}, {
|
||||
field: "OraErvenyessegVegeImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameOraErvenyessegVege",
|
||||
width: 200
|
||||
}
|
||||
);
|
||||
</text>
|
||||
}
|
||||
|
||||
nemImportalhatoSorokGridColumns.push({
|
||||
field: "HetirendImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameHetirend",
|
||||
width: 200
|
||||
}, {
|
||||
field: "NapImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameNap",
|
||||
width: 200
|
||||
}
|
||||
);
|
||||
|
||||
@if (!Model.IsNapirendImport)
|
||||
{
|
||||
<text>
|
||||
nemImportalhatoSorokGridColumns.push({
|
||||
field: "OraImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameOra",
|
||||
width: 200
|
||||
}
|
||||
);
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
nemImportalhatoSorokGridColumns.push({
|
||||
field: "FoglalkozasKezdeteImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameFoglalkozasKezdete",
|
||||
width: 200
|
||||
}, {
|
||||
field: "FoglalkozasVegeImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameFoglalkozasVege",
|
||||
width: 200
|
||||
}
|
||||
);
|
||||
</text>
|
||||
}
|
||||
|
||||
nemImportalhatoSorokGridColumns.push({
|
||||
field: "OsztalyNevImportData",
|
||||
title: "@ImportExportTantargyfelosztasResource.ImportHeaderNameOsztaly",
|
||||
width: 200
|
||||
}, {
|
||||
field: "CsoportNevImportData",
|
||||
title: "@ImportExportTantargyfelosztasResource.ImportHeaderNameCsoport",
|
||||
width: 200
|
||||
}, {
|
||||
field: "TantargyNevImportData",
|
||||
title: "@ImportExportTantargyfelosztasResource.ImportHeaderNameTantargy",
|
||||
width: 200
|
||||
}, {
|
||||
field: "TanarNevImportData",
|
||||
title: "@ImportExportTantargyfelosztasResource.ImportHeaderNameTanar",
|
||||
width: 200
|
||||
}, {
|
||||
field: "HelyisegImportData",
|
||||
title: "@ImportExportOrarendResource.ImportHeaderNameHelyiseg",
|
||||
width: 200
|
||||
}
|
||||
);
|
||||
|
||||
nemImportalhatoSorokGridColumns.push({
|
||||
field: "ErrorList",
|
||||
title: "@CommonResource.Hiba",
|
||||
width: 2000,
|
||||
attributes: {
|
||||
"class": "Sortores"
|
||||
}
|
||||
});
|
||||
|
||||
var sort = [
|
||||
{ field: "@gridDataSoureSortFieldName1", dir: "asc" },
|
||||
{ field: "@gridDataSoureSortFieldName2", dir: "asc" }
|
||||
];
|
||||
|
||||
@if (!Model.IsNapirendImport)
|
||||
{
|
||||
<text>
|
||||
sort.push(
|
||||
{ field: "@gridDataSoureSortFieldName3", dir: "asc" }
|
||||
);
|
||||
</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
<text>
|
||||
sort.push(
|
||||
{ field: "@gridDataSoureSortFieldName4", dir: "asc" },
|
||||
{ field: "@gridDataSoureSortFieldName5", dir: "asc" }
|
||||
);
|
||||
</text>
|
||||
}
|
||||
|
||||
var nemImportalhatoSorokGridDataSoure = {
|
||||
dataType: "json",
|
||||
data: @(Html.Raw(JsonConvert.SerializeObject(Model.NemImportalhatoItemModelList, Formatting.Indented))),
|
||||
sort: sort
|
||||
};
|
||||
|
||||
KretaImportGridHelper.initializeGrid(
|
||||
"@nemImportalhatoSorokGridName",
|
||||
nemImportalhatoSorokGridColumns,
|
||||
nemImportalhatoSorokGridDataSoure
|
||||
);
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,64 @@
|
|||
@using Kreta.Web.Areas.ImportExport.Controllers
|
||||
@using Kreta.Web.Areas.ImportExport.Models.OrarendImportExport
|
||||
|
||||
@model OrarendImportInfoModel
|
||||
|
||||
@{
|
||||
var importPopupTabStripName = BaseImportExportController.ImportPopupTabStripName;
|
||||
|
||||
var containerMainGridTabName = ImportExportOrarendResource.ImportDefaultSheetNameOrarend;
|
||||
}
|
||||
|
||||
<div id="@importPopupTabStripName">
|
||||
<ul class="tab-container">
|
||||
<li class="k-state-active">
|
||||
@ImportExportCommonResource.Osszefoglalas
|
||||
</li>
|
||||
<li>
|
||||
@ImportExportOrarendResource.Tantargy
|
||||
</li>
|
||||
<li>
|
||||
@ImportExportOrarendResource.Osztaly
|
||||
</li>
|
||||
<li>
|
||||
@ImportExportOrarendResource.Csoport
|
||||
</li>
|
||||
<li>
|
||||
@ImportExportOrarendResource.Tantargyfelosztas
|
||||
</li>
|
||||
<li>
|
||||
@ImportExportOrarendResource.Terem
|
||||
</li>
|
||||
<li>
|
||||
@containerMainGridTabName
|
||||
</li>
|
||||
<li>
|
||||
@ImportExportCommonResource.NemImportalhatoSorok
|
||||
</li>
|
||||
</ul>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonViews/ContainerOsszefoglalasGrid", Model.ImportInfoSummaryList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonViews/ContainerTantargyGrid", Model.TantargyImportItemList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonViews/ContainerOsztalyGrid", Model.OsztalyImportItemList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonViews/ContainerCsoportGrid", Model.CsoportImportItemList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonViews/ContainerTantargyfelosztasGrid", Model.TantargyfelosztasImportItemList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonViews/ContainerTeremGrid", Model.TeremImportItemList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonOrarendViews/ContainerMainGrid", Model.MainImportItemList); }
|
||||
</div>
|
||||
<div>
|
||||
@{ Html.RenderPartial("../CommonOrarendViews/ContainerNemImportalhatoSorokGrid", Model.NemImportalhatoItemList); }
|
||||
</div>
|
||||
</div>
|
||||
@Html.KretaTabStrip(importPopupTabStripName).RenderOnModal()
|
Loading…
Add table
Add a link
Reference in a new issue