' +
+
+ '
\n' +
+ '\n' +
+ '\n' +
+ '
' +
+ '
' +
+ '
' +
+ '
');
+ $('body').append(alertBox);
+
+ var dataUrl = FR.servletURL + "?op=widget&widgetname=" + this.options.widgetName;
+ var levelCount = this.options.widgetConfig_levelCount;
+ popupButtonElement.click(function () {
+ var dataDivElement = alertBox.find("div#" + dataDivId);
+ dataDivElement.empty();
+ if (levelCount <= 0) {
+ alert("没有层级");
+ return;
+ }
+ dataDivElement.append(_tempGetTableElementContent);
+ alertBox.css("display", "block");
+ $("body").css("overflow", "auto");
+ });
+
+ var queryClass = this.options.widgetName + '-content-element-data-button-query';
+ var dataElementId = this.options.widgetName + '-content-element-data-values-index';
+
+ var valueElementId = this.options.widgetName + '-value-index';
+ var valueCheckboxElementId = this.options.widgetName + '-value-checkbox-index';
+ var queryInputElementId = this.options.widgetName + '-content-element-data-input-query-text-index';
+ var selectAllElementId = this.options.widgetName + '-content-element-data-checkbox-select-all-index';
+ $("body").on("click", '.' + queryClass, function () {
+ debugger;
+ var temp = this;
+ var tempLevelIndex = $(this).attr("level-index");
+ console.log(tempLevelIndex);
+ var tempDataElementId = '#' + dataElementId + tempLevelIndex;
+ var tempDataElement = $(tempDataElementId);
+ tempDataElement.empty();
+ var frSessionID = FR.SessionMgr.getSessionID();
+ var tempUpperValues = getUpperValues(tempLevelIndex);
+ var tempValueInputElementId = '#' + queryInputElementId + tempLevelIndex;
+ var tempCurrentValue = $(tempValueInputElementId).val();
+ $.ajax({
+ url: dataUrl,
+ //contentType: "application/json",
+ type: "post",
+ dataType: 'json',
+ data: {
+ dataType: "VALUE",
+ currentValue: tempCurrentValue,
+ upperValue: tempUpperValues,
+ levelIndex: tempLevelIndex
+ },
+ headers: {'sessionID': frSessionID},
+ //async: false,
+ success: function (dataJson) {
+ console.log(dataJson);
+ if ((dataJson == null) || (dataJson == undefined) || (dataJson.length <= 0)) {
+ return;
+ }
+ var valueJson, valueContent = '';
+ for (var i = 0, max = dataJson.length - 1; i <= max; i++) {
+ valueJson = dataJson[i];
+ valueContent = valueContent + '