Lewis SAGD Oil Sands Project (2024)

Contact Us





Subscribe

'; } else { var html = '

'; } $("#message").empty(); $("#message").append(html); $("#message").fadeIn(1000); setTimeout(function () { $("#message").fadeOut(1000); }, 60000); } function sortOrder() { //alert(""); var order = []; //loop trought each li... var iOrder = 1; $('#sortable li').each(function (e) { // TODO: remove the inogre Li var assetId = $(this).find('#assetId').val(); if (iOrder == 1) { $(this).css("border-top", "skyblue solid 10px"); } else { $(this).css("border-top", "1px solid #c5c5c5"); } // Ignore the deleted one. if ($('#imageStatus_' + assetId).val() == 'Ignore') return; if ($('#imageStatus_' + assetId).val() == 'Remove') return; //add each li position to the array... // the +1 is for make it start from 1 instead of 0 if ($('#Order_' + assetId).val() != iOrder) { window.assetDatas.push({ id: assetId }); } $(this).find('.imageorder').val(iOrder++); //$(this).find("data-id").val(iOrder++); }); } function addNewImage() { //need to be refreshed $("#sortable").sortable("refresh"); } var fadeTime = 300; $(function () { $("#sortable").sortable(); $("#sortable").disableSelection(); $("#sortable").sortable({ update: function (event, ui) { sortOrder(); } }); $(document).bind('drop dragover', function (e) { e.preventDefault(); }); window.imageDatas = []; window.assetDatas = []; //initPreview(); sortOrder(); initFileUpload(); $("#btn-save").click(function (e) { e.preventDefault(); e.stopPropagation(); var breakOut = false; if (window.assetDatas.length == 0 && window.imageDatas.length == 0) { confirmationSuccess("Nothing need to be saved!", true); return false; } // Remove the duplicate asset and new Ignored asset var uniqueAssetDatas = []; $.each(window.assetDatas, function (i, el) { if ($.inArray(el.id, uniqueAssetDatas) === -1) { if ($('#imageStatus_' + el.id).val() != 'Ignore') uniqueAssetDatas.push(el.id); } }); // Remove the duplicate image var uniqueimageDatas = []; $.each(window.imageDatas, function (i, el) { if ($.inArray(el.id, uniqueimageDatas.id) == -1) uniqueimageDatas.push(el) }); if (uniqueimageDatas.length == 0 && uniqueAssetDatas.length == 0) { confirmationSuccess("Nothing need to be saved!", true); window.imageDatas = []; window.assetDatas = []; return false; } // Check if any new added (onlY ADDED) asset has images. // Check if new added in window.assetDatas has image in window.imageDatas. // If YES, Remove the data in assetDatas, So the new Added will only post from window.imageDatas. $.each(uniqueAssetDatas, function (i, el) { var assetId = el; if ($('#imageStatus_' + assetId).val() != 'Add') return; var found = false; for (var i = 0; i < uniqueimageDatas.length; i++) { if (uniqueimageDatas[i].id == assetId) { found = true; uniqueAssetDatas.splice(i, 1); // uniqueAssetDatas.remove(el); break; } } if (!found) { confirmationSuccess("No image uploaded. Please add image before saving!", true); breakOut = true; return false; } return; }); if (breakOut) return; // Combine the assetdata to imageData if they is image changes in image data and also asset data change. So we don't need to post twice. $.each(uniqueimageDatas, function (i, el) { var assetId = el.id; var found = false; for (var i = 0; i < uniqueAssetDatas.length; i++) { if (uniqueAssetDatas[i] == assetId) { found = true; uniqueAssetDatas.splice(i, 1); break; } } return; }); // image with the data uniqueimageDatas.forEach(function (d) { var assetId = d.id; d.data.formData = { //Passing data projectId: $('#projectId').val(), assetId: assetId, displayDate: $('#DisplayDate_' + assetId).val(), source: $('#Source_' + assetId).val(), caption: $('#Caption_' + assetId).val(), order: $('#Order_' + assetId).val(), status: $('#imageStatus_' + assetId).val(), }, d.data.submit(); }) // Data change only without images uniqueAssetDatas.forEach(function (d) { var assetId = d; $.ajax( { url: "/Asset/uploadAssetImage", type: 'POST', dataType: 'json', data: { //Passing data projectId: $('#projectId').val(), assetId: assetId, displayDate:$('#DisplayDate_' + assetId).val(), source: $('#Source_' + assetId).val(), caption:$('#Caption_' + assetId).val(), order: $('#Order_' + assetId).val(), status: $('#imageStatus_' + assetId).val(), }, success: function (data) { var result = data.result; if (result) { var lastmodified = data.lastmodified; confirmationSuccess("Save successfully!", true); // Update the Last modified date filed in detail page. $('#lastmodified').text(lastmodified); return; } if (!result) { confirmationSuccess("Save Failed, Please try again!", true); breakOut = true; return false; } }, failure: function (result) { } }); }) if (breakOut) return; window.imageDatas = []; window.assetDatas = []; }); $("#btn-add").click(function (e) { e.preventDefault(); e.stopPropagation(); // this is a fake asset id used for drag and drop. var uploadFileId = getRandomInt(9999)+""; reloadAssetAndImage(0, uploadFileId, false,'Add','','','',''); }); function reloadAssetAndImage(oldassetId, newassetId, imageFromServer,status,displayDate,source,caption,order) { // add new uploadFileId = newassetId; var newAdd = ""; newAdd = '

  • ' + '' + '' + '' + '

    ' + '' + '

    '; if(imageFromServer) newAdd += 'Lewis SAGD Oil Sands Project (1)'; newAdd += '

    ' + '

    ' + '

    ' + '

    Order:

    ' + '

    ' + '

    Display Date:

    ' + '

    ' + '

    Caption:

    ' + '

    ' + '

    Source:

    ' + '

    ' + '

    ' + '
  • '; $(newAdd).fadeOut(fadeTime, function () { if(oldassetId == 0) $('#sortable').append(newAdd); else { if (oldassetId != 0) { $('#sortable li ').each(function () { if ($(this).find('#assetId').val() == oldassetId) $(this).replaceWith($(newAdd)); }) } } $(newAdd).fadeIn(fadeTime); }); sortOrder(); initEachFileUpload(uploadFileId) } function initFileUpload() { var dropzoneIds = []; $('#sortable li #assetId').each(function () { dropzoneIds.push($(this).val()); }) for (var d = 0; d < dropzoneIds.length; d++) { var currentId = dropzoneIds[d]; initEachFileUpload(currentId); } } // Every time the file upload added or initilazied function initEachFileUpload(currentId) { // check if image droped var fileuploadid = "#btnInfoImageUpload_" + currentId; $(fileuploadid).fileupload( { dropZone: $(fileuploadid), cache: false, url: "/Asset/uploadAssetImage", type: 'POST', dataType: 'json', contentType: false, processData: false, autoUpload: false, formData: { projectId: $('#projectId').val(), //assetId: $(imageupload).parent().parent().find('#assetId').val(), //displayDate: $(imageupload).parent().parent().find('#DisplayDate').val(), //source: $(imageupload).parent().parent().find('#Source').val(), //caption: $(imageupload).parent().parent().find('#Caption').val(), //order: $(imageupload).parent().parent().find('#Order').val(), }, //data: $('#uploadItemImageForm').serialize(), add: function (e, data) { e.stopPropagation(); e.preventDefault(); console.log(e.originalEvent.delegatedEvent.target); var targetId = e.originalEvent.delegatedEvent.target.id; var assetId = $('#' + targetId).parent().parent().find('#assetId').val(); //Remove the previous added one. var uniqueimageDatas = []; for (var i in window.imageDatas) { if (window.imageDatas[i].id == assetId) { window.imageDatas.splice(i, 1); break; } } //$.each(window.imageDatas, function (i, el) { // if (el.id == assetId) // window.imageDatas.array.splice(i, 1); //}); window.imageDatas.push({ id: assetId, data: data }); // Preview var prviewDiv = "#previewImage_" + assetId; var file = data.files[0]; var reader = new FileReader(); reader.addEventListener("load", function () { $(prviewDiv).fadeOut(fadeTime, function () { // convert image file to base64 string var bin = reader.result; var newFile = document.createElement('div'); $(newFile).addClass("image-dragdrop_title"); newFile.innerHTML = 'Image is ready : ' + file.name ; $(prviewDiv).empty().append(newFile); var img = document.createElement("img"); img.file = file; img.src = bin; $(prviewDiv).append(img); $(prviewDiv).find("img").addClass("image-dragdrop"); $(prviewDiv).fadeIn(fadeTime); }); }, false); if (file) { reader.readAsDataURL(file); } }, progress: function (e, data) { }, success: function (data) { var result = data.result; if (result) { // Update the asset id from database for New Added. var targetId = data.oldassetId; //var previousassetId = $('#' + targetId).parent().parent().find('#assetId').val(); var newassetid = data.newassetId; var lastmodified = data.lastmodified; // var iOrder = 1; var displayDate = $('#DisplayDate_' + targetId).val(); var source = $('#Source_' + targetId).val(); var caption = $('#Caption_' + targetId).val(); var order = $('#Order_' + targetId).val(); reloadAssetAndImage(targetId, newassetid, true, 'Exist',displayDate,source,caption,order); confirmationSuccess("Save successfully!", true); // Update the Last modified date filed in detail page. $('#lastmodified').text(lastmodified); return; } if (!result) { confirmationSuccess("Save Failed, Please try again!", true); return; } }, error: function (xhr, status) { } }); // Check if image deleted var deleteImage = "#btnDeleteImage_" + currentId; $(deleteImage).click(function (e) { if (window.confirm("Are you sure you want to remove this image? If yes, you still need to save to make it effective.")) { var imageStatus = "#imageStatus_" + currentId; // Hide and mark it is needed to be removed. $(deleteImage).parent().hide(); if ($(imageStatus).val() == "Exist") { $(imageStatus).val("Remove"); } if ($(imageStatus).val() == "Add") { $(imageStatus).val("Ignore"); } assetDatas.push({ id: currentId }); sortOrder(); } }); // Check if value changed var order = "#Order_" + currentId; $(order).on('change keydown paste input', function () { assetDatas.push({ id: currentId }); }); var displayDate = "#DisplayDate_" + currentId; $(displayDate).on('change keydown paste input', function () { assetDatas.push({ id: currentId }); }); var caption = "#Caption_" + currentId; $(caption).on('change keydown paste input', function () { assetDatas.push({ id: currentId }); }); var source = "#Source_" + currentId; $(source).on('change keydown paste input', function () { assetDatas.push({ id: currentId }); }); // $(displayDate).datepicker( { changeMonth: true, changeYear: true, showButtonPanel: true, dateFormat: 'M yy', //onClose: function (dateText, inst) { // if ($(window.event.srcElement).hasClass('ui-datepicker-close')) { // var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val(); // var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val(); // $(this).datepicker('setDate', new Date(year, month, 1)); // setDetailsDirty("true");; // } // //$(displayDate).valid(); //}, //beforeShow: function (input, inst) { // if ($(input).attr('readonly')) { // return false; // } // if (!$('#ui-datepicker-div').hasClass('')) { // $('#ui-datepicker-div').addClass(""); // } //} } ); } function getRandomInt(max) { return Math.floor(Math.random() * Math.floor(max)); } });

    Lewis SAGD Oil Sands Project (2024)

    FAQs

    What is the oil sands project? ›

    Oil sands explained

    The Athabasca deposit is the largest, most developed oil sands project in Alberta. It utilizes the most technologically advanced production processes. As more research is done, new technologies are increasing the treatment methods available to oil sands producers.

    What is the problem with Alberta oil sands? ›

    Tar sands oil — even the name sounds bad. And it is bad. In fact, oil from tar sands is one of the most destructive, carbon-intensive and toxic fuels on the planet. Producing it releases three times as much greenhouse gas pollution as conventional crude oil does.

    Who owns the oil sands land? ›

    More than 52 percent of "oilsands production" is owned by American shareholders, which is more than twice the level of Canadian ownership, she added. Another 5.2 percent of production is owned by Chinese state-owned companies, according to the report.

    How much oil is left in the oil sands? ›

    HOW MANY BARRELS ARE IN THE GROUND? There are an estimated 1.8 trillion barrels of oil in the oil sands, but less than 10% of those barrels can be economically recovered with current technology. That works out to 161 billion barrels of recoverable reserves.

    What is the big deal about the oil sands? ›

    Canada's oil sands are the third largest proven oil reserve in the world. The oil sands are the third-largest proven oil reserve in the world, representing 166.3 billion barrels (or 97%) of Canada's 171 billion barrels of proven oil reserves (technical overview).

    What products are made from oil sands? ›

    SCO can be further refined to make gasoline, diesel, jet fuel, and other petroleum-based products.

    How many years of oil is left in the ground? ›

    We may never run out of oil, though known reserves are expected to last for about 50 years, current estimates suggest.

    Where is the largest oil sands in the world? ›

    Geology
    • The world's largest deposits of oil sands are in Venezuela and Canada. ...
    • The magnitude of the resources in the two countries is on the order of 3.5 to 4 trillion barrels (550 to 650 billion cubic metres) of original oil in place (OOIP).

    How much are the oil sands worth? ›

    The oil sands in Alberta contributed one-third of all Canada's natural resource value, or about $860 billion. “Energy resources are Canada's top natural wealth contributor in 2022,” Statistics Canada reported. In 2022, energy products were also Canada's largest export, valued at nearly $230 billion.

    What is the largest untapped oil reserve in the world? ›

    Details: Kashagan field is the largest single untapped oil field in the world and the fifth largest ever discovered. Development is underway. In fact, crude was supposed to have started flowing in 2005, but repeated delays have pushed the date to 2013.

    Does Canada have more oil than the US? ›

    Canada is the fifth-largest crude oil producer in the world

    Globally, only the United States, Saudi Arabia, Russia and China have higher oil production.

    Where is 80% of the world's oil held? ›

    Approximately 80% of the world's oil reserves are in the Organization of the Petroleum Exporting Countries (OPEC).

    What is oil sand used for? ›

    Tar sands (also known as oil sands) are a mixture of mostly sand, clay, water, and a thick, molasses-like substance called bitumen. Bitumen is made of hydrocarbons—the same molecules in liquid oil—and is used to produce gasoline and other petroleum products.

    Why is harvesting the oil sands so controversial? ›

    Tar sands are an expansive and abundant oil resource on the planet despite most being in several locations. They are controversial because the climate crisis cannot heal if humans continue relying on fossil fuels.

    How do they get the oil out of the oil sands? ›

    Trucks move the oil sand to a cleaning facility where it is mixed with hot water and diluent (naphthanic, parafanic) to separate the bitumen from the sand. Sand, water, fine clays and minerals, or tailings, are separated from the bitumen and diluent and sent to tailings ponds where the sand settles.

    How do oil sands affect humans? ›

    Oil sands (e.g., diluted bitumen) can negatively impact the environment and human health. Mining oil sands in Alberta, Canada, has led to degradation of forests and parts of the Athabasca River watershed. Short-term exposure to diluted bitumen can increase the risk of cancer and respiratory and neurological diseases.

    References

    Top Articles
    Latest Posts
    Recommended Articles
    Article information

    Author: Delena Feil

    Last Updated:

    Views: 5780

    Rating: 4.4 / 5 (45 voted)

    Reviews: 92% of readers found this page helpful

    Author information

    Name: Delena Feil

    Birthday: 1998-08-29

    Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

    Phone: +99513241752844

    Job: Design Supervisor

    Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

    Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.