Application PBSample - Technical -w_sheet_sales_order- Events
Events of w_sheet_sales_order


event pfc_postopen


General information

Full name w_sheet_sales_order.pfc_postopen
Access public
Overload of w_master.pfc_postopen
Comment Retrieve data Revision History Author: Novalys Date Version 06/07/2000 1.0 Initial version
Return value (none)
Prototype event pfc_postopen

Source code

call  super::pfc_postopen; //////////////////////////////////////////////////////////////////////////////
//
//      Function             :      pfc_postopen
//
//      Arguments      :      
//
//      Returns             :      (none)
//
//      Description      :      Retrieve data
//
//////////////////////////////////////////////////////////////////////////////
//
//      Revision       History                    Author:      Novalys
//
//      Date                    Version
//
//      06/07/2000             1.0         Initial version
//
//////////////////////////////////////////////////////////////////////////////
dw_master.inv_linkage.of_settransobject( SQLCA)
if  not ib_new      then
     dw_master.inv_linkage.of_retrieve ()
     
end  if

Functions and events referenced

Full name Owners
pfc_n_cst_dwsrv_linkage.of_retrieve pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_settransobject pfc_n_cst_dwsrv_linkage
w_master.pfc_postopen w_master

Referenced classes

Full name
w_sheet_sales_order.dw_master

Referenced attributes

Full name Scope
w_sheet_sales_order.ib_new attribute
pfc_u_dw.inv_linkage attribute



event pfc_preopen


General information

Full name w_sheet_sales_order.pfc_preopen
Access public
Overload of w_master.pfc_preopen
Comment Initialize Revision History Author: Novalys Date Version 06/07/2000 1.0 Initial version
Return value (none)
Prototype event pfc_preopen

Source code

call  super::pfc_preopen; //////////////////////////////////////////////////////////////////////////////
//
//      Function             :      pfc_preopen
//
//      Arguments      :      
//
//      Returns             :      (none)
//
//      Description      :      Initialize
//
//////////////////////////////////////////////////////////////////////////////
//
//      Revision       History                    Author:      Novalys
//
//      Date                    Version
//
//      06/07/2000             1.0         Initial version
//
//////////////////////////////////////////////////////////////////////////////
IF Message.of_getstringparm () =  "create"  Then 
     dw_master.insertrow ( 0)
      this.title =  "New Sales Order"
     ib_new =  true
     Message.of_setstringparm ( "")
Else
     il_number = message.of_getdoubleparm ()
      this.title +=  " " +  string (il_number)
End  if
this.of_SetPreference( TRUE)
this.inv_preference.of_SetToolBars( TRUE)
this.inv_preference.of_SetWindow( TRUE)
this. Event pfc_MRUSave ()

Functions and events referenced

Full name Owners
pfc_w_master.pfc_mrusave pfc_w_master
pfc_n_cst_winsrv_preference.of_setwindow pfc_n_cst_winsrv_preference
pfc_n_cst_winsrv_preference.of_settoolbars pfc_n_cst_winsrv_preference
pfc_w_master.of_setpreference pfc_w_master
pfc_n_msg.of_getdoubleparm pfc_n_msg
pfc_n_msg.of_setstringparm pfc_n_msg
pfc_n_msg.of_getstringparm pfc_n_msg
w_master.pfc_preopen w_master

Referenced classes

Full name
w_sheet_sales_order.dw_master

Referenced attributes

Full name Scope
pfc_w_master.inv_preference attribute
w_sheet_sales_order.il_number attribute
w_sheet_sales_order.ib_new attribute



event pfc_premrusave


General information

Full name w_sheet_sales_order.pfc_premrusave
Access public
Overload of pfc_w_master.pfc_premrusave
Comment Save info from window MRU Revision History Author: Novalys Date Version 06/07/2000 1.0 Initial version
Parameter n_cst_mruattrib anv_mruattrib
Return value integer
Prototype event pfc_premrusave

Source code

call  super::pfc_premrusave; //////////////////////////////////////////////////////////////////////////////
//
//      Function             :      pfc_premrusave
//
//      Arguments      :      n_cst_mruattrib anv_mruattrib      
//
//      Returns             :      integer
//
//      Description      :      Save info from window MRU
//
//////////////////////////////////////////////////////////////////////////////
//
//      Revision       History                    Author:      Novalys
//
//      Date                    Version
//
//      06/07/2000             1.0         Initial version
//
//////////////////////////////////////////////////////////////////////////////
anv_mruattrib.is_id                          =  "mymru"
anv_mruattrib.is_classname           =  This.classname()
anv_mruattrib.is_menuitemname      =  This.title
anv_mruattrib.is_menuitemkey           =  string (il_number)
anv_mruattrib.is_menuitemmhelp      =  "Open " +  This.title +  string (il_number)
return  1

