This commit is contained in:
2023-05-30 17:34:56 +08:00
parent e728c66786
commit 9da1c4cf30
194 changed files with 10680 additions and 9060 deletions

View File

@@ -12,7 +12,7 @@ $(function () {
dialogAUAssets.allowhidden = false;
dialogAUAssets.allowotherfilter = false;
dialogAUAssets.onDialogClosed = function () {
showbg(false);//showmaskbg被FIC里面的覆盖使用FIC中的showbg
showmaskbg1(false);//showmaskbg被FIC里面的覆盖使用FIC中的showmaskbg1
};
dialogAUAssets.onOK = function (source) {
var items = [];
@@ -32,19 +32,19 @@ $(function () {
}
}
grid_dtassets.setData(grid_dtassets.innerSource.concat(items));
showbg(false);
showmaskbg1(false);
};
$('#dialog_assetgroup').prop('iframe', true).dialog(function () {
showbg(false);
showmaskbg1(false);
});
$('#dialog_jobsite').prop('iframe', true).dialog(function () {
showbg(false);
showmaskbg1(false);
});
$('#dialog_assettype').prop('iframe', true).dialog(function () {
showbg(false);
showmaskbg1(false);
});
$("#txt_assetgroup_key").keypress(onAssetGroupKeyPress);
@@ -91,7 +91,7 @@ function InitGridSelectedMachines() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -160,12 +160,11 @@ function OnAssetAdd() {
}
function OnAssetAdd1() {
showbg(true);
showmaskbg1(true);
dialogAUAssets.exceptSource = grid_dtassets.innerSource.map(function (s) {
return s.Values.ID;
});
dialogAUAssets.showSelector();
$('#mask_bg').css('height', '100%');
}
function OnMachineDelete() {
@@ -225,7 +224,7 @@ function InitGridSelectedMachineGroups() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -289,7 +288,7 @@ function InitGridAvailableMachineGroups() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -408,7 +407,7 @@ function OnAssetGroupAdd() {
function OnAssetGroupAdd1() {
$('#txt_assetgroup_key').val('');
$('#dialog_assetgroup .dialog-title span.title').text(GetTextByKey("P_UM_SELECTASSETGROUPS", 'Select Asset Groups'));
$('#mask_bg').show();
showmaskbg1(true);
$('#dialog_assetgroup')
.attr('act', 'edit')
.css({
@@ -431,7 +430,7 @@ function OnSetSelectAssetGroups() {
}
showSelectedMachineGroup(_selectedAssetGroups);
$('#dialog_assetgroup').hideDialog();
$('#mask_bg').hide();
showmaskbg1(false);
}
function OnAssetGroupDelete() {
@@ -474,7 +473,7 @@ function InitGridSelectedJobsites() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -539,7 +538,7 @@ function InitGridAvailableJobsites() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -665,7 +664,7 @@ function OnJobsiteAdd() {
function OnJobsiteAdd1() {
$('#txt_jobsite_key').val('');
$('#dialog_jobsite .dialog-title span.title').text(GetTextByKey("P_UM_SELECTJOBSITES", 'Select Jobsites'));
$('#mask_bg').show();
showmaskbg1(true);
$('#dialog_jobsite')
.attr('act', 'edit')
.css({
@@ -687,7 +686,7 @@ function OnSetSelectJobSites() {
}
showSelectedJobsite(_selectedJobsites);
$('#dialog_jobsite').hideDialog();
$('#mask_bg').hide();
showmaskbg1(false);
}
function OnJobsiteDelete() {
@@ -732,7 +731,7 @@ function InitGridSelectedAssetTypes() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -797,7 +796,7 @@ function InitGridAvailableAssetTypes() {
// checkbox
name: 'check',
key: 'selected',
width: 30,
width: 45,
align: 'center',
sortable: false,
allcheck: true,
@@ -923,7 +922,7 @@ function OnAssetTypeAdd() {
function OnAssetTypeAdd1() {
$('#txt_assettype_key').val('');
$('#dialog_assettype .dialog-title span.title').text(GetTextByKey("P_UM_SELECTASSETTYPES", 'Select Asset Types'));
$('#mask_bg').show();
showmaskbg1(true);
$('#dialog_assettype')
.attr('act', 'edit')
.css({
@@ -945,7 +944,7 @@ function OnSetSelectAssetTypes() {
}
showSelectedAssetType(_selectedAssetTypes);
$('#dialog_assettype').hideDialog();
$('#mask_bg').hide();
showmaskbg1(false);
}
function OnAssetTypeDelete() {