{"version":3,"sources":["master.js","1Initializers.js"],"names":["initSystemReports","$el","PJQ","app","module","constants","modules","APP","ajax","Request","endpoint","helpers","urlHelpers","generateEndpoint","get","done","_","bind","reports","templating","TemplateRenderer","renderTemplate","Template","isOldModule","$reportSelect","$","counter","each","report","isCustom","append","id","value","text","name","label","session","renderSystemReports","this","jQuery","window","location","host","indexOf","objectHelpers","checkNested","abExportSort","portal","customization","addressBookExportSort","$abExportOpt","find","insertAfter","eq","abExportName","addressBookExportName","size","attr","validate","debug","onsubmit","showErrors","errorMap","errorList","rules","dfrom","required","datePT","dto","datepicker","numberOfMonths","showButtonPanel","buttonImage","buttonImageOnly","validator","addMethod","element","c","test","e","split","f","parseInt","g","h","i","Date","getFullYear","getMonth","getDate","optional","reportChanged","rexp","fileType","lastReport","filter","index","val","currentReport","ExtraParametersString","BuildExportNew","currentParamArray","isFromOk","isToOk","requiresDates","css","requiresExtraParams","BuildExportExtraParams","BuildExport","whichReport","ShowReportLoading","fixfooter","PanteraScript","PanteraScriptService","GenerateReportPDF","BuildExportc","onScriptError","GenerateReportExcel","reportParams","jsonString","JSON","stringify","GenerateReportKeyedParamsPDF","GenerateReportKeyedParamsExcel","response","rr","parseJSON","html","DownloadURL","rrefresh","BuildReportNew","BuildReportExtraParams","BuildReport","GenerateReportHTML","BuildReportc","loaderContainer","class","Loader","type","isPrepend","animation","in","GenerateReportKeyedParamsHTML","paramArray","HasDateFilter","p","length","data","reportId","ReportId","parameters","post","RenderReport","fail","isImage","style","src","reportData","height","GenerateExportNew","toLowerCase","lastReportId","remove","GetReportInfoGlobal","InitNewUI","views","dailyReports","DailyReportWeeklyExportModal","model","models","reporting","Report","options","unique","isRequired","defaultValue","from","dateHelpers","getNewDateAddDays","to","onDownload","callback","isApi2","files","downloadFile","url","isEndpoint","xhr","err","result","SubcontractorDiversityStatusExportModal","states","values","InitUI","DomInsertParamInput","paramName","inputHTML","optionsArray","after","opt","REPORTS","attachReadyEvent","thisDateFrom","thisDateTo","FromDateDefault","CalculateDate","replace","ToDateDefault","extraParamArr","ep","thisReportParam","thisParamName","thisInputDisplayName","thisInputType","thisDefaultVal","thisInputHTML","push","thisOptions","thisOptionsArr","GetCustomFieldChoicesForReports","GetCustomFieldChoicesc","cfOptions","ParamName","InputHTML","ChoiceList","DefaultValue","mathArr","daysInMonth","dnow","thisMonth","thisDay","thisYear","thisMonthMath","thisDayMath","thisYearMath","thisMonthIsStatic","thisDayIsStatic","thisYearIsStatic","GetDaysInMonth","hide","show","dateFrom","setDate","dateTo","toString","formatDate","removeAttr","m","y"],"mappings":"AAAA,SAAAA,kBAAAC,GACAC,IAAAC,IAAAC,SAAAF,IAAAG,UAAAC,QAAAC,IACA,IAAAL,IAAAM,KAAAC,QAAA,CACAC,SAAAR,IAAAS,QAAAC,WAAAC,iBAAA,CACA,CACAH,SAAA,eAGAI,MAAAC,KAAAC,EAAAC,KAAA,SAAAC,GACAhB,IAAAiB,WAAAC,iBAAAC,gBAAA,EAAA,IAAAnB,IAAAiB,WAAAG,SAAA,iBAAA,SAAA,CAAAC,aAAA,IAAAtB,EAAA,GAAA,WACA,IAAAuB,EAAAC,EAAA,YACAC,QAAA,EACAV,EAAAW,KAAAT,EAAA,SAAAU,GACAA,EAAAC,SACAL,EAAAM,OAAAL,EAAA,WAAA,CACAM,GAAAH,EAAAG,GACAC,MAAA,kBACAC,KAAAL,EAAAM,KACAC,MAAAP,EAAAM,QAIAV,EAAAM,OAAAL,EAAA,WAAA,CACAO,MAAAJ,EAAAG,GACAE,KAAAL,EAAAM,KACAC,MAAAP,EAAAM,QAIAR,UAEA,KAAAA,SAAA,MAAAxB,IAAAC,IAAAiC,QAAAtB,IAAA,aACAU,EAAAM,OAAAL,EAAA,WAAA,CACAO,MAAA,iCACAC,KAAA,4BACAE,MAAA,iCAKA,KAAAjC,IAAAC,IAAAiC,QAAAtB,IAAA,aACAU,EAAAM,OAAAL,EAAA,WAAA,CACAO,MAAA,0BACAC,KAAA,2BACAE,MAAA,8BAIAE,y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Request({\n\t\t\tendpoint: PJQ.helpers.urlHelpers.generateEndpoint([\n\t\t\t\t{\n\t\t\t\t\tendpoint: 'reports'\n\t\t\t\t}\n\t\t\t])\n\t\t}).get().done(_.bind(function (reports) {\n\t\t\tPJQ.templating.TemplateRenderer.renderTemplate(true, new PJQ.templating.Template(\"PanteraReports\", 'Master', {isOldModule: true}), $el, {}, function () {\n\t\t\t\tlet $reportSelect = $('#sReport')\n\t\t\t\tcounter = 1;\n\t\t\t\t_.each(reports, function (report) {\n\t\t\t\t\tif (report.isCustom) {\n\t\t\t\t\t\t$reportSelect.append($('\");\n\t}\n\n\tif (PJQ.helpers.objectHelpers.checkNested(PJQ.app, 'portal', 'customization', 'reports')) {\n\t\tlet abExportSort = PJQ.app.portal.customization.reports.addressBookExportSort,\n\t\t\t$abExportOpt = $reportSelect.find('option[value=\"ABExport\"]');\n\t\tif (abExportSort != null) {\n\t\t\t$abExportOpt.insertAfter($reportSelect.find('option').eq(abExportSort));\n\t\t}\n\n\t\tlet abExportName = PJQ.app.portal.customization.reports.addressBookExportName;\n\t\tif (_.size(abExportName) > 0) {\n\t\t\t$abExportOpt.attr('label', abExportName).text(abExportName);\n\t\t}\n\t}\n\n\t$reportSelect.find('option:nth-child(2)').attr('selected', true);\n\tjQuery(\"form\").validate({\n\t\tdebug: true, onsubmit: false, showErrors: function (errorMap, errorList) {\n\t\t}, rules: {dfrom: {required: true, datePT: true}, dto: {required: true, datePT: true}}\n\t});\n\tjQuery(\".datepick\").datepicker({\n\t\tnumberOfMonths: 3,\n\t\tshowButtonPanel: true,\n\t\tbuttonImage: \"/i/calendar.png\",\n\t\tbuttonImageOnly: true\n\t});\n\tjQuery.validator.addMethod(\"datePT\", function (value, element) {\n\t\tvar c = !1, d = /^\\d{1,2}\\/\\d{1,2}\\/\\d{4}$/;\n\t\tif (d.test(value)) {\n\t\t\tvar e = value.split(\"/\"), f = parseInt(e[0], 10), g = parseInt(e[1], 10), h = parseInt(e[2], 10),\n\t\t\t\ti = new Date(h, f - 1, g);\n\t\t\ti.getFullYear() == h && i.getMonth() == f - 1 && i.getDate() == g ? c = !0 : c = !1\n\t\t}\n\t\telse c = !1;\n\t\treturn this.optional(element) || c;\n\t}, \"Please enter a valid date.\");\n\n\treportChanged();\n}\n\nfunction rexp(fileType) {\n\tvar lastReport = '';\n\tjQuery('#sReport option').filter(':selected').each(function (index) {\n\t\tlastReport = jQuery(this).val();\n\t});\n\tif (lastReport == '')\n\t\treturn;\n\telse if (lastReport == 'NEWCUSTOMREPORT') {\n\t\tif (currentReport.ExtraParametersString != null) {\n\t\t\tBuildExportNew(currentReport, fileType, currentParamArray);\n\t\t}\n\t\telse {\n\t\t\tBuildExportNew(currentReport, fileType);\n\t\t}\n\t}\n\telse {\n\t\tvar isFromOk = jQuery(\"form\").validate().element('#dfrom');\n\t\tvar isToOk = jQuery(\"form\").validate().element('#dto');\n\n\t\tif (!isFromOk && requiresDates(lastReport))\n\t\t\tjQuery('#dfrom').css('background-color', 'red');\n\t\telse\n\t\t\tjQuery('#dfrom').css('background-color', '');\n\n\t\tif (!isToOk && requiresDates(lastReport))\n\t\t\tjQuery('#dto').css('background-color', 'red');\n\t\telse\n\t\t\tjQuery('#dto').css('background-color', '');\n\n\t\tif ((!isFromOk || !isToOk) && requiresDates(lastReport)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!requiresExtraParams(lastReport)) {\n\t\t\tBuildExport(lastReport, fileType);\n\t\t}\n\t\telse {\n\t\t\tBuildExportExtraParams(lastReport, fileType);\n\t\t}\n\t}\n}\n\nfunction BuildExport(whichReport, fileType) {\n\tShowReportLoading();\n\tfixfooter(null, null);\n\tif (fileType == 'PDF')\n\t\tPanteraScript.PanteraScriptService.GenerateReportPDF(whichReport, jQuery('#dfrom').val(), jQuery('#dto').val(), PJQ.app.session.id, BuildExportc, onScriptError);\n\telse if (fileType == 'XLS')\n\t\tPanteraScript.PanteraScriptService.GenerateReportExcel(whichReport, jQuery('#dfrom').val(), jQuery('#dto').val(), PJQ.app.session.id, BuildExportc, onScriptError);\n}\n\nfunction BuildExportExtraParams(whichReport, fileType) {\n\tShowReportLoading();\n\tfixfooter(null, null);\n\tvar reportParams = {};\n\tvar jsonString;\n\tswitch (whichReport) {\n\t\tcase 'LVPENDBID':\n\t\tcase 'LVAWARDBID':\n\t\tcase 'LVAJNOTES':\n\t\t\tif (whichReport == 'LVAJNOTES') {\n\t\t\t\treportParams[\"from\"] = \"01/05/2015\";\n\t\t\t\treportParams[\"to\"] = \"01/05/2015\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treportParams[\"from\"] = jQuery('#dfrom').val();\n\t\t\t\treportParams[\"to\"] = jQuery('#dto').val();\n\t\t\t}\n\t\t\treportParams['PM'] = jQuery('#spm').val();\n\t\t\tbreak;\n\t}\n\tvar jsonString = JSON.stringify(reportParams);\n\tif (fileType == 'PDF') {\n\t\tPanteraScript.PanteraScriptService.GenerateReportKeyedParamsPDF(PJQ.app.session.id, whichReport, jsonString, BuildExportc, onScriptError);\n\t}\n\telse if (fileType == 'XLS') {\n\t\tPanteraScript.PanteraScriptService.GenerateReportKeyedParamsExcel(PJQ.app.session.id, whichReport, jsonString, BuildExportc, onScriptError);\n\t}\n}\n\nfunction BuildExportc(response) {\n\tvar rr = jQuery.parseJSON(response);\n\tjQuery('#rcontent').html('

Click here to download your Report

');\n\tfixfooter(null, null);\n}\n\nfunction requiresDates(report) {\n\tif (report == 'STENBLGC' || report == 'STENBLGS' || report == 'STENAWARD' || report == 'STENBLEXC' || report == 'STENBLSBS' || report == 'STENBLGIRLS' || report == 'STENPLREQ' || report == 'STENPLQUO' || report == 'STENPLOPP' || report == 'GCStats' || report == 'GCStatsPM' || report == 'SubStats' || report == 'ABExport' || report == 'ABExportG' || report == 'TOOLCACT' || report == 'LVAJNOTES')\n\t\treturn false;\n\n\treturn true;\n}\n\nfunction requiresExtraParams(report) {\n\tif (report == 'LVPENDBID' | report == 'LVAWARDBID' | report == 'LVAJNOTES') {\n\t\treturn true;\n\t}\n\telse {\n\t\treturn false;\n\t}\n\n}\n\nfunction rrefresh() {\n\tvar lastReport = '';\n\tjQuery('#sReport option').filter(':selected').each(function (index) {\n\t\tlastReport = jQuery(this).val();\n\t});\n\tif (lastReport == '') {\n\t\treturn;\n\t}\n\telse if (lastReport == 'NEWCUSTOMREPORT') {\n\t\tif (currentReport.ExtraParametersString != null) {\n\t\t\tBuildReportNew(currentReport, currentParamArray);\n\t\t}\n\t\telse {\n\t\t\tBuildReportNew(currentReport);\n\t\t}\n\t}\n\telse {\n\t\tvar isFromOk = jQuery(\"form\").validate().element('#dfrom');\n\t\tvar isToOk = jQuery(\"form\").validate().element('#dto');\n\n\t\tif (!isFromOk && requiresDates(lastReport))\n\t\t\tjQuery('#dfrom').css('background-color', 'red');\n\t\telse\n\t\t\tjQuery('#dfrom').css('background-color', '');\n\n\t\tif (!isToOk && requiresDates(lastReport))\n\t\t\tjQuery('#dto').css('background-color', 'red');\n\t\telse\n\t\t\tjQuery('#dto').css('background-color', '');\n\n\t\tif (requiresDates(lastReport) && (!isFromOk || !isToOk)) {\n\t\t\treturn;\n\t\t}\n\t\telse if (requiresExtraParams(lastReport)) {\n\t\t\tBuildReportExtraParams(lastReport);\n\t\t}\n\t\telse if (requiresDates(lastReport) && isFromOk || isToOk && !requiresExtraParams(lastReport)) {\n\t\t\tvar lastReport = '';\n\t\t\tjQuery('#sReport option').filter(':selected').each(function (index) {\n\t\t\t\tlastReport = jQuery(this).val();\n\t\t\t});\n\t\t\tBuildReport(lastReport);\n\t\t}\n\t}\n}\n\nfunction BuildReport(whichReport) {\n\tShowReportLoading();\n\tfixfooter(null, null);\n\tPanteraScript.PanteraScriptService.GenerateReportHTML(whichReport, jQuery('#dfrom').val(), jQuery('#dto').val(), PJQ.app.session.id, BuildReportc, onScriptError);\n}\n\nfunction ShowReportLoading() {\n\tlet loaderContainer = $('
', {\n\t\tclass: 'of-hidden mt-2 mb-2'\n\t});\n\tjQuery('#rcontent').html(loaderContainer);\n\tnew PJQ.Loader(loaderContainer, {\n\t\ttype: 'noOverlay',\n\t\ttext: 'Processing Report',\n\t\tisPrepend: false,\n\t\tanimation: {\n\t\t\tin: 'fadeIn'\n\t\t}\n\t});\n}\n\nfunction BuildReportExtraParams(whichReport) {\n\tShowReportLoading();\n\tfixfooter(null, null);\n\t//ADD ITEMS TO ARRAY TO PASS TO SCRIPT SERVICE\n\tvar reportParams = {};\n\tswitch (whichReport) {\n\t\tcase 'LVPENDBID':\n\t\tcase 'LVAWARDBID':\n\t\tcase 'LVAJNOTES':\n\t\t\tif (whichReport == 'LVAJNOTES') {\n\t\t\t\treportParams[\"from\"] = \"01/05/2015\";\n\t\t\t\treportParams[\"to\"] = \"01/05/2015\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treportParams[\"to\"] = jQuery('#dto').val();\n\t\t\t\treportParams[\"from\"] = jQuery('#dfrom').val();\n\t\t\t}\n\t\t\treportParams[\"PM\"] = jQuery('#spm').val();\n\t\t\tbreak;\n\t}\n\tvar jsonString = JSON.stringify(reportParams);\n\tPanteraScript.PanteraScriptService.GenerateReportKeyedParamsHTML(PJQ.app.session.id, whichReport, jsonString, BuildReportc, onScriptError);\n}\n\nfunction BuildReportNew(report, paramArray) {\n\tShowReportLoading();\n\tfixfooter(null, null);\n\t//ADD ITEMS TO ARRAY TO PASS TO SCRIPT SERVICE\n\tvar reportParams = {};\n\tif (report.HasDateFilter) {\n\t\treportParams[\"FromDate\"] = jQuery('#dfrom').val();\n\t\treportParams[\"ToDate\"] = jQuery('#dto').val();\n\t}\n\tif (paramArray != null) {\n\t\tfor (var p = 0; p < paramArray.length; p++) {\n\t\t\treportParams[paramArray[p]] = jQuery('#param_' + paramArray[p]).val();\n\t\t}\n\t}\n\n\tnew PJQ.ajax.Request({\n\t\tendpoint: \"/report/GenerateReport\",\n\t\tdata: {\n\t\t\treportId: report.ReportId,\n\t\t\tparameters: JSON.stringify(reportParams)\n\t\t}\n\t}).post().done(function (data) {\n\t\tRenderReport(data);\n\t}).fail(function () {\n\t});\n}\n\nfunction RenderReport(data) {\n\tvar lastReport = '';\n\tjQuery('#sReport option').filter(':selected').each(function (index) {\n\t\tlastReport = jQuery(this).val();\n\t});\n\n\tif (data.isImage) {\n\t\t$('#rcontent').html($('', {\n\t\t\tstyle: 'width: 100%',\n\t\t\tsrc: 'data:image/png;base64,' + data.reportData\n\t\t}));\n\t}\n\telse {\n\t\t$(\"#rcontent\").html($(data.reportData));\n\t}\n\n\tjQuery('#rcontent div div table tbody tr td[width=\"100%\"]').attr('width', '0px');\n\tif (jQuery('#rcontent').height() < jQuery(window).height() && lastReport != 'GCStats' && lastReport != 'SubStats' && lastReport != 'GCStatsPM') {\n\t\tjQuery('body').css('height', '100%');\n\t\tjQuery('#divBody').css('padding-bottom', jQuery('#divFooter').height());\n\t\tjQuery('#divFooter').css('position', 'absolute');\n\t\tjQuery('#divFooter').css('bottom', '0');\n\t}\n\telse {\n\t\tjQuery('body').css('height', 'auto');\n\t\tjQuery('#divBody').css('padding-bottom', '24px');\n\t\tjQuery('#divFooter').css('position', 'relative');\n\t}\n}\n\nfunction BuildExportNew(report, fileType, paramArray) {\n\tShowReportLoading();\n\tfixfooter(null, null);\n\tvar reportParams = {};\n\tif (report.HasDateFilter) {\n\t\treportParams[\"FromDate\"] = jQuery('#dfrom').val();\n\t\treportParams[\"ToDate\"] = jQuery('#dto').val();\n\t}\n\tif (paramArray != null) {\n\t\tfor (var p = 0; p < paramArray.length; p++) {\n\t\t\treportParams[paramArray[p]] = jQuery('#param_' + paramArray[p]).val();\n\t\t}\n\t}\n\tvar jsonString = JSON.stringify(reportParams);\n\n\tPanteraScript.PanteraScriptService.GenerateExportNew(PJQ.app.session.id, 'global', fileType.toLowerCase(), report.ReportId, jsonString, BuildExportc, onScriptError);\n}\n\nfunction BuildReportc(response) {\n\tvar rr = jQuery.parseJSON(response);\n\tjQuery.get(rr.DownloadURL, function (data) {\n\t\tvar lastReport = '';\n\t\tjQuery('#sReport option').filter(':selected').each(function (index) {\n\t\t\tlastReport = jQuery(this).val();\n\t\t});\n\t\tjQuery('#rcontent').html(data);\n\t\tjQuery('#rcontent div div table tbody tr td[width=\"100%\"]').attr('width', '0px');\n\t\tif (jQuery('#rcontent').height() < jQuery(window).height() && lastReport != 'GCStats' && lastReport != 'SubStats' && lastReport != 'GCStatsPM') {\n\t\t\tjQuery('body').css('height', '100%');\n\t\t\tjQuery('#divBody').css('padding-bottom', jQuery('#divFooter').height());\n\t\t\tjQuery('#divFooter').css('position', 'absolute');\n\t\t\tjQuery('#divFooter').css('bottom', '0');\n\t\t}\n\t\telse {\n\t\t\tjQuery('body').css('height', 'auto');\n\t\t\tjQuery('#divBody').css('padding-bottom', '24px');\n\t\t\tjQuery('#divFooter').css('position', 'relative');\n\t\t}\n\t});\n}\n\nfunction onScriptError(response) {\n\t//alert('AJAX Error: ' + response.get_message() + ' - Stack Trace: ' + response.get_stackTrace());\n}\n\nfunction reportChanged() {\n\tvar lastReport = '';\n\tvar lastReportId = '';\n\tjQuery('#sReport option').filter(':selected').each(function (index) {\n\t\tlastReport = jQuery(this).val();\n\t\tlastReportId = jQuery(this).attr('id');\n\t});\n\tif (lastReport == 'NEWCUSTOMREPORT') {\n\t\tShowReportLoading();\n\t\tfixfooter(null, null);\n\t\tjQuery('#dfrom').val('');\n\t\tjQuery('#dto').val('');\n\t\tjQuery('#dto').attr('disabled', 'disabled');\n\t\tjQuery('#dfrom').attr('disabled', 'disabled');\n\t\tjQuery('.extraParams').remove();\n\t\tjQuery('#dfrom').css('background-color', '');\n\t\tjQuery('#dto').css('background-color', '');\n\t\tPanteraScript.PanteraScriptService.GetReportInfoGlobal(lastReportId, InitNewUI, onScriptError);\n\t}\n\telse if (lastReport === 'new_work_logs_time_card') {\n\t\tjQuery('#sReport').val('');\n\t\tnew PJQ.views.dailyReports.DailyReportWeeklyExportModal({\n\t\t\tmodel: new PJQ.models.reporting.Report({\n\t\t\t\tid: 'weekly',\n\t\t\t\tname: 'Weekly',\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: _.unique(),\n\t\t\t\t\t\ttype: 'DATE_RANGE',\n\t\t\t\t\t\tname: 'Dates',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\tdefaultValue: {\n\t\t\t\t\t\t\tfrom: PJQ.helpers.dateHelpers.getNewDateAddDays(new Date(), -6),\n\t\t\t\t\t\t\tto: new Date()\n\t\t\t\t\t\t},\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tfrom: PJQ.helpers.dateHelpers.getNewDateAddDays(new Date(), -7),\n\t\t\t\t\t\t\tto: new Date()\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}),\n\t\t\tonDownload: _.bind(function (options, callback) {\n\t\t\t\tnew PJQ.ajax.Request({\n\t\t\t\t\tendpoint: '/dailyreports/worklogs/timecard',\n\t\t\t\t\tdata: {\n\t\t\t\t\t\toptions: options,\n\t\t\t\t\t\tisApi2: true\n\t\t\t\t\t}\n\t\t\t\t}).post().done(_.bind(function (response) {\n\t\t\t\t\tPJQ.files.downloadFile(response.url, {\n\t\t\t\t\t\tisEndpoint: false\n\t\t\t\t\t});\n\t\t\t\t\tcallback();\n\t\t\t\t}, this)).fail(_.bind(function (xhr, err, result) {\n\t\t\t\t\tcallback();\n\t\t\t\t}, this));\n\t\t\t}, this)\n\t\t})\n\t}\n\telse if (lastReport === 'subcontractor_diversity_status') {\n\t\tjQuery('#sReport').val('');\n\t\tnew PJQ.views.reporting.SubcontractorDiversityStatusExportModal({\n\t\t\tmodel: new PJQ.models.reporting.Report({\n\t\t\t\tid: 'subcontractor_diversity_status',\n\t\t\t\tname: 'Subcontractor Diversity Status',\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: _.unique(),\n\t\t\t\t\t\ttype: 'STRING_ARRAY',\n\t\t\t\t\t\tname: 'States',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\tdefaultValue: {\n\t\t\t\t\t\t\tstates: []\n\t\t\t\t\t\t},\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tstates: []\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}),\n\t\t\tonDownload: _.bind(function (options, callback) {\n\t\t\t\tnew PJQ.ajax.Request({\n\t\t\t\t\tendpoint: '/reports/subcontractor_diversity_status',\n\t\t\t\t\tdata: {\n\t\t\t\t\t\toptions: options,\n\t\t\t\t\t\tisApi2: true\n\t\t\t\t\t}\n\t\t\t\t}).post().done(_.bind(function (response) {\n\t\t\t\t\tPJQ.files.downloadFile(response.url, {\n\t\t\t\t\t\tisEndpoint: false\n\t\t\t\t\t});\n\t\t\t\t\tcallback();\n\t\t\t\t}, this)).fail(_.bind(function (xhr, err, result) {\n\t\t\t\t\tcallback();\n\t\t\t\t}, this));\n\t\t\t}, this)\n\t\t});\n\t}\n\telse if (lastReport === 'subcontractor_diversity_status') {\n\t\tjQuery('#sReport').val('');\n\t\tnew PJQ.views.reporting.SubcontractorDiversityStatusExportModal({\n\t\t\tmodel: new PJQ.models.reporting.Report({\n\t\t\t\tid: 'subcontractor_diversity_status',\n\t\t\t\tname: 'Subcontractor Diversity Status',\n\t\t\t\toptions: [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: _.unique(),\n\t\t\t\t\t\ttype: 'STRING_ARRAY',\n\t\t\t\t\t\tname: 'States',\n\t\t\t\t\t\tisRequired: true,\n\t\t\t\t\t\tdefaultValue: {\n\t\t\t\t\t\t\tvalues: []\n\t\t\t\t\t\t},\n\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\tvalues: []\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}),\n\t\t\tonDownload: _.bind(function (options, callback) {\n\t\t\t\tnew PJQ.ajax.Request({\n\t\t\t\t\tendpoint: '/reports/subcontractor_diversity_status',\n\t\t\t\t\tdata: {\n\t\t\t\t\t\toptions: options,\n\t\t\t\t\t\tisApi2: true\n\t\t\t\t\t}\n\t\t\t\t}).post().done(_.bind(function (response) {\n\t\t\t\t\tPJQ.files.downloadFile(response.url, {\n\t\t\t\t\t\tisEndpoint: false\n\t\t\t\t\t});\n\t\t\t\t\tcallback();\n\t\t\t\t}, this)).fail(_.bind(function (xhr, err, result) {\n\t\t\t\t\tcallback();\n\t\t\t\t}, this));\n\t\t\t}, this)\n\t\t});\n\t}\n\telse {\n\t\tInitUI(lastReport);\n\t}\n}\n\nfunction DomInsertParamInput(paramName, inputHTML, optionsArray) {\n\tjQuery('#extraParams').after('');\n\tvar newInputTdId = '#' + paramName;\n\tjQuery(newInputTdId).append(inputHTML);\n\tif (optionsArray != null && inputHTML.toLowerCase().indexOf('select') != -1) {\n\t\tjQuery('#param_' + paramName).append('');\n\t\tfor (var opt = 0; opt < optionsArray.length; opt++) {\n\t\t\tjQuery('#param_' + paramName).append('');\n\t\t}\n\t}\n}\n\nvar currentReport;\nvar currentParamArray = [];\n\nfunction InitNewUI(response) {\n\tcurrentReport = jQuery.parseJSON(response);\n\tif (currentReport.HasDateFilter) {\n\t\tjQuery('#dfrom').attr('disabled', false);\n\t\tjQuery('#dto').attr('disabled', false);\n\n\t\tvar thisDateMathArr;\n\t\tvar thisDateFrom;\n\t\tvar thisDateTo;\n\t\tif (currentReport.FromDateDefault.indexOf('Math:') != -1) {\n\t\t\tthisDateMathArr = currentReport.FromDateDefault.replace('Math:', '').split('|');\n\t\t\tthisDateFrom = CalculateDate(thisDateMathArr);\n\t\t}\n\t\telse {\n\t\t\tthisDateFrom = currentReport.FromDateDefault\n\t\t}\n\t\tif (currentReport.ToDateDefault.indexOf('Math:') != -1) {\n\t\t\tthisDateMathArr = currentReport.ToDateDefault.replace('Math:', '').replace('(', '').split('|');\n\t\t\tthisDateTo = CalculateDate(thisDateMathArr);\n\t\t}\n\t\telse {\n\t\t\tthisDateTo = currentReport.ToDateDefault;\n\t\t}\n\n\t\tjQuery('#dfrom').val(thisDateFrom);\n\t\tjQuery('#dto').val(thisDateTo);\n\t}\n\telse {\n\t\tjQuery('#dfrom').attr('disabled', true);\n\t\tjQuery('#dto').attr('disabled', true);\n\t}\n\tif (currentReport.ExtraParametersString != null) {\n\n\t\tvar extraParamArr = currentReport.ExtraParametersString.split(\"|||\");\n\t\tfor (var ep = 0; ep < extraParamArr.length; ep++) {\n\t\t\tvar thisReportParam = extraParamArr[ep].split(\"||\");\n\t\t\tvar thisParamName = thisReportParam[0];\n\t\t\tvar thisInputDisplayName = thisReportParam[1];\n\t\t\tvar thisInputType = thisReportParam[2];\n\t\t\tvar thisDefaultVal = thisReportParam[4];\n\t\t\tvar thisInputHTML = \"\";\n\t\t\tif (thisInputType.toLowerCase() == 'text') {\n\t\t\t\tthisInputHTML = '';\n\t\t\t}\n\t\t\telse if (thisInputType.toLowerCase() == 'number') {\n\t\t\t\tthisInputHTML = '';\n\t\t\t}\n\t\t\telse if (thisInputType.toLowerCase() == 'select') {\n\t\t\t\tthisInputHTML = '';\n\t\t\t}\n\t\t\telse if (thisInputType.toLowerCase() == 'date') {\n\t\t\t\tthisInputHTML = '';\n\t\t\t}\n\t\t\tthisInputHTML = '' + thisInputDisplayName + ': ' + thisInputHTML;\n\t\t\tcurrentParamArray.push(thisParamName);\n\t\t\tif (thisInputType.toLowerCase() == 'select') {\n\t\t\t\tvar thisOptions = thisReportParam[3];\n\t\t\t\tvar thisOptionsArr = [];\n\t\t\t\tif (thisOptions.indexOf('ProjectCustomField:') != -1 || thisOptions.indexOf('CompanyCustomField:') != -1 || thisOptions.indexOf('ContactCustomField:') != -1 || thisOptions.indexOf('User:') != -1) {\n\t\t\t\t\tPanteraScript.PanteraScriptService.GetCustomFieldChoicesForReports(thisOptions, thisParamName, thisInputHTML, thisDefaultVal, GetCustomFieldChoicesc, onScriptError);\n\t\t\t\t}\n\t\t\t\telse if (thisOptions.indexOf('|') != -1) {\n\t\t\t\t\tthisOptionsArr = thisOptions.split('|');\n\t\t\t\t\tDomInsertParamInput(thisParamName, thisInputHTML, thisOptionsArr);\n\t\t\t\t\tif (thisDefaultVal != null && thisDefaultVal != 'NULL') {\n\t\t\t\t\t\tjQuery('#param_' + thisParamName).val(thisDefaultVal);\n\t\t\t\t\t}\n\t\t\t\t\tBuildReportNew(currentReport, currentParamArray);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthisOptionsArr.push(thisOptions);\n\t\t\t\t\tDomInsertParamInput(thisParamName, thisInputHTML, thisOptionsArr);\n\t\t\t\t\tif (thisDefaultVal != null && thisDefaultVal != 'NULL') {\n\t\t\t\t\t\tjQuery('#param_' + thisParamName).val(thisDefaultVal);\n\t\t\t\t\t}\n\t\t\t\t\tBuildReportNew(currentReport, currentParamArray);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tBuildReportNew(currentReport);\n\t}\n}\n\nfunction GetCustomFieldChoicesc(response) {\n\tvar cfOptions = jQuery.parseJSON(response);\n\tDomInsertParamInput(cfOptions.ParamName, cfOptions.InputHTML, cfOptions.ChoiceList);\n\tif (cfOptions.DefaultValue != null && cfOptions.DefaultValue != 'NULL') {\n\t\tjQuery('#param_' + cfOptions.ParamName).val(cfOptions.DefaultValue);\n\t}\n\tBuildReportNew(currentReport, currentParamArray);\n}\n\nfunction CalculateDate(mathArr) {\n\tvar dnow = new Date();\n\tvar thisMonth = dnow.getMonth() + 1;\n\tvar thisDay = dnow.getDate();\n\tvar thisYear = dnow.getFullYear();\n\tvar thisMonthMath = mathArr[0];\n\tvar thisDayMath = mathArr[1];\n\tvar thisYearMath = mathArr[2];\n\tvar thisMonthIsStatic = thisMonthMath.toLowerCase().indexOf('s:') != -1 ? true : false;\n\tvar thisDayIsStatic = thisDayMath.toLowerCase().indexOf('s:') != -1 ? true : false;\n\tvar thisYearIsStatic = thisYearMath.toLowerCase().indexOf('s:') != -1 ? true : false;\n\tvar thisMonth;\n\tvar thisDay;\n\tvar thisYear;\n\tif (thisMonthIsStatic) {\n\t\tthisMonth = thisMonthMath.replace('s:', '');\n\t}\n\telse {\n\t\tthisMonth = thisMonth + parseInt(thisMonthMath);\n\t}\n\tif (thisDayIsStatic) {\n\t\tthisDay = thisDayMath.replace('s:', '');\n\t}\n\telse {\n\t\tthisDay = thisDay + parseInt(thisDayMath);\n\t}\n\tif (thisYearIsStatic) {\n\t\tthisYear = thisYearMath.replace('s:', '');\n\t}\n\telse {\n\t\tthisYear = thisYear + parseInt(thisYearMath);\n\t}\n\tvar daysInMonth;\n\tif (thisDay < 1 && !thisDayIsStatic) {\n\t\tif (thisMonthIsStatic) {\n\t\t\tthisDay = 1;\n\t\t\tdaysInMonth = GetDaysInMonth(thisMonth, thisYear);\n\t\t}\n\t\telse {\n\t\t\tthisMonth = thisMonth - 1;\n\t\t\tdaysInMonth = GetDaysInMonth(thisMonth, thisYear);\n\t\t\tthisDay = daysInMonth + thisDay;\n\t\t}\n\t}\n\telse {\n\t\tdaysInMonth = GetDaysInMonth(thisMonth, thisYear);\n\t}\n\tif (thisDay > daysInMonth) {\n\t\tif (thisMonthIsStatic) {\n\t\t\tthisMonth = thisMonth + 1;\n\t\t\tdaysInMonth = GetDaysInMonth(thisMonth, thisYear)\n\t\t\tthisDay = thisDay - daysInMonth;\n\t\t}\n\t\telse {\n\t\t\tthisDay = daysInMonth;\n\t\t}\n\t}\n\tif (thisMonth < 1 && !thisMonthIsStatic) {\n\t\tthisMonth = thisMonth + 12;\n\t\tif (!thisYearIsStatic) {\n\t\t\tthisYear = thisYear - 1;\n\t\t}\n\t}\n\telse if (thisMonth > 12 && !thisMonthIsStatic) {\n\t\tthisMonth = thisMonth - 12;\n\t\tif (!thisYearIsStatic) {\n\t\t\tthisYear = thisYear + 1;\n\t\t}\n\t}\n\n\treturn thisMonth + '/' + thisDay + '/' + thisYear;\n}\n\nfunction InitUI(whichReport) {\n\tjQuery('#dfrom').val('');\n\tjQuery('#dto').val('');\n\tjQuery('#dto').attr('disabled', 'disabled');\n\tjQuery('#dfrom').attr('disabled', 'disabled');\n\tjQuery('.extraParams').remove();\n\tjQuery('#dfrom').css('background-color', '');\n\tjQuery('#dto').css('background-color', '');\n\tif (whichReport == '') {\n\t\tjQuery('#rcontent').html('

Please to select a Report to view from the Toolbar above.

');\n\t\tfixfooter(null, null);\n\t\treturn;\n\t}\n\n\telse if (whichReport == 'PANTERAMARKETING') {\n\t\tjQuery('#rcontent').html(\"\");\n\t\tjQuery('#refresh').hide();\n\t\tjQuery('#expacro').hide();\n\t\tjQuery('#expexc').hide();\n\t\treturn;\n\t}\n\tjQuery('#refresh').show();\n\tjQuery('#expacro').show();\n\tjQuery('#expexc').show();\n\tvar dnow = new Date();\n\tvar dateFrom = new Date();\n\tdateFrom.setDate(dnow.getDate() - 30);\n\tvar dateTo = new Date();\n\tdateTo.setDate(dnow.getDate() + 1);\n\tswitch (whichReport) {\n\t\tcase 'TOOLHITD':\n\t\tcase 'TOOLHITR':\n\t\tcase 'TOOLBARR':\n\t\tcase 'TOOLBARD':\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date('1/1/' + dnow.getFullYear().toString());\n\t\t\tdateTo = new Date('12/31/' + dnow.getFullYear().toString());\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase \"FUNKPEND\":\n\t\tcase \"FUNKUPCO\":\n\t\tcase \"FUNKWOLO\":\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date('1/1/' + dnow.getFullYear().toString());\n\t\t\tdateTo = new Date('12/31/' + dnow.getFullYear().toString());\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase 'LVBidRecList':\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date();\n\t\t\tdateFrom.setDate(dnow.getDate());\n\t\t\tdateTo = new Date();\n\t\t\tdateTo.setDate(dnow.getDate());\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase 'FTPAccessKeys':\n\t\tcase 'FTPOrders':\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date();\n\t\t\tdateFrom.setDate(dnow.getDate() - 1);\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase 'ABAdded':\n\t\tcase 'FTPAuditLog':\n\t\tcase 'DownloadActivity':\n\t\tcase 'LVPList':\n\t\tcase 'FLProjectList':\n\t\tcase 'PortalRegistration':\n\t\tcase 'InactivePart':\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\n\t\tcase 'LVBidList':\n\t\tcase 'LVBidCal':\n\t\tcase 'LVPLSentBy':\n\t\tcase 'LVPLFollowup':\n\t\tcase 'LVProjectStatus':\n\t\tcase 'LVCallerInitials':\n\t\tcase 'LVAWARDSUMEST':\n\t\tcase 'LVAWARDSUMSTORE':\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date();\n\t\t\tdateTo = new Date();\n\t\t\tdateTo.setDate(dnow.getDate() + 90);\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase 'LVOpenBidList':\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date(2014, 5, 1);\n\t\t\tdateTo = new Date();\n\t\t\tdateTo.setDate(dnow.getDate() - 1);\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase 'QUASPLBD':\n\t\tcase 'FULCPLBD':\n\t\t\tdnow = new Date();\n\t\t\tdateFrom = new Date();\n\t\t\tdateTo = new Date();\n\t\t\tdateTo.setDate(dnow.getDate() + 30);\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#rcontent').html('

Please select your date range and click Refresh in the Report Viewer Toolbar.

');\n\t\t\tbreak;\n\t\tcase 'GCStats':\n\t\tcase 'GCStatsPM':\n\t\tcase 'SubStats':\n\t\tcase 'ABExport':\n\t\tcase 'ABExportG':\n\t\tcase 'STENPLREQ':\n\t\tcase 'STENPLQUO':\n\t\tcase 'STENPLOPP':\n\t\tcase 'STENBLGIRLS':\n\t\tcase 'STENBLSBS':\n\t\tcase 'STENBLEXC':\n\t\tcase 'STENBLGC':\n\t\tcase 'STENBLGS':\n\t\tcase 'TOOLCACT':\n\t\tcase 'STENAWARD':\n\t\t\tjQuery('#dfrom').val('');\n\t\t\tjQuery('#dto').val('');\n\t\t\tjQuery('#dfrom').attr('disabled', 'disabled');\n\t\t\tjQuery('#dto').attr('disabled', 'disabled');\n\t\t\tShowReportLoading();\n\t\t\tbreak;\n\t\tcase 'STENBPEST':\n\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\tjQuery('#dfrom').val('');\n\t\t\tjQuery('#dto').val('');\n\t\t\tbreak;\n\n\t\tcase 'LVPENDBID':\n\t\tcase 'LVAWARDBID':\n\t\tcase 'LVAJNOTES':\n\t\t\tdnow = new Date();\n\t\t\tdateTo = new Date();\n\t\t\tif (whichReport == 'LVPENDBID') {\n\t\t\t\tdateFrom = new Date(2014, 5, 1);\n\t\t\t\tdateTo.setDate(dnow.getDate() - 1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdateFrom = new Date();\n\t\t\t\tdateTo.setDate(dnow.getDate() + 90);\n\t\t\t}\n\t\t\tjQuery('#dfrom').val(jQuery.datepicker.formatDate('mm/dd/yy', dateFrom));\n\t\t\tjQuery('#dto').val(jQuery.datepicker.formatDate('mm/dd/yy', dateTo));\n\t\t\tif (whichReport == 'LVAJNOTES') {\n\t\t\t\tjQuery('#dfrom').attr('disabled', 'true');\n\t\t\t\tjQuery('#dto').attr('disabled', 'true');\n\t\t\t\tjQuery('#dfrom').val('');\n\t\t\t\tjQuery('#dto').val('');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjQuery('#dfrom').removeAttr('disabled');\n\t\t\t\tjQuery('#dto').removeAttr('disabled');\n\t\t\t}\n\t\t\tvar pmInput = 'PM: ';\n\t\t\tDomInsertParamInput('PM', pmInput);\n\t\t\tShowReportLoading();\n\t\t\tbreak;\n\t}\n\tif (jQuery('#sReport').val() == 'LVAJNOTES') {\n\t\tjQuery('#spm').val('MS');\n\t}\n\telse {\n\t\tjQuery('#spm').val('jQuery(\"#spm option:first-child\").val()');\n\t}\n\tfixfooter(null, null);\n\n\tif (!requiresExtraParams(whichReport)) {\n\t\tBuildReport(whichReport);\n\t}\n\telse {\n\t\tBuildReportExtraParams(whichReport);\n\t}\n}\n\nfunction GetDaysInMonth(m, y) {\n\treturn /8|3|5|10/.test(--m) ? 30 : m == 1 ? (!(y % 4) && y % 100) || !(y % 400) ? 29 : 28 : 31;\n}\n\nfunction fixfooter() {\n}","if (PJQ.app.module === PJQ.constants.modules.REPORTS) {\n\tPJQ.app.attachReadyEvent(function () {\n\t\tinitSystemReports();\n\t});\n}"]}