Changeset 1679 for cprs/trunk/CPRS-Chart/fDCSumm.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fDCSumm.pas
r830 r1679 540 540 end; 541 541 542 {for printing multiple notes}543 542 procedure TfrmDCSumm.RequestMultiplePrint(AForm: TfrmPrintList); 544 543 var … … 547 546 begin 548 547 with AForm.lbIDParents do 549 for i := 0 to Items.Count - 1 do 550 if Selected[i] then 551 begin 552 NoteIEN := StrToInt64def(Piece(Items[i], U, 1), 0); 553 if NoteIEN > 0 then PrintNote(NoteIEN, DisplayText[i], TRUE) 554 else if NoteIEN = 0 then InfoBox(TX_NO_NOTE, TX_NOSUMM_CAP, MB_OK) 555 else InfoBox(TX_NOPRT_NEW, TX_NOPRT_NEW_CAP, MB_OK); 556 end; 548 begin 549 for i := 0 to Items.Count - 1 do 550 begin 551 if Selected[i] then 552 begin 553 NoteIEN := ItemIEN; //StrToInt64def(Piece(TStringList(Items.Objects[i])[0],U,1),0); 554 if NoteIEN > 0 then PrintNote(NoteIEN, DisplayText[i], TRUE) else 555 begin 556 if ItemIEN = 0 then InfoBox(TX_NO_NOTE, TX_NOSUMM_CAP, MB_OK); 557 if ItemIEN < 0 then InfoBox(TX_NOPRT_NEW, TX_NOPRT_NEW_CAP, MB_OK); 558 end; 559 end; {if selected} 560 end; {for} 561 end {with} 557 562 end; 558 563 … … 2167 2172 tvSumms.Enabled := True ; 2168 2173 pnlRead.BringToFront ; 2169 if FCurrentContext.Status <> '' then with uDCSummContext do2170 begin 2171 BeginDate := FCurrentContext.BeginDate;2172 EndDate := FCurrentContext.EndDate;2173 FMBeginDate := FCurrentContext.FMBeginDate;2174 FMEndDate := FCurrentContext.FMEndDate;2175 Status := FCurrentContext.Status;2176 Author := FCurrentContext.Author;2177 MaxDocs := FCurrentContext.MaxDocs;2178 ShowSubject := FCurrentContext.ShowSubject;2179 GroupBy := FCurrentContext.GroupBy;2180 SortBy := FCurrentContext.SortBy;2181 ListAscending := FCurrentContext.ListAscending;2182 TreeAscending := FCurrentContext.TreeAscending;2183 Keyword := FCurrentContext.Keyword;2184 SearchField := FCurrentContext.SearchField;2185 Filtered := FCurrentContext.Filtered;2174 if AContext.Status <> '' then with uDCSummContext do 2175 begin 2176 BeginDate := AContext.BeginDate; 2177 EndDate := AContext.EndDate; 2178 FMBeginDate := AContext.FMBeginDate; 2179 FMEndDate := AContext.FMEndDate; 2180 Status := AContext.Status; 2181 Author := AContext.Author; 2182 MaxDocs := AContext.MaxDocs; 2183 ShowSubject := AContext.ShowSubject; 2184 GroupBy := AContext.GroupBy; 2185 SortBy := AContext.SortBy; 2186 ListAscending := AContext.ListAscending; 2187 TreeAscending := AContext.TreeAscending; 2188 Keyword := AContext.Keyword; 2189 SearchField := AContext.SearchField; 2190 Filtered := AContext.Filtered; 2186 2191 Changed := True; 2187 2192 mnuViewClick(Self);
Note:
See TracChangeset
for help on using the changeset viewer.