sync
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user