StudentRoleAuthenization.js 800 B

12345678910111213141516
  1. function Role_Authenization_Save() {
  2. var selectedFunctionCodes = $("#FunctionCode").tree("getChecked");
  3. var indeterminateFunctionCodes = $("#FunctionCode").tree("getChecked", "indeterminate");
  4. var encSelectedFunctionCodes = new Array();
  5. for (var functionCode in indeterminateFunctionCodes) {
  6. encSelectedFunctionCodes.push(indeterminateFunctionCodes[functionCode].id);
  7. }
  8. for (var functionCode in selectedFunctionCodes) {
  9. encSelectedFunctionCodes.push(selectedFunctionCodes[functionCode].id);
  10. }
  11. var data = {
  12. roleID: $.SystemGeneral.getUrlParam("RoleID"),
  13. functionCodeList: encSelectedFunctionCodes.join(',')
  14. };
  15. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/Role/SaveAuthenization', data, EMISFunction.FormSuccess, 'json');
  16. }