sync
This commit is contained in:
@ -6,30 +6,27 @@
|
||||
<head runat="server">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<title></title>
|
||||
<link type="text/css" href="<%=GetUrl("js/components/css/gridview.css") %>" rel="stylesheet" />
|
||||
<link type="text/css" href="<%=GetUrl("js/lib/ui.min.css") %>" rel="stylesheet" />
|
||||
<link type="text/css" href="<%=GetUrl("css/override.css") %>" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="<%=GetUrl("css/default.css")%>" type="text/css" />
|
||||
<link rel="stylesheet" href="<%=GetUrl("css/split_sub.css")%>" type="text/css" />
|
||||
<link rel="stylesheet" href="<%=GetUrl("css/editmultiselect.css")%>" type="text/css" />
|
||||
<style type="text/css">
|
||||
:root { <%=StyleVariables%> }
|
||||
.data-grid {
|
||||
height: 100%;
|
||||
font-size: 12px !important;
|
||||
font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif !important;
|
||||
}
|
||||
</style>
|
||||
<script src="<%=GetUrl("js/jquery-3.6.0.min.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetUrl("js/cookie.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetUrl("js/utility.js")%>" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="<%=GetUrl("js/components/gridview.js") %>"></script>
|
||||
<script src="<%=GetUrl("js/editmultiselect.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetUrl("js/language.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetUrl("js/lib/utility.min.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetUrl("js/lib/ui.min.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetUrl("js/language.js")%>" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var GridView = window.GridView || window['g5-gridview'];
|
||||
|
||||
var GridView = window['lib-ui'].Grid;
|
||||
_network.root = '<%=Page.ResolveUrl("~/")%>';
|
||||
consts = {
|
||||
path: _network.root
|
||||
};
|
||||
|
||||
var sitePath = "<%=this.ResolveUrl("~/fic/") %>";
|
||||
|
||||
if (typeof _utility !== 'object') {
|
||||
|
@ -1,58 +1,6 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Credentials/Credentials.master" AutoEventWireup="true" CodeFile="ManageAPICredential.aspx.cs" Inherits="ManageAPICredential" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
|
||||
<style type="text/css">
|
||||
.dialog .dialog-title .dialog-close {
|
||||
float: right;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog .dialog-title .dialog-close:before {
|
||||
content: '\e600';
|
||||
}
|
||||
|
||||
.dialog-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dialog-content table td {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.dialog-content table td.label {
|
||||
width: 130px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
line-height: 24px;
|
||||
height: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.dialog-content table td input,
|
||||
.dialog-content table td textarea {
|
||||
border: 1px solid #a9a9a9;
|
||||
width: 200px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.dialog-content table td input[type="checkbox"] {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dialog-content table td textarea {
|
||||
height: 100px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-family: CalciteWebCoreIcons;
|
||||
cursor: default;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var credentialType = "AEMP";
|
||||
var credentialList;
|
||||
@ -80,6 +28,7 @@
|
||||
$('#tr_enabled').hide();
|
||||
creid = undefined;
|
||||
$('#dialog_apiname').val('').removeAttr("disabled");
|
||||
$('#dialog_description').val('');
|
||||
$('#dialog_username').val('');
|
||||
$('#dialog_password').val('');
|
||||
$('#dialog_apikey').val('');
|
||||
@ -101,7 +50,7 @@
|
||||
|
||||
var creid;
|
||||
function OnEdit() {
|
||||
var cre = grid_dt.source[grid_dt.selectedIndex].Values;
|
||||
var cre = grid_dt.source[grid_dt.selectedIndex];
|
||||
if (!cre) {
|
||||
creid = undefined;
|
||||
return;
|
||||
@ -110,7 +59,12 @@
|
||||
$('#tr_enabled').show();
|
||||
creid = cre.ID;
|
||||
$('#dialog_apiname').val(cre.ApiDefinitionId).attr("disabled", "disabled");
|
||||
//$('#td_description').show();
|
||||
//$('#tr_description').show();
|
||||
$('#dialog_description').val(cre.Description);
|
||||
var lines = 0;
|
||||
if (cre.HasUserName) {
|
||||
lines++;
|
||||
$('#tr_username').show();
|
||||
$('#dialog_username').val(cre.UserName);
|
||||
}
|
||||
@ -120,6 +74,7 @@
|
||||
}
|
||||
|
||||
if (cre.HasPassword) {
|
||||
lines++;
|
||||
$('#tr_password').show();
|
||||
$('#dialog_password').val(cre.Password);
|
||||
}
|
||||
@ -129,6 +84,7 @@
|
||||
}
|
||||
|
||||
if (cre.HasApiKey) {
|
||||
lines++;
|
||||
$('#tr_apikey').show();
|
||||
$('#dialog_apikey').val(cre.ApiKey);
|
||||
}
|
||||
@ -138,6 +94,7 @@
|
||||
}
|
||||
|
||||
if (cre.HasApiSecret) {
|
||||
lines++;
|
||||
$('#tr_apisecret').show();
|
||||
$('#dialog_apisecret').val(cre.ApiSecret);
|
||||
}
|
||||
@ -147,6 +104,7 @@
|
||||
}
|
||||
|
||||
if (cre.HasApiToken) {
|
||||
lines++;
|
||||
$('#tr_apitoken').show();
|
||||
$('#dialog_apitoken').val(cre.ApiToken);
|
||||
}
|
||||
@ -156,6 +114,7 @@
|
||||
}
|
||||
|
||||
if (cre.HasApiTokenSecret) {
|
||||
lines++;
|
||||
$('#tr_apitokensecret').show();
|
||||
$('#dialog_apitokensecret').val(cre.ApiTokenSecret);
|
||||
}
|
||||
@ -164,6 +123,7 @@
|
||||
$('#dialog_apitokensecret').val('');
|
||||
}
|
||||
|
||||
$('#dialog_description').css('height', lines * 55 - 4);
|
||||
$('#dialog_enabled').attr("checked", cre.IsEnabled);
|
||||
$('#dialog_credential .dialog-title span.title').text(GetTextByKey("P_APICRE_EDITMANUFACTURE", 'Edit Credential'));
|
||||
showmaskbg(true);
|
||||
@ -216,8 +176,7 @@
|
||||
var rows = [];
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
var r = data[i];
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dt.setData(rows);
|
||||
@ -227,16 +186,11 @@
|
||||
function InitGridData() {
|
||||
$('#btnEdit').attr("disabled", "disabled");
|
||||
|
||||
grid_dt = new GridView('#credentiallist');
|
||||
grid_dt.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dt = createGridView('#credentiallist');
|
||||
var list_columns = [
|
||||
{ name: 'ApiName', caption: GetTextByKey("P_APICRE_APINAME", "API Name"), valueIndex: 'ApiName', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'UserName', caption: GetTextByKey("P_APICRE_USERNAME", "User Name"), valueIndex: 'UserName', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'IsEnabled', caption: GetTextByKey("P_APICRE_ENABLED", "Enabled"), valueIndex: 'IsEnabled', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'ApiName', caption: GetTextByKey("P_APICRE_APINAME", "API Name"), valueIndex: 'ApiName', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'UserName', caption: GetTextByKey("P_APICRE_USERNAME", "User Name"), valueIndex: 'UserName', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'IsEnabled', caption: GetTextByKey("P_APICRE_ENABLED", "Enabled"), valueIndex: 'IsEnabled', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'Edit', caption: "", css: { 'width': 30, 'text-align': 'center' } },
|
||||
{ name: 'Delete', caption: "", css: { 'width': 30, 'text-align': 'center' } }
|
||||
];
|
||||
@ -251,9 +205,13 @@
|
||||
col.width = list_columns[hd].css.width;
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
col.allowFilter = list_columns[hd].allowFilter;
|
||||
if (col.name === "Edit") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf044";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'edit';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnEdit();
|
||||
@ -265,8 +223,11 @@
|
||||
col.attrs = { 'title': GetTextByKey("P_APICRE_EDIT", 'Edit') };
|
||||
}
|
||||
else if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'times';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnDelete(this);
|
||||
@ -282,12 +243,12 @@
|
||||
grid_dt.canMultiSelect = false;
|
||||
grid_dt.columns = columns;
|
||||
grid_dt.init();
|
||||
grid_dt.rowdblclick = OnEdit;
|
||||
grid_dt.onRowDblClicked = OnEdit;
|
||||
|
||||
grid_dt.selectedrowchanged = function (rowindex) {
|
||||
grid_dt.onSelectedRowChanged = function (rowindex) {
|
||||
var rowdata = grid_dt.source[rowindex];
|
||||
if (rowdata) {
|
||||
creid = rowdata.Values.ID;
|
||||
creid = rowdata.ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -296,6 +257,7 @@
|
||||
var item = {
|
||||
'ApiDefinitionId': $('#dialog_apiname').val(),
|
||||
'ApiName': $("#dialog_apiname").find("option:selected").text(),
|
||||
'Description': encodeURIComponent($('#dialog_description').val()),
|
||||
'UserName': $('#dialog_username').val().replace(/(^\s*)|(\s*$)/g, ''),
|
||||
'Password': $('#dialog_password').val(),
|
||||
'ApiKey': $('#dialog_apikey').val().replace(/(^\s*)|(\s*$)/g, ''),
|
||||
@ -337,12 +299,15 @@
|
||||
}
|
||||
|
||||
function setInput(dic) {
|
||||
//$('#td_description').hide();
|
||||
//$('#tr_description').hide();
|
||||
$('#tr_username').hide();
|
||||
$('#tr_password').hide();
|
||||
$('#tr_apikey').hide();
|
||||
$('#tr_apitoken').hide();
|
||||
$('#tr_apisecret').hide();
|
||||
$('#tr_apitokensecret').hide();
|
||||
$('#dialog_description').val('');
|
||||
$('#dialog_username').val('');
|
||||
$('#dialog_password').val('');
|
||||
$('#dialog_apikey').val('');
|
||||
@ -350,24 +315,34 @@
|
||||
$('#dialog_apitoken').val('');
|
||||
$('#dialog_apitokensecret').val('');
|
||||
if (dic) {
|
||||
var lines = 0;
|
||||
//$('#td_description').show();
|
||||
//$('#tr_description').show();
|
||||
if (dic.ApiUsername) {
|
||||
lines++;
|
||||
$('#tr_username').show();
|
||||
}
|
||||
if (dic.ApiPassword) {
|
||||
lines++;
|
||||
$('#tr_password').show();
|
||||
}
|
||||
if (dic.ApiKey) {
|
||||
lines++;
|
||||
$('#tr_apikey').show();
|
||||
}
|
||||
if (dic.ApiSecret) {
|
||||
lines++;
|
||||
$('#tr_apisecret').show();
|
||||
}
|
||||
if (dic.ApiToken) {
|
||||
lines++;
|
||||
$('#tr_apitoken').show();
|
||||
}
|
||||
if (dic.ApiTokenSecret) {
|
||||
lines++;
|
||||
$('#tr_apitokensecret').show();
|
||||
}
|
||||
$('#dialog_description').css('height', lines * 55 - 4);
|
||||
}
|
||||
}
|
||||
|
||||
@ -407,7 +382,7 @@
|
||||
<div id="mask_bg">
|
||||
<div class="loading c-spin"></div>
|
||||
</div>
|
||||
<div class="dialog" id="dialog_credential" style="display: none; width: 500px;">
|
||||
<div class="dialog" id="dialog_credential" style="display: none; width: 460px;">
|
||||
<div class="dialog-title"><span class="title" data-lgid="P_APICRE_ADDMANUFACTURE">Add Credential</span><em class="dialog-close"></em></div>
|
||||
<div class="dialog-content" style="padding-left: 50px;">
|
||||
<table>
|
||||
@ -416,6 +391,13 @@
|
||||
<td>
|
||||
<select id="dialog_apiname" tabindex="1" style="width: 200px;">
|
||||
</select></td>
|
||||
<td id="td_description" class="label" data-lgid="P_MA_DESCRIPTION_COLON" style="display: none; text-align: left; width: 400px">Description:</td>
|
||||
</tr>
|
||||
<tr id="tr_description" style="display: none">
|
||||
<td colspan="2" style="padding-top: 0"></td>
|
||||
<td rowspan="7" style="vertical-align: top; padding-top: 0">
|
||||
<textarea id="dialog_description" style="max-width: 100%; width: 380px; box-sizing: border-box"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="tr_username" class="tr_aicredential" style="display: none;">
|
||||
<td class="label" data-lgid="P_APICRE_USERNAME_COLON">User Name:</td>
|
||||
|
@ -1,56 +1,6 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Credentials/Credentials.master" AutoEventWireup="true" CodeFile="ManageCredential.aspx.cs" Inherits="ManageCredential" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
|
||||
<style type="text/css">
|
||||
.dialog .dialog-title .dialog-close {
|
||||
float: right;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog .dialog-title .dialog-close:before {
|
||||
content: '\e600';
|
||||
}
|
||||
|
||||
.dialog-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dialog-content table td.label {
|
||||
width: 130px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
line-height: 24px;
|
||||
height: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.dialog-content table td input,
|
||||
.dialog-content table td input[type="text"],
|
||||
.dialog-content table td textarea {
|
||||
border: 1px solid #a9a9a9;
|
||||
width: 320px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.dialog-content table td input[type="checkbox"] {
|
||||
border: none;
|
||||
width: unset;
|
||||
}
|
||||
|
||||
.dialog-content table td textarea {
|
||||
height: 100px;
|
||||
max-width: 320px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-family: CalciteWebCoreIcons;
|
||||
cursor: default;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var credentialType = "AEMP";
|
||||
var credentialList;
|
||||
@ -79,7 +29,7 @@
|
||||
$('#dialog_urlkey').val('');
|
||||
$('#dialog_username').val('');
|
||||
$('#dialog_password').val('');
|
||||
$('#dialog_enabled').attr('checked', 'checked');
|
||||
$('#dialog_enabled').prop('checked', true);
|
||||
$('#dialog_orgid').val('');
|
||||
$('#dialog_notes').val('');
|
||||
$('#dialog_credential .dialog-title span.title').text(GetTextByKey("P_CRE_ADDMANUFACTURE", 'Add Credential'));
|
||||
@ -96,7 +46,7 @@
|
||||
|
||||
var creid;
|
||||
function OnEdit() {
|
||||
var cre = grid_dt.source[grid_dt.selectedIndex].Values;
|
||||
var cre = grid_dt.source[grid_dt.selectedIndex];
|
||||
if (!cre) {
|
||||
creid = undefined;
|
||||
return;
|
||||
@ -107,7 +57,7 @@
|
||||
$('#dialog_urlkey').val(cre.UrlKey);
|
||||
$('#dialog_username').val(cre.UserName);
|
||||
$('#dialog_password').val(cre.Password);
|
||||
$('#dialog_enabled').attr("checked", cre.Enabled);
|
||||
$('#dialog_enabled').prop("checked", cre.Enabled.Value);
|
||||
$('#dialog_orgid').val(cre.OrgnizationID);
|
||||
$('#dialog_notes').val(cre.Notes);
|
||||
$('#dialog_credential .dialog-title span.title').text(GetTextByKey("P_CRE_EDITMANUFACTURE", 'Edit Credential'));
|
||||
@ -142,8 +92,12 @@
|
||||
var rows = [];
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
var r = data[i];
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
for (var j in r) {
|
||||
if (j === "Enabled") {
|
||||
r[j] = { DisplayValue: r["Enabled"] ? GetTextByKey("P_UTILITY_YES", "Yes") : GetTextByKey("P_UTILITY_NO", "No"), Value: r[j] };
|
||||
}
|
||||
}
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dt.setData(rows);
|
||||
@ -153,17 +107,12 @@
|
||||
function InitGridData() {
|
||||
$('#btnEdit').attr("disabled", "disabled");
|
||||
|
||||
grid_dt = new GridView('#credentiallist');
|
||||
grid_dt.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dt = createGridView('#credentiallist');
|
||||
var list_columns = [
|
||||
{ name: 'ManufactureID', caption: GetTextByKey("P_CRE_MANUFACTURE", "Manufacture"), valueIndex: 'ManufactureID', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'UrlKey', caption: GetTextByKey("P_CRE_URLKEY", "Url Key"), valueIndex: 'UrlKey', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'UserName', caption: GetTextByKey("P_CRE_USERNAME", "User Name"), valueIndex: 'UserName', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'Enabled', caption: GetTextByKey("P_CRE_ENABLED", "Enabled"), valueIndex: 'Enabled', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'ManufactureID', caption: GetTextByKey("P_CRE_MANUFACTURE", "Manufacture"), valueIndex: 'ManufactureID', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'UrlKey', caption: GetTextByKey("P_CRE_URLKEY", "Url Key"), valueIndex: 'UrlKey', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'UserName', caption: GetTextByKey("P_CRE_USERNAME", "User Name"), valueIndex: 'UserName', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'Enabled', caption: GetTextByKey("P_CRE_ENABLED", "Enabled"), valueIndex: 'Enabled', allowFilter: true, css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'Notes', caption: GetTextByKey("P_CRE_NOTES", "Notes"), valueIndex: 'Notes', css: { 'width': 200, 'text-align': 'left' } },
|
||||
{ name: 'Edit', caption: "", css: { 'width': 30, 'text-align': 'center' } },
|
||||
{ name: 'Delete', caption: "", css: { 'width': 30, 'text-align': 'center' } }
|
||||
@ -179,30 +128,32 @@
|
||||
col.width = list_columns[hd].css.width;
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
col.allowFilter = list_columns[hd].allowFilter;
|
||||
|
||||
if (col.name === "Edit") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf044";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'edit';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnEdit();
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
}
|
||||
col.attrs = { 'title': GetTextByKey("P_CRE_EDIT", 'Edit') };
|
||||
}
|
||||
else if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'times';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnDelete(this);
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': GetTextByKey("P_CRE_DELETE", 'Delete') };
|
||||
}
|
||||
columns.push(col);
|
||||
@ -210,12 +161,12 @@
|
||||
grid_dt.canMultiSelect = false;
|
||||
grid_dt.columns = columns;
|
||||
grid_dt.init();
|
||||
grid_dt.rowdblclick = OnEdit;
|
||||
grid_dt.onRowDblClicked = OnEdit;
|
||||
|
||||
grid_dt.selectedrowchanged = function (rowindex) {
|
||||
grid_dt.onSelectedRowChanged = function (rowindex) {
|
||||
var rowdata = grid_dt.source[rowindex];
|
||||
if (rowdata) {
|
||||
creid = rowdata.Values.ID;
|
||||
creid = rowdata.ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -226,7 +177,7 @@
|
||||
'UrlKey': $('#dialog_urlkey').val().replace(/(^\s*)|(\s*$)/g, ''),
|
||||
'UserName': $('#dialog_username').val().replace(/(^\s*)|(\s*$)/g, ''),
|
||||
'Password': $('#dialog_password').val(),
|
||||
'Enabled': $('#dialog_enabled').attr("checked") == "checked",
|
||||
'Enabled': $('#dialog_enabled').prop("checked"),
|
||||
'OrgnizationID': $('#dialog_orgid').val(),
|
||||
'CredentialType': credentialType,
|
||||
'Notes': $('#dialog_notes').val()
|
||||
|
@ -1,58 +1,6 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Credentials/Credentials.master" AutoEventWireup="true" CodeFile="ManageJDLink.aspx.cs" Inherits="ManageJDLink" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
|
||||
<style type="text/css">
|
||||
.dialog .dialog-title .dialog-close {
|
||||
float: right;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog .dialog-title .dialog-close:before {
|
||||
content: '\e600';
|
||||
}
|
||||
|
||||
.dialog-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dialog-content table td {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.dialog-content table td.label {
|
||||
width: 130px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
line-height: 24px;
|
||||
height: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.dialog-content table td input,
|
||||
.dialog-content table td textarea {
|
||||
border: 1px solid #a9a9a9;
|
||||
width: 200px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.dialog-content table td input[type="checkbox"] {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dialog-content table td textarea {
|
||||
height: 100px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-family: CalciteWebCoreIcons;
|
||||
cursor: default;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
credentialquery = function (method, param, callback, error, nolog) {
|
||||
@ -97,9 +45,7 @@
|
||||
if (j === "RequestTime")
|
||||
r[j] = { DisplayValue: r["RequestTimeStr"], Value: r[j] };
|
||||
}
|
||||
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dt.setData(rows);
|
||||
@ -107,17 +53,12 @@
|
||||
|
||||
var grid_dt;
|
||||
function InitGridData() {
|
||||
grid_dt = new GridView('#jdlinklist');
|
||||
grid_dt.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dt = createGridView('#jdlinklist');
|
||||
var list_columns = [
|
||||
{ name: 'AccountName', caption: GetTextByKey("P_JDL_ACCOUNTNAME", "Account Name"), valueIndex: 'AccountName', css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'AccountName', caption: GetTextByKey("P_JDL_ACCOUNTNAME", "Account Name"), valueIndex: 'AccountName', allowFilter: true, css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'RequestTime', caption: GetTextByKey("P_JDL_REQUESTTIME", "Request Time"), valueIndex: 'RequestTime', css: { 'width': 150, 'text-align': 'left' } },
|
||||
{ name: 'Organization', caption: "", css: { 'width': 110, 'text-align': 'center' } },
|
||||
{ name: 'ManageOrganization', caption: "", css: { 'width': 120, 'text-align': 'center' } },
|
||||
{ name: 'Organization', valueIndex: 'Organization', caption: "", css: { 'width': 110, 'text-align': 'center' } },
|
||||
{ name: 'ManageOrganization', valueIndex: 'ManageOrganization', caption: "", css: { 'width': 140, 'text-align': 'center' } },
|
||||
{ name: 'Delete', caption: "", css: { 'width': 30, 'text-align': 'center' } }
|
||||
];
|
||||
var columns = [];
|
||||
@ -131,59 +72,51 @@
|
||||
col.width = list_columns[hd].css.width;
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
col.allowFilter = list_columns[hd].allowFilter;
|
||||
if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'times';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnDelete(this);
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': getText("P_JDL_DELETE", 'Delete') };
|
||||
col.attrs = { 'title': GetTextByKey("P_JDL_DELETE", 'Delete') };
|
||||
}
|
||||
else if (col.name === "Organization") {
|
||||
col.isurl = true;
|
||||
col.text = GetTextByKey("P_SET_XXX", "My Organizations");
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Common;
|
||||
col.styleFilter = function () { return { 'color': 'blue', "cursor": "pointer" } };
|
||||
col.filter = function () { return GetTextByKey("P_JDL_MYORGANIZATIONS", "My Organizations"); };
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
openMyOrganizationsDialog(this, 0);
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': GetTextByKey("P_SET_XXX", "My Organizations") };
|
||||
col.attrs = { 'title': GetTextByKey("P_JDL_MYORGANIZATIONS", "My Organizations") };
|
||||
}
|
||||
else if (col.name === "ManageOrganization") {
|
||||
col.isurl = true;
|
||||
col.text = GetTextByKey("P_SET_XXX", "Manage Organizations");
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Common;
|
||||
col.styleFilter = function () { return { 'color': 'blue', "cursor": "pointer" } };
|
||||
col.filter = function () { return GetTextByKey("P_JDL_MANAGEORGANIZATIONS", "Manage Organizations"); };
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
GetJDOrganizationUrl(this);
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': GetTextByKey("P_SET_XXX", "Manage Organizations") };
|
||||
col.attrs = { 'title': GetTextByKey("P_JDL_MANAGEORGANIZATIONS", "Manage Organizations") };
|
||||
}
|
||||
columns.push(col);
|
||||
}
|
||||
grid_dt.canMultiSelect = false;
|
||||
grid_dt.columns = columns;
|
||||
grid_dt.init();
|
||||
|
||||
grid_dt.selectedrowchanged = function (rowindex) {
|
||||
var rowdata = grid_dt.source[rowindex];
|
||||
if (rowdata) {
|
||||
creid = rowdata.Values.ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function OnDelete(cr) {
|
||||
@ -243,8 +176,7 @@
|
||||
r[j] = { DisplayValue: r["RequestTimeStr"], Value: r[j] };
|
||||
}
|
||||
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dtmyjd.setData(rows);
|
||||
@ -252,17 +184,12 @@
|
||||
|
||||
var grid_dtmyjd;
|
||||
function InitGridMyJDData() {
|
||||
grid_dtmyjd = new GridView('#myjdlist');
|
||||
grid_dtmyjd.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dtmyjd = createGridView('#myjdlist');
|
||||
var list_columns = [
|
||||
{ name: 'AccountName', caption: GetTextByKey("P_JDL_ACCOUNTNAME", "Account Name"), valueIndex: 'AccountName', css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'AccountName', caption: GetTextByKey("P_JDL_ACCOUNTNAME", "Account Name"), valueIndex: 'AccountName', allowFilter: true, css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'RequestTime', caption: GetTextByKey("P_JDL_REQUESTTIME", "Request Time"), valueIndex: 'RequestTime', css: { 'width': 150, 'text-align': 'left' } },
|
||||
{ name: 'Organization', caption: "", css: { 'width': 110, 'text-align': 'center' } },
|
||||
{ name: 'ManageOrganization', caption: "", css: { 'width': 120, 'text-align': 'center' } },
|
||||
{ name: 'Organization', valueIndex: 'Organization', caption: "", css: { 'width': 110, 'text-align': 'center' } },
|
||||
{ name: 'ManageOrganization', valueIndex: 'ManageOrganization', caption: "", css: { 'width': 140, 'text-align': 'center' } },
|
||||
{ name: 'Delete', caption: "", css: { 'width': 30, 'text-align': 'center' } }
|
||||
];
|
||||
var columns = [];
|
||||
@ -276,9 +203,13 @@
|
||||
col.width = list_columns[hd].css.width;
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
col.allowFilter = list_columns[hd].allowFilter;
|
||||
if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'times';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
DeleteMyJDToken(this);
|
||||
@ -290,45 +221,36 @@
|
||||
col.attrs = { 'title': getText("P_JDL_DELETE", 'Delete') };
|
||||
}
|
||||
else if (col.name === "Organization") {
|
||||
col.isurl = true;
|
||||
col.text = GetTextByKey("P_SET_XXX", "My Organizations");
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Common;
|
||||
col.styleFilter = function () { return { 'color': 'blue', "cursor": "pointer" } };
|
||||
col.filter = function () { return GetTextByKey("P_JDL_MYORGANIZATIONS", "My Organizations"); };
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
openMyOrganizationsDialog(this, 1);
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': GetTextByKey("P_SET_XXX", "My Organizations") };
|
||||
col.attrs = { 'title': GetTextByKey("P_JDL_MYORGANIZATIONS", "My Organizations") };
|
||||
}
|
||||
else if (col.name === "ManageOrganization") {
|
||||
col.isurl = true;
|
||||
col.text = GetTextByKey("P_SET_XXX", "Manage Organizations");
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Common;
|
||||
col.styleFilter = function () { return { 'color': 'blue', "cursor": "pointer" } };
|
||||
col.filter = function () { return GetTextByKey("P_JDL_MANAGEORGANIZATIONS", "Manage Organizations"); };
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
GetJDOrganizationUrl(this);
|
||||
}
|
||||
};
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': GetTextByKey("P_SET_XXX", "Manage Organizations") };
|
||||
col.attrs = { 'title': GetTextByKey("P_JDL_MANAGEORGANIZATIONS", "Manage Organizations") };
|
||||
}
|
||||
columns.push(col);
|
||||
}
|
||||
grid_dtmyjd.canMultiSelect = false;
|
||||
grid_dtmyjd.columns = columns;
|
||||
grid_dtmyjd.init();
|
||||
|
||||
grid_dtmyjd.selectedrowchanged = function (rowindex) {
|
||||
var rowdata = grid_dtmyjd.source[rowindex];
|
||||
if (rowdata) {
|
||||
creid = rowdata.Values.ID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function DeleteMyJDToken(cr) {
|
||||
@ -404,8 +326,7 @@
|
||||
r[j] = { DisplayValue: r["CreateTimeStr"], Value: r[j] };
|
||||
}
|
||||
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dtnotification.setData(rows);
|
||||
@ -413,15 +334,10 @@
|
||||
|
||||
var grid_dtnotification;
|
||||
function InitGridNotificationData() {
|
||||
grid_dtnotification = new GridView('#jdnotificationlist');
|
||||
grid_dtnotification.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dtnotification = createGridView('#jdnotificationlist');
|
||||
var list_columns = [
|
||||
{ name: 'DisplayName', caption: GetTextByKey("P_JDN_DISPLAYAME", "Display Name"), valueIndex: 'DisplayName', css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'AccountName', caption: GetTextByKey("P_JDL_USERNAME", "User Name"), valueIndex: 'AccountName', css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'DisplayName', caption: GetTextByKey("P_JDN_DISPLAYAME", "Display Name"), valueIndex: 'DisplayName', allowFilter: true, css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'AccountName', caption: GetTextByKey("P_JDL_USERNAME", "User Name"), valueIndex: 'AccountName', allowFilter: true, css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'CreateTime', caption: GetTextByKey("P_JDL_SUBSCRIPTIONNDATE", "Subscription Date"), valueIndex: 'CreateTime', css: { 'width': 150, 'text-align': 'left' } },
|
||||
//{ name: 'Organization', caption: "", css: { 'width': 110, 'text-align': 'center' } },
|
||||
{ name: 'Delete', caption: "", css: { 'width': 30, 'text-align': 'center' } }
|
||||
@ -437,9 +353,13 @@
|
||||
col.width = list_columns[hd].css.width;
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
col.allowFilter = list_columns[hd].allowFilter;
|
||||
if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'times';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnDeleteNotification(this);
|
||||
@ -451,8 +371,7 @@
|
||||
col.attrs = { 'title': getText("P_JDL_DELETE", 'Delete') };
|
||||
}
|
||||
else if (col.name === "Organization") {
|
||||
col.isurl = true;
|
||||
col.text = GetTextByKey("P_SET_XXX", "My Organizations");
|
||||
col.text = GetTextByKey("P_JDL_MYORGANIZATIONS", "My Organizations");
|
||||
col.sortable = false;
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
@ -462,19 +381,13 @@
|
||||
col.classFilter = function (e) {
|
||||
return "icon-col";
|
||||
};
|
||||
col.attrs = { 'title': GetTextByKey("P_SET_XXX", "My Organizations") };
|
||||
col.attrs = { 'title': GetTextByKey("P_JDL_MYORGANIZATIONS", "My Organizations") };
|
||||
}
|
||||
columns.push(col);
|
||||
}
|
||||
grid_dtnotification.canMultiSelect = false;
|
||||
grid_dtnotification.columns = columns;
|
||||
grid_dtnotification.init();
|
||||
|
||||
grid_dtnotification.selectedrowchanged = function (rowindex) {
|
||||
var rowdata = grid_dtnotification.source[rowindex];
|
||||
if (rowdata) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function OnDeleteNotification(cr) {
|
||||
@ -552,9 +465,7 @@
|
||||
if (j === "Member")
|
||||
r[j] = { DisplayValue: r["Member"] ? "Yes" : "", Value: r[j] };
|
||||
}
|
||||
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dtmyorgs.setData(rows);
|
||||
@ -562,17 +473,12 @@
|
||||
|
||||
var grid_dtmyorgs;
|
||||
function InitGridMyOrgData() {
|
||||
grid_dtmyorgs = new GridView('#myorganization_list');
|
||||
grid_dtmyorgs.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dtmyorgs = createGridView('#myorganization_list');
|
||||
var list_columns = [
|
||||
{ name: 'Id', caption: GetTextByKey("P_JDN_XXX", "Id"), valueIndex: 'Id', css: { 'width': 100, 'text-align': 'left' } },
|
||||
{ name: 'Name', caption: GetTextByKey("P_JDL_XXX", "Name"), valueIndex: 'Name', css: { 'width': 300, 'text-align': 'left' } },
|
||||
{ name: 'OrgType', caption: GetTextByKey("P_JDL_XXX", "Type"), valueIndex: 'OrgType', css: { 'width': 150, 'text-align': 'left' } },
|
||||
{ name: 'Member', caption: GetTextByKey("P_JDL_XXX", "Member"), valueIndex: 'Member', css: { 'width': 100, 'text-align': 'left' } }
|
||||
{ name: 'Id', caption: GetTextByKey("P_JDL_ID", "Id"), valueIndex: 'Id', css: { 'width': 100, 'text-align': 'left' } },
|
||||
{ name: 'Name', caption: GetTextByKey("P_JDL_NAME", "Name"), valueIndex: 'Name', css: { 'width': 300, 'text-align': 'left' } },
|
||||
{ name: 'OrgType', caption: GetTextByKey("P_JDL_TYPE", "Type"), valueIndex: 'OrgType', css: { 'width': 150, 'text-align': 'left' } },
|
||||
{ name: 'Member', caption: GetTextByKey("P_JDL_MEMBER", "Member"), valueIndex: 'Member', css: { 'width': 100, 'text-align': 'left' } }
|
||||
];
|
||||
var columns = [];
|
||||
// head
|
||||
@ -590,12 +496,6 @@
|
||||
grid_dtmyorgs.canMultiSelect = false;
|
||||
grid_dtmyorgs.columns = columns;
|
||||
grid_dtmyorgs.init();
|
||||
|
||||
grid_dtmyorgs.selectedrowchanged = function (rowindex) {
|
||||
var rowdata = grid_dtmyorgs.source[rowindex];
|
||||
if (rowdata) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**************************************End My Organizations***************************************************//
|
||||
@ -696,7 +596,7 @@
|
||||
<div class="loading c-spin"></div>
|
||||
</div>
|
||||
<div class="dialog" id="dialog_myorganization" style="display: none; width: 800px;">
|
||||
<div class="dialog-title"><span class="title" data-lgid="P_JDN_XXX">My Organizations</span><em class="dialog-close"></em></div>
|
||||
<div class="dialog-title"><span class="title" data-lgid="P_JDL_MYORGANIZATIONS">My Organizations</span><em class="dialog-close"></em></div>
|
||||
<div class="dialog-content">
|
||||
<div id="myorganization_list"></div>
|
||||
</div>
|
||||
|
@ -1,58 +1,6 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Credentials/Credentials.master" AutoEventWireup="true" CodeFile="ManageJDNotifications.aspx.cs" Inherits="ManageJDNotifications" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
|
||||
<style type="text/css">
|
||||
.dialog .dialog-title .dialog-close {
|
||||
float: right;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog .dialog-title .dialog-close:before {
|
||||
content: '\e600';
|
||||
}
|
||||
|
||||
.dialog-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dialog-content table td {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.dialog-content table td.label {
|
||||
width: 130px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
line-height: 24px;
|
||||
height: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.dialog-content table td input,
|
||||
.dialog-content table td textarea {
|
||||
border: 1px solid #a9a9a9;
|
||||
width: 200px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.dialog-content table td input[type="checkbox"] {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dialog-content table td textarea {
|
||||
height: 100px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-family: CalciteWebCoreIcons;
|
||||
cursor: default;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
var credentialList;
|
||||
var authdata = undefined;
|
||||
@ -101,9 +49,7 @@
|
||||
if (j === "ExpireDate")
|
||||
r[j] = { DisplayValue: r["ExpireDateStr"], Value: r[j] };
|
||||
}
|
||||
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dt.setData(rows);
|
||||
@ -111,12 +57,7 @@
|
||||
|
||||
var grid_dt;
|
||||
function InitGridData() {
|
||||
grid_dt = new GridView('#jdlinklist');
|
||||
grid_dt.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dt = createGridView('#jdlinklist');
|
||||
var list_columns = [
|
||||
{ name: 'UserName', caption: GetTextByKey("P_JDN_USERNAME", "User Name"), valueIndex: 'UserName', css: { 'width': 400, 'text-align': 'left' } },
|
||||
{ name: 'DisplayName', caption: GetTextByKey("P_JDN_DISPLAYAME", "Display Name"), valueIndex: 'DisplayName', css: { 'width': 400, 'text-align': 'left' } },
|
||||
@ -135,8 +76,11 @@
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = 'times';
|
||||
col.iconType = 'fa-light';
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnDelete(this);
|
||||
@ -153,7 +97,7 @@
|
||||
grid_dt.columns = columns;
|
||||
grid_dt.init();
|
||||
|
||||
grid_dt.selectedrowchanged = function (rowindex) {
|
||||
grid_dt.onSelectedRowChanged = function (rowindex) {
|
||||
var rowdata = grid_dt.source[rowindex];
|
||||
if (rowdata) {
|
||||
creid = rowdata.Values.ID;
|
||||
|
Reference in New Issue
Block a user