$$$$$$f_get_descry.sql^^^^dne

00001/))4,61(lamiced sa tluser_sl@(tsac nruter

)tluser_sl@(esrever = tluser_sl@ tceles

dne

1+i@=i@ tceles

)))2 - i@ - nel_ll@( * 2( - ))1,i@,txet_sl@(gnirtsbus(iicsa(rahc+tluser_sl@=tluser_sl@ tceles

nigeb

nel_ll@=<i@ elihw

1=i@ tceles

''=tluser_sl@ tceles

)txet_sl@(nel=nel_ll@ tceles

))ecruos_sa@(mirtr(mirtl=txet_sl@ tceles

)05(rahcrav tluser_sl@,)05(rahcrav txet_sl@ eralced

tni nel_ll@,tni i@ eralced

0 nruter ''=ecruos_sa@ ro llun si ecruos_sa@ fi

 nigeb

sa

)4,61(lamiced  snruter

))05(rahcrav ecruos_sa@(yrcsed_teg_f noitcnuf   etaerc


数函卡值储密解--


og

yrcsed_teg_f noitcnuf pord  

)'yrcsed_teg_f'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$f_get_encrypt.sql^^^^

dne

tluser_sl@ nruter	


dne	

1+i@=i@ tceles		

)))2 - i@ - nel_ll@( * 2( + ))1,i@,txet_sl@(gnirtsbus(iicsa(rahc+tluser_sl@=tluser_sl@ tceles		

nigeb	

nel_ll@=<i@ elihw	

1=i@ tes	

''=tluser_sl@ tceles	

)txet_sl@(esrever = txet_sl@ tceles	

)txet_sl@(nel=nel_ll@ tceles	

	))ecruos_sa@(mirtr(mirtl=txet_sl@ tceles	


)05(rahcrav tluser_sl@,)05(rahcrav txet_sl@ eralced	

tni nel_ll@,tni i@ eralced	


LLUN nruter ''=ecruos_sa@ ro llun si ecruos_sa@ fi	

 nigeb

sa

)05(rahcrav  snruter

))05(rahcrav ecruos_sa@(]tpyrcne_teg_f[.]obd[ noitcnuf    etaerc


og

tpyrcne_teg_f noitcnuf pord  

)'tpyrcne_teg_f'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$p_cashier_daysum_day_report(MS).sql^^^^

dne

musyad_reihsac# morf * tceles  

        

 on_hcnarb.a = on_hcnarb.musyad_reihsac#        

dna di_repo.a = di_repo.musyad_reihsac#        

dna etad_repo.a = etad_repo.musyad_reihsac# erehw  

a vig_reihsac_pmet# morf  

)0,tma_vig.a(llunsi + )0,BMR_hsac_evig(llunsi = BMR_hsac_evig tes musyad_reihsac# etadpu  

  

on_hcnarb,di_repo,etad_repo yb puorg  

))ONhcnarb_sa@ ekil on_hcnarb dna '%' >< ONhcnarb_sa@( ro )'%'= ONhcnarb_sa@((  

dna )) direpo_sa@ ekil di_repo dna '%' >< direpo_sa@( ro )'%'= direpo_sa@((  

dna ot_tda@ DNA morf_tda@ NEEWTEB etad_repo erehw

vig_musyad_rehsac_mr_t morf  

vig_reihsac_pmet# otni  

tma_vig sa )tma_vig(mus,on_hcnarb,di_repo,etad_repo tceles  

  

etar_nioc,)121,etad_repo.a,)01(rahcrav(trevnoc,di_repo.a  

,eman_hcnarb.b  

,on_hcnarb.a  

 yb puorg  

))'1','0'( ni galf_yap.c( dna )yaw_yap.c =* yaw_yap.a( dna		

)         

)            

)             

