Răsfoiți Sursa

一分钟节拍-实际节拍

qinqi 1 an în urmă
părinte
comite
dc52c75261

+ 7 - 1
wwwroot/main/Procedure/test14/GlazingBeats.ashx

@@ -499,11 +499,17 @@ public class SmallKanban : IHttpHandler
 										)
 											SELECT
 												DECODE(
+														  NVL( 秒.SECOND, 0 ),
+														  0,
+														  0,
+														  TO_CHAR( (( 秒.SECOND) / DECODE( NVL( 产量, 1 ), 0, 1, NVL( 产量, 1 ) ) ), 'FM99990.0' ) 
+														) ONE ,
+												DECODE(
 														  NVL( 秒.SECOND-耽误.DANWU, 0 ),
 														  0,
 														  0,
 														  TO_CHAR( (( 秒.SECOND-耽误.DANWU) / DECODE( NVL( 产量, 1 ), 0, 1, NVL( 产量, 1 ) ) ), 'FM99990.0' ) 
-														) ONE 
+														) TWO 
 											FROM
 												(
 												SELECT

+ 7 - 5
wwwroot/main/Procedure/test14/GlazingBeats.html

@@ -40,7 +40,7 @@
 							<td scope="col" class="text-center" id="hgl2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right ">10分钟</td>
 						</tr>
 						<tr style="height: 70px; width: 1280px; ">
-							<td scope="col" class="text-center" id="zcl" style="width: 350px; font-size: 55px; color: #f8f9fa; text-align: center ">1分钟节拍</td>
+							<td scope="col" class="text-center" id="zcl" style="width: 350px; font-size: 55px; color: #f8f9fa; text-align: center ">实际节拍</td>
 							<td scope="col" class="text-center" id="cl3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center ">0</td>
 							<td scope="col" class="text-center" id="hgl3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right ">30分钟</td>
 						</tr>
@@ -125,9 +125,9 @@
 					if (json["rows"][0]["FOUR"] != 3600) {
 						$('#cl4').html(json["rows"][0]["FOUR"]);
 					}
-					if (json["rows"][0]["FIVE"] != 240) {
-						$('#onesecond').html(json["rows"][0]["FIVE"] + "  秒/件")
-					}
+					//if (json["rows"][0]["FIVE"] != 240) {
+					//	$('#onesecond').html(json["rows"][0]["FIVE"] + "  秒/件")
+					//}
 					;
 				}
 			});
@@ -138,7 +138,9 @@
 			$.get('GlazingBeats.ashx?m=ALL', function (data) {
 				var json = JSON.parse(data);
 				if (json['success'] == true) {
-					$('#second').html(json["rows"][0]["ONE"]);
+                    $('#second').html(json["rows"][0]["ONE"]);
+                    $('#onesecond').html(json["rows"][0]["TWO"] + "  秒/件");
+
 				}
 			});
 		}

+ 7 - 1
wwwroot/main/Procedure/test15/GlazingBeats2.ashx

@@ -501,11 +501,17 @@ public class SmallKanban : IHttpHandler
 										)
 											SELECT
 												DECODE(
+														  NVL( 秒.SECOND, 0 ),
+														  0,
+														  0,
+														  TO_CHAR( (( 秒.SECOND) / DECODE( NVL( 产量, 1 ), 0, 1, NVL( 产量, 1 ) ) ), 'FM99990.0' ) 
+														) ONE ,
+												DECODE(
 														  NVL( 秒.SECOND-耽误.DANWU, 0 ),
 														  0,
 														  0,
 														  TO_CHAR( (( 秒.SECOND-耽误.DANWU) / DECODE( NVL( 产量, 1 ), 0, 1, NVL( 产量, 1 ) ) ), 'FM99990.0' ) 
-														) ONE  
+														) TWO 
 											FROM
 												(
 												SELECT

+ 6 - 5
wwwroot/main/Procedure/test15/GlazingBeats2.html

@@ -40,7 +40,7 @@
 							<td scope="col" class="text-center" id="hgl2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right ">10分钟</td>
 						</tr>
 						<tr style="height: 70px; width: 1280px; ">
-							<td scope="col" class="text-center" id="zcl" style="width: 350px; font-size: 55px; color: #f8f9fa; text-align: center ">1分钟节拍</td>
+							<td scope="col" class="text-center" id="zcl" style="width: 350px; font-size: 55px; color: #f8f9fa; text-align: center ">实际节拍</td>
 							<td scope="col" class="text-center" id="cl3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 60px; color: #f8f9fa; text-align: center ">0</td>
 							<td scope="col" class="text-center" id="hgl3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 55px; color: #f8f9fa; text-align: right ">30分钟</td>
 						</tr>
@@ -125,9 +125,9 @@
 					if (json["rows"][0]["FOUR"] != 3600) {
 						$('#cl4').html(json["rows"][0]["FOUR"]);
 					}
-					if (json["rows"][0]["FIVE"] != 240) {
-						$('#onesecond').html(json["rows"][0]["FIVE"] + "  秒/件")
-					}
+					//if (json["rows"][0]["FIVE"] != 240) {
+					//	$('#onesecond').html(json["rows"][0]["FIVE"] + "  秒/件")
+					//}
 					;
 				}
 			});
@@ -138,7 +138,8 @@
 			$.get('GlazingBeats2.ashx?m=ALL', function (data) {
 				var json = JSON.parse(data);
 				if (json['success'] == true) {
-					$('#second').html(json["rows"][0]["ONE"]);
+                    $('#second').html(json["rows"][0]["ONE"]);
+                    $('#onesecond').html(json["rows"][0]["TWO"] + "  秒/件");
 				}
 			});
 		}