*--------------------------------------------------------------------------------------------------------------------------------------------------------
* (EN) AUTOGENERATED - ATTENTION!! - NOT INTENDED FOR EXECUTION!! USE ONLY FOR MERGING CHANGES AND STORING WITH SCM TOOLS!!
*--------------------------------------------------------------------------------------------------------------------------------------------------------
*< FOXBIN2PRG: Version="1.21" SourceFile="listcli.mnx" CPID="1252" /> (Solo para binarios VFP 9 / Only for VFP 9 binaries)
*
*<MenuType>4</MenuType>
*<MenuLocation>REPLACE</MenuLocation>

*<MenuCode>
DEFINE POPUP Listare SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR 1 OF Listare PROMPT "Registrul de \<Vanzari"
ON BAR 1 OF Listare ACTIVATE POPUP _1790n9m5l

	*----------------------------------
	DEFINE POPUP _1790n9m5l SHORTCUT RELATIVE
	DEFINE BAR 1 OF _1790n9m5l PROMPT "Format 2007"
	ON SELECTION BAR 1 OF _1790n9m5l DO BAR_1_OF__1790n9m5l_FB2P

	DEFINE BAR 2 OF _1790n9m5l PROMPT "\<Normal"
	ON BAR 2 OF _1790n9m5l ACTIVATE POPUP Normalform

		*----------------------------------
		DEFINE POPUP Normalform SHORTCUT RELATIVE
		DEFINE BAR 1 OF Normalform PROMPT "\<Format 2004"
		ON SELECTION BAR 1 OF Normalform DO BAR_1_OF_Normalform_FB2P

		DEFINE BAR 2 OF Normalform PROMPT "Cu \<Recapitulatie"
		ON SELECTION BAR 2 OF Normalform DO BAR_2_OF_Normalform_FB2P

	DEFINE BAR 3 OF _1790n9m5l PROMPT "\<Simplificat"
	ON SELECTION BAR 3 OF _1790n9m5l DO BAR_3_OF__1790n9m5l_FB2P

	DEFINE BAR 4 OF _1790n9m5l PROMPT "\<Condensat"
	ON SELECTION BAR 4 OF _1790n9m5l DO BAR_4_OF__1790n9m5l_FB2P

DEFINE BAR 2 OF Listare PROMPT "\-"
ON BAR 2 OF Listare ACTIVATE POPUP _11317zqz8

	*----------------------------------
	DEFINE POPUP _11317zqz8 SHORTCUT RELATIVE
DEFINE BAR 3 OF Listare PROMPT "Balanta clienti"
ON SELECTION BAR 3 OF Listare DO BAR_3_OF_Listare_FB2P

DEFINE BAR 4 OF Listare PROMPT "\-"
ON BAR 4 OF Listare ACTIVATE POPUP _1s20ixmih

	*----------------------------------
	DEFINE POPUP _1s20ixmih SHORTCUT RELATIVE
DEFINE BAR 5 OF Listare PROMPT "Situatie \<operativa"
ON SELECTION BAR 5 OF Listare DO BAR_5_OF_Listare_FB2P

DEFINE BAR 6 OF Listare PROMPT "\-"
ON BAR 6 OF Listare ACTIVATE POPUP _1s20ixmii

	*----------------------------------
	DEFINE POPUP _1s20ixmii SHORTCUT RELATIVE
