open-insight/LSL2/STPROC/COMM_COMPANY_FIX.txt
2024-05-22 14:06:46 -07:00

79 lines
1.4 KiB
Plaintext

COMPILE FUNCTION Comm_Company_Fix(Instruction, Parm1)
/*
Commuter module for COMPANY_FIX window
002/29/2004 - John C. Henry, J.C. Henry & Co., Inc.
*/
DECLARE SUBROUTINE Set_Property, End_Dialog, Send_Event, Set_Status, SetInitDirOptions
DECLARE SUBROUTINE ErrMsg, Send_Message, Make.List,Set_Property, Send_Event, obj_Appwindow
DECLARE FUNCTION Get_Property, Get_Status, Dialog_Box, Utility, Center_Window, Popup, Fieldcount
DECLARE FUNCTION Collect.Ixvals
EQU CRLF$ TO \0D0A\
$INSERT APPCOLORS
$INSERT POPUP_EQUATES
ErrTitle = 'Error in Comm_Company_Fix'
ErrorMsg = ''
Result = ''
BEGIN CASE
CASE Instruction = 'Create' ; GOSUB Create
CASE Instruction = 'Refresh' ; GOSUB Refresh
CASE Instruction = 'LUCustNo' ; GOSUB LUCustNo
CASE 1
ErrorMsg = 'Unknown Instruction passed to routine.'
ErrMsg(ErrorMsg)
END CASE
RETURN Result
* * * * * * *
Create:
* * * * * * *
obj_Appwindow('Create')
GOSUB Refresh
RETURN
* * * * * * *
Refresh:
* * * * * * *
RETURN
* * * * * * *
LUCustNo:
* * * * * * *
IF NOT(ASSIGNED(Parm1)) THEN FocusControl = '' ELSE FocusControl = Parm1
IF NOT(ASSIGNED(Parm2)) THEN FocusPos = '' ELSE FocusPos = Parm2
TypeOver = ''
TypeOver<PSELECT$> = 1
CustNo = Popup(@WINDOW,TypeOver,'CUSTOMER')
IF CustNo NE '' THEN
obj_Appwindow('LUValReturn',CustNo:@RM:FocusControl:@RM:FocusPos)
END
RETURN