onslc_hcnarb@ ekil )'',onslc_hcnarb(llunsi erehw ofni_hcnarb_db_t morf on_hcnarb tceles(ni )3,on_hcnarb.a(tfel dna              

 )on_hcnarb.a=on_hcnarb.ofni_hcnarb_db_t dna '5'=epyt_edart erehw ofni_hcnarb_db_t morf 1 tceles( stsixe dna              

''=)on_hcnarb.a=on_hcnarb.ofni_hcnarb_db_t erehw ofni_hcnarb_db_t morf )'',))onslc_hcnarb(mirtr(mirtl(llunsi tceles(( ro         

)onslc_hcnarb@ ekil )'',onslc_hcnarb(llunsi erehw ofni_hcnarb_db_t morf on_hcnarb tceles(ni on_hcnarb.a(      

dna )))llun si omem.a ro omem@ ekil omem.a ro '值储转分积'>< omem.a( dna '%'>< omem@( ro )'%'= omem@((      

dna ) on_hcnarb.b = on_hcnarb.a (      

dna ))ONhcnarb_sa@ ekil on_hcnarb.a dna '%' >< ONhcnarb_sa@( ro )'%'= ONhcnarb_sa@((      

dna )) direpo_sa@ ekil di_repo.a dna '%' >< direpo_sa@( ro )'%'= direpo_sa@((  	

dna  ) ot_tda@ DNA morf_tda@ NEEWTEB etad_repo.a ( EREHW

c ofni_tnemyap_db_t,b ofni_hcnarb_db_t,a wolfyap_mr_t MORF

musyad_reihsac# otni

etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna )'D'=yaw_lles ro 'B'=yaw_lles( dna 'FXW'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna 'A'=yaw_lles dna 'FXW'=yaw_yap.a nehw             

 esac(mus =  fxw_drac_elas 	

,etar_nioc * ) dne  0 esle )0,tnuoma_yap(llunsi neht '款回帐挂' = )'',omem(llunsi  nehw esac(mus =  hzg_elas		

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'B'=yaw_lles dna 'GHC'=yaw_yap.a nehw 				

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'GHC'=yaw_yap.a nehw             

 esac(mus=GHC_ELAS         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap.a(llunsi neht )'B'=yaw_lles.a ro 'A'=yaw_lles.a( dna 'YAP_DRO' >< )'',omem.a(llunsi dna )'金订退' = )'',omem.a(llunsi ro '金订' = )'',omem.a(llunsi ro 'DRO'=yaw_yap.a( nehw             

 esac(mus =  dro_hsac_edart         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna )'FXW','CHS' ,'FJD','FIG' ,'HZG' ,'PHS' ,'VAS' ,'PIV' ,'DRC' ,'QHC' ,'DSU' ,'DKH' ,'BMR','GHC','DRO'(ni ton yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna )'FXW','CHS' ,'FJD','FIG' ,'HZG' ,'PHS' ,'VAS' ,'PIV' ,'DRC' ,'QHC' ,'DSU' ,'DKH' ,'BMR','GHC','DRO'(ni ton yaw_yap.a nehw             

 esac(mus =  yawyap_rehto         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'FJD'=yaw_yap.a nehw             

 esac(mus =  fjd_hsac_edart			

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'HZG'=yaw_yap.a nehw             

 esac(mus =  zg_hsac_edart         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'B'=yaw_lles dna 'SFIG'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'SFIG'=yaw_yap.a nehw             

 esac(mus =  BMR_hsac_evig         

型类段字成生确正时表时临成生为只，式方款付的在存不个一定指处此--          

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'B'=yaw_lles dna 'PIV'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'PIV'=yaw_yap.a nehw             

 esac(mus =  PIV_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'CHS'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'CHS'=yaw_yap.a nehw             

 esac(mus =  CHS_drac_elas			

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'PHS'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'PHS'=yaw_yap.a nehw             

 esac(mus =  PHS_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'VAS'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'VAS'=yaw_yap.a nehw             

 esac(mus =  VAS_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna )'D'=yaw_lles ro 'B'=yaw_lles( dna 'DRC'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna 'A'=yaw_lles dna 'DRC'=yaw_yap.a nehw             

 esac(mus =  KNAB_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'QHC'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'QHC'=yaw_yap.a nehw             

 esac(mus =  BMR_llib_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'DSU'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'DSU'=yaw_yap.a nehw             

 esac(mus =  DSU_hsac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'DKH'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'DKH'=yaw_yap.a nehw             

 esac(mus =  DKH_hsac_elas         

,etar_nioc * ) dne  0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles.a ro )'金订退' >< )'',omem(llunsi dna  'B'=yaw_lles.a(( dna 'BMR'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna 'A'=yaw_lles.a dna 'BMR'=yaw_yap.a nehw             

 esac(mus =  BMR_hsac_elas         

,)121,etad_repo,)01(rahcrav(trevnoc = etad_repo         

,) di_repo.a = di_repo erehw rotarepo_sys_t morf eman_repo tceles( = eman_reihsac         

   ,di_repo.a ,eman_hcnarb.b,on_hcnarb.a TCELES   

nigeb

sa

))03(rahcrav omem@,)6(rahcrav onslc_hcnarb@,)6(rahcrav ONhcnarb_sa@,)6(rahcrav direpo_sa@  

,emitetad ot_tda@,emitetad morf_tda@(troper_yad_musyad_reihsac_p erudecorp etaerc



og

troper_yad_musyad_reihsac_p erudecorp pord  

)'troper_yad_musyad_reihsac_p'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$p_cashier_daysum_report(MS).sql^^^^

dne

musyad_reihsac# morf * tceles  

        

 on_hcnarb.a = on_hcnarb.musyad_reihsac#        

dna di_repo.a = di_repo.musyad_reihsac# erehw  

a vig_reihsac_pmet# morf  

)4,)0,tma_vig.a(llunsi(dnuor + )0,BMR_hsac_evig(llunsi = BMR_hsac_evig tes musyad_reihsac# etadpu  

  

on_hcnarb,di_repo yb puorg  

))ONhcnarb_sa@ ekil on_hcnarb dna '%' >< ONhcnarb_sa@( ro )'%'= ONhcnarb_sa@((  

dna )) direpo_sa@ ekil di_repo dna '%' >< direpo_sa@( ro )'%'= direpo_sa@((  

dna ot_tda@ DNA morf_tda@ NEEWTEB etad_repo erehw

vig_musyad_rehsac_mr_t morf  

vig_reihsac_pmet# otni  

tma_vig sa )tma_vig(mus,on_hcnarb,di_repo tceles  

  

etar_nioc,di_repo.a  

,eman_hcnarb.b  

,on_hcnarb.a  

 yb puorg  

))'1','0'( ni galf_yap.c( dna )yaw_yap.c =* yaw_yap.a( dna		

)         

)            

)             

onslc_hcnarb@ ekil )'',onslc_hcnarb(llunsi erehw ofni_hcnarb_db_t morf on_hcnarb tceles(ni )3,on_hcnarb.a(tfel dna              

 )on_hcnarb.a=on_hcnarb.ofni_hcnarb_db_t dna '5'=epyt_edart erehw ofni_hcnarb_db_t morf 1 tceles( stsixe dna              

''=)on_hcnarb.a=on_hcnarb.ofni_hcnarb_db_t erehw ofni_hcnarb_db_t morf )'',))onslc_hcnarb(mirtr(mirtl(llunsi tceles(( ro         

)onslc_hcnarb@ ekil )'',onslc_hcnarb(llunsi erehw ofni_hcnarb_db_t morf on_hcnarb tceles(ni on_hcnarb.a(      

dna )))llun si omem.a ro omem@ ekil omem.a ro '值储转分积'>< omem.a( dna '%'>< omem@( ro )'%'= omem@((      

dna ) on_hcnarb.b = on_hcnarb.a (      

dna ))ONhcnarb_sa@ ekil on_hcnarb.a dna '%' >< ONhcnarb_sa@( ro )'%'= ONhcnarb_sa@((      

dna )) direpo_sa@ ekil di_repo.a dna '%' >< direpo_sa@( ro )'%'= direpo_sa@((  	

dna  ) ot_tda@ DNA morf_tda@ NEEWTEB etad_repo.a ( EREHW

c ofni_tnemyap_db_t,b ofni_hcnarb_db_t,a wolfyap_mr_t MORF

musyad_reihsac# otni

etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna )'D'=yaw_lles ro 'B'=yaw_lles( dna 'FXW'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna 'A'=yaw_lles dna 'FXW'=yaw_yap.a nehw             

 esac(mus =  FXW_drac_elas	

,etar_nioc * ) dne  0 esle )0,tnuoma_yap(llunsi neht '款回帐挂' = )'',omem(llunsi  nehw esac(mus =  hzg_elas		

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'B'=yaw_lles dna 'GHC'=yaw_yap.a nehw 				

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'GHC'=yaw_yap.a nehw             

 esac(mus=GHC_ELAS         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap.a(llunsi neht )'B'=yaw_lles.a ro 'A'=yaw_lles.a( dna 'YAP_DRO' >< )'',omem.a(llunsi dna )'金订退' = )'',omem.a(llunsi ro '金订' = )'',omem.a(llunsi ro 'DRO'=yaw_yap.a( nehw             

 esac(mus =  dro_hsac_edart         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna )'FXW','CHS' ,'FJD','FIG' ,'HZG' ,'PHS' ,'VAS' ,'PIV' ,'DRC' ,'QHC' ,'DSU' ,'DKH' ,'BMR','GHC','DRO'(ni ton yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna )'FXW','CHS' ,'FJD','FIG' ,'HZG' ,'PHS' ,'VAS' ,'PIV' ,'DRC' ,'QHC' ,'DSU' ,'DKH' ,'BMR','GHC','DRO'(ni ton yaw_yap.a nehw             

 esac(mus =  yawyap_rehto         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'FJD'=yaw_yap.a nehw             

 esac(mus =  fjd_hsac_edart			

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'HZG'=yaw_yap.a nehw             

 esac(mus =  zg_hsac_edart         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'B'=yaw_lles dna 'SFIG'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'SFIG'=yaw_yap.a nehw             

 esac(mus =  BMR_hsac_evig         

型类段字成生确正时表时临成生为只，式方款付的在存不个一定指处此--         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht 'B'=yaw_lles dna 'PIV'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'PIV'=yaw_yap.a nehw             

 esac(mus =  PIV_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'CHS'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'CHS'=yaw_yap.a nehw             

 esac(mus =  CHS_drac_elas			

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'PHS'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'PHS'=yaw_yap.a nehw             

 esac(mus =  PHS_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'VAS'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'VAS'=yaw_yap.a nehw             

 esac(mus =  VAS_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna )'D'=yaw_lles ro 'B'=yaw_lles( dna 'DRC'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna 'A'=yaw_lles dna 'DRC'=yaw_yap.a nehw             

 esac(mus =  KNAB_drac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'QHC'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'QHC'=yaw_yap.a nehw             

 esac(mus =  BMR_llib_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'DSU'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'DSU'=yaw_yap.a nehw             

 esac(mus =  DSU_hsac_elas         

,etar_nioc *) dne 0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles ro 'B'=yaw_lles( dna 'DKH'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht 'A'=yaw_lles dna 'DKH'=yaw_yap.a nehw             

 esac(mus =  DKH_hsac_elas         

,etar_nioc * ) dne  0 esle             

)0,tnuoma_yap(llunsi neht )'D'=yaw_lles.a ro )'金订退' >< )'',omem(llunsi dna  'B'=yaw_lles.a(( dna 'BMR'=yaw_yap.a nehw             

)0,tnuoma_yap(llunsi neht '款回帐挂' >< )'',omem(llunsi dna '金订' >< )'',omem(llunsi dna 'A'=yaw_lles.a dna 'BMR'=yaw_yap.a nehw             

 esac(mus =  BMR_hsac_elas         

,) di_repo.a = di_repo erehw rotarepo_sys_t morf eman_repo tceles( = eman_reihsac         

   ,di_repo.a ,eman_hcnarb.b,on_hcnarb.a TCELES   

nigeb

sa

))03(rahcrav omem@,)6(rahcrav onslc_hcnarb@,)6(rahcrav ONhcnarb_sa@,)6(rahcrav direpo_sa@  

,emitetad ot_tda@,emitetad morf_tda@(troper_musyad_reihsac_p erudecorp etaerc


og

troper_musyad_reihsac_p erudecorp pord  

)'troper_musyad_reihsac_p'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$p_changeusertype(MS).sql^^^^

 ffo tnuocon tes

 nart timmoc

 emanepytkb@ epytpord_ps cexe

 1=epytdloled@ fi


 ' ',' ?','elipmocer_ps' rekrow_hcaerofSM_ps cexe--

 0= >sutats dna )' P' ,' FT' ,' FI' ,' NF' ,' RT' (ni epytx erehw

 stcejbosys.obd morf

 ']' +)' ]]'N ,']'N ,)di(eman_tcejbo(ECALPER +

'[.]' +)']]'N ,']'N ,)diu(eman_resu(ECALPER + '[' tceles

 rof labolg rosruc hcaEroFCh eralced

 器发触,数函义定自,程过储存新刷--


 ' ',' ?',' weivhserfer_ps' rekrow_hcaerofSM_ps cexe

 0= >sutats dna ' V' =epytx erehw

 stcejbosys.obd morf

 ']' +)']]'N ,']'N ,)di(eman_tcejbo(ECALPER +

 '[.]' +)']]'N ,']'N ,)diu(eman_resu(ECALPER + '[' tceles

 rof labolg rosruc hcaEroFCh eralced

 图视新刷--


 bt etacollaed

 bt esolc

 dne

 eman_elbat@,s@ otni bt morf txen hctef


----------------------------dne 理处束约引索对针--

/*

pmt_xedni# elbat pord


dne

)']YRAMIRP[ NO )]'+ emanepyt@ + '[(]' + eman_elbat@ + '[ NO ]' + man_xedni@ + '[ XEDNI  ETAERC'(cexe

理处引索集聚非当--

)man_xedni@ + ' xedni pord'(cexe

nigeb

 0 > )man_

xedni@(nel fi


emanepyt@ = syek_xedni erehw

 pmt_xedni# morf eman_xedni = man_xedni@ tceles

)005(rahcrav man_xedni@ eralced



a sa )'ofni_meti_db_t  xednipleh_ps cexe ;FFO YLNOTMF TES','7vmzssi=esabataD;=dwp;as=diu;.=REVRES'

,'BDELOLQS'

(TESWORNEPO morf pmt_xedni# otni * tceles

*/

----------------------------nigeb 理处束约引索对针---------


----------------------------dne 理处束约KP对针--

 )s@(cexe

esle

dne

)']YRAMIRP[ NO  )' + solc@ +'( deretsulc yek yramirp '+ eman_kp@ + ' tniartsnoc dda ' + eman_elbat@ + ' elbat retla'(cexe

)s@(cexe

)'; ' + eman_kp@ + ' tniartsnoc pord ' + eman_elbat@ + ' elbat retla'(cexe

)1 - )solc@(nel,solc@(tfel = solc@ tceles

'llun ton ' + s@ = s@ tceles

nigeb

0 > )eman_kp@(nel dna 0 > )solc@(nel fi


kp_ruc etacollaed

kp_ruc esolc

dne

eman_loc@,eman_kp@ otni kp_ruc morf txen hctef

solc@ + ',' + eman_loc@ = solc@ tceles

nigeb

0 = sutats_hctef@@ elihw

eman_loc@,eman_kp@ otni kp_ruc morf txen hctef

kp_ruc nepo



)    		

)61 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )51 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )41 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )31 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )21 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )11 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )01 ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )9  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )8  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )7  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )6  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )5  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )4  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )3  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )2  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c     		

ro )1  ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c( dna		

)diloc.1c ,didni.i ,eman_elbat_lluf@( loc_xedni = eman.c dna--		

008x0 = )008x0 & sutats.i( dna		

di.i = di.o dna		

di.c = di.o dna		

di_elbat@ = di.o		

erehw	

 o stcejbosys ,c snmulocsys ,i sexednisys		

morf	

)eman.c,emansys(trevnoc = EMAN_NMULOC		

,)eman.i,emansys(trevnoc = EMAN_KP		

tceles

 rof lacol rosruc kp_ruc eralced

'' = solc@ tceles

)eman_elbat_lluf@(di_tcejbo = di_elbat@ TCELES

)eman_elbat@(emanetouq = eman_elbat_lluf@ TCELES

)552(rahcravn	eman_elbat_lluf@ ERALCED

tni		di_elbat@ ERALCED

----------------------------nigeb 理处束约KP对针---------


 nigeb

 0=sutats_hctef@@ elihw

 eman_elbat@,s@ otni bt morf txen hctef

 bt nepo

 1=)'elbaTresUsI'N,di.a(ytreporptcejbo dna emanepytkb@=eman.b erehw

 epytresux.b=epytresux.a no b sepytsys nioj a snmulocsys morf

)di.a(eman_tcejbo,emanepyt@+' ]' +eman.a+'[ nmuloc retla ]' +)di.a(eman_tcejbo+'[ elbat retla' tceles rof

 lacol rosruc bt eralced

 )0008(rahcrav s@ eralced

)0008(rahcrav solc@ eralced

)001(rahcrav eman_loc@ eralced

)005(rahcrav eman_kp@ eralced

)005(rahcrav eman_elbat@ eralced

 量变义定自的增新用使,表改修.3--


 'llun ton'N,fedwen@,emanepyt@ epytdda_ps cexe

 esle

'llun'N,fedwen@,emanepyt@ epytdda_ps cexe

 1=llunwolla@ fi

 )度精的新按(量变义定自增新.2--


 ' EPYTATADRESU' ,emanepytkb@,emanepyt@ emaner_ps cexe

 称名的型类量变义定自改修.1--

 nart nigeb

 no troba_tcax tes


 ' ------------------------------------------------' tnirp

 emanepytkb@+' :为名改被将型类据数义定自的来原 ' tnirp

 ' ------------------------------------------------' tnirp

 ))63(rahcrav sa )(diwen(tsac=emanepytkb@ tes

 no tnuocon tes


 dne

 nruter

 ' ------------------------------------------------' tnirp

 ' 在存不型类义定自的改修要 ' tnirp

 ' ------------------------------------------------' tnirp

 nigeb

 )emanepyt@=eman erehw sepytsys morf 1 tceles(stsixe ton fi


 )63(rahcravn emanepytkb@ eralced

 sa

 除删为认默,名型类的份备除删后成完理处在否是-- 1=tib epytdloled@

 许允不示表0为,许允示表1为,LLUN许允否是-- ,1=tib llunwolla@

 义定的新-- ,emansys fedwen@

 名型类据数义定自的改修要-- ,emansys emanepyt@

 epytresuegnahc_p corp etaerc



og

epytresuegnahc_p erudecorp pord  

)'epytresuegnahc_p'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_generate_di_sheet(MS).sql^^^^

dne


dne	

)1 ,61 ,'错出单库入调直的成生核审，败失出调止终'(rorresiar		

 1- = ter@ tes		

nigeb	

 0 >< rorre@@ fi	

on_teehs_id@ = on_teehs erehw '1' = galf_evorppa tes retsam_teehs_mi_t etadpu	


dne	

)1 ,61 ,'错出表主入调成生，败失出调止终'(rorresiar		

1- = ter@ tes		

nigeb	

 0 >< rorre@@ fi	


)	

etad@ ,on_teehs_od@ + '：号单原，成生动自时单出调止终统系' ,tma_teehs@ ,llun		

 ,on_teehs_od@ ,'0' ,on_hcnarb@ ,on_hcnarb_id@ ,'+'		

 ,'ID' ,etad@ ,'1001' ,'1001' ,on_teehs_id@		

 (	

 seulav	

 )	

etad_krow ,omem ,tma_teehs ,etad_yap		

 ,on_rehcuov ,galf_evorppa ,on_hcnarb_d ,on_hcnarb ,on_bd		

 ,on_snart ,etad_repo ,di_repo ,nam_redro ,on_teehs		

 (	

 retsam_teehs_mi_t otni tresni	

)(etadteg = etad@ tes	


dne	

		)1 ,61 ,'错出细明入调成生，败失出调止终'(rorresiar		

1- = ter@ tes		

nigeb	

 0 >< rorre@@ fi	


on_teehs_od@ = on_teehs erehw	

liated_teehs_mi_t morf	

 omem ,ecirp_elas ,ytq_egral ,xat ,tma_bus		

 ,ecirp_dilav ,ecirp_igro ,ytq_laer ,on_meti ,on_teehs_id@ tceles	

 )	

 omem ,ecirp_elas ,ytq_egral ,xat ,tma_bus		

 ,ecirp_dilav ,ecirp_igro ,ytq_laer ,on_meti ,on_teehs		

 (	

 liated_teehs_mi_t otni tresni	


tuptuo on_teehs_id@ ,on_hcnarb@ ,'ID' on_teehs_teg_rp cexe	


;on_teehs_od@ = on_teehs erehw	

 retsam_teehs_mi_t morf	

 tma_teehs = tma_teehs@ ,on_hcnarb_d = on_hcnarb_id@ ,on_hcnarb = on_hcnarb@ tceles	


1 = ter@ tes	


emitetad etad@,		

ecirp_u	tma_teehs@,		

库仓出调单库出调直--			)6(rahcrav on_hcnarb@,		

库仓入调单库出调直--	)6(rahcrav on_hcnarb_id@ eralced	

nigeb

sa

)

号单单库入调直的成生--	tuptuo )81(rahcrav on_teehs_id@,	

志标功成行执程过储存--					tuptuo tib ter@,	

号单出调的出调止终被--			)81(rahcrav on_teehs_od@    

    	(

teehs_id_etareneg_rp erudecorp etaerc

单库入调直的成生新核审并--

理处单库入调直成生时出调止终在单库出调直--


og

teehs_id_etareneg_rp erudecorp pord  

)'teehs_id_etareneg_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_get_giftcertno(MS).sql^^^^

dne

ontrectfig@ tes--	


-- ffo tnuocon tes	

	

))onedoc_rts@(mirtr(mirtl = ontrectfig@ tes	

	

 dne	

1 + i_ll@ = i_ll@ tceles		

)'',rebmun_rts@(llunsi + )'',onedoc_rts@(llunsi = onedoc_rts@ tceles		

 )3,)rebmun_il@,)3(RAHCRAV(TREVNOC+'000'(THGIR = rebmun_rts@ tceles		

)tni sa )999 * )(dnar(gniliec(tsac = rebmun_il@ tceles		

	nigeb	

5=< i_ll@ elihw	


 1 = i_ll@	tes	


tni	i_ll@			

,)02(rahcrav	onedoc_rts@			

,)3(rahcrav rebmun_rts@			

,tni rebmun_il@ eralced	


-- no tnuocon tes	

nigeb

 sa

 )

号券礼-- tuptuo )02(rahcrav ontrectfig@	

型类务业--,)2(rahcrav on_epyt@	

(

ontrectfig_teg_rp erudecorp etaerc

号券礼成生：能功--



og

ontrectfig_teg_rp erudecorp pord  

)'ontrectfig_teg_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_get_sheet_no(MS).sql^^^^

dne

'' = on_teehs@ tes	

:rre


nruter	

	rahcxedni@ + etad@ + hcnarb_sl@ + on_snart@ = on_teehs@ tes	

)4 ,)xedni_on_teehs@ ,)4(rahcrav(trevnoc + '0000'(thgir = rahcxedni@ tes	

号水流位4 + )DDMMYY(期日 + 店分/构机 + 型类务业2：号单--	

	

dne	

dne		

 1 = xedni_on_teehs@ tes				

0 = xedni_on_teehs@ ro 00001 => xedni_on_teehs@ fi			

1 + ))4,on_teehs@(thgir ,tni(trevnoc = xedni_on_teehs@ tes			

nigeb		

esle		

1 = xedni_on_teehs@ tes			

'' = on_teehs@ ro llun si on_teehs@ fi		

'%' + on_teehs_pmet@ ekil on_teehs erehw retsam_teehs_mi_t morf )on_teehs(xam = on_teehs@  tceles		

etad@ + on_hcnarb@ + on_snart@ = on_teehs_pmet@ tes		

on_hcnarb@ = hcnarb_sl@ tes		

nigeb	

esle	

dne	

rre otog 0 >< rorre@@ fi		

	on_snart@ = di_teehs erehw xedni_on_teehs@ = eulav_teehs tes on_teehs_sys_t etadpu		

1 = xedni_on_teehs@ tes			

0 =< xedni_on_teehs@ ro 00001 => xedni_on_teehs@ fi		

on_snart@ = di_teehs erehw on_teehs_sys_t morf 1 + eulav_teehs = xedni_on_teehs@ tceles		

'000' = hcnarb_sl@ tes		

nigeb	

))'5','0'(ni epyt_edart dna on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf 1 tceles(stsixe fi	

)号水流序顺是则店分而，号取表统系据单从号单部总(生产店分是还生产部总由是号单虑考须必--	

	

   	

)6 ,)211 ,)(etadteg ,)01(rahcrav(trevnoc(thgir =etad@ tceles	

'' = on_teehs@ tes	

	

)6(rahcrav				hcnarb_sl@ 					

,)4(rahcrav			 rahcxedni@ 					

,tni	 xedni_on_teehs@ 					

,)6(rahcrav						 etad@ 					

,)81(rahcrav	 on_teehs_pmet@  eralced	

nigeb

sa

)

tuptuo )81(rahcrav	on_teehs@    

,)6(rahcrav on_hcnarb@    

	,)2(rahcrav on_snart@    

	(

on_teehs_teg_rp erudecorp etaerC


og

on_teehs_teg_rp erudecorp pord  

)'on_teehs_teg_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_get_worklist(MS).sql^^^^

dne

0 > mun.b dna on_snart.b = on_snart.a erehw    

b mun_tsilkrow_lbt#           

 ,a unem_tsilkrow_lbt# morf      

 mun.b,eman_unem.a,di_unem.a           

31 pot tceles    

   

on_snart yb puorg    

b sa )    

'0'=)'0',galf_evorppa(llunsi erehw ofni_metippa_db_t morf mun sa )1(tnuoc,'' tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OO' = on_snart erehw  retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb_d dna 'IM' = on_snart erehw   retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg'0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OM' = on_snart erehw   retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'PB' = on_snart erehw  retsam_yapcer_mf_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'BF' = on_snart erehw  retsam_egrahc_mf_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'PR' = on_snart erehw  retsam_yapcer_mf_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'PC' = on_snart erehw  retsam_yapcer_mf_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'GF' = on_snart erehw  retsam_egrahc_mf_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna ))3,on_kcots@(tfel=on_hcnarb ro       

 on_kcots@ ekil on_hcnarb ro 'LLA'=on_hcnarb( dna 'UP' = on_snart erehw retsam_wolf_ecirp_cp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna ))3,on_kcots@(tfel=on_hcnarb ro       

 on_kcots@ ekil on_hcnarb ro 'LLA'=on_hcnarb( dna 'HP' = on_snart erehw retsam_wolf_ecirp_cp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna ))3,on_kcots@(tfel=on_hcnarb ro       

 on_kcots@ ekil on_hcnarb ro 'LLA'=on_hcnarb( dna 'NP' = on_snart erehw retsam_wolf_ecirp_cp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna ))3,on_kcots@(tfel=on_hcnarb ro       

 on_kcots@ ekil on_hcnarb ro 'LLA'=on_hcnarb( dna 'SP' = on_snart erehw retsam_wolf_ecirp_cp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna ))3,on_kcots@(tfel=on_hcnarb ro       

 on_kcots@ ekil on_hcnarb ro 'LLA'=on_hcnarb( dna 'XP' = on_snart erehw retsam_wolf_ecirp_cp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

) '3' >< epyt_edart dna on_kcots@ ekil on_hcnarb erehw ofni_hcnarb_db_t morf on_hcnarb tceles( ni  on_hcnarb DNA    

 '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb erehw tini_kcehc_mi_t morf mun sa )1(tnuoc,'DP'= on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'IR' = on_snart erehw     retsam_teehs_mw_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OS' = on_snart erehw     retsam_teehs_mw_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'SS' = on_snart erehw     retsam_teehs_mw_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OR' = on_snart erehw     retsam_teehs_mp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' = galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'TR' = on_snart erehw	retsam_teehs_mp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'IP' = on_snart erehw     retsam_teehs_mp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OP' = on_snart erehw     retsam_teehs_mp_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu 

   

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OI' = on_snart erehw   retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'PA' = on_snart erehw   retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

))'0'=ecno_tropmi@  ro '' = )'',galf_ni.retsam_teehs_mi_t(llunsi dna '1'= ecno_tropmi@( dna ytq_laer.liated_teehs_mi_t < ytq_redro.liated_teehs_mi_t dna		 

 on_teehs.liated_teehs_mi_t = on_teehs.retsam_teehs_mi_t erehw liated_teehs_mi_t morf 1 tceles( stsixe dna	       

6 = )on_hcnarb_d(nel dna)m_on_kcots@ = on_hcnarb_d ro on_kcots@ = on_hcnarb_d ( dna 'OD' = on_snart erehw retsam_teehs_mi_t morf mun sa )1(tnuoc, 'ID' = on_snart tceles    

lla noinu    

)211 ,)(etadteg ,)01(rahc(trevnoc>)211 ,etad_dilav ,)01(rahc(trevnoc dna ))'2','3' (ni ton sutats_redro ( dna                             

6 = )on_hcnarb_d(nel dna on_kcots@ = on_hcnarb_d                              

 dna 'YD' = on_snart erehw retsam_teehs_mp_t morf mun sa )1(tnuoc, 'OD' = on_snart tceles    

lla noinu    

)211 ,)(etadteg ,)01(rahc(trevnoc>)211 ,etad_dilav ,)01(rahc(trevnoc dna ))'2','3' (ni ton sutats_redro ( dna                             

3 = )on_hcnarb_d(nel dna on_kcots@ ekil on_hcnarb_d                              

 dna 'YD' = on_snart erehw retsam_teehs_mp_t morf mun sa )1(tnuoc, 'OD' = on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna )on_kcots@ ekil on_hcnarb_d ro on_kcots@ ekil on_hcnarb( dna 'ID' = on_snart erehw   retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'OD' = on_snart erehw   retsam_teehs_mi_t morf mun sa )1(tnuoc,on_snart tceles    

lla noinu    

on_snart yb puorg '0' =  galf_evorppa dna on_kcots@ ekil on_hcnarb dna 'YD' = on_snart erehw   retsam_teehs_mp_t morf mun sa )1(tnuoc,on_snart tceles    

(     

 morf    

mun_tsilkrow_lbt# otni      

mun sa )mun(mus ,on_snart tceles    


'%' + on_kcots@ = on_kcots@ tceles	

     

)'3012','6015','7047','1047','2027','0113','9039','7126','5126','2047','3018','8018'( ni ton di_unem.a dna--     

) '1047','1031','1041'                            

,'1037','5039','3039','2039','1039','3029','2029','6018','5018','4018','2018','1018'                    	

,'3027','6015','2015','1015','5013','3013','2013','1013','4012','2012','1012','1061'( ni di_unem.a dna  	

dIrepo@ = di_repo.b dna  	

di_cnuf.b = di_unem.a dna  	

galf_hcnarb@ ekil galf_hcnarb.a dna  	

)'1041'=di_unem.a ro 'EEHS' = epyt_unem.a( erehw	

b tnarg_repo_sys_t       	

,a unem_sys_t morf  	

unem_tsilkrow_lbt# otni      

on_snart sa )'',)2,2,retemarap_nepo.a(gnirtsbus(llunsi ,eman_unem.a ,di_unem.a tceles	

    

	

'%1___' = galf_hcnarb@ tceles   	

店盟加-- '8' = epyt_edart@  fi esle	

'%_1__' = galf_hcnarb@ tceles   	

店营自-- '3' = epyt_edart@ ro '7' = epyt_edart@  fi esle	

'%__1_' = galf_hcnarb@ tceles   	

心中送配,处事办-- '2' = epyt_edart@ ro '1' = epyt_edart@  fi esle	

'%___1' = galf_hcnarb@ tceles   	

部总-- '0' = epyt_edart@ fi	


dne	

on_kcots@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_edart@ tceles   	

)3,1,on_kcots@(gnirtsbus = on_kcots@ tceles   	     

nigeb	    

性属级一上取要需库仓-- )'5' = epyt_edart@( fi	

on_kcots@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_edart@ tceles	

  on_kcots@ = m_on_kcots@ tceles	

'on_kcots_g' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = on_kcots@ tceles--	

'0'= ecno_tropmi@  tceles		

llun si ecno_tropmi@ fi	

'ecno_tropmi_md'= di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = ecno_tropmi@ TCELES	

)1(rahcrav ecno_tropmi@,)1(rahcrav galf_ni@,)8(rahcrav galf_hcnarb@ ,)1(rahc epyt_edart@, )6(rahcrav m_on_kcots@ eralced	

店盟加本版式布分示表级四第--	

店分能功全营自本版式布分示表级三第--	

心中送配/处事办本版式布分示表级二第--	

部总本版式布分示表级一第--	

nigeb

sa

))6(rahcrav on_kcots@,)4(rahcrav dIrepo@( tsilkrow_teg_rp erudecorp etaerc



og

tsilkrow_teg_rp erudecorp pord  

)'tsilkrow_teg_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_getsheetno(MS).sql^^^^

 dne

 nruter	

on_v@ + )6,etad_s@(thgir + on_hcnarb@ + )di_teehs@(reppu = on_v@ tceles	

)211,)(etadteg,)8(rahc(trevnoc=etad_s@ tceles	

	

on_v+)'ddmmyyyy',)(yadot(gnirts+)di_teehs@(reppu = on_teehs@--	

)4,)on_v@(mirtr(thgir = on_v@ tceles	

)on_teehs@,rahc(trevnoc+'0000' = on_v@ tceles	

)di_teehs@(rewoL = )di_teehs(rewoL 	

erehw on_teehs@ =eulav_teehs tes on_teehs_sys_t etadpu	

	

 	0= on_teehs@   tes   	

  9999>on_teehs@ fi	

)di_teehs@(rewoL = )di_teehs(rewoL erehw	on_teehs_sys_t morf    	

	 )1 + )0,eulav_teehs(llunsi(=on_teehs@ tceles	

)3,'00'+on_hcnarb@(tfel=on_hcnarb@ tceles	

emitetad etad_d@,)8(rahcrav etad_s@,tni on_teehs@ eralced	

nigeb

 sa

)tuptuo )02(rahcrav on_v@, )6(rahcrav on_hcnarb@, )01(rahcrav di_teehs@ (onteehsteg_rp erudecorp   etaerc


og

onteehsteg_rp erudecorp pord  

)'onteehsteg_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_pc_price_flow_effect(MS).sql^^^^

 dne


))121,etad_dne,)01(rahc(trevnoc > )121,)(etadteg,)01(rahc(trevnoc(  dna )'LLA' = on_hcnarb rO '000'=on_hcnarb( dna '9'=epyt_laiceps erehw   

 ecirp_ceps_mr_t morf eteled   

/*********61-70-4002***品商1+001的效失除删***********/   

   

'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t eteled  


 rosruc_wolfecirp  etacollaed  

rosruc_wolfecirp esolc	


 dne  

2tsil_hcnarb@,tsil_hcnarb@,5piv_dlo@,5piv_wen@,4piv_dlo@,4piv_wen@,3piv_dlo@,3piv_wen@,2piv_dlo@,2piv_wen@,1piv_dlo@,1piv_wen@ 	

,4ecirp_dlo@,4ecirp_wen@,3ecirp_dlo@,3ecirp_wen@,2ecirp_dlo@,2ecirp_wen@ 	

,epyt_ecirp@,galf_hcnarb@,ecirp_dlo@,ecirp_wen@ ,on_meti@ ,galf_dilav@ 		

,on_teehs@ ,on_hcnarb@ ,on_snart@ otni rosruc_wolfecirp hctef	


 5piv_dlo@, 5piv_wen@         

, 4piv_dlo@, 4piv_wen@, 3piv_dlo@, 3piv_wen@, 2piv_dlo@, 2piv_wen@, 1piv_dlo@, 1piv_wen@         

, 4ecirp_dlo@, 4ecirp_wen@, 3ecirp_dlo@, 3ecirp_wen@, 2ecirp_dlo@, 2ecirp_wen@, epyt_ecirp@         

, galf_hcnarb@,ecirp_dlo@ ,ecirp_wen@ ,on_meti@ ,xp_on_hcnarb@  xpr_tceffe_wolf_ecirp_cp_rp cexe    

价调联关 91.01.6002 csgnauH yB ddA--    

	

dne	

nruter   	

'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t eteled   	

rosruc_wolfecirp  etacollaed   	

nigeb	

 0 =! rorre@@ fi	


	

on_teehs@ = on_teehs erehw		

 '1' = galf_dilav tes  		

retsam_wolf_ecirp_cp_t etadpu   	

 esle	

 dne 	

dne   	

on_teehs@ = on_teehs erehw  			

 '2' = galf_dilav tes				

retsam_wolf_ecirp_cp_t etadpu 			

esle  		

on_teehs@ = on_teehs erehw  			

 '1' = galf_dilav tes				

retsam_wolf_ecirp_cp_t etadpu 			

 on_hcnarb_g@ = on_hcnarb@ fi  		

  nigeb   	

esle   	

on_teehs@ = on_teehs erehw   		

 '2' = galf_dilav tes 			

retsam_wolf_ecirp_cp_t etadpu  		

 'LLA' = on_hcnarb@ fi   	

nigeb	

'000' = on_hcnarb_g@ fi	

))'1'为设部全(:部分(             --	

)'2'为设>--'LLA'为码编,'2'为设>--部分为码编,'1'为设>--部总为码编(:部总(志标效生新更 --	


dne 	

						

 dne                       

rosruc_hcnarb  etacollaed                        	

rosruc_hcnarb esolc				

	dne			

on_hcnarb@ otni rosruc_hcnarb hctef				

:1tsixe_on                                   

dne					

					

)tsil_hcnarb@,)dne 5ecirp_piv_meti@ esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 4ecirp_piv_meti@ esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 3ecirp_piv_meti@ esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 2ecirp_piv_meti@ esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac(			  				

,'0'			  				

,)dne ecirp_emehcs_meti@ esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_piv_meti@ esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac(							

,)dne ecirp_elas_meti@ esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_esab_meti@ esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_meti@ esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac(				  			

,on_meti@,on_hcnarb@( SEULAV			  			

  )tsil_ecirp, 5ecirp_piv,4ecirp_piv ,3ecirp_piv,2ecirp_piv		  					

   ,galf_moc,ecirp_emehcs,ecirp_piv,ecirp_elas ,ecirp_esab ,ecirp ,on_meti ,on_hcnarb (							

 ecirp_hcnarb_cp_t OTNI TRESNI						

nigeb					

esle					

dne					

on_meti@=on_meti dna on_hcnarb@=on_hcnarb EREHW		  				 

'0'=galf_moc                                                        

,tsil_hcnarb@ = tsil_ecirp							

,)dne 5ecirp_piv esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac( = 5ecirp_piv							

,)dne 4ecirp_piv esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac( = 4ecirp_piv							

,)dne 3ecirp_piv esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac( = 3ecirp_piv							

,)dne 2ecirp_piv esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac( = 2ecirp_piv							

,)dne ecirp_piv esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac( = ecirp_piv							

,)dne ecirp_emehcs esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac( = ecirp_emehcs							

,)dne ecirp_elas esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac( = ecirp_elas							

,)dne ecirp_esab esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac( = ecirp_esab							

,)dne ecirp esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac( = ecirp TES							

 ecirp_hcnarb_cp_t ETADPU						

nigeb					

在存否是-- )on_hcnarb@=on_hcnarb dna )on_meti@ = on_meti( erehw ecirp_hcnarb_cp_t morf '1' tceles(stsixe  fi					

					

dne						

)on_meti@ = on_meti( erehw			 				

)dne 5ecirp_piv esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac( = 5ecirp_piv				   				

,)dne 4ecirp_piv esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac( = 4ecirp_piv				   				

,)dne 3ecirp_piv esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac( = 3ecirp_piv				   				

,)dne 2ecirp_piv esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac( = 2ecirp_piv				   				

,)dne ecirp_piv esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac( = ecirp_piv				   				

, etad_etadpu@=etad_etadpu				   				

,)dne ecirp_emehcs esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac( = ecirp_emehcs				   				

,)dne ecirp_elas esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac( = ecirp_elas				   				

,)dne ecirp_esab esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac( = ecirp_esab				   				

,)dne ecirp esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac( = ecirp tes			   					

 ofni_meti_db_t etadpu							

'0' = galf_moc_sl@ tceles							

nigeb			 			

esle		 			

'1' = galf_moc_sl@ tceles						

)单价调的部总即(单价调的地本部分非 -- )on_hcnarb_g@ >< galf_hcnarb@( fi	    				

                 	


1tsixe_on otog  	  				

0 > ))2tsil_hcnarb@(mirtr(nel dna 0 =< )2tsil_hcnarb@,'|'+)on_hcnarb@(mirtr+'|'(xednirahc fi      	  			

nigeb  			

0=sutats_hctef@@ elihw			

on_hcnarb@ otni rosruc_hcnarb hctef			

rosruc_hcnarb nepo	     		

				

dne				

))on_hcnarb_g@(mirtr(mirtl ekil )3,on_hcnarb(tfel dna )'6','5','8','7','3','4','1','0'(ni epyt_edart erehw ofni_hcnarb_db_t morf on_hcnarb tcnitsid tceles					

rof rosruc rosruc_hcnarb eralced					

nigeb				

esle                     

dne				

)on_hcnarb@(mirtr = )3,on_hcnarb(tfel dna )'6','5','8','7','3','4','1','0'(ni epyt_edart erehw ofni_hcnarb_db_t morf on_hcnarb tcnitsid tceles					

rof rosruc rosruc_hcnarb eralced					

nigeb				

'LLA' >< )on_hcnarb@(mirtr dna 3 = ))on_hcnarb@(mirtr(nel  fi                     


nigeb		

部分-- '000' >< on_hcnarb_g@ dna )3 = ))on_hcnarb@(mirtr(nel ro 0 > ) )6,2,2tsil_hcnarb@(gnirtsbus(nel ro'LLA' = on_hcnarb@ ro on_hcnarb_g@ = on_hcnarb@( fi esle	

dne		

dne	 			

dne					

)tsil_hcnarb@,)dne 5ecirp_piv_meti@ esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 4ecirp_piv_meti@ esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 3ecirp_piv_meti@ esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 2ecirp_piv_meti@ esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac(			  				

,'0'			  				

,)dne ecirp_emehcs_meti@ esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_piv_meti@ esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_elas_meti@ esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_esab_meti@ esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_meti@ esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac(			  				

,on_meti@,on_hcnarb@( SEULAV			  			

  ) tsil_ecirp,5ecirp_piv,4ecirp_piv ,3ecirp_piv,2ecirp_piv		  					

   ,galf_moc,ecirp_emehcs,ecirp_piv,ecirp_elas ,ecirp_esab ,ecirp ,on_meti ,on_hcnarb (							

 ecirp_hcnarb_cp_t OTNI TRESNI						

nigeb					

esle					


dne					

on_meti@=on_meti dna on_hcnarb@=on_hcnarb EREHW		  				

'0'=galf_moc                                        		

,tsil_hcnarb@ = tsil_ecirp							

,)dne 5ecirp_piv esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac( = 5ecirp_piv							

,)dne 4ecirp_piv esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac( = 4ecirp_piv							

,)dne 3ecirp_piv esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac( = 3ecirp_piv							

,)dne 2ecirp_piv esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac( = 2ecirp_piv							

,)dne ecirp_piv esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac( = ecirp_piv							

,)dne ecirp_emehcs esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac( = ecirp_emehcs							

,)dne ecirp_elas esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac( = ecirp_elas							

,)dne ecirp_esab esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac( = ecirp_esab							

,)dne ecirp esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac( = ecirp TES							

 ecirp_hcnarb_cp_t ETADPU						

nigeb					

在存否是-- )on_hcnarb@=on_hcnarb dna )on_meti@ = on_meti( erehw ecirp_hcnarb_cp_t morf '1' tceles(stsixe fi					

nigeb				

esle			

dne				

rosruc_hcnarb  etacollaed					

 rosruc_hcnarb esolc					

dne					

on_hcnarb@ otni rosruc_hcnarb hctef						

:tsixe_on		  				

)tsil_hcnarb@,)dne 5ecirp_piv_meti@ esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 4ecirp_piv_meti@ esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 3ecirp_piv_meti@ esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne 2ecirp_piv_meti@ esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac(			  				

,'0'			  				

,)dne ecirp_emehcs_meti@ esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_piv_meti@ esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_elas_meti@ esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_esab_meti@ esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac(			  				

,)dne ecirp_meti@ esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac(			  				

,on_meti@,on_hcnarb@( SEULAV			  				

  )tsil_ecirp, 5ecirp_piv,4ecirp_piv ,3ecirp_piv,2ecirp_piv		  						

   ,galf_moc,ecirp_emehcs,ecirp_piv,ecirp_elas ,ecirp_esab ,ecirp ,on_meti ,on_hcnarb (								

 ecirp_hcnarb_cp_t OTNI TRESNI							

ESLE						

on_meti@=on_meti dna on_hcnarb@=on_hcnarb EREHW			  				

'0'=galf_moc                                                		

,tsil_hcnarb@ = tsil_ecirp								

,)dne 5ecirp_piv esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac( = 5ecirp_piv								

,)dne 4ecirp_piv esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac( = 4ecirp_piv								

,)dne 3ecirp_piv esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac( = 3ecirp_piv								

,)dne 2ecirp_piv esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac( = 2ecirp_piv								

,)dne ecirp_piv esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac( = ecirp_piv								

,)dne ecirp_emehcs esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac( = ecirp_emehcs								

,)dne ecirp_elas esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac( = ecirp_elas								

,)dne ecirp_esab esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac( = ecirp_esab								

,)dne ecirp esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac( = ecirp TES								

 ecirp_hcnarb_cp_t ETADPU							

在存不 -- )) on_meti@=on_meti dna on_hcnarb@=on_hcnarb(erehw ecirp_hcnarb_cp_t morf * tceles(stsixe FI						


tsixe_on otog  			  				

0 > ))2tsil_hcnarb@(mirtr(nel dna 0 =< )2tsil_hcnarb@,'|'+)on_hcnarb@(mirtr+'|'(xednirahc fi		  				

nigeb	--	  				

 0 > ) )6,2,2tsil_hcnarb@(gnirtsbus(nel FI--	  				

nigeb	  				

0=sutats_hctef@@ elihw					

on_hcnarb@ otni rosruc_hcnarb hctef					

rosruc_hcnarb nepo					

	--						

dne						

)'6','5','8','7','3','4','1','0'(ni epyt_edart erehw ofni_hcnarb_db_t morf on_hcnarb tcnitsid tceles									

rof rosruc rosruc_hcnarb eralced							

nigeb						

esle					

dne						

on_hcnarb@ = onslc_hcnarb erehw ofni_hcnarb_db_t morf on_hcnarb tcnitsid tceles									

rof rosruc rosruc_hcnarb eralced							

nigeb						

2 = ))on_hcnarb@(mirtr(nel fi esle					

dne						

)on_hcnarb@(mirtr = )3,on_hcnarb(tfel dna )'6','5','8','7','3','4','1','0'(ni epyt_edart erehw ofni_hcnarb_db_t morf on_hcnarb tcnitsid tceles									

rof rosruc rosruc_hcnarb eralced							

nigeb						

'LLA' >< )on_hcnarb@(mirtr dna 3 = ))on_hcnarb@(mirtr(nel  fi					

品商的构机各的中表存不入插先 --					

nigeb				

2 = ))on_hcnarb@(mirtr(nel ro 3 = ))on_hcnarb@(mirtr(nel ro 0 > ) )6,2,2tsil_hcnarb@(gnirtsbus(nel ro 'LLA' = on_hcnarb@ fi			

nigeb			

'000' = on_hcnarb_g@ fi		

on_meti@ = on_meti erehw ofni_meti_db_t morf					

5ecirp_piv = 5ecirp_piv_meti@					

,4ecirp_piv = 4ecirp_piv_meti@,3ecirp_piv = 3ecirp_piv_meti@,2ecirp_piv = 2ecirp_piv_meti@,ecirp_piv = ecirp_piv_meti@					

,ecirp_emehcs = ecirp_emehcs_meti@,ecirp_elas = ecirp_elas_meti@,ecirp_esab = ecirp_esab_meti@,ecirp = ecirp_meti@ tceles			

格价各中案档品商取--	

dne		   	

)on_meti@ = on_meti( erehw			 		

)dne 5ecirp_piv esle 5piv_wen@ neht '1' nehw )1,9,tsil_hcnarb@(gnirtsbus esac( = 5ecirp_piv				   		

,)dne 4ecirp_piv esle 4piv_wen@ neht '1' nehw )1,8,tsil_hcnarb@(gnirtsbus esac( = 4ecirp_piv				   		

,)dne 3ecirp_piv esle 3piv_wen@ neht '1' nehw )1,7,tsil_hcnarb@(gnirtsbus esac( = 3ecirp_piv				   		

,)dne 2ecirp_piv esle 2piv_wen@ neht '1' nehw )1,6,tsil_hcnarb@(gnirtsbus esac( = 2ecirp_piv				   		

,)dne ecirp_piv esle 1piv_wen@ neht '1' nehw )1,5,tsil_hcnarb@(gnirtsbus esac( = ecirp_piv				   		

, etad_etadpu@=etad_etadpu				   		

,)dne ecirp_emehcs esle 4ecirp_wen@ neht '1' nehw )1,4,tsil_hcnarb@(gnirtsbus esac( = ecirp_emehcs				   		

,)dne ecirp_elas esle 3ecirp_wen@ neht '1' nehw )1,3,tsil_hcnarb@(gnirtsbus esac( = ecirp_elas				   		

,)dne ecirp_esab esle 2ecirp_wen@ neht '1' nehw )1,2,tsil_hcnarb@(gnirtsbus esac( = ecirp_esab				   		

,)dne ecirp esle ecirp_wen@ neht '1' nehw )1,1,tsil_hcnarb@(gnirtsbus esac( = ecirp  tes			   		

 ofni_meti_db_t etadpu				

nigeb			

 )0 > )2tsil_hcnarb@,'|'+)on_kcots_g@(mirtr+'|'(xednirahc ro 0 > )2tsil_hcnarb@,'|'+)on_hcnarb_g@(mirtr+'|'(xednirahc(                      

 dna )on_kcots_g@ = on_hcnarb@ ro 2 = )on_hcnarb@(nel ro 'LLA' = on_hcnarb@ ro on_hcnarb_g@ = on_hcnarb@( fi	  	

41-70-0102 jsgnat 格价案档品商新更亦时同，格价库仓认默调--	   	

nigeb   	

70.30.6002 csgnauH yB ddA 价送配\价发批\价员会\价售零\价进 --  'XP'=on_snart@ fi   

	'|' + 2tsil_hcnarb@ = 2tsil_hcnarb@ tceles  0 > ))2tsil_hcnarb@(mirtr(nel fi   

)'',2tsil_hcnarb@(llunsi = 2tsil_hcnarb@ tceles   

)on_hcnarb_g@(mirtr = on_hcnarb_g@ fi   

)on_hcnarb@(mirtr = on_hcnarb@ fi   

nigeb  

0=sutats_hctef@@ elihw  

on_hcnarb@=xp_on_hcnarb@ tceles  

   				

2tsil_hcnarb@,tsil_hcnarb@,5piv_dlo@,5piv_wen@,4piv_dlo@,4piv_wen@,3piv_dlo@,3piv_wen@,2piv_dlo@,2piv_wen@,1piv_dlo@,1piv_wen@   				

,4ecirp_dlo@,4ecirp_wen@,3ecirp_dlo@,3ecirp_wen@,2ecirp_dlo@,2ecirp_wen@   			

,epyt_ecirp@,galf_hcnarb@,ecirp_dlo@,ecirp_wen@ ,on_meti@ ,galf_dilav@   						

,on_teehs@ ,on_hcnarb@ ,on_snart@ otni rosruc_wolfecirp hctef  

rosruc_wolfecirp nepo  



 on_teehs.a yb redro		

))(etadteg =< etad_dilav.a ( dna  		

)'2' = galf_dilav.a ro '0' = galf_dilav.a ( dna  		

 ) 'XP' = on_snart.a ( dna )'1' = galf_evorppa.a ( dna  		

 ) on_teehs.b = on_teehs.a ( erehw		

   b liated_wolf_ecirp_cp_t  			

 ,a retsam_wolf_ecirp_cp_t morf 		

2tsil_hcnarb.a,tsil_hcnarb.a   			

,5piv_dlo.b,5piv_wen.b,4piv_dlo.b,4piv_wen.b,3piv_dlo.b,3piv_wen.b,2piv_dlo.b,2piv_wen.b,1piv_dlo.b,1piv_wen.b   			

,4ecirp_dlo.b,4ecirp_wen.b,3ecirp_dlo.b,3ecirp_wen.b,2ecirp_dlo.b,2ecirp_wen.b   			

,epyt_ecirp.b,galf_hcnarb.a ,ecirp_dlo.b,ecirp_wen.b ,on_meti.b ,galf_dilav.a   					

,on_teehs.a ,on_hcnarb.a ,on_snart.a tcnitsid tceles   	

rof rosruc rosruc_wolfecirp eralced 	

esle  

 on_teehs.a yb redro		

))(etadteg =< etad_dilav.a ( dna  )'0' = galf_dilav.a ( dna  		

 )'XP' = on_snart.a ( dna )'1' = galf_evorppa.a ( dna  		

 ) on_teehs.b = on_teehs.a ( erehw		

   b liated_wolf_ecirp_cp_t  			

 ,a retsam_wolf_ecirp_cp_t morf 		

2tsil_hcnarb.a,tsil_hcnarb.a   			

,5piv_dlo.b,5piv_wen.b,4piv_dlo.b,4piv_wen.b,3piv_dlo.b,3piv_wen.b,2piv_dlo.b,2piv_wen.b,1piv_dlo.b,1piv_wen.b   			

,4ecirp_dlo.b,4ecirp_wen.b,3ecirp_dlo.b,3ecirp_wen.b,2ecirp_dlo.b,2ecirp_wen.b   			

,epyt_ecirp.b ,galf_hcnarb.a ,ecirp_dlo.b,ecirp_wen.b ,on_meti.b ,galf_dilav.a   					

,on_teehs.a ,on_hcnarb.a ,on_snart.a tcnitsid tceles   	

rof rosruc rosruc_wolfecirp eralced	   

'000' = on_hcnarb_g@ fi   

)效生未但表格价库仓新更已:'2' , 效生已:'1' ,效生未:'0' ( galf_dilav --  



'1'=ecirp_hcnarb.ofni_meti_db_t dna          --

dne  

dne   	

nruter   		

'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t eteled   		

nigeb   	

 0 =! rorre@@ fi	

)  galf_elas.ecirp_hcnarb_cp_t >< galf_elas.ofni_meti_db_t ro			

 ecirp_emehcs.ecirp_hcnarb_cp_t >< ecirp_emehcs.ofni_meti_db_t ro			

 ecirp_piv.ecirp_hcnarb_cp_t >< ecirp_piv.ofni_meti_db_t ro			

 ecirp_elas.ecirp_hcnarb_cp_t >< ecirp_elas.ofni_meti_db_t ro			

 ecirp_esab.ecirp_hcnarb_cp_t >< ecirp_esab.ofni_meti_db_t ro			

 ecirp.ecirp_hcnarb_cp_t >< ecirp.ofni_meti_db_t( dna  		

)on_kcots_g@=on_hcnarb.ecirp_hcnarb_cp_t( dna  		

on_meti.ecirp_hcnarb_cp_t=on_meti.ofni_meti_db_t erehw		

ecirp_hcnarb_cp_t,ofni_meti_db_t morf		

galf_elas.ecirp_hcnarb_cp_t = galf_elas		

,)dne )0,5ecirp_piv.ofni_meti_db_t(llunsi esle )0,5ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,9,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=5ecirp_piv		

,)dne )0,4ecirp_piv.ofni_meti_db_t(llunsi esle )0,4ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,8,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=4ecirp_piv		

,)dne )0,3ecirp_piv.ofni_meti_db_t(llunsi esle )0,3ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,7,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=3ecirp_piv		

,)dne )0,2ecirp_piv.ofni_meti_db_t(llunsi esle )0,2ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,6,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=2ecirp_piv		

,)dne )0,ecirp_piv.ofni_meti_db_t(llunsi esle )0,ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,5,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_piv		

,)dne )0,ecirp_emehcs.ofni_meti_db_t(llunsi esle )0,ecirp_emehcs.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,4,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_emehcs		

,)dne )0,ecirp_elas.ofni_meti_db_t(llunsi esle )0,ecirp_elas.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,3,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_elas		

,)dne )0,ecirp_esab.ofni_meti_db_t(llunsi esle )0,ecirp_esab.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,2,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_esab		

,)dne )0,ecirp.ofni_meti_db_t(llunsi esle )0,ecirp.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,1,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp		

 tes ofni_meti_db_t etadpu 	