DEFINE BAR 7 OF Listare PROMPT "S\<ituatii facturi"
ON BAR 7 OF Listare ACTIVATE POPUP Situatiifa

	*----------------------------------
	DEFINE POPUP Situatiifa SHORTCUT RELATIVE
	DEFINE BAR 1 OF Situatiifa PROMPT "Facturi \<vanzari"
	ON BAR 1 OF Situatiifa ACTIVATE POPUP Facturivan

		*----------------------------------
		DEFINE POPUP Facturivan SHORTCUT RELATIVE
		DEFINE BAR 1 OF Facturivan PROMPT "\<Toate facturile (pe clienti)"
		ON BAR 1 OF Facturivan ACTIVATE POPUP Toatefactu

			*----------------------------------
			DEFINE POPUP Toatefactu SHORTCUT RELATIVE
			DEFINE BAR 1 OF Toatefactu PROMPT "Cu sold in \<perioada..."
			ON SELECTION BAR 1 OF Toatefactu DO BAR_1_OF_Toatefactu_FB2P

			DEFINE BAR 2 OF Toatefactu PROMPT "Facturi \<emise in perioada..."
			ON SELECTION BAR 2 OF Toatefactu DO BAR_2_OF_Toatefactu_FB2P

		DEFINE BAR 2 OF Facturivan PROMPT "\-"
		ON BAR 2 OF Facturivan ACTIVATE POPUP _0ew0s3wd7

			*----------------------------------
			DEFINE POPUP _0ew0s3wd7 SHORTCUT RELATIVE
		DEFINE BAR 3 OF Facturivan PROMPT "Facturi \<neincasate (pe clienti)"
		ON BAR 3 OF Facturivan ACTIVATE POPUP Facturinei

			*----------------------------------
			DEFINE POPUP Facturinei SHORTCUT RELATIVE
			DEFINE BAR 1 OF Facturinei PROMPT "\<Solduri pe facturi"
			ON SELECTION BAR 1 OF Facturinei DO BAR_1_OF_Facturinei_FB2P

			DEFINE BAR 2 OF Facturinei PROMPT "\<Solduri pe facturi(analitic)"
			ON SELECTION BAR 2 OF Facturinei DO BAR_2_OF_Facturinei_FB2P

		DEFINE BAR 4 OF Facturivan PROMPT "\<Facturi neincasate (in ordinea emiterii)"
		ON SELECTION BAR 4 OF Facturivan DO BAR_4_OF_Facturivan_FB2P

		DEFINE BAR 5 OF Facturivan PROMPT "\-"
		ON BAR 5 OF Facturivan ACTIVATE POPUP _0er0lwh96

			*----------------------------------
			DEFINE POPUP _0er0lwh96 SHORTCUT RELATIVE
		DEFINE BAR 6 OF Facturivan PROMPT "Situatia facturilor emise pe zile"
		ON SELECTION BAR 6 OF Facturivan DO BAR_6_OF_Facturivan_FB2P

		DEFINE BAR 7 OF Facturivan PROMPT "\-"
		ON BAR 7 OF Facturivan ACTIVATE POPUP _1s50xzj3h

			*----------------------------------
			DEFINE POPUP _1s50xzj3h SHORTCUT RELATIVE
		DEFINE BAR 8 OF Facturivan PROMPT "Facturi pe contracte"
		ON SELECTION BAR 8 OF Facturivan DO BAR_8_OF_Facturivan_FB2P

	DEFINE BAR 2 OF Situatiifa PROMPT "\-"
	ON BAR 2 OF Situatiifa ACTIVATE POPUP _07i0yojcv

		*----------------------------------
		DEFINE POPUP _07i0yojcv SHORTCUT RELATIVE
	DEFINE BAR 3 OF Situatiifa PROMPT "Facturi \<scadente"
	ON SELECTION BAR 3 OF Situatiifa DO BAR_3_OF_Situatiifa_FB2P

	DEFINE BAR 4 OF Situatiifa PROMPT "\-"
	ON BAR 4 OF Situatiifa ACTIVATE POPUP _0yy0n2atd

		*----------------------------------
		DEFINE POPUP _0yy0n2atd SHORTCUT RELATIVE
	DEFINE BAR 5 OF Situatiifa PROMPT "Facturi furnizor-client"
	ON SELECTION BAR 5 OF Situatiifa DO BAR_5_OF_Situatiifa_FB2P

	DEFINE BAR 6 OF Situatiifa PROMPT "\-"
	ON BAR 6 OF Situatiifa ACTIVATE POPUP _1810vh8rw

		*----------------------------------
		DEFINE POPUP _1810vh8rw SHORTCUT RELATIVE
	DEFINE BAR 7 OF Situatiifa PROMPT "\<Facturi incasate in luna curenta"
	ON BAR 7 OF Situatiifa ACTIVATE POPUP Facturiinc

		*----------------------------------
		DEFINE POPUP Facturiinc SHORTCUT RELATIVE
		DEFINE BAR 1 OF Facturiinc PROMPT "Grupate dupa luna \<emiterii"
		ON SELECTION BAR 1 OF Facturiinc DO BAR_1_OF_Facturiinc_FB2P

		DEFINE BAR 2 OF Facturiinc PROMPT "Grupate dupa data \<incasarii"
		ON SELECTION BAR 2 OF Facturiinc DO BAR_2_OF_Facturiinc_FB2P

