init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,64 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Areas.Feljegyzes.Controllers
|
||||
@using Kreta.Web.Areas.Feljegyzes.Models
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render(Constants.General.FeljegyzesekCSS)
|
||||
}
|
||||
|
||||
@{
|
||||
string gridName = KozossegiSzolgalatokController.GridName;
|
||||
}
|
||||
|
||||
<script>
|
||||
|
||||
var DetailGridHelper = (function () {
|
||||
var detailGridHelper = function () { };
|
||||
|
||||
detailGridHelper.setAthuzas = function () {
|
||||
var gridName = "@gridName";
|
||||
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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
detailGridHelper.setRowEditing = function (rowData) {
|
||||
return !rowData.Torolt_BOOL && rowData.Modosithato_BOOL;
|
||||
}
|
||||
|
||||
return detailGridHelper;
|
||||
})();
|
||||
|
||||
</script>
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<KozossegiSzolgalatokReszletekGridModel>(
|
||||
gridName,
|
||||
new GridApiUrl("TanuloKozossegiSzolgalataiApi", "GetTanuloKozossegiSzolgalataiGrid"),
|
||||
useToolBar: false,
|
||||
dataBoundAdditionalFunction: "DetailGridHelper.setAthuzas();",
|
||||
sort: sort => sort.Add(s => s.IntervallumKezdete).Descending(),
|
||||
allowSorting: true,
|
||||
allowScrolling: true,
|
||||
allowPaging: false,
|
||||
pageSizes: null
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.ID).Hidden();
|
||||
columns.Bound(c => c.TanuloId).Hidden();
|
||||
columns.Bound(c => c.IntervallumKezdete).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
columns.Bound(c => c.IntervallumVege).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
columns.Bound(c => c.TeljesitesiHelye).Width("15%").SetDisplayPropertyWithToolip("TeljesitesiHelye");
|
||||
columns.Bound(c => c.Oraszam).Width("5%");
|
||||
columns.Bound(c => c.KozossegiSzolgalatTipusa_DNAME).Width("20%").SetDisplayPropertyWithToolip("KozossegiSzolgalatTipusa_DNAME");
|
||||
columns.Bound(c => c.Megjegyzes).Width("30%").SetDisplayPropertyWithToolip("Megjegyzes");
|
||||
columns.Bound(c => c.RogzitesDatuma).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
})
|
||||
)
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue