1 var template_transunionupload = function (static)
5 csvFile: new App.TemplateElement.FieldComponent('csvFile')
8 this.init = function (ti) {
10 App.DataStore.loadSelectListData('groups', true, 'Company', 'Group.SelectList');
12 'TransUnionUpload', 'Stock', 'Import.Upload',
13 null, {}, function () {}, _w.taskContractError
19 title: 'TransUnion CSV file'
23 this.construct = function () {
24 $('#frmTransUnionUpload').validate({
26 csvFile: {required: true}
30 required: "CSV file required."
33 submitHandler: function (form) {
34 var data = {Upload: _t['transunionupload'].harvest()};
35 if ('' == data.Upload.csvFile)
37 alert('Please select a file to import.');
41 'TransUnionUpload', data, {},
44 alert('Import Complete! Please note that this page will refresh when you click "OK."');
45 window.location.reload(false);
49 alert(response.StatusReason);
54 $('#btnSubmitFile').prop('disabled', false);
56 this.destruct = function () {};