f.martel
20th June 2011, 12:37
Ia orana !
I want to close some project (tipcs020) with AFS function's.
I'm on B4C3
In the process of closing (tipcs2250m000) there are to actions:
Cost calculation (sub session tipcs3250s000 by zoom)
Project closing
I create (ttstpcreatdll) a dll tipcsdll2250ro based on session tipcs2250m000.
I added 2 functions:
function extern void dll2250ro.report( string device, ref string error)
{
stpapi.set.report("tipcs2250m000","rtipcs225001000",device,error)
}
and
function extern void dll2250ro.zoom( const string zoom.prog, long form, ref string err.msg )
{
stpapi.zoom.OPTION( "tipcs2250m000" , form , zoom.prog , err.msg )
}
My code :
dll2250ro.put.Project_from(lrpcs400.cprj)
dll2250ro.put.Project_to(lrpcs400.cprj)
dll2250ro.put.Delete_Project_Inventory_up_to_Value(999999.00)
dll2250ro.put.Overwrite_Booking_Date_Cost_Turnover_Sales(tcyesno.no)
dll2250ro.put.Booking_Date_Cost_Turnover_Sales(date.num())
dll2250ro.zoom("tipcs3250s000",1,mess.er)
| dll2250ro.handle.sub.process("tipcs3250s000","add")
mess.er = ""
if strip$(mess.er) <> "" then
mess.er2 = dll2250ro.get.last.message.code()
message("Erreur : %s",strip$(mess.er2))
else
dll2250ro.report("ASCIF",mess.er)
if strip$(mess.er) <> "" then
mess.er2 = dll2250ro.get.last.message.code()
message("Erreur : %s",strip$(mess.er2))
else
dll2250ro.continue(mess.er)
if strip$(mess.er) <> "" then
mess.er = dll2250ro.get.last.message.code()
message("Erreur : %s",strip$(mess.er))
endif
endif
endif
dll2250ro.end()
It doesn't work
I try 2 solution:
1st
I used the dll2250ro.handle.sub.process (auto create)
2nd
1 used the dll2250ro.zoom (manual create)
The two solution's doesn't work
Questions ?
Which is managed the sub session , AFS by the dll or my main program ?
Thank's
François
PS: Sorry for my english :D
I want to close some project (tipcs020) with AFS function's.
I'm on B4C3
In the process of closing (tipcs2250m000) there are to actions:
Cost calculation (sub session tipcs3250s000 by zoom)
Project closing
I create (ttstpcreatdll) a dll tipcsdll2250ro based on session tipcs2250m000.
I added 2 functions:
function extern void dll2250ro.report( string device, ref string error)
{
stpapi.set.report("tipcs2250m000","rtipcs225001000",device,error)
}
and
function extern void dll2250ro.zoom( const string zoom.prog, long form, ref string err.msg )
{
stpapi.zoom.OPTION( "tipcs2250m000" , form , zoom.prog , err.msg )
}
My code :
dll2250ro.put.Project_from(lrpcs400.cprj)
dll2250ro.put.Project_to(lrpcs400.cprj)
dll2250ro.put.Delete_Project_Inventory_up_to_Value(999999.00)
dll2250ro.put.Overwrite_Booking_Date_Cost_Turnover_Sales(tcyesno.no)
dll2250ro.put.Booking_Date_Cost_Turnover_Sales(date.num())
dll2250ro.zoom("tipcs3250s000",1,mess.er)
| dll2250ro.handle.sub.process("tipcs3250s000","add")
mess.er = ""
if strip$(mess.er) <> "" then
mess.er2 = dll2250ro.get.last.message.code()
message("Erreur : %s",strip$(mess.er2))
else
dll2250ro.report("ASCIF",mess.er)
if strip$(mess.er) <> "" then
mess.er2 = dll2250ro.get.last.message.code()
message("Erreur : %s",strip$(mess.er2))
else
dll2250ro.continue(mess.er)
if strip$(mess.er) <> "" then
mess.er = dll2250ro.get.last.message.code()
message("Erreur : %s",strip$(mess.er))
endif
endif
endif
dll2250ro.end()
It doesn't work
I try 2 solution:
1st
I used the dll2250ro.handle.sub.process (auto create)
2nd
1 used the dll2250ro.zoom (manual create)
The two solution's doesn't work
Questions ?
Which is managed the sub session , AFS by the dll or my main program ?
Thank's
François
PS: Sorry for my english :D