{$INCLUDE t_main.inc}
unit u_tree_main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxExEdtr, dxDBTLCl, dxGrClms, StdCtrls, bsSkinCtrls, ComCtrls,
dxDBGrid, dxTL, dxDBCtrl, dxCntner, bsSkinTabs, ExtCtrls, dxtree,
dxdbtree, jpeg, ToolWin, BusinessSkinForm, ImgList, Menus, DB, ADODB,
ActnList,inifiles, Grids, DBGrids, XPMenu ,shellapi,
kbmMemTable, dxsbar, OleCtrls, SHDocVw, cxControls, cxSplitter, dxDBTL,
Buttons, RxLookup, cxContainer, cxEdit, cxLabel,IdSMTP,IdMessage,IdAttachment,
IdAttachmentFile,IdText, wwdbdatetimepicker;
Const WM_COMM = WM_APP+100;
type
Tfrm_tree_main = class(TForm)
CoolBar1: TCoolBar;
ToolBar1: TToolBar;
ToolButton1: TToolButton;
ToolButton2: TToolButton;
ToolButton7: TToolButton;
ToolButton3: TToolButton;
ToolButton4: TToolButton;
ToolButton11: TToolButton;
ToolButton5: TToolButton;
ToolButton9: TToolButton;
ToolButton6: TToolButton;
ToolButton10: TToolButton;
ToolButton8: TToolButton;
Panel6: TPanel;
Panel7: TPanel;
Image6: TImage;
Viewsmall: TImageList;
ViewLarge: TImageList;
vtoolbar: TImageList;
ImageList1: TImageList;
PopupMenu2: TPopupMenu;
N9: TMenuItem;
N10: TMenuItem;
N15: TMenuItem;
popView: TPopupMenu;
N32: TMenuItem;
N31: TMenuItem;
N30: TMenuItem;
N11: TMenuItem;
N12: TMenuItem;
N13: TMenuItem;
N14: TMenuItem;
N7: TMenuItem;
N8: TMenuItem;
popOper: TPopupMenu;
menu_opseae: TMenuItem;
menu_opseai: TMenuItem;
menu_opair: TMenuItem;
menu_opairi: TMenuItem;
MMModule: TMainMenu;
PopupMenu3: TPopupMenu;
N3: TMenuItem;
N4: TMenuItem;
N5: TMenuItem;
N6: TMenuItem;
dsrmodule: TDataSource;
qrymodule: TADOStoredProc;
popMessage: TPopupMenu;
N21: TMenuItem;
N22: TMenuItem;
N23: TMenuItem;
N24: TMenuItem;
N25: TMenuItem;
N26: TMenuItem;
N27: TMenuItem;
N28: TMenuItem;
N29: TMenuItem;
ActionList1: TActionList;
Act101: TAction;
Act102: TAction;
Act103: TAction;
Act104: TAction;
Act105: TAction;
Act111: TAction;
Act121: TAction;
Act131: TAction;
Act1401: TAction;
Act151: TAction;
Act152: TAction;
Act16: TAction;
Act20101: TAction;
Act211: TAction;
Act212: TAction;
Act213: TAction;
Act214: TAction;
Act22: TAction;
Act241: TAction;
Act242: TAction;
Act30101: TAction;
Act30102: TAction;
Act30103: TAction;
Act30104: TAction;
Act30117: TAction;
Act304: TAction;
Act303: TAction;
Act155: TAction;
Act30201: TAction;
Act30202: TAction;
Act30203: TAction;
Act30204: TAction;
Act411: TAction;
Act412: TAction;
Act413: TAction;
Act41401: TAction;
Act41402: TAction;
Act41403: TAction;
Act43: TAction;
Act44: TAction;
Act441: TAction;
Act442: TAction;
Act443: TAction;
Act444: TAction;
Act445: TAction;
Act451: TAction;
Act452: TAction;
Act453: TAction;
Act47: TAction;
Act49: TAction;
Act48: TAction;
Act51: TAction;
Act521: TAction;
Act522: TAction;
Act523: TAction;
Act524: TAction;
Act525: TAction;
Act526: TAction;
Act5310: TAction;
Act5321: TAction;
Act5330: TAction;
Act5340: TAction;
Act5350: TAction;
Act5360: TAction;
Act5370: TAction;
Act5380: TAction;
Act541: TAction;
Act542: TAction;
Act543: TAction;
Act544: TAction;
Act545: TAction;
Act546: TAction;
Act61: TAction;
Act62: TAction;
Act71: TAction;
Act72: TAction;
Act73: TAction;
Act74: TAction;
Act801: TAction;
Act80206: TAction;
Act804: TAction;
Act805: TAction;
Act806: TAction;
Act807: TAction;
Act808: TAction;
Act911: TAction;
Act912: TAction;
Act913: TAction;
Act914: TAction;
Act921: TAction;
Act922: TAction;
Act931: TAction;
Act932: TAction;
Act933: TAction;
Act934: TAction;
Act935: TAction;
Act936: TAction;
Act937: TAction;
Act938: TAction;
Act941: TAction;
Act942: TAction;
Act943: TAction;
Act944: TAction;
Act945: TAction;
Act946: TAction;
Act951: TAction;
Act952: TAction;
Act953: TAction;
Act954: TAction;
Act955: TAction;
Act956: TAction;
Act957: TAction;
Act958: TAction;
Act959: TAction;
Act960: TAction;
Act961: TAction;
Act962: TAction;
Act963: TAction;
Act964: TAction;
Act965: TAction;
Act966: TAction;
Act967: TAction;
Act968: TAction;
Act969: TAction;
Act970: TAction;
Act971: TAction;
Act1009: TAction;
Act80201: TAction;
Act80202: TAction;
Act80203: TAction;
Act80204: TAction;
Act80205: TAction;
Act2001: TAction;
Act2002: TAction;
Act2003: TAction;
Act2004: TAction;
Act2005: TAction;
Act2006: TAction;
Act20102: TAction;
Act20103: TAction;
Act20104: TAction;
Act75: TAction;
Act17: TAction;
Act939: TAction;
Act9391: TAction;
Act972: TAction;
Act1001: TAction;
Act1002: TAction;
Act1003: TAction;
Act5323: TAction;
Act5390: TAction;
Act5400: TAction;
bsSkinPageControl1: TbsSkinPageControl;
bsSkinTabSheet1: TbsSkinTabSheet;
Panel5: TPanel;
Panel8: TPanel;
Image7: TImage;
Label1: TLabel;
Label14: TLabel;
Label9: TLabel;
Label15: TLabel;
ListView1: TListView;
bsSkinMainMenuBar1: TbsSkinMainMenuBar;
bsBusinessSkinForm1: TbsBusinessSkinForm;
Act9390: TAction;
PopupClose: TPopupMenu;
popclose_close: TMenuItem;
OpenDialog1: TOpenDialog;
p_view: TADOStoredProc;
Act515: TAction;
Act18: TAction;
Act547: TAction;
Act548: TAction;
Act5381: TAction;
Act5382: TAction;
Act5383: TAction;
Act5384: TAction;
Act5391: TAction;
Act5392: TAction;
Act5401: TAction;
Act5402: TAction;
Act5403: TAction;
Act5404: TAction;
Splitter1: TSplitter;
Act215: TAction;
Act5210: TAction;
Act4011: TAction;
Act4012: TAction;
Act4013: TAction;
Act4014: TAction;
Act4015: TAction;
bsSkinPageControl2: TbsSkinPageControl;
tabtree: TbsSkinTabSheet;
tabfav: TbsSkinTabSheet;
Viewpage: TImageList;
dxbar_main: TdxSideBar;
ToolButton12: TToolButton;
t_sys_module_emp1: TDataSource;
t_sys_module_emp: TADOQuery;
p_sys_module_emp: TADOStoredProc;
qrytmp: TADOQuery;
popdxlist: TPopupMenu;
N1: TMenuItem;
Act307: TAction;
Act947: TAction;
Act5405: TAction;
Act191: TAction;
Act192: TAction;
Act948: TAction;
Act974: TAction;
Act78: TAction;
Act245: TAction;
Act402: TAction;
Act549: TAction;
Act1010: TAction;
Act156: TAction;
Act949: TAction;
Act491: TAction;
Act492: TAction;
Act5491: TAction;
Act25: TAction;
Act308: TAction;
ToolButton13: TToolButton;
Act815: TAction;
Act816: TAction;
Act975: TAction;
Act5492: TAction;
Act976: TAction;
Act817: TAction;
t: TkbmMemTable;
Act5351: TAction;
Act493: TAction;
Act309: TAction;
Act5324: TAction;
bsSkinPanel1: TbsSkinPanel;
maintree: TdxDBTreeView;
cxSplitter1: TcxSplitter;
WebBrowser1: TWebBrowser;
Act977: TAction;
Act416: TAction;
Act3001: TAction;
Act31001: TAction;
Act31002: TAction;
Act31003: TAction;
Act31004: TAction;
Act19901: TAction;
Act980: TAction;
Act981: TAction;
Act30118: TAction;
Act4020: TAction;
Act157: TAction;
Act158: TAction;
Act982: TAction;
Act200: TAction;
Act978: TAction;
Act979: TAction;
Act1082: TAction;
Act9392: TAction;
Act494: TAction;
Act3003: TAction;
Act216: TAction;
Act9331: TAction;
Act482: TAction;
Act201: TAction;
Act202: TAction;
Act483: TAction;
Act246: TAction;
Act312: TAction;
Act313: TAction;
Act20308: TAction;
ToolButton14: TToolButton;
PopView_Load: TPopupMenu;
N33: TMenuItem;
N20: TMenuItem;
N17: TMenuItem;
N18: TMenuItem;
N19: TMenuItem;
Act5406: TAction;
Act9501: TAction;
Act1901: TAction;
Act5411: TAction;
Act1902: TAction;
Act1903: TAction;
Act1904: TAction;
Act1905: TAction;
Act1906: TAction;
Act1911: TAction;
Act1912: TAction;
Act1915: TAction;
Act495: TAction;
pnl1: TPanel;
spl1: TSplitter;
dsTask: TDataSource;
qry1task: TADOQuery;
btnRereshTask: TSpeedButton;
pnl2_taskLeft: TPanel;
pnl3: TPanel;
btn1: TSpeedButton;
tv1: TTreeView;
pnl4: TPanel;
pnl5: TPanel;
dxdbgrd1_task: TdxDBGrid;
dxdbgrdclmndxdbgrd1Column1: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column4: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column2: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column3: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column5: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column6: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column7: TdxDBGridColumn;
dxdbgrdclmndxdbgrd1Column8: TdxDBGridColumn;
dxdbgrdchckclmndxdbgrd1Column9: TdxDBGridCheckColumn;
dxdbgrdbtnclmndxdbgrdhyprlnkclmndxdbgrd1Column10: TdxDBGridButtonColumn;
tlb1: TToolBar;
btn1ZB: TToolButton;
btn2VC: TToolButton;
il1: TImageList;
lbl1: TLabel;
cxspltr1: TcxSplitter;
qry2TaskType: TADOQuery;
il2: TImageList;
il2_taskmenu: TImageList;
pm1_tsk_vcMenu: TPopupMenu;
mni_tskN2Forword: TMenuItem;
mni_tskN2OkFinish: TMenuItem;
pm1_tsk_orMenu: TPopupMenu;
mni_tskor_N1Ok: TMenuItem;
mni_tskor_N3Cancel: TMenuItem;
dxdbgrdtclmndxdbgrd1_taskColumn11: TdxDBGridDateColumn;
qry_op_file_items: TADOQuery;
dxdbgrdclmndxdbgrd1_taskColumn12: TdxDBGridColumn;
cxlbl1: TcxLabel;
RxDBLookupCombo57: TRxDBLookupCombo;
Editedwtdw: TEdit;
dxdbgrdclmndxdbgrd1_taskColumn13: TdxDBGridColumn;
lbl2: TLabel;
lbl3: TLabel;
img1: TImage;
mni_tskor_N2Finish: TMenuItem;
N16: TMenuItem;
N34: TMenuItem;
N35: TMenuItem;
N36: TMenuItem;
pm1_tsk_swMenu: TPopupMenu;
MenuItem1: TMenuItem;
MenuItem2: TMenuItem;
mni3_swFinish: TMenuItem;
MenuItem4: TMenuItem;
mni3_swCancel: TMenuItem;
btn3SW: TToolButton;
N37: TMenuItem;
mni3_swPENDING: TMenuItem;
qry_op_seae: TADOQuery;
mailSend: TkbmMemTable;
strngfldSendStringField: TStringField;
strngfldSendField: TStringField;
strngfldSendField2: TStringField;
strngfldSendField3: TStringField;
strngfldSendField4: TStringField;
strngfldSendField5: TStringField;
strngfldSendField6: TStringField;
strngfldSendField7: TStringField;
dxdbgrdclmndxdbgrd1_taskColumn15: TdxDBGridColumn;
dxdbgrdchckclmndxdbgrdclmndxdbgrd1_taskColumn14: TdxDBGridCheckColumn;
mni_tskN2Cancel: TMenuItem;
btn4_ReAssignTask: TToolButton;
btn5AlertOk: TToolButton;
btn6_Invoic: TToolButton;
pm4_Invoice: TPopupMenu;
mni4_OK: TMenuItem;
mni2: TMenuItem;
mni4_PENDING: TMenuItem;
mni4: TMenuItem;
mni4_CANCEL: TMenuItem;
wdbdtmpckr1: TwwDBDateTimePicker;
wdbdtmpckr2: TwwDBDateTimePicker;
lbl4: TLabel;
lbl5: TLabel;
wdbdtmpckr2_finish: TwwDBDateTimePicker;
wdbdtmpckr1_finish: TwwDBDateTimePicker;
btn7_BCBABCL: TToolButton;
pm5_BcBaBcl: TPopupMenu;
mni5_forword: TMenuItem;
mni3: TMenuItem;
mni5_OK: TMenuItem;
mni6: TMenuItem;
mni5_PENDING: TMenuItem;
mni8: TMenuItem;
mni5_CANCEL: TMenuItem;
btn2: TToolButton;
dxdbgrdtclmndxdbgrd1_taskColumn16: TdxDBGridDateColumn;
pm1_reAssignTsk: TPopupMenu;
mniN4_tskAss_rematch: TMenuItem;
mniN4_tskAss_subRematch: TMenuItem;
Act516: TAction;
ToolButton15: TToolButton;
dxdbgrd1_taskColumn17: TdxDBGridColumn;
Act551: TAction;
btn1VGM: TToolButton;
pm1_tsk_VgmMenu: TPopupMenu;
MenuItem3: TMenuItem;
MenuItem5: TMenuItem;
MenuItem8: TMenuItem;
Act111001: TAction;
Act9502: TAction;
Act9503: TAction;
Act9504: TAction;
Act111002: TAction;
Act111004: TAction;
Act111005: TAction;
Act497: TAction;
Act499: TAction;
Act2502: TAction;
ToolButton16: TToolButton;
Act5209: TAction;
ToolButton17: TToolButton;
pm_ysjh: TPopupMenu;
MenuItem6: TMenuItem;
MenuItem7: TMenuItem;
MenuItem9: TMenuItem;
Act418: TAction;
Act9393: TAction;
Act9505: TAction;
bsSkinButton1: TbsSkinButton;
qry_op_seae1: TDataSource;
Act9506: TAction;
Act9507: TAction;
Act5493: TAction;
Act5211: TAction;
Act4991: TAction;
Act4992: TAction;
dxdbgrd1_taskColumn18: TdxDBGridColumn;
Act4302: TAction;
Act5365: TAction;
procedure N9Click(Sender: TObject);
procedure N15Click(Sender: TObject);
procedure maintreeChange(Sender: TObject; Node: TTreeNode);
procedure maintreeDblClick(Sender: TObject);
procedure N32Click(Sender: TObject);
procedure N31Click(Sender: TObject);
procedure N11Click(Sender: TObject);
procedure N12Click(Sender: TObject);
procedure N13Click(Sender: TObject);
procedure N14Click(Sender: TObject);
procedure N8Click(Sender: TObject);
procedure menu_opseaeClick(Sender: TObject);
procedure menu_opseaiClick(Sender: TObject);
procedure menu_opairClick(Sender: TObject);
procedure menu_opairiClick(Sender: TObject);
procedure N3Click(Sender: TObject);
procedure N4Click(Sender: TObject);
procedure N5Click(Sender: TObject);
procedure N6Click(Sender: TObject);
procedure ToolButton1Click(Sender: TObject);
procedure ToolButton2Click(Sender: TObject);
procedure N21Click(Sender: TObject);
procedure N23Click(Sender: TObject);
procedure N25Click(Sender: TObject);
procedure N27Click(Sender: TObject);
procedure N29Click(Sender: TObject);
procedure ListView1DblClick(Sender: TObject);
procedure ToolButton5Click(Sender: TObject);
procedure Act801Execute(Sender: TObject);
procedure Act80206Execute(Sender: TObject);
procedure Act804Execute(Sender: TObject);
procedure Act805Execute(Sender: TObject);
procedure Act806Execute(Sender: TObject);
procedure Act807Execute(Sender: TObject);
procedure Act808Execute(Sender: TObject);
procedure Act80201Execute(Sender: TObject);
procedure Act80202Execute(Sender: TObject);
procedure Act80203Execute(Sender: TObject);
procedure Act80204Execute(Sender: TObject);
procedure Act80205Execute(Sender: TObject);
procedure Act51Execute(Sender: TObject);
procedure Act43Execute(Sender: TObject);
procedure Act44Execute(Sender: TObject);
procedure Act47Execute(Sender: TObject);
procedure Act49Execute(Sender: TObject);
procedure Act48Execute(Sender: TObject);
procedure Act541Execute(Sender: TObject);
procedure Act542Execute(Sender: TObject);
procedure Act543Execute(Sender: TObject);
procedure Act544Execute(Sender: TObject);
procedure Act545Execute(Sender: TObject);
procedure Act546Execute(Sender: TObject);
procedure Act941Execute(Sender: TObject);
procedure Act942Execute(Sender: TObject);
procedure Act943Execute(Sender: TObject);
procedure Act944Execute(Sender: TObject);
procedure Act945Execute(Sender: TObject);
procedure Act946Execute(Sender: TObject);
procedure ToolButton8Click(Sender: TObject);
procedure Act921Execute(Sender: TObject);
procedure Act922Execute(Sender: TObject);
procedure Act101Execute(Sender: TObject);
procedure Act102Execute(Sender: TObject);
procedure Act103Execute(Sender: TObject);
procedure Act104Execute(Sender: TObject);
procedure Act105Execute(Sender: TObject);
procedure Act111Execute(Sender: TObject);
procedure Act121Execute(Sender: TObject);
procedure Act131Execute(Sender: TObject);
procedure Act1401Execute(Sender: TObject);
procedure Act151Execute(Sender: TObject);
procedure Act152Execute(Sender: TObject);
procedure Act16Execute(Sender: TObject);
procedure Act155Execute(Sender: TObject);
procedure Act17Execute(Sender: TObject);
procedure Act5310Execute(Sender: TObject);
procedure Act5321Execute(Sender: TObject);
procedure Act5330Execute(Sender: TObject);
procedure Act5340Execute(Sender: TObject);
procedure Act5350Execute(Sender: TObject);
procedure Act5360Execute(Sender: TObject);
procedure Act5370Execute(Sender: TObject);
procedure Act5380Execute(Sender: TObject);
procedure Act5323Execute(Sender: TObject);
procedure Act5390Execute(Sender: TObject);
procedure Act5400Execute(Sender: TObject);
procedure Act951Execute(Sender: TObject);
procedure Act952Execute(Sender: TObject);
procedure Act953Execute(Sender: TObject);
procedure Act954Execute(Sender: TObject);
procedure Act955Execute(Sender: TObject);
procedure Act956Execute(Sender: TObject);
procedure Act957Execute(Sender: TObject);
procedure Act958Execute(Sender: TObject);
procedure Act959Execute(Sender: TObject);
procedure Act960Execute(Sender: TObject);
procedure Act961Execute(Sender: TObject);
procedure Act962Execute(Sender: TObject);
procedure Act963Execute(Sender: TObject);
procedure Act964Execute(Sender: TObject);
procedure Act965Execute(Sender: TObject);
procedure Act966Execute(Sender: TObject);
procedure Act967Execute(Sender: TObject);
procedure Act968Execute(Sender: TObject);
procedure Act969Execute(Sender: TObject);
procedure Act970Execute(Sender: TObject);
procedure Act971Execute(Sender: TObject);
procedure Act972Execute(Sender: TObject);
procedure Act411Execute(Sender: TObject);
procedure Act412Execute(Sender: TObject);
procedure Act413Execute(Sender: TObject);
procedure Act41401Execute(Sender: TObject);
procedure Act41402Execute(Sender: TObject);
procedure Act41403Execute(Sender: TObject);
procedure Act931Execute(Sender: TObject);
procedure Act932Execute(Sender: TObject);
procedure Act933Execute(Sender: TObject);
procedure Act934Execute(Sender: TObject);
procedure Act935Execute(Sender: TObject);
procedure Act936Execute(Sender: TObject);
procedure Act937Execute(Sender: TObject);
procedure Act938Execute(Sender: TObject);
procedure Act939Execute(Sender: TObject);
procedure Act9391Execute(Sender: TObject);
procedure Act1009Execute(Sender: TObject);
procedure Act1001Execute(Sender: TObject);
procedure Act1002Execute(Sender: TObject);
procedure Act1003Execute(Sender: TObject);
procedure Act451Execute(Sender: TObject);
procedure Act452Execute(Sender: TObject);
procedure Act453Execute(Sender: TObject);
procedure Act2001Execute(Sender: TObject);
procedure Act2002Execute(Sender: TObject);
procedure Act2003Execute(Sender: TObject);
procedure Act2004Execute(Sender: TObject);
procedure Act2005Execute(Sender: TObject);
procedure Act2006Execute(Sender: TObject);
procedure Act71Execute(Sender: TObject);
procedure Act72Execute(Sender: TObject);
procedure Act73Execute(Sender: TObject);
procedure Act74Execute(Sender: TObject);
procedure Act75Execute(Sender: TObject);
procedure Act911Execute(Sender: TObject);
procedure Act912Execute(Sender: TObject);
procedure Act913Execute(Sender: TObject);
procedure Act914Execute(Sender: TObject);
procedure Act521Execute(Sender: TObject);
procedure Act522Execute(Sender: TObject);
procedure Act523Execute(Sender: TObject);
procedure Act524Execute(Sender: TObject);
procedure Act525Execute(Sender: TObject);
procedure Act526Execute(Sender: TObject);
procedure Act30117Execute(Sender: TObject);
procedure Act304Execute(Sender: TObject);
procedure Act303Execute(Sender: TObject);
procedure Act441Execute(Sender: TObject);
procedure Act442Execute(Sender: TObject);
procedure Act443Execute(Sender: TObject);
procedure Act444Execute(Sender: TObject);
procedure Act445Execute(Sender: TObject);
procedure Act241Execute(Sender: TObject);
procedure Act242Execute(Sender: TObject);
procedure Act20101Execute(Sender: TObject);
procedure Act211Execute(Sender: TObject);
procedure Act212Execute(Sender: TObject);
procedure Act213Execute(Sender: TObject);
procedure Act214Execute(Sender: TObject);
procedure Act22Execute(Sender: TObject);
procedure Act20102Execute(Sender: TObject);
procedure Act20103Execute(Sender: TObject);
procedure Act20104Execute(Sender: TObject);
procedure Act30201Execute(Sender: TObject);
procedure Act30202Execute(Sender: TObject);
procedure Act30203Execute(Sender: TObject);
procedure Act30204Execute(Sender: TObject);
procedure Act30101Execute(Sender: TObject);
procedure Act30102Execute(Sender: TObject);
procedure Act30103Execute(Sender: TObject);
procedure Act30104Execute(Sender: TObject);
procedure Act61Execute(Sender: TObject);
procedure Act62Execute(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure ToolButton6Click(Sender: TObject);
procedure Act9390Execute(Sender: TObject);
procedure bsSkinPageControl1MouseDown(Sender: TObject;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
procedure popclose_closeClick(Sender: TObject);
procedure ToolButton11Click(Sender: TObject);
procedure Act515Execute(Sender: TObject);
procedure Act18Execute(Sender: TObject);
procedure Act547Execute(Sender: TObject);
procedure Act548Execute(Sender: TObject);
procedure Act5381Execute(Sender: TObject);
procedure Act5382Execute(Sender: TObject);
procedure Act5383Execute(Sender: TObject);
procedure Act5384Execute(Sender: TObject);
procedure Act5391Execute(Sender: TObject);
procedure Act5392Execute(Sender: TObject);
procedure Act5401Execute(Sender: TObject);
procedure Act5402Execute(Sender: TObject);
procedure Act5403Execute(Sender: TObject);
procedure Act5404Execute(Sender: TObject);
procedure Act215Execute(Sender: TObject);
procedure Act5210Execute(Sender: TObject);
procedure Act4011Execute(Sender: TObject);
procedure Act4012Execute(Sender: TObject);
procedure Act4013Execute(Sender: TObject);
procedure Act4014Execute(Sender: TObject);
procedure Act4015Execute(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure bsSkinPageControl2Change(Sender: TObject);
procedure ToolButton12Click(Sender: TObject);
procedure dxbar_mainItemClick(Sender: TObject; Item: TdxSideBarItem);
procedure N1Click(Sender: TObject);
procedure Act307Execute(Sender: TObject);
procedure Act947Execute(Sender: TObject);
procedure Act5405Execute(Sender: TObject);
procedure Act191Execute(Sender: TObject);
procedure Act192Execute(Sender: TObject);
procedure Act948Execute(Sender: TObject);
procedure Act974Execute(Sender: TObject);
procedure Act78Execute(Sender: TObject);
procedure Act245Execute(Sender: TObject);
procedure Act402Execute(Sender: TObject);
procedure Act549Execute(Sender: TObject);
procedure Act1010Execute(Sender: TObject);
procedure Act156Execute(Sender: TObject);
procedure Act949Execute(Sender: TObject);
procedure Act491Execute(Sender: TObject);
procedure Act492Execute(Sender: TObject);
procedure Act5491Execute(Sender: TObject);
procedure Act25Execute(Sender: TObject);
procedure Act308Execute(Sender: TObject);
procedure Act815Execute(Sender: TObject);
procedure Act816Execute(Sender: TObject);
procedure Act975Execute(Sender: TObject);
procedure Act5492Execute(Sender: TObject);
procedure Act976Execute(Sender: TObject);
procedure Act817Execute(Sender: TObject);
procedure Act5351Execute(Sender: TObject);
procedure Act493Execute(Sender: TObject);
procedure Act309Execute(Sender: TObject);
procedure Act5324Execute(Sender: TObject);
procedure Act977Execute(Sender: TObject);
procedure WebBrowser1DocumentComplete(Sender: TObject;
const pDisp: IDispatch; var URL: OleVariant);
procedure Act416Execute(Sender: TObject);
procedure Act3001Execute(Sender: TObject);
procedure Act31001Execute(Sender: TObject);
procedure Act31002Execute(Sender: TObject);
procedure Act31003Execute(Sender: TObject);
procedure Act31004Execute(Sender: TObject);
procedure Act19901Execute(Sender: TObject);
procedure Act980Execute(Sender: TObject);
procedure Act981Execute(Sender: TObject);
procedure Act30118Execute(Sender: TObject);
procedure Act4020Execute(Sender: TObject);
procedure Act157Execute(Sender: TObject);
procedure Act158Execute(Sender: TObject);
procedure Act982Execute(Sender: TObject);
procedure Act200Execute(Sender: TObject);
procedure Act978Execute(Sender: TObject);
procedure Act979Execute(Sender: TObject);
procedure Act1082Execute(Sender: TObject);
procedure Act9392Execute(Sender: TObject);
procedure Act494Execute(Sender: TObject);
procedure Act216Execute(Sender: TObject);
procedure Act9331Execute(Sender: TObject);
procedure Act482Execute(Sender: TObject);
procedure Act201Execute(Sender: TObject);
procedure Act483Execute(Sender: TObject);
procedure Act202Execute(Sender: TObject);
procedure Act312Execute(Sender: TObject);
procedure Act246Execute(Sender: TObject);
procedure Act313Execute(Sender: TObject);
procedure Act20308Execute(Sender: TObject);
procedure ToolButton14Click(Sender: TObject);
procedure N33Click(Sender: TObject);
procedure N17Click(Sender: TObject);
procedure N18Click(Sender: TObject);
procedure N19Click(Sender: TObject);
procedure Act5406Execute(Sender: TObject);
procedure Act9501Execute(Sender: TObject);
procedure Act1901Execute(Sender: TObject);
procedure Act5411Execute(Sender: TObject);
procedure actAct1902Execute(Sender: TObject);
procedure Act1903Execute(Sender: TObject);
procedure Act1904Execute(Sender: TObject);
procedure Act1905Execute(Sender: TObject);
procedure Act1906Execute(Sender: TObject);
procedure Act1911Execute(Sender: TObject);
procedure Act1912Execute(Sender: TObject);
procedure Act1915Execute(Sender: TObject);
procedure Act495Execute(Sender: TObject);
procedure btnRereshTaskClick(Sender: TObject);
procedure dxdbgrd2CustomDrawCell(Sender: TObject; ACanvas: TCanvas;
ARect: TRect; ANode: TdxTreeListNode; AColumn: TdxTreeListColumn;
ASelected, AFocused, ANewItemRow: Boolean; var AText: String;
var AColor: TColor; AFont: TFont; var AAlignment: TAlignment;
var ADone: Boolean);
procedure tv1Changing(Sender: TObject; Node: TTreeNode;
var AllowChange: Boolean);
procedure rzgrp1_PersonItems0Click(Sender: TObject);
procedure tv1Change(Sender: TObject; Node: TTreeNode);
procedure dxdbgrd1_taskDblClick(Sender: TObject);
procedure EditedwtdwKeyPress(Sender: TObject; var Key: Char);
procedure btn4_ReAssignTaskClick(Sender: TObject);
procedure mni_tskor_N2FinishClick(Sender: TObject);
procedure mni_tskor_N3CancelClick(Sender: TObject);
procedure mni_tskor_N1OkClick(Sender: TObject);
procedure mni_tskN2ForwordClick(Sender: TObject);
procedure mni3_swPENDINGClick(Sender: TObject);
procedure btn5AlertOkClick(Sender: TObject);
procedure mniN4_tskAss_rematchClick(Sender: TObject);
procedure mniN4_tskAss_subRematchClick(Sender: TObject);
procedure Act516Execute(Sender: TObject);
procedure ToolButton15Click(Sender: TObject);
procedure Act550Execute(Sender: TObject);
procedure Act551Execute(Sender: TObject);
procedure dxdbgrd1_taskColumnSorting(Sender: TObject;
Column: TdxDBTreeListColumn; var Allow: Boolean);
procedure Act111001Execute(Sender: TObject);
procedure Act9502Execute(Sender: TObject);
procedure Act9503Execute(Sender: TObject);
procedure Act9504Execute(Sender: TObject);
procedure Act111002Execute(Sender: TObject);
procedure Act111004Execute(Sender: TObject);
procedure Act111005Execute(Sender: TObject);
procedure Act497Execute(Sender: TObject);
procedure Act499Execute(Sender: TObject);
procedure Act2502Execute(Sender: TObject);
procedure ToolButton16Click(Sender: TObject);
procedure Act5209Execute(Sender: TObject);
procedure MenuItem6Click(Sender: TObject);
procedure MenuItem9Click(Sender: TObject);
procedure Act418Execute(Sender: TObject);
procedure Act9393Execute(Sender: TObject);
procedure Act9505Execute(Sender: TObject);
procedure bsSkinButton1Click(Sender: TObject);
procedure Act9506Execute(Sender: TObject);
procedure Act9507Execute(Sender: TObject);
procedure Act5493Execute(Sender: TObject);
procedure Act5211Execute(Sender: TObject);
procedure Act4991Execute(Sender: TObject);
procedure Act4992Execute(Sender: TObject);
procedure Act4302Execute(Sender: TObject);
procedure Act5365Execute(Sender: TObject);
private
{ Private declarations }
CloseSheet:TTabSheet ;
bliNitialOk:Boolean;//是否初始化完毕
function getpname(pid:integer):TMenuItem ;
procedure addlv(myid: integer);
procedure addlvemp(myid: integer);
procedure dellvemp(myid: integer);
procedure addLVcolumn ;
procedure adddx;
procedure Addmenu ;
procedure menuclick(Sender: TObject) ;
procedure SaveView(skinName:string);
function delmenu(menu:TMenuItem):boolean;
procedure initialTaskType();
procedure bindtaskdata();
procedure UpLoadProFile(fname,RemotePathName,Users,pw,mblNo,bsno:string;fid:integer;filetype:string);
procedure updateGuadanFilecount(fid:Integer;bsno:string);
procedure taskFinish( Ofiletype:string );
// 线程结束执行,线程任务执行在mythread里调用
procedure MyOnTerminate(Sender: TObject);
//BC/BA分单挂单
function AssignPub_ORIGINAL_SEAWAY_VC():Boolean;
public
{ Public declarations }
function freesheeet:boolean ;
procedure replmenu ;
function Guadan(mainNo,bsno,filetype,filename_src:string):boolean;
//分单挂单
function Guadan_2(mainNo,bsno,filetype,filename_src:string;isFendan:Boolean;subNo:string):boolean;
function ConnectDownServer():Boolean; //连接Nass cjb 2017-11
function sendmail( mailSendTbl: TkbmMemTable;mailtype,bsno:string;ishtml:Boolean):Boolean;
function sendmailQue( mailSendTbl: TADOQuery):Boolean;
function checkGuadanTimes( str:string):Boolean;//2017-12-06
//邮件队列发送
function sendmailBatch(taskqueNo:string ): Integer; //stdcall;
end;
MYPARA=record
QNo: pchar;
QType: pchar;
end;
PMYPARA=^MYPARA;
var
frm_tree_main: Tfrm_tree_main;
implementation
uses u_data_share,u_info_tell,
u_sys_message_pri, u_main,
my_sys_function,
u_rp_dui_accepttotal, U_ch_prnFee,
{$IFDEF PZJIEKOU}
u_cw_pingzheng,
{$ENDIF}
{$IFDEF QTFEIYONG}
u_op_fee,
{$ENDIF}
{$IFDEF YWTAIZHANG}
u_rp_tai_total,u_rp_tai_seae_pin,
{$ENDIF}
u_rp_fee_modify, u_rp_ch_balance_accept,
u_rp_ch_balance_pay, u_rp_ch_balance_rate, u_rp_ch_currency_change,
{$IFDEF FYZHUANGTAI}
u_rp_ch_fee_state,
{$ENDIF}
u_sys_parameters, u_code_empty,
u_code_subcomp, u_sys_close,
u_sys_dep_emp, u_sys_limited, u_op_seae,
{$IFDEF PXHUANHUO}u_op_seae_huanhuo,{$ENDIF}
u_op_seae_vessel_change,
{$IFDEF QDQUEREN}u_op_seae_qiandan,{$ENDIF}
u_op_seae_qiandan_add,
u_op_seai,
{$IFDEF JGCHE}{$ENDIF}
{$IFDEF SJBAOGUAN}u_op_seae_apply, u_op_seai_apply, u_op_apply,{$ENDIF}
u_op_seae_card,
{$IFDEF TSQUEREN}u_op_seae_tuishui,{$ENDIF}
u_op_delete,
u_rp_rp_seae_pin, u_rp_rp_total, {$IFDEF ZHYDTONGJI}u_rp_rp_monthtotal,{$ENDIF} {$IFDEF ZHMXTONGJI}u_rp_ch_total,{$ENDIF}
{$IFDEF ZHZIYOU}u_rp_chfree_total,{$ENDIF} {$IFDEF GYSHANG}u_rp_truck_no, u_rp_apply_no,{$ENDIF} u_rp_zou_total,
u_rp_rp_seae, u_rp_fen_total, u_code_ctn_kind,
u_code_ctn, u_code_goods, u_code_package,
u_code_tiaokuan, u_code_country, u_code_port,
u_code_trade, u_code_vessel,
{$IFDEF EDI}u_code_line_edi, {$ENDIF}
u_code_signbill, u_code_items, u_code_code, u_code_send_head, u_code_card,
{$IFDEF ZTGENGZONG}u_code_state, {$ENDIF}
u_code_source, u_code_opresult,
{$IFDEF FPSHENQING}u_ch_invoice_shen,u_ch_invoice_check,{$ENDIF}
u_ch_invoice, u_rp_in_ch,
u_rp_in_fenlei, u_rp_in_total, u_code_currency, u_code_fee_type,
u_code_fee, u_code_fee_project, u_code_free, u_code_fee_color,
{$IFDEF PZJIEKOU}
u_cw_design, u_cw_kemu,
{$ENDIF}
u_code_UsdExRate, u_info_card,
{$IFDEF FFLIUCHENG}u_ch_check_shen, u_ch_check_check,{$ENDIF}
u_ch_balance_pay, u_sys_employee,
u_info_tell_manage,
u_crm_client,
{$IFDEF KHGUANLI}u_code_price,u_rp_crm_credit,u_code_customstatu,U_sys_crm_params,u_crm_client_report, u_crm_client_sales,u_code_client_parameter,{$ENDIF} u_sys_company, u_code_print_head,
u_sys_bank, u_rp_no_total,
{$IFDEF QFFZZONGHE}
u_rp_ch_clienttotal,
{$ENDIF}
U_rp_fee_outamt, u_rp_zl_total,
{$IFDEF QFZOUSHI}
u_rp_no_zou,
{$ENDIF}
{$IFDEF SFLIUCHENG}
u_ch_accept_shen, u_ch_balance_accept_deng, u_ch_balance_accept_hexiao, u_ch_balance_accept_check,
{$ENDIF}
u_ch_balance_accept,
{$IFDEF XSGUANLI}
u_rp_sales_profit, u_rp_sales_profitLcx,u_ch_fee_sea_sales,u_ch_fee_seai_sales, u_rp_sales_profit_lx,u_sys_sale_profitset,
{$ENDIF}
{$IFDEF YWFUHE} u_ch_fee_Recheck_seae, u_ch_fee_Recheck_seai,{$ENDIF}
u_ch_fee_check_seae, u_ch_fee_check_seai,
{$IFDEF ZJFENXI}u_rp_zj_total, u_rp_zj_zou,{$ENDIF} u_sys_module, u_chrat_message,
{$IFDEF DLFENZHANG}u_rp_rp_sea_daili,u_code_fee_project_cargomainfest,u_code_fee_project_agent,u_rp_fenzhang,{$ENDIF}
u_rp_dui_accept,
{$IFDEF TBQITA}
u_rp_zou_seae, u_rp_zou_seai, u_rp_fen_seae, u_rp_fen_seai,u_rp_fen_seae_ctn,
{$ENDIF}
u_rp_dui_pay,
u_rp_yunjia_seae, u_rp_yunfeibl_seae,
{$IFDEF WLZHANG}
u_rp_ch_genleg,u_ch_genleg,AccCloseOffu, AccCloseOffBacku,u_rp_wl_total,
{$ENDIF}
u_info_bunk, {$IFDEF QFYDFENXI}u_rp_no_monthtotal,{$ENDIF} u_op_seae_close, u_op_seai_close,
u_sys_dxbar_sort,
u_op_seae_unlock, u_sys_printset, u_rp_hl_histry, u_sys_noset,
u_code_port_load, u_crm_client_special,
{$IFDEF DCKA}
u_op_seae_weituo,u_op_seae_order,
{$ENDIF}
u_sys_about, u_op_seae_tdqr, u_code_zlset,
u_code_edi_port, u_rp_ch_balance_detail, u_code_airtrade,
u_op_seae_fangdan, u_rp_pin_total, u_code_letter, u_ch_invoice_hexiao,
U_op_state_view, u_op_seae_web_order, u_op_seai_order,
u_op_seai_fuhui, u_op_truck, u_code_truck_client,
u_code_truck_changzhan, u_op_seae_list, u_code_stlmode, u_ch_cust_befbal,
u_code_fee_unit, u_op_mblsign, u_op_mblsignin, u_op_seae_teshufandan,
u_op_seae_teshushen, u_op_seae_teshufz, u_op_seae_teshusales,
u_op_seae_edi_data, u_rp_op_ttl, u_rp_dui_month, crm_OnLineBooking,
U_SetCompany, U_SelectLinkMan,U_BookingLog,U_SelectLinkCompany,
u_rp_rp_apply, u_rp_cx_total, u_cust_mailproject, u_rp_mail_log,
u_rp_cdfxg_total, u_op_seae_sign, u_op_seae_signqtdlist,
u_op_seae_signqtdnotify, u_op_seae_invoice_sign,u_op_seae_paper_manage,
u_op_seae_paper_print, u_op_seae_paper_print_submitinfo,
u_ch_invoice_bankdata,u_rp_tai_tasks,u_op_tftp,u_rp_wy,
u_op_seae_TaskContrast, u_sys_progress,
u_MyThread,
u_ch_fee_edi, u_rp_tai_total_op, u_code_dggoods, u_code_stowgoods,
u_code_bangoods, u_op_seae_dg, u_code_fee_project_auto, u_rp_dg_except,
u_rp_cdstl, u_cw_pingzheng_jk, u_ch_zlsales, u_op_seae_order_edit,
u_op_seae_web_order_edit, u_op_web_cust_audit, u_rp_bssource_total,
u_op_seae_web_si_edit, u_info_shareDoc, u_op_seae_ysbg, u_ch_invoice_jk,
u_code_goods_inv, u_code_trade_msc, u_op_seae_mscbc, u_code_dgunno,
u_code_package_dg, u_rp_nolx_ttl, u_rp_zl_total2, u_op_seae_web_dg_import,
u_cw_pingzheng_u8, u_cw_pingzheng_jku8, u_rp_dui_auto;
{$R *.dfm}
///
This is a email saying weeeeee
黑体字'; htmlbody.ContentType := 'text/html'; htmlbody.ParentPart := 0; IdMsg.ContentType := 'multipart/related; type="multipart/alternative"'; //IdMsg.ContentType :='text/html'; IdMsg.CharSet:='iso-8859-1'; IdMsg.Encoding:=meMIME; // IdMsg.body:=null;//mailSendTbl.fieldbyname('邮件内容').AsString; lognr:='VC挂单,具体内容请查阅邮件 '; end else begin // textbody := TIdText.Create(IdMsg.MessageParts, nil); // textbody.Body.Text := 'plain text part'; // textbody.ContentType := 'text/plain'; //textbody.ParentPart := 0; //textbody.Body.Text:= mailSendTbl.fieldbyname('邮件内容').AsString; Body.Text:=mailSendTbl.fieldbyname('邮件内容').AsString; lognr :=Body.Text; end; From.address :=MailAddress; Recipients.EMailAddresses :=mailSendTbl.FieldByName('收件人').AsString; Subject:=mailSendTbl.FieldByName('邮件主题').AsString; strfile:= mailSend.FieldByName('附件名称').AsString; //----------------- if(FileExists(strfile)) then begin idAtta:= TIdAttachmentFile.Create(MessageParts,strfile); idAtta.ContentType:='application/octet-stream'; idAtta.ContentDisposition:='attachment'; idAtta.ContentTransfer:='base64'; idAtta.FileName:=ExtractFileName(strfile); end; end; if not SMTP1.Connected then begin Sleep(1000); SMTP1.Connect; end; SMTP1.Send(IdMsg); // 长度判断 Insert_mail_Log(bsno,mailtype,mailSendTbl.FieldByName('收件人').AsString,mailSendTbl.FieldByName('邮件主题').AsString,lognr,mailSend.FieldByName('附件名称').AsString); finally SMTP1.Disconnect; end; try finally str_memo.Free; SMTP1.Free; IdMsg.Free; end; end; finally frm_sys_progress.close; frm_sys_progress:=nil; end; end; ///This is a email saying weeeeee
黑体字'; htmlbody.ContentType := 'text/html'; htmlbody.ParentPart := 0; IdMsg.ContentType := 'multipart/related; type="multipart/alternative"'; //IdMsg.ContentType :='text/html'; IdMsg.CharSet:='iso-8859-1'; IdMsg.Encoding:=meMIME; // IdMsg.body:=null;//mailSendTbl.fieldbyname('邮件内容').AsString; lognr:='挂单,具体内容请查阅邮件 '; end else begin Body.Text:=mailSendTbl.fieldbyname('邮件内容').AsString; lognr :=Body.Text; end; From.address :=MailAddress; Recipients.EMailAddresses :=mailSendTbl.FieldByName('收件人').AsString; // Recipients.EMailAddresses :='dev001@dongshengsoft.com'; // Subject:='ss'; Subject:=StringReplace(StringReplace(mailSendTbl.fieldbyname('邮件主题').AsString, #10, '', [rfReplaceAll]),#10,'', [rfReplaceAll]); strfile:= mailSendTbl.FieldByName('附件名称').AsString; bsno:= mailSendTbl.FieldByName('编号').AsString; mailtype:= mailSendTbl.FieldByName('单据类型').AsString; //----------------- if(FileExists(strfile)) then begin idAtta:= TIdAttachmentFile.Create(MessageParts,strfile); idAtta.ContentType:='application/octet-stream'; idAtta.ContentDisposition:='attachment'; idAtta.ContentTransfer:='base64'; idAtta.FileName:=ExtractFileName(strfile); end; end; if not SMTP1.Connected then begin Sleep(1000); SMTP1.Connect; end; SMTP1.Send(IdMsg); // 长度判断 Insert_mail_Log(bsno,mailtype,mailSendTbl.FieldByName('收件人').AsString,mailSendTbl.FieldByName('邮件主题').AsString,lognr,mailSend.FieldByName('附件名称').AsString); Result:=True; finally SMTP1.Disconnect; end; try finally str_memo.Free; SMTP1.Free; IdMsg.Free; end; end; finally // frm_sys_progress.close; // frm_sys_progress:=nil; end; end; function Tfrm_tree_main.checkGuadanTimes(str:string ):Boolean; begin result:=false; if(str='') or (pos('换签',str)<1 ) and (pos('挂单',str)<1 ) then begin result:=True; Exit; end; { if (pos('非换签:',Str)<1) and (Pos('换签:二',Str)>0) then //换签2次挂单:允许 begin result:=True; Exit; end; if(Pos('换签:',Str)>0) then //两次及以上的挂单不允许 result:=false; } end; procedure Tfrm_tree_main.mni3_swPENDINGClick(Sender: TObject); begin // mni_tskor_N1OkClick(Sender); end; procedure Tfrm_tree_main.btn5AlertOkClick(Sender: TObject); begin // taskFinish('预警提醒') end; procedure Tfrm_tree_main.taskFinish(Ofiletype:string ); var isok:Boolean; sql,strtmp:string; mainno,bsno,filename,filetype,optype:string; i:Integer; begin if( Application.MessageBox(PChar('您确实要确认并完成'+Ofiletype+'任务吗?'),'信息提示',MB_YESNO+ MB_ICONQUESTION)<>IDYES) then Exit; if (Ofiletype='') then exit; for i:=0 to dxdbgrd1_task.SelectedCount-1 do begin qry1task.GotoBookmark(pointer(dxdbgrd1_task.selectedrows[i])); strtmp:=qry1task.fieldbyname('任务类型').AsString; if (Ofiletype=strtmp) then begin optype:='完成'; isok:=true; //挂单 mainno:=qry1task.fieldbyname('提单号').AsString; bsno:=qry1task.fieldbyname('SEA编号').AsString; filename:=qry1task.fieldbyname('电子档案路径').AsString; if strtmp ='ORIGINAL' then begin filetype:='船公司挂单'; //换签可以2次挂单,两次以上不可以;非换签两次及以上不可以 if(checkGuadanTimes(qry1task.fieldbyname('备注').AsString)=False) then begin Continue; end; isok:= Guadan(mainNo,bsno, filetype,filename); end else if strtmp ='VC' then begin filetype:='VC挂单'; end; try qry1task.Connection.BeginTrans; if(isok=true) then begin qry1task.Edit; qry1task.FieldByName('完成时间').AsDateTime:=Now; qry1task.FieldByName('是否完成').AsInteger:=1; qry1task.FieldByName('任务状态').AsString:=optype; qry1task.FieldByName('操作人').AsString:=employee; qry1task.Post; sql:='INSERT INTO t_op_task_state ( [任务编号],[任务状态],[操作人])VALUES (''%s'' ,''%s'' ,''%s'')'; sql:=Format(sql,[qry1task.fieldbyname('任务编号').asstring,optype,employee] ); qry1task.Connection.Execute(sql); qry1task.Connection.CommitTrans; end else begin qry1task.Connection.RollbackTrans; end; except on e:Exception do begin qry1task.Connection.RollbackTrans; Application.MessageBox(PChar('处理发生错误: '+E.Message),'信息提示'); end; end; end; end; qry1task.requery(); end; procedure Tfrm_tree_main.MyOnTerminate(Sender: TObject); begin { retVal := (Sender as TMyThread).MyFunRetVal; if retVal then ShowMessage('异步转发邮件成功') else ShowMessage('异步转发邮件存在失败'); } qry1task.Requery(); //ShowMessage( '邮件转发完成') ; end; procedure Tfrm_tree_main.mniN4_tskAss_rematchClick(Sender: TObject); begin //重新匹配任务 btn4_ReAssignTaskClick(btn4_ReAssignTask); end; ///