Вы находитесь на странице: 1из 3

Project: GUCCI SCHEDE TECNICHE CALZATURE (GSC) RELEASE 3

Date: 25/!/2!!"
#LAG UNCHEC$ING %ANAGE%ENT IN P&SIZI&NA%ENTI
1. Create table GESTI&NE'#LG#$:
ID_TDGESTFLG int not null Identity - PK
NOE_T!"ELL!FLG #ar$%ar&'() not null
NOE_COLONN!FLG #ar$%ar&'() not null
NOE_T!"ELL!FK #ar$%ar&'() not null
NOE_COLONN!FK #ar$%ar&'() not null
*ou don+t need to $reate a LOG ,or t%i- table. but re/e/ber to 0ut all S1L db /odi,i$ation $o//and- in t%e
$urrent db 0at$% ,ile.
2. In-ert into GESTI&NE'#LG#$:
T%e 32 re$ord- ,or t%e TA(DEC'P&SIZI&NA%ENTI table t%at are in t%e
4T!"DEC_POSI5ION!ENTI6 7or8S%eet o, t%i- atta$%ed E9$el S0readS%eet
In-ertGESTIONE_FLGFK_POSI5ION!ENTI.9l-
:. In !na;ra,i$a Po-i<iona/enti &o, t%e !na;ra,i$%e !rti$oli -ub-/enu):
a. Only in odi,i$a /ode. i, a $urrently $%e$8ed C%e$8"o9 ,or any o, t%e FLG ,ield be$o/e-
un$%e$8ed. you need to $ontrol i, t%e $urrent T!"DEC_POSI5ION!ENTI re$ord i- bein; u-ed in t%e FK
table ,ield- t%at are related to t%e $urrent FLG ,ield by doin; t%e ,ollo=in;:
b. -ele$t NOE_T!"ELL!FK. NOE_COLONN!FK
,ro/ GESTIONE_FLGFK
=%ere NOE_T!"ELL!FLG > ?T!"DEC_POSI5ION!ENTI+
and NOE_COLONN!FLG > @na/e o, $urrent FLG ,ield t%at Au-t be$a/e un$%e$8edB
$. bCnC%e$8OK > true
For ea$% re$ord ,ound:
-ele$t $ount&D)
,ro/ NOE_T!"ELL!FK
=%ere NOE_COLONN!FK > @ID o, $urrent T!"DEC_POSI5ION!ENTI re$ordB
i, $ount E ( t%en bCnC%e$8OK > ,al-e
EndFor
d. I, not bCnC%e$8OK t%en
Di-0lay OK -;"o9 =it%:
6Il 0o-i<iona/ento F ;iG utili<<ato. non 0uH e--ere ri/o--o.6
For$e t%e C%e$8"o9 to re/ain $%e$8ed.
EndI,
PREASSEGNAZI&NE
I. !lter table SCHTEC'PR&DUZI&NE:
!dd ,ield-:
FLG_PJE!SSC!L5 bit not null de,ault>(
FLG_PJE!SSFOJN_CONT bit not null de,ault>(
FLG_PJE!SSFOJN_FOND bit not null de,ault>(
FLG_PJE!SSFOJN_FOJ bit not null de,ault>(
FLG_PJE!SSFOJN_INTS bit not null de,ault>(
FLG_PJE!SSFOJN_PL!T bit not null de,ault>(
FLG_PJE!SSFOJN_SOLE bit not null de,ault>(
FLG_PJE!SSFOJN_SCOL bit not null de,ault>(
FLG_PJE!SSFOJN_T!CC bit not null de,ault>(
FLG_PJE!SSFOJN_CODETT! bit not null de,ault>(
FLG_PJE!SSFOJN_F!SCSOLE bit not null de,ault>(
FLG_PJE!SSFOJN_FINC!K! bit not null de,ault>(
FLG_PJE!SSFOJN_FINFONDO bit not null de,ault>(
FLG_PJE!SSFOJN_FINPL!T bit not null de,ault>(
FLG_PJE!SSFOJN_FINT!CCO bit not null de,ault>(
Je/e/ber to al-o alter t%e LOG table and to 0ut all S1L db /odi,i$ation $o//and- in t%e $urrent db 0at$% ,ile.
'. In !--e;na<ione 0er Co/0onente o La#ora<ione and !--e;na<ione 0er Codi$e De,initi#o !rti$olo.
Ca/0i di Ji$er$a:
a. o#e t%e 4Linea De,initi#a6 and 4Codi$e De,initi#o !rti$olo6 -ear$% ,ield- to a -e0arate ro= belo=.
b. !dd a ne= Co/bo"o9 -ear$% ,ield to le,t o, 4Linea De,initi#a6 ,or 4Stato6 and ,ill =it% 2 ite/-:
6In6 L ,ir-t and de,ault #alue
6So-0e-o6
$. I, ,ir-t ite/ 4In6 i- -ele$ted. t%en 0er,or/ -ear$% in -a/e =ay a- be,ore =it%
SCMTEC_PJODC5IONE.ID_TDST!TOST>&-ele$t ID_TDST!TOST ,ro/ T!"DEC_ST!TISCMTEC =%ere
DESCJI5IONE>6In6)
d. I, -e$ond ite/ 4So-0e-o6 i- -ele$ted. t%en 0er,or/ -ear$% =it%
SCMTEC_PJODC5IONE.ID_TDST!TOST>&-ele$t ID_TDST!TOST ,ro/ T!"DEC_ST!TISCMTEC =%ere
DESCJI5IONE>6So-0e-o6)
3. In !--e;na<ione 0er Co/0onente o La#ora<ione and !--e;na<ione 0er Codi$e De,initi#o !rti$olo.
ea$% ti/e t%e Sal#a button i- 0re--ed:
For ea$% SCMTEC_PJODC5IONE re$ord t%at you CPD!TE :
a. I, ID_TDST!TOST > &-ele$t ID_TDST!TOST ,ro/ T!"DEC_ST!TISCMTEC =%ere
DESCJI5IONE>6So-0e-o6) t%en
,or ea$% o, t%e ,ollo=in; ,ield- t%at you %a#e to CPD!TE to a non-null #alue :
ID_TDC!L5
ID_TDFOJN_CONT
ID_TDFOJN_FOND
ID_TDFOJN_FOJ
ID_TDFOJN_INTS
ID_TDFOJN_PL!T
ID_TDFOJN_SOLE
ID_TDFOJN_SCOL
ID_TDFOJN_T!CC
ID_TDFOJN_CODETT!
ID_TDFOJN_F!SCSOLE
ID_TDFOJN_FINC!K!
ID_TDFOJN_FINFONDO
ID_TDFOJN_FINPL!T
ID_TDFOJN_FINT!CCO
al-o CPD!TE t%e $orre-0ondin; FLG_PJE!SSD ,ield to 1 .
,or ea$% o, t%e-e -a/e ,ield- t%at you %a#e to CPD!TE to t%e null #alue :
al-o CPD!TE t%e $orre-0ondin; FLG_PJE!SSD ,ield to ( .
b. I, ID_TDST!TOST > &-ele$t ID_TDST!TOST ,ro/ T!"DEC_ST!TISCMTEC =%ere
DESCJI5IONE>6In6) t%en
CPD!TE !LL 1' FLG_PJE!SSD ,ield- to (.
N. In !--e;na<ione 0er Co/0onente o La#ora<ione and !--e;na<ione 0er Codi$e De,initi#o !rti$olo. =%en
di-0layin; a non-null Cal<aturi,i$io or Fornitore #alue in t%e 4Cal<aturi,i$i6 or 4Fornitori6 Co/bo"o9e- o, t%e
e90loded ;rid-. i, t%e $orre-0ondin; FLG_PJE!SSD ,ield>1. t%en di-0lay t%e -ele$ted ite/ =it% a red
,ore;round.
!l-o di-0lay t%e -in;le ite/ in t%e 4li-t6 di-0lay o, t%e 4Cal<. !--e;nati6 and 4Forn.!--e;nati6 Te9t"o9e- =it% a
red ,ore;round.
(2O11O2((N L In SN e--en;er $on#er-ation =it% T%eo. -in$e %e $an+t di-0lay Au-t a -in;le 0art o, a -trin; in a
Te9t"o9 =it% t%e red ,ore;round. Ki#ien told %i/ to di-0lay t%e ENTIJE -trin; =it% red ,ore;round.
Je/e/ber to re,re-% t%e $olor- =%en ne$e--ary o, t%e ite/- di-0layed in t%e-e Co/bo"o9e- and Te9t"o9e-
ea$% ti/e t%e Sal#a button i- 0re--ed.

Вам также может понравиться