Functions and events referenced

Full name Owners
pfc_w_master.pfc_premrusave pfc_w_master

Referenced attributes

Full name Scope
pfc_n_cst_mruattrib.is_menuitemmhelp attribute
w_sheet_sales_order.il_number attribute
pfc_n_cst_mruattrib.is_menuitemkey attribute
pfc_n_cst_mruattrib.is_menuitemname attribute
pfc_n_cst_mruattrib.is_classname attribute
pfc_n_cst_mruattrib.is_id attribute
pfc_w_master.pfc_premrusave.anv_mruattrib parameter



event pfc_mrurestore


General information

Full name w_sheet_sales_order.pfc_mrurestore
Access public
Overload of pfc_w_master.pfc_mrurestore
Comment Restore the Most Recent Use Revision History Author: Novalys Date Version 06/07/2000 1.0 Initial version
Return value integer
Prototype event pfc_mrurestore

Source code

call  super::pfc_mrurestore; //////////////////////////////////////////////////////////////////////////////
//
//      Function             :      pfc_mrurestore
//
//      Arguments      :      
//
//      Returns             :      integer
//
//      Description      :  Restore the Most Recent Use
//
//////////////////////////////////////////////////////////////////////////////
//
//      Revision       History                    Author:      Novalys
//
//      Date                    Version
//
//      06/07/2000             1.0         Initial version
//
//////////////////////////////////////////////////////////////////////////////
if isvalid (gnv_app.inv_mru)  then
       Return gnv_app.inv_mru.of_restore ( "mymru" This)
end  if

Functions and events referenced

Full name Owners
pfc_n_cst_mru.of_restore pfc_n_cst_mru
pfc_w_master.pfc_mrurestore pfc_w_master

Referenced attributes

Full name Scope
pfc_n_cst_appmanager.inv_mru attribute



event pfc_mruprocess


General information

Full name w_sheet_sales_order.pfc_mruprocess
Access public
Overload of pfc_w_master.pfc_mruprocess
Comment Revision History Author: Novalys Date Version 06/07/2000 1.0 Initial version
Parameter integer ai_row
Return value integer
Prototype event pfc_mruprocess

Source code

call  super::pfc_mruprocess; //////////////////////////////////////////////////////////////////////////////
//
//      Function             :      pfc_mruprocess
//
//      Arguments      :      integer ai_row      
//
//      Returns             :      integer
//
//      Description      :
//
//////////////////////////////////////////////////////////////////////////////
//
//      Revision       History                    Author:      Novalys
//
//      Date                    Version
//
//      06/07/2000             1.0         Initial version
//
//////////////////////////////////////////////////////////////////////////////
w_sheet_sales_order lw_window
n_cst_mruattrib lnv_mruattrib
// Check parameters.
IF IsNull(ai_row)  or  NOT IsValid(gnv_app.inv_mru)  THEN
   Return - 1
END  IF
// Retrieve row from DataStore.
gnv_app.inv_mru.of_GetItem  (ai_row, lnv_mruattrib)
message.of_setdoubleparm ( long(lnv_mruattrib.is_menuitemkey))
OpenSheet(lw_window, lnv_mruattrib.is_classname,  This.parentwindow(),  0,Original!)
Return  1

Functions and events referenced

Full name Owners
pfc_n_msg.of_setdoubleparm pfc_n_msg
pfc_n_cst_mru.of_getitem pfc_n_cst_mru
pfc_w_master.pfc_mruprocess pfc_w_master

Referenced classes

Full name
n_cst_mruattrib
w_sheet_sales_order

Referenced attributes

Full name Scope
pfc_n_cst_mruattrib.is_classname attribute
w_sheet_sales_order.pfc_mruprocess.lw_window local
pfc_n_cst_mruattrib.is_menuitemkey attribute
w_sheet_sales_order.pfc_mruprocess.lnv_mruattrib local
pfc_n_cst_appmanager.inv_mru attribute
pfc_w_master.pfc_mruprocess.ai_row parameter




Document created on Friday 06 June 2003 at 11:21 by Visual Expert