| | |
| | | iISB := TImageScrollBox(FindComponent(iISBName)); |
| | | //ShowMessage('iISB.FileName='+iISB.FileName); |
| | | //ShowMessage(ExtractFilePath(iISB.FileName)+','+ExtractFileName(iISB.FileName)+','+NowCaseNo); |
| | | if (FMode = 'ESCAN') and (FModeName<>'異動件') then |
| | | begin |
| | | if ISExistImg(iISB.FileName) then |
| | | begin |
| | | ShowMessage(_Msg('此圖為非當次掃瞄,不可刪除')); |
| | | Exit; |
| | | end; |
| | | end; |
| | | // if (FMode = 'ESCAN') and (FModeName<>'異動件') then |
| | | // begin |
| | | // if ISExistImg(iISB.FileName) then |
| | | // begin |
| | | // ShowMessage(_Msg('此圖為非當次掃瞄,不可刪除')); |
| | | // Exit; |
| | | // end; |
| | | // end; |
| | | |
| | | DeleteImageFile(ExtractFilePath(iISB.FileName),ExtractFileName(iISB.FileName),NowCaseNo); |
| | | end; |
| | |
| | | begin |
| | | if TreeView1.Selected = NewTreeNode then //全刪 //新掃描件 |
| | | begin |
| | | if (FMode = 'ESCAN') then |
| | | begin |
| | | ShowMessage(_Msg('補件不可刪除全案影像')); |
| | | Exit; |
| | | end; |
| | | |
| | | If Messagedlg(_Msg('是否刪除所有案件?'),mtconfirmation,[mbyes,mbcancel],0) = mrcancel then Exit; |
| | | clearView(1); |
| | | Application.ProcessMessages; |
| | | _DelTree(ImageSavePath); |
| | | if (FMode = 'ESCAN') and (FModeName<>'異動件') then |
| | | if (FMode = 'ESCAN') then |
| | | begin |
| | | MkDir(ImageSavePath+FCaseID); |
| | | CreateEmptyCase(ImageSavePath,FCaseID); |
| | |
| | | end |
| | | Else if TreeView1.Selected = MyTreeNode1 then //案件編號 |
| | | begin |
| | | if (FMode = 'ESCAN') and (FModeName<>'異動件') then |
| | | begin |
| | | ShowMessage(_Msg('補件不可刪除全案影像')); |
| | | Exit; |
| | | end; |
| | | |
| | | If Messagedlg(Format(_Msg('編號(%s)是否刪除?'),[NowCaseno]),mtconfirmation,[mbyes,mbcancel],0) = mrcancel then Exit; |
| | | clearView(1); |
| | | Application.ProcessMessages; |
| | |
| | | If Messagedlg(Format(_Msg('文件(%s)是否刪除?'),[DocNo2DocName(NowCaseno,NowDocNo)]),mtconfirmation,[mbyes,mbcancel],0) = mrcancel then Exit; |
| | | ClearView(1); |
| | | Application.ProcessMessages; |
| | | if (FMode = 'ESCAN') and (FModeName<>'異動件') then |
| | | begin |
| | | if not DocNoIsExistImg(ImageSavePath+NowCaseno+'\'+NowDocDir+'\') then |
| | | begin |
| | | ShowMessage(_Msg('有圖為非當次掃瞄,不可刪除')); |
| | | Exit; |
| | | end; |
| | | end; |
| | | |
| | | _DelTree(ImageSavePath+NowCaseno+'\'+NowDocDir); |
| | | SetUseCase('D',ImageSavePath+NowCaseno+'\',NowDocDir,'',''); |
| | |
| | | i: Integer; |
| | | begin |
| | | Timer1.Enabled := False; |
| | | //FIs_In_Wh:='Y'; |
| | | |
| | | //Showmessage('a'); |
| | | //self.FIs_OldCase := 'Y'; |