www/js/prod_edit.js

changeset 392
544d7d0183b2
parent 389
eb8ce63eb489
child 396
804800d8e885
equal deleted inserted replaced
391:a1bcebc61ddd 392:544d7d0183b2
2546 eq_mash_max: parseFloat($("#eq_mash_max").jqxNumberInput('decimal')), 2546 eq_mash_max: parseFloat($("#eq_mash_max").jqxNumberInput('decimal')),
2547 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')), 2547 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')),
2548 brew_date_start: $("#brew_date_start").val(), 2548 brew_date_start: $("#brew_date_start").val(),
2549 brew_mash_ph: parseFloat($("#brew_mash_ph").jqxNumberInput('decimal')), 2549 brew_mash_ph: parseFloat($("#brew_mash_ph").jqxNumberInput('decimal')),
2550 brew_mash_sg: parseFloat($("#brew_mash_sg").jqxNumberInput('decimal')), 2550 brew_mash_sg: parseFloat($("#brew_mash_sg").jqxNumberInput('decimal')),
2551 brew_mash_efficiency: parseFloat($("#brew_mash_efficiency").jqxNumberInput('decimal')),
2551 brew_sparge_temperature: parseFloat($("#brew_sparge_temperature").jqxNumberInput('decimal')), 2552 brew_sparge_temperature: parseFloat($("#brew_sparge_temperature").jqxNumberInput('decimal')),
2552 brew_sparge_volume: parseFloat($("#brew_sparge_volume").jqxNumberInput('decimal')), 2553 brew_sparge_volume: parseFloat($("#brew_sparge_volume").jqxNumberInput('decimal')),
2554 brew_sparge_est: parseFloat($("#brew_sparge_est").jqxNumberInput('decimal')),
2553 brew_sparge_ph: parseFloat($("#brew_sparge_ph").jqxNumberInput('decimal')), 2555 brew_sparge_ph: parseFloat($("#brew_sparge_ph").jqxNumberInput('decimal')),
2554 brew_preboil_volume: parseFloat($("#brew_preboil_volume").jqxNumberInput('decimal')), 2556 brew_preboil_volume: parseFloat($("#brew_preboil_volume").jqxNumberInput('decimal')),
2555 brew_preboil_sg: parseFloat($("#brew_preboil_sg").jqxNumberInput('decimal')), 2557 brew_preboil_sg: parseFloat($("#brew_preboil_sg").jqxNumberInput('decimal')),
2556 brew_preboil_ph: parseFloat($("#brew_preboil_ph").jqxNumberInput('decimal')), 2558 brew_preboil_ph: parseFloat($("#brew_preboil_ph").jqxNumberInput('decimal')),
2559 brew_preboil_efficiency: parseFloat($("#brew_preboil_efficiency").jqxNumberInput('decimal')),
2557 brew_aboil_volume: parseFloat($("#brew_aboil_volume").jqxNumberInput('decimal')), 2560 brew_aboil_volume: parseFloat($("#brew_aboil_volume").jqxNumberInput('decimal')),
2558 brew_aboil_sg: parseFloat($("#brew_aboil_sg").jqxNumberInput('decimal')), 2561 brew_aboil_sg: parseFloat($("#brew_aboil_sg").jqxNumberInput('decimal')),
2559 brew_aboil_ph: parseFloat($("#brew_aboil_ph").jqxNumberInput('decimal')), 2562 brew_aboil_ph: parseFloat($("#brew_aboil_ph").jqxNumberInput('decimal')),
2560 brew_aboil_efficiency: parseFloat($("#brew_aboil_efficiency").jqxNumberInput('decimal')), 2563 brew_aboil_efficiency: parseFloat($("#brew_aboil_efficiency").jqxNumberInput('decimal')),
2561 brew_cooling_method: $("#brew_cooling_method").val(), 2564 brew_cooling_method: $("#brew_cooling_method").val(),
2667 w2_sodium: parseFloat($("#w2_sodium").jqxNumberInput('decimal')), 2670 w2_sodium: parseFloat($("#w2_sodium").jqxNumberInput('decimal')),
2668 w2_magnesium: parseFloat($("#w2_magnesium").jqxNumberInput('decimal')), 2671 w2_magnesium: parseFloat($("#w2_magnesium").jqxNumberInput('decimal')),
2669 w2_total_alkalinity: parseFloat($("#w2_total_alkalinity").jqxNumberInput('decimal')), 2672 w2_total_alkalinity: parseFloat($("#w2_total_alkalinity").jqxNumberInput('decimal')),
2670 w2_ph: parseFloat($("#w2_ph").jqxNumberInput('decimal')), 2673 w2_ph: parseFloat($("#w2_ph").jqxNumberInput('decimal')),
2671 w2_cost: dataRecord.w2_cost, 2674 w2_cost: dataRecord.w2_cost,
2675 wg_amount: parseFloat($("#wg_amount").jqxNumberInput('decimal')),
2676 wg_calcium: parseFloat($("#wg_calcium").jqxNumberInput('decimal')),
2677 wg_sulfate: parseFloat($("#wg_sulfate").jqxNumberInput('decimal')),
2678 wg_chloride: parseFloat($("#wg_chloride").jqxNumberInput('decimal')),
2679 wg_sodium: parseFloat($("#wg_sodium").jqxNumberInput('decimal')),
2680 wg_magnesium: parseFloat($("#wg_magnesium").jqxNumberInput('decimal')),
2681 wg_total_alkalinity: parseFloat($("#wg_total_alkalinity").jqxNumberInput('decimal')),
2682 wg_ph: parseFloat($("#wg_ph").jqxNumberInput('decimal')),
2683 wb_calcium: parseFloat($("#wb_calcium").jqxNumberInput('decimal')),
2684 wb_sulfate: parseFloat($("#wb_sulfate").jqxNumberInput('decimal')),
2685 wb_chloride: parseFloat($("#wb_chloride").jqxNumberInput('decimal')),
2686 wb_sodium: parseFloat($("#wb_sodium").jqxNumberInput('decimal')),
2687 wb_magnesium: parseFloat($("#wb_magnesium").jqxNumberInput('decimal')),
2688 wb_total_alkalinity: parseFloat($("#wb_total_alkalinity").jqxNumberInput('decimal')),
2689 wb_ph: parseFloat($("#wb_ph").jqxNumberInput('decimal')),
2672 wa_acid_name: $("#wa_acid_name").val(), 2690 wa_acid_name: $("#wa_acid_name").val(),
2673 wa_acid_perc: parseFloat($("#wa_acid_perc").jqxNumberInput('decimal')), 2691 wa_acid_perc: parseFloat($("#wa_acid_perc").jqxNumberInput('decimal')),
2674 wa_base_name: $("#wa_base_name").val(), 2692 wa_base_name: $("#wa_base_name").val(),
2675 starter_enable: dataRecord.starter_enable, 2693 starter_enable: dataRecord.starter_enable,
2676 starter_type: $("#starter_type").val(), 2694 starter_type: $("#starter_type").val(),
2751 { name: 'eq_mash_max', type: 'float' }, 2769 { name: 'eq_mash_max', type: 'float' },
2752 { name: 'eq_efficiency', type: 'float' }, 2770 { name: 'eq_efficiency', type: 'float' },
2753 { name: 'brew_date_start', type: 'string' }, 2771 { name: 'brew_date_start', type: 'string' },
2754 { name: 'brew_mash_ph', type: 'float' }, 2772 { name: 'brew_mash_ph', type: 'float' },
2755 { name: 'brew_mash_sg', type: 'float' }, 2773 { name: 'brew_mash_sg', type: 'float' },
2774 { name: 'brew_mash_efficiency', type: 'float' },
2756 { name: 'brew_sparge_temperature', type: 'float' }, 2775 { name: 'brew_sparge_temperature', type: 'float' },
2757 { name: 'brew_sparge_volume', type: 'float' }, 2776 { name: 'brew_sparge_volume', type: 'float' },
2777 { name: 'brew_sparge_est', type: 'float' },
2758 { name: 'brew_sparge_ph', type: 'float' }, 2778 { name: 'brew_sparge_ph', type: 'float' },
2759 { name: 'brew_preboil_volume', type: 'float' }, 2779 { name: 'brew_preboil_volume', type: 'float' },
2760 { name: 'brew_preboil_sg', type: 'float' }, 2780 { name: 'brew_preboil_sg', type: 'float' },
2761 { name: 'brew_preboil_ph', type: 'float' }, 2781 { name: 'brew_preboil_ph', type: 'float' },
2782 { name: 'brew_preboil_efficiency', type: 'float' },
2762 { name: 'brew_aboil_volume', type: 'float' }, 2783 { name: 'brew_aboil_volume', type: 'float' },
2763 { name: 'brew_aboil_sg', type: 'float' }, 2784 { name: 'brew_aboil_sg', type: 'float' },
2764 { name: 'brew_aboil_ph', type: 'float' }, 2785 { name: 'brew_aboil_ph', type: 'float' },
2765 { name: 'brew_aboil_efficiency', type: 'float' }, 2786 { name: 'brew_aboil_efficiency', type: 'float' },
2766 { name: 'brew_cooling_method', type: 'int' }, 2787 { name: 'brew_cooling_method', type: 'int' },
2872 { name: 'w2_sodium', type: 'float' }, 2893 { name: 'w2_sodium', type: 'float' },
2873 { name: 'w2_magnesium', type: 'float' }, 2894 { name: 'w2_magnesium', type: 'float' },
2874 { name: 'w2_total_alkalinity', type: 'float' }, 2895 { name: 'w2_total_alkalinity', type: 'float' },
2875 { name: 'w2_ph', type: 'float' }, 2896 { name: 'w2_ph', type: 'float' },
2876 { name: 'w2_cost', type: 'float' }, 2897 { name: 'w2_cost', type: 'float' },
2898 { name: 'wg_amount', type: 'float' },
2899 { name: 'wg_calcium', type: 'float' },
2900 { name: 'wg_sulfate', type: 'float' },
2901 { name: 'wg_chloride', type: 'float' },
2902 { name: 'wg_sodium', type: 'float' },
2903 { name: 'wg_magnesium', type: 'float' },
2904 { name: 'wg_total_alkalinity', type: 'float' },
2905 { name: 'wg_ph', type: 'float' },
2906 { name: 'wb_calcium', type: 'float' },
2907 { name: 'wb_sulfate', type: 'float' },
2908 { name: 'wb_chloride', type: 'float' },
2909 { name: 'wb_sodium', type: 'float' },
2910 { name: 'wb_magnesium', type: 'float' },
2911 { name: 'wb_total_alkalinity', type: 'float' },
2912 { name: 'wb_ph', type: 'float' },
2877 { name: 'wa_acid_name', type: 'int' }, 2913 { name: 'wa_acid_name', type: 'int' },
2878 { name: 'wa_acid_perc', type: 'int' }, 2914 { name: 'wa_acid_perc', type: 'int' },
2879 { name: 'wa_base_name', type: 'int' }, 2915 { name: 'wa_base_name', type: 'int' },
2880 { name: 'starter_enable', type: 'int' }, 2916 { name: 'starter_enable', type: 'int' },
2881 { name: 'starter_type', type: 'int' }, 2917 { name: 'starter_type', type: 'int' },
2928 $("#eq_efficiency").val(dataRecord.eq_efficiency); 2964 $("#eq_efficiency").val(dataRecord.eq_efficiency);
2929 // Brewdate 2965 // Brewdate
2930 $("#brew_date_start").val(dataRecord.brew_date_start); 2966 $("#brew_date_start").val(dataRecord.brew_date_start);
2931 $("#brew_mash_ph").val(dataRecord.brew_mash_ph); 2967 $("#brew_mash_ph").val(dataRecord.brew_mash_ph);
2932 $("#brew_mash_sg").val(dataRecord.brew_mash_sg); 2968 $("#brew_mash_sg").val(dataRecord.brew_mash_sg);
2933 // brew_mash_efficiency to calculate on th fly. 2969 $("#brew_mash_efficiency").val(dataRecord.brew_mash_efficiency);
2934 // Header Spoelen en filteren 2970 // Header Spoelen en filteren
2935 $("#brew_sparge_temperature").val(dataRecord.brew_sparge_temperature); 2971 $("#brew_sparge_temperature").val(dataRecord.brew_sparge_temperature);
2936 $("#brew_sparge_volume").val(dataRecord.brew_sparge_volume); 2972 $("#brew_sparge_volume").val(dataRecord.brew_sparge_volume);
2973 $("#brew_sparge_est").val(dataRecord.brew_sparge_est);
2937 $("#brew_sparge_ph").val(dataRecord.brew_sparge_ph); 2974 $("#brew_sparge_ph").val(dataRecord.brew_sparge_ph);
2938 // Header Beluchten 2975 // Header Beluchten
2939 $("#brew_aeration_type").val(dataRecord.brew_aeration_type); 2976 $("#brew_aeration_type").val(dataRecord.brew_aeration_type);
2940 $("#brew_aeration_time").val(dataRecord.brew_aeration_time); 2977 $("#brew_aeration_time").val(dataRecord.brew_aeration_time);
2941 $("#brew_aeration_speed").val(dataRecord.brew_aeration_speed); 2978 $("#brew_aeration_speed").val(dataRecord.brew_aeration_speed);
2942 2979
2943 $("#brew_preboil_ph").val(dataRecord.brew_preboil_ph); 2980 $("#brew_preboil_ph").val(dataRecord.brew_preboil_ph);
2944 $("#brew_preboil_sg").val(dataRecord.brew_preboil_sg); 2981 $("#brew_preboil_sg").val(dataRecord.brew_preboil_sg);
2945 $("#brew_preboil_volume").val(dataRecord.brew_preboil_volume); 2982 $("#brew_preboil_volume").val(dataRecord.brew_preboil_volume);
2946 //$("#brew_preboil_efficiency").val(dataRecord.brew_preboil_efficiency); 2983 $("#brew_preboil_efficiency").val(dataRecord.brew_preboil_efficiency);
2947 // Header Koelen en whirlpoolen 2984 // Header Koelen en whirlpoolen
2948 $("#brew_whirlpool9").val(dataRecord.brew_whirlpool9); 2985 $("#brew_whirlpool9").val(dataRecord.brew_whirlpool9);
2949 $("#brew_whirlpool7").val(dataRecord.brew_whirlpool7); 2986 $("#brew_whirlpool7").val(dataRecord.brew_whirlpool7);
2950 $("#brew_whirlpool6").val(dataRecord.brew_whirlpool6); 2987 $("#brew_whirlpool6").val(dataRecord.brew_whirlpool6);
2951 $("#brew_whirlpool2").val(dataRecord.brew_whirlpool2); 2988 $("#brew_whirlpool2").val(dataRecord.brew_whirlpool2);
3072 $("#w2_sodium").val(dataRecord.w2_sodium); 3109 $("#w2_sodium").val(dataRecord.w2_sodium);
3073 $("#w2_magnesium").val(dataRecord.w2_magnesium); 3110 $("#w2_magnesium").val(dataRecord.w2_magnesium);
3074 $("#w2_total_alkalinity").val(dataRecord.w2_total_alkalinity); 3111 $("#w2_total_alkalinity").val(dataRecord.w2_total_alkalinity);
3075 $("#w2_ph").val(dataRecord.w2_ph); 3112 $("#w2_ph").val(dataRecord.w2_ph);
3076 $("#w2_cost").val(dataRecord.w2_cost); 3113 $("#w2_cost").val(dataRecord.w2_cost);
3114 $("#wg_amount").val(dataRecord.wg_amount);
3115 $("#wg_calcium").val(dataRecord.wg_calcium);
3116 $("#wg_sulfate").val(dataRecord.wg_sulfate);
3117 $("#wg_chloride").val(dataRecord.wg_chloride);
3118 $("#wg_sodium").val(dataRecord.wg_sodium);
3119 $("#wg_magnesium").val(dataRecord.wg_magnesium);
3120 $("#wg_total_alkalinity").val(dataRecord.wg_total_alkalinity);
3121 $("#wg_ph").val(dataRecord.wg_ph);
3122 $("#wb_calcium").val(dataRecord.wb_calcium);
3123 $("#wb_sulfate").val(dataRecord.wb_sulfate);
3124 $("#wb_chloride").val(dataRecord.wb_chloride);
3125 $("#wb_sodium").val(dataRecord.wb_sodium);
3126 $("#wb_magnesium").val(dataRecord.wb_magnesium);
3127 $("#wb_total_alkalinity").val(dataRecord.wb_total_alkalinity);
3128 $("#wb_ph").val(dataRecord.wb_ph);
3077 $("#wa_acid_name").val(dataRecord.wa_acid_name); 3129 $("#wa_acid_name").val(dataRecord.wa_acid_name);
3078 $("#wa_acid_perc").val(dataRecord.wa_acid_perc); 3130 $("#wa_acid_perc").val(dataRecord.wa_acid_perc);
3079 $("#wa_base_name").val(dataRecord.wa_base_name); 3131 $("#wa_base_name").val(dataRecord.wa_base_name);
3080 $("#starter_enable").val(dataRecord.starter_enable); 3132 $("#starter_enable").val(dataRecord.starter_enable);
3081 $("#starter_type").val(dataRecord.starter_type); 3133 $("#starter_type").val(dataRecord.starter_type);
5237 $("#wb_calcium").jqxNumberInput( Show1wat ); 5289 $("#wb_calcium").jqxNumberInput( Show1wat );
5238 $("#wb_magnesium").jqxTooltip({ content: 'De ideale hoeveelheid Magnesium is lager dan 30.'}); 5290 $("#wb_magnesium").jqxTooltip({ content: 'De ideale hoeveelheid Magnesium is lager dan 30.'});
5239 $("#wb_magnesium").jqxNumberInput( Show1wat ); 5291 $("#wb_magnesium").jqxNumberInput( Show1wat );
5240 $("#wb_sodium").jqxTooltip({ content: 'De ideale hoeveelheid Natrium is lager dan 150.'}); 5292 $("#wb_sodium").jqxTooltip({ content: 'De ideale hoeveelheid Natrium is lager dan 150.'});
5241 $("#wb_sodium").jqxNumberInput( Show1wat ); 5293 $("#wb_sodium").jqxNumberInput( Show1wat );
5242
5243 $("#wb_total_alkalinity").jqxNumberInput( Show1wat ); 5294 $("#wb_total_alkalinity").jqxNumberInput( Show1wat );
5244 $("#wb_chloride").jqxTooltip({ content: 'De ideale hoeveelheid Chloride is tussen 50 en 100.'}); 5295 $("#wb_chloride").jqxTooltip({ content: 'De ideale hoeveelheid Chloride is tussen 50 en 100.'});
5245 $("#wb_chloride").jqxNumberInput( Show1wat ); 5296 $("#wb_chloride").jqxNumberInput( Show1wat );
5246 $("#wb_sulfate").jqxTooltip({ content: 'De ideale hoeveelheid Sulfaat is tussen 50 en 350.'}); 5297 $("#wb_sulfate").jqxTooltip({ content: 'De ideale hoeveelheid Sulfaat is tussen 50 en 350.'});
5247 $("#wb_sulfate").jqxNumberInput( Show1wat ); 5298 $("#wb_sulfate").jqxNumberInput( Show1wat );
5248
5249 $("#wb_ph").jqxNumberInput( Show1wat ); 5299 $("#wb_ph").jqxNumberInput( Show1wat );
5250 // Water target profile 5300 // Water target profile
5251 $("#pr_name").jqxDropDownList({ 5301 $("#pr_name").jqxDropDownList({
5252 placeHolder: "Kies doel profiel:", 5302 placeHolder: "Kies doel profiel:",
5253 theme: theme, 5303 theme: theme,

mercurial