1358 lines
39 KiB
ObjectPascal
1358 lines
39 KiB
ObjectPascal
|
|
unit U_GetDllForm;
|
|||
|
|
|
|||
|
|
interface
|
|||
|
|
|
|||
|
|
uses
|
|||
|
|
Windows, Messages, forms, OleCtnrs, DateUtils, SysUtils, ADODB, IniFiles,
|
|||
|
|
dxCore, ActiveX;
|
|||
|
|
|
|||
|
|
function GetDllForm(App: Tapplication; FormH: hwnd; FormID: integer; Language: integer; WinStyle: integer; GCode: Pchar; GName: Pchar; DataBase: Pchar; Title: PChar; Parameters1: PChar; Parameters2: PChar; Parameters3: PChar; Parameters4: PChar; Parameters5: PChar; Parameters6: PChar; Parameters7: PChar; Parameters8: PChar; Parameters9: PChar; Parameters10: PChar; DataBaseStr: PChar): hwnd; export; stdcall;
|
|||
|
|
|
|||
|
|
function ConnData(): Boolean;
|
|||
|
|
|
|||
|
|
function GetsysParam(muserId: pchar; fparam1: pchar): Boolean;
|
|||
|
|
|
|||
|
|
implementation
|
|||
|
|
|
|||
|
|
uses
|
|||
|
|
U_DataLink, U_iniParam, U_ProductOrderList, U_ProductOrderLBNameSet,
|
|||
|
|
U_DJBRKList, U_DJBCKList, U_DJBKKList, U_DJBKCList, U_MarkingInspection,
|
|||
|
|
U_JYOrderCDList, U_OrderProgress, U_JYOrderCDListGH, U_TableInspection,
|
|||
|
|
U_YCLView, U_JYOrderCDCPList, U_JYCYList, U_DJBKKListHD, U_BuDongKCList,U_KKKWCXList,
|
|||
|
|
U_ZDZGList, U_JYDayList, U_JYCXList,U_ProductSS,U_ProductSSGJB,U_ProductFYSS;
|
|||
|
|
|
|||
|
|
/////////////////////////////////////////////////////////////////
|
|||
|
|
// <20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>:ȡDll<6C>еô<D0B5><C3B4><EFBFBD> //
|
|||
|
|
// <20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>App>><3E><><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD> //
|
|||
|
|
// FormH>><3E><><EFBFBD>ô<EFBFBD><C3B4>ھ<EFBFBD><DABE><EFBFBD> <20><> //
|
|||
|
|
// FormID>><3E><><EFBFBD>ں<EFBFBD>; //
|
|||
|
|
// Language>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>; //
|
|||
|
|
// WinStyle>><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD> //
|
|||
|
|
/////////////////////////////////////////////////////////////////
|
|||
|
|
var
|
|||
|
|
frmProductOrderListLR, frmProductOrderListGL, frmProductOrderListCX, frmProductOrderListBZ: TfrmProductOrderList;
|
|||
|
|
frmProductSSGL, frmProductSSCX : TfrmProductSS;//<2F><>ˮ
|
|||
|
|
frmProductFYSSGL, frmProductFYSSCX : TfrmProductFYSS;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ
|
|||
|
|
frmProductOrderLBNameSetDQX, frmProductOrderLBNameSetGQX: TfrmProductOrderLBNameSet;
|
|||
|
|
frmDJBRKListLR, frmDJBRKListGL, frmDJBRKListCX: TfrmDJBRKList; //<2F><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>
|
|||
|
|
frmDJBCKListLR, frmDJBCKListGL, frmDJBCKListCX: TfrmDJBCKList; //<2F><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>
|
|||
|
|
frmDJBKCList: TfrmDJBKCList; //<2F><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>
|
|||
|
|
frmDJBKKListLR, frmDJBKKListGL, frmDJBKKListCX, frmDJBKKListGQX: TfrmDJBKKList; //<2F><><EFBFBD><EFBFBD>
|
|||
|
|
frmJYOrderCDListDJG, frmJYOrderCDListCX, frmJYOrderCDListGL, frmJYOrderCDListCPGL, frmJYOrderCDListSHGL, frmJYOrderCDListHHGL, frmJYOrderCDListCFWSJ: TfrmJYOrderCDList;
|
|||
|
|
frmJYOrderCDListGH: TfrmJYOrderCDListGH; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
|
|||
|
|
frmJYOrderCDListCPCX: TfrmJYOrderCDCPList; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD>״<EFBFBD>Ʒ
|
|||
|
|
frmBuDongKCListLR, frmBuDongKCListCX: TfrmBuDongKCList; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|
|||
|
|
function GetDllForm(App: Tapplication; FormH: hwnd; FormID: integer; Language: integer; WinStyle: integer; GCode: Pchar; GName: Pchar; DataBase: Pchar; Title: PChar; Parameters1: PChar; Parameters2: PChar; Parameters3: PChar; Parameters4: PChar; Parameters5: PChar; Parameters6: PChar; Parameters7: PChar; Parameters8: PChar; Parameters9: PChar; Parameters10: PChar; DataBaseStr: PChar): hwnd;
|
|||
|
|
var
|
|||
|
|
i: Integer;
|
|||
|
|
bFound: Boolean;
|
|||
|
|
mnewHandle: hwnd;
|
|||
|
|
mstyle: TFormStyle; // 0:<3A>Ӵ<EFBFBD><D3B4><EFBFBD>; 1<><31><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>
|
|||
|
|
mstate: TWindowState;
|
|||
|
|
mborderstyle: TFormBorderStyle;
|
|||
|
|
begin
|
|||
|
|
mnewHandle := 0;
|
|||
|
|
DName := PChar(GName);
|
|||
|
|
DCode := PChar(GCode);
|
|||
|
|
DdataBase := DataBase;
|
|||
|
|
DTitCaption := Title;
|
|||
|
|
DParameters1 := Parameters1;
|
|||
|
|
DParameters2 := Parameters2;
|
|||
|
|
DParameters3 := Parameters3;
|
|||
|
|
DParameters4 := Parameters4;
|
|||
|
|
DParameters5 := Parameters5;
|
|||
|
|
DParameters6 := Parameters6;
|
|||
|
|
DParameters7 := Parameters7;
|
|||
|
|
DParameters8 := Parameters8;
|
|||
|
|
DParameters9 := Parameters9;
|
|||
|
|
DParameters10 := Parameters10;
|
|||
|
|
|
|||
|
|
MainApplication := App;
|
|||
|
|
DCurHandle := FormH;
|
|||
|
|
IsDelphiLanguage := Language;
|
|||
|
|
|
|||
|
|
Application := TApplication(App);
|
|||
|
|
DCurHandle := 0;
|
|||
|
|
|
|||
|
|
|
|||
|
|
//<2F><>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
|||
|
|
SetLength(server, 255);
|
|||
|
|
SetLength(dtbase, 255);
|
|||
|
|
SetLength(user, 255);
|
|||
|
|
SetLength(pswd, 255);
|
|||
|
|
|
|||
|
|
if trim(DataBaseStr) = '' then
|
|||
|
|
begin
|
|||
|
|
|
|||
|
|
server := '139.196.189.214,7781';
|
|||
|
|
// server := '.';
|
|||
|
|
dtbase := 'yongjindata'; //KHEWM
|
|||
|
|
// dtbase := 'yifudata';
|
|||
|
|
user := 'yifusa';
|
|||
|
|
// user := 'sa';
|
|||
|
|
pswd := 'rightsoft@123';
|
|||
|
|
// pswd := 'rightsoft';
|
|||
|
|
DConString := 'Provider=SQLOLEDB.1;Password=' + pswd + ';Persist Security Info=True;User ID=' + user + ';Initial Catalog=' + dtbase + ';Data Source=' + server;
|
|||
|
|
|
|||
|
|
// DName := '';
|
|||
|
|
// DParameters1:='<27><>Ȩ<EFBFBD><C8A8>';
|
|||
|
|
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
begin
|
|||
|
|
DConString := DataBaseStr;
|
|||
|
|
end;
|
|||
|
|
if not ConnData() then
|
|||
|
|
begin
|
|||
|
|
result := 0;
|
|||
|
|
exit;
|
|||
|
|
end;
|
|||
|
|
if IsINIFile() then
|
|||
|
|
ReadINIFile()
|
|||
|
|
else
|
|||
|
|
WriteINIFile;
|
|||
|
|
|
|||
|
|
GetsysParam('', '');
|
|||
|
|
|
|||
|
|
// <20><><EFBFBD>崰<EFBFBD><E5B4B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>״̬
|
|||
|
|
if WinStyle = 0 then
|
|||
|
|
begin
|
|||
|
|
mstyle := fsMDIChild;
|
|||
|
|
mstate := wsMaximized;
|
|||
|
|
mborderstyle := bsSizeable;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
begin
|
|||
|
|
mstyle := fsNormal;
|
|||
|
|
mstate := wsNormal;
|
|||
|
|
mborderstyle := bsSizeable;
|
|||
|
|
end;
|
|||
|
|
/////////////////////
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD>鴰<EFBFBD><E9B4B0>
|
|||
|
|
case FormID of
|
|||
|
|
921: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmOrderProgress = nil then
|
|||
|
|
begin
|
|||
|
|
frmOrderProgress := TfrmOrderProgress.Create(application.MainForm);
|
|||
|
|
with frmOrderProgress do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmOrderProgress.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmOrderProgress.Handle;
|
|||
|
|
end;
|
|||
|
|
922: //ÿ<>ձز<D5B1>ϵͳ
|
|||
|
|
begin
|
|||
|
|
if frmJYDayList = nil then
|
|||
|
|
begin
|
|||
|
|
frmJYDayList := TfrmJYDayList.Create(application.MainForm);
|
|||
|
|
with frmJYDayList do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYDayList.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYDayList.Handle;
|
|||
|
|
end;
|
|||
|
|
999: //Ʒ<><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmYCLView = nil then
|
|||
|
|
begin
|
|||
|
|
frmYCLView := TfrmYCLView.Create(application.MainForm);
|
|||
|
|
with frmYCLView do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmYCLView.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmYCLView.Handle;
|
|||
|
|
end;
|
|||
|
|
998: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmBuDongKCListLR.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmBuDongKCListLR := TfrmBuDongKCList.Create(application.MainForm);
|
|||
|
|
with frmBuDongKCListLR do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '¼<><C2BC>';
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmBuDongKCListLR.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmBuDongKCListLR.Handle;
|
|||
|
|
end;
|
|||
|
|
997: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmBuDongKCListCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmBuDongKCListCX := TfrmBuDongKCList.Create(application.MainForm);
|
|||
|
|
with frmBuDongKCListCX do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmBuDongKCListCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmBuDongKCListCX.Handle;
|
|||
|
|
end;
|
|||
|
|
101: //<2F><>װָʾ<D6B8><CABE>¼<EFBFBD><C2BC>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>װָʾ<D6B8><CABE>¼<EFBFBD><C2BC>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductOrderListLR.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductOrderListLR := TfrmProductOrderList.Create(application.MainForm);
|
|||
|
|
with frmProductOrderListLR do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '¼<><C2BC>';
|
|||
|
|
Title := '<27><>װָʾ<D6B8><CABE>¼<EFBFBD><C2BC>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductOrderListLR.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductOrderListLR.Handle;
|
|||
|
|
end;
|
|||
|
|
102: //<2F><>װָʾ<D6B8><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>װָʾ<D6B8><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductOrderListGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductOrderListGL := TfrmProductOrderList.Create(application.MainForm);
|
|||
|
|
with frmProductOrderListGL do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '<27><>Ȩ<EFBFBD><C8A8>';
|
|||
|
|
Title := '<27><>װָʾ<D6B8><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductOrderListGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductOrderListGL.Handle;
|
|||
|
|
end;
|
|||
|
|
103: //<2F><>װָʾ<D6B8><CABE><EFBFBD><EFBFBD>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>װָʾ<D6B8><CABE><EFBFBD><EFBFBD>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductOrderListCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductOrderListCX := TfrmProductOrderList.Create(application.MainForm);
|
|||
|
|
with frmProductOrderListCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><>װָʾ<D6B8><CABE><EFBFBD><EFBFBD>ѯ';
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductOrderListCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductOrderListCX.Handle;
|
|||
|
|
end;
|
|||
|
|
2114: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductSSGJB.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductSSGJB := TfrmProductSSGJB.Create(application.MainForm);
|
|||
|
|
with frmProductSSGJB do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD>';
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductSSGJB.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductSSGJB.Handle;
|
|||
|
|
end;
|
|||
|
|
2111: //<2F><>ˮ¼<CBAE><C2BC>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>ˮ¼<CBAE><C2BC>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductSS.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductSS := TfrmProductSS.Create(application.MainForm);
|
|||
|
|
with frmProductSS do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '¼<><C2BC>';
|
|||
|
|
Title := '<27><>ˮ¼<CBAE><C2BC>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductSS.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductSS.Handle;
|
|||
|
|
end;
|
|||
|
|
2112: //<2F><>ˮ<EFBFBD><CBAE><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>ˮ<EFBFBD><CBAE><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductSSGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductSSGL := TfrmProductSS.Create(application.MainForm);
|
|||
|
|
with frmProductSSGL do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '<27><>Ȩ<EFBFBD><C8A8>';
|
|||
|
|
Title := '<27><>ˮ<EFBFBD><CBAE><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductSSGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductSSGL.Handle;
|
|||
|
|
end;
|
|||
|
|
2113: //<2F><>ˮ<EFBFBD><CBAE>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>ˮ<EFBFBD><CBAE>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductSSCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductSSCX := TfrmProductSS.Create(application.MainForm);
|
|||
|
|
with frmProductSSCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><>ˮ<EFBFBD><CBAE>ѯ';
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductSSCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductSSCX.Handle;
|
|||
|
|
end;
|
|||
|
|
2211: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ¼<CBAE><C2BC>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ¼<CBAE><C2BC>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductFYSS.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductFYSS := TFRMProductFYSS.Create(application.MainForm);
|
|||
|
|
with frmProductFYSS do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '¼<><C2BC>';
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ¼<CBAE><C2BC>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductFYSS.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductFYSS.Handle;
|
|||
|
|
end;
|
|||
|
|
2212: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductFYSSGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductFYSSGL := TFRMProductFYSS.Create(application.MainForm);
|
|||
|
|
with frmProductFYSSGL do
|
|||
|
|
begin
|
|||
|
|
canshu1 := '<27><>Ȩ<EFBFBD><C8A8>';
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductFYSSGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductFYSSGL.Handle;
|
|||
|
|
end;
|
|||
|
|
2213: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductFYSSCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductFYSSCX := TFRMProductFYSS.Create(application.MainForm);
|
|||
|
|
with frmProductFYSSCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˮ<EFBFBD><CBAE>ѯ';
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductFYSSCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductFYSSCX.Handle;
|
|||
|
|
end;
|
|||
|
|
104: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductOrderListBZ.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductOrderListBZ := TfrmProductOrderList.Create(application.MainForm);
|
|||
|
|
with frmProductOrderListBZ do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ';
|
|||
|
|
canshu1 := '<27><>װ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductOrderListBZ.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductOrderListBZ.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
121: //<2F><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductOrderLBNameSetDQX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductOrderLBNameSetDQX := TfrmProductOrderLBNameSet.Create(application.MainForm);
|
|||
|
|
with frmProductOrderLBNameSetDQX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><>Ȩ<EFBFBD><C8A8>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductOrderLBNameSetDQX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductOrderLBNameSetDQX.Handle;
|
|||
|
|
end;
|
|||
|
|
122: //<2F><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>(<28><>Ȩ<EFBFBD><C8A8>)
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>(<28><>Ȩ<EFBFBD><C8A8>)' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmProductOrderLBNameSetGQX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmProductOrderLBNameSetGQX := TfrmProductOrderLBNameSet.Create(application.MainForm);
|
|||
|
|
with frmProductOrderLBNameSetGQX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD>ǩ<EFBFBD><C7A9><EFBFBD><EFBFBD>(<28><>Ȩ<EFBFBD><C8A8>)';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmProductOrderLBNameSetGQX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmProductOrderLBNameSetGQX.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
211: //<2F><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBKKListLR.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBKKListLR := TfrmDJBKKList.Create(application.MainForm);
|
|||
|
|
with frmDJBKKListLR do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>';
|
|||
|
|
canshu1 := '¼<><C2BC>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBKKListLR.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBKKListLR.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
212: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBKKListGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBKKListGL := TfrmDJBKKList.Create(application.MainForm);
|
|||
|
|
with frmDJBKKListGL do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBKKListGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBKKListGL.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
213: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBKKListCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBKKListCX := TfrmDJBKKList.Create(application.MainForm);
|
|||
|
|
with frmDJBKKListCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ';
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBKKListCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBKKListCX.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
214: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>Ȩ<EFBFBD><C8A8>)
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>Ȩ<EFBFBD><C8A8>)' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBKKListGQX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBKKListGQX := TfrmDJBKKList.Create(application.MainForm);
|
|||
|
|
with frmDJBKKListGQX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>Ȩ<EFBFBD><C8A8>)';
|
|||
|
|
canshu1 := '<27><>Ȩ<EFBFBD><C8A8>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBKKListGQX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBKKListGQX.Handle;
|
|||
|
|
end;
|
|||
|
|
2141: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>ѯ
|
|||
|
|
begin
|
|||
|
|
if frmKKKWCXList = nil then
|
|||
|
|
begin
|
|||
|
|
frmKKKWCXList := TfrmKKKWCXList.Create(application.MainForm);
|
|||
|
|
with frmKKKWCXList do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmKKKWCXList.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmKKKWCXList.Handle;
|
|||
|
|
end;
|
|||
|
|
215: //<2F><><EFBFBD><EFBFBD><EFBFBD>˶<EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmDJBKKListHD = nil then
|
|||
|
|
begin
|
|||
|
|
frmDJBKKListHD := TfrmDJBKKListHD.Create(application.MainForm);
|
|||
|
|
with frmDJBKKListHD do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBKKListHD.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBKKListHD.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
231: //<2F><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBCKListLR.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBCKListLR := TfrmDJBCKList.Create(application.MainForm);
|
|||
|
|
with frmDJBCKListLR do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBCKListLR.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBCKListLR.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
232: //<2F><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBCKListCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBCKListCX := TfrmDJBCKList.Create(application.MainForm);
|
|||
|
|
with frmDJBCKListCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ';
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBCKListCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBCKListCX.Handle;
|
|||
|
|
end;
|
|||
|
|
241: //<2F><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmDJBKCList.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmDJBKCList := TfrmDJBKCList.Create(application.MainForm);
|
|||
|
|
with frmDJBKCList do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD>첼<EFBFBD><ECB2BC><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmDJBKCList.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmDJBKCList.Handle;
|
|||
|
|
end;
|
|||
|
|
311: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmMarkingInspection = nil then
|
|||
|
|
begin
|
|||
|
|
frmMarkingInspection := TfrmMarkingInspection.Create(application.MainForm);
|
|||
|
|
with frmMarkingInspection do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmMarkingInspection.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmMarkingInspection.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
312: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmTableInspection = nil then
|
|||
|
|
begin
|
|||
|
|
frmTableInspection := TfrmTableInspection.Create(application.MainForm);
|
|||
|
|
with frmTableInspection do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmTableInspection.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmTableInspection.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
411: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListGL := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListGL do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListGL.Handle;
|
|||
|
|
end;
|
|||
|
|
418: //<2F><><EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD><CBBC><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListDJG.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListDJG := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListDJG do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListDJG.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListDJG.Handle;
|
|||
|
|
end;
|
|||
|
|
412: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListCX := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѯ';
|
|||
|
|
canshu1 := '<27><>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListCX.Handle;
|
|||
|
|
end;
|
|||
|
|
413: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListCPGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListCPGL := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListCPGL do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListCPGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListCPGL.Handle;
|
|||
|
|
end;
|
|||
|
|
414: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListSHGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListSHGL := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListSHGL do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListSHGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListSHGL.Handle;
|
|||
|
|
end;
|
|||
|
|
416: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListHHGL.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListHHGL := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListHHGL do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListHHGL.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListHHGL.Handle;
|
|||
|
|
end;
|
|||
|
|
417: //<2F><>Ʒ<EFBFBD><C6B7>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>Ʒ<EFBFBD><C6B7>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListCPCX.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListCPCX := TfrmJYOrderCDCPList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListCPCX do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><>Ʒ<EFBFBD><C6B7>ѯ';
|
|||
|
|
canshu1 := '<27><>Ʒ<EFBFBD><C6B7>ѯ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListCPCX.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListCPCX.Handle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
419: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7><EFBFBD>ݲ<EFBFBD>ѯ
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7><EFBFBD>ݲ<EFBFBD>ѯ' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListCFWSJ.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListCFWSJ := TfrmJYOrderCDList.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListCFWSJ do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Χ<EFBFBD><CEA7><EFBFBD>ݲ<EFBFBD>ѯ';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD>Χ';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListCFWSJ.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListCFWSJ.Handle;
|
|||
|
|
end;
|
|||
|
|
421: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
bFound := FALSE;
|
|||
|
|
for i := (App.MainForm.MDIChildCount - 1) downto 0 do
|
|||
|
|
begin
|
|||
|
|
if App.MainForm.MDIChildren[i].Caption = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>' then
|
|||
|
|
begin
|
|||
|
|
BringWindowToTop(frmJYOrderCDListGH.Handle);
|
|||
|
|
bFound := TRUE;
|
|||
|
|
Break;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
if not bFound then
|
|||
|
|
begin
|
|||
|
|
frmJYOrderCDListGH := TfrmJYOrderCDListGH.Create(application.MainForm);
|
|||
|
|
with frmJYOrderCDListGH do
|
|||
|
|
begin
|
|||
|
|
Title := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>';
|
|||
|
|
canshu1 := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>';
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYOrderCDListGH.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYOrderCDListGH.Handle;
|
|||
|
|
end;
|
|||
|
|
422: //<2F><><EFBFBD><EFBFBD><EFBFBD>ش<EFBFBD><D8B4><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmJYCYList = nil then
|
|||
|
|
begin
|
|||
|
|
frmJYCYList := TfrmJYCYList.Create(application.MainForm);
|
|||
|
|
with frmJYCYList do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYCYList.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYCYList.Handle;
|
|||
|
|
end;
|
|||
|
|
423: //ת<><D7AA>ת<EFBFBD><EFBFBD>¼<EFBFBD><C2BC>ѯ
|
|||
|
|
begin
|
|||
|
|
if frmZDZGList = nil then
|
|||
|
|
begin
|
|||
|
|
frmZDZGList := TfrmZDZGList.Create(application.MainForm);
|
|||
|
|
with frmZDZGList do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmZDZGList.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmZDZGList.Handle;
|
|||
|
|
end;
|
|||
|
|
425: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
begin
|
|||
|
|
if frmJYCXList = nil then
|
|||
|
|
begin
|
|||
|
|
frmJYCXList := TfrmJYCXList.Create(application.MainForm);
|
|||
|
|
with frmJYCXList do
|
|||
|
|
begin
|
|||
|
|
caption := Trim(Title);
|
|||
|
|
FormStyle := mstyle;
|
|||
|
|
windowState := mstate;
|
|||
|
|
BorderStyle := mborderstyle;
|
|||
|
|
//show;
|
|||
|
|
end;
|
|||
|
|
end
|
|||
|
|
else
|
|||
|
|
frmJYCXList.BringToFront;
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
|
mnewHandle := frmJYCXList.Handle;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
Result := mnewHandle;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
function GetsysParam(muserId: pchar; fparam1: pchar): Boolean;
|
|||
|
|
begin
|
|||
|
|
result := true;
|
|||
|
|
//////////////////////////////
|
|||
|
|
shortDateFormat := 'yyyy-MM-dd';
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
with DataLink_DyeingFinishingPlan.AdoDataLink do
|
|||
|
|
begin
|
|||
|
|
close;
|
|||
|
|
sql.Clear;
|
|||
|
|
sql.Add('select getDate()as dt');
|
|||
|
|
open;
|
|||
|
|
DServerDate := fieldByName('dt').AsDatetime;
|
|||
|
|
end;
|
|||
|
|
result := true;
|
|||
|
|
end;
|
|||
|
|
//===========================================================
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD>ӳ<EFBFBD>
|
|||
|
|
//===========================================================
|
|||
|
|
|
|||
|
|
function ConnData(): Boolean;
|
|||
|
|
var
|
|||
|
|
IniFile: TIniFile;
|
|||
|
|
begin
|
|||
|
|
try
|
|||
|
|
IniFile := TIniFile.Create(ExtractFilePath(Application.ExeName) + 'SYSTEMSET.INI');
|
|||
|
|
PicSvr := IniFile.ReadString('SERVER', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ', '127.0.0.1');
|
|||
|
|
UserDataFlag := IniFile.ReadString('SERVER', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>', '-1');
|
|||
|
|
finally
|
|||
|
|
IniFile.Free;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
if not Assigned(DataLink_DyeingFinishingPlan) then
|
|||
|
|
DataLink_DyeingFinishingPlan := TDataLink_DyeingFinishingPlan.Create(Application);
|
|||
|
|
try
|
|||
|
|
with DataLink_DyeingFinishingPlan.ADOLink do
|
|||
|
|
begin
|
|||
|
|
//if not Connected then
|
|||
|
|
begin
|
|||
|
|
Connected := false;
|
|||
|
|
ConnectionString := DConString;
|
|||
|
|
LoginPrompt := false;
|
|||
|
|
Connected := true;
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
Result := true;
|
|||
|
|
except
|
|||
|
|
Result := false;
|
|||
|
|
application.MessageBox('<27><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD>ܣ<EFBFBD>', '<27><><EFBFBD><EFBFBD>', mb_Ok + MB_ICONERROR);
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
initialization
|
|||
|
|
CoInitialize(nil);
|
|||
|
|
dxUnitsLoader.Initialize;
|
|||
|
|
|
|||
|
|
|
|||
|
|
finalization
|
|||
|
|
DataLink_DyeingFinishingPlan.Free;
|
|||
|
|
application := NewDllApp;
|
|||
|
|
dxUnitsLoader.Finalize;
|
|||
|
|
|
|||
|
|
end.
|
|||
|
|
|