added LSL2 stored procedures
This commit is contained in:
99
LSL2/STPROC/COMM_CUSTOMER.txt
Normal file
99
LSL2/STPROC/COMM_CUSTOMER.txt
Normal file
@ -0,0 +1,99 @@
|
||||
COMPILE FUNCTION Comm_Customer(Instruction, Parm1)
|
||||
|
||||
/*
|
||||
Commuter module for CUSTOMER window
|
||||
|
||||
06/24/2005 - 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_Customer'
|
||||
ErrorMsg = ''
|
||||
|
||||
Result = ''
|
||||
|
||||
BEGIN CASE
|
||||
CASE Instruction = 'Create' ; GOSUB Create
|
||||
CASE Instruction = 'Clear' ; GOSUB Clear
|
||||
CASE Instruction = 'Refresh' ; GOSUB Refresh
|
||||
CASE Instruction = 'Page' ; GOSUB Page
|
||||
CASE Instruction = 'LUCustNo' ; GOSUB LUCustNo
|
||||
CASE 1
|
||||
debug
|
||||
ErrorMsg = 'Unknown Instruction passed to routine.'
|
||||
ErrMsg(ErrorMsg)
|
||||
END CASE
|
||||
|
||||
RETURN Result
|
||||
|
||||
|
||||
|
||||
* * * * * * *
|
||||
Create:
|
||||
* * * * * * *
|
||||
|
||||
obj_Appwindow('Create')
|
||||
|
||||
GOSUB Refresh
|
||||
|
||||
|
||||
RETURN
|
||||
|
||||
* * * * * * *
|
||||
Clear:
|
||||
* * * * * * *
|
||||
|
||||
|
||||
* * * * * * *
|
||||
Refresh:
|
||||
* * * * * * *
|
||||
|
||||
RETURN
|
||||
|
||||
|
||||
|
||||
* * * * * * *
|
||||
Page:
|
||||
* * * * * * *
|
||||
|
||||
obj_Appwindow('Page')
|
||||
GOSUB Refresh
|
||||
|
||||
RETURN
|
||||
|
||||
|
||||
|
||||
* * * * * * *
|
||||
LUCustNo:
|
||||
* * * * * * *
|
||||
|
||||
RETURN
|
||||
CompKeys = Collect.IXVals('COA', 'COMP_NO')
|
||||
|
||||
CONVERT @FM TO @VM IN CompKeys
|
||||
|
||||
PopOver = ''
|
||||
PopOver<PDISPLAY$> = CompKeys
|
||||
|
||||
CompanyKey = Popup(@WINDOW,PopOver,'COMPANY_COA')
|
||||
IF CompanyKey NE '' THEN
|
||||
Set_Property(@WINDOW:'.CO_NO','DEFPROP',CompanyKey)
|
||||
Send_Event(@WINDOW,'READ')
|
||||
END
|
||||
RETURN
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user