DEFINE BAR 8 OF Listare PROMPT "\<Situatie clienti pe vechimi"
ON BAR 8 OF Listare ACTIVATE POPUP Situatiecl

	*----------------------------------
	DEFINE POPUP Situatiecl SHORTCUT RELATIVE
	DEFINE BAR 1 OF Situatiecl PROMPT "Fata de data scadenta"
	ON SELECTION BAR 1 OF Situatiecl Do sold_fact_pe_vechimi In orap_terti.prg with "C"

	DEFINE BAR 2 OF Situatiecl PROMPT "Fata de data emitere"
	ON SELECTION BAR 2 OF Situatiecl Do sold_fact_pe_vechimi In orap_terti.prg with "C", .T.

DEFINE BAR 9 OF Listare PROMPT "Raport scadentar - 4111 + 4118"
ON SELECTION BAR 9 OF Listare DO BAR_9_OF_Listare_FB2P

DEFINE BAR 10 OF Listare PROMPT "\-"
ON BAR 10 OF Listare ACTIVATE POPUP _2hj10qvz3

	*----------------------------------
	DEFINE POPUP _2hj10qvz3 SHORTCUT RELATIVE
DEFINE BAR 11 OF Listare PROMPT "Inregistrari clienti \<cu sold final in luna"
ON BAR 11 OF Listare ACTIVATE POPUP Inregistra

	*----------------------------------
	DEFINE POPUP Inregistra SHORTCUT RELATIVE
	DEFINE BAR 1 OF Inregistra PROMPT "In \<lei"
	ON SELECTION BAR 1 OF Inregistra DO BAR_1_OF_Inregistra_FB2P

	DEFINE BAR 2 OF Inregistra PROMPT "In lei si \<valuta"
	ON SELECTION BAR 2 OF Inregistra DO BAR_2_OF_Inregistra_FB2P

DEFINE BAR 12 OF Listare PROMPT "\-"
ON BAR 12 OF Listare ACTIVATE POPUP _3tp0zfz6g

	*----------------------------------
	DEFINE POPUP _3tp0zfz6g SHORTCUT RELATIVE
DEFINE BAR 13 OF Listare PROMPT "Facturi clienti / furnizori  (subantreprenori) cu sold pe lucrari"
ON SELECTION BAR 13 OF Listare do executa_raport with 2,1000000 in orapoarte_dinamice.prg

DEFINE BAR 14 OF Listare PROMPT "\-"
ON BAR 14 OF Listare ACTIVATE POPUP _4h10r64ed

	*----------------------------------
	DEFINE POPUP _4h10r64ed SHORTCUT RELATIVE
DEFINE BAR 15 OF Listare PROMPT "\<Pondere clienti pe perioada"
ON SELECTION BAR 15 OF Listare DO BAR_15_OF_Listare_FB2P
ACTIVATE POPUP Listare

*</MenuCode>

*<Procedures>
PROCEDURE BAR_1_OF__1790n9m5l_FB2P
	DO listare_registru_vanzcump_2007 IN orap_terti WITH 'V'
ENDPROC && BAR_1_OF__1790n9m5l_FB2P

PROCEDURE BAR_1_OF_Normalform_FB2P
	DO listare_registru_vanzcump IN orap_terti WITH [4111],[NORMAL],.f.
ENDPROC && BAR_1_OF_Normalform_FB2P

PROCEDURE BAR_2_OF_Normalform_FB2P
	DO listare_registru_vanzcump IN orap_terti WITH [4111],[NORMAL],.t.
ENDPROC && BAR_2_OF_Normalform_FB2P

PROCEDURE BAR_3_OF__1790n9m5l_FB2P
	DO listare_registru_vanzcump IN orap_terti WITH [4111],[SIMPLIFICAT],.f.
ENDPROC && BAR_3_OF__1790n9m5l_FB2P

PROCEDURE BAR_4_OF__1790n9m5l_FB2P
	DO listare_registru_vanzcump IN orap_terti WITH [4111],[CONDENSAT],.f.