dne	

nruter   	

'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t eteled   	

nigeb   	

 0 =! rorre@@ fi	

)   galf_elas.ecirp_hcnarb_cp_t >< galf_elas.ofni_meti_db_t ro			

ecirp_emehcs.ecirp_hcnarb_cp_t >< ecirp_emehcs.ofni_meti_db_t ro			

 ecirp_piv.ecirp_hcnarb_cp_t >< ecirp_piv.ofni_meti_db_t ro			

 ecirp_elas.ecirp_hcnarb_cp_t >< ecirp_elas.ofni_meti_db_t ro			

 ecirp_esab.ecirp_hcnarb_cp_t >< ecirp_esab.ofni_meti_db_t ro			

 ecirp.ecirp_hcnarb_cp_t >< ecirp.ofni_meti_db_t( dna  		

) on_hcnarb_g@=on_hcnarb.ecirp_hcnarb_cp_t ( dna  		

on_meti.ecirp_hcnarb_cp_t=on_meti.ofni_meti_db_t erehw		

ecirp_hcnarb_cp_t,ofni_meti_db_t morf		

galf_elas.ecirp_hcnarb_cp_t = galf_elas		

,)dne )0,5ecirp_piv.ofni_meti_db_t(llunsi esle )0,5ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,9,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=5ecirp_piv		

,)dne )0,4ecirp_piv.ofni_meti_db_t(llunsi esle )0,4ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,8,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=4ecirp_piv		

,)dne )0,3ecirp_piv.ofni_meti_db_t(llunsi esle )0,3ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,7,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=3ecirp_piv		

,)dne )0,2ecirp_piv.ofni_meti_db_t(llunsi esle )0,2ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,6,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=2ecirp_piv		

,)dne )0,ecirp_piv.ofni_meti_db_t(llunsi esle )0,ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,5,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_piv		

,)dne )0,ecirp_emehcs.ofni_meti_db_t(llunsi esle )0,ecirp_emehcs.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,4,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_emehcs		

,)dne )0,ecirp_elas.ofni_meti_db_t(llunsi esle )0,ecirp_elas.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,3,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_elas		

,)dne )0,ecirp_esab.ofni_meti_db_t(llunsi esle )0,ecirp_esab.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,2,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_esab		

,)dne )0,ecirp.ofni_meti_db_t(llunsi esle )0,ecirp.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,1,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp		

 tes ofni_meti_db_t etadpu	  

	nigeb  

 '8' = epyt_kcots_g@ ro'7' = epyt_kcots_g@ fi  


dne  

dne	

nruter   	

'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t eteled   	

nigeb   	

 0 =! rorre@@ fi	

)   galf_elas.ecirp_hcnarb_cp_t >< galf_elas.ofni_meti_db_t ro			

ecirp_emehcs.ecirp_hcnarb_cp_t >< ecirp_emehcs.ofni_meti_db_t ro			

 ecirp_piv.ecirp_hcnarb_cp_t >< ecirp_piv.ofni_meti_db_t ro			

 ecirp_elas.ecirp_hcnarb_cp_t >< ecirp_elas.ofni_meti_db_t ro			

 ecirp_esab.ecirp_hcnarb_cp_t >< ecirp_esab.ofni_meti_db_t ro			

 ecirp.ecirp_hcnarb_cp_t >< ecirp.ofni_meti_db_t( dna  		

on_hcnarb_g@=on_hcnarb.ecirp_hcnarb_cp_t dna  		

on_meti.ecirp_hcnarb_cp_t=on_meti.ofni_meti_db_t erehw		

ecirp_hcnarb_cp_t,ofni_meti_db_t morf		

galf_elas.ecirp_hcnarb_cp_t = galf_elas		

,)dne )0,5ecirp_piv.ofni_meti_db_t(llunsi esle )0,5ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,9,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=5ecirp_piv		

,)dne )0,4ecirp_piv.ofni_meti_db_t(llunsi esle )0,4ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,8,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=4ecirp_piv		

,)dne )0,3ecirp_piv.ofni_meti_db_t(llunsi esle )0,3ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,7,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=3ecirp_piv		

,)dne )0,2ecirp_piv.ofni_meti_db_t(llunsi esle )0,2ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,6,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=2ecirp_piv		

,)dne )0,ecirp_piv.ofni_meti_db_t(llunsi esle )0,ecirp_piv.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,5,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_piv		

,)dne )0,ecirp_emehcs.ofni_meti_db_t(llunsi esle )0,ecirp_emehcs.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,4,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_emehcs		

,)dne )0,ecirp_elas.ofni_meti_db_t(llunsi esle )0,ecirp_elas.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,3,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_elas		

,)dne )0,ecirp_esab.ofni_meti_db_t(llunsi esle )0,ecirp_esab.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,2,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp_esab		

, )dne )0,ecirp.ofni_meti_db_t(llunsi esle )0,ecirp.ecirp_hcnarb_cp_t(llunsi neht '1' = )1,1,tsil_ecirp.ecirp_hcnarb_cp_t(gnirtsbus ro llun si tsil_ecirp.ecirp_hcnarb_cp_t nehw esac(=ecirp		

 tes ofni_meti_db_t etadpu	  

nigeb  

 '8' >< epyt_kcots_g@  dna '7' >< epyt_kcots_g@ dna '000' >< on_hcnarb_g@ fi  

71209002 zmgnahz yb deifidom;5价员会/4价员会/3价员会/2价员会/1价员会/价送配/价售零/价发批/价:表代别分111111111:为值其.格价的调所中单XP自取tsil_ecirp, ecirp_hcnarb_cp_t ot tsil_ecirp nmuloc dda--  

表息信品商正修格价的前当构机以，部分于对--  


'0' = detubirtsid_si@ tceles     llun si detubirtsid_si@ fi--  

'detubirtsid_si'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys = detubirtsid_si@ tceles--  


on_kcots_g@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_kcots_g@ tceles  


'100000' = on_kcots_g@ tceles     llun si on_kcots_g@ fi  

'on_kcots_g'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys = on_kcots_g@ tceles  

 

'000' = on_hcnarb_g@ tceles     llun si on_hcnarb_g@ fi  

'on_hcnarb_g'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys = on_hcnarb_g@ tceles  

  	

)121 ,)(etadteg ,)01(rahc(trevnoc=etad_etadpu@ tceles  

 

nruter  	

esle  

)'ecirp_egnahc','ecirp_egnahc'(seulav )eman_rav_sys,di_rav_sys(metsys_sys_t otni tresni  	

)'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(stsixe ton fi  

志标行运程过置设--  

  

)0002(rahcrav       2tsil_hcnarb@  

,)6(rahc       xp_on_hcnarb@  

,)4,61(ciremun    5ecirp_piv_meti@  

,)4,61(ciremun    4ecirp_piv_meti@  

,)4,61(ciremun    3ecirp_piv_meti@  

,)4,61(ciremun    2ecirp_piv_meti@  

,)4,61(ciremun     ecirp_piv_meti@  

,)4,61(ciremun  ecirp_emehcs_meti@  

,)4,61(ciremun    ecirp_elas_meti@  

,)4,61(ciremun    ecirp_esab_meti@  

,)4,61(ciremun         ecirp_meti@  

识标价调--     ,)0002(rahcrav        tsil_hcnarb@  

5价员会新-- ,     )4,61(ciremun           5piv_wen@  

5价员会原--,     )4,61(ciremun           5piv_dlo@  

4价员会新--,     )4,61(ciremun           4piv_wen@  

4价员会原--,     )4,61(ciremun           4piv_dlo@  

3价员会新--,     )4,61(ciremun           3piv_wen@  

3价员会原--,     )4,61(ciremun           3piv_dlo@  

2价员会新--,     )4,61(ciremun           2piv_wen@  

2价员会原--,     )4,61(ciremun           2piv_dlo@  

1价员会新--,     )4,61(ciremun           1piv_wen@  

1价员会原--,     )4,61(ciremun           1piv_dlo@  

型类店门--,  		)1(rahc       	epyt_kcots_g@  

号编库仓统系--,            )6(rahc          on_kcots_g@  

型类格价--,  		)1(rahc       	epyt_ecirp@  

志标输传--,            )1(rahc         galf_moc_sl@  

构机单制价调--,        )01(rahcrav         galf_hcnarb@  

价送配新--,     )4,61(ciremun           4ecirp_wen@  

价送配原--,     )4,61(ciremun           4ecirp_dlo@  

价售新--,     )4,61(ciremun           3ecirp_wen@  

价售原--,     )4,61(ciremun           3ecirp_dlo@  

价发批新--,     )4,61(ciremun           2ecirp_wen@  

价发批原--,     )4,61(ciremun           2ecirp_dlo@  

价进新--,     )4,61(ciremun            ecirp_wen@  

价进原--,     )4,61(ciremun            ecirp_dlo@  

3rehto.ofni_meti_db_t改 口接机款收飞龙--,          )01(rahc         etad_etadpu@  

版式布分--           ,)1(rahc      detubirtsid_si@--  

号编库仓统系--,           )6(rahc         on_hcnarb_g@  

态状效生--,           )1(rahc          galf_dilav@  

码代品货--,          )02(rahc             on_meti@  

号编据单--,          )81(rahc            on_teehs@  

号编库仓--,           )6(rahc           on_hcnarb@  

号编易交--,           )2(rahc            on_snart@  

 eralced  


nigeb

sa

 tceffe_wolf_ecirp_cp_rp erudecorp etaerc


og

tceffe_wolf_ecirp_cp_rp erudecorp pord  

)'tceffe_wolf_ecirp_cp_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_pc_price_flow_effect_rpx(MS).sql^^^^



rosruc_xpr  etacollaed

rosruc_xpr esolc--



dne


dne  


xp_noitaler_xp@,ytq_meti_xp@ ,on_meti_xp@ ,on_meti_bmoc_xp@  otni rosruc_xpr hctef        


dne    

------------------------------------------------------------

 

 dne     

