/* */ /* ' ########################################################### ' LPES選定計算用JS ' Create 2012.09.05 J.Ito ' Modyfy ----.--.-- -------- ' ########################################################### */ var marrResultRow; // 選定結果HTML行文字列を格納する配列 var moSelSpec; // 選択した行の仕様値を格納 $( document).ready( function(){ /* // 選定方法ラジオボタンクリック処理 $( "#SelWayThrust, #SelWayMotor").click( function(){ $( "#AreaMotorMount").show(); $( "#AreaOption").show(); $( "#AreaWayThrust").hide(); $( "#AreaWayMotor").hide(); $( "#ResultThrust").hide(); $( "#ResultMotor").hide(); $( "#ResultKata").hide(); if( $( this).attr( "id") == "SelWayThrust"){ $( "#AreaWayThrust").show(); }else{ $( "#AreaWayMotor").show(); } } ); */ $( "#Thrust").focus(); $( "#BtnProductInfo").click( function(){ // 形番からマウントコード以下除く var sKata = $( "#BasicKata").val(); var sSt = GetStrokeForKata( sKata, $( "#ParamStroke").val()); sKata += "T"; sKata += sSt; DispData( "/sad", "LP", sKata, "New"); } ); $( "#MotorMaker").change( function(){ // モータシリーズのリストを作成 // シリーズ絞り込みASP作成 $.get( "calc_lpes_get_motor.asp" , { Mode: "SERIES" , Maker: encodeURI( $( this).val()) } , SetMotorInfo ); } ); $( "#MotorSeries").change( function(){ // モータ型式のリストを作成 // 型式絞り込みASP作成 $.get( "calc_lpes_get_motor.asp" , { Mode: "KATA" , Maker: encodeURI( $( "#MotorMaker").val()) , Series: encodeURI( $( this).val()) } , SetMotorInfo ); } ); // クリアボタンクリック処理 $( "#BtnClear").click( function(){ // 選定条件をクリア ClearParam(); $( "#ResultAreaOutline").hide(); location.hash = "#PageTop"; /* $( "#NoData").hide(); $( "#ResultArea").hide(); $( "#ResultKata").hide(); */ } ); // 選定実行ボタンクリック処理 $( "#BtnExec").click( function(){ ExecSelect(); } ); // 選定条件「推力」ロストフォーカス $( "#Thrust").blur( function(){ AlertNumeric( this); } ); // 選定条件「速度」ロストフォーカス $( "#Speed").blur( function(){ AlertNumeric( this); } ); // 選定条件「ストローク」ロストフォーカス $( "#Stroke").blur( function(){ AlertNumeric( this); } ); } ); // 入力値チェック後、数値でなければ警告表示 function AlertNumeric( obj) { var o = $( obj); if( trimzen( o.val()) == ""){ return;} o.val( ZenToHan( o.val())); if( !IsNumeric( o.val())){ alert( "Enter a numerical value. "); setTimeout(function(){ o.focus(); o.select(); }, 1); } } // 選定条件をクリアする function ClearParam() { $( "#Thrust").val( ""); $( "#Speed").val( ""); $( "#Stroke").val( ""); $( "#MotorMaker").val( ""); $( "#MotorSeries").children().remove(); $( "#MotorSeries").append( $( "