ENDPROC && BAR_4_OF__1790n9m5l_FB2P

PROCEDURE BAR_3_OF_Listare_FB2P
	DO PrepareRptBalantaFC WITH gcCont411,"Jurnal Clienti","balanta_parteneri_rpt3",.T. IN osituatii_operative.prg 
ENDPROC && BAR_3_OF_Listare_FB2P

PROCEDURE BAR_5_OF_Listare_FB2P
	**parametrii:
	**tcCont,tlActiv,tlTitlu,tlCauta_alfa_Cu_Toti,tlPerioada_Blocata,tcRaport_sau_Vizualizare,
	*tc_NumeForma
	
	** titlu lasat gol ca sa keme cereTitlu
	DO PrepareRptSitOp IN osituatii_operative.prg WITH '4111',.T.,"",.T.,.F.,
ENDPROC && BAR_5_OF_Listare_FB2P

PROCEDURE BAR_1_OF_Toatefactu_FB2P
	DO viz_frm_facturi IN orap_terti_comun WITH 1,gcCont411
ENDPROC && BAR_1_OF_Toatefactu_FB2P

PROCEDURE BAR_2_OF_Toatefactu_FB2P
	DO viz_frm_facturi IN orap_terti_comun WITH 2,gcCont411
ENDPROC && BAR_2_OF_Toatefactu_FB2P

PROCEDURE BAR_1_OF_Facturinei_FB2P
	DO list_facturi_neachitate IN orap_terti WITH gcCont411,.T.
ENDPROC && BAR_1_OF_Facturinei_FB2P

PROCEDURE BAR_2_OF_Facturinei_FB2P
	DO list_facturi_neachitate IN orap_terti WITH gcCont411,.T.,.t.
ENDPROC && BAR_2_OF_Facturinei_FB2P

PROCEDURE BAR_4_OF_Facturivan_FB2P
	DO list_facturi_neachitate IN orap_terti WITH gcCont411,.F.
ENDPROC && BAR_4_OF_Facturivan_FB2P

PROCEDURE BAR_6_OF_Facturivan_FB2P
	DO rap_facturi_emise_pe_zile IN orap_terti.prg
ENDPROC && BAR_6_OF_Facturivan_FB2P

PROCEDURE BAR_8_OF_Facturivan_FB2P
	DO rap_fact_grup_pe_lucari_parteneri WITH gcCont411, .t., 0 IN orap_terti.prg
ENDPROC && BAR_8_OF_Facturivan_FB2P

PROCEDURE BAR_3_OF_Situatiifa_FB2P
	DO list_facturi_scadente IN orap_terti WITH [4111]
ENDPROC && BAR_3_OF_Situatiifa_FB2P

PROCEDURE BAR_5_OF_Situatiifa_FB2P
	DO facturi_furnizor_client IN orap_terti
ENDPROC && BAR_5_OF_Situatiifa_FB2P

PROCEDURE BAR_1_OF_Facturiinc_FB2P
	DO incasari_facturi_lunac IN orap_terti_comun WITH .t.
ENDPROC && BAR_1_OF_Facturiinc_FB2P

PROCEDURE BAR_2_OF_Facturiinc_FB2P
	DO incasari_facturi_lunac IN orap_terti_comun WITH .f.
ENDPROC && BAR_2_OF_Facturiinc_FB2P

PROCEDURE BAR_9_OF_Listare_FB2P
	Do proc_scadentar In orap_terti.prg with "C"
ENDPROC && BAR_9_OF_Listare_FB2P

PROCEDURE BAR_1_OF_Inregistra_FB2P
	Do parteneri_cu_sold_final In orap_terti.prg with .F.,"4111"
ENDPROC && BAR_1_OF_Inregistra_FB2P

PROCEDURE BAR_2_OF_Inregistra_FB2P
	Do parteneri_cu_sold_final In orap_terti.prg with .T.,"4111"
ENDPROC && BAR_2_OF_Inregistra_FB2P

PROCEDURE BAR_15_OF_Listare_FB2P
	do pondere_clienti in orap_terti.prg
ENDPROC && BAR_15_OF_Listare_FB2P

*</Procedures>