dne            

) ytq_meti_xp@*5piv_wen@, ytq_meti_xp@*4piv_wen@, ytq_meti_xp@*3piv_wen@, ytq_meti_xp@*2piv_wen@, ytq_meti_xp@*galf_moc_sl@ , ytq_meti_xp@*4ecirp_wen@, ytq_meti_xp@*1piv_wen@, ytq_meti_xp@*3ecirp_wen@ , ytq_meti_xp@*2ecirp_wen@ , ytq_meti_xp@*ecirp_wen@,on_meti_bmoc_xp@,on_hcnarb@( SEULAV               

  ) 5ecirp_piv,4ecirp_piv ,3ecirp_piv,2ecirp_piv,galf_moc,ecirp_emehcs,ecirp_piv,ecirp_elas ,ecirp_esab ,ecirp ,on_meti ,on_hcnarb (                      

  ecirp_hcnarb_cp_t OTNI TRESNI               

nigeb            

esle         

dne            

)on_hcnarb_g@ = on_hcnarb( dna )on_meti_bmoc_xp@ = on_meti( erehw                 

 ytq_meti_xp@*5piv_wen@=5ecirp_piv, ytq_meti_xp@*4piv_wen@=4ecirp_piv, ytq_meti_xp@*3piv_wen@=3ecirp_piv, ytq_meti_xp@*2piv_wen@=2ecirp_piv, ytq_meti_xp@*1piv_wen@=ecirp_piv                     

,galf_moc_sl@=galf_moc, ytq_meti_xp@*4ecirp_wen@=ecirp_emehcs, ytq_meti_xp@*3ecirp_wen@=ecirp_esab, ytq_meti_xp@*2ecirp_wen@=ecirp_elas, ytq_meti_xp@*ecirp_wen@=ecirp tes                 

 ecirp_hcnarb_cp_t etadpu              

nigeb             

在存否是-- )on_hcnarb_g@--)on_hcnarb@=on_hcnarb dna )on_meti_bmoc_xp@ = on_meti( erehw ecirp_hcnarb_cp_t morf '1' tceles(stsixe  fi          


'0' = galf_moc_sl@ tceles            

esle          

'1' = galf_moc_sl@ tceles            

)单价调的部总即(单价调的地本部分非 -- )on_hcnarb_g@ >< galf_hcnarb@( fi          

nigeb       

部分-- '000' >< on_hcnarb_g@ dna )'LLA' = on_hcnarb@ ro on_hcnarb_g@ = on_hcnarb@( fi-- esle       



dne       

 dne          

dne                   

) ytq_meti_xp@*5piv_wen@, ytq_meti_xp@*4piv_wen@, ytq_meti_xp@*3piv_wen@, ytq_meti_xp@*2piv_wen@,'0', ytq_meti_xp@*4ecirp_wen@, ytq_meti_xp@*1piv_wen@, ytq_meti_xp@*3ecirp_wen@ , ytq_meti_xp@*2ecirp_wen@ , ytq_meti_xp@*ecirp_wen@, on_meti_bmoc_xp@, on_hcnarb@( SEULAV                          

  ) 5ecirp_piv,4ecirp_piv ,3ecirp_piv,2ecirp_piv,galf_moc,ecirp_emehcs,ecirp_piv,ecirp_elas ,ecirp_esab ,ecirp ,on_meti ,on_hcnarb (                            

 ecirp_hcnarb_cp_t OTNI TRESNI                     

nigeb                   

esle                


dne                    

on_meti_bmoc_xp@=on_meti dna on_hcnarb@=on_hcnarb EREHW                      

ytq_meti_xp@*5piv_wen@=5ecirp_piv, ytq_meti_xp@*4piv_wen@=4ecirp_piv , ytq_meti_xp@*3piv_wen@=3ecirp_piv, ytq_meti_xp@*2piv_wen@=2ecirp_piv, ytq_meti_xp@*1piv_wen@=ecirp_piv                          

 , ytq_meti_xp@*4ecirp_wen@=ecirp_emehcs , ytq_meti_xp@*3ecirp_wen@=ecirp_elas, ytq_meti_xp@*2ecirp_wen@=ecirp_esab, ytq_meti_xp@*ecirp_wen@=ecirp TES                      

 ecirp_hcnarb_cp_t ETADPU                    

nigeb  		

在存否是-- )on_hcnarb@=on_hcnarb dna )on_meti_bmoc_xp@ = on_meti( erehw ecirp_hcnarb_cp_t morf '1' tceles(stsixe fi               

nigeb          


esle    

       

dne       

rosruc_hcnarb  etacollaed          


 dne          

pmet_on_hcnarb@ otni rosruc_hcnarb hctef             

)ytq_meti_xp@*5piv_wen@ ,ytq_meti_xp@*4piv_wen@ ,ytq_meti_xp@*3piv_wen@ ,ytq_meti_xp@*2piv_wen@,'0' ,ytq_meti_xp@*4ecirp_wen@ ,ytq_meti_xp@*1piv_wen@ ,ytq_meti_xp@*3ecirp_wen@ ,ytq_meti_xp@*2ecirp_wen@ ,ytq_meti_xp@*ecirp_wen@ ,on_meti_bmoc_xp@ ,pmet_on_hcnarb@( SEULAV                         

  ) 5ecirp_piv,4ecirp_piv ,3ecirp_piv,2ecirp_piv,galf_moc,ecirp_emehcs,ecirp_piv,ecirp_elas ,ecirp_esab ,ecirp ,on_meti ,on_hcnarb (                              

 ecirp_hcnarb_cp_t OTNI TRESNI                     

ESLE                

on_meti_bmoc_xp@=on_meti dna pmet_on_hcnarb@=on_hcnarb EREHW                        

ytq_meti_xp@*5piv_wen@=5ecirp_piv ,ytq_meti_xp@*4piv_wen@=4ecirp_piv , ytq_meti_xp@*3piv_wen@=3ecirp_piv  ,ytq_meti_xp@*2piv_wen@=2ecirp_piv ,ytq_meti_xp@*1piv_wen@=ecirp_piv                            

 ,ytq_meti_xp@*4ecirp_wen@=ecirp_emehcs , ytq_meti_xp@*3ecirp_wen@=ecirp_elas  ,ytq_meti_xp@*2ecirp_wen@=ecirp_esab  ,ytq_meti_xp@*ecirp_wen@=ecirp TES                        

 ecirp_hcnarb_cp_t ETADPU                     

在存不 -- )) on_meti_bmoc_xp@=on_meti dna pmet_on_hcnarb@=on_hcnarb(erehw ecirp_hcnarb_cp_t morf * tceles(stsixe FI               


nigeb      	

0=sutats_hctef@@ elihw      	

pmet_on_hcnarb@ otni rosruc_hcnarb hctef      	

rosruc_hcnarb nepo      	

		2 = ytreporp ro 1 = ytreporp ro 0 = ytreporp erehw ofni_hcnarb_db_t morf on_hcnarb tcnitsid tceles      	

rof rosruc rosruc_hcnarb eralced     	

 品商的构机各的中表存不入插先 --      	

nigeb          

'llA' = on_hcnarb@ fi          

nigeb       

'000' = on_hcnarb_g@ fi       

       

dne       

)on_meti_bmoc_xp@ = on_meti( erehw               

ytq_meti_xp@*5piv_wen@=5ecirp_piv ,ytq_meti_xp@*4piv_wen@=4ecirp_piv ,ytq_meti_xp@*3piv_wen@=3ecirp_piv  ,ytq_meti_xp@*2piv_wen@=2ecirp_piv ,ytq_meti_xp@*1piv_wen@ = ecirp_piv              

, etad_etadpu@=etad_etadpu  ,ytq_meti_xp@*4ecirp_wen@=ecirp_emehcs  ,ytq_meti_xp@*3ecirp_wen@=ecirp_elas  ,ytq_meti_xp@*2ecirp_wen@=ecirp_esab  ,ytq_meti_xp@*ecirp_wen@=ecirp tes          

 ofni_meti_db_t etadpu        

nigeb     

 'LLA' = on_hcnarb@ ro on_hcnarb_g@ = on_hcnarb@ fi 


------------------------------------------------------------

nigeb       

品商价调联关是-- '1'=xp_noitaler_xp@  fi     

nigeb  

 0=sutats_hctef@@ elihw  


xp_noitaler_xp@,ytq_meti_xp@ ,on_meti_xp@ ,on_meti_bmoc_xp@  otni rosruc_xpr hctef  

  

rosruc_xpr nepo  


  on_meti@ = on_meti.h erehw       

  h tilpsbmoc_meti_db_t  morf       

xp_noitaler.h ,ytq_meti.h ,on_meti.h ,on_meti_bmoc.h tceles      

rof rosruc rosruc_xpr eralced 


)121 ,)(etadteg ,)01(rahc(trevnoc=etad_etadpu@ tceles


'000' = on_hcnarb_g@ tceles     llun si on_hcnarb_g@ fi

'on_hcnarb_g'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys = on_hcnarb_g@ tceles



)6(rahc     pmet_on_hcnarb@  

,           )1(rahc        galf_moc_sl@  

,          )01(rahc        etad_etadpu@  

,           )6(rahc        on_hcnarb_g@  

志标价调联关--,           )1(rahc     xp_noitaler_xp@  

量数份成--,     )4,61(ciremun        ytq_meti_xp@  

品商价调联关--,          )02(rahc         on_meti_xp@  

品商绑捆价调联关--,          )02(rahc    on_meti_bmoc_xp@  

eralced  


nigeb

sa

)4,61(ciremun    5piv_dlo@              

,)4,61(ciremun    5piv_wen@              

,)4,61(ciremun    4piv_dlo@              

,)4,61(ciremun    4piv_wen@              

,)4,61(ciremun    3piv_dlo@              

,)4,61(ciremun    3piv_wen@              

,)4,61(ciremun    2piv_dlo@              

,)4,61(ciremun    2piv_wen@              

,)4,61(ciremun    1piv_dlo@              

,)4,61(ciremun    1piv_wen@              

,)4,61(ciremun  4ecirp_dlo@              

,)4,61(ciremun  4ecirp_wen@              

,)4,61(ciremun  3ecirp_dlo@              

,)4,61(ciremun  3ecirp_wen@              

,)4,61(ciremun  2ecirp_dlo@              

,)4,61(ciremun  2ecirp_wen@              

,)1(rahc  epyt_ecirp@              

,)01(rahcrav galf_hcnarb@              

,)4,61(ciremun   ecirp_dlo@              

,)4,61(ciremun   ecirp_wen@              

,)02(rahcrav     on_meti@              

 ,)6(rahc   on_hcnarb@              

 xpr_tceffe_wolf_ecirp_cp_rp erudecorp etaerc


og

xpr_tceffe_wolf_ecirp_cp_rp erudecorp pord  

)'xpr_tceffe_wolf_ecirp_cp_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$pr_rm_get_item_info(MS).sql^^^^


dne

mun_cca@,galf_cca@      

,bmoc_sl@      

,tmatfig_sl@      

 ,ytqtfig_sl@      

,metitfig_sl@      

,ytQelas_nl@      

,ecirPdrac_nl@      

,ecirPceps_nl@      

,ecirPelas_nl@      

,ONssalC_sl@      

,ONdnarb_sl@      

,emaNbuS_sl@ tceles    

值回返 --    


)'',rddapus_sl@(llunsi = rddapus_sl@ tceles    

)'',letpus_sl@(llunsi = letpus_sl@ tceles    

)'',tmatfig_sl@(llunsi = tmatfig_sl@ tceles    

)'',ytqtfig_sl@(llunsi = ytqtfig_sl@ tceles    

)'',metitfig_sl@(llunsi = metitfig_sl@ tceles    


))121,etad_dne ,)01(rahc(trevnoc dna )121,etad_trats ,)01(rahc(trevnoc neewteb )121 ,)(etadteG ,)01(rahc(trevnoc(          

dna )'LLA' = on_hcnarb ro )3,ONhcnarb_sa@(tfel = on_hcnarb ro ONhcnarb_sa@ = on_hcnarb(  	

 dna )0> ytq_elas dna '3' = epyt_laiceps dna ONmetI_sa@ = on_meti( erehw    

 ecirp_ceps_mr_t morf    

ecirp_tfig =tmatfig_sl@,ytq_elas = ytQelas_nl@ ,ytq_tfig=ytqtfig_sl@ ,meti_tfig=metitfig_sl@ tcnitsid tceles   

品赠销促理处--    


ecirPelas_nl@ = ecirPdrac_nl@ tceles      

0 = ecirPdrac_nl@ ro llun si ecirPdrac_nl@ fi    

价售零=价卡员会，价卡员会有没 --    


5ecirPpiv_nl@ = ecirPdrac_nl@ tceles	

5 = epyt_ecirppiv_ia@ fi    


4ecirPpiv_nl@ = ecirPdrac_nl@ tceles	

4 = epyt_ecirppiv_ia@ fi    


3ecirPpiv_nl@ = ecirPdrac_nl@ tceles	

3 = epyt_ecirppiv_ia@ fi    


2ecirPpiv_nl@ = ecirPdrac_nl@ tceles	

2 = epyt_ecirppiv_ia@ fi    


ecirPpiv_nl@ = ecirPdrac_nl@ tceles	

1 = epyt_ecirppiv_ia@ fi    


ecirPelas_nl@ = ecirPceps_nl@ tceles      

0 = ecirPceps_nl@ ro llun si ecirPceps_nl@ fi    

价售零=价特，价特有没 --     

    

0 = ecirPdrac_nl@ tceles    

0 = ecirPceps_nl@ tceles    

....理处价卡员会,价特 --    

      


dne	

dne		

	ONmetI_sa@=on_meti dna )3,1,ONhcnarb_sa@(gnirtsbus=on_hcnarb erehw 			

ecirp_hcnarb_cp_t morf  			

5ecirp_piv=5ecirPpiv_nl@, 4ecirp_piv=4ecirPpiv_nl@		       		

, 3ecirp_piv=3ecirPpiv_nl@, 2ecirp_piv=2ecirPpiv_nl@		      		

,ecirp_piv = ecirPpiv_nl@ ,ecirp_elas = ecirPelas_nl@ tceles			

nigeb		

 )ONmetI_sa@=on_meti dna )3,1,ONhcnarb_sa@(gnirtsbus=on_hcnarb erehw ecirp_hcnarb_cp_t morf 1 tceles(stsixe fi		

nigeb	

eslE	

dne	

	ONmetI_sa@=on_meti dna ONhcnarb_sa@=on_hcnarb erehw 		

ecirp_hcnarb_cp_t morf  		

5ecirp_piv=5ecirPpiv_nl@, 4ecirp_piv=4ecirPpiv_nl@       		

, 3ecirp_piv=3ecirPpiv_nl@, 2ecirp_piv=2ecirPpiv_nl@       		

,ecirp_piv = ecirPpiv_nl@ ,ecirp_elas = ecirPelas_nl@ tceles		

nigeb	

 )ONmetI_sa@=on_meti dna ONhcnarb_sa@=on_hcnarb erehw ecirp_hcnarb_cp_t morf 1 tceles(stsixe fi	

	

ONmetI_sa@=on_meti erehw ofni_meti_db_t morf		

5ecirp_piv=5ecirPpiv_nl@, 4ecirp_piv=4ecirPpiv_nl@		

, 3ecirp_piv=3ecirPpiv_nl@, 2ecirp_piv=2ecirPpiv_nl@		

,)0,mun_cca_piv(llunsi = mun_cca@,)'0',galf_cca_piv(llunsi = galf_cca@		

,ecirp_piv=ecirPpiv_nl@      , ats_enibmoc= bmoc_sl@		

,dnarb_meti = ONdnarb_sl@   ,ecirp_elas=ecirPelas_nl@		

,onslc_meti=ONssalC_sl@	,emanbus_meti=emaNbuS_sl@ tceles 	

息信本基的品商台前取获中)ofni_meti_db_t(从 -- 	

	

5价卡员会 --       )4,61(lamiced 5ecirPpiv_nl@    

4价卡员会 --      ,)4,61(lamiced 4ecirPpiv_nl@    

3价卡员会 --      ,)4,61(lamiced 3ecirPpiv_nl@    

2价卡员会 --      ,)4,61(lamiced 2ecirPpiv_nl@    

值分积--,)4,61(lamiced   mun_cca@    

分积否是-- ,)1(rahc  galf_cca@    

号水流 --      ,)0,61(lamiced wolf_nl@    

   ）...生、拆、组（型类品商--				,	)1(rahc	bmoc_sl@    

,    emitetad won_tdl@    

 码编修维--            ,)03(rahcrav onpus_sl@    

址地修维--         ,)001(rahcrav rddapus_sl@    

话电修维--           ,)03(rahcrav letpus_sl@    

04.001/0.03/05.21 :tamrof，列价单品商送赠--          ,)003(rahcrav tmatfig_sl@    

4/2/01 :tamrof，列量数品商送赠--            ,)003(rahcrav ytqtfig_sl@    

300/200/100 :tamrof，列码编品商送赠--         ,)003(rahcrav metitfig_sl@    

量数售销价特的售销经已前当 --        ,)4,61(lamiced ytQdlos_nl@    

量数购限单客 --        ,)4,61(lamiced ytQelas_nl@    

率扣折 --        ,)2,6(lamiced tnuocsid_nl@    

价卡员会 --      ,)4,61(lamiced ecirPpiv_nl@    

价卡员会 --      ,)4,61(lamiced ecirPdrac_nl@    

价特台前 --      ,)4,61(lamiced ecirPceps_nl@    

,)4,61(lamiced ecirPpmt_nl@    

型类价特 --         ,)1(rahc epyTceps_sl@    

价售零 --      ,)4,61(lamiced ecirPelas_nl@    

码编牌品 --            ,)02(rahc ONdnarb_sl@    

码编别类 --            ,)02(rahc ONssalC_sl@    

称简 --    ,)02(rahcrav emaNbuS_sl@ eralced  


nruter )ONmetI_sa@=on_meti erehw ofni_meti_db_t morf 1 tceles(stsixe ton fi  

断判性效有的码编 --

nigeb

sa

)regetni epyt_ecirppiv_ia@ ,)4,21(lamiced ytQelas_na@ ,)02(rahc ONmetI_sa@ ,)6(rahc ONhcnarb_sa@(ofni_meti_teg_mr_rp erudecorp etaerc


og

ofni_meti_teg_mr_rp erudecorp pord  

)'ofni_meti_teg_mr_rp'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_bd_i_item_info(MS).sql^^^^

dne


dne

on_hcnarb_ppa@ >< on_hcnarb dna on_meti@ = on_meti erehw  '2' = galf_elas tes ecirp_hcnarb_cp_t etadpu

on_meti@ = on_meti erehw ofni_metippa_db_t morf  on_hcnarb_ppa= on_hcnarb_ppa@ tceles

nigeb

'1' = galf_elas@ fi

)on_meti.a = on_meti.c dna on_hcnarb.b = on_hcnarb.c erehw c ecirp_hcnarb_cp_t morf 1 tceles( stsixe ton   dna       	

)'3','2'( ni ytreporp.b erehw       	

 b ofni_hcnarb_db_t  ,a detresni morf               

'0','111111111',5ecirp_piv.a,4ecirp_piv.a          	

,3ecirp_piv.a,2ecirp_piv.a,ecirp_emehcs.a,ecirp_piv.a,ecirp_elas.a,ecirp_esab.a,ecirp.a,on_meti.a, on_hcnarb.b tceles   	

)galf_elas,tsil_ecirp,5ecirp_piv,4ecirp_piv          	

,3ecirp_piv,2ecirp_piv,ecirp_emehcs,ecirp_piv,ecirp_elas,ecirp_esab ,ecirp,on_meti,on_hcnarb( ecirp_hcnarb_cp_t tresni   	

on_meti@ = on_meti erehw ecirp_hcnarb_cp_t eteled	   	

) on_meti@ = ))on_meti(mirtr(mirtl erehw ecirp_hcnarb_cp_t morf on_meti tceles( stsixe fi   	

'1'=)'detubirtsid_si'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(fi        

03800102  JSgnaT 表格价构机写才部总--        

02509002 zmgnahz yb dda 表格价构机入写--	

	

ruc_meti_tresni etacollaed	

ruc_meti_tresni esolc	

dne	

kcots_tini@,ecirp@,tsucpus_niam@,on_meti@ otni ruc_meti_tresni hctef		


)tsucpus_niam@,on_meti@( seulav    			

)on_tsucpus,on_meti( meti_tsucpus_db_t tresni     		

)tsucpus_niam@ = on_tsucpus dna on_meti@ = on_meti erehw meti_tsucpus_db_t morf on_meti tceles( stsixe ton fi        

		

)llun ,)(etadteg ,on_meti@ ,'I' ,'ofni_meti_db_t'( seulav			

)on_hcnarb ,etad_etadpu ,1yek ,epyt_egnahc ,elbat_moc( atad_mc_sys_t otni tresni		


)kcots_tini@,ecirp@,on_hcnarb@ ,on_meti@( seulav )ytq_kcots,tsoc_gva,on_hcnarb,on_meti( kcots_hcnarb_mi_t tresni			

)on_meti@ = on_meti dna on_hcnarb@ = on_hcnarb erehw kcots_hcnarb_mi_t morf on_meti tceles(stsixe ton fi		


)on_hcnarb@ ,on_meti@( seulav )on_hcnarb,on_meti( kcots_hcnarb_mi_t tresni	--		

)on_meti@ = on_meti dna on_hcnarb@ = on_hcnarb erehw kcots_hcnarb_mi_t morf on_meti tceles(stsixe ton fi--		

.表存库入插不时加增品新 21017002lqc --       

nigeb	

0=sutats_hctef@@ elihw	

kcots_tini@,ecirp@,tsucpus_niam@,on_meti@ otni ruc_meti_tresni hctef	

ruc_meti_tresni nepo	

ylno daer rof		

detresni morf  kcots_tini,ecirp,tsucpus_niam,on_meti  tceles		

rof rosruc ruc_meti_tresni eralced	

入插--	

	

'ylno_galf_elas_mj'=di_rav_sys erehw metsys_sys_t morf eulav_rav_sys=galf_elas@ tceles	

'100' + on_hcnarb@ = on_hcnarb@ tceles	

'on_hcnarb_g'=di_rav_sys erehw metsys_sys_t morf eulav_rav_sys=on_hcnarb@ tceles	

库仓的认默统系--	

	


)4,81(ciremun ecirp@			

存库初期-- ,)4,61(ciremun kcots_tini@ eralced	

)01(rahcrav on_hcnarb_ppa@ , )1(rahcrav galf_elas@,)01(rahcrav on_hcnarb@,)01(rahcrav yaw_selas@,)02(rahcrav tsucpus_niam@,)02(rahcrav on_meti@ eralced	

量变明声--	

   

nruter )'3','1','0'( ni )'detubirtsid_si'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles( ton fi   

回返则是不果如，处事办司公分或部总的式部分是否是查检--	

nigeb

sa

tresni rof

 ofni_meti_db_t no ofni_meti_i_db_rt reggirt etaerc


og

ofni_meti_i_db_rt reggirt pord  

)'ofni_meti_i_db_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_bd_u_item_info(MS).sql^^^^

dne

dne		

ruc_meti_tresni etacollaed			

ruc_meti_tresni esolc			

dne			

tsucpus_niam@,on_meti@ otni ruc_meti_tresni hctef				

dne				

)tsucpus_niam@,on_meti@( seulav					

 )on_tsucpus,on_meti( meti_tsucpus_db_t tresni					

'S'=galf_tsucpus dna tsucpus_niam@ = on_tsucpus erehw ofni_tsucpus_db_t morf yaw_elas = yaw_selas@ tceles					

nigeb				

0 > )tsucpus_niam@(nel fi				

)tsucpus_niam@ = on_tsucpus dna on_meti@ = on_meti erehw meti_tsucpus_db_t morf on_meti tceles( stsixe ton fi				

nigeb			

0=sutats_hctef@@ elihw			

tsucpus_niam@,on_meti@ otni ruc_meti_tresni hctef			

ruc_meti_tresni nepo			

ylno daer rof detresni morf tsucpus_niam,on_meti tceles  rof rosruc ruc_meti_tresni eralced			

nigeb		

)tsucpus_niam(etadpu fi	

)01(rahcrav yaw_selas@,)02(rahcrav tsucpus_niam@ eralced	

	

ruc_meti_tresni etacollaed	

ruc_meti_tresni esolc	

dne		

			

on_meti@ otni ruc_meti_tresni hctef			

)llun ,)(etadteg ,on_meti@ ,'I' ,'ofni_meti_db_t'( seulav				

)on_hcnarb ,etad_etadpu ,1yek ,epyt_egnahc ,elbat_moc( atad_mc_sys_t otni tresni			

nigeb		

0=sutats_hctef@@ elihw	

on_meti@ otni ruc_meti_tresni hctef	

ruc_meti_tresni nepo	

ylno daer rof detresni morf on_meti  tceles  rof rosruc ruc_meti_tresni eralced	

入插--	

    

dne		

ruc_meti_eteled etacollaed    		

ruc_meti_eteled esolc    		

dne    		

on_meti@ otni ruc_meti_eteled hctef        		

		

)llun ,)(etadteg ,on_meti@ ,'D' ,'ofni_meti_db_t'( seulav				

)on_hcnarb ,etad_etadpu ,1yek ,epyt_egnahc ,elbat_moc( atad_mc_sys_t otni tresni			

动改成完部分在能不码编原凭仅则否,效有码编品商改对--			

nigeb    		

0=sutats_hctef@@ elihw    		

on_meti@ otni ruc_meti_eteled hctef    		

		

ruc_meti_eteled nepo    		

ylno daer rof deteled morf on_meti tceles rof rosruc ruc_meti_eteled eralced    		

除删--    		

nigeb		

)on_meti(etadpu fi	

用使时码编新更于限仅 --	


	

dne		

ruc_meti_etadpu etacollaed			

ruc_meti_etadpu esolc			

dne				

dne					

on_meti@ = on_meti.tilpsbmoc_meti_db_t dna on_meti_bmoc = on_meti.ofni_meti_db_t erehw tilpsbmoc_meti_db_t morf )dlo_ecirp@ - ecirp@(*ytq_meti + ecirp=ecirp tes ofni_meti_db_t etadpu						

on_meti@=on_meti erehw  deteled  morf ecirp=dlo_ecirp@ tceles						

nigeb					

 )ecirp(etadpu fi					

51113102价进品商绑捆改修----					


galf_elas@,5ecirp_piv@,4ecirp_piv@,3ecirp_piv@,2ecirp_piv@,ecirp_emehcs@,ecirp_piv@,ecirp_elas@,ecirp_esab@,ecirp@,on_meti@ otni ruc_meti_etadpu hctef					

)'2' = ytreporp dna '5' = epyt_edart erehw ofni_hcnarb_db_t morf on_hcnarb tceles( ni on_hcnarb dna on_meti@ = on_meti erehw					

galf_elas@ = galf_elas,5ecirp_piv@ = 5ecirp_piv,4ecirp_piv@ = 4ecirp_piv,3ecirp_piv@ = 3ecirp_piv,2ecirp_piv@ = 2ecirp_piv    					

,ecirp_emehcs@ = ecirp_emehcs,ecirp_piv@ = ecirp_piv,ecirp_elas@ = ecirp_elas,ecirp_esab@ = ecirp_esab,ecirp@ = ecirp tes					

 ecirp_hcnarb_cp_t etadpu					

nigeb				

0 = sutats_hctef@@ elihw			

galf_elas@,5ecirp_piv@,4ecirp_piv@,3ecirp_piv@,2ecirp_piv@,ecirp_emehcs@,ecirp_piv@,ecirp_elas@,ecirp_esab@,ecirp@,on_meti@ otni ruc_meti_etadpu hctef			

ruc_meti_etadpu nepo			

ylno daer rof detresni morf galf_elas,5ecirp_piv,4ecirp_piv,3ecirp_piv,2ecirp_piv,ecirp_emehcs,ecirp_piv,ecirp_elas,ecirp_esab,ecirp,on_meti tceles rof rosruc ruc_meti_etadpu eralced			

nigeb		

)galf_elas(etadpu ro )5ecirp_piv(etadpu ro )4ecirp_piv(etadpu ro )3ecirp_piv(etadpu ro   	

)2ecirp_piv(etadpu ro)ecirp_emehcs(etadpu ro )ecirp_piv(etadpu ro )ecirp_elas(etadpu ro )ecirp_esab(etadpu ro )ecirp(etadpu fi	

.息信表格价构机部总改更-----	


dne		

 dne			 

dne				

di_repo_etadpu etacollaed  				

di_repo_etadpu esolc  				

	 

	dne	  				

di_repo_yfidom@,on_meti@ otni di_repo_etadpu hctef								

dips@@ = dips erehw sessecorpsys.obd.retsam morf        							

1noitpircsed@,'案档品商',noitpircsed@,emantsoh,)4,1,)emanigol(mirtr(gnirtsbus,)(etadteg tceles  							

)omem,on_snart,noitpircsed,eman_retupmoc ,di_repo ,etad_repo( gol_rotarepo_sys_t tresni  							

esle            					

dne    						

 dips@@ = dips erehw sessecorpsys.obd.retsam morf        						

1noitpircsed@,'案档品商',noitpircsed@,emantsoh,repo_egnahc@,)(etadteg tceles      						

)omem,on_snart,noitpircsed,eman_retupmoc ,di_repo ,etad_repo( gol_rotarepo_sys_t tresni      						

'repo_xp_egnahc' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys=repo_egnahc@ tceles      						

nigeb    						

)'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(stsixe fi   						

理处法方来原按员作操到取有没-- esle 						

dne						

                dips@@ = dips erehw sessecorpsys.obd.retsam morf        						

1noitpircsed@,'案档品商',on_meti@+'：品商 '+noitpircsed@,emantsoh,di_repo_yfidom@,)(etadteg tceles      						

)omem,on_snart,noitpircsed,eman_retupmoc ,di_repo ,etad_repo( gol_rotarepo_sys_t tresni                                      		

esle  						

dne  						

 dips@@ = dips erehw sessecorpsys.obd.retsam morf        						

1noitpircsed@,'案档品商',on_meti@+'：品商 '+noitpircsed@,emantsoh,repo_egnahc@,)(etadteg tceles      						

)omem,on_snart,noitpircsed,eman_retupmoc ,di_repo ,etad_repo( gol_rotarepo_sys_t tresni      						

'repo_xp_egnahc' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys=repo_egnahc@ tceles      						

nigeb  						

)'ecirp_egnahc'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(stsixe fi  						

nigeb						

''><di_repo_yfidom@ fi						

nigeb					

) 0= sutats_hctef@@( elihw                          	

''=di_repo_yfidom@ tceles                             	

 ''=di_repo_yfidom@ ro llun si di_repo_yfidom@ fi  				

di_repo_yfidom@,on_meti@ otni di_repo_etadpu hctef  				

di_repo_etadpu nepo  			 	

ylno daer rof detresni morf di_repo_yfidom,on_meti tceles rof rosruc di_repo_etadpu eralced                          	

码编品商和员作操录记，时息信格价的品商改更当lqnehc--                          	

	

nigeb 				

'1'= )'goLrepO_droceR'=di_rav_sys erehw metsys_sys_t morf eulav_rav_sys tceles( fi                         	

志日录记否是断判lqnehc--                         	

)01(rahcrav repo_egnahc@ eralced				

					

'价改单价调非,志日库据数台后' = 1noitpircsed@  tceles					

esle				

'价改单价调,志日库据数台后' = 1noitpircsed@  tceles					

决解单价调传下过通价变-- '1' = )'ecirp_egnahc_ib'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles( fi				

				

)1-)noitpircsed@(nel,1,noitpircsed@(gnirtsbus=noitpircsed@ tceles  				

'/5价员会改'+noitpircsed@=noitpircsed@ tceles  )5ecirp_piv(etadpu fi  				

'/4价员会改'+noitpircsed@=noitpircsed@ tceles  )4ecirp_piv(etadpu fi  				

'/3价员会改'+noitpircsed@=noitpircsed@ tceles  )3ecirp_piv(etadpu fi  				

'/2价员会改'+noitpircsed@=noitpircsed@ tceles  )2ecirp_piv(etadpu fi  				

'/1价员会改'+noitpircsed@=noitpircsed@ tceles  )ecirp_piv(etadpu fi  				

'/价售零改'+noitpircsed@=noitpircsed@ tceles )ecirp_elas(etadpu fi  				

'/价发批改'+noitpircsed@=noitpircsed@ tceles )ecirp_esab(etadpu fi  				

'/价货进改'=noitpircsed@ tceles )ecirp(etadpu fi  				

''=noitpircsed@ tceles  				

)69(rahcrav noitpircsed@ eralced  				

nigeb			

))5ecirp_piv(etadpu ro )4ecirp_piv(etadpu ro )3ecirp_piv(etadpu ro )2ecirp_piv(etadpu    			

 ro )ecirp_piv(etadpu ro )ecirp_elas(etadpu ro )ecirp_esab(etadpu ro )ecirp(etadpu( fi			

20.20.7002 csgnauH yfidoM,志日写,价改单价调非--			

nigeb		

)03(rahcrav 1noitpircsed@,)4(rahc di_repo_yfidom@,)1(rahc galf_elas@,)4,61(ciremun 5ecirp_piv@,)4,61(ciremun 4ecirp_piv@,)4,61(ciremun 3ecirp_piv@,)4,61(ciremun 2ecirp_piv@		

,)4,61(ciremun ecirp_emehcs@,)4,61(ciremun ecirp_piv@,)4,61(ciremun ecirp_elas@,)4,61(ciremun ecirp_esab@,)4,61(ciremun dlo_ecirp@,)4,61(ciremun ecirp@,)02(rahcrav on_meti@ eralced	

nigeb

sa

etadpu rof

ofni_meti_db_t no ofni_meti_u_db_rt reggirt etaerc


og

ofni_meti_u_db_rt reggirt pord  

)'ofni_meti_u_db_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_cm_i_branch(MS).sql^^^^

 dne


)on_meti.b = on_meti.c dna on_hcnarb.a = on_hcnarb.c erehw c ecirp_hcnarb_cp_t morf 1 tceles( stsixe ton   dna    	

)'3','2'( ni ytreporp.a erehw    	

 b ofni_meti_db_t  ,a detresni morf            

galf_elas.b,'111111111',5ecirp_piv.b,4ecirp_piv.b,3ecirp_piv.b,2ecirp_piv.b,ecirp_emehcs.b,ecirp_piv.b,ecirp_elas.b,ecirp_esab.b,ecirp.b,on_meti.b, on_hcnarb.a tceles	

)galf_elas,tsil_ecirp,5ecirp_piv,4ecirp_piv,3ecirp_piv,2ecirp_piv,ecirp_emehcs,ecirp_piv,ecirp_elas,ecirp_esab ,ecirp,on_meti,on_hcnarb( ecirp_hcnarb_cp_t tresni      

02509002 zmgnahz yb dda 表格价构机入写--  

wolf_hcnarb etacollaed  

dne  

ytreporp@,on_hcnarb@ otni wolf_hcnarb hctef      

dne      

nruter        

wolf_hcnarb etacollaed        

nigeb      

 0 =! rorre@@ fi      


)'0','kcots',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)点断留保,传重部全可(存库--      

 

)'','musyad_rehsac_mr_t',on_hcnarb@(seulav        

)etad_kb ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','wolfyap_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','wolfelas_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','musyad_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','musyad_tfihs_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)点断个几这留保,虑考能性易交时实,传上时随于出(据数结日--      

---------------------------------------------------------------  	  

传上--  	  

      


)0,'ofni_gsmliam',on_hcnarb@(seulav        

)wolf_kb ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

件邮--      

        

)'','SP',on_hcnarb@(seulav        

)onteehs_kb ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'','XP',on_hcnarb@(seulav        

)onteehs_kb ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

价调--      

据单务业--      


)0,'atad_mc_sys_t',on_hcnarb@(seulav        

)wolf_kb ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

ecirp & piv & meti  表志日，料资本基--      

       

       

)'0','tnuocsid_piv_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','tes_piv_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','retnuoc_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','epyt_piv_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','ofni_tcartnoc_mt_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       


)'0','ofni_tcartnocyl_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','ofni_tcartnoc_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','ofni_ecalp_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI       

)'0','tilpsbmoc_meti_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','tped_meti_mr_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','ofni_tnemyap_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','ofni_tsucpus_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','ofni_tped_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','ofni_noitats_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','edoc_esab_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','slc_meti_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)'0','ofni_hcnarb_db_t',on_hcnarb@(seulav        

)degnahc_si ,elbat_moc ,on_hcnarb(tniopkaerb_mc_sys_t OTNI TRESNI      

)分>-总(输传表整，料资本基--  	  

---------------------------------------------------------------  	  

传下--  	  

点断讯通加增--      

nigeb  

0=sutats_hctef@@ elihw  

ytreporp@,on_hcnarb@ otni wolf_hcnarb hctef  

wolf_hcnarb nepo  

)'8' = epyt_edart ro '7' = epyt_edart( ro '1'=ytreporp ro '0' =ytreporp erehw detresni morf ytreporp,on_hcnarb tceles    

rof rosruc wolf_hcnarb eralced  

加增--

nruter '1' = )'detubirtsid_si'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles( ton fi  


)1(rahc     ytreporp@    

,)6(rahc    on_hcnarb@    

     ERALCED  

nigeb

sa

 tresni rof

  ofni_hcnarb_db_t no hcnarb_i_mc_rt reggirt etaerc



og

hcnarb_i_mc_rt reggirt pord  

)'hcnarb_i_mc_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_im_sheet_master(MS).sql^^^^

dne

nruter  

1_ruc_ci etacollaed  

1_ruc_ci esolc  

:rorreym




dne     

	

  	

