Patch level : 10.0 patch 314
Files correlati : lvlib Ricompilazione Demo : [ ] Commento : Aggiunta la classe TCausale_lavanderie git-svn-id: svn://10.65.10.50/trunk@18916 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									5db608b53c
								
							
						
					
					
						commit
						357a0661f6
					
				@ -582,3 +582,12 @@ TLavanderie_calendar::TLavanderie_calendar(const int year) : _year(year)
 | 
				
			|||||||
	read();
 | 
						read();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					///////////////////////////////////
 | 
				
			||||||
 | 
					////    TCausale_lavanderie    ////
 | 
				
			||||||
 | 
					///////////////////////////////////
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					TCausale_lavanderie::TCausale_lavanderie(const char * codice):
 | 
				
			||||||
 | 
					                    TRectype(cache().get("&CAU", codice)), _rit(caurit()), _cons(caucon())
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										34
									
								
								lv/lvlib.h
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								lv/lvlib.h
									
									
									
									
									
								
							@ -9,6 +9,10 @@
 | 
				
			|||||||
#include "../mg/mglib.h"
 | 
					#include "../mg/mglib.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef __VELIB_H 
 | 
				
			||||||
 | 
					#include "../ve/velib.h"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void lv_set_creation_info(TRectype& rec);
 | 
					void lv_set_creation_info(TRectype& rec);
 | 
				
			||||||
void lv_set_update_info(TRectype& rec);
 | 
					void lv_set_update_info(TRectype& rec);
 | 
				
			||||||
long lv_find_contract(const long codcf, const long indsped, const TDate& data);
 | 
					long lv_find_contract(const long codcf, const long indsped, const TDate& data);
 | 
				
			||||||
@ -116,9 +120,35 @@ public:
 | 
				
			|||||||
	void reset_holiday(const TDate& date) { set_holiday(date, false);}
 | 
						void reset_holiday(const TDate& date) { set_holiday(date, false);}
 | 
				
			||||||
  bool is_holiday(const TDate& date) const;
 | 
					  bool is_holiday(const TDate& date) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
  TLavanderie_calendar(int year);
 | 
					  TLavanderie_calendar(int year);
 | 
				
			||||||
  virtual ~TLavanderie_calendar() { }
 | 
					  virtual ~TLavanderie_calendar() {}
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class TCausale_lavanderie : public TRectype
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  TCausale_magazzino   _rit;
 | 
				
			||||||
 | 
					  TCausale_magazzino   _cons;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protected:
 | 
				
			||||||
 | 
					  //metodi che restituiscono le indicazioni sulle causali di magazzino associate
 | 
				
			||||||
 | 
					  const TString& caurit()  const {return get("S1");}
 | 
				
			||||||
 | 
					  const TString& caucon()  const {return get("S2");}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
					  //metodi che restituiscono i dati di interesse sulla causale di lavanderia
 | 
				
			||||||
 | 
					  const TString& codice()  const {return get("CODTAB");}
 | 
				
			||||||
 | 
					  const TString& descr()   const {return get("S0");}
 | 
				
			||||||
 | 
					  const bool is_ritiro()   const {return get_bool("B0");}
 | 
				
			||||||
 | 
					  const bool is_consegna() const {return get_bool("B1");}
 | 
				
			||||||
 | 
					  const bool is_reso()     const {return get_bool("B2");}
 | 
				
			||||||
 | 
					  const bool is_rotto()    const {return get_bool("B3");}
 | 
				
			||||||
 | 
					  const bool movcong()     const {return !get_bool("B4");}
 | 
				
			||||||
 | 
					  //metodi che restituiscono le causali di magazzino associate
 | 
				
			||||||
 | 
					  const TCausale_magazzino& causale_ritiro()   const {return _rit;}
 | 
				
			||||||
 | 
					  const TCausale_magazzino& causale_consegna() const {return _cons;}
 | 
				
			||||||
 | 
					  //costruttore
 | 
				
			||||||
 | 
					  TCausale_lavanderie(const char * codice);
 | 
				
			||||||
 | 
					  virtual ~TCausale_lavanderie() {}  
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user