update FDL_dett set eliminato = 1, IDutente_el = #session.IDutente#, data_el = #createODBCdatetime(now())# where IDFDL_dett = #url.elimina# update FDL_main set FDL_Attivi = FDL_Attivi + 1 where IDFDL_main = #url.IDFDL_main# SELECT * FROM FDL_dett where FDL = #form.FDL# and IDFDL_main = #url.IDFDL_main# and IDFDL_dett <> #form.IDFDL_dett# and eliminato = 0 insert into FDL_dett (IDFDL_main, IDutente, IDsocieta, FDL, intervento, data, IDutente_ins, data_ins) values (#url.IDFDL_main#, #form.IDutente#, #form.IDsocieta#, #form.FDL#, '#trim(form.intervento)#', str_to_date('#dateformat(form.data, "dd/mm/yyyy")#','%d/%m/%Y')NULL, #session.IDutente#, #createODBCdatetime(now())#) SELECT max(IDFDL_dett) as ultimo FROM FDL_dett where IDFDL_main = #url.IDFDL_main# update FDL_main set FDL_Attivi = FDL_Attivi - 1 where IDFDL_main = #url.IDFDL_main# SELECT * FROM FDL_dett where IDFDL_dett = #form.IDFDL_dett# update FDL_dett set IDutente = #form.IDutente#, IDsocieta = #form.IDsocieta#, FDL = #form.FDL#, intervento = '#trim(form.intervento)#', data = #createODBCdate(dateformat(form.data, "dd/mm/yyyy"))#NULL, IDutente_agg = #session.IDutente#, data_agg = #createODBCdatetime(now())# where IDFDL_dett = #form.IDFDL_dett# SELECT * FROM FDL_main where IDFDL_main = #url.IDFDL_main# SELECT * FROM utenti where #session.logo# = 1 ORDER BY cognome, nome SELECT * FROM utenti where IDutente = #blocco.IDutente# SELECT * FROM anagrafica where cliente = 'si' and nascosto = 0 and eliminato = 0 ORDER BY societa

SELECT * FROM FDL_dett where IDFDL_dett = #url.allegato#
Associa scansione PDF a foglio di lavoro n. #FDL# del #dateformat(data, "dd/mm/yyyy")#

Allega scansione da desktop


Allega scansione da cartella server
- nessun file disponibile -
File:
Anteprima:
AggiungiModifica blocco FDL

SELECT * FROM FDL_dett where IDFDL_dett = #url.IDFDL_dett# SELECT FDL FROM FDL_dett where IDFDL_main = #url.IDFDL_main# and eliminato = 0 and FDL <> #dettagli.FDL# SELECT max(FDL) as ultimo FROM fogli_usati
Operatore
Cliente
Num. foglio:
Data foglio:
Intervento: #dettagli.intervento#


Elimina allegato PDF
Elenco fogli di lavoro - blocco #blocco.da#/#blocco.aa# - operatore #utente_blocco.nome# #utente_blocco.cognome#

    

SELECT a.societa, f.* FROM anagrafica a INNER JOIN FDL_dett f ON f.IDsocieta = a.IDsocieta where f.IDFDL_main = #url.IDFDL_main# and f.eliminato = 0 order by f.FDL SELECT f.IDDocumento, odv_dett.IDDett_ordine, f.Numero_fattura, f.Data_emissione, odv.Numero_ordine, odv.data from (odv INNER JOIN odv_dett ON odv.IDOrdine = odv_dett.IDOrdine) left outer join fatture_attivo f on f.IDDocumento = odv.IDfattura where odv_dett.IDDett_ordine IN (select distinct IDDett_ordine from FDL_dett where IDFDL_main = #url.IDFDL_main#)

Nessun foglio registrato SELECT * FROM utenti where IDutente = #IDutente# SELECT * FROM ordini where IDDett_ordine = #IDDett_ordine#0
Foglio Data Operatore Cliente Desc PDF El. Mod. Oda/Fatt
#FDL# #dateformat(data, "dd/mm/yyyy")# #utente.Cognome# #utente.nome# #Societa#   FT #ordine.Numero_fattura#/#year(ordine.data_emissione)# odv #ordine.Numero_ordine#/#year(ordine.Data)#