| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/leo/application/plugins/module_fish/assets/js/ |
Upload File : |
/* global ind_mil, ind_decimal, block_msg, toast, bootbox, _L */
$(document).ready(function ()
{
$("#emsg").hide();
$("#submit").on('click', function (e) {
e.preventDefault();
$("#ibox-form").block({message: block_msg});
$.post($("#_url").val() +$("#_client_view").val()+ "module_fish/biometry/post", $("#form-feeding").serialize())
.done(function (retorno) {
var data = JSON.parse(retorno);
if (data.status == 'OK') {
location.reload();
} else {
$("#ibox-form").unblock();
var body = $("html, body");
body.animate({scrollTop: 0}, '1000', 'swing');
$("#emsgbody").html(data.msg);
$("#emsg").show("slow");
}
});
});
findDataSelect("#module_fish_lots_id",$("#_client_view").val()+'module_fish/ajax/lotsAssociated/'+$("#crm_accounts_id").val(), '');
findDataSelect("#crm_accounts_id", $("#_client_view").val()+'module_fish/ajax/Associated', '');
findData();
function findData() {
$.post($("#_url").val()+$("#_client_view").val() + "module_fish/biometry/table", $("#form-feeding").serialize())
.done(function (retorno) {
$("#rowItens").html(retorno);
$('.i-checks').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue'
});
$('.biometry_qty').autoNumeric('init', {aSep: '', aDec: ind_decimal, mDec: 0, aSign: ''});
posTable();
});
}
$('#module_fish_lots_id').on('change', function () {
findData();
});
$('#crm_accounts_id').on('change', function () {
findDataSelect("#module_fish_lots_id",$("#_client_view").val()+'module_fish/ajax/lotsAssociated/'+$(this).val(), '');
findData();
});
$('#without_execution').on('click', function (event) {
findData();
});
function posTable(){
$("#table_lotes").on('change', ".lote_all", function () {
if($(this).prop("checked") == true){
$('.lote_select').prop("checked",true);
$('.biometry_qty').removeAttr('readonly');
}else{
$('.lote_select').prop("checked",false);
$('.biometry_qty').attr('readonly','readonly');
}
sumTotal();
});
$("#table_lotes").on('change', ".lote_select", function () {
if($(this).prop("checked") == false){
$('.lote_all').prop("checked",false);
$('#weight_'+$(this).attr("data-row")).attr('readonly','readonly');
} else{
$('#weight_'+$(this).attr("data-row")).removeAttr('readonly');
}
});
$(document).ready(function () {
$('#table_lotes').DataTable({
"paging": false,
"ordering": true,
"info": false,
"filter": true,
"language":{
"url": $("#app_url").val()+"/ui/lib/dataTables/"+$("#_lan").val()+".json"
},
columnDefs: [ {
targets: [ 0 ],
orderData: [ 1, 0 ]
}]
});
});
}
$('#date').on('blur change', function (event) {
if ($(this).val() == '') {
$('#date').val($("#date_start").val());
}
findData();
});
});