[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15512]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15512] |
Date: |
Fri, 26 Aug 2016 01:27:55 +0000 (UTC) |
Revision: 15512
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15512
Author: nelson224
Date: 2016-08-26 01:27:55 +0000 (Fri, 26 Aug 2016)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/js/portico/import_components.js
Modified: branches/dev-syncromind-2/property/js/portico/import_components.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/import_components.js
2016-08-26 00:37:35 UTC (rev 15511)
+++ branches/dev-syncromind-2/property/js/portico/import_components.js
2016-08-26 01:27:55 UTC (rev 15512)
@@ -133,10 +133,46 @@
type: 'post',
success: function (result)
{
- JqueryPortico.show_message(1, result);
+ var combo = $('<select>');
+
combo.append($('<option></option>').val('').html('Select Sheet'));
+
+ $.each(result.data, function (k, v)
+ {
+
combo.append($('<option></option>').val(v.id).html(v.name));
+ });
+ $('#sheet_id').empty();
+ $('#sheet_id').append(combo.html());
+ //JqueryPortico.show_message(1, result);
}
});
});
+
+ $('#sheet_id').on('change', function ()
+ {
+ var oArgs = {menuaction:
'property.uiimport_components.import_component_files'};
+ var requestUrl = phpGWLink('index.php', oArgs, true);
+
+ var form = document.forms.namedItem("form_files");
+ var file_data = $('#file_excel').prop('files')[0];
+ var form_data = new FormData(form);
+ form_data.append('file', file_data);
+ form_data.append('sheet_id', $('#sheet_id').val());
+ form_data.append('location_code', $('#location_code').val());
+ form_data.append('location_item_id',
$('#location_item_id').val());
+
+ $.ajax({
+ url: requestUrl,
+ cache: false,
+ contentType: false,
+ processData: false,
+ data: form_data,
+ type: 'post',
+ success: function (result)
+ {
+ $('#content').html(result);
+ }
+ });
+ });
});
function getLocations()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15512],
nelson . guerra <=