Patch level : 10.0 patch 439
Files correlati : lvlib Ricompilazione Demo : [ ] Commento : aggiunta una funzione ai contratti di lavanderia che permette di aggiungere una riga contratto git-svn-id: svn://10.65.10.50/trunk@19279 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
58bb3f6330
commit
f4733e52ea
14
lv/lvlib.cpp
14
lv/lvlib.cpp
@ -104,6 +104,20 @@ bool TLaundry_contract::can_be_deleted() const
|
||||
return !rset.move_first();
|
||||
}
|
||||
|
||||
//aggiunge una riga al contratto con quel codart
|
||||
int TLaundry_contract::add_row(const char* codart)
|
||||
{
|
||||
const long codcf = get_int(LVRCONDV_CODCF);
|
||||
const long codcont = get_int(LVRCONDV_CODCONT);
|
||||
|
||||
TLocalisamfile rcondv(LF_LVRCONDV);
|
||||
rcondv.put(LVRCONDV_CODCF, codcf);
|
||||
rcondv.put(LVRCONDV_CODCONT, codcont);
|
||||
rcondv.put(LVRCONDV_CODART, codart);
|
||||
|
||||
return rcondv.rewrite_write();
|
||||
}
|
||||
|
||||
// Legge un contratto tramite la chiave primaria cliente+codice
|
||||
bool TLaundry_contract::read(const long codcf, const long codcont)
|
||||
{
|
||||
|
@ -28,6 +28,8 @@ public:
|
||||
bool read(const long codcf, const long indsped, const TDate& data);
|
||||
bool can_be_deleted() const;
|
||||
|
||||
int add_row(const char* codart);
|
||||
|
||||
TLaundry_contract();
|
||||
TLaundry_contract(const TRectype & rec);
|
||||
TLaundry_contract(const long codcf, const long codcont);
|
||||
|
Loading…
x
Reference in New Issue
Block a user