Commit inicial: fuentes MBS ERP (Genero 6) + .gitignore + docs/SETUP_PC_MBS.md
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
----------------------------------------------------------------
|
||||
PROGRAMA : CTMNRP001
|
||||
OBJETIVO : Sub-Menu de Reportes del Sistema de Costos.
|
||||
PROGRAMADOR : Tadeo A. Ferreras
|
||||
FECHA REALIZACION : Junio 23, 1993.
|
||||
----------------------------------------------------------------
|
||||
}
|
||||
|
||||
GLOBALS "ctprgb000.4gl"
|
||||
|
||||
# Funcion que desplega y controla las opciones del sistema
|
||||
FUNCTION ctmnrp001()
|
||||
DEFINE p_user CHAR(9)
|
||||
DEFINE luz CHAR(5)
|
||||
OPTIONS
|
||||
PROMPT LINE 8,
|
||||
MESSAGE LINE 24
|
||||
CLEAR SCREEN
|
||||
CALL pantalla()
|
||||
|
||||
DISPLAY "Reportes" AT 6,36
|
||||
DISPLAY "ctmnrp001" AT 4,3 ATTRIBUTE(YELLOW)
|
||||
DISPLAY "1-Anal. Mov. Materia Prima ctprrp024" AT 10,1
|
||||
DISPLAY "2-Form. Registro Prod. Diaria ctprrp026" AT 11,1
|
||||
DISPLAY "S- Retorna Menu Anterior " AT 22,14
|
||||
ATTRIBUTE (BOLD)
|
||||
|
||||
# Captura de la opcion para la eleccion de lo requerimientos del usuario
|
||||
LET opcion = NULL
|
||||
|
||||
LABEL vuelve:
|
||||
PROMPT " OPCION: " FOR opcion HELP 2
|
||||
LET opcion = upshift (opcion) clipped
|
||||
|
||||
IF opcion != "S" THEN
|
||||
SELECT unique usuario INTO p_user FROM seg0001
|
||||
WHERE usuario = user
|
||||
CALL seg000(p_user,opcion,"ctmnrp001") RETURNING luz
|
||||
IF luz = "roja" THEN
|
||||
ERROR "NO TIENE PERMISO PARA UTILIZAR OPCION"
|
||||
GOTO vuelve
|
||||
END IF
|
||||
END IF
|
||||
|
||||
# Rutina para bifulcar el sistema dependiendo de lo elejido por el usuario
|
||||
CASE
|
||||
WHEN opcion = "1"
|
||||
CALL ctprrp024()
|
||||
CALL ctmnrp001()
|
||||
WHEN opcion = "2"
|
||||
CALL ctprrp026()
|
||||
CALL ctmnrp001()
|
||||
WHEN opcion = "S" or opcion = "s"
|
||||
RETURN
|
||||
OTHERWISE
|
||||
CALL ctmnrp001()
|
||||
END CASE
|
||||
|
||||
END FUNCTION
|
||||
|
||||
Reference in New Issue
Block a user