Patch level : 10.0 patch 540
Files correlati : lv3 Ricompilazione Demo : [ ] Commento : Quando una riga è evasa deve risultare disabilitata, in quanto non posso più rimodificarla git-svn-id: svn://10.65.10.50/trunk@19726 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									89b8f8b7d9
								
							
						
					
					
						commit
						00432e3a28
					
				| @ -282,6 +282,13 @@ void TEvasione_msk::carica_righe() | |||||||
| 
 | 
 | ||||||
|   doc.rewrite(); |   doc.rewrite(); | ||||||
|   sheet.sort(sort_by_codart); |   sheet.sort(sort_by_codart); | ||||||
|  | 
 | ||||||
|  |   FOR_EACH_SHEET_ROW(sheet, r, row) | ||||||
|  |   { | ||||||
|  |     if (row->get_char(0) == 'X') | ||||||
|  |       sheet.disable_row(r); | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|   sheet.force_update(); |   sheet.force_update(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -492,6 +492,7 @@ bool TGestione_buoni_msk::set_righe_buono_handler(TMask_field& f, KEY k) | |||||||
|         f->on_hit(); |         f->on_hit(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     const int posdacons = sheet.cid2index(FR_QTA); | ||||||
|     const int poscons = sheet.cid2index(FR_QTAEVASA); |     const int poscons = sheet.cid2index(FR_QTAEVASA); | ||||||
|     const int pospacchi = sheet.cid2index(FR_NCOLLI); |     const int pospacchi = sheet.cid2index(FR_NCOLLI); | ||||||
|     const int posdotod = sheet.cid2index(FR_JOLLY1); |     const int posdotod = sheet.cid2index(FR_JOLLY1); | ||||||
| @ -502,6 +503,11 @@ bool TGestione_buoni_msk::set_righe_buono_handler(TMask_field& f, KEY k) | |||||||
| 
 | 
 | ||||||
|     FOR_EACH_SHEET_ROW(sheet, i, riga)     |     FOR_EACH_SHEET_ROW(sheet, i, riga)     | ||||||
|     { |     { | ||||||
|  |       if (riga->get_int(poscons) == riga->get_int(posdacons)) | ||||||
|  |       { | ||||||
|  |         sheet.disable_row(i); | ||||||
|  |         continue; | ||||||
|  |       } | ||||||
|       sheet.disable_cell(i, poscons); |       sheet.disable_cell(i, poscons); | ||||||
|       sheet.disable_cell(i, pospacchi); |       sheet.disable_cell(i, pospacchi); | ||||||
|       sheet.disable_cell(i, posdotod); |       sheet.disable_cell(i, posdotod); | ||||||
| @ -1152,6 +1158,7 @@ int TGestione_buoni_app::read(TMask& m) | |||||||
| 
 | 
 | ||||||
|     TSheet_field& sheet = mask.sfield(F_SHEET); |     TSheet_field& sheet = mask.sfield(F_SHEET); | ||||||
| 
 | 
 | ||||||
|  |     const int posdacons = sheet.cid2index(FR_QTA); | ||||||
|     const int poscons = sheet.cid2index(FR_QTAEVASA); |     const int poscons = sheet.cid2index(FR_QTAEVASA); | ||||||
|     const int pospacchi = sheet.cid2index(FR_NCOLLI); |     const int pospacchi = sheet.cid2index(FR_NCOLLI); | ||||||
|     const int posdotod = sheet.cid2index(FR_JOLLY1); |     const int posdotod = sheet.cid2index(FR_JOLLY1); | ||||||
| @ -1162,6 +1169,11 @@ int TGestione_buoni_app::read(TMask& m) | |||||||
| 
 | 
 | ||||||
|     FOR_EACH_SHEET_ROW(sheet, i, riga)     |     FOR_EACH_SHEET_ROW(sheet, i, riga)     | ||||||
|     { |     { | ||||||
|  |       if (riga->get_int(poscons) == riga->get_int(posdacons)) | ||||||
|  |       { | ||||||
|  |         sheet.disable_row(i); | ||||||
|  |         continue; | ||||||
|  |       } | ||||||
|       sheet.disable_cell(i, poscons); |       sheet.disable_cell(i, poscons); | ||||||
|       sheet.disable_cell(i, pospacchi); |       sheet.disable_cell(i, pospacchi); | ||||||
|       sheet.disable_cell(i, posdotod); |       sheet.disable_cell(i, posdotod); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user