rorreym otog 0 =! rorre@@ fi		

)'B',)3,rav_on_hcnarb_d@(tfel,etad_yap@,'A',rav_on_hcnarb@,'0',rav_etad_repo@,'A',0,tma_latot@,rav_on_snart@ ,rav_on_teehs@ ,1(seulav	  	

)epyt_cca,on_hcnarb,etad_cca,yaw_yap,on_tsucpus,galf_elttes,etad_repo,yaw_elas,tma_xat,tma_dluohs,on_snart,on_rehcuov,epyt_yap(wolf_yapcer_mf_t otni tresni		

	

)'1'=eulav_rav dna) )3,rav_on_hcnarb@(tfel=on_hcnarb ro )3,rav_on_hcnarb_d@(tfel=on_hcnarb( dna 'galf_cca_u'=di_rav erehw tes_hcnarb_sys_t morf eulav_rav  tceles( stsixe fi 	

nigeb      

 'OM'=rav_on_snart@ fi    


dne     

	

  	

rorreym otog 0 =! rorre@@ fi		

)'B',)3,rav_on_hcnarb@(tfel,rav_etad_repo@,'A',rav_on_hcnarb_d@,'0',rav_etad_repo@,'A',0,tma_latot@*1-,rav_on_snart@ ,rav_on_teehs@ ,1(seulav	  	

)epyt_cca,on_hcnarb,etad_cca,yaw_yap,on_tsucpus,galf_elttes,etad_repo,yaw_elas,tma_xat,tma_dluohs,on_snart,on_rehcuov,epyt_yap(wolf_yapcer_mf_t otni tresni		

	

)'1'=eulav_rav dna) )3,rav_on_hcnarb@(tfel=on_hcnarb ro )3,rav_on_hcnarb_d@(tfel=on_hcnarb( dna 'galf_cca_u'=di_rav erehw tes_hcnarb_sys_t morf eulav_rav  tceles( stsixe fi 	

nigeb     

 'IM' = rav_on_snart@ fi    

 款帐生产出调入调:司公分:91-30-7002 ygnaw yb dda-- 

dne     

	

rorreym otog 0 =! rorre@@ fi	  


dne     	

rorreym otog 0 =! rorre@@ fi		

)'B',rav_on_hcnarb_d@,rav_etad_repo@,'A',rav_on_hcnarb@,'0',rav_etad_repo@,'A',0,tma_latot@,rav_on_snart@ ,rav_on_teehs@ ,1(seulav	  	

)epyt_cca,on_hcnarb,etad_cca,yaw_yap,on_tsucpus,galf_elttes,etad_repo,yaw_elas,tma_xat,tma_dluohs,on_snart,on_rehcuov,epyt_yap(wolf_yapcer_mf_t otni tresni		

nigeb     	

'8' = ot_epyt_hcnarb@ ro '8' = epyt_hcnarb@ ro '4' = ot_epyt_hcnarb@  ro '4' = epyt_hcnarb@ fi   	


)3,rav_on_hcnarb_d@(tfel = rav_on_hcnarb_d@ tceles	    	

 '5' = ot_epyt_hcnarb@ fi   	

)3,rav_on_hcnarb@(tfel = rav_on_hcnarb@ tceles	    	

 '5' = epyt_hcnarb@ fi   	


rav_on_hcnarb_d@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = ot_epyt_hcnarb@ tceles   	

rav_on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles   	


nigeb     

 'OD'=rav_on_snart@ fi    


dne     

	

dne     	

rorreym otog 0 =! rorre@@ fi		

)'B',rav_on_hcnarb@,etad_yap@,'A',rav_on_hcnarb_d@,'0',rav_etad_repo@,'A',0,tma_latot@*1-,rav_on_snart@ ,rav_on_teehs@ ,1(seulav	  	

)epyt_cca,on_hcnarb,etad_cca,yaw_yap,on_tsucpus,galf_elttes,etad_repo,yaw_elas,tma_xat,tma_dluohs,on_snart,on_rehcuov,epyt_yap(wolf_yapcer_mf_t otni tresni		

nigeb     	

'8' = ot_epyt_hcnarb@ ro '8' = epyt_hcnarb@ ro '4' = ot_epyt_hcnarb@ ro '4' = epyt_hcnarb@ fi   	 

		

)3,rav_on_hcnarb@(tfel = rav_on_hcnarb@ tceles	    	

 '5' = ot_epyt_hcnarb@ fi   	

)3,rav_on_hcnarb_d@(tfel = rav_on_hcnarb_d@ tceles	    	

 '5' = epyt_hcnarb@ fi   	


rav_on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = ot_epyt_hcnarb@ tceles   	

rav_on_hcnarb_d@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles   	


nigeb     

 'ID' = rav_on_snart@ fi    

款帐生产-- 



dne  

ecirp_elas@,xat@,tma_bus@        

,ecirp_dilav@,ecirp_igro@,ytq_laer@,ytq_redro@,on_meti@        

,galf_tcca@,galf_snart@        

,nam_mrifnoc@,di_repo@ ,nam_redro@,etad_krow@,etad_repo@        

,galf_evorppa@,etad_yap@ ,yaw_yap@        

,on_nioc@,on_tsucpus@,on_rehcuov@        

,on_hcnarb_d@,on_hcnarb@,on_bd@,on_snart@,on_teehs@        

otni 1_ruc_ci hctef    


ecirp_dilav@*ytq_laer@+tma_latot@=tma_latot@ tceles      

'OM'=on_snart@ ro 'IM'=on_snart@ ro 'OD'=on_snart@ ro 'ID'=on_snart@ fi    

 


dne     

dne 	

rorreym otog 0 =! rorre@@ fi		

	

on_teehs@ = on_teehs erehw '1' = galf_ni tes retsam_teehs_mi_t etadpu		

esle	

on_teehs@ = on_teehs erehw '2' = galf_ni tes retsam_teehs_mi_t etadpu		

)3,on_hcnarb_d@(tfel = )3,on_hcnarb@(tfel  dna	

)on_hcnarb_d@=on_hcnarb dna '5'=epyt_edart erehw ofni_hcnarb_db_t  morf 1 tceles( stsixe   dna )on_hcnarb@=on_hcnarb dna '5'=epyt_edart erehw ofni_hcnarb_db_t  morf 1 tceles( stsixe fi	

51-30-7002 入调已为态状改修接直,库仓一同是果如,单OD ygnaw yb dda--	

rorreym otog 0 =! rorre@@ fi        	

)etad_yap@,on_rehcuov@,etad_dilav@ ,ytq_kcots@			

,di_repo@,on_hcnarb@,'-',on_snart@,on_hcnarb@,on_hcnarb_d@        		

,ecirp_dilav@*ytq_laer@,ecirp_elas@,ecirp_tsoc@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav  		

)etad_cca,omem,etad_dilav,ytnq_erp    		

,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs    		

,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI        	

)的目(水流写--		

/*      

ytq_kcots@/)ecirp_dilav@*ytq_laer@ - yenom_kcots@( = ecirp_tsoc@ tceles   	   	

'1' = ecirp_egnahc_bl@ fi		

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/  		

ecirp_dilav@ = ecirp_tsoc@ tceles		

		

ytq_laer@ - ytq_kcots@ = ytq_kcots@ tceles		

ytq_laer@ - = ytq_laer@ tceles		

nigeb 	

51 = )on_teehs@(nel dna )'6' = epyt_hcnarb@ ro '5' = epyt_hcnarb@ ( fi	


on_hcnarb_d@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles	


on_meti@ = on_meti erehw ofni_meti_db_t morf ecirp = ecirp_tsoc@ tceles		

 llun si ecirp_tsoc@ fi	    


0 = ytq_kcots@ tceles	        

 llun si ytq_kcots@ fi	    


rorreym otog 0 =! rorre@@ fi	    

on_meti@ = on_meti dna on_hcnarb_d@= on_hcnarb erehw	    

 kcots_hcnarb_mi_t morf tsoc_gva = ecirp_tsoc@,ytq_kcots = ytq_kcots@ tceles	    

llun = ecirp_tsoc@ tceles	    

llun = yenom_kcots@ tceles	    

llun = ytq_kcots@ tceles	

价本成和量数存库得获--	


nigeb     

'OD' = on_snart@  fi    

    

dne     

	

dne	

rorreym otog 0 =! rorre@@ fi		

	

on_teehs@ = on_teehs erehw '1' = galf_ni tes retsam_teehs_mi_t etadpu		


rorreym otog 0 =! rorre@@ fi	      	

	

)etad_yap@,on_rehcuov@,etad_dilav@ ,ytq_kcots@			

,di_repo@,on_hcnarb@,'+',on_snart@,on_hcnarb@,on_hcnarb_d@        		

,ecirp_dilav@*ytq_laer@,ecirp_elas@,ecirp_tsoc@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav  		

)etad_cca,omem,etad_dilav,ytnq_erp    		

,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs    		

,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI        	

)的目(水流写--		

      

/*      

ytq_kcots@/)ecirp_dilav@*ytq_laer@ + yenom_kcots@( = ecirp_tsoc@ tceles                      

esle                   

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba + )yenom_kcots@(sba( = ecirp_tsoc@ tceles      	   	

 0 = ytq_kcots@ fi                   

41.40.6002 csgnauH yB ddA --                   

'1' = ecirp_egnahc_bl@ fi		

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/  		

ecirp_dilav@ = ecirp_tsoc@ tceles		

		

ytq_laer@ + ytq_kcots@ = ytq_kcots@ tceles		

ytq_laer@ - = ytq_laer@ tceles		


nigeb 	

'1' >< galf_gtbz@ dna 51 = )on_teehs@(nel dna ) '6' = epyt_hcnarb@ ro '5' = epyt_hcnarb@ ( fi        

        

rav_on_hcnarb_d@ tnirp--	

rav_on_hcnarb_d@ = on_hcnarb erehw ofni_hcnarb_db_t morf galf_gtbz = galf_gtbz@ tceles	

rav_on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles        


on_meti@ = on_meti erehw ofni_meti_db_t morf ecirp = ecirp_tsoc@ tceles  	

 llun si ecirp_tsoc@ fi	    


0 = ytq_kcots@ tceles	        

 llun si ytq_kcots@ fi	    


rorreym otog 0 =! rorre@@ fi	    

on_meti@ = on_meti dna on_hcnarb_d@= on_hcnarb erehw 	    

 kcots_hcnarb_mi_t morf tsoc_gva = ecirp_tsoc@,ytq_kcots = ytq_kcots@ tceles	    

llun = ecirp_tsoc@ tceles	    

llun = yenom_kcots@ tceles	    

llun = ytq_kcots@ tceles	 

价本成和量数存库得获--	


nigeb     

'ID' = on_snart@ fi    


dne    

rorreym otog 0 =! rorre@@ fi         


)etad_yap@,on_rehcuov@,etad_dilav@ ,ytq_kcots@		

,di_repo@,on_tsucpus@,on_bd@,on_snart@,on_hcnarb_d@,on_hcnarb@        	

,ecirp_dilav@*ytq_laer@,ecirp_elas@,ecirp_tsoc@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav  	

)etad_cca,omem,etad_dilav,ytnq_erp    	

,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs    	

,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI 	

 	

0 = tma_elas_ip@ tceles    	

esle 	

)2 ,ecirp_elas@ * ytq_laer@(dnuor = tma_elas_ip@ tceles    	

'ID' = on_snart@ ro 'IM' = on_snart@ fi         

nigeb    

货转、价调品次残-- 'OI' >< on_snart@ dna 'HZ' >< on_snart@ dna 'JJ' >< on_snart@ fi    

水流写--   


dne       

dne  	

/*   		

ytq_kcots@/)ecirp_dilav@*ytq_laer@ - yenom_kcots@( = ecirp_tsoc@ tceles   		

 esle                

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba - )yenom_kcots@(sba( = ecirp_tsoc@ tceles                   

0 = ytq_kcots@ fi                

41.40.6002 csgnauH yB ddA --                

'1' = ecirp_egnahc_bl@ fi    	

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/  		

ecirp_dilav@ = ecirp_tsoc@ tceles  		

ytq_laer@ - ytq_kcots@ = ytq_kcots@ tceles    	

	nigeb  	 

esle        

dne  	

/*      

ytq_kcots@/)ecirp_dilav@*ytq_laer@ + yenom_kcots@( = ecirp_tsoc@ tceles                

esle            

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba + )yenom_kcots@(sba( = ecirp_tsoc@ tceles                

0 = ytq_kcots@ fi            

41.40.6002 csgnauH yB ddA --            

'1' = ecirp_egnahc_bl@ fi    	

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/  		

  		

ecirp_dilav@ = ecirp_tsoc@ tceles  		

  		

ytq_laer@ + ytq_kcots@ = ytq_kcots@ tceles    	

	nigeb  	

'+' = on_bd@ fi	


nigeb       

 'OO' = on_snart@ fi   


dne       

/*   

ytq_kcots@/)ecirp_dilav@*ytq_laer@ - yenom_kcots@( = ecirp_tsoc@ tceles     	

esle           

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba - )yenom_kcots@(sba( = ecirp_tsoc@ tceles             

0 = ytq_kcots@ fi           

41.40.6002 csgnauH yB ddA --           

'1' = ecirp_egnahc_bl@ fi	

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/	

ecirp_dilav@ = ecirp_tsoc@ tceles     	

     	

ytq_laer@ - ytq_kcots@ = ytq_kcots@ tceles     	

nigeb       

'OD' = on_snart@ ro 'OM' = on_snart@ fi    


dne       

/*   

ytq_kcots@/)ecirp_dilav@*ytq_laer@ + yenom_kcots@( = ecirp_tsoc@ tceles              

esle           

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba + )yenom_kcots@(sba( = ecirp_tsoc@ tceles      	

0 = ytq_kcots@ fi           

41.40.6002 csgnauH yb ddA --           

'1' = ecirp_egnahc_bl@ fi	

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/	

ecirp_dilav@ = ecirp_tsoc@ tceles       	

       	

ytq_laer@ + ytq_kcots@ = ytq_kcots@ tceles       	

nigeb       

'ID' = on_snart@ ro 'IM' = on_snart@ fi    


on_meti@ = on_meti erehw ofni_meti_db_t morf ecirp = ecirp_tsoc@ tceles	

 llun si ecirp_tsoc@ fi    


0 = yenom_kcots@ tceles        

 llun si yenom_kcots@ fi    

    

0 = ytq_kcots@ tceles        

 llun si ytq_kcots@ fi    


rorreym otog 0 =! rorre@@ fi    

on_meti@ = on_meti dna on_hcnarb@= on_hcnarb erehw    

 kcots_hcnarb_mi_t morf tma_tsoc = yenom_kcots@ ,tsoc_gva = ecirp_tsoc@,ytq_kcots = ytq_kcots@ tceles    

llun = ecirp_tsoc@ tceles    

llun = yenom_kcots@ tceles    

llun = ytq_kcots@ tceles    

价本成和量数存库得获--    


dne    


'1' = galfcca_evas@ tceles 	

'8' = epyt_hcnarb@ ro '4' = epyt_hcnarb@ fi      

      

dne      

rorreym otog 0 =! rorre@@ fi         

on_rehcuov@ = on_teehs erehw '0' = galf_moc,'1' = sutats_redro TES  retsam_teehs_mp_t ETADPU           

esle         

on_rehcuov@ = on_teehs erehw '0' = galf_moc,'2' = sutats_redro TES  retsam_teehs_mp_t ETADPU           

)on_teehs yb puorg ytq_redro > ytq_laer dna on_rehcuov@ = on_teehs erehw           

liated_teehs_mp_t morf   on_teehs tceles(stsixe ton FI         

态状单定新更--         

    

rorreym otog 0 =! rorre@@ fi         

on_meti@ = on_meti dna on_rehcuov@ = on_teehs erehw           

ytq_laer@ + )0,ytq_redro(llunsi = ytq_redro TES  liated_teehs_mp_t ETADPU         

态状单订,ytq_redro量数购采单货要改修--         

         

rorreym otog 0 =! rorre@@ fi         

on_rehcuov@ = on_teehs erehw '2' = galf_rppa_rehto TES  retsam_teehs_mi_t ETADPU           

esle         

on_rehcuov@ = on_teehs erehw '3' = galf_rppa_rehto TES  retsam_teehs_mi_t ETADPU           

)on_teehs yb puorg ytq_redro > ytq_laer dna on_rehcuov@ = on_teehs erehw           

liated_teehs_mi_t morf   on_teehs tceles(stsixe ton FI         

态状单请申调直新更--         

rorreym otog 0 =! rorre@@ fi         

on_meti@ = on_meti dna on_rehcuov@ = on_teehs erehw           

ytq_laer@ + )0,ytq_redro(llunsi = ytq_redro TES  liated_teehs_mi_t ETADPU         

态状单订,ytq_redro量数单请申调直改修-- 	      

nigeb      

'' >< )on_rehcuov@(mirtr fi      


on_rehcuov@=on_teehs erehw '1'=galf_ni tes retsam_teehs_mp_t etadpu--      

单货要始原新更--      


构机标目为商应供/户客--  on_hcnarb_d@=on_tsucpus@ tceles      

'-'=on_bd@ tceles      

水流库出库仓源写只--      

nigeb    

出调部外-- 'OD'=on_snart@ ro 'OM'=on_snart@ fi esle    

    

dne    

	

rorreym otog 0 =! rorre@@ fi--				


on_teehs@ = on_teehs erehw '1' = galf_ni tes retsam_teehs_mi_t etadpu--				

        

        


rorreym otog 0 =! rorre@@ fi	      

		

)etad_yap@,on_rehcuov@,etad_dilav@ ,ytq_kcots@				

,di_repo@,on_hcnarb@,'-',on_snart@,on_hcnarb_d@,on_hcnarb@        			

,ecirp_dilav@*ytq_laer@,ecirp_elas@,ecirp_tsoc@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav  			

)etad_cca,omem,etad_dilav,ytnq_erp    			

,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs    			

,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI        

)的目(水流写--			

      	

/*      	

ytq_kcots@/)ecirp_dilav@*ytq_laer@ + yenom_kcots@( = ecirp_tsoc@ tceles                      	

esle                   	

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba + )yenom_kcots@(sba( = ecirp_tsoc@ tceles      	   		

 0 = ytq_kcots@ fi                   	

41.40.6002 csgnauH yB ddA --                   	

'1' = ecirp_egnahc_bl@ fi			

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/  			

ecirp_dilav@ = ecirp_tsoc@ tceles			

			

ytq_laer@ - ytq_kcots@ = ytq_kcots@ tceles			

ytq_laer@ - = ytq_laer@ tceles--			

        

rav_on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles--      


on_meti@ = on_meti erehw ofni_meti_db_t morf ecirp = ecirp_tsoc@ tceles       	

 llun si ecirp_tsoc@ fi	    


0 = ytq_kcots@ tceles	        

 llun si ytq_kcots@ fi	    


rorreym otog 0 =! rorre@@ fi	    

on_meti@ = on_meti dna on_hcnarb@= on_hcnarb erehw 	    

 kcots_hcnarb_mi_t morf tsoc_gva = ecirp_tsoc@,ytq_kcots = ytq_kcots@ tceles	    

llun = ecirp_tsoc@ tceles	    

llun = yenom_kcots@ tceles	    

llun = ytq_kcots@ tceles	 		

价本成和量数存库库仓出转得获--      

        

rorreym otog 0 =! rorre@@ fi	      

		

)etad_yap@,on_rehcuov@,etad_dilav@ ,ytq_kcots@				

,di_repo@,on_hcnarb@,'+',on_snart@,on_hcnarb@,on_hcnarb_d@        			

,ecirp_dilav@*ytq_laer@,ecirp_elas@,ecirp_tsoc@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav  			

)etad_cca,omem,etad_dilav,ytnq_erp    			

,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs    			

,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI        

)的目(水流写--			

      	

/*      	

ytq_kcots@/)ecirp_dilav@*ytq_laer@ + yenom_kcots@( = ecirp_tsoc@ tceles                      	

esle                   	

))ytq_laer@(sba +)ytq_kcots@(sba(/))ecirp_dilav@*ytq_laer@(sba + )yenom_kcots@(sba( = ecirp_tsoc@ tceles      	   		

 0 = ytq_kcots@ fi                   	

41.40.6002 csgnauH yB ddA --                   	

'1' = ecirp_egnahc_bl@ fi			

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/  			

ecirp_dilav@ = ecirp_tsoc@ tceles			

			

ytq_laer@ + ytq_kcots@ = ytq_kcots@ tceles			

ytq_laer@ - = ytq_laer@ tceles--			

        

rav_on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles--      


on_meti@ = on_meti erehw ofni_meti_db_t morf ecirp = ecirp_tsoc@ tceles       	

 llun si ecirp_tsoc@ fi	    


0 = ytq_kcots@ tceles	        

 llun si ytq_kcots@ fi	    


rorreym otog 0 =! rorre@@ fi	    

on_meti@ = on_meti dna on_hcnarb_d@= on_hcnarb erehw 	    

 kcots_hcnarb_mi_t morf tsoc_gva = ecirp_tsoc@,ytq_kcots = ytq_kcots@ tceles	    

llun = ecirp_tsoc@ tceles	    

llun = yenom_kcots@ tceles	    

llun = ytq_kcots@ tceles	 		

价本成和量数存库库仓入转得获--			


nigeb    

  单仓转--   'OI' = on_snart@ fi esle    

dne    

      


on_rehcuov@=on_teehs erehw  '1'=galf_ni tes retsam_teehs_mi_t etadpu--      


dne	  

rorreym otog 0 =! rorre@@ fi           

on_hy@ = on_teehs erehw '1' = galf_ni TES  retsam_teehs_mp_t ETADPU           

esle         

on_hy@ = on_teehs erehw '2' = galf_ni TES  retsam_teehs_mp_t ETADPU           

)on_teehs yb puorg )0,mun_emoc(llunsi > ytq_laer dna on_hy@ = on_teehs erehw liated_teehs_mp_t morf on_teehs tceles(stsixe ton FI         

态状单货要新更--         

    

rorreym otog 0 =! rorre@@ fi         

on_meti@ = on_meti dna on_hy@ = on_teehs erehw           

ytq_laer@ + )0,mun_emoc(llunsi = mun_emoc TES liated_teehs_mp_t ETADPU         

态状单订,1mun量数货到单货要改修--         

nigeb	  

 0>)on_hy@(nel fi      

量货到终最的货要店门写，货收店门于对--	  

	

on_rehcuov@=on_teehs erehw retsam_teehs_mi_t morf )'',on_rehcuov(llunsi=on_hy@ tceles      


dne      

rorreym otog 0 =! rorre@@ fi         

on_rehcuov@ = on_teehs erehw '1' = galf_ni TES  retsam_teehs_mi_t ETADPU           

esle         

on_rehcuov@ = on_teehs erehw '2' = galf_ni TES  retsam_teehs_mi_t ETADPU           

)on_teehs yb puorg ytq_redro > ytq_laer dna on_rehcuov@ = on_teehs erehw           

liated_teehs_mi_t morf   on_teehs tceles(stsixe ton FI         

态状单定新更--         

    

rorreym otog 0 =! rorre@@ fi         

on_meti@ = on_meti dna on_rehcuov@ = on_teehs erehw           

ytq_laer@ + )0,ytq_redro(llunsi = ytq_redro TES  liated_teehs_mi_t ETADPU         

态状,ytq_redro单出调始原改修--         

nigeb      

'' >< )on_rehcuov@(mirtr fi      

态状货收的单出调始原新更--      

      

'+'=on_bd@ tceles      


on_hcnarb_t@=on_hcnarb@ tceles      

on_hcnarb@=on_hcnarb_d@ tceles      

on_hcnarb_d@=on_hcnarb_t@ tceles      

     

）构机部外为库仓源（水流库入库仓标目写只--      


'2' = galfcca_evas@ tceles       	

'8' = epyt_hcnarb@ ro '4' = epyt_hcnarb@ fi      


on_hcnarb_d@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_edart = epyt_hcnarb@ tceles      

      

构机源为商应供/户客货退--  on_hcnarb@=on_tsucpus@ tceles      

nigeb    

入调部外店门、入调部外--  'ID'=on_snart@ ro 'IM'=on_snart@ fi    


on_snart@ = di_teehs EREHW on_teehs_sys_t MORF tsoc_egnahc = ecirp_egnahc_bl@ TCELES     

on_hcnarb_d@ = rav_on_hcnarb_d@ tceles     

on_hcnarb@ = rav_on_hcnarb@ tceles     

etad_repo@ = rav_etad_repo@ tceles     

on_snart@ = rav_on_snart@ tceles     

on_teehs@ = rav_on_teehs@ tceles     


nigeb  

0=sutats_hctef@@ elihw  



ecirp_elas@,xat@,tma_bus@        

,ecirp_dilav@,ecirp_igro@,ytq_laer@,ytq_redro@,on_meti@        

,galf_tcca@,galf_snart@        

,nam_mrifnoc@,di_repo@ ,nam_redro@,etad_krow@,etad_repo@        

,galf_evorppa@,etad_yap@ ,yaw_yap@        

,on_nioc@,on_tsucpus@,on_rehcuov@        

,on_hcnarb_d@,on_hcnarb@,on_bd@,on_snart@,on_teehs@        

otni 1_ruc_ci hctef  

1_ruc_ci nepo  


'0' = galfcca_evas@ tceles  

'0'=etadpu_ydaerla@ tceles  

0=tma_latot@ tceles  


0 >< ytq_laer.b  dna )'1' = galf_evorppa.a( dna      

) on_teehs.b = on_teehs.a ( erehw    

b liated_teehs_mi_t ,a detresni morf    

ecirp_elas.b,xat.b,tma_bus.b        

,ecirp_dilav.b,ecirp_igro.b,ytq_laer.b,ytq_redro.b,on_meti.b        

,galf_tcca.a,galf_snart.a        

,nam_mrifnoc.a,di_repo.a,nam_redro.a,etad_krow.a,etad_repo.a        

,galf_evorppa.a,etad_yap.a ,)'A',yaw_yap.a(llunsi        

,)'BMR',on_nioc.a(llunsi,)'',on_tsucpus.a(llunsi,)'',on_rehcuov.a(llunsi        

,)'',on_hcnarb_d.a(llunsi,on_hcnarb.a,on_bd.a,on_snart.a,on_teehs.a tceles    

rof rosruc 1_ruc_ci eralced  


)1(rahc		galf_gtbz@    

额金存库--,)4,61(ciremun	yenom_kcots@    

,)1(rahc	ecirp_egnahc_bl@    

码代地的目--        ,)6(rahc    rav_on_hcnarb_d@    

,)1(rahc	ot_epyt_hcnarb@    

,)1(rahc	epyt_hcnarb@    

,)1(rahc	galfcca_evas@    

,emitetad      rav_etad_dilav@    

期日作操--,   emitetad       rav_etad_repo@    

,)1(rahc     rav_yaw_elas@    

码代户客商应供--,        )8(rahc     rav_on_tsucpus@    

码代店本--,        )6(rahc       rav_on_hcnarb@    

式方作操存库--,         )2(rahc      rav_on_snart@    

号单作工--, )81(rahc  rav_on_teehs@    


价本成--,)4,61(ciremun     	ecirp_tsoc@    

存库--,)4,61(ciremun     	ytq_kcots@    

--,)4,61(ciremun     tma_elas_ip@    

号单货要始原--        ,)81(rahc      on_hy@    

,)02(rahcrav			1rehto@    

)价调(码代品货--,        )02(rahc       on_meti_y@    

,)1(rahc  etadpu_ydaerla@    

,)1(rahc         tnuocca@    

, regetni        epyt_yap@    

,regetni          pmet_t@    

额金--   ,)4,61(ciremun       tma_latot@    

,)6(rahc     on_hcnarb_t@    

,)2(rahc       snart_dlo@    

,emitetad      etad_dilav@    

,)4,5(ciremun             xat@    

,)4,61(ciremun         tma_bus@    

价单售零--,   )4,61(ciremun     ecirp_elas@    

价单际实--,   )4,61(ciremun     ecirp_dilav@    

价原--,   )4,61(ciremun      ecirp_igro@    

量数--,   )4,61(ciremun          ytq_laer@    

量数--,   )4,61(ciremun          ytq_redro@    

码代品货--,        )02(rahc         on_meti@    

,)1(rahc       galf_tcca@    

,)1(rahc      galf_snart@    

,)4(rahc     nam_mrifnoc@    

,)4(rahc         di_repo@    

,)4(rahc       nam_redro@    

期日核审--,   emitetad       etad_krow@    

期日作操--,   emitetad       etad_repo@    

核审-1，核审未-0--  志标批审--,      )1(rahc   galf_evorppa@    

期日款付--,   emitetad        etad_yap@    

式方款付--,         )2(rahc        yaw_yap@    

种币--,         )3(rahc         on_nioc@    

码代户客商应供--,        )8(rahc     on_tsucpus@    

号证凭始原--,         )81(rahc      on_rehcuov@    

码代地的目--,        )6(rahc    on_hcnarb_d@    

码代店本--,        )6(rahc       on_hcnarb@    

式方库入出--,      )1(rahc        on_bd@    

式方作操存库--,         )2(rahc      on_snart@    

号单作工--, )81(rahc  on_teehs@    

eralced  


nruter )galf_evorppa(etadpu ton fi  

nigeb

sa

 etadpu rof

  retsam_teehs_mi_t no retsam_teehs_mi_rt reggirt etaerc


og

retsam_teehs_mi_rt reggirt pord  

)'retsam_teehs_mi_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_pm_sheet_master(MS).sql^^^^

dne

nruter  

1_ruc_oc etacollaed  

1_ruc_oc esolc  

:rorreym


nruter 

 

 

dne 

rorreym otog 0 =! rorre@@ fi    

)'S',on_hcnarb@ ,etad_yap@,'A'              	

,on_tsucpus@,'0',etad_repo@,'A',tma_xat@,tma_latot@ ,on_snart@ ,on_teehs@ ,1-(seulav       	

)epyt_cca,on_hcnarb,etad_cca,yaw_yap,on_tsucpus,galf_elttes,etad_repo,yaw_elas                                   	

,tma_xat,tma_dluohs,on_snart,on_rehcuov,epyt_yap(wolf_yapcer_mf_t otni tresni      	

       'C' >< yaw_elas@ fi      

 on_tsucpus@ = on_tsucpus erehw ofni_tsucpus_db_t morf yaw_elas = yaw_elas@ tceles      

)(etadteg=etad_yap@ tceles      

llun si etad_yap@ fi    

nigeb  

'OR'=on_snart@ ro 'IP'=on_snart@ fi  

账付应--  

  

  

1_ruc_oc etacollaed  

1_ruc_oc esolc  


dne  

ecirp_elas@,2mun@,xat@,tma_bus@        

,ecirp_dilav@,ecirp_igro@,ytq_laer@,ytq_redro@,on_meti@        

,galf_tcca@,galf_snart@        

,nam_mrifnoc@,di_repo@ ,nam_redro@        

,sutats_redro@,tma_redro@,etad_krow@,etad_repo@        

,galf_evorppa@,etad_yap@ ,yaw_yap@        

,on_nioc@,on_tsucpus@,on_rehcuov@        

,on_hcnarb_d@,on_hcnarb@,on_bd@,on_snart@,on_teehs@        

otni 1_ruc_oc hctef     


dne    

dne      

 dne        

rorreym otog 0 =! rorre@@ fi           

)on_meti@,on_tsucpus@(seulav             

)on_meti,on_tsucpus(meti_tsucpus_db_t otni tresni           

'1'=galf_tluafed@ tceles             

esle           

'0'=galf_tluafed@ tceles             

)on_meti@=on_meti erehw meti_tsucpus_db_t morf 1 tceles(stsixe fi           

品商应供商应供它其有--           

nigeb        

)on_meti@=on_meti dna on_tsucpus@=on_tsucpus erehw meti_tsucpus_db_t morf 1 tceles(stsixe ton fi        

nigeb      

)'1' = detubirtsid_si@ ro '0' = detubirtsid_si@( dna  '1' = lrtc_metipus_sg@ fi      

系关品商商应供护维部总在仅--      

nigeb    

'IC'=on_snart@ ro 'IG'=on_snart@ ro 'OR'=on_snart@ ro 'OP'=on_snart@ fi    

dne      

)xat@+1(/)xat@*ecirp_dilav@*ytq_laer@(+tma_xat@=tma_xat@ tceles         

ecirp_dilav@*ytq_laer@+tma_latot@=tma_latot@ tceles         

nigeb      

esle      

dne      

)xat@+1(/)xat@*tma_bus@(+tma_xat@=tma_xat@ tceles         

tma_bus@+tma_latot@=tma_latot@ tceles         

nigeb      

 10.0=<) ecirp_dilav@*ytq_laer@ - tma_bus@(sba fi      

61-70-0102 jsgnat 现出况情的合符不额金际实与额金单款帐的成生--      

，下况情格价算反量数、额金据根免避以，tma_bus取，下况情10.0=<差相ecirp_dilav*ytq_laer与tma_bus品商--      

'IC'=on_snart@ ro 'OR'=on_snart@ ro 'IP'=on_snart@ fi    

    



dne    

rorreym otog 0 =! rorre@@ fi      

)etad_dilav_meti@ , ytq_laer@ + ytq_kcots@,di_repo@,on_tsucpus@,on_bd@,on_snart@,on_hcnarb_d@,on_hcnarb@,0          

,tsoc_kcots@,0,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav        

)etad_dilav,ytnq_erp ,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs          

,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI      


on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles   		

llun si tsoc_kcots@ fi		

esle        

dne   	

) ytq_laer@ + ytq_kcots@(/yenom_kcots@ = tsoc_kcots@ tceles	   		

0 >< ytq_laer@ + ytq_kcots@ fi   		

esle		

0 = tsoc_kcots@ tceles   		

llun si tsoc_kcots@ fi		 

nigeb   	

'1' = ecirp_egnahc@ fi	


'IG' = di_teehs erehw on_teehs_sys_t morf )'0',tsoc_egnahc(llunsi = ecirp_egnahc@ tceles	


nigeb    

 'IG'=on_snart@ fi    


dne    

dne	

rorreym otog 0 =! rorre@@ fi     	

)etad_yap@,2mun@ + ytq_kcots@,di_repo@,on_tsucpus@,on_bd@,'OR',on_hcnarb_d@,on_hcnarb@,0       	

,0,0,2mun@,on_meti@,etad_krow@,)31,on_teehs@(thgir+'IG'(seulav     	

)etad_cca,ytnq_erp ,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs     	

,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI   	

    

on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles		

llun si tsoc_kcots@ fi     	

esle          

dne     	

) 2mun@ + ytq_kcots@(/)ecirp_dilav@ * ytq_laer@ + yenom_kcots@( = tsoc_kcots@ tceles	   		

0 >< 2mun@ + ytq_kcots@ fi   		

esle		

0 = tsoc_kcots@ tceles   		

llun si tsoc_kcots@ fi		 

nigeb     	

'1' = ecirp_egnahc@ fi  	

/*价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/    

ecirp_dilav@ = tsoc_kcots@ tceles    

'IG' = di_teehs erehw on_teehs_sys_t morf )'0',tsoc_egnahc(llunsi = ecirp_egnahc@ tceles  	


2mun@-=2mun@ tceles          

	

nigeb        

0=2mun@ ton fi        

品赠--      

      

rorreym otog 0 =! rorre@@ fi      

)etad_yap@,etad_dilav_meti@ ,ytq_kcots@,di_repo@,on_tsucpus@,on_bd@,on_snart@,on_hcnarb_d@,on_hcnarb@,ecirp_dilav@*ytq_laer@          

,ecirp_elas@,tsoc_kcots@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav        

)etad_cca,etad_dilav,ytnq_erp ,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs          

,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI      

/*    

      on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles   	

llun si tsoc_kcots@ fi	

esle      

dne	

ytq_kcots@/) ecirp_dilav@ * ytq_laer@ + yenom_kcots@ ( = tsoc_kcots@ tceles   	

0 >< ytq_kcots@ fi   	

esle	

ecirp_dilav@ = tsoc_kcots@ tceles   	

llun si tsoc_kcots@ fi   	

nigeb	

'1' = ecirp_egnahc@ fi      

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/    

ecirp_dilav@ = tsoc_kcots@ tceles      

ytq_laer@ + ytq_kcots@ = ytq_kcots@ tceles      

水流写--      

ytq_laer@-=ytq_laer@ tceles        

数负为改量数库入出--      


dne        

rorreym otog 0 =! rorre@@ fi          

on_rehcuov@ = on_teehs erehw '1' = sutats_redro TES  retsam_teehs_mp_t ETADPU            

esle          

on_rehcuov@ = on_teehs erehw '2' = sutats_redro TES  retsam_teehs_mp_t ETADPU            

)on_teehs yb puorg ytq_redro > ytq_laer dna on_rehcuov@ = on_teehs erehw            

liated_teehs_mp_t morf  on_teehs tceles(stsixe ton FI          

态状单定新更--          

    

rorreym otog 0 =! rorre@@ fi          

on_meti@ = on_meti dna on_rehcuov@ = on_teehs erehw            

2mun@ + )0,mun_emoc(llunsi = mun_emoc ,ytq_laer@ + )0,ytq_redro(llunsi = ytq_redro TES  liated_teehs_mp_t ETADPU          

量数货到品赠作用1mun ,态状单订,ytq_redro量数货到单定购采改修--          

nigeb        

'TR'=)2,on_rehcuov@(tfel dna '' >< )on_rehcuov@(mirtr fi      

态状单知通货退改更--       

nigeb    

 '+'=on_bd--  'OR'=on_snart@ fi    


dne    

 dne        

rorreym otog 0 =! rorre@@ fi            

)llun si tsucpus_niam ro on_tsucpus@ >< tsucpus_niam( dna on_meti@=on_meti erehw              

 on_tsucpus@=tsucpus_niam tes ofni_meti_db_t etadpu            

nigeb        

'1'=)'ppus_etadpu_otua'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(fi        

商应供主品商新更商应供前当按--        

        

 dne        


 on_hcnarb@=on_hcnarb dna  ecirp_dilav@ >< ecirp dna on_meti@=on_meti erehw ecirp_dilav@=ecirp tes ecirp_hcnarb_cp_t etadpu    			

esle    		

)'1' >< galf_gtbz  dna '5' = epyt_edart erehw ofni_hcnarb_db_t morf on_hcnarb tceles( ni on_hcnarb dna				

)3,on_hcnarb@(tfel=)3,on_hcnarb(tfel dna  ecirp_dilav@ >< ecirp dna on_meti@=on_meti erehw ecirp_dilav@=ecirp tes ecirp_hcnarb_cp_t etadpu            		

'5'=)on_hcnarb@=)on_hcnarb(rewol erehw ofni_hcnarb_db_t morf epyt_edart tceles(fi    	    	

/*)3,on_hcnarb@(tfel=on_hcnarb dna ecirp_dilav@ >< ecirp dna on_meti@=on_meti erehw ecirp_dilav@=ecirp tes ecirp_hcnarb_cp_t etadpu*/            	

价进构机新更--            	

            	

rorreym otog 0 =! rorre@@ fi            	

ecirp_dilav@ >< ecirp dna on_meti@=on_meti erehw )(etadteg =etad_yfidom,di_repo@=di_repo_yfidom, ecirp_dilav@=ecirp tes ofni_meti_db_t etadpu            	

nigeb        

)'1' >< ))'orez_egnahcton_ip'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(( ro )0 >< ecirp_dilav@ dna '1' = )'orez_egnahcton_ip'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles((( dna '1'=)'ecirpni_egnahc_ip'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys tceles(fi        

间时改修和，人改修后最新更并价进品商新更价货收按--        

        

rorreym otog 0 =! rorre@@ fi        

dne        

dne            

)ecirp_dilav@,ecirp_dilav@,ecirp_dilav@,on_meti@,on_tsucpus@(seulav                

)ecirp_tsal,ecirp_mottob,ecirp_pot,on_meti,on_tsucpus(meti_tsucpus_db_t otni tresni              

'1'=galf_tluafed@ tceles                

esle              

'0'=galf_tluafed@ tceles                

)on_meti@=on_meti erehw meti_tsucpus_db_t morf 1 tceles(stsixe fi              

品商应供商应供它其有--              

nigeb            

esle            

on_meti@=on_meti dna on_tsucpus@=on_tsucpus erehw                

ecirp_dilav@=ecirp_tsal                

,)dne ecirp_mottob esle ecirp_dilav@ neht llun si ecirp_mottob ro 0=ecirp_mottob ro )ecirp_dilav@>ecirp_mottob( nehw esac(=ecirp_mottob                

换代格价务业前当用应，况情的LLUN或0为价低最有现理处应--                

,)dne ecirp_pot esle ecirp_dilav@ neht ecirp_dilav@<ecirp_pot nehw esac(=ecirp_pot                

tes meti_tsucpus_db_t etadpu              

)on_meti@=on_meti dna on_tsucpus@=on_tsucpus erehw meti_tsucpus_db_t morf 1 tceles(stsixe fi            

nigeb        

)'1' = detubirtsid_si@ ro '0' = detubirtsid_si@( dna  '1' = lrtc_metipus_sg@ fi        

系关品商与商应供护维部总在限仅 --        

  		

dne	

rorreym otog 0 =! rorre@@ fi       	

) ecirp_elas@ ,etad_yap@ ,2mun@ + ytq_kcots@,di_repo@     		

,on_tsucpus@,on_bd@,'IG',on_hcnarb_d@,on_hcnarb@,0             	

,tsoc_kcots@,0,2mun@,on_meti@,etad_krow@,)31,on_teehs@(thgir+'IG'(seulav           	

)ecirp_elas,etad_cca,ytnq_erp ,di_repo     		

,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs             	

,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI        	

    	

on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles   			

llun si tsoc_kcots@ fi			

esle        	

dne   		

) 2mun@ + ytq_kcots@(/) ecirp_dilav@ * ytq_laer@ + yenom_kcots@ (= tsoc_kcots@ tceles	   			

0 >< 2mun@ + ytq_kcots@ fi   			

esle			

0 = tsoc_kcots@ tceles   			

llun si tsoc_kcots@ fi		 	

nigeb   		

'1' = ecirp_egnahc@ fi		

/*价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/    

ecirp_dilav@ = tsoc_kcots@ tceles		

'IG' = di_teehs erehw on_teehs_sys_t morf )'0',tsoc_egnahc(llunsi = ecirp_egnahc@ tceles		

nigeb        

	0=2mun@ ton fi        

品赠--	

        

dne	

rorreym otog 0 =! rorre@@ fi    	

) ecirp_elas@ ,etad_yap@ , ytq_kcots@,di_repo@     		

,on_tsucpus@,on_bd@,on_snart@,on_hcnarb_d@,on_hcnarb@,ecirp_dilav@*ytq_laer@             	

,tsoc_kcots@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav           	

)ecirp_elas,etad_cca,ytnq_erp ,di_repo     		

,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs             	

,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI    	

ecirp_dilav@ = tsoc_kcots@ tceles     

/*    

0 = tsoc_kcots@ tceles      

ytq_laer@ + ytq_kcots@ = ytq_kcots@ tceles    	

      

on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles   		

llun si tsoc_kcots@ fi		

esle    	

dne		

) ytq_laer@ + ytq_kcots@(/) ecirp_dilav@ * ytq_laer@ + yenom_kcots@ ( = tsoc_kcots@ tceles	   		

0 >< ytq_laer@ + ytq_kcots@ fi   		

esle		

ecirp_dilav@ = tsoc_kcots@ tceles   		

llun si tsoc_kcots@ fi		 

nigeb		

'1' = ecirp_egnahc@ fi    	

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/      

nigeb        

0=ytq_laer@ ton fi        

水流写--        


dne        

rorreym otog 0 =! rorre@@ fi          

on_rehcuov@ = on_teehs erehw '1' = sutats_redro TES  retsam_teehs_mp_t ETADPU            

esle          

on_rehcuov@ = on_teehs erehw '2' = sutats_redro TES  retsam_teehs_mp_t ETADPU            

)on_teehs yb puorg ytq_redro > ytq_laer dna on_rehcuov@ = on_teehs erehw            

liated_teehs_mp_t morf   on_teehs tceles(stsixe ton FI          

态状单定新更--          

    

rorreym otog 0 =! rorre@@ fi          

on_meti@ = on_meti dna on_rehcuov@ = on_teehs erehw            

2mun@ + )0,mun_emoc(llunsi = mun_emoc ,ytq_laer@ + )0,ytq_redro(llunsi = ytq_redro TES  liated_teehs_mp_t ETADPU          

量数货到品赠作用1mun ,态状单订,ytq_redro量数货到单定购采改修--          

nigeb        

'OP'=)2,on_rehcuov@(tfel dna '' >< )on_rehcuov@(mirtr fi        

nigeb    

库入货进-- 'IP'=on_snart@ fi    


dne    

dne        

rorreym otog 0 =! rorre@@ fi          

on_rehcuov@ = on_teehs erehw '1' = sutats_redro TES  retsam_teehs_mp_t ETADPU            

esle          

on_rehcuov@ = on_teehs erehw '2' = sutats_redro TES  retsam_teehs_mp_t ETADPU            

)on_teehs yb puorg  )mun_emoc > )0,ytq_dnes(llunsi ro ytq_redro > ytq_laer ( dna on_rehcuov@ = on_teehs erehw            

liated_teehs_mp_t morf   on_teehs tceles(stsixe ton FI          

态状单定新更--          

    

rorreym otog 0 =! rorre@@ fi          

on_meti@ = on_meti dna on_rehcuov@ = on_teehs erehw            

ytq_laer@ + )0,ytq_redro(llunsi = ytq_redro TES  liated_teehs_mp_t ETADPU          

态状单订,ytq_redro量数购采单货要改修--          

nigeb        

'' >< )on_rehcuov@(mirtr fi        

nigeb    

'OP'=on_snart@ fi    


on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles--    

llun si tsoc_kcots@ fi--    


0 = yenom_kcots@ tceles	

llun si yenom_kcots@ fi    


0 = ytq_kcots@ tceles	

llun si ytq_kcots@ fi    


on_meti@ = on_meti dna on_hcnarb@ = on_hcnarb erehw kcots_hcnarb_mi_t morf      

tma_tsoc = yenom_kcots@, tsoc_gva = tsoc_kcots@ ,ytq_kcots = ytq_kcots@ tceles    

llun = tsoc_kcots@ tceles    

llun = yenom_kcots@ tceles    

llun = ytq_kcots@ tceles    



on_snart@ = di_teehs erehw on_teehs_sys_t morf )'0',tsoc_egnahc(llunsi = ecirp_egnahc@ tceles    


rorreym otog       

出退接直--'HH'=on_snart@ ro 'QP'=on_snart@ ro 'HY'=on_snart@ ro 'JX'=on_snart@ fi    


nigeb  

0=sutats_hctef@@ elihw  

ecirp_elas@,2mun@,xat@,tma_bus@        

,ecirp_dilav@,ecirp_igro@,ytq_laer@,ytq_redro@,on_meti@        

,galf_tcca@,galf_snart@        

,nam_mrifnoc@,di_repo@ ,nam_redro@        

,sutats_redro@,tma_redro@,etad_krow@,etad_repo@        

,galf_evorppa@,etad_yap@ ,yaw_yap@        

,on_nioc@,on_tsucpus@,on_rehcuov@        

,on_hcnarb_d@,on_hcnarb@,on_bd@,on_snart@,on_teehs@        

otni 1_ruc_oc hctef  

1_ruc_oc nepo  


'0' = lrtc_metipus_sg@ tceles     

 '' = lrtc_metipus_sg@ ro llun si lrtc_metipus_sg@ fI  


'lrtc_metipus'=)di_rav_sys(rewol erehw metsys_sys_t morf    

 eulav_rav_sys = lrtc_metipus_sg@ tceles  

  

)'0' ,detubirtsid_si@(llunsi = detubirtsid_si@ tceles  

'detubirtsid_si'=)di_rav_sys(rewol erehw metsys_sys_t morf eulav_rav_sys=detubirtsid_si@ tceles  

0=tma_xat@ tceles  

0=tma_latot@ tceles  


零为得不量数据单--  )0><ytq_dnes.b ro 0><ytq_laer.b(  dna )'1' = galf_evorppa.a( dna      

) on_teehs.b = on_teehs.a ( erehw    

b liated_teehs_mp_t ,a detresni morf    

ecirp_elas.b,ytq_dnes.b,xat.b,tma_bus.b        

,ecirp_dilav.b,ecirp_igro.b,ytq_laer.b,ytq_redro.b,on_meti.b        

,galf_tcca.a,galf_snart.a        

,nam_mrifnoc.a,di_repo.a ,nam_redro.a        

,sutats_redro.a,tma_redro.a,etad_krow.a,etad_repo.a        

,galf_evorppa.a,etad_yap.a ,)'A',yaw_yap.a(llunsi        

,)'BMR',on_nioc.a(llunsi,)'',on_tsucpus.a(llunsi,)'',on_rehcuov.a(llunsi        

,)'',on_hcnarb_d.a(llunsi,on_hcnarb.a,on_bd.a,on_snart.a,on_teehs.a tceles    

rof rosruc 1_ruc_oc eralced  

   

额税--   )4,61(ciremun            tma_xat@    

额金本成-- , )4,61(ciremun	  yenom_kcots@    

,)1(rahc	 ecirp_egnahc@    

格价本成--  ,)4,61(ciremun	  tsoc_kcots@    

量数存库--  ,)4,61(ciremun	  ytq_kcots@    

价售零的时库入--  ,)4,61(ciremun	 ecirp_elas@    

,)2(rahcrav     detubirtsid_si@    

,)02(rahcrav	       2rehto@    

,)02(rahcrav	       1rehto@    

,)1(rahc       galf_tluafed@    

理管系关品商商应供--        ,)1(rahc    lrtc_metipus_sg@    

号证凭始原--        ,)81(rahc      on_rehcuov_ip@    

,)2(rahc	       snart_dlo@    

额金--   ,)4,61(ciremun	       tma_latot@    

,emitetad    etad_dilav_meti@    

,)4,5(ciremun	             xat@    

,)4,61(ciremun	         tma_bus@    

价单售零--,   )4,61(ciremun	     ecirp_dilav@    

价单货进--,   )4,61(ciremun	      ecirp_igro@    

量数品赠--,   )4,61(ciremun	          2mun@    

量数--,   )4,61(ciremun	          ytq_laer@    

量数--,   )4,61(ciremun          ytq_redro@    

码代品货--,        )02(rahc	         on_meti@    

,)1(rahc	       galf_tcca@    

,)1(rahc	      galf_snart@    

,)1(rahc	       yaw_elas@    

,)4(rahc	         di_tped@    

,)4(rahc	     nam_mrifnoc@    

,)4(rahc	         di_repo@    

,)4(rahc	       nam_redro@    

,)1(rahc	  sutats_redro@    

,   )4,61(ciremun	    tma_redro@    

期效有单订--,   emitetad	       etad_dilav@    

期日核审--,   emitetad	       etad_krow@    

期日作操--,   emitetad	       etad_repo@    

核审-1，核审未-0--  志标批审--,      )1(rahc	   galf_evorppa@    

志标调协--      ,)1(rahc	      galf_tped@    

期日款付--,   emitetad	        etad_yap@    

式方款付--,         )2(rahc	        yaw_yap@    

种币--,         )3(rahc	         on_nioc@    

码代户客商应供--,        )8(rahc	     on_tsucpus@    

号证凭始原--,         )81(rahc	      on_rehcuov@    

码代地的目--,        )6(rahc	    on_hcnarb_d@    

码代店本--,        )6(rahc	       on_hcnarb@    

式方库入出--,      )1(rahc	        on_bd@    

式方作操存库--,         )2(rahc	      on_snart@    

号单作工--, )81(rahc		  on_teehs@    

eralced  


nruter )galf_evorppa(etadpu ton fi  

nigeb

sa

 etadpu rof

  retsam_teehs_mp_t no retsam_teehs_mp_rt reggirt etaerc




og

retsam_teehs_mp_rt reggirt pord  

)'retsam_teehs_mp_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_rm_protion_flow(MS).sql^^^^




dne

 ruc_wolforp  etacollaed

ruc_wolforp esolc


dne	


on_moc@=on_moc erehw		

on_trectfig@=on_trectfig tes		

wolf_noitorp_mr_t etadpu		

号券应对水流改修--		

		

on_teehs_sl@=on_teehs erehw		

elur_noitorp_mr_t morf		

'券发售销台前',ONhcnarb_sl@,)etad_dne,01,yad(ddaetad,)(etadteg,'1',)(etadteg,di_repo@,yenom_dnes@,'0',on_trectfig@ tceles		

)omem,hcnarb_dnes,etad_dne,etad_nigeb,sutats,etad_repo,di_repo,yenom_tfig,epyt_tfig,on_trectfig(etacifitrec_tfig_mr_t otni tresni		

券返入插--		


niga_lebal otog			

)on_trectfig@=on_trectfig erehw etacifitrec_tfig_mr_t morf * tceles(stsixe fi		

tuptuo on_trectfig@,'00' ontrectfig_teg_rp cexe		

:niga_lebal		

号券取--		

nigeb	

'6A'= galf_ceps_sl@ ro '7A'= galf_ceps_sl@ fi	

40609102号券成生券送--	

   

dne   

on_moc@,di_repo@,yenom_dnes@, ytQelas_nl@,on_teehs_sl@,galf_ceps_sl@,ONmetI_sl@,ONhcnarb_sl@ otni ruc_wolforp hctef    

dne     

ONhcnarb_sl@=on_hcnarb dna on_teehs_sl@=on_teehs erehw ytQelas_nl@ + ytq_dlos = ytq_dlos tes ecirp_ceps_mr_t etadpu		

nigeb     

'dp'=galf_ceps_sl@ fi     

nigeb   

0=sutats_hctef@@ elihw  

值量数销促量超牌品表 ecirp_ceps_mr_t新更--  

on_moc@,di_repo@, yenom_dnes@,ytQelas_nl@,on_teehs_sl@,galf_ceps_sl@,ONmetI_sl@,ONhcnarb_sl@ otni ruc_wolforp hctef  

ruc_wolforp nepo  

detresni morf on_moc,di_repo,yenom_dnes,ytq_elas,on_teehs,epyt_laiceps,on_meti,on_hcnarb tceles 

rof rosruc ruc_wolforp eralced 

据数水流销促当 --   

     

)0,61(ciremun on_moc@  	

, )4(rahcrav di_repo@  	

额金券赠-- ,)4,61(ciremun  yenom_dnes@  	

号券-- ,)02(rahcrav on_trectfig@  	

号单销促--   ,)02(rahcrav  on_teehs_sl@      

型类销促--   ,)01(rahcrav galf_ceps_sl@      

量数售销品商 --   ,)4,61(ciremun ytQelas_nl@      

码编品商 --         ,)02(rahc ONmetI_sl@      

码编库仓 --    ,)6(rahc ONhcnarb_sl@ eralced  


nigeb

sa

tresni rof

 wolf_noitorp_mr_t no wolf_noitorp_mr_rt reggirt etaerc



og

wolf_noitorp_mr_rt reggirt pord  

)'wolf_noitorp_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi

####$$$$$$tr_rm_saleflow(MS).sql^^^^

dne

/* 

dne	


dne			

ONhcnarb_sl@=on_hcnarb dna ONmetI_sl@=on_meti erehw ytQelas_nl@ + ytq_dlos = ytq_dlos tes ecirp_ceps_mr_t etadpu				

0>ytq_detimil_nl@ fi			

ONhcnarb_sl@=on_hcnarb dna ONmetI_sl@=on_meti erehw ecirp_ceps_mr_t morf ytq_detimil =ytq_detimil_nl@ tceles			

nigeb			

售销 -- 0> ytq_detimil_nl@ dna--			

 'A'=yaWelas_sl@ fi		

nigeb	   

'sp'=galf_ceps_sl@ fi   

存库销促少减要需,时售销销促量限场全当 HCgnaiJ yB ddA--	

*/

31-60-0102 jsgnat 蔽屏处此，理处detimil_evas_fo中niam_w_liater在量售已新更--

dne   

dne       

)dI_wolf@,galf_pus_meti@,on_tsucpus@,'0',etar_yl_pus@,'C',ytQelas_nl@ - ytq_kcots@ ,'售销台前',on_wolf@,di_repo@,'-','TP',ONhcnarb_sl@,crPecruos_nl@,ecirp_tsoc@,0,0,ytQelas_nl@,ONmeti_sl@,emiTetaDelas_tdl@( seulav             

 )di_sop,yaw_elas_pus,on_pus,galf_yap,etar_yl_pus,yaw_elas,ytnq_erp,omem,on_rehcuov,di_repo,on_bd,on_snart,on_hcnarb,ecirp_elas,ecirp_tsoc,tma_teehs,ecirp,ytq_laer,on_meti,etad_repo(wolf_mi_t otni tresni             

送赠 -- 'C'=yaWelas_sl@ fi esle          

)dI_wolf@,galf_pus_meti@,on_tsucpus@,'0',etar_yl_pus@,'B',ytQelas_nl@ - ytq_kcots@ ,'售销台前',on_wolf@,di_repo@,'-','TP',ONhcnarb_sl@,crPecruos_nl@,ecirp_tsoc@,tmAelas_nl@,crPelas_nl@,ytQelas_nl@,ONmeti_sl@,emiTetaDelas_tdl@( seulav             

 )di_sop,yaw_elas_pus,on_pus,galf_yap,etar_yl_pus,yaw_elas,ytnq_erp,omem,on_rehcuov,di_repo,on_bd,on_snart,on_hcnarb,ecirp_elas,ecirp_tsoc,tma_teehs,ecirp,ytq_laer,on_meti,etad_repo(wolf_mi_t otni tresni             

货退 -- 'B'=yaWelas_sl@ fi esle          

)dI_wolf@,galf_pus_meti@,on_tsucpus@,'0',etar_yl_pus@,'A',ytQelas_nl@ - ytq_kcots@ ,'售销台前',on_wolf@,di_repo@,'-','TP',ONhcnarb_sl@,crPecruos_nl@,ecirp_tsoc@,tmAelas_nl@,crPelas_nl@,ytQelas_nl@,ONmeti_sl@,emiTetaDelas_tdl@( seulav             

 )di_sop,yaw_elas_pus,on_pus,galf_yap,etar_yl_pus,yaw_elas,ytnq_erp,omem,on_rehcuov,di_repo,on_bd,on_snart,on_hcnarb,ecirp_elas,ecirp_tsoc,tma_teehs,ecirp,ytq_laer,on_meti,etad_repo(wolf_mi_t otni tresni             

售销 -- 'A'=yaWelas_sl@ fi          

nigeb       

esle       

dne       

nruter 0 =! rorre@@ fi           

yaWelas_sl@,on_wolf@,di_repo@,ONhcnarb_sl@,crPelas_nl@,ytQelas_nl@,ONmeti_sl@,emiTetaDelas_tdl@ wolf_metibmoc_rp cexe           

nigeb       

)'1'= ats_enibmoc dna ONmeti_sl@=on_meti erehw ofni_meti_db_t morf 1 tceles(stsixe fi       

水流写品商份成将则是，品商合组销促为否是断判 --       

       

)0 ,etar_yl_pus@(llunsi = etar_yl_pus@ tceles        

dne        

 etar_ced_edl@ =etar_yl_pus@ tceles			

 0 >< etar_ced_edl@ dna )llun ton si etar_ced_edl@( fi    	

/*etar_pmt_nl@ =etar_yl_pus@ tceles               

 llun ton si etar_pmt_nl@ fi            

            

))121,etad_dne ,)01(rahc(trevnoc dna )121,etad_trats ,)01(rahc(trevnoc neewteb etadrepo_sl@ dna               

 )'1' = )1 ,)etadrepo_sl@ ,wd(TRAPETAD ,keew(gnirtsbus( dna               

'SP'=)2,on_teehs(tfel dna ONhcnarb_sl@ = on_hcnarb dna '0' = epyt_laiceps dna   ONmetI_sl@ = on_meti erehw             

 wolfelas_mr_t morf etar_ced 1 pot tceles( = etar_pmt_nl@ TCELES*/            

nigeb        

商应供营联-- 'C' = galf_pus_meti@ fi        

        

on_tsucpus@=on_tsucpus erehw  ofni_tsucpus_db_t morf yaw_elas=galf_pus_meti@ tceles        

ONmetI_sl@ = on_meti erehw ofni_meti_db_t morf tsucpus_niam=on_tsucpus@,etar_pus=etar_yl_pus@ tceles        

存库新更--        

nigeb   

)      

)'3'=epyt_kcots@( ro )'6' = epyt_kcots@(        

ro )'5' = epyt_kcots@ dna )3,ONhcnarb_sl@(tfel = )3,hcnarb_lacol@(tfel(        

 ro )ONhcnarb_sl@ = hcnarb_lacol@( ( fI   

存库新更 ,水流存库写 录记的店管代 者或 售销)库仓下店本(店本--   

60-60-9002 sjuw yb deifidoM--   

   

dne   

nam_elas@=di_elas dna etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb erehw          

)0,tma_etar_ytud(llunsi =	  tma_etar_ytud      	

,)0,tma_etar_nruter(llunsi =	 tma_etar_nruter      	

,)0,tma_etar_dnarb(llunsi =	tma_etar_dnarb      	

, )0,tma_etar_sslc(llunsi =	 tma_etar_sslc      	

,)0,tma_noitar_elas(llunsi =	tma_noitar_elas      	

额成提算计不送赠-- , )0,tma_etar_elas(llunsi =	 tma_etar_elas      	

,'0'=galf_moc              

,etar_elas_nl@=etar_elas              

,crPelas_nl@=ecirp_elas              

,tmAelas_nl@+tma_dnes_sop=tma_dnes_sop              

,ytQelas_nl@+ytq_dnes_sop=ytq_dnes_sop              

tes musyad_namelas_ad_t etadpu          

  送赠 -- 'C'=yaWelas_sl@ fi esle       

nam_elas@=di_elas dna etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb erehw          

tma_etar_ytud@ +	 )0,tma_etar_ytud(llunsi =	  tma_etar_ytud      	

,tma_etar_nruter@ +	 )0,tma_etar_nruter(llunsi =	 tma_etar_nruter      	

,tma_etar_dnarb@ +	 )0,tma_etar_dnarb(llunsi =	tma_etar_dnarb      	

,tma_etar_sslc@ +	 )0,tma_etar_sslc(llunsi =	 tma_etar_sslc      	

,tma_noitar_elas@ +	 )0,tma_noitar_elas(llunsi =	tma_noitar_elas      	

去减额金的成提算计原将要需货退--  ,tma_etar_elas@ +	 )0,tma_etar_elas(llunsi =	 tma_etar_elas      	

,'0'=galf_moc              

,etar_elas_nl@=		etar_elas              

,tmAtcd_nl@ -		 tma_tcd_sop=	tma_tcd_sop              

,crPelas_nl@=	ecirp_elas              

,tmAelas_nl@ +		tma_ter_sop=	tma_ter_sop              

,ytQelas_nl@ +		ytq_ter_sop=	ytq_ter_sop              

tes musyad_namelas_ad_t etadpu          

货退 -- 'B'=yaWelas_sl@ fi esle       

nam_elas@=di_elas dna etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb erehw          

tma_etar_ytud@ +	 )0,tma_etar_ytud(llunsi =	  tma_etar_ytud     	

,tma_etar_nruter@ +	 )0,tma_etar_nruter(llunsi =	 tma_etar_nruter     	

,tma_etar_dnarb@ +	 )0,tma_etar_dnarb(llunsi =	tma_etar_dnarb     	

,tma_etar_sslc@ +	 )0,tma_etar_sslc(llunsi =	 tma_etar_sslc     	

,tma_noitar_elas@ +	 )0,tma_noitar_elas(llunsi =	tma_noitar_elas     	

额金成提的应相加增要需售销--,tma_etar_elas@ +	 )0,tma_etar_elas(llunsi =	 tma_etar_elas     	

,'0'=galf_moc             

,etar_elas_nl@=		etar_elas             

,tmAtcd_nl@ +		 tma_tcd_sop=	tma_tcd_sop             

,crPelas_nl@=		ecirp_elas             

,tmAelas_nl@ +		tma_sop=		tma_sop             

,ytQelas_nl@ +		ytq_sop=		ytq_sop             

tes musyad_namelas_ad_t etadpu          

售销 -- 'A'=yaWelas_sl@ fi       

nigeb   

新更，在存已细明 --  esle   

dne   

)0,0,0,0,0,0,'0',0,etar_elas_nl@,crPelas_nl@,tmAelas_nl@,0,0,ytQelas_nl@,0,0,ecirp_tsoc@,nam_elas@,etaDrepo_sl@,ONmetI_sl@,ONhcnarb_sl@( seulav          

)tma_etar_ytud,tma_etar_nruter,tma_etar_dnarb,tma_etar_sslc,tma_noitar_elas,tma_etar_elas,galf_moc,tma_tcd_sop,etar_elas,ecirp_elas,tma_dnes_sop,tma_ter_sop,tma_sop,ytq_dnes_sop,ytq_ter_sop,ytq_sop,ecirp_tsoc,di_elas,etad_repo,on_meti,on_hcnarb(musyad_namelas_ad_t otni tresni          

送赠 -- 'C'=yaWelas_sl@ fi esle       

)tma_etar_ytud@,tma_etar_nruter@,tma_etar_dnarb@,tma_etar_sslc@,tma_noitar_elas@,tma_etar_elas@,'0',tmAtcd_nl@-,etar_elas_nl@,crPelas_nl@,0,tmAelas_nl@,0,0,ytQelas_nl@,0,ecirp_tsoc@,nam_elas@,etaDrepo_sl@,ONmetI_sl@,ONhcnarb_sl@( seulav          

)tma_etar_ytud,tma_etar_nruter,tma_etar_dnarb,tma_etar_sslc,tma_noitar_elas,tma_etar_elas,galf_moc,tma_tcd_sop,etar_elas,ecirp_elas,tma_dnes_sop,tma_ter_sop,tma_sop,ytq_dnes_sop,ytq_ter_sop,ytq_sop,ecirp_tsoc,di_elas,etad_repo,on_meti,on_hcnarb(musyad_namelas_ad_t otni tresni          

货退 -- 'B'=yaWelas_sl@ fi esle       

)tma_etar_ytud@,tma_etar_nruter@,tma_etar_dnarb@,tma_etar_sslc@,tma_noitar_elas@,tma_etar_elas@,'0',tmAtcd_nl@,etar_elas_nl@,crPelas_nl@,0,0,tmAelas_nl@,0,0,ytQelas_nl@,ecirp_tsoc@,nam_elas@,etaDrepo_sl@,ONmetI_sl@,ONhcnarb_sl@( seulav          

)tma_etar_ytud,tma_etar_nruter,tma_etar_dnarb,tma_etar_sslc,tma_noitar_elas,tma_etar_elas,galf_moc,tma_tcd_sop,etar_elas,ecirp_elas,tma_dnes_sop,tma_ter_sop,tma_sop,ytq_dnes_sop,ytq_ter_sop,ytq_sop,ecirp_tsoc,di_elas,etad_repo,on_meti,on_hcnarb(musyad_namelas_ad_t otni tresni          

         售销 -- 'A'=yaWelas_sl@ fi       

nigeb   

加增，在存不细明 -- '0'=galFtsixEmetI_sl@ fi   

	


	



 额成提务职员业营品商本--	etar_ytud_elas_nl@ * tmAelas_nl@ =  tma_etar_ytud@ tceles	

di_repo@ = di_sbin.b dna  di_elas.b = di_elas.a erehw  b liated_namelas_mr_t,  a namelas_mr_t morf ) 0 ,etar_ytud_elas (llunsi  = etar_ytud_elas_nl@ tceles	

额成提属上应对员作操该到得--   

额成提员业营品商本--		  etar_elas_nl@ * tmAelas_nl@ =tma_etar_nruter@ tceles	

额成提牌品品商本--		 etar_dnarb_nl@ * tmAelas_nl@ = tma_etar_dnarb@ tceles	

额成提别类品商本--		  etar_sslc_nl@ * tmAelas_nl@ =  tma_etar_sslc@ tceles	

额成提售销品商本--		   etarelas_nl@ * tmAelas_nl@ =  tma_etar_elas@ tceles	

)musyad_namelas_ad_t(表结日员业营写 --   


'1'=galFtsixEmetI_sl@ tceles      

在存已 --  esle   

'0'=galFtsixEmetI_sl@ tceles      

在存不 -- ))nam_elas@ = di_elas dna etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb(erehw      

musyad_namelas_ad_t morf * tceles(stsixe ton fi   

在存已否是中表结日员业营在找查 --   

   

dne   

etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb erehw             

'0'=galf_moc               

,crPelas_nl@=ecirp_elas               

,tmAelas_nl@+tma_vig=tma_vig               

,ytQelas_nl@+ytq_vig=ytq_vig               

tes musyad_mr_t etadpu            

送赠 -- 'C'=yaWelas_sl@ fi esle       

etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb erehw             

'0'=galf_moc               

,tmAtcd_nl@ - tnuoma_tcd=tnuoma_tcd               

,crPelas_nl@=ecirp_elas               

,tmAelas_nl@+tma_ter=tma_ter               

,ytQelas_nl@+ytq_ter=ytq_ter               

tes musyad_mr_t etadpu            

货退 -- 'B'=yaWelas_sl@ fi esle       

etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb erehw             

'0'=galf_moc                

,tmAtcd_nl@ + tnuoma_tcd=tnuoma_tcd                

,crPelas_nl@=ecirp_elas                

,tmAelas_nl@+tma_elas=tma_elas                

,ytQelas_nl@+ytq_elas=ytq_elas                

tes musyad_mr_t etadpu            

售销 -- 'A'=yaWelas_sl@ fi       

nigeb   

新更，在存已细明 --  esle   

dne   

)0,0,crPelas_nl@,tmAelas_nl@,0,0,ytQelas_nl@,0,0,etaDrepo_sl@,ONmetI_sl@,ONhcnarb_sl@( seulav         

)tnuoma_tcd,ytq_erp,ecirp_elas,tma_vig,tma_ter,tma_elas,ytq_vig,ytq_ter,ytq_elas,etad_repo,on_meti,on_hcnarb(musyad_mr_t otni tresni         

送赠 -- 'C'=yaWelas_sl@ fi esle       

)tmAtcd_nl@-,0,crPelas_nl@,0,tmAelas_nl@,0,0,ytQelas_nl@,0,etaDrepo_sl@,ONmetI_sl@,ONhcnarb_sl@( seulav         

)tnuoma_tcd,ytq_erp,ecirp_elas,tma_vig,tma_ter,tma_elas,ytq_vig,ytq_ter,ytq_elas,etad_repo,on_meti,on_hcnarb(musyad_mr_t otni tresni         

货退 -- 'B'=yaWelas_sl@ fi esle       

)tmAtcd_nl@,0,crPelas_nl@,0,0,tmAelas_nl@,0,0,ytQelas_nl@,etaDrepo_sl@,ONmetI_sl@,ONhcnarb_sl@( seulav         

)tnuoma_tcd,ytq_erp,ecirp_elas,tma_vig,tma_ter,tma_elas,ytq_vig,ytq_ter,ytq_elas,etad_repo,on_meti,on_hcnarb(musyad_mr_t otni tresni         

售销 -- 'A'=yaWelas_sl@ fi       

nigeb   

加增，在存不细明 -- '0'=galFtsixEmetI_sl@ fi   

trats.............................................)muSyad_mr_t(表结日售销品商写 --   

   

'1'=galFtsixEmetI_sl@ tceles      

在存已 --  esle   

'0'=galFtsixEmetI_sl@ tceles      

在存不 -- ))etaDrepo_sl@=etad_repo dna ONmetI_sl@=on_meti dna ONhcnarb_sl@=on_hcnarb(erehw      

musyad_mr_t morf * tceles(stsixe ton fi   

在存已否是中表结日售销品商在找查 --   

   

)121,emiTetaDelas_tdl@,)01(rahc(trevnoc=etaDrepo_sl@ tceles   

ddmmyyyy='211'：为式格，）天当（期日型符字换转 --   

   

   

0 = tmAtcd_nl@ tceles )''=)galf_ceps_sl@(mirtl ro llun si galf_ceps_sl@( fi   

额金利让取接直 --   

   

)0,ytq_kcots@(llunsi = ytq_kcots@ tceles   

ONmetI_sl@ = on_meti dna ONhcnarb_sl@ = on_hcnarb erehw kcots_hcnarb_mi_t morf )0,ytq_kcots(llunsi = ytq_kcots@ tceles   

   

)4  ,crPelas_nl@ * ytQelas_nl@(dnuor =   tmAelas_nl@ tceles   

)4,crPecruos_nl@ * ytQelas_nl@(dnuor = tmAecruos_nl@ tceles   

数小位四取额金 额金售销的际实和额金售销的定预来原算计 --   

   

dnE   

/*      

nruter         

))3,ONhcnarb_sl@(tfel >< )3,hcnarb_lacol@(tfel ( ro '8' = epyt_kcots@ ro '7' = epyt_kcots@ fi      

据数表报的他其成生据数水流售销由部总在后然,流售销传上式方输传的新 *      

50-60-9002 sjuw yb detnemmoC  */      

ONhcnarb_sl@ = on_hcnarb EREHW ofni_hcnarb_db_t MORF epyt_edart = epyt_kcots@ TCELES      

nigeB   

ONhcnarb_sl@ >< hcnarb_lacol@ fI   

   

'on_kcots_g' = di_rav_sys EREHW metsys_sys_t MORF )'' ,eulav_rav_sys(llunsi = hcnarb_lacol@ TCELES   

   

detresni morf      

成提额定--	on_tfihs=	tma_noitar_elas@	

,etar_ced=	    etar_ced_edl@	

,etar_ytud_elas=	 etar_ytud_elas_nl@	

,etar_dnarb=		etar_dnarb_nl@	

,etar_sslc=		etar_sslc_nl@        

,etar_elas=		 etar_elas_nl@	

,mun_cca=		etarelas_nl@        

,nam_elas=		nam_elas@        

,di_repo=		 di_repo@        

,ecirp_tsoc=		 ecirp_tsoc@        

,tma_ferp=		tmAtcd_nl@        

,galf_ceps=		galf_ceps_sl@        

,etad_repo=	emiTetaDelas_tdl@        

,yaw_lles=		yaWelas_sl@        

,ecirp_elas=		crPelas_nl@        

,ecirp_ecruos=		crPecruos_nl@        

,ytnq_elas=		ytQelas_nl@        

,on_meti=		ONmetI_sl@        

,on_hcnarb=		ONhcnarb_sl@        

,on_wolf=		 on_wolf@        

,di_wolf=		 dI_wolf@  tceles   


据数水流售销前当 --   

   额成提例比案档--	)4,61(ciremun		tma_etar_elas@      

额成提额定案档--  ,)4,61(ciremun		tma_noitar_elas@      

式方成提案档--	,)1(rahc		epyt_mfpd@      

额成提务职员业营--	,)4,61(ciremun		tma_etar_ytud@      

    额成提员业营--	,)4,61(ciremun		tma_etar_nruter@      

    额成提牌品品商--	,)4,61(ciremun		tma_etar_dnarb@      

  额成提别类品商--	,)4,61(ciremun		tma_etar_sslc@      

     率比成提务职员业营--	,)4,61(ciremun	 etar_ytud_elas_nl@      

率比成提牌品品商--	 ,)4,61(ciremun		 etar_dnarb_nl@      

率比成提别类品商--	 ,)4,61(ciremun		 etar_sslc_nl@      

率比成提案档品商--  ,)4,61(ciremun		  etarelas_nl@      

量限场全--	,)4,61(ciremun		 ytq_detimil_nl@      

地本否是--	     ,)1(rahc		 hcnarb_lacolsi@      

,)8(rahc		 on_tsucpus@      

率扣营联--	 ,)4,61(ciremun		etar_ced_edl@      

率扣营联--	 ,)4,61(ciremun		 etar_pmt_nl@      

率扣营联--	 ,)4,61(ciremun		 etar_yl_pus@      

,)1(rahc		 galf_pus_meti@      

率比成提员业营--	 ,)4,61(ciremun		 etar_elas_nl@      

员业营--	 ,)6(rahc		  nam_elas@      

,)6(rahc		 hcnarb_lacol@      

 型类店门--	    ,)1(rahc		 epyt_kcots@      

,)4,61(ciremun		 ytq_kcots@      

,)3(ciremun			 dI_wolf@      

,)81(rahc			 on_wolf@      

,)6(rahc			 di_repo@      

,)4,61(ciremun		 ecirp_tsoc@      

,)01(rahcrav		 galf_ceps_sl@      

在存已='1'；在存不='0'，志标在存已否是中)muSyad_mr_t(表结日售销品商在品商细明 --	   ,)1(rahc	 galFtsixEmetI_sl@      

ddmmyyyy：为式格，）天当（期日型符字 --       ,)01(rahc		 etaDrepo_sl@      

间时售销 --	   ,emitetad	 emiTetaDelas_tdl@      

式方售销 --        ,)1(rahc		 yaWelas_sl@      

.额金扣折品商--  ,)4,61(ciremun		 tmAtcd_nl@      

额金售销品商 --  ,)4,61(ciremun		 tmAelas_nl@      

额金售销的定预来原品商 --  ,)4,61(ciremun		tmAecruos_nl@      

价单售销品商 --  ,)4,61(ciremun		 crPelas_nl@      

价单的定预来原品商 --  ,)4,61(ciremun		 crPecruos_nl@      

量数售销品商 --  ,)4,61(ciremun		 ytQelas_nl@      

码编品商 --       ,)02(rahc		 ONmetI_sl@      

码编库仓 --	       ,)6(rahc		 ONhcnarb_sl@ eralced  


nigeb

sa

tresni rof

 wolfelas_mr_t no wolfelas_mr_rt reggirt etaerC



og

wolfelas_mr_rt reggirt pord  

)'wolfelas_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_rm_vip_accflow(MS).sql^^^^

dne

    	

 dne  	

	dne     		

	


dne								

)'0',epyt_drac_ot@,epyt_drac@,didrac_sl@,on_hcnarb_sl@,'1'(seulav )galf_dnes,epyt_drac_ot,epyt_drac,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni 										

 '1' = )1,eulav_rav_sl@(tfel fi        									

)))'epyt_drac'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES									

