Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.216.208.243
Current Path : /var/www/oasis/js/ |
| Current File : /var/www/oasis/js/footer.js |
function show_field_text() {}
function GenerateFiles() {}
function saveRecords() {
$("#dialog").dialog("close");
switch (document.getElementById("module_name_for_save").value) {
case "savegeneralmasterDetails":
savegeneralmasterDetails();
//$geditinternalcode=0;
break;
case "saveUserSetUpDetails":
saveUserSetUpDetails();
//$geditinternalcode=0;
break;
case "saveUserRightsDetails":
saveUserRightsDetails();
//$geditinternalcode=0;
break;
}
}
function Clearfields() {
$("#dialog").dialog("close");
$g_group_edit_internalcode = 0;
$g_group_edit_parent_internalcode = 0;
switch (document.getElementById("module_name_for_save").value) {
case "savegeneralmasterDetails":
enablegeneralmaster();
$geditinternalcode = 0;
break;
case "saveUserSetUpDetails":
$gedituserinternalcode = 1;
enableUserSetUp();
break;
}
}
function view_records() {
$("#dialog").dialog("close");
$geditinternalcode = 0;
$geditParentGroupinternalcode = 0;
$g_group_edit_internalcode = 0;
$g_group_edit_parent_internalcode = 0;
//HideHeaderFooterValues('View');
if (1) {
switch (document.getElementById("module_name_for_save").value) {
case "savegeneralmasterDetails":
displayUserSchemaMaster_grid();
break;
case "saveUserSetUpDetails":
if (
document.getElementById("footer_view_row").className !=
"tarkabutton-disabled"
) {
if (
getCookie("user_type") == "Admin" ||
getCookie("user_type") == "Super Wiser"
) {
displayUserSetUpDetails();
document
.getElementById("footer_finish_row")
.setAttribute("class", "tarkabutton-disabled");
}
//if(getCookie('user_type')=='Admin')
//document.getElementById('edit_row').style.display='';
}
break;
}
}
}
function getModuleColumnResponse($responce) {
$responce = eval("(" + $responce + ")");
$g_ref_table_field_name = $responce.data.details;
var details_data = $responce.data.details["name"].split("-ele-");
$col1 = details_data[0];
$col2 = details_data[1];
$table_name = $responce.data.details.table_name;
$field_name = $responce.data.details.field_name;
$field_name_split = $field_name.split(",");
//making as grid_name1 so it can come in Dynamic from table
$field_name_split_value =
$field_name_split[0] +
" as grid_data1" +
" , " +
$field_name_split[1] +
" as grid_data2";
displayUserSchemaModuleDetails(
$col1,
$col2,
$table_name,
$field_name_split_value
);
$("#header_td_id").html($responce.data.links["header_link"]);
$("#footer_td_id").html($responce.data.links["footer_link"]);
}
function validateReportForm() {
return true;
}
function getReportDataDetailsResponse($responce) {}
function editRecords($id) {
$("#dialog").dialog("close");
$geditinternalcode = $id;
switch (document.getElementById("module_name_for_save").value) {
case "savegeneralmasterDetails":
getGeneralMasterDetails($id);
break;
case "saveUserSetUpDetails":
getUserSetUpDetails($id);
break;
}
}
function UploadRecords() {}
function EnablePageHeaderFooter() {
FillDefaultHeaderFooterNames();
module_name = document.getElementById("module_name_for_save").value;
if (
module_name == "savegeneralmasterDetails" ||
module_name == "saveuserschemaelementDetails" ||
module_name == "saveuserschemagroupDetails"
) {
$("#page_header").show();
$("#page_footer").show();
$("#header_upload_row").hide();
$("#footer_upload_row").hide();
} else {
$("#page_header").show();
$("#header_upload_row").show();
$("#footer_upload_row").show();
$("#page_footer").show();
}
}
function FillDefaultHeaderFooterNames() {
$("#header_finish_row").html("Save");
$("#footer_finish_row").html("Save");
$("#header_finish_row").show();
$("#footer_finish_row").show();
$("#footer_clear_row").html("Clear");
$("#header_clear_row").html("Clear");
$("#footer_clear_row").show();
$("#header_clear_row").show();
$("#footer_upload_row").html("Download");
$("#header_upload_row").html("Download");
$("#footer_upload_row").show();
$("#header_upload_row").show();
$("#header_view_row").html("View");
$("#footer_view_row").html("View");
$("#header_view_row").show();
$("#footer_view_row").show();
}
function HideHeaderFooterValues($type) {
switch ($type) {
case "View":
$("#header_finish_row").hide();
$("#footer_finish_row").hide();
$("#footer_upload_row").show();
$("#header_upload_row").show();
$("#header_clear_row").html("New |");
$("#footer_clear_row").html("New |");
$("#header_upload_row").html("Download |");
$("#footer_upload_row").html("Download |");
$("#header_generate").html("Generate ");
$("#footer_generate").html("Generate ");
$("#header_view_row").hide();
$("#footer_view_row").hide();
HideCustomLinks();
$("#footer_generate").show();
$("#header_generate").show();
$("#header_sendmail").show();
$("#footer_sendmail").show();
$("#header_clear_row").focus();
break;
case "Reports":
$("#header_view_row").hide();
$("#footer_view_row").hide();
$("#header_upload_row").hide();
$("#footer_upload_row").hide();
break;
case "Download":
$("#header_finish_row").hide();
$("#footer_finish_row").hide();
$("#header_upload_row").hide();
$("#footer_upload_row").hide();
$("#header_clear_row").html("New |");
$("#footer_clear_row").html("New |");
HideCustomLinks();
break;
}
}
function HideCustomLinks() {
if ($g_link_details_array != "") {
$custom_links = $g_link_details_array.link_id.split(",");
for ($c = 0; $c < $custom_links.length; $c++) {
if ($custom_links[$c] != "") {
$id = $custom_links[$c];
$("#header_" + $id).hide();
$("#footer_" + $id).hide();
}
}
}
}
function ChangeHeaderFooterNames($type) {}
function DisablePageHeaderFooter() {
$("#page_header").hide();
$("#page_footer").hide();
}
function getDefaultHeadFooterLinks(module) {
$.ajax({
type: "POST",
async: false,
url: $host_url + "getDefaultHeadFooterLinks.demo",
data: "module_name=" + encodeURIComponent(module),
success: getHeadFooterLinksResponce,
});
}
function getHeadFooterLinksResponce($responce) {
$responce = eval("(" + $responce + ")");
var g_link_details_array = "";
g_link_details_array = $responce.data["links_data"];
$("#header_td_id").html(g_link_details_array["header_link"]);
$("#footer_td_id").html(g_link_details_array["footer_link"]);
$("#page_header").show();
$("#page_footer").show();
}
|