init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,117 @@
|
|||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.Web.Areas.Alkalmazott.Models
|
||||
@using Kreta.Resources
|
||||
@model AlkalmazottModel
|
||||
|
||||
<style>
|
||||
.rowFunction:empty {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid">
|
||||
<h4>@AlkalmazottResource.CimAdatok</h4>
|
||||
@{
|
||||
var kozpontilagNemSzinkronizaltLakcimList = new List<RowFunction>
|
||||
{
|
||||
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegCimHelper.modElerhetosegCim" },
|
||||
new RowFunction { Name = AlkalmazottResource.Torles, ClientAction= "AlkalmazottElerhetosegCimHelper.deleteElerhetosegCimConfirmWindow" }
|
||||
};
|
||||
|
||||
var kozpontilagSzinkronizaltLakcimList = new List<RowFunction>
|
||||
{
|
||||
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegCimHelper.modElerhetosegSzinkronizaltCim" }
|
||||
};
|
||||
}
|
||||
@(
|
||||
Html.KretaGrid<ElerhetosegCimModel>(
|
||||
name: "ElerhetosegCimGrid",
|
||||
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetAlkalmazottElerhetosegCimGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.Value.ToString() } })
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.CimTipus_DNAME);
|
||||
columns.Bound(c => c.Orszag_DNAME);
|
||||
columns.Bound(c => c.Irsz).Width("10%");
|
||||
columns.Bound(c => c.Varos);
|
||||
columns.Bound(c => c.Cim).Sortable(false).ClientTemplate(@"#: Kozterulet# #if(KozteruletJellegeNev != null){# #: KozteruletJellegeNev # #}else{# #}# #: HazSzam# #if(Emelet != null){# #: Emelet # #}else{# #}# #if(Ajto != null){# #: Ajto # #}else{# #}# ");
|
||||
columns.Bound(c => c.CimTipus).Hidden(true);
|
||||
})
|
||||
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
|
||||
.ConditionalRowFunction(Html, kozpontilagSzinkronizaltLakcimList, "AlkalmazottElerhetosegCimHelper.setRowEditingKozpontilagSzinkronizaltLakcim")
|
||||
.ConditionalRowFunction(Html, kozpontilagNemSzinkronizaltLakcimList, "AlkalmazottElerhetosegCimHelper.setRowEditingKozpontilagNemSzinkronizaltLakcim")
|
||||
.FunctionCommand(Html, new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand { Name=AlkalmazottResource.Uj, ClientAction=string.Format("function(){{ AlkalmazottElerhetosegCimHelper.newElerhetosegCim({0}); }}", Model.AlkalmazottId.Value.ToString()) },
|
||||
})
|
||||
.AutoBind(true)
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
<br />
|
||||
<h4>@AlkalmazottResource.Telefonszam</h4>
|
||||
@{
|
||||
var telRowFunctionList = new List<RowFunction>
|
||||
{
|
||||
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegTelHelper.modElerhetosegTel" },
|
||||
new RowFunction { Name = AlkalmazottResource.Torles, ClientAction= "AlkalmazottElerhetosegTelHelper.deleteElerhetosegTelConfirmWindow" }
|
||||
};
|
||||
}
|
||||
@(
|
||||
Html.KretaGrid<ElerhetosegTelModel>
|
||||
(
|
||||
name: "ElerhetosegTelGrid",
|
||||
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetAlkalmazottElerhetosegTelGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.Value.ToString() } }))
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Tipus_DNAME).Width("28%");
|
||||
columns.Bound(c => c.TelefonSzam).HeaderHtmlAttributes(new { data_gridheadertooltip = AlkalmazottResource.AlkalmazottElerhetosegTelefonszamTooltip }).Width("15%");
|
||||
})
|
||||
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
|
||||
.ConditionalRowFunction(Html, telRowFunctionList, "AlkalmazottElerhetosegTelHelper.setTelRowEditing")
|
||||
.FunctionCommand(Html, new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand { Name=AlkalmazottResource.Uj, ClientAction=string.Format("function(){{ AlkalmazottElerhetosegTelHelper.newElerhetosegTel({0}); }}",Model.AlkalmazottId.Value.ToString()) },
|
||||
})
|
||||
.AutoBind(true)
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
<br />
|
||||
<h4>@AlkalmazottResource.EMail</h4>
|
||||
@{
|
||||
var emailRowFunctionList = new List<RowFunction>
|
||||
{
|
||||
new RowFunction { Name = AlkalmazottResource.Modositas, ClientAction= "AlkalmazottElerhetosegEmailHelper.modElerhetosegEmail" },
|
||||
new RowFunction { Name = AlkalmazottResource.Torles, ClientAction= "AlkalmazottElerhetosegEmailHelper.deleteElerhetosegEmailConfirmWindow" }
|
||||
};
|
||||
}
|
||||
@(
|
||||
Html.KretaGrid<ElerhetosegEmailModel>
|
||||
(
|
||||
name: "ElerhetosegEmailGrid",
|
||||
getUrl: new GridApiUrl(Constants.ApiControllers.AlkalmazottApi, "GetAlkalmazottElerhetosegEmailGrid", new Dictionary<string, string> { { "Id", Model.AlkalmazottId.Value.ToString() } }))
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Tipus_DNAME).Width("28%");
|
||||
columns.Bound(c => c.EmailCim).HeaderHtmlAttributes(new { data_gridheadertooltip = AlkalmazottResource.AlkalmazottElerhetosegEmailTooltip }).Width("15%").ClientTemplate(@"
|
||||
# if (EmailCim != null ){# #: EmailCim # # } #
|
||||
# if (IsHibasanMegadva_BOOL == true) { #
|
||||
<i class='fa fa-exclamation-triangle' title='Hibás email cím!'></i>
|
||||
# }#");
|
||||
})
|
||||
.CheckBoxColumn(AlkalmazottResource.Alapertelmezett, c => c.Alapertelmezett_BOOL, addHeaderTitle: true)
|
||||
.ConditionalRowFunction(Html, emailRowFunctionList, "AlkalmazottElerhetosegEmailHelper.setEmailRowEditing")
|
||||
.FunctionCommand(Html, new List<FunctionCommand>
|
||||
{
|
||||
new FunctionCommand { Name=AlkalmazottResource.Uj, ClientAction=string.Format("function(){{ AlkalmazottElerhetosegEmailHelper.newElerhetosegEmail({0}); }}",Model.AlkalmazottId) },
|
||||
})
|
||||
.AutoBind(true)
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
<br /><br /><br />
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue