123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- function CQueryOptions()
- {
- this.m_bRequiresDialog = true;
- this.m_bFeatureRequiresQualityOfService = true;
- };
- CQueryOptions.prototype = new AFeatureObject();
- CQueryOptions.prototype.setup = function (aFeatureParams)
- {
- this.m_iErrorState = FEATURE_OBJECT_NO_ERROR;
- this.m_aParams = new Array();
- this.m_aParams["m"] = "/" + qs_dir + "/advancedQueryOptions.xts";
-
- if (typeof goApplicationManager === "object" && goApplicationManager !== null)
- {
- this.m_oUserPreferenceManager = goApplicationManager.getUserPreferenceManager();
- }
- else
- {
- this.m_oUserPreferenceManager = new CUserPreferenceManager();
- }
-
- var oAutoFooterSummaryUserPreference = this.m_oUserPreferenceManager.getPreference("autoFooterSummary");
- var oAutoSummaryUserPreference = this.m_oUserPreferenceManager.getPreference("autoSummary");
- var oEnableDrillUserPreference = this.m_oUserPreferenceManager.getPreference("enableDrill");
- var oEnableModelDrillUserPreference = this.m_oUserPreferenceManager.getPreference("enableModelDrill");
-
-
-
-
-
- var autoFooterSummaryValue = cfgGet("autoFooterSummary");
- if (autoFooterSummaryValue != null)
- {
- this.m_aParams["autoFooterSummary"] = autoFooterSummaryValue;
- }
- else if (typeof oAutoFooterSummaryUserPreference === "object" && oAutoFooterSummaryUserPreference.getValue() === "false")
- {
- this.m_aParams["autoFooterSummary"] = false;
- }
-
- var autoSummaryValue = cfgGet("autoSummary");
- if (autoSummaryValue != null)
- {
- this.m_aParams["autoSummary"] = autoSummaryValue;
- }
- else if (typeof oAutoSummaryUserPreference === "object" && oAutoSummaryUserPreference.getValue() === "false")
- {
- this.m_aParams["autoSummary"] = false;
- }
-
- var enableDrillValue = cfgGet("enableDrill");
- if (enableDrillValue != null)
- {
- this.m_aParams["enableDrill"] = enableDrillValue;
- }
- else if (typeof oEnableDrillUserPreference === "object" && oEnableDrillUserPreference.getValue() === "true")
- {
- this.m_aParams["enableDrill"] = true;
- }
-
- var enableModelDrillValue = cfgGet("enableModelDrill");
- if (enableModelDrillValue != null)
- {
- this.m_aParams["enableModelDrill"] = enableModelDrillValue;
- }
- else if (typeof oEnableModelDrillUserPreference === "object" && oEnableModelDrillUserPreference.getValue() === "true")
- {
- this.m_aParams["enableModelDrill"] = true;
- }
-
- };
- CQueryOptions.prototype.execute = function (aParameters)
- {
- var oDlgFrameDocForm = goApplicationManager.getDialogFrame().document.f;
- var oAutoSummDetailVal = null;
- if (! isDetailFilterEnabled())
- {
- oAutoSummDetailVal = true;
- }
- else
- {
- oAutoSummDetailVal = oDlgFrameDocForm.autoSummaryCb.checked;
- }
- cfgSet("overwriteSetting", "true");
-
-
-
-
- cfgSet("persistOptions", "false");
- oDlgFrameDocForm.autoFooterSummaryCb.checked == true ? cfgSet("autoFooterSummary", "true") : cfgSet("autoFooterSummary", "false");
- oAutoSummDetailVal == true ? cfgSet("autoSummary", "true") : cfgSet("autoSummary", "false");
- oDlgFrameDocForm.enableDrill.checked == true ? cfgSet("enableDrill", "true") : cfgSet("enableDrill", "false");
- oDlgFrameDocForm.enableModelDrill.checked == true ? cfgSet("enableModelDrill", "true") : cfgSet("enableModelDrill", "false");
-
- var sCommand = createCommand("P", "A", new Array(oAutoSummDetailVal, oDlgFrameDocForm.autoFooterSummaryCb.checked, oDlgFrameDocForm.enableDrill.checked, oDlgFrameDocForm.enableModelDrill.checked));
- addColumnsForReselection();
- sendCmd(sCommand, "", true);
- };
|