Hong-Dell\Hong
2022-10-28 19b365ac7e1f14820565e3d52297927302096caa
ver 2,0,1,76

1.調整多國語言對應問題
2.語言檔改放至 C:\Users\[Windows登入帳號]\AppData\Local\MPS\CB_IMGPS

ver 2,0,1,75
1.調整大畫素檔案匯入時,記憶體控制方式調整
修改13個檔案
新增1個檔案
16483 ■■■■■ 已變更過的檔案
CB_IMGPSScan.dproj 12 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScan.identcache 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScan.ocx 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScan.res 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScan.ridl 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScanImp.dcu 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScanImp.dfm 45 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScanImp.pas 190 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScanImp.pas1 16158 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScan_TLB.dcu 修補檔 | 檢視 | 原始 | 究查 | 歷程
ErrList.dcu 修補檔 | 檢視 | 原始 | 究查 | 歷程
OldCaseInfo.dcu 修補檔 | 檢視 | 原始 | 究查 | 歷程
OldCaseInfo.dfm 30 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
OldCaseInfo.pas 46 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
CB_IMGPSScan.dproj
@@ -66,12 +66,12 @@
            <BuildConfiguration Include="Base">
                <Key>Base</Key>
            </BuildConfiguration>
            <BuildConfiguration Include="Release">
                <Key>Cfg_1</Key>
                <CfgParent>Base</CfgParent>
            </BuildConfiguration>
            <BuildConfiguration Include="Debug">
                <Key>Cfg_2</Key>
                <CfgParent>Base</CfgParent>
            </BuildConfiguration>
            <BuildConfiguration Include="Release">
                <Key>Cfg_1</Key>
                <CfgParent>Base</CfgParent>
            </BuildConfiguration>
        </ItemGroup>
@@ -95,7 +95,7 @@
                        <VersionInfo Name="MajorVer">2</VersionInfo>
                        <VersionInfo Name="MinorVer">0</VersionInfo>
                        <VersionInfo Name="Release">1</VersionInfo>
                        <VersionInfo Name="Build">73</VersionInfo>
                        <VersionInfo Name="Build">76</VersionInfo>
                        <VersionInfo Name="Debug">False</VersionInfo>
                        <VersionInfo Name="PreRelease">False</VersionInfo>
                        <VersionInfo Name="Special">False</VersionInfo>
@@ -107,7 +107,7 @@
                    <VersionInfoKeys>
                        <VersionInfoKeys Name="CompanyName"/>
                        <VersionInfoKeys Name="FileDescription"/>
                        <VersionInfoKeys Name="FileVersion">2.0.1.73</VersionInfoKeys>
                        <VersionInfoKeys Name="FileVersion">2.0.1.76</VersionInfoKeys>
                        <VersionInfoKeys Name="InternalName"/>
                        <VersionInfoKeys Name="LegalCopyright"/>
                        <VersionInfoKeys Name="LegalTrademarks"/>
CB_IMGPSScan.identcache
Binary files differ
CB_IMGPSScan.ocx
Binary files differ
CB_IMGPSScan.res
Binary files differ
CB_IMGPSScan.ridl
@@ -6,7 +6,7 @@
// However, when applying changes via the Editor this file will be regenerated
// and comments or formatting changes will be lost.
// ************************************************************************ //
// File generated on 2017/8/18 ¤U¤È 03:12:43 (- $Rev: 12980 $, 104663453).
// File generated on 2022/10/28 ¤W¤È 10:03:13 (- $Rev: 12980 $, 3429500).
[
  uuid(F7D1C429-BE85-4FAD-A058-36A41C2AAA89),
CB_IMGPSScanImp.dcu
Binary files differ
CB_IMGPSScanImp.dfm
@@ -55,6 +55,7 @@
      Width = 42
      Height = 50
      Align = alLeft
      DoubleBuffered = True
      Glyph.Data = {
        360C0000424D360C000000000000360000002800000020000000200000000100
        180000000000000C0000C40E0000C40E00000000000000000000808000808000
@@ -154,6 +155,7 @@
        808000808000808000808000808000808000808000808000908FFF5F60FF8080
        0080800080800080800080800080800080800080800080800080800080800080
        8000808000808000808000808000808000808000808000808000}
      ParentDoubleBuffered = False
      TabOrder = 0
      TabStop = False
      OnClick = TransBtnClick
@@ -269,6 +271,7 @@
        Top = 1
        Width = 41
        Height = 49
        DoubleBuffered = True
        Glyph.Data = {
          360C0000424D360C000000000000360000002800000020000000200000000100
          180000000000000C0000C40E0000C40E00000000000000000000808000808000
@@ -368,6 +371,7 @@
          8080008080008080008080008080008080008080008080008080008080008080
          0080800080800080800080800080800080800080800080800080800080800080
          8000808000808000808000808000808000808000808000808000}
        ParentDoubleBuffered = False
        TabOrder = 2
        TabStop = False
        OnClick = OptionBtnClick
@@ -477,6 +481,7 @@
          FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
          FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
          FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}
        ParentDoubleBuffered = False
        TabOrder = 3
        TabStop = False
        OnClick = SelectScanBtnClick
@@ -486,6 +491,7 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        Glyph.Data = {
          36080000424D3608000000000000360400002800000020000000200000000100
          08000000000000040000C40E0000C40E00000001000000000000000000000000
@@ -553,6 +559,7 @@
          FFFFFFFFFFFFA449FFFFFFFFFFFFFFFFA400FFFFA44902020202A4F7F7F7F7F7
          F7F7F7F7F7F7A4A4A4A4A4A4A4A4A4A40700F7F7A40202020202020202020202
          0202020202020202020202020202020202020202020202020202}
        ParentDoubleBuffered = False
        TabOrder = 4
        TabStop = False
        OnClick = NextPageBtnClick
@@ -562,6 +569,7 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        Glyph.Data = {
          36080000424D3608000000000000360400002800000020000000200000000100
          08000000000000040000C40E0000C40E00000001000000000000000000000000
@@ -629,6 +637,7 @@
          FFFFFFFFFFFFA449FFFFFFFFFFFFFFFFA400FFFFA44902020202A4F7F7F7F7F7
          F7F7F7F7F7F7A4A4A4A4A4A4A4A4A4A40700F7F7A40202020202020202020202
          0202020202020202020202020202020202020202020202020202}
        ParentDoubleBuffered = False
        TabOrder = 5
        TabStop = False
        OnClick = PrePageBtnClick
@@ -638,6 +647,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 6
        TabStop = False
        Visible = False
@@ -648,6 +659,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 7
        TabStop = False
        OnClick = FC5Click
@@ -657,6 +670,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 8
        TabStop = False
        OnClick = FC4Click
@@ -666,6 +681,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 9
        TabStop = False
        OnClick = FC3Click
@@ -675,6 +692,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 10
        TabStop = False
        OnClick = FC2Click
@@ -684,6 +703,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 11
        TabStop = False
        OnClick = FC1Click
@@ -693,6 +714,8 @@
        Top = 1
        Width = 42
        Height = 49
        DoubleBuffered = True
        ParentDoubleBuffered = False
        TabOrder = 12
        TabStop = False
        OnClick = FC0Click
@@ -727,6 +750,7 @@
        Top = 0
        Width = 42
        Height = 50
        DoubleBuffered = True
        Glyph.Data = {
          360C0000424D360C000000000000360000002800000020000000200000000100
          180000000000000C0000C40E0000C40E00000000000000000000808000808000
@@ -826,6 +850,7 @@
          8080008080008080008080008080008080008080008080008080008080008080
          0080800080800080800080800080800080800080800080800080800080800080
          8000808000808000808000808000808000808000808000808000}
        ParentDoubleBuffered = False
        TabOrder = 0
        TabStop = False
        OnClick = NewScanBtnClick
@@ -835,6 +860,7 @@
        Top = 0
        Width = 42
        Height = 50
        DoubleBuffered = True
        Glyph.Data = {
          360C0000424D360C000000000000360000002800000020000000200000000100
          180000000000000C000000000000000000000000000000000000808000808000
@@ -934,6 +960,7 @@
          8080008080008080008080008080008080008080008080008080008080008080
          0080800080800080800080800080800080800080800080800080800080800080
          8000808000808000808000808000808000808000808000808000}
        ParentDoubleBuffered = False
        TabOrder = 1
        TabStop = False
        Visible = False
@@ -1075,6 +1102,7 @@
            Top = 9
            Width = 27
            Height = 28
            DoubleBuffered = True
            Glyph.Data = {
              06020000424D0602000000000000760000002800000028000000140000000100
              0400000000009001000000000000000000001000000000000000000000000000
@@ -1094,6 +1122,7 @@
              333333333EEEE333333333333333333333333333333333333333333333333333
              33333333333333333333}
            NumGlyphs = 2
            ParentDoubleBuffered = False
            TabOrder = 3
            TabStop = False
            Visible = False
@@ -1104,6 +1133,7 @@
            Top = 9
            Width = 27
            Height = 28
            DoubleBuffered = True
            Glyph.Data = {
              76010000424D7601000000000000760000002800000020000000100000000100
              04000000000000010000120B0000120B00001000000000000000000000000000
@@ -1118,6 +1148,7 @@
              555577F7F7F7F7F75F5550707070700B055557F7F7F7F7757FF5507070707050
              9055575757575757775505050505055505557575757575557555}
            NumGlyphs = 2
            ParentDoubleBuffered = False
            TabOrder = 4
            TabStop = False
            Visible = False
@@ -1128,6 +1159,7 @@
            Top = 19
            Width = 51
            Height = 25
            DoubleBuffered = True
            Glyph.Data = {
              F6000000424DF600000000000000760000002800000010000000100000000100
              0400000000008000000000000000000000001000000000000000000000000000
@@ -1137,6 +1169,7 @@
              00080F888700078000880F8800FFF00008880F807FFFF07088880F70E000F080
              78880F0EFEFEF08808880F0F0000F0880888000EFEFFF0880888887000000080
              7888888008888870888888880088800888888888870007888888}
            ParentDoubleBuffered = False
            TabOrder = 5
            TabStop = False
            Visible = False
@@ -1310,6 +1343,7 @@
              Top = 6
              Width = 80
              Height = 27
              DoubleBuffered = True
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                04000000000000010000120B0000120B00001000000000000000000000000000
@@ -1324,6 +1358,7 @@
                FB33373F37777733373333BFBF999FBFB3333373FF77733F7333333BFBFBFBFB
                3333333773FFFF77333333333FBFBF3333333333377777333333}
              NumGlyphs = 2
              ParentDoubleBuffered = False
              TabOrder = 0
              TabStop = False
              Visible = False
@@ -5556,7 +5591,7 @@
            object SmoothCB: TCheckBox
              Left = 298
              Top = 16
              Width = 94
              Width = 120
              Height = 17
              Caption = #28784#38542#24179#28369#39023#31034
              TabOrder = 0
@@ -5763,7 +5798,7 @@
    Left = 32
    Top = 360
    Bitmap = {
      494C01010A000D00040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      494C01010A000D00100010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000400000003000000001002000000000000030
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
@@ -6172,7 +6207,7 @@
    Left = 32
    Top = 225
    Bitmap = {
      494C010105000900040020002000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      494C010105000900100020002000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000800000004000000001002000000000000080
      0000000000000000000000000000000000000000000000000000000000000000
      0000000000000000000000000000000000000000000000000000000000000000
@@ -7243,7 +7278,7 @@
    Left = 29
    Top = 273
    Bitmap = {
      494C010107000900040020002000FFFFFF00FF10FFFFFFFFFFFFFFFF424D3600
      494C010107000900100020002000FFFFFF00FF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000800000004000000001002000000000000080
      000000000000000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
@@ -8314,7 +8349,7 @@
    Left = 37
    Top = 313
    Bitmap = {
      494C010107000900040020002000FFFFFF00FF10FFFFFFFFFFFFFFFF424D3600
      494C010107000900100020002000FFFFFF00FF10FFFFFFFFFFFFFFFF424D3600
      0000000000003600000028000000800000004000000001002000000000000080
      000000000000000000000000000000000000FFFFFF00FFFFFF00FFFFFF00FFFF
      FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
CB_IMGPSScanImp.pas
@@ -744,7 +744,6 @@
    Procedure PageReplaceFormID(Path,NowFormID,NewFormID:String); //選取頁更換FormID
    Function ModeNeedCheck(OMRMode,ScanMode:String):Boolean; //掃瞄模式是否要做檢核
    procedure WMMOUSEWHEEL(var message: TWMMouseWheel); message WM_MOUSEWHEEL;
    Function GetInputMask:String; //取得輸入的保單號碼
    Function GetCasePage(Path,CaseID:String):Integer;
    Function GetFormIDPage(FileList:TStringlist;FormID:String):Integer;
    Procedure SetFile2Case(CaseID,FileName:String);
@@ -2212,11 +2211,11 @@
    GoAtt := True;
  end;
  if InputQuery('輸入其他文件名稱','文件名稱',CustomDocName) then
  if InputQuery(_Msg('輸入其他文件名稱'),_Msg('文件名稱'),CustomDocName) then
  begin
    if FindCustomDocName(DisplayPath,CustomDocName) then
    begin
      Showmessage(Format('文件名稱:"%s"己存在',[CustomDocName]));
      Showmessage(Format(_Msg('文件名稱:"%s"己存在'),[CustomDocName]));
      Exit;
    end;
    CustomDocNo := GetNewCustomDocNo(DisplayPath,CustomDocName);
@@ -2296,7 +2295,7 @@
  iISBName,OldName : String;
  iISB : TImageScrollBox;
begin
  if MessageDlg('是否確定刪除??',mtconfirmation,[mbyes,mbcancel],0) = mrcancel then Exit;
  if MessageDlg(_Msg('是否確定刪除??'),mtconfirmation,[mbyes,mbcancel],0) = mrcancel then Exit;
  for i := 0 to ComponentCount -1 do
  begin
@@ -2322,7 +2321,7 @@
//ShowMessage('iISB.FileName='+iISB.FileName);
  ReSortFileName(ExtractFilePath(iISB.FileName));
  DrawDocItem2(MytreeNode1,NowCaseno);
  MyTreeNode1.Text := Format('%s-%d'+_Msg('頁'),[NowCaseno,GetCasePage(ImageSavePath,NowCaseNo)]);
  MyTreeNode1.Text := Format(_Msg('%s-%d頁'),[NowCaseno,GetCasePage(ImageSavePath,NowCaseNo)]);
  NewTreeNodeRefresh;
  ClearErrini(NowCaseno,MyTreeNode1);  //清掉檢核記錄
  TreeView1click(self);
@@ -2332,7 +2331,7 @@
var
  mp:string;
begin
  mp := InputBox('移動頁數','請輸入移入頁碼','');
  mp := InputBox(_Msg('移動頁數'),_Msg('請輸入移入頁碼'),'');
  if (mp <> '') then
  begin
    MoveImage(DisplayPath+NowDocDir+'\',strtoint(mp));
@@ -2795,8 +2794,9 @@
//ShowMessage(IntToStr(FileRec.Size)+','+IntToStr(FFileSizeLimit * 1024));
    If FileRec.Size > FFileSizeLimit * 1024 Then // 檢查檔案大小
    Begin
      ShowMessage(Format('目前檔案大小為 %.3f MB', [FileRec.Size / (1024*1024)]) +
        ',已超過單一檔案匯入限制'+Format('%.1f',[FFileSizeLimit/1024])+'MB');
      ShowMessage(Format(_Msg('目前檔案大小為 %.3f MB,已超過單一檔案匯入限制%1.f MB'),[FileRec.Size / (1024*1024),FFileSizeLimit/1024]));
      {ShowMessage(Format('目前檔案大小為 %.3f MB', [FileRec.Size / (1024*1024)]) +
        ',已超過單一檔案匯入限制'+Format('%.1f',[FFileSizeLimit/1024])+'MB');}
      FindClose(FileRec);
      DataLoading(false, false);
      Exit;
@@ -2811,7 +2811,8 @@
    P := ISB.ImageCountFromFile(OpenDialog1.FileName);
    For i := 1 To P Do
    Begin
      ShowText := _Msg('檔案加入中,請稍候(' + inttostr(i) + '/' + inttostr(P) + ')');
      ShowText := Format(_Msg('檔案加入中,請稍候(%d/%d)'),[i,p]);
      //ShowText := _Msg('檔案加入中,請稍候')+'(' + inttostr(i) + '/' + inttostr(P) + ')';
      DataLoading(True, True);
      ISB.LoadFromFile(FName, i);
      DeskewImg(ISB.Graphic);
@@ -2860,7 +2861,7 @@
        iRect.Bottom := ISB.Graphic.Height;
        CropImg(iGraphic_sec, iRect);
      End;
      ISB.Graphic.Clear;  //20220711  Hong 覺得ISB後面沒有到了,先清掉減少記憶體使用
      iGraphic := iGraphic_First;
      While Not iGraphic.IsEmpty Do
@@ -2915,7 +2916,7 @@
          DocNo := FormCode2DocNo(FormID);
          DocDir := FindLastestDocDir(CaseID, DocNo);
          if (FMode='ESCAN') and (FModeName='補件掃描') then
          if (FMode='ESCAN') and (FModeName=_Msg('補件掃描')) then
          begin
            DocDir := FindLastestDocDirForPage(CaseID, DocNo,FormID);
//ShowMessage('DocDir='+DocDir);
@@ -3139,6 +3140,8 @@
finally
ISB.Free;
iGraphic_First.Free;
iGraphic_sec.Free;
end;
@@ -3284,12 +3287,12 @@
        if Trim(DocListForm.Edit1.Text)='' then
        begin
          Showmessage('未輸入文件名稱');
          Showmessage(_Msg('未輸入文件名稱'));
          Exit;
        end;
        if FindCustomDocName(DisplayPath,NewFormID) then
        begin
          Showmessage(Format('文件名稱:"%s"己存在',[NewFormID]));
          Showmessage(Format(_Msg('文件名稱:"%s"己存在'),[NewFormID]));
          Exit;
        end;
        if NowFormCode <> AttName then
@@ -3380,7 +3383,7 @@
  SavePath : String;
  ST1:TStringList;
begin
  if InputQuery('輸入其他文件名稱','文件名稱',CustomDocName) then
  if InputQuery(_Msg('輸入其他文件名稱'),_Msg('文件名稱'),CustomDocName) then
  begin
    if CustomDocName <> '' then
    begin
@@ -3409,26 +3412,26 @@
begin
  oldCopies := GetDocDirCopies(NowCaseno,NowDocDir);
  try
    NewCopies := Strtoint(inputBox('修改份數','請輸入修改後的份數',inttostr(oldCopies)));
    NewCopies := Strtoint(inputBox(_Msg('修改份數'),_Msg('請輸入修改後的份數'),inttostr(oldCopies)));
  except
    Showmessage('輸入錯誤');
    Showmessage(_Msg('輸入錯誤'));
    Exit;
  end;
  if (NewCopies <= 0) and (NewCopies >= 10000) then
  begin
    Showmessage('輸入範圍錯誤');
    Showmessage(_Msg('輸入範圍錯誤'));
    Exit;
  end;
  if (oldCopies <> NewCopies) and (NewCopies > 0) and (NewCopies < 10000) then
  begin
    if DocNoNeedDiv(NowDocNo) and (NewCopies = 1) and (MessageDlg('修改至1份後此文件將無法再進行份數修改,是否確定??',mtConfirmation,[mbyes,mbcancel],0)= mrcancel) then
    if DocNoNeedDiv(NowDocNo) and (NewCopies = 1) and (MessageDlg(_Msg('修改至1份後此文件將無法再進行份數修改,是否確定??'),mtConfirmation,[mbyes,mbcancel],0)= mrcancel) then
      Exit;
    SetDocDirCopies(NowCaseno,NowDocDir,NewCopies);
    SetRecordEditedDocDir('A',NowCaseNo,NowDocDir);
    DrawDocItem2(MytreeNode1,NowCaseno);
    Showmessage('修改完成');
    Showmessage(_Msg('修改完成'));
  end;
end;
@@ -3584,7 +3587,7 @@
  if DisplayISB.FileName = '' then Exit;
  if (ContextList.Count = 1) and ((FMode = 'NSCAN') or (FMode = 'ASCAN') or (FMode = 'DSCAN') or (FMode = 'ISCAN') or (FMode = 'SSCAN') or (FMode = 'MSCAN') or (FMode = 'RI_SCAN')) then
  begin
    if Messagedlg(_Msg('刪除後(%s)案件無影像,將刪除此案件,是否確定刪除?'),mtconfirmation,[mbyes,mbcancel],0) = mrCancel then Exit;
    if Messagedlg(Format(_Msg('刪除後(%s)案件無影像,將刪除此案件,是否確定刪除?'),[NowCaseno]),mtconfirmation,[mbyes,mbcancel],0) = mrCancel then Exit;
    _DelTree(DisplayPath);
    SetCaseList('D',NewTreeNode.IndexOf(MyTreeNode1),'');
    LoadImgFile;
@@ -3655,7 +3658,7 @@
      PM104.Visible := True;   //檔案加入影像
    end;
    if FModeName='異動件' then
    if FModeName=_Msg('異動件') then
    begin
      PM101.Visible := True;
    end;
@@ -3680,7 +3683,7 @@
    if FMode='ESCAN' then
      PM101.Visible:=false;
    if FModeName='異動件' then
    if FModeName=_Msg('異動件') then
    begin
      PM101.Visible := True;
    end;
@@ -3720,7 +3723,7 @@
      PM101.Visible:=false;
    end;
    if FModeName='異動件' then
    if FModeName=_Msg('異動件') then
    begin
      PM101.Visible := True;
    end;
@@ -3759,7 +3762,7 @@
      PM101.Visible:=false;
    end;
    if FModeName='異動件' then
    if FModeName=_Msg('異動件') then
    begin
      PM101.Visible := True;
    end;
@@ -3861,7 +3864,7 @@
    PM605.Visible := True;  //刪除
  end;
  if  FModeName<>'異動件' then
  if  FModeName<>_Msg('異動件') then
  begin
    if (FImgDelete='Y') then
    begin
@@ -3934,7 +3937,7 @@
  if SampleFormIDList.IndexOf(SampleFormID)<>-1 then
  begin
    // Show a custom dialog
    buttonSelected := messagedlg(SampleFormID+'已有範本,是否取代?',mtCustom,
    buttonSelected := messagedlg(SampleFormID+_Msg('已有範本,是否取代?'),mtCustom,
                                [mbYes,mbCancel], 0);
    if buttonSelected = mrCancel then
    begin
@@ -4141,7 +4144,7 @@
      AddFile := HTTPEncode(UTF8Encode(ExtractFileName(OpenDialog1.Files.Strings[i])));
      if FileExists(ImageSavePath+NowCaseno+'\'+AddFile) then
      begin
        if Messagedlg(Format(_msg('%s己存在,是否覆蓋??'),[Addfile]),mtconfirmation,[mbyes,mbcancel],0) = mrcancel Then
        if Messagedlg(Format(_Msg('%s己存在,是否覆蓋??'),[Addfile]),mtconfirmation,[mbyes,mbcancel],0) = mrcancel Then
          Continue;
        SetAttContextList('D',-1,NowCaseno,AddFile);
      end;
@@ -4174,7 +4177,7 @@
begin
  IF not InitialOk Then
  begin
    Showmessage(_msg('資訊尚未下載完成,請稍候或重新進入'));
    Showmessage(_Msg('資訊尚未下載完成,請稍候或重新進入'));
    Exit;
  end;
  if MyTreeNode1 = nil then
@@ -4823,7 +4826,7 @@
        DocNo := FormCode2DocNo(FormID);
        ScanDocDir := FindLastestDocDir(ScanCaseno,DocNo);
        if (FMode='ESCAN') and (FModeName='補件掃描') then    //20180207 加入的特殊邏輯
        if (FMode='ESCAN') and (FModeName=_Msg('補件掃描')) then    //20180207 加入的特殊邏輯
        begin
          ScanDocDir := FindLastestDocDirForPage(ScanCaseno, DocNo,FormID);
        end;
@@ -4951,7 +4954,7 @@
  DeleteFile(LngPath+'mps.dat');
  end;
  ////壓zip//////
  Showmessage('匯出完成,匯出檔案:'+LngPath+'mps.zip');
  Showmessage(_Msg('匯出完成,匯出檔案:')+LngPath+'mps.zip');
end;
procedure TCB_IMGPSScanX.ImportBtClick(Sender: TObject);
@@ -4978,16 +4981,16 @@
      str2dir(ZipPath);
      if not ExecuteUnZip_Pwd(OpenDialog1.FileName,ZipPath,False,'9338430') then
        Showmessage('無法解壓縮');
        Showmessage(_Msg('無法解壓縮'));
      if not FileExists(ZipPath+'mps.dat') then
      begin
        Showmessage('格式不符,無法匯入');
        Showmessage(_Msg('格式不符,無法匯入'));
        Exit;
      end;
      S.LoadFromFile(ZipPath+'mps.dat');
      if (En_DecryptionStr_Base64('D',S.Strings[0],'9338430')<> ServerDate) then
      begin
        Showmessage('檔案過期,無法匯入');
        Showmessage(_Msg('檔案過期,無法匯入'));
        Exit;
      end;
@@ -5027,7 +5030,7 @@
  S.Free;
  _DelTree(ZipPath);
  end;
  Showmessage('匯入完成');
  Showmessage(_Msg('匯入完成'));
end;
procedure TCB_IMGPSScanX.HotKeyDown (var Msg : TMessage);
@@ -6014,7 +6017,7 @@
    begin
      if FileName2FormCode(FileList.Strings[i]) = FormID then
      begin
        if (FMode = 'ESCAN') and (FModeName<>'異動件') then
        if (FMode = 'ESCAN') and (FModeName<>_Msg('異動件')) then
        begin
          if ISExistImg(ImageSavePath+CaseID+'\'+DocDir+'\'+FileList.Strings[i]) then
          begin
@@ -6549,7 +6552,8 @@
//exit;           //目前上傳檔案大小為xxMB,已超過50MB,無法上傳    %.3f  ,[FileRec.Size / 1048576]
    If FileRec.Size > StrtoInt(FMaxUploadSize) * 1048576 Then // 檢查檔案大小
    Begin
      ShowMessage(Format('%s目前上傳檔案大小為%.3fMB,已超過'+FMaxUploadSize+'MB,無法上傳',[caseid,FileRec.Size / 1048576]) );
      ShowMessage(Format(_Msg('%s目前上傳檔案大小為%.3fMB,已超過%sMB,無法上傳'),[caseid,FileRec.Size / 1048576,FMaxUploadSize]));
      //ShowMessage(Format('%s目前上傳檔案大小為%.3fMB,已超過'+FMaxUploadSize+'MB,無法上傳',[caseid,FileRec.Size / 1048576]) );
      FindClose(FileRec);
      Result := False;
      Exit;
@@ -7754,26 +7758,6 @@
    Result := True;
end;
Function TCB_IMGPSScanX.GetInputMask:String; //取得輸入的保單號碼
var
  InputMaskForm: TInputMaskForm;
begin
  Result := '';
  ShowText := _msg('輸入保單號碼中');
  DataLoading(True,True);
  InputMaskForm := TInputMaskForm.Create(self);
  try
    InputMaskForm.MaskEdit1.ClearSelection;
    if InputMaskForm.ShowModal = mrOk then
    begin
      Result := Trim(InputMaskForm.MaskEdit1.Text)+Trim(InputMaskForm.MaskEdit2.Text)+Trim(InputMaskForm.MaskEdit3.Text);
    end;
  finally
  InputMaskForm.Free;
  DataLoading(False,False);
  end;
end;
Function TCB_IMGPSScanX.GetCasePage(Path,CaseID:String):Integer;
var
  DocDirList,FileList,ST1 :TStringlist;
@@ -8487,7 +8471,7 @@
begin
  if Mode = 'ID' then
  begin
    Result := '自行輸入';
    Result := _Msg('自行輸入');
    for i := 0 to ID_S.Count - 1 do
    begin
      if Str = ID_S.Strings[i] then
@@ -8931,7 +8915,7 @@
      //DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('頁'),[CaseDocNoList.Strings[i],DocNo2DocName(Caseno,iDocNo),DocNoPage]));
      //DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[CaseDocNoList.Strings[i],DocNo2DocName(Caseno,iDocNo),DocNoCopies]));
//ShowMessage('iDocNo='+iDocNo);
      DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[DocNo2DocName(Caseno,iDocNo),CaseDocNoList.Strings[i],DocNoCopies]));
      DocNode := TreeView1.Items.AddChild(CaseNode,Format(_Msg('%s{%s}-%d份'),[DocNo2DocName(Caseno,iDocNo),CaseDocNoList.Strings[i],DocNoCopies]));
      if GetUseCase('F',ImageSavePath+Caseno+'\',CaseDocNoList.Strings[i]) <> '' Then
      begin
@@ -8961,7 +8945,7 @@
            FormPage := GetFormIDPage(FileList,FormID);
            FormName := FormCode2FormName(Caseno,FormID);
            //FormNode := TreeView1.Items.AddChild(DocNode,FormID+'{'+FormName+'}-'+inttostr(FormPage)+_msg('頁'));
            FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
            FormNode := TreeView1.Items.AddChild(DocNode,Format(_Msg('%s{%s}-%d頁'),[FormName,FormID,FormPage]));
            FormNode.ImageIndex := 4;
            FormNode.SelectedIndex := 4;
            DocNode.AlphaSort(True);
@@ -8975,7 +8959,8 @@
        FormPage := GetFormIDPage(FileList,FormID);
        FormName := FormCode2FormName(Caseno,FormID);
        //FormNode := TreeView1.Items.AddChild(DocNode,FormID+'{'+FormName+'}-'+inttostr(FormPage)+_msg('頁'));
        FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
        //FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
        FormNode := TreeView1.Items.AddChild(DocNode,Format(_Msg('%s{%s}-%d頁'),[FormName,FormID,FormPage]));
        FormNode.ImageIndex := 4;
        FormNode.SelectedIndex := 4;
        DocNode.AlphaSort(True);
@@ -9001,8 +8986,8 @@
            FormPage := GetFormIDPage(FileList,FormID);
            FormName := FormCode2FormName(Caseno,FormID);
            //FormNode := TreeView1.Items.AddChild(DocNode,FormID+'{'+FormName+'}-'+inttostr(FormPage)+_msg('頁'));
            FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
            //FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
            FormNode := TreeView1.Items.AddChild(DocNode,Format(_Msg('%s{%s}-%d頁'),[FormName,FormID,FormPage]));
            FormNode.ImageIndex := 4;
            FormNode.SelectedIndex := 4;
            DocNode.AlphaSort(True);
@@ -9036,7 +9021,7 @@
      DocNoPage := FileList.Count;
      iDocNo := DocNoDir2DocNo(AttName);
      //DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[AttName,DocNo2DocName(Caseno,iDocNo),1]));
      DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[DocNo2DocName(Caseno,iDocNo),AttName,1]));
      DocNode := TreeView1.Items.AddChild(CaseNode,Format(_Msg('%s{%s}-%d份'),[DocNo2DocName(Caseno,iDocNo),AttName,1]));
      DocNode.ImageIndex := 2;
      DocNode.SelectedIndex := 2;
      for n := 0 to FileList.Count - 1 do
@@ -9047,8 +9032,8 @@
          FormPage := GetFormIDPage(FileList,FormID);
          FormName := FormCode2FormName(Caseno,FormID);
          //FormNode := TreeView1.Items.AddChild(DocNode,FormID+'{'+FormName+'}-'+inttostr(FormPage)+_msg('頁'));
          FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
          //FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
          FormNode := TreeView1.Items.AddChild(DocNode,Format(_Msg('%s{%s}-%d頁'),[FormName,FormID,FormPage]));
          FormNode.ImageIndex := 4;
          FormNode.SelectedIndex := 4;
        end;
@@ -9070,7 +9055,9 @@
        DocNoPage := FileList.Count;
        iDocNo := DocNoDir2DocNo(AttName);
        //DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[AttName,DocNo2DocName(Caseno,iDocNo),1]));
        DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[DocNo2DocName(Caseno,iDocNo),'Attach',1]));
        //DocNode := TreeView1.Items.AddChild(CaseNode,Format('%s{%s}-%d'+_msg('份'),[DocNo2DocName(Caseno,iDocNo),'Attach',1]));
        DocNode := TreeView1.Items.AddChild(CaseNode,Format(_Msg('%s{%s}-%d份'),[DocNo2DocName(Caseno,iDocNo),'Attach',1]));
        DocNode.ImageIndex := 2;
        DocNode.SelectedIndex := 2;
        for n := 0 to FileList.Count - 1 do
@@ -9081,7 +9068,8 @@
            FormPage := GetFormIDPage(FileList,FormID);
            FormName := FormCode2FormName(Caseno,FormID);
            //FormNode := TreeView1.Items.AddChild(DocNode,FormID+'{'+FormName+'}-'+inttostr(FormPage)+_msg('頁'));
            FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
            //FormNode := TreeView1.Items.AddChild(DocNode,FormName+'{'+FormID+'}-'+inttostr(FormPage)+_msg('頁'));
            FormNode := TreeView1.Items.AddChild(DocNode,Format(_Msg('%s{%s}-%d頁'),[FormName,FormID,FormPage]));
            FormNode.ImageIndex := 4;
            FormNode.SelectedIndex := 4;
@@ -9172,7 +9160,7 @@
    PrtDialog : TPrintDialog;
    S : String;
begin
  ShowText := '列印中,請稍候';
  ShowText := _Msg('列印中,請稍候');
  DataLoading(True,True);
  Case2upload(NowCaseNo);   //產生原影像結構
@@ -9256,6 +9244,7 @@
  OldCaseInfoForm.IN_WH_DocNoList := TStringlist.Create;
  OldCaseInfoForm.OldCopiesList := TStringlist.Create;
  try
    InitialLanguage(OldCaseInfoForm); //載入多國語言
    OldCaseInfoForm.Notebook1.ActivePage := 'CaseInfo';
    OldCaseInfoForm.ImageSavePath := ImageSavePath;
    OldCaseInfoForm.CaseID := NowCaseNo;
@@ -9282,7 +9271,7 @@
      Year := Caseinfolist.Strings[1];
      BS_No := Caseinfolist.Strings[2];
      IS_Old := Caseinfolist.Strings[3];
      With OldCaseInfoForm.ListView1.Items.Add do
      With OldCaseInfoForm.OldCaseLV.Items.Add do
      begin
        Caption := CaseID;
        SubItems.Add(Year);
@@ -9366,7 +9355,8 @@
      iDocNoList.SaveToFile(NewPath+'CaseDocNo.dat');
      iDocNo_CopiesList.SaveToFile(NewPath+'CaseDocNo_Copies.dat');
      DrawDocItem2(MyTreeNode1,NowCaseNo);
      MyTreeNode1.Text := Format('%s-%d'+_Msg('頁'),[NowCaseno,GetCasePage(ImageSavePath,NowCaseNo)]);
      //MyTreeNode1.Text := Format('%s-%d'+_Msg('頁'),[NowCaseno,GetCasePage(ImageSavePath,NowCaseNo)]);
      MyTreeNode1.Text := Format(_Msg('%s-%d頁'),[NowCaseno,GetCasePage(ImageSavePath,NowCaseNo)]);
      NewTreeNodeRefresh;
      ClearErrini(NowCaseno,MyTreeNode1);  //清掉檢核記錄
    end;
@@ -9773,9 +9763,9 @@
  if FileExists(LngPath+'MPSLIC_SCAN.lic') then
    DeleteFile(LngPath+'MPSLIC_SCAN.lic');
  if LegalDate = '' then
    StatusBar1.Panels[4].Text := '註冊號:'+MacID+' 剩餘註冊數:'+inttostr(Totalcount-Nowcount);
    StatusBar1.Panels[4].Text := Format(_Msg('註冊號:%s 剩餘註冊數:%s'),[MacID,inttostr(Totalcount-Nowcount)]);
  if LegalDate <> '' then
    StatusBar1.Panels[4].Text := '*註冊號:'+MacID+'('+inttostr(Lic_Idx)+')'+' 剩餘註冊數:'+inttostr(Totalcount-Nowcount);
    StatusBar1.Panels[4].Text := '*'+Format(_Msg('註冊號:%s 剩餘註冊數:%s'),[MacID+'('+inttostr(Lic_Idx)+')',inttostr(Totalcount-Nowcount)]);
end;
procedure TCB_IMGPSScanX.SmoothCBClick(Sender: TObject);
@@ -10098,7 +10088,7 @@
          Printer object. Otherwise, if UsePrintJob is True, the Title
          property of the TDibGraphicPrinter object is used to specify the
          job name. }
        Printer.Title := '影像列印';
        Printer.Title := _Msg('影像列印');
      end;
      IF (Page mod 2) = 1 Then
@@ -10123,7 +10113,7 @@
  procedure PrintWithAutoPrintJob;
  begin
      GraphicPrinter.UsePrintJob := True;
      GraphicPrinter.Title       := '影像列印';
      GraphicPrinter.Title       := _Msg('影像列印');
      GraphicPrinter.Print(ImageScrollBox1.Graphic);
  end;
@@ -10767,19 +10757,19 @@
        //Showmessage(FUrl+'service/slic/SLIC02/useOther?'+senddata);
        if not upFile(HTTPSClient,FUrl,'service/imgpsc/IMGPSC02/useOther',SendData,'file',OldCasePath+'UseCase.ini',FReWrite,Memo1,False) then
        begin
          Showmessage(Format(_Msg('傳送舊件編號(%s)檔案時,網路發生錯誤!!'+_Msg('錯誤代碼:')),[OldCaseID])+Inttostr(HttpError.HttpErrorCode)+' '+HttpError.HttpReason);
          Showmessage(Format(_Msg('傳送舊件編號(%s)檔案時,網路發生錯誤!!'),[OldCaseID])+_Msg('錯誤代碼:')+Inttostr(HttpError.HttpErrorCode)+' '+HttpError.HttpReason);
          Result := False;
          Exit;
        end;
        if memo1.Lines.Strings[0] = '1' then
        begin
          Showmessage(Format(_Msg('傳送舊件編號(%s)檔案時,網路發生錯誤!!')+_Msg('錯誤原因:'),[OldCaseID])+memo1.Lines.Strings[1]);
          Showmessage(Format(_Msg('傳送舊件編號(%s)檔案時,網路發生錯誤!!'),[OldCaseID])+_Msg('錯誤原因:')+memo1.Lines.Strings[1]);
          Result := False;
          Exit;
        end
        Else if Pos('<script type="text/javascript" src="scripts/CW00/login.js"></script>',Memo1.Lines.Text) > 0 then
        begin
          Showmessage(Format(_Msg('傳送舊件編號(%s)檔案時,網路發生錯誤!!')+_Msg('錯誤原因:')+_Msg('閒置過久或被登出,請重新登入'),[OldCaseID]));
          Showmessage(Format(_Msg('傳送舊件編號(%s)檔案時,網路發生錯誤!!'),[OldCaseID])+_Msg('錯誤原因:')+_Msg('閒置過久或被登出,請重新登入'));
          Result := False;
          Exit;
        end;
@@ -12191,7 +12181,7 @@
LogFile1.LogToFile(logTimeString+'最大頁數B段 '+CaseID+' '+'OMRFileList.Text='+OMRFileList.Text);
        For i := 0 to OMRFileList.Count - 1 do
        begin
          if FModeName='異動件' then Continue;
          if FModeName=_Msg('異動件') then Continue;
          if FWH_category='N' then
          begin
@@ -12787,7 +12777,7 @@
begin
  Result := True;     // http://192.168.0.101:8080/fbnp/servlet/CWC01?act=getservertime
  //dnFile(HTTPSClient,FUrl+'Language.Lng','','',LngPath+'Language.Lng',FReWrite.Text,Memo1,False,DownImgStatus)
  If not dnFile_Get(HTTPSClient,FUrl+'Language.Lng','','',LngPath+'Language.Lng',FReWrite,Memo1,False,'') Then
  If not dnFile_Get(HTTPSClient,FUrl+'Language.Lng','','',LngPath+'Language.Lng',FReWrite,Memo1,False,DownImgStatus) Then
  begin
    HttpErrStr := _Msg('錯誤代碼:')+inttostr(HttpError.HttpErrorCode)+','+HttpError.HttpReason;
    Result := False;
@@ -12817,7 +12807,7 @@
    List_FormCode,Err_FormCode: String;
    iFormID : String;
begin
   ShowText := '影像顯示中,請稍候';
   ShowText := _Msg('影像顯示中,請稍候');
   DataLoading(True,True);
   IF FormCode = 'ShowAll' then  //顯示所有的影像 (因為附件會傳空字串,所以用ShowAll)
@@ -12934,7 +12924,7 @@
    iGroupNo,page,Ct,int1 : Integer;
    ST1:TStringList;
begin
   ShowText := '影像顯示中,請稍候';
   ShowText := _Msg('影像顯示中,請稍候');
   DataLoading(True,True);
ST1:=TStringList.Create;
//Display1.Lines.Clear;
@@ -14695,7 +14685,7 @@
  DisplayMode(1,1,1,Panel9);
  Application.ProcessMessages;
  StatusBar1.Panels[0].Text := 'Ver'+GetCurrentVersionNo;
  StatusBar1.Panels[1].Text := _Msg('登入人員:')+FUserName;
  StatusBar1.Panels[1].Text := 'Login User:'+FUserName;
  if FPrintyn = 'Y' then
    PrtLB.Visible := True;
@@ -14703,11 +14693,24 @@
  InitScrollRec;
  If FUrl = '' then
  begin
    Showmessage(_Msg('URL不能為空白,請洽詢程式人員'));
    Showmessage(_Msg('URL cannot be empty,please contact system administrator'));
    Exit;
  end;
  if FUrl[length(FUrl)]<>'/' then
    FUrl := FUrl + '/';
  //20221028 把語言檔改放至 Local目錄裡,才不會有些文字來不及使用
  LngPath := GetLocalAppDir(Handle)+'MPS\CB_IMGPS\';
  Str2Dir(LngPath);
  ////下載語言檔/////  20170218 先拿調以便測試
  If not DownLanguage Then
  begin
    Showmessage('Language File error!!'+HttpErrStr);
    DataLoading(False,False);
    Exit;
  end;
  InitialLanguage(Self);  //載入多國語言
  if FWork_no='' then
  begin
@@ -14860,7 +14863,7 @@
//ShowMessage('CheckXmlPath='+CheckXmlPath);
  //SitePath := ImagePath+'Site\'+FWork_No+'\';
  SitePath := ImagePath+'Site\';  // 20200612 發現影像平台是取回所有業務的設定,所以不能有業務別目錄
  LngPath := ImagePath;
  //LngPath := ImagePath; //改放至上面取Local目錄
  SamplePath := ImagePath+'Sample\'+FWork_No+'\';
  ImagePath := ImagePath + 'Scantemp\';
//ShowMessage('AA  ImagePath='+ImagePath);
@@ -14899,15 +14902,8 @@
  ShowText := _Msg('資料載入中,請稍候');
  DataLoading(True,True);
   ////下載語言檔/////  20170218 先拿調以便測試
  If not DownLanguage Then
  begin
    Showmessage('Language File error!!'+HttpErrStr);
    DataLoading(False,False);
    Exit;
  end;
  InitialLanguage(Self);  //載入多國語言
  StatusBar1.Panels[1].Text := _Msg('登入人員:')+FUserName;
  //FCaseID:='20150302180133';//測試用
  ////下載語言檔/////
//ShowMessage('OOOO');
@@ -15210,7 +15206,7 @@
  begin
    uploadMsg:=NowCaseNo+_Msg('影像上傳完成。此案已進入下一流程');
  end;
  if (FMode='ESCAN') and (FModeName='補件掃描') and (SuccessCount = 1) then
  if (FMode='ESCAN') and (FModeName=_Msg('補件掃描')) and (SuccessCount = 1) then
  begin
    uploadMsg:=NowCaseNo+_Msg('影像已補件完成');
  end;
@@ -15341,9 +15337,9 @@
      DisplayPath := ImageSavePath+NowCaseNo+'\';
      if GetUseCase('F',DisplayPath,NowDocDir) <> '' then
        StatusBar1.Panels[2].Text := Format('從%s引用',[GetUseCase('F',DisplayPath,NowDocDir)]);
        StatusBar1.Panels[2].Text := Format(_Msg('從%s引用'),[GetUseCase('F',DisplayPath,NowDocDir)]);
      if GetUseCase('T',DisplayPath,NowDocDir) <> '' then
        StatusBar1.Panels[2].Text := Format('被%s引用',[GetUseCase('T',DisplayPath,NowDocDir)]);
        StatusBar1.Panels[2].Text := Format(_Msg('被%s引用'),[GetUseCase('T',DisplayPath,NowDocDir)]);
      if FLoanDoc_Enable = 'Y' then
      begin
        AddCredit1RG.Enabled := True;
@@ -15417,9 +15413,9 @@
      DisplayPath := ImageSavePath+NowCaseNo+'\';
      if GetUseCase('F',DisplayPath,NowDocDir) <> '' then
        StatusBar1.Panels[2].Text := Format('從%s引用',[GetUseCase('F',DisplayPath,NowDocDir)]);
        StatusBar1.Panels[2].Text := Format(_Msg('從%s引用'),[GetUseCase('F',DisplayPath,NowDocDir)]);
      if GetUseCase('T',DisplayPath,NowDocDir) <> '' then
        StatusBar1.Panels[2].Text := Format('被%s引用',[GetUseCase('T',DisplayPath,NowDocDir)]);
        StatusBar1.Panels[2].Text := Format(_Msg('被%s引用'),[GetUseCase('T',DisplayPath,NowDocDir)]);
      if FLoanDoc_Enable = 'Y' then
      begin
CB_IMGPSScanImp.pas1
比對新檔案
檔案太大
CB_IMGPSScan_TLB.dcu
Binary files differ
ErrList.dcu
Binary files differ
OldCaseInfo.dcu
Binary files differ
OldCaseInfo.dfm
@@ -37,7 +37,7 @@
        Align = alClient
        Caption = 'Panel2'
        TabOrder = 0
        object ListView1: TListView
        object OldCaseLV: TListView
          Left = 1
          Top = 42
          Width = 738
@@ -80,23 +80,27 @@
          Align = alTop
          TabOrder = 1
          OnDblClick = Panel1DblClick
          object BitBtn3: TBitBtn
          object LoadBt: TBitBtn
            Left = 16
            Top = 10
            Width = 75
            Height = 25
            Caption = #36617#20837#24433#20687
            DoubleBuffered = True
            ParentDoubleBuffered = False
            TabOrder = 0
            OnClick = BitBtn3Click
            OnClick = LoadBtClick
          end
          object BitBtn4: TBitBtn
          object OldExitBt: TBitBtn
            Left = 136
            Top = 10
            Width = 75
            Height = 25
            Caption = #38626#38283
            DoubleBuffered = True
            ParentDoubleBuffered = False
            TabOrder = 1
            OnClick = BitBtn4Click
            OnClick = OldExitBtClick
          end
        end
        object Memo1: TMemo
@@ -138,23 +142,27 @@
          TabOrder = 2
          Text = 'Edit1'
        end
        object BitBtn1: TBitBtn
        object ImportBt: TBitBtn
          Left = 11
          Top = 13
          Width = 75
          Height = 25
          Caption = #24341#29992
          DoubleBuffered = True
          ParentDoubleBuffered = False
          TabOrder = 0
          OnClick = BitBtn1Click
          OnClick = ImportBtClick
        end
        object BitBtn2: TBitBtn
        object ExitBt: TBitBtn
          Left = 113
          Top = 13
          Width = 75
          Height = 25
          Caption = #38626#38283
          DoubleBuffered = True
          ParentDoubleBuffered = False
          TabOrder = 1
          OnClick = BitBtn2Click
          OnClick = ExitBtClick
        end
      end
      object Panel4: TPanel
@@ -165,7 +173,7 @@
        Align = alLeft
        Caption = 'Panel2'
        TabOrder = 1
        object GroupBox1: TGroupBox
        object CaseListGB: TGroupBox
          Left = 1
          Top = 1
          Width = 247
@@ -245,7 +253,7 @@
  end
  object Panel22: TPanel
    Left = 196
    Top = 248
    Top = 241
    Width = 387
    Height = 41
    Caption = #36039#26009#36617#20837#20013','#35531#31245#20399
OldCaseInfo.pas
@@ -15,20 +15,20 @@
  TOldCaseInfoForm = class(TForm)
    Notebook1: TNotebook;
    Panel2: TPanel;
    ListView1: TListView;
    OldCaseLV: TListView;
    Panel1: TPanel;
    Panel3: TPanel;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    ImportBt: TBitBtn;
    ExitBt: TBitBtn;
    Panel4: TPanel;
    GroupBox1: TGroupBox;
    CaseListGB: TGroupBox;
    CheckListBox1: TCheckListBox;
    Panel5: TPanel;
    Panel6: TPanel;
    Panel7: TPanel;
    Splitter1: TSplitter;
    BitBtn3: TBitBtn;
    BitBtn4: TBitBtn;
    LoadBt: TBitBtn;
    OldExitBt: TBitBtn;
    ElMemoryCertStorage: TElMemoryCertStorage;
    ElWinCertStorage: TElWinCertStorage;
    Memo1: TMemo;
@@ -38,10 +38,10 @@
    ScrollBox1: TScrollBox;
    Edit1: TEdit;
    HTTPSClient: TElHTTPSClient;
    procedure BitBtn4Click(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);
    procedure BitBtn3Click(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
    procedure OldExitBtClick(Sender: TObject);
    procedure ImportBtClick(Sender: TObject);
    procedure LoadBtClick(Sender: TObject);
    procedure ExitBtClick(Sender: TObject);
    procedure Panel1DblClick(Sender: TObject);
    procedure HTTPSClientCertificateValidate(Sender: TObject;
      X509Certificate: TElX509Certificate; var Validate: Boolean);
@@ -178,7 +178,7 @@
  iDocNo,iDocName,iDocDir :String;
  iDocPage : Integer;
begin
  GroupBox1.Caption :=Format('½s¸¹%s¥i¤Þ¥Î¤å¥ó',[UseCaseID]);
  CaseListGB.Caption :=Format(_Msg('½s¸¹%s¥i¤Þ¥Î¤å¥ó'),[UseCaseID]);
  CheckListBox1.Items.Clear;
  DocDirList := TStringlist.Create;
  try
@@ -401,7 +401,7 @@
          FileList.SaveToFile(iPath+'Context.dat',Tencoding.UTF8);
          DocDirList.Strings[n] := CDocNo;
          DocDirList.SaveToFile(iPath+'DocDir.dat',Tencoding.UTF8);
          FormCode_NameList.Strings[n] := CFormID+'_±ÂÅvÂà±b¬ù©w®Ñ';
          FormCode_NameList.Strings[n] := CFormID+'_'+_Msg('±ÂÅvÂà±b¬ù©w®Ñ');
          FormCode_NameList.SaveToFile(iPath+'FormCode_Name.dat',Tencoding.UTF8);
        end;
      end;
@@ -412,7 +412,7 @@
        //MoveFile(PWideChar(iPath),PWideChar(iiPath));
        DocNoList.Strings[i] := StringReplace(DocNoList.Strings[i],iDocNo,CDocNo,[rfReplaceAll]);
        DocNoList.SaveToFile(ImageSavePath+CaseID+'\'+UseCaseID+'\CaseDocNo.dat',Tencoding.UTF8);
        DocNo_NameList.Strings[i]:= CDocDir+'_±ÂÅvÂà±b¬ù©w®Ñ';
        DocNo_NameList.Strings[i]:= CDocDir+'_'+_Msg('±ÂÅvÂà±b¬ù©w®Ñ');
        DocNo_NameList.SaveToFile(ImageSavePath+CaseID+'\'+UseCaseID+'\DocNo_Name.dat',Tencoding.UTF8);
        //SetRecordEditedDocDir('A',CaseID,CDocNo);
      end;
@@ -732,7 +732,7 @@
end;
procedure TOldCaseInfoForm.BitBtn1Click(Sender: TObject);
procedure TOldCaseInfoForm.ImportBtClick(Sender: TObject);
var
  i,v,v1 : Integer;
  DocDir,DocName : String;
@@ -757,35 +757,35 @@
  end;
  if not HaveCase then
  begin
    Showmessage('©|¥¼¿ï¾Ü­n¤Þ¤Jªº¤å¥ó');
    Showmessage(_Msg('©|¥¼¿ï¾Ü­n¤Þ¤Jªº¤å¥ó'));
    Exit;
  end;
  //Showmessage(OldDocDirList.Text);
  ModalResult := MrOk;
end;
procedure TOldCaseInfoForm.BitBtn2Click(Sender: TObject);
procedure TOldCaseInfoForm.ExitBtClick(Sender: TObject);
begin
  Notebook1.ActivePage := 'CaseInfo';
end;
procedure TOldCaseInfoForm.BitBtn3Click(Sender: TObject);
procedure TOldCaseInfoForm.LoadBtClick(Sender: TObject);
var
  i : Integer;
  OldCaseInfoList,Caseinfolist : TStringlist;
  iCaseID,UseBS_No,UseIS_Old : String;
begin
  if ListView1.ItemIndex = -1 then
  if OldCaseLV.ItemIndex = -1 then
  begin
    Showmessage(_msg('©|¥¼¿ï¾Üñ³ø®Ñ½s¸¹'));
    Exit;
  end;
  GroupBox1.Caption :=Format('½s¸¹%s¥i¤Þ¥Î¤å¥ó',[UseCaseID]);
  CaseListGB.Caption :=Format(_Msg('½s¸¹%s¥i¤Þ¥Î¤å¥ó'),[UseCaseID]);
  CheckListBox1.Items.Clear;
  Notebook1.ActivePage := 'View';
  UseCaseID := ListView1.Selected.Caption;
  UseBS_No := ListView1.Selected.SubItems.Strings[1];
  UseIS_Old := UpperCase(ListView1.Selected.SubItems.Strings[2]);
  UseCaseID := OldCaseLV.Selected.Caption;
  UseBS_No := OldCaseLV.Selected.SubItems.Strings[1];
  UseIS_Old := UpperCase(OldCaseLV.Selected.SubItems.Strings[2]);
  OldCaseInfoList := TStringlist.Create;
  Caseinfolist := TStringlist.Create;
  try
@@ -837,7 +837,7 @@
end;
procedure TOldCaseInfoForm.BitBtn4Click(Sender: TObject);
procedure TOldCaseInfoForm.OldExitBtClick(Sender: TObject);
begin
  ModalResult := MrCancel;
end;