init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,50 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
|
||||
@model DolgozatokAtlagaGridModel
|
||||
|
||||
<script>
|
||||
|
||||
var DetailGridHelper = (function () {
|
||||
var detailGridHelper = function () { };
|
||||
|
||||
detailGridHelper.setAthuzas = function () {
|
||||
var gridName = "BeirasokReszletekGrid_" + "@Model.ID";
|
||||
var dataSource = KretaGridHelper.getKendoGridData(gridName).dataSource.data();
|
||||
$.each(dataSource, function (index, value) {
|
||||
if (value.Torolt_BOOL) {
|
||||
$('#' + gridName).find('[data-uid= ' + value.uid + ']').addClass("kretaStrikedGridRow disabledItem");
|
||||
}
|
||||
});
|
||||
}
|
||||
return detailGridHelper;
|
||||
})();
|
||||
|
||||
</script>
|
||||
|
||||
<div id="partialDetailGrid_@Model.RowId">
|
||||
@(
|
||||
Html.KretaGrid<DolgozatReszletekGridModel>(
|
||||
"DolgozatReszletekGrid_" + Model.RowId,
|
||||
new GridApiUrl(Constants.ApiControllers.DolgozatokApi, "GetDolgozatReszletekGrid", new Dictionary<string, string> {
|
||||
{ "osztalyCsoportId", Model.OsztalyCsoportId },
|
||||
{ "tantargyId", Model.TantargyId },
|
||||
{ "ertekelesTemaja", Model.ErtekelesTema },
|
||||
{ "datum", Model.Datum.ToString() } }),
|
||||
allowExcelExport: true,
|
||||
excelExportFileName: string.Format("{0}_{1}_{2}_Export", Model.OsztalyCsoport, Model.TantargyNev, Model.ErtekelesTema)
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.NyomtatasiNev).Width("20%");
|
||||
columns.Bound(c => c.SzuletesiDatum).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("15%");
|
||||
columns.Bound(c => c.Erdemjegy);
|
||||
columns.Bound(c => c.ErtekelesDatum).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("15%");
|
||||
columns.Bound(c => c.RogzitesDatum).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("15%");
|
||||
})
|
||||
)
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue