You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
2.3 KiB

@using Syncfusion.EJ2
@{
ViewBag.Title = "Benutzer-Verwaltung";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Benutzer-Verwaltung</h2>
<br />
<div class="control-wrapper">
<ejs-grid actionComplete="actionComplete" id="Grid" allowPaging="true" dataSource="@ViewBag.DataSource" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<e-grid-editSettings showDeleteConfirmDialog="true" mode="Dialog" allowAdding="true" allowDeleting="true" allowEditing="true"></e-grid-editSettings>
<e-data-manager url="/User/UrlDataSource" adaptor="UrlAdaptor" updateUrl="/user/Update" removeUrl="/user/Remove" insertUrl="/user/Insert"></e-data-manager>
<e-grid-columns>
<e-grid-column field="id" headerText="ID" textAlign="Right" width="50" isPrimaryKey="true" defaultValue="0" allowediting="false" isIdentity="true" type="number" ></e-grid-column>
<e-grid-column field="username" headerText="Username" width="70" ></e-grid-column>
<e-grid-column field="email" headerText="E-Mail" width="100" ></e-grid-column>
<e-grid-column field="passwort" headerText="Passwort" width="50" ></e-grid-column>
<e-grid-column field="usertype" headerText="Usertype" width="50" defaultValue="0"></e-grid-column>
<e-grid-column field="firmanr" headerText="F-Nr" width="50" defaultValue="0"></e-grid-column>
<e-grid-column field="lehrernr" headerText="L-Nr" width="50" defaultValue="0" ></e-grid-column>
<e-grid-column field="verifystring" headerText="V-String" width="60" ></e-grid-column>
<e-grid-column field="provisorisch" headerText="Prov." width="50" defaultValue="true" displayAsCheckBox="true" textAlign="Center" editType="booleanedit"></e-grid-column>
<e-grid-column field="mutiert_am" format="dd.MM.yyyy mm:ss:hs" headerText="Mut." width="100" allowediting="false" DefaultValue="@(DateTime.Now)"></e-grid-column>
<e-grid-column field="Mutierer" headerText="M." width="50" allowediting="false"></e-grid-column>
<e-grid-column field="aktiv" headerText="Aktiv" textAlign="Right" displayAsCheckBox="true" textAlign="Center" editType="booleanedit" width="50"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div>