Updated WEB_OI_WIZARD form to launch centered on the screen sized to 3/4 of the client area. Updated the UpdateOpenWorkOrderData service to also update all work order quantities to ensure the OPEN_QTY_STATIC is set after routing a work order.
This commit is contained in:
@ -25,18 +25,29 @@ Event WINDOW.CREATE(CreateParam)
|
||||
|
||||
OIWizardBaseUrl = Environment_Services('GetOIWizardBaseUrl')
|
||||
Set_Property(@Window, '@BASE_URL', OIWizardBaseUrl)
|
||||
InitNavPage = CreateParam
|
||||
InitNavPage = CreateParam
|
||||
Set_Property(@Window, '@INIT_NAV_PAGE', InitNavPage)
|
||||
Set_Property(@Window, '@FIRST_RENDER', True$)
|
||||
Set_Property(@Window:'.WEBVIEW_MAIN', 'AUTOSIZEHEIGHT', True$)
|
||||
Set_Property(@Window:'.WEBVIEW_MAIN', 'AUTOSIZEWIDTH', True$)
|
||||
PlaceDialog(-2, -2)
|
||||
ScreenSize = Get_Property('SYSTEM', 'SIZE')
|
||||
ClientWidth = ScreenSize<3>
|
||||
ClientHeight = ScreenSize<4>
|
||||
FormSize = Get_Property(@Window, 'SIZE')
|
||||
FormWidth = Int(ClientWidth * (3/4))
|
||||
FormHeight = Int(ClientHeight * (3/4))
|
||||
FormSize<1> = Int( (ClientWidth - FormWidth ) / 2 )
|
||||
FormSize<2> = Int( (ClientHeight - FormHeight ) / 2 )
|
||||
FormSize<3> = FormWidth
|
||||
FormSize<4> = FormHeight
|
||||
FormSize<5> = True$
|
||||
Set_Property(@Window, 'SIZE', FormSize)
|
||||
|
||||
End Event
|
||||
|
||||
|
||||
Event WEBVIEW_MAIN.WEBVIEWCREATED()
|
||||
|
||||
|
||||
OIWizardURL = Get_Property(@Window, '@BASE_URL')
|
||||
NavPage = Get_Property(@Window, '@INIT_NAV_PAGE')
|
||||
NavTo = OIWizardURL:NavPage
|
||||
@ -49,7 +60,7 @@ end event
|
||||
|
||||
|
||||
Event WEBVIEW_MAIN.WEBNAVIGATED(NavID, URI, Redirected, UserInitiated, StatusInfo, FrameID)
|
||||
|
||||
|
||||
FirstRender = Get_Property(@Window, '@FIRST_RENDER')
|
||||
If FirstRender then
|
||||
SuccessFlag = Exec_Method(CtrlEntID, "DELETECOOKIES", '*')
|
||||
@ -103,4 +114,3 @@ Event WINDOW.TIMER()
|
||||
|
||||
end event
|
||||
|
||||
|
||||
|
@ -2343,7 +2343,39 @@ Service UpdateOpenWorkOrderData()
|
||||
LogData<4> = ErrorMsg
|
||||
Logging_Services('AppendLog', objVerifyWOMatKeysLog, LogData, @RM, @FM)
|
||||
MonaStatus = 'critical'
|
||||
end
|
||||
end
|
||||
Work_Order_Services('UpdateReceivedQty', NextOpenWoLogKey)
|
||||
If Error_Services('HasError') then
|
||||
LogData<1> = OConv(Datetime(), 'DT/^S')
|
||||
ErrorMsg = 'Error calling UpdateReceivedQty for WO_LOG ':NextOpenWoLogKey:'. ':Error_Services('GetMessage')
|
||||
LogData<4> = ErrorMsg
|
||||
Logging_Services('AppendLog', objVerifyWOMatKeysLog, LogData, @RM, @FM)
|
||||
MonaStatus = 'critical'
|
||||
end
|
||||
Work_Order_Services('UpdateReleasedQty', NextOpenWoLogKey)
|
||||
If Error_Services('HasError') then
|
||||
LogData<1> = OConv(Datetime(), 'DT/^S')
|
||||
ErrorMsg = 'Error calling UpdateReleasedQty for WO_LOG ':NextOpenWoLogKey:'. ':Error_Services('GetMessage')
|
||||
LogData<4> = ErrorMsg
|
||||
Logging_Services('AppendLog', objVerifyWOMatKeysLog, LogData, @RM, @FM)
|
||||
MonaStatus = 'critical'
|
||||
end
|
||||
Work_Order_Services('UpdateScrappedQty', NextOpenWoLogKey)
|
||||
If Error_Services('HasError') then
|
||||
LogData<1> = OConv(Datetime(), 'DT/^S')
|
||||
ErrorMsg = 'Error calling UpdateScrappedQty for WO_LOG ':NextOpenWoLogKey:'. ':Error_Services('GetMessage')
|
||||
LogData<4> = ErrorMsg
|
||||
Logging_Services('AppendLog', objVerifyWOMatKeysLog, LogData, @RM, @FM)
|
||||
MonaStatus = 'critical'
|
||||
end
|
||||
Work_Order_Services('UpdateShippedQty', NextOpenWoLogKey)
|
||||
If Error_Services('HasError') then
|
||||
LogData<1> = OConv(Datetime(), 'DT/^S')
|
||||
ErrorMsg = 'Error calling UpdateShippedQty for WO_LOG ':NextOpenWoLogKey:'. ':Error_Services('GetMessage')
|
||||
LogData<4> = ErrorMsg
|
||||
Logging_Services('AppendLog', objVerifyWOMatKeysLog, LogData, @RM, @FM)
|
||||
MonaStatus = 'critical'
|
||||
end
|
||||
end
|
||||
end else
|
||||
LogData<1> = OConv(Datetime(), 'DT/^S')
|
||||
|
Reference in New Issue
Block a user