Loading…

Lập chiến dịch quảng cáo

ontrol-label" for="oohSwitch"> OOH
VND

SẢN PH

A8;M XÃ HỘI HÓA

var thoiLuongQcNgay = thoiGianPhatSongNgay.value + parseFloat($("#ThoiGianPhatSongGio").val())*60; var thoiGian = thoiGianQC.value; //thang var loaiHinhQc = $("input[name='LoaiHinhQuangCao']:checked").val(); var heSo = parseFloat(1); var baoGia = 0; if (thoiGian == 12) heSo = 1; baoGia = parseFloat(donGia) * (100 - giam) * thoiGian / 100 * heSo; return parseInt(baoGia) * parseInt(soLuong); } function onFiltering(args) { var fi = args; cboViTri.query = new ej.data.Query().addParams('filter', args.text); } function onViTriSelect(args) { var donGia = parseFloat($("#donGiaViTri").val()) +parseFloat(args.itemData.DonGia); $("#donGiaViTri").val(donGia); viTriQuangCaos.push({ "Id": args.itemData.Id, "TenViTri": args.itemData.TenViTri, "SoLuongQuangCao": 1, "DonGiaGoc": args.itemData.DonGia, "DonGia": tinhDonGia(args.itemData.DonGia,1), "SoLuong": 1 }); showViTriChon(); tinhBaoGiaDuKien(); } function showViTriChon() { $("#listViTri").empty(); $.each(viTriQuangCaos, function (indexInArray, valueOfElement) { $("#listViTri").append("
" + "" + "" + "" + "" + valueOfElement.TenViTri + "" + "
"); }); } function removeViTri(args) { var donGia = parseFloat($("#donGiaViTri").val()) - parseFloat(args.itemData.DonGia); viTriQuangCaos = $.grep(viTriQuangCaos, function (e) { return e.Id != args.itemData.Id; }) showViTriChon(); $("#donGiaViTri").val(donGia); tinhBaoGiaDuKien(); } function thoiGianPhatSongChange(args) { tinhBaoGiaDuKien(); } function onGiamGiaChange(args) { tinhBaoGiaDuKien(); } function tinhBaoGiaDuKien() { var donGiaTong = 0; for (var i = 0; i < viTriQuangCaos.length; i++) { viTriQuangCaos[i].DonGia = tinhDonGia(viTriQuangCaos[i].DonGiaGoc, viTriQuangCaos[i].SoLuong); donGiaTong = donGiaTong + parseInt(viTriQuangCaos[i].DonGia); $("#" + viTriQuangCaos[i].Id).find('input.so-luong').val(viTriQuangCaos[i].SoLuong); $("#" + viTriQuangCaos[i].Id).find('input.id-vitri').val(viTriQuangCaos[i].Id); $("#" + viTriQuangCaos[i].Id).find('input.ten-vi-tri').val(viTriQuangCaos[i].TenViTri); $("#" + viTriQuangCaos[i].Id).find('input.don-gia').val(viTriQuangCaos[i].DonGia); } baoGiaDuKien.value = donGiaTong; } $("#list-address-device .item-device").on('click', function () { $("#list-address-device .item-device").removeClass("selected"); $(this).addClass("selected"); }) \u0022anonymous\u0022 integrity=\u0022sha384-Fnqn3nxp3506LP\/7Y3j\/25BlWeA3PXTyT1l78LjECcPaKCV12TsZP7yyMxOe\/G\/k\u0022\u003E\u003C\/script\u003E"));