nigeb								

 0 > wor_ll@ fi								

级升动自卡员会--								

didrac_sl@ = di_drac erehw   epyt_drac_ot@ = epyt_drac tes ofni_piv_mr_t etadpu								

won_tma_etadpu_nl@ > ot_tma_etadpu_nl@ dna epyt_drac_ot@ >< epyt_drac@ dna llun ton si  epyt_drac_ot@ fi							

epyt_drac@ = di_epyt erehw epyt_piv_mr_t morf )0,tma_etadpu(llunsi = won_tma_etadpu_nl@ tceles						

CSA tma_etadpu yb redro								

 tma_musnoc_nl@ =< )0,tma_etadpu(llunsi erehw							

epyt_piv_mr_t morf  )0,tma_etadpu(llunsi = ot_tma_etadpu_nl@,di_epyt = epyt_drac_ot@ tceles						

nigeb     		

额费消按---- '1' = epytpu_piv@ fi    		

	

dne		     	

								

dne								

)'0',epyt_drac_ot@,epyt_drac@,didrac_sl@,on_hcnarb_sl@,'1'(seulav )galf_dnes,epyt_drac_ot,epyt_drac,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni 										

 '1' = )1,eulav_rav_sl@(tfel fi        									

)))'epyt_drac'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES									

nigeb								

 0 > wor_ll@ fi								

级升动自卡员会--								

								

didrac_sl@ = di_drac erehw   epyt_drac_ot@ = epyt_drac tes ofni_piv_mr_t etadpu								

won_cca_etadpu_nl@ > ot_cca_etadpu_nl@ dna epyt_drac_ot@ >< epyt_drac@ dna llun ton si epyt_drac_ot@ fi							

epyt_drac@ = di_epyt erehw epyt_piv_mr_t morf )0,cca_etadpu(llunsi = won_cca_etadpu_nl@ tceles						

CSA cca_etadpu yb redro								

 mun_cca_nl@ =< )0,cca_etadpu(llunsi erehw							

epyt_piv_mr_t morf )0,cca_etadpu(llunsi = ot_cca_etadpu_nl@,di_epyt = epyt_drac_ot@  tceles						

nigeb		     	

分积按---- '0' = epytpu_piv@ fi    		

didrac_sl@ = di_drac erehw ofni_piv_mr_t morf					

 mun_cca = mun_cca_nl@ , tma_musnoc = tma_musnoc_nl@ tceles    		

nigeb    	

 '1' = etadpu_piv@ fi  	

         

 		

'0'=epytpu_piv@ tceles  	

llun si epytpu_piv@ fi	

'0' = etadpu_piv@  tceles		

llun si etadpu_piv@ fi  	

	

'epytpu_piv_sop' = di_rav_sys erehw metsys_sys_t  morf eulav_rav_sys=epytpu_piv@ tceles	

'etadpu_piv_sop' = di_rav_sys erehw metsys_sys_t  morf eulav_rav_sys=etadpu_piv@ tceles	


级升动自员会行进-----    


               

dne			

	

)tma_musnoc_nl@,'6','0',mun_cca_nl@,didrac_sl@,didrac_sl@,on_hcnarb_sl@,'2'(seulav )tma_egnahc,epyt_repo,galf_dnes,mun_cca_vig,drac_rehtaf,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni 					

值储转分积--  					

 '1' = )1,eulav_rav_sl@(tfel fi        				

)))'6vig_piv'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES				

nigeb			

0 > wor_ll@ fi		

'6' = epyt_repo_sl@ fi	

               

dne			

)'3','0',mun_cca_nl@,didrac_sl@,didrac_sl@,on_hcnarb_sl@,'2'(seulav )epyt_repo,galf_dnes,mun_cca_vig,drac_rehtaf,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni					

品商换兑分积-- 					

 '1' = )1,eulav_rav_sl@(tfel fi        				

)))'3vig_piv'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES				

nigeb			

 0 > wor_ll@ fi		

'3' = epyt_repo_sl@ fi	


		

dne			

)tma_musnoc_nl@,'F','0',mun_cca_nl@,didrac_sl@,didrac_sl@,on_hcnarb_sl@,'2'(seulav )tma_egnahc,epyt_repo,galf_dnes,mun_cca_vig,drac_rehtaf,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni						

表此写才时负为分积用-- 0 < mun_cca_nl@ fi					

 '1' = )1,eulav_rav_sl@(tfel fi				

'PIV' = on_nioc dna on_wolf_sl@ = on_wolf erehw  wolfyap_mr_t morf tnuoma_yap = tma_musnoc_nl@ tceles				

)))'fvig_piv'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES				

nigeb			

 0 > wor_ll@ fi		

式款付分积--		

didrac_sl@ = di_drac erehw			

mun_cca_nl@ - )0,mun_ced(llunsi = mun_ced	                

62701102 hygneg yb 蔽屏句此--  ,mun_cca_nl@ + )0,mun_cca(llunsi = mun_cca--			

,mun_cca_nl@ + )0,mun_cca_won(llunsi = mun_cca_won  tes 		  	

 ofni_piv_mr_t etadpu		

中分积用已至加，分积计累减扣不，款付分积--		

 )'F' = epyt_repo_sl@( fi	


dne		

dne					

)on_wolf_sl@,'0','0',tma_musnoc_nl@,mun_cca_nl@,didrac_sl@,on_hcnarb_sl@,'5'( seulav )on_wolf,galf_dnes,epyt_repo,tma_wolf,mun_cca,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni							

 '1' = )1,eulav_rav_sl@(tfel fi        					     

)))'otua_remusnoc'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES						

nigeb					

 0 > wor_ll@ fi				

				

didrac_sl@ = di_drac erehw 				 	

mun_cca_nl@ + )0,mun_cca(llunsi = mun_cca						

,mun_cca_nl@ + )0,mun_cca_won(llunsi = mun_cca_won						

,mun_elas_nl@ + )0,tnuoc_musnoc(llunsi = tnuoc_musnoc						

,tma_musnoc_nl@ + )0,tma_musnoc(llunsi = tma_musnoc  tes 					  	

 ofni_piv_mr_t etadpu				           

esle				

         				

didrac_sl@ = di_drac erehw 				 	

mun_cca_nl@ + )0,mun_cca(llunsi = mun_cca						

,mun_cca_nl@ + )0,mun_cca_won(llunsi = mun_cca_won  tes 				  	

 ofni_piv_mr_t etadpu				   	

 0>tnuoc_l@ fi 			  	

     1 = mun_elas_nl@ tceles 				    	

esle			  	

0 = mun_elas_nl@ tceles				     	

0 = tma_musnoc_nl@ fi			  	

on_wolf_sl@=on_wolf dna didrac_sl@=di_drac erehw tsilevas_piv_mr_t morf   )di_drac(tnuoc=tnuoc_l@ tceles		  	

nigeb		

费消员会--		

 )'0' = epyt_repo_sl@( fi	

		

  'on_hcnarb_g'=di_rav_sys erehw metsys_sys_t morf eulav_rav_sys=on_hcnarb_g@ tceles--	

'metsys_sys_t_ssem' = eman erehw stcejbosys morf )*(tnuoc = wor_ll@ tceles	

表数参信短有否是断判，信短动自--	


detresni morf		

on_hcnarb=on_hcnarb_sl@		

,on_wolf=on_wolf_sl@                

,mun_cca=mun_cca_nl@		

,tma_musnoc=tma_musnoc_nl@		

,epyt_repo=epyt_repo_sl@		

,epyt_drac=epyt_drac@		

,di_drac=didrac_sl@	 tceles	

据数水流分积售销前当 --	


)01(rahcrav on_hcnarb_g@      

,)01(rahcrav on_hcnarb_sl@      

,)552(rahcrav eulav_rav_sl@      

,)0,2(ciremun wor_ll@      

额金费消计累别类卡的到级升要----- ,)4,61(ciremun ot_tma_etadpu_nl@      

额金费消计累的别类卡前当----,)4,61(ciremun won_tma_etadpu_nl@      

分积计累别类卡的到级升要----- ,)4,61(ciremun ot_cca_etadpu_nl@      

分积计累的别类卡前当----,)4,61(ciremun won_cca_etadpu_nl@      

,)02(rahc on_wolf_sl@      

,)0,2(ciremun tnuoc_l@      

别类卡新---- ,)2(rahc epyt_drac_ot@      

别类卡原--,)2(rahc  epyt_drac@      

额费消按 1 分积按 0 则规级升动自--,)1(rahc epytpu_piv@      

别类员会级升动自用启否是--,)1(rahc etadpu_piv@      

数次费消--	,tni mun_elas_nl@      

值分积 --  ,)4,61(ciremun mun_cca_nl@      

额金费消 --    ,)4,61(ciremun tma_musnoc_nl@      

型类作操 --        ,)1(rahc epyt_repo_sl@      

号卡员会 --       ,)02(rahc didrac_sl@ eralced  


nigeb

sa

tresni rof

 tsilcca_piv_mr_t no wolfcca_piv_mr_rt reggirt etaerc


og

wolfcca_piv_mr_rt reggirt pord  

)'wolfcca_piv_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_rm_vip_info_cm(MS).sql^^^^

dne

ruc_tresni etacollaed	

ruc_tresni esolc	

dne	

di_drac@ otni ruc_tresni hctef		

)llun ,)(etadteg ,di_drac@ ,'I' ,'ofni_piv_mr_t'( seulav			

)on_hcnarb ,etad_etadpu ,1yek ,epyt_egnahc ,elbat_moc( atad_mc_sys_t otni tresni		

nigeb	

0=sutats_hctef@@ elihw	

di_drac@ otni ruc_tresni hctef	

ruc_tresni nepo	

ylno daer rof detresni morf di_drac tceles		

rof rosruc ruc_tresni eralced	

入插--	

	

ruc_eteled etacollaed	

ruc_eteled esolc	

dne	  

di_drac@ otni ruc_eteled hctef		

)llun ,)(etadteg ,di_drac@ ,'D' ,'ofni_piv_mr_t'( seulav			

)on_hcnarb ,etad_etadpu ,1yek ,epyt_egnahc ,elbat_moc( atad_mc_sys_t otni tresni		

nigeb    

0 = sutats_hctef@@ elihw    

di_drac@ otni ruc_eteled hctef    

ruc_eteled nepo    

ylno daer rof deteled morf di_drac tceles		

rof rosruc ruc_eteled eralced    

除删--   


)02(rahc di_drac@ eralced	

量变明声--	


nigeb

sa

etadpu,eteled,tresni rof

ofni_piv_mr_t no mc_ofni_piv_mr_rt reggirt etaerc


og

mc_ofni_piv_mr_rt reggirt pord  

)'mc_ofni_piv_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_rm_vip_info_i(MS).sql^^^^

dne

drac_sni etacollaed      

drac_sni esolc      

dne      

di_epyt@,on_drac@,di_drac@ otni drac_sni hctef        


)on_meti.b = on_meti.ofni_piv_dnet_mr_t dna di_drac@=di_drac.ofni_piv_dnet_mr_t erehw  ofni_piv_dnet_mr_t morf 1 tceles(stsixe ton                 

dna on_meti.b = on_meti.a                 

dna di_epyt@=di_epyt.a erehw           

b ofni_meti_db_t,a epyt_piv_dnet_mr_t morf           

stnemmoc,0,ecirp_elas.b,0,0,on_meti.a,on_drac@,di_drac@ tceles           

)stnemmoc,tma_timil,ecirp_elas,ytq_laer,ytq_timil,on_meti,on_drac,di_drac(ofni_piv_dnet_mr_t otni tresni           

'1'=)di_epyt@=di_epyt erehw epyt_piv_mr_t morf galf_meti tceles( fi        

nigeb      

0=sutats_hctef@@ elihw      

di_epyt@,on_drac@,di_drac@ otni drac_sni hctef      

drac_sni nepo      

detresni morf epyt_drac,on_drac,di_drac tceles rof rosruc drac_sni eralced      

dne      

         dne         

nruter               

回返接直，员会享共--  '1'=enola_piv_bg@ fi            

on_kcots@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_piv = enola_piv_bg@ ,epyt_edart = epyt_edart@ tceles            

nruter               

理管员会无，心中送配-- '2'=epyt_edart@ fi            

nigeb         

esle         

dne         

nruter               

回返接直，理管一统部总由员会构架层三-- '1'=knil_ceps_piv@ fi            

'knil_ceps_piv' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = knil_ceps_piv@ tceles            

nruter               

回返接直，员会享共--  '1'=enola_piv_bg@ fi            

nigeb         

处事办/司公分-- '3'=detubirtsiD_sI@ fi         

on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_piv = enola_piv_bg@ ,epyt_edart = epyt_edart@ tceles         

'on_kcots_g' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = on_kcots@ tceles         

'on_hcnarb_g' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = on_hcnarb@ tceles         

nigeb      

部总非--  '1'><detubirtsiD_sI@ dna '0'><detubirtsiD_sI@ fi      

'detubirtsiD_sI' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = detubirtsiD_sI@ tceles      

nruter  0 = swormun@ fi      

epyt_piv_dnet_mr_t morf )*(tnuoc=swormun@ tceles      

nruter  0 = swormun@ fi      

tnuocwor@@ = swormun@  tceles      

)04(rahcrav       stnemmoc@      

,)2(rahc        di_epyt@      

,)02(rahcrav        on_drac@      

,)02(rahcrav        di_drac@      

,)1(rahc detubirtsiD_sI@      

)护维独单1,享共0( 员会享共否是店分----  ,)1(rahc   enola_piv_bg@      

,)1(rahc  knil_ceps_piv@      

,)1(rahc     epyt_edart@      

,)01(rahcrav       on_kcots@      

,)01(rahcrav      on_hcnarb@      

,tni        swormun@      

eralced   

nigeb

sa tresni rof

ofni_piv_mr_t no i_ofni_piv_mr_rt reggirt etaerc


og

i_ofni_piv_mr_rt reggirt pord  

)'i_ofni_piv_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_rm_vip_info_insert(MS).sql^^^^

dne

dne	

    dne			

)'0',drac_rehtaf_sl@,didrac_sl@,on_hcnarb_sl@,'3'( seulav )galf_dnes,drac_rehtaf,di_drac,on_hcnarb,epyt_ssem(egassem_piv_t_ssem otni tresni					

 '1' = )1,eulav_rav_sl@(tfel fi        				

)))'wen_piv'(MIRTR(MIRTL(reppU = )))di_rav_sys(MIRTR(MIRTL(reppU EREHW metsys_sys_t_ssem MORF  )'',eulav_rav_sys(llunsi = eulav_rav_sl@ TCELES				

nigeb			

0 > wor_ll@ fi		

员会新--		

nigeb	

)etad_repo@ = b_etad_repo@( dna ))'5' = epyt_kcots_edart@ dna '0' = epyt_hcnarb_edart@ dna ))llun si knil_ceps_piv_bg@( ro )'0' = knil_ceps_piv_bg@((( ro '1' = knil_ceps_piv_bg@( fi	

)021 , etad_repo@,)01(rahc(trevnoc = etad_repo@ tceles	

)021,)(etadteg,)01(rahc(trevnoc = b_etad_repo@ tceles	

	

on_kcots_sl@ = on_hcnarb erehw ofni_hcnarb_db_t morF     epyt_piv = knil_ceps_piv_bg@ tceleS	


on_kcots_sl@ = on_hcnarb erehw ofni_hcnarb_db_t morf   epyt_edart = epyt_kcots_edart@ tceles	

on_hcnarb_sl@ = on_hcnarb erehw ofni_hcnarb_db_t morf  epyt_edart = epyt_hcnarb_edart@ tceles	


'on_kcots_g' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys =  on_kcots_sl@ tceles	

'on_hcnarb_g' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = on_hcnarb_sl@ tceles	

值构机--        

detresni morf		

etad_repo=etad_repo@                

,di_repo=di_repo_sl@        	

,drac_rehtaf=drac_rehtaf_sl@		

,di_drac=didrac_sl@	 tceles	

据数前当 --      

      

'metsys_sys_t_ssem' = eman erehw stcejbosys morf )*(tnuoc = wor_ll@ tceles	

表数参信短有否是断判，信短动自--      


)552(rahcrav eulav_rav_sl@      

,)0,2(ciremun wor_ll@      

, emitetad b_etad_repo@      

,emitetad etad_repo@      

,)4(rahc di_repo_sl@      

,)02(rahcrav on_drac_sl@      

,)2(rahc epyt_drac_sl@      

, )1(rahc knil_ceps_piv_bg@      

, )1(rahc epyt_kcots_edart@      

, )1(rahc epyt_hcnarb_edart@      

,)6(rahc on_kcots_sl@      

,)6(rahc on_hcnarb_sl@      

分积送赠--   ,)4,61(ciremun mun_cca_vig_nl@      

卡父--    ,)02(rahc drac_rehtaf_sl@      

分积有现--,)4,61(ciremun mun_cca_won_nl@      

分积减冲--  ,)4,61(ciremun mun_ced_nl@      

值分积计累 --  ,)4,61(ciremun mun_cca_nl@      

号卡员会 --       ,)02(rahc didrac_sl@ eralced  


 nigeb

sa

tresni rof

ofni_piv_mr_t no tresni_ofni_piv_mr_rt reggirt etaerc


og

tresni_ofni_piv_mr_rt reggirt pord  

)'tresni_ofni_piv_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_rm_vip_info_update(MS).sql^^^^

dne

nruter      	


detresni morf		

tnetni_piv		

,	krow_piv		

,	slaitnederc_piv		

,	3etad_ceps_piv		

,	2etad_ceps_piv		

,	1etad_ceps_piv		

,01ytreporp_xenna		

,	9ytreporp_xenna		

,	8ytreporp_xenna		

, 7ytreporp_xenna		

,	6ytreporp_xenna		

,	5ytreporp_xenna		

, 4ytreporp_xenna		

, 3ytreporp_xenna		

,	2ytreporp_xenna		

,	1ytreporp_xenna		

,	2dda_piv		

,	1dda_piv		

,	etad_dne_vas		

,	etad_trats_vas		

,		 '0'		

,	drac_rehtaf		

,		omem		

,		'0'		

,	)(etadteg		

,		ssap		

,		rovaf		

,	epyt_doolb		

,		thgiew		

,		thgieh		

,		noitan		

,	level_yralas		

,	egairram		

,	ecalp_evil		

,	ecalp_ger		

,	ecalpemoh		

,		elibom		

	,		eerged		

,		ytud		

,		ynapmoc		

,	di_laicos		

,	yadhtrib		

,		mun_esu		

,	etad_dne_piv		

,	etad_trats_piv		

,	etad_repo		

,		di_repo		

,	sutats_drac		

,		xat_piv		

	,	liame_piv		

	,		let_piv		

,	 piz_piv		

,	 dda_piv		

,	 xes_piv		

,	 eman_piv		

,	 epyt_drac		

,	 on_drac		

,	 di_drac		

,	 on_hcnarb@    tceles      

 tide_ofni_piv_mr_t otni tresni      

      

) detresni morf di_drac tceles( ni di_drac dna on_hcnarb@ = on_hcnarb dna '0' = galf_moc erehw           

 tide_ofni_piv_mr_t morf eteled      

/******据数的传上未但辑编次上除删******/      

     

nruter ))epyt_drac(etadpu ton dna )mun_esu(etadpu( ro )tma_laudiser(etadpu ro )mun_cca_won(etadpu ro )mun_ced(etadpu ro )mun_cca(etadpu fi      

41-70-0102 jsgnat 回返接直 数次用使、额余值储、分积前当、分积减冲、分积计累新更果如--    

	

	

     

dne 	

nruter  ) '8' = epyt_edart@ ro '7' = epyt_edart@( ton fi		

nigeb 	

esle	

dne 	

nruter  )'5' = epyt_edart@ ro'8' = epyt_edart@ ro '7' = epyt_edart@( ton fi		

nigeb 	

 '1' = knil_ceps_piv_bg@ fi	

'knil_ceps_piv' = di_rav_sys  erehw metsys_sys_t morf eulav_rav_sys = knil_ceps_piv_bg@  tceles	



nruter  '0' = enola_piv_bg@ ton fi	      

on_hcnarb@ = on_hcnarb erehw ofni_hcnarb_db_t morf epyt_piv = enola_piv_bg@ ,epyt_edart = epyt_edart@ tceles	      

'on_kcots_g' = di_rav_sys erehw metsys_sys_t morf eulav_rav_sys = on_hcnarb@ tceles	

    


/************行执才的员会享共且并,店盟加型输传和店营自型输传******/    



dne	

dne   	

	dne      	

) detresni morf di_drac tceles( ni di_drac  dna '9' = epyt_ssem erehw egassem_piv_t_ssem morf eteled 		

nigeb      	

 ej@  > tma_evas@ fi              


             )) 1- )))eulav_sl@(nel,3,eulav_sl@(gnirtsbus,'%/%'(xednitap,3,eulav_sl@ (gnirtsbus,)4,81(lamiced(trevnoc = ej@ tceles      	

nigeb   	

 1 > )eulav_sl@(nel fi           


'elttil_drac'=di_rav_sys erehw metsys_sys_t_ssem morf eulav_rav_sys = eulav_sl@ tceles   	

   

) detresni morf di_drac tceles( ni di_drac erehw ofni_piv_mr_t morf tma_evas = tma_evas@ tceles   	

nigeb	

)tma_evas(etadpu fi	


nruter  0 = swormun@ fi      

tnuocwor@@ = swormun@  tceles      

  

   )08(rahcrav eulav_sl@      

,)4,81(lamiced tma_evas@      

,)4,81(lamiced ej@      

,)1(rahc knil_ceps_piv_bg@      

)护维独单1,享共0( 员会享共否是店分----   ,)1(rahc enola_piv_bg@      

,)1(rahc epyt_edart@      

,)01(rahcrav on_hcnarb@      

,tni  swormun@      

eralced   

nigeb

sa etadpu rof

 ofni_piv_mr_t no etadpu_ofni_piv_mr_rt reggirt etaerc



og

etadpu_ofni_piv_mr_rt reggirt pord  

)'etadpu_ofni_piv_mr_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####$$$$$$tr_wm_sheet_master(MS).sql^^^^

dne

nruter  

kcabllor  

1_ruc_ms etacollaed  

1_ruc_ms esolc  

:rorreym

nruter


dne  


rorreym otog 0 =! rorre@@ fi    

)on_hcnarb@,'C',ca_etad_yap@,'A',ca_on_tsucpus@,'0',ca_etad_repo@,'A',0,tma_latot@ ,ca_on_snart@ ,ca_on_teehs@ ,1(seulav       

)on_hcnarb,epyt_cca,etad_cca,yaw_yap,on_tsucpus,galf_elttes,etad_repo,yaw_elas,tma_xat,tma_dluohs,on_snart,on_rehcuov,epyt_yap(wolf_yapcer_mf_t otni tresni      


)(etadteg=etad_yap@ tceles      

llun si etad_yap@ fi    

nigeb  

'IR'=on_snart@ ro 'OS'=on_snart@ fi  

账收应--  



1_ruc_ms etacollaed  

1_ruc_ms esolc  


dne  

ecirp_tsoc@,ytq_dnes@,ecirp_elas@,xat@,tma_bus@        

,ecirp_dilav@,ecirp_igro@,ytq_laer@,ytq_redro@,on_meti@        

,galf_tcca@,galf_snart@        

,etad_yap@,etad_dilav@,etad_krow@,etad_repo@        

,nam_mrifnoc@,nam_redro@,di_repo@        

,galf_evorppa@,sutats_redro@        

,on_nioc@,tnuocsid@ ,yaw_yap@,on_tsucpus@        

,on_hcnarb@,on_rehcuov@,on_bd@,on_snart@,on_teehs@        

otni 1_ruc_ms hctef    


	

dne       

dne  	 

		

)galf_pus_meti@,on_tsucpus@,'0',etar_yl_pus@,etad_yap@,on_rehcuov@,llun ,ytq_dnes@ - ytq_kcots@,'A',di_repo@,on_tsucpus@,'-',on_snart@,'',on_hcnarb@	,0,ecirp_elas@,ecirp_tsoc@,0,ytq_dnes@,on_meti@,etad_krow@,on_teehs@(seulav		

)yaw_elas_pus,on_pus,galf_yap,etar_yl_pus,etad_cca,omem,etad_dilav,ytnq_erp,yaw_elas,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI		

nigeb          

esle        

dne        

nruter 0 =! rorre@@ fi           

'C',on_teehs@,di_repo@,on_hcnarb@,ecirp_dilav@,ytq_dnes@,on_meti@,etad_krow@ wolf_metibmoc_rp cexe           

nigeb        

)'1'= ats_enibmoc dna on_meti@=on_meti erehw ofni_meti_db_t morf 1 tceles(stsixe fi	

nigeb       

 0><ytq_dnes@ fi       

dne      

rorreym otog 0 =! rorre@@ fi       


)nam_redro@,etar_pp@,etar_slc@,on_pp@,on_slc@,etar_nruter@,epyt_mfpd@,galf_pus_meti@,on_tsucpus@,'0',etar_yl_pus@,etad_yap@,on_rehcuov@,llun ,ytq_laer@ - ytq_kcots@,'A',di_repo@,on_tsucpus@,'-',on_snart@,'',on_hcnarb@,ecirp_dilav@*ytq_laer@,ecirp_elas@,ecirp_tsoc@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@,on_teehs@(seulav					

)nam_redro,etar_pp,etar_slc,on_pp,on_slc,etar_nruter,epyt_mfpd,yaw_elas_pus,on_pus,galf_yap,etar_yl_pus,etad_cca,omem,etad_dilav,ytnq_erp,yaw_elas,di_repo,on_tsucpus,on_bd,on_snart,on_hcnarb_d,on_hcnarb,tma_teehs,ecirp_elas,ecirp_tsoc,ecirp,ytq_laer,on_meti ,etad_repo,on_rehcuov(wolf_mi_t otni tresnI        

nigeb      

esle      

dne      

 		nruter 0 =! rorre@@ fi         

'A',on_teehs@,di_repo@,on_hcnarb@,ecirp_dilav@,ytq_laer@,on_meti@,etad_krow@ wolf_metibmoc_rp cexe         

 nigeb      

)'1'= ats_enibmoc dna on_meti@=on_meti erehw ofni_meti_db_t morf 1 tceles(stsixe fi      

水流写品商份成将则是，品商合组销促为否是断判 --      


dne

nruter  

1_ruc_ms etacollaed  

1_ruc_ms esolc  

nigeb

'SS' = )on_snart@(reppu fi


 	


on_pp@=ondnarb_meti erehw dnarb_meti_db_t morf etar_nruter=etar_pp@ tceles      

on_slc@=onslc_meti erehw slc_meti_db_t morf etar_nruter=etar_slc@ tceles      


on_tsucpus@=on_tsucpus erehw  ofni_tsucpus_db_t morf yaw_elas=galf_pus_meti@ tceles      


on_meti@ = on_meti erehw ofni_meti_db_t morf dnarb_meti=on_pp@,onslc_meti=on_slc@      

 ,)0,etar_nruter(llunsi=etar_nruter@,epyt_mfpd=epyt_mfpd@,tsucpus_niam=on_tsucpus@,etar_pus=etar_yl_pus@ tceles      


ecirp_dilav@ = ecirp_tsoc@ tceles--     

nahnol yb 72708102价售际实取不价本成的应对候时的售销取里这-- 	

/*     

  on_meti@ = on_meti erehw ofni_meti_db_t morf )0,ecirp(llunsi = tsoc_kcots@ tceles      	

llun si tsoc_kcots@ fi   	

esle    

dne   	

) ytq_laer@ + ytq_kcots@(/) ecirp_dilav@ * ytq_laer@ + yenom_kcots@ ( = tsoc_kcots@ tceles	   	

0 >< ytq_laer@ + ytq_kcots@ fi	   	

esle   	

ecirp_dilav@ = tsoc_kcots@ tceles	   	

llun si tsoc_kcots@ fi		

nigeb   	

'1' = ecirp_egnahc@ fi    

价前当取价本成处此，取时入插的表wolf_mi_t在为改已价本成取*/    

    

dne    

      

tmAtcd_nl@ - tmAtnuocsid_nl@ = tmAtnuocsid_nl@ tceles      

ecirp_dilav@*ytq_laer@+tma_latot@=tma_latot@ tceles      

         

)121,etad_krow@,)01(rahc(trevnoc=etaDrepo_sl@ tceles      

         

0=tmAtcd_nl@ tceles         

llun si tmAtcd_nl@ ro 0<tmAtcd_nl@ fi      

on_meti@=on_meti erehw ofni_meti_db_t morf ytq_laer@ *)ecirp_dilav@ - ecirp_elas(=tmAtcd_nl@ tceles      

0=tmAtcd_nl@ tceles      

额利让--      

ytq_dnes@-=ytq_dnes@ tceles        

ytq_laer@-=ytq_laer@ tceles        

数负为改量数库入出--      

nigeb    

'-'=on_bd--  'IR'=on_snart@ fi esle    

dne    

          

tmAtcd_nl@ + tmAtnuocsid_nl@ = tmAtnuocsid_nl@ tceles      

ecirp_dilav@*ytq_laer@+tma_latot@=tma_latot@ tceles      


)121,etad_krow@,)01(rahc(trevnoc=etaDrepo_sl@ tceles      

         

0=tmAtcd_nl@ tceles         

llun si tmAtcd_nl@ ro 0<tmAtcd_nl@ fi      

on_meti@=on_meti erehw ofni_meti_db_t morf ytq_laer@*)ecirp_dilav@ - ecirp_elas(=tmAtcd_nl@ tceles      

0=tmAtcd_nl@ tceles      

额利让--      


rorreym otog 0 =! rorre@@ fi      

    

)ecirp_dilav@,ecirp_dilav@,ecirp_dilav@,on_meti@,on_tsucpus@(seulav          

)ecirp_tsal,ecirp_mottob,ecirp_pot,on_meti,on_tsucpus(meti_tsucpus_db_t otni tresni        

esle      

on_meti@=on_meti dna on_tsucpus@=on_tsucpus erehw          

ecirp_dilav@=ecirp_tsal          

,)dne ecirp_mottob esle ecirp_dilav@ neht llun si ecirp_mottob ro 0=ecirp_mottob ro )ecirp_dilav@>ecirp_mottob( nehw esac(=ecirp_mottob          

换代格价务业前当用应，况情的LLUN或0为价低最有现--          

,)dne ecirp_pot esle ecirp_dilav@ neht ecirp_dilav@<ecirp_pot nehw esac(=ecirp_pot          

tes meti_tsucpus_db_t etadpu        

)on_meti@=on_meti dna on_tsucpus@=on_tsucpus erehw meti_tsucpus_db_t morf 1 tceles(stsixe fi      

系关品商与户客商应供护维--      

 dne      

rorreym otog 0 =! rorre@@ fi        

on_rehcuov@ = on_teehs erehw '1' = sutats_redro TES  retsam_teehs_mw_t ETADPU          

esle        

on_rehcuov@ = on_teehs erehw '2' = sutats_redro TES  retsam_teehs_mw_t ETADPU          

)on_teehs yb puorg) )0,mun_emoc(llunsi >)0,ytq_dnes(llunsi ro ytq_redro > ytq_laer( dna on_rehcuov@ = on_teehs erehw          

liated_teehs_mw_t morf on_teehs tceles(stsixe ton FI        

  

rorreym otog 0 =! rorre@@ fi        

on_meti@ = on_meti dna on_rehcuov@ = on_teehs  erehw          

)0,ytq_dnes@(llunsi+)0,mun_emoc(llunsi=mun_emoc,)0,ytq_laer@(llunsi + )0,ytq_redro(llunsi = ytq_redro TES liated_teehs_mw_t ETADPU        

态状、ytq_redro量数货到单定售销改修--        

nigeb      

'' >< on_rehcuov@ fi      

nigeb    

库出售销-- 'OS'=on_snart@ fi    



0 = ytq_kcots@ tceles	

llun si ytq_kcots@ fi    


on_meti@ = on_meti dna on_hcnarb@ = on_hcnarb erehw kcots_hcnarb_mi_t morf      

tma_tsoc = yenom_kcots@, tsoc_gva = tsoc_kcots@ ,ytq_kcots = ytq_kcots@ tceles    

llun = tsoc_kcots@ tceles    

llun = yenom_kcots@ tceles    

llun = ytq_kcots@ tceles    


on_snart@ = di_teehs erehw on_teehs_sys_t morf )'0',tsoc_egnahc(llunsi = ecirp_egnahc@ tceles    


on_tsucpus@ = ca_on_tsucpus@ tceles    

etad_yap@ =  ca_etad_yap@ tceles    

 etad_repo@ = ca_etad_repo@ tceles    

on_snart@ = ca_on_snart@ tceles    

on_teehs@ = ca_on_teehs@ tceles    


nigeb  

0=sutats_hctef@@ elihw  

    

ecirp_tsoc@,ytq_dnes@,ecirp_elas@,xat@,tma_bus@        

,ecirp_dilav@,ecirp_igro@,ytq_laer@,ytq_redro@,on_meti@        

,galf_tcca@,galf_snart@        

,etad_yap@,etad_dilav@,etad_krow@,etad_repo@        

,nam_mrifnoc@,nam_redro@,di_repo@        

,galf_evorppa@,sutats_redro@        

,on_nioc@,tnuocsid@ ,yaw_yap@,on_tsucpus@        

,on_hcnarb@,on_rehcuov@,on_bd@,on_snart@,on_teehs@        

otni 1_ruc_ms hctef  

1_ruc_ms nepo  


0= tmAtnuocsid_nl@ tceles    

0=tma_latot@ tceles    


零为得不量数据单-- )0><ytq_dnes.b ro 0><ytq_laer.b(  dna )'1' = galf_evorppa.a( dna      

) on_teehs.b = on_teehs.a ( erehw    

b liated_teehs_mw_t ,a detresni morf    

ecirp_tsoc.b,ytq_dnes.b,ecirp_elas.b,xat.b,tma_bus.b        

,ecirp_dilav.b,ecirp_igro.b,ytq_laer.b,ytq_redro.b,on_meti.b        

,galf_tcca.a,galf_snart.a        

,etad_yap.a,etad_dilav.a,etad_krow.a,etad_repo.a        

,nam_mrifnoc.a,nam_redro.a,di_repo.a        

,galf_evorppa.a,sutats_redro.a        

,)'BMR',on_nioc.a(llunsi,tnuocsid.a,)'A',yaw_yap.a(llunsi,)'',on_tsucpus.a(llunsi        

,on_hcnarb.a,)'',on_rehcuov.a(llunsi,on_bd.a,on_snart.a,on_teehs.a tceles    

rof rosruc 1_ruc_ms eralced  


牌品--       )02(rahcrav   on_pp@    

别类--       ,)02(rahcrav  on_slc@    

例比成提--     ,)4,61(ciremun etar_pp@    

例比成提别类--    ,)4,61(ciremun etar_slc@    

额金成提/例比成提-- ,)4,61(ciremun etar_nruter@    

型类成提品商--        ,)1(rahc  epyt_mfpd@    

,)4,61(ciremun ytq_dnes@    

率扣营联--, )4,61(ciremun etar_yl_pus@    

,)1(rahc galf_pus_meti@    

额金本成--  ,)4,61(ciremun     yenom_kcots@    

,)1(rahc    ecirp_egnahc@    

格价本成--  ,)4,61(ciremun      tsoc_kcots@    

码代户客商应供--       , )8(rahc   ca_on_tsucpus@    

期日款付--,   emitetad     ca_etad_yap@    

期日作操--,   emitetad    ca_etad_repo@    

式方作操存库--,         )2(rahc     ca_on_snart@    

号单作工--, )81(rahc     ca_on_teehs@    

式方售销 --      ,)1(rahc      yaWelas_sl@    

,)4,61(ciremun  tmAtnuocsid_nl@    

,)01(rahc     etaDrepo_sl@    

,)4,61(ciremun       tmAtcd_nl@    

号证凭始原--       , )81(rahc   on_rehcuov_os@    

,)2(rahc       snart_dlo@    

额金--   ,)4,61(ciremun       tma_latot@    

,)4,5(ciremun             xat@    

,)4,61(ciremun         tma_bus@    

价单售零--,   )4,61(ciremun      ecirp_elas@    

价单售零--,   )4,61(ciremun      ecirp_tsoc@    

价单售零--,   )4,61(ciremun     ecirp_dilav@    

价单货进--,   )4,61(ciremun      ecirp_igro@    

量数--,   )4,61(ciremun        ytq_laer@    

量数--,   )4,61(ciremun       ytq_redro@    

码代品货--,        )02(rahc         on_meti@    

存库--,)4,61(ciremun     	ytq_kcots@    

,)1(rahc       galf_tcca@    

,)1(rahc      galf_snart@    

,)1(rahc        yaw_elas@    

期日款付--,   emitetad        etad_yap@    

期效有单订--,   emitetad      etad_dilav@    

期日核审--,   emitetad       etad_krow@    

期日作操--,   emitetad       etad_repo@    

,)4(rahc     nam_mrifnoc@    

,)4(rahc       nam_redro@    

,)4(rahc         di_repo@    

核审-1，核审未-0--  志标批审--,      )1(rahc    galf_evorppa@    

,)1(rahc    sutats_redro@    

种币--,         )3(rahc         on_nioc@    

,   )4,5(ciremun        tnuocsid@    

式方款付--,         )2(rahc         yaw_yap@    

码代户客商应供--,        )8(rahc      on_tsucpus@    

码代店本--,        )6(rahc       on_hcnarb@    

号证凭始原--,         )81(rahc      on_rehcuov@    

式方库入出--,      )1(rahc           on_bd@    

式方作操存库--,         )2(rahc        on_snart@    

号单作工--, )81(rahc     	  on_teehs@    

eralced  


nruter )galf_evorppa(etadpu ton fi  

nigeb

sa

 etadpu rof

 retsam_teehs_mw_t no retsam_teehs_mw_rt reggirt etaerc


og

retsam_teehs_mw_rt reggirt pord  

)'retsam_teehs_mw_rt'=eman erehw stcejbosys morf 1 tceles(stsixe fi####@@@@