@@ -67,7 +67,7 @@ function amTypeStore(type) {
6767 proxy : {
6868 type : "ajax" ,
6969 actionMethods : { read : "GET" } ,
70- url : actionUrl + "?op=getCycleType&windowFlag=1" ,
70+ url : actionUrlTwo + "?op=getCycleType&windowFlag=1" ,
7171 requestMethod : "getCycleType" ,
7272 queryMask : false
7373 } ,
@@ -80,7 +80,7 @@ function amTypeStore(type) {
8080 proxy : {
8181 type : "ajax" ,
8282 actionMethods : { read : "GET" } ,
83- url : mycim2dev + "/eqptPMPortal.do ?op=getCycleType" ,
83+ url : actionUrlTwo + "?op=getCycleType" ,
8484 requestMethod : "getCycleType" ,
8585 queryMask : false
8686 } ,
@@ -292,6 +292,8 @@ function check4Schedule() {
292292 var onOff = waferQtyContainer . getComponent ( "itemStatus" ) . getValue ( )
293293 var comments = waferQtyContainer . getComponent ( "comment" ) . getValue ( )
294294 var checklistId = waferQtyContainer . getComponent ( "checklistId" ) . getValue ( )
295+ var autoBy = waferQtyContainer . getComponent ( "byColumn" ) . getComponent ( "autoBy" ) . getValue ( )
296+ var byStandardQty = waferQtyContainer . getComponent ( "byColumn" ) . getComponent ( "byStandardQty" ) . getValue ( )
295297
296298 var resultMsg = ""
297299 if ( ! eqptId || eqptId . length <= 0 ) {
@@ -318,6 +320,9 @@ function check4Schedule() {
318320 if ( ! onOff || onOff . length <= 0 ) {
319321 resultMsg += "The on/off cannot be empty!<br>"
320322 }
323+ if ( autoBy === "YES" && isNull ( byStandardQty ) ) {
324+ resultMsg += "The byStandardQty cannot be empty!<br>"
325+ }
321326
322327 if ( resultMsg . length > 0 ) {
323328 showWarningAlert ( resultMsg )
@@ -337,6 +342,8 @@ function check4Count() {
337342 var onOff = waferQtyContainer . getComponent ( "itemStatus" ) . getValue ( )
338343 var comments = waferQtyContainer . getComponent ( "comment" ) . getValue ( )
339344 var checklistId = waferQtyContainer . getComponent ( "checklistId" ) . getValue ( )
345+ var autoBy = waferQtyContainer . getComponent ( "byColumn" ) . getComponent ( "autoBy" ) . getValue ( )
346+ var byStandardQty = waferQtyContainer . getComponent ( "byColumn" ) . getComponent ( "byStandardQty" ) . getValue ( )
340347
341348 var resultMsg = ""
342349 if ( ! eqptId || eqptId . length <= 0 ) {
@@ -363,6 +370,9 @@ function check4Count() {
363370 if ( ! onOff || onOff . length <= 0 ) {
364371 resultMsg += "The on/off cannot be empty!<br>"
365372 }
373+ if ( autoBy === "YES" && isNull ( byStandardQty ) ) {
374+ resultMsg += "The byStandardQty cannot be empty!<br>"
375+ }
366376
367377 if ( resultMsg . length > 0 ) {
368378 showWarningAlert ( resultMsg )
@@ -941,6 +951,21 @@ function getChecklistJobData() {
941951 } )
942952}
943953
954+ function getBYChecklistJobData ( ) {
955+ let checklistJobRrn = Ext . getCmp ( "eqptPMGrid" ) . getSelectionModel ( ) . getSelection ( ) [ 0 ] . get ( "checklistJobRrn" )
956+ Ext . Ajax . request ( {
957+ url : actionUrlTwo ,
958+ requestMethod : "getCheckListJob" ,
959+ method : "POST" ,
960+ params : { checklistJobRrn } ,
961+ success : function ( resp ) {
962+ refreshHyBasicDetailForm ( resp )
963+ refreshSuppliesGrid ( resp )
964+ refreshSuppliesLotNumberGrid ( resp )
965+ }
966+ } )
967+ }
968+
944969function refreshHyBasicDetailForm ( data ) {
945970 const hyBasicDetailForm = Ext . getCmp ( "hyBasicDetailForm" )
946971 hyBasicDetailForm . getForm ( ) . findField ( "checklistJobRrn" ) . setValue ( data . checklistJobRrn )
@@ -970,6 +995,7 @@ function saveLotNumberIssue(issueWin) {
970995 params . supplyRrn = issueForm . getValues ( ) . supplyRrn
971996 params . lotNumber = issueForm . getValues ( ) . lotNumber
972997 params . issueQty = issueForm . getValues ( ) . issueQty
998+ params . comments = issueForm . getValues ( ) . comments
973999
9741000 Ext . Ajax . request ( {
9751001 url : actionUrlTwo ,
@@ -1061,7 +1087,7 @@ function checkCurrStatusForPM() {
10611087
10621088 if ( invalidEqptIds && invalidEqptIds . length > 0 ) {
10631089 invalidEqptIds = invalidEqptIds . substring ( 0 , invalidEqptIds . lastIndexOf ( "," ) )
1064- showWarningAlert ( window . CN0EN == "EN" ? "The " + invalidEqptIds + " current status is AM!" : "设备:" + invalidEqptIds + " 当前状态为AM,请先AM !" )
1090+ showWarningAlert ( window . CN0EN == "EN" ? "The " + invalidEqptIds + " current status is AM!" : "设备:" + invalidEqptIds + " 当前状态为PM,请先PM !" )
10651091 return false
10661092 } else {
10671093 return true
0 commit comments