273 lines
15 KiB
Plaintext
273 lines
15 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="../FIBasePage.master" AutoEventWireup="true" CodeFile="ImportPackage.aspx.cs" Inherits="Management_ImportPackage" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="holder_head" Runat="Server">
|
|
<link href="<%=Common.GenerateUrl("fic/css/Grid.css") %>" rel="stylesheet" />
|
|
<link href="<%=Common.GenerateUrl("fic/css/form.css") %>" rel="stylesheet" />
|
|
<link href="<%=Common.GenerateUrl("fic/css/tabcontrol.css") %>" rel="stylesheet" />
|
|
<link href="<%=Common.GenerateUrl("fic/css/theme.css") %>" rel="stylesheet" />
|
|
<style type="text/css">
|
|
.loading {
|
|
width: 40px;
|
|
margin: 80px auto;
|
|
font-size: 2em;
|
|
text-align: center;
|
|
color: #fff;
|
|
}
|
|
.topTools { text-align: center; }
|
|
.topTools label {
|
|
float: none;
|
|
line-height: 30px;
|
|
}
|
|
.topTools.stepFuncs {
|
|
margin-top: 6px;
|
|
height: 52px;
|
|
line-height: 52px;
|
|
text-align: right;
|
|
padding-right: 14px;
|
|
}
|
|
.topTools.stepFuncs input { float: none; }
|
|
.topTools.stepFuncs input:first-child { margin: 2px 3px; }
|
|
/*.topTools.stepFuncs input:last-child { margin-right: 20px; }*/
|
|
.package_step {
|
|
height: 100%;
|
|
}
|
|
|
|
.single-line {
|
|
width: 100%;
|
|
line-height: 30px;
|
|
}
|
|
.single-line .left {
|
|
padding: 0 10px;
|
|
word-break: keep-all;
|
|
white-space: nowrap;
|
|
display: table-cell;
|
|
}
|
|
.single-line .right {
|
|
padding: 0 10px;
|
|
display: table-cell;
|
|
}
|
|
.single-line .center {
|
|
display: table-cell;
|
|
width: 100%;
|
|
margin-right: 100px;
|
|
}
|
|
.single-line .center input { width: 100%; }
|
|
|
|
#error_panel { color: red; }
|
|
#pkg_info { margin: 6px 20px; overflow-y: auto; }
|
|
#pkg_info div {
|
|
line-height: 26px;
|
|
}
|
|
|
|
/* package preview */
|
|
.sub-header {
|
|
font-weight: bold;
|
|
line-height: 30px;
|
|
padding-left: 4px;
|
|
margin-top: 10px;
|
|
}
|
|
.preview-content {
|
|
margin-left: 20px;
|
|
}
|
|
.line-height-26 > div {
|
|
line-height: 26px;
|
|
}
|
|
#image_pkg_logo {
|
|
max-width: 520px;
|
|
max-height: 100px;
|
|
float: right;
|
|
margin-right: 10px;
|
|
}
|
|
</style>
|
|
<script src="<%=Common.GenerateUrl("fic/js/controls/gridctrl.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/controls/editGridCtrl.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/controls/controls.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/controls/form.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/func.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/importPackages.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/itemsToImport.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/dcSelector.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/pluginSelector.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/globalFilterSelector.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/groupSelector.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/dtGroupSelector.js") %>"></script>
|
|
<script src="<%=Common.GenerateUrl("fic/js/Management/packages/preview.js") %>"></script>
|
|
<script type="text/javascript">
|
|
|
|
function childPageInitLanguage() {
|
|
$('#module_main').parent().applyLanguageText();
|
|
}
|
|
|
|
function childPageLoad() {
|
|
}
|
|
|
|
function resizeGrids() {
|
|
$('div[data-isgrid="yes"]').each(function () {
|
|
var _this = $(this);
|
|
if (!_this.is(':visible')) {
|
|
return;
|
|
}
|
|
var grid = _this.data('grid');
|
|
grid && grid.onresize();
|
|
});
|
|
}
|
|
|
|
$(function () {
|
|
// UI adjust
|
|
var width = $('#line_file').children('div.left:first').width();
|
|
$('#line_password').children('div.left:first').css('width', width);
|
|
|
|
// permission limit
|
|
$(window).resize(function () {
|
|
var height = $(window).height() - 96;
|
|
$('#steps_container').css('height', height);
|
|
$('#pkg_info').css('height', height - 82);
|
|
|
|
// visible grids
|
|
resizeGrids();
|
|
}).resize();
|
|
|
|
// steps
|
|
steps = $('#steps_container').children('.package_step');
|
|
|
|
// bind events
|
|
bindEvents();
|
|
});
|
|
|
|
</script>
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="holder_content" Runat="Server">
|
|
<div id="module_main" style="min-width: 400px;">
|
|
<div class="topTools">
|
|
<span class="helpiconspan">
|
|
<span class="helpicon" PageName="ImportPackages"></span>
|
|
</span>
|
|
<label id="step_name" data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A018">Import Package</label>
|
|
</div>
|
|
<div class="clear"></div>
|
|
<div id="steps_container" class="margin-top-s">
|
|
<div id="step_import_package" data-step="0" class="package_step">
|
|
<div style="padding: 8px 0; background-color: rgb(255, 228, 196);">
|
|
<div id="line_file" class="single-line">
|
|
<div class="left"><label data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A032">Import Package File</label></div>
|
|
<div class="center"><input id="text_packagefile" type="text" disabled="disabled" /></div>
|
|
<div class="right"><input id="btn_browsefile" type="button" data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A033" value="Browse..." /></div>
|
|
</div>
|
|
<div id="line_password" class="single-line" style="display: none;">
|
|
<div class="left"><label data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A034">Package Password</label></div>
|
|
<div class="center"><input id="text_packagepass" type="password" /></div>
|
|
<div class="right"></div>
|
|
</div>
|
|
</div>
|
|
<div id="error_panel" class="margin-s" style="display: none;"></div>
|
|
<div id="pkg_info" style="display: none;">
|
|
<div style="font-weight: bold;">
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A032">Import Package File</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_filename"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A012">Publisher</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_publisher"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A013">Name</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_name"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A014">Version</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_version"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_CREATE_A054">Max Version</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_max_version"></label>
|
|
<label id="pkg_info_max_version_msg"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A015">Protect</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_protect"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A016">Description</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_info_description"></label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="step_import_item_selector" data-step="1" data-isgrid="yes" class="package_step" style="display: none;"></div>
|
|
<div id="step_data_connection_selector" data-step="2" data-isgrid="yes" class="package_step" style="display: none;"></div>
|
|
<div id="step_data_source_selector" data-step="3" data-isgrid="yes" class="package_step" style="display: none;"></div>
|
|
<div id="step_global_filter_selector" data-step="4" data-isgrid="yes" class="package_step" style="display: none;"></div>
|
|
<div id="step_group_selector" data-step="5" data-isgrid="yes" class="package_step" style="display: none;"></div>
|
|
<div id="step_dt_group_selector" data-step="6" data-isgrid="yes" class="package_step" style="display: none;"></div>
|
|
<div id="step_preview" data-step="7" class="package_step" style="display: none; overflow: auto;">
|
|
<div class="sub-header" data-lgid="LHBIS.FIC.Client.Package.Import.A036">Import Package Information</div>
|
|
<img id="image_pkg_logo" />
|
|
<div class="preview-content line-height-26">
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A012">Publisher</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_preview_publisher"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A013">Name</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_preview_name"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A014">Version</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_preview_version"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A015">Protect</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_preview_protect"></label>
|
|
</div>
|
|
<div>
|
|
<span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A016">Description</span><span data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A009">:</span>
|
|
<label id="pkg_preview_description"></label>
|
|
</div>
|
|
</div>
|
|
<div class="sub-header" data-lgid="LHBIS.FIC.Client.Package.Import.A037">Selected Items</div>
|
|
<div class="preview-content">
|
|
<div id="grid_selected_items" data-isgrid="yes" style="height: 180px; margin-right: 6px;">
|
|
<dl class="grid-columns">
|
|
<dt data-name="ObjectTypeName" data-text="LHBIS.FIC.Client.Package.Import.A026" data-sort="no" style="width: 150px;">Type</dt>
|
|
<dt data-name="Name" data-text="LHBIS.FIC.Client.Package.Import.A027" style="width: 300px;">Name</dt>
|
|
<dt data-name="IsVirtualDisplay" data-text="LHBIS.FIC.Client.Package.Import.A029" data-sort="no" style="width: 80px;">Virtual</dt>
|
|
<dt data-name="IsUserCanPublishDisplay" data-text="LHBIS.FIC.Client.Package.Import.A030" data-sort="no" style="width: 150px;">User Can Publish</dt>
|
|
<dt data-name="IsProtectDisplay" data-text="LHBIS.FIC.Client.Package.Import.A031" data-sort="no" style="width: 80px;">Protect</dt>
|
|
<dt data-name="IsCoverRefreshTimeDisplay" data-text="LHBIS.FIC.Client.Package.Import.A100" data-sort="no" style="width: 155px;">Overwrite Refresh Time</dt>
|
|
<dt data-name="IsCoverTargetDataDisplay" data-text="LHBIS.FIC.Client.Package.Import.A102" data-sort="no" style="width: 155px;">Overwrite Target Data</dt>
|
|
<dt data-name="IsCoverMaxRecCountDataDisplay" data-text="LHBIS.FIC.Client.Package.Import.A103" data-sort="no" style="width: 155px;">Overwrite Top Records</dt>
|
|
<dt data-name="IsCoverTableFilterDisplay" data-text="LHBIS.FIC.Client.Package.Import.A101" data-sort="no" style="width: 155px;">Overwrite Table Filter</dt>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<div class="sub-header" data-lgid="LHBIS.FIC.Client.Package.Import.A020">Setup Functional Groups</div>
|
|
<div class="preview-content">
|
|
<div id="grid_setup_group" data-isgrid="yes" style="height: 180px; margin-right: 6px;">
|
|
<dl class="grid-columns">
|
|
<dt data-name="Name" data-text="LHBIS.FIC.Client.Package.Import.A022" style="width: 200px;">Importing Functional Group</dt>
|
|
<dt data-name="Description" data-text="LHBIS.FIC.Client.Package.Import.A023" style="width: 300px;">Description</dt>
|
|
<dt data-name="SystemGroupDisplayName" data-text="LHBIS.FIC.Client.Package.Import.A024" data-sort="no" style="width: 200px;">System Functional Group</dt>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<div class="sub-header" data-lgid="LHBIS.FIC.Client.Package.Import.A050">Setup data table Groups</div>
|
|
<div class="preview-content">
|
|
<div id="grid_setup_dtgroup" data-isgrid="yes" style="height: 180px; margin-right: 6px;">
|
|
<dl class="grid-columns">
|
|
<dt data-name="Name" data-text="LHBIS.FIC.Client.Package.Import.A052" style="width: 200px;">Importing data table Group</dt>
|
|
<dt data-name="Description" data-text="LHBIS.FIC.Client.Package.Import.A023" style="width: 300px;">Description</dt>
|
|
<dt data-name="SystemGroupDisplayName" data-text="LHBIS.FIC.Client.Package.Import.A054" data-sort="no" style="width: 200px;">System data table Group</dt>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="topTools stepFuncs">
|
|
<input id="button_prev" type="button" data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A039" value="Previous" style="display: none;" />
|
|
<input id="button_next" type="button" data-lgid="LHBIS_MULTILANGUAGE_COMMON_A005" value="Next" disabled="disabled" />
|
|
<input id="button_import" type="button" data-lgid="LHBIS_FIC_CLIENT_PACKAGE_IMPORT_A041" value="Import" style="display: none;" />
|
|
</div>
|
|
<div id="mask_bg" class="maskbg" style="display: none; z-index: 550;"><%--<div class="loading c-spin"></div>--%></div>
|
|
</div>
|
|
</asp:Content>
|
|
|