1616 lines
46 KiB
ObjectPascal
1616 lines
46 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;
|
||
|
||
implementation
|
||
|
||
uses
|
||
U_DataLink, U_Fun, U_iniParam, U_MJManageNewFDNew, U_ProductOrderList,
|
||
U_ProductOrderAnPai, U_BangAdd, U_MJEdit, U_JYOrderCDOne, U_JYOrderCDMore,
|
||
U_CKProductBCPInList, U_CKProductBCPOutList, U_BanCpHCSaoM,
|
||
U_CKProductBCPHCList, U_CKProductBCPKCList, U_ProductOrderNewList_JD,
|
||
U_CKProductBCPKCHZList, U_CpRkSaoMNew, U_ClothContractList,
|
||
U_ClothContractListDH, U_ClothContractListLL, U_ClothContractKCList,
|
||
U_ContractList, U_ProductOrderNewList, U_ClothContractListWJG,
|
||
U_ClothPDInfoList, U_CP_CRC, U_OrderJDList, U_ProductOrderAnPaiGQX,
|
||
U_ClothHCList, U_ProductOrder_Ph, U_ClothContractList_CG,
|
||
U_ClothContractList_Tp, U_ClothContractList_Help, U_ClothContractList_JG,
|
||
U_CKPHKCList, U_HCList, U_ProductOrder_Ph10, U_CrkAccount,
|
||
U_CKProductBCPInList_Other, U_CKProductBCPOutList_other,
|
||
U_ProductOrder_Ph_other, U_CKProductBCPKCList_other,
|
||
U_CKProductBCPKCHZList_other, U_CrkAccount_other, U_KCRLLTZ,
|
||
U_MJManageNewFDNew_other, U_JYOrderCDOne_Other, U_xslist_other, U_YHList_other,
|
||
U_CKProductBCPKCHZListSUM_other, U_KCRLLTZ_other, U_CKEJK, U_ModulePromptList,
|
||
U_CKSMEdit, U_KH_XS_List, U_CP_XL, U_CP_COL_XL, U_CKProductCPKCHZList_Yj,
|
||
U_CP_COL_XL_ZD, U_CKPDlist, U_ClothContractList_HZ, U_ProductOrderNewList_ZD,
|
||
U_ClothContractList_SJDCK, U_KH_XS_YP_list, U_ProductOrderNewList_BH,
|
||
U_ClothContractList_HZ1, U_ClothContractList_CP, U_ClothContractList_SJD,
|
||
U_ClothContractList_SJDMX, U_ClothContractList_PBKC;
|
||
|
||
/////////////////////////////////////////////////////////////////
|
||
// <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> //
|
||
/////////////////////////////////////////////////////////////////
|
||
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
|
||
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 := GName;
|
||
DCode := 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);
|
||
|
||
|
||
//dtbase:='powertexdata';
|
||
server := '47.100.182.1,7781';
|
||
//server:='.';
|
||
dtbase := 'guihuadata';
|
||
user := 'sa';
|
||
pswd := 'rightsoft@123';
|
||
// pswd:='numlock';
|
||
DConString := 'Provider=SQLOLEDB.1;Password=' + pswd + ';Persist Security Info=True;User ID=' + user + ';Initial Catalog=' + dtbase + ';Data Source=' + server;
|
||
if trim(DataBaseStr) <> '' then
|
||
DConString := DataBaseStr;
|
||
|
||
// DParameters1:='<27><EFBFBD>֯';
|
||
// DParameters1:='<27><>Ȩ<EFBFBD><C8A8>';
|
||
// DataBase:='<27><>Ȩ<EFBFBD><C8A8>';
|
||
// DParameters2:='<27><><EFBFBD><EFBFBD>';
|
||
//DCode:='test';
|
||
//DName:='ADMIN';
|
||
// fDParameters2
|
||
// DParameters1:='<27><>ѯ';
|
||
// database:='';
|
||
if not ConnData() then
|
||
begin
|
||
result := 0;
|
||
exit;
|
||
end;
|
||
if IsINIFile() then
|
||
ReadINIFile()
|
||
else
|
||
WriteINIFile;
|
||
// <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
|
||
0: //<2F><><EFBFBD><EFBFBD>ָʾ<D6B8><CABE>
|
||
begin
|
||
if frmProductOrderNewList <> nil then
|
||
frmProductOrderNewList.Free;
|
||
if frmProductOrderNewList = nil then
|
||
begin
|
||
frmProductOrderNewList := TfrmProductOrderNewList.Create(application.MainForm);
|
||
with frmProductOrderNewList do
|
||
begin
|
||
fsyrName := trim(DataBase);
|
||
fDParameters1 := trim(DParameters1);
|
||
forderType := trim(DParameters2);
|
||
{ fsyrName:='<27><EFBFBD>֯';
|
||
fDParameters1:='';
|
||
forderType:='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'; }
|
||
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderNewList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrderNewList.Handle;
|
||
end;
|
||
-2: //<2F><><EFBFBD><EFBFBD>ָʾ<D6B8><CABE>
|
||
begin
|
||
if frmProductOrderNewList = nil then
|
||
begin
|
||
frmProductOrderNewList := TfrmProductOrderNewList.Create(application.MainForm);
|
||
with frmProductOrderNewList do
|
||
begin
|
||
fDParameters1 := trim(DParameters1);
|
||
fCustomerNoName := '<27>㶫<EFBFBD><E3B6AB><EFBFBD>в<EFBFBD>';
|
||
CustomerNoName.Text := '<27>㶫<EFBFBD><E3B6AB><EFBFBD>в<EFBFBD>';
|
||
CustomerNoName.Enabled := false;
|
||
tchk.Visible := false;
|
||
TBPrint.Visible := false;
|
||
TBPrint1.Visible := false;
|
||
TBPrint2.Visible := false;
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderNewList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrderNewList.Handle;
|
||
end;
|
||
-1: //<2F><><EFBFBD><EFBFBD>ָʾ<D6B8><CABE>
|
||
begin
|
||
if frmProductOrderNewList_JD = nil then
|
||
begin
|
||
frmProductOrderNewList_JD := TfrmProductOrderNewList_JD.Create(application.MainForm);
|
||
with frmProductOrderNewList_JD do
|
||
begin
|
||
fsyrName := trim(DataBase);
|
||
if trim(DParameters1) <> '' then
|
||
begin
|
||
CustomerNoName.Text := trim(DParameters1);
|
||
CustomerNoName.Enabled := fALSE;
|
||
end;
|
||
forderType := trim(DParameters2);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderNewList_JD.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrderNewList_JD.Handle;
|
||
|
||
end;
|
||
-3: //<2F><><EFBFBD><EFBFBD>ָʾ<D6B8><CABE>
|
||
begin
|
||
// if frmProductOrderNewList<>nil then frmProductOrderNewList.Free;
|
||
if frmProductOrderNewList_ZD = nil then
|
||
begin
|
||
frmProductOrderNewList_ZD := TfrmProductOrderNewList_ZD.Create(application.MainForm);
|
||
with frmProductOrderNewList_ZD do
|
||
begin
|
||
fsyrName := trim(DataBase);
|
||
fDParameters1 := trim(DParameters1);
|
||
forderType := trim(DParameters2);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderNewList_ZD.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrderNewList_ZD.Handle;
|
||
end;
|
||
-11: //<2F><><EFBFBD><EFBFBD>ָʾ<D6B8><CABE>
|
||
begin
|
||
if frmProductOrderNewList_BH <> nil then
|
||
frmProductOrderNewList_BH.Free;
|
||
if frmProductOrderNewList_BH = nil then
|
||
begin
|
||
frmProductOrderNewList_BH := TfrmProductOrderNewList_BH.Create(application.MainForm);
|
||
with frmProductOrderNewList_BH do
|
||
begin
|
||
fsyrName := trim(DataBase);
|
||
fDParameters1 := trim(DParameters1);
|
||
forderType := trim(DParameters2);
|
||
fsyrName := '<27><EFBFBD>֯';
|
||
// fDParameters1:='<27><><EFBFBD><EFBFBD>';
|
||
forderType := '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
|
||
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderNewList_BH.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrderNewList_BH.Handle;
|
||
end;
|
||
1: //<2F>زֹ<D8B2><D6B9><EFBFBD>
|
||
begin
|
||
if frmProductOrderAnPai = nil then
|
||
begin
|
||
frmProductOrderAnPai := TfrmProductOrderAnPai.Create(application.MainForm);
|
||
with frmProductOrderAnPai do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderAnPai.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrderAnPai.Handle;
|
||
|
||
end;
|
||
{ 101: //<2F>زֹ<D8B2><D6B9><EFBFBD> (<28><>Ȩ<EFBFBD><C8A8>)
|
||
begin
|
||
if frmProductOrderAnPaiGQX=nil then
|
||
begin
|
||
frmProductOrderAnPaiGQX:= TfrmProductOrderAnPaiGQX.Create(application.MainForm);
|
||
with frmProductOrderAnPaiGQX do
|
||
begin
|
||
caption:=Trim(Title);
|
||
FormStyle := mstyle ;
|
||
windowState := mstate ;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrderAnPaiGQX.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mNewHandle:=frmProductOrderAnPaiGQX.Handle;
|
||
|
||
end ; }
|
||
102: //<2F>زֲ<D8B2>ѯ
|
||
begin
|
||
if frmClothHCList = nil then
|
||
begin
|
||
frmClothHCList := TfrmClothHCList.Create(application.MainForm);
|
||
with frmClothHCList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothHCList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothHCList.Handle;
|
||
end;
|
||
2: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmMJManageNewFDNew = nil then
|
||
begin
|
||
frmMJManageNewFDNew := TfrmMJManageNewFDNew.Create(application.MainForm);
|
||
with frmMJManageNewFDNew do
|
||
begin
|
||
if trim(DataBase) = '<27><>Ȩ<EFBFBD><C8A8>' then
|
||
begin
|
||
iscom := false;
|
||
C_CodeName.Enabled := TRUE;
|
||
c_cOLOR.Enabled := TRUE;
|
||
BCGangNo.Enabled := TRUE;
|
||
end
|
||
else
|
||
iscom := true;
|
||
canshu := DataBase;
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmMJManageNewFDNew.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmMJManageNewFDNew.Handle;
|
||
|
||
end;
|
||
4: //<2F><>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmMJEdit = nil then
|
||
begin
|
||
frmMJEdit := TfrmMJEdit.Create(application.MainForm);
|
||
with frmMJEdit do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmMJEdit.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmMJEdit.Handle;
|
||
|
||
end;
|
||
{ 5: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmCpCkSaoMNewSel=nil then
|
||
begin
|
||
frmCpCkSaoMNewSel:= TfrmCpCkSaoMNewSel.Create(application.MainForm);
|
||
with frmCpCkSaoMNewSel do
|
||
begin
|
||
caption:=Trim(Title);
|
||
FormStyle := mstyle ;
|
||
windowState := mstate ;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCpCkSaoMNewSel.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mNewHandle:=frmCpCkSaoMNewSel.Handle;
|
||
|
||
end ; }
|
||
6: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD> <20><><EFBFBD>ڳ<EFBFBD><DAB3><EFBFBD><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmCKProductBCPInList = nil then
|
||
begin
|
||
frmCKProductBCPInList := TfrmCKProductBCPInList.Create(application.MainForm);
|
||
with frmCKProductBCPInList do
|
||
begin
|
||
fDParameters2 := trim(DParameters2);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPInList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPInList.Handle;
|
||
|
||
end;
|
||
7: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductBCPOutList = nil then
|
||
begin
|
||
frmCKProductBCPOutList := TfrmCKProductBCPOutList.Create(application.MainForm);
|
||
with frmCKProductBCPOutList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPOutList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPOutList.Handle;
|
||
end;
|
||
{ 8: //<2F><>Ʒ<EFBFBD>ز<EFBFBD>
|
||
begin
|
||
if frmBanCpHCSaoM=nil then
|
||
begin
|
||
frmBanCpHCSaoM:= TfrmBanCpHCSaoM.Create(application.MainForm);
|
||
with frmBanCpHCSaoM do
|
||
begin
|
||
caption:=Trim(Title);
|
||
FormStyle := mstyle ;
|
||
windowState := mstate ;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmBanCpHCSaoM.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mNewHandle:=frmBanCpHCSaoM.Handle;
|
||
|
||
end ; }
|
||
9: //<2F><>Ʒ<EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductBCPHCList = nil then
|
||
begin
|
||
frmCKProductBCPHCList := TfrmCKProductBCPHCList.Create(application.MainForm);
|
||
with frmCKProductBCPHCList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPHCList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPHCList.Handle;
|
||
|
||
end;
|
||
10: //<2F><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductBCPKCList = nil then
|
||
begin
|
||
frmCKProductBCPKCList := TfrmCKProductBCPKCList.Create(application.MainForm);
|
||
with frmCKProductBCPKCList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPKCList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPKCList.Handle;
|
||
|
||
end;
|
||
11: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductBCPKCHZList = nil then
|
||
begin
|
||
frmCKProductBCPKCHZList := TfrmCKProductBCPKCHZList.Create(application.MainForm);
|
||
with frmCKProductBCPKCHZList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPKCHZList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPKCHZList.Handle;
|
||
|
||
end;
|
||
111: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCP_CRC = nil then
|
||
begin
|
||
frmCP_CRC := TfrmCP_CRC.Create(application.MainForm);
|
||
with frmCP_CRC do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCP_CRC.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCP_CRC.Handle;
|
||
|
||
end;
|
||
112: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKPHKCList = nil then
|
||
begin
|
||
frmCKPHKCList := TfrmCKPHKCList.Create(application.MainForm);
|
||
with frmCKPHKCList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKPHKCList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKPHKCList.Handle;
|
||
|
||
end;
|
||
113: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductCPKCHZList_Yj = nil then
|
||
begin
|
||
frmCKProductCPKCHZList_Yj := TfrmCKProductCPKCHZList_Yj.Create(application.MainForm);
|
||
with frmCKProductCPKCHZList_Yj do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductCPKCHZList_Yj.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductCPKCHZList_Yj.Handle;
|
||
end;
|
||
12: //<2F><><EFBFBD>鱨<EFBFBD><E9B1A8>
|
||
begin
|
||
if frmJYOrderCDOne = nil then
|
||
begin
|
||
frmJYOrderCDOne := TfrmJYOrderCDOne.Create(application.MainForm);
|
||
with frmJYOrderCDOne do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmJYOrderCDOne.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmJYOrderCDOne.Handle;
|
||
|
||
end;
|
||
13: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmJYOrderCDMore = nil then
|
||
begin
|
||
frmJYOrderCDMore := TfrmJYOrderCDMore.Create(application.MainForm);
|
||
with frmJYOrderCDMore do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmJYOrderCDMore.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmJYOrderCDMore.Handle;
|
||
|
||
end;
|
||
14: //<2F><><EFBFBD><EFBFBD>ɨ<EFBFBD><C9A8>
|
||
begin
|
||
if frmCpRkSaoMNew = nil then
|
||
begin
|
||
frmCpRkSaoMNew := TfrmCpRkSaoMNew.Create(application.MainForm);
|
||
with frmCpRkSaoMNew do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCpRkSaoMNew.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCpRkSaoMNew.Handle;
|
||
|
||
end;
|
||
15: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList = nil then
|
||
begin
|
||
frmClothContractList := TfrmClothContractList.Create(application.MainForm);
|
||
with frmClothContractList do
|
||
begin
|
||
caption := Trim(Title);
|
||
fDParameters1 := trim(DParameters1);
|
||
// fDParameters1:=trim('<27><>ѯ');
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList.Handle;
|
||
|
||
end;
|
||
151: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_CG = nil then
|
||
begin
|
||
frmClothContractList_CG := TfrmClothContractList_CG.Create(application.MainForm);
|
||
with frmClothContractList_CG do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_CG.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_CG.Handle;
|
||
|
||
end;
|
||
152: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_Tp = nil then
|
||
begin
|
||
frmClothContractList_Tp := TfrmClothContractList_Tp.Create(application.MainForm);
|
||
with frmClothContractList_Tp do
|
||
begin
|
||
caption := Trim(Title);
|
||
fDParameters1 := trim(DParameters1);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_Tp.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_Tp.Handle;
|
||
|
||
end;
|
||
153: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_JG = nil then
|
||
begin
|
||
frmClothContractList_JG := TfrmClothContractList_JG.Create(application.MainForm);
|
||
with frmClothContractList_JG do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_JG.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_JG.Handle;
|
||
|
||
end;
|
||
154: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_Help = nil then
|
||
begin
|
||
frmClothContractList_Help := TfrmClothContractList_Help.Create(application.MainForm);
|
||
with frmClothContractList_Help do
|
||
begin
|
||
caption := Trim(Title);
|
||
v1Ssel.Visible := false;
|
||
ToolButton1.Visible := false;
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_Help.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_Help.Handle;
|
||
|
||
end;
|
||
155: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_HZ = nil then
|
||
begin
|
||
frmClothContractList_HZ := TfrmClothContractList_HZ.Create(application.MainForm);
|
||
with frmClothContractList_HZ do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_HZ.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_HZ.Handle;
|
||
|
||
end;
|
||
255: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_SJD = nil then
|
||
begin
|
||
frmClothContractList_SJD := TfrmClothContractList_SJD.Create(application.MainForm);
|
||
with frmClothContractList_SJD do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_SJD.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_SJD.Handle;
|
||
|
||
end;
|
||
245: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
|
||
begin
|
||
if frmClothContractList_PBKC = nil then
|
||
begin
|
||
frmClothContractList_PBKC := TfrmClothContractList_PBKC.Create(application.MainForm);
|
||
with frmClothContractList_PBKC do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_PBKC.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_PBKC.Handle;
|
||
|
||
end;
|
||
254: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_SJDMX = nil then
|
||
begin
|
||
frmClothContractList_SJDMX := TfrmClothContractList_SJDMX.Create(application.MainForm);
|
||
with frmClothContractList_SJDMX do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_SJDMX.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_SJDMX.Handle;
|
||
|
||
end;
|
||
253: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_SJDCK = nil then
|
||
begin
|
||
frmClothContractList_SJDCK := TfrmClothContractList_SJDCK.Create(application.MainForm);
|
||
with frmClothContractList_SJDCK do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_SJDCK.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_SJDCK.Handle;
|
||
|
||
end;
|
||
515: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
|
||
begin
|
||
if frmClothContractList_CP = nil then
|
||
begin
|
||
frmClothContractList_CP := TfrmClothContractList_CP.Create(application.MainForm);
|
||
with frmClothContractList_CP do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_CP.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_CP.Handle;
|
||
|
||
end;
|
||
156: //<2F><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD> <20><><EFBFBD><EFBFBD> Ͷƥ
|
||
begin
|
||
if frmClothContractList_HZ1 = nil then
|
||
begin
|
||
frmClothContractList_HZ1 := TfrmClothContractList_HZ1.Create(application.MainForm);
|
||
with frmClothContractList_HZ1 do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractList_HZ1.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractList_HZ1.Handle;
|
||
|
||
end;
|
||
16: //<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmClothContractListDH = nil then
|
||
begin
|
||
frmClothContractListDH := TfrmClothContractListDH.Create(application.MainForm);
|
||
with frmClothContractListDH do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractListDH.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractListDH.Handle;
|
||
|
||
end;
|
||
17: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmClothContractListLL = nil then
|
||
begin
|
||
frmClothContractListLL := TfrmClothContractListLL.Create(application.MainForm);
|
||
with frmClothContractListLL do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractListLL.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractListLL.Handle;
|
||
end;
|
||
18: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܲ<EFBFBD>ѯ
|
||
begin
|
||
if frmClothContractKCList = nil then
|
||
begin
|
||
frmClothContractKCList := TfrmClothContractKCList.Create(application.MainForm);
|
||
with frmClothContractKCList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractKCList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractKCList.Handle;
|
||
|
||
end;
|
||
19: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬ
|
||
begin
|
||
if frmContractList = nil then
|
||
begin
|
||
frmContractList := TfrmContractList.Create(application.MainForm);
|
||
with frmContractList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmContractList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmContractList.Handle;
|
||
|
||
end;
|
||
20: //<2F><><EFBFBD>ӹ<EFBFBD>
|
||
begin
|
||
if frmClothContractListWJG = nil then
|
||
begin
|
||
frmClothContractListWJG := TfrmClothContractListWJG.Create(application.MainForm);
|
||
with frmClothContractListWJG do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothContractListWJG.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothContractListWJG.Handle;
|
||
|
||
end;
|
||
21: //<2F><><EFBFBD><EFBFBD><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2>
|
||
begin
|
||
if frmClothPDInfoList = nil then
|
||
begin
|
||
frmClothPDInfoList := TfrmClothPDInfoList.Create(application.MainForm);
|
||
with frmClothPDInfoList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmClothPDInfoList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmClothPDInfoList.Handle;
|
||
|
||
end;
|
||
22: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȳ<EFBFBD>ѯ
|
||
begin
|
||
if frmOrderJDList = nil then
|
||
begin
|
||
frmOrderJDList := TfrmOrderJDList.Create(application.MainForm);
|
||
with frmOrderJDList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmOrderJDList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmOrderJDList.Handle;
|
||
|
||
end;
|
||
23: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmProductOrder_Ph = nil then
|
||
begin
|
||
frmProductOrder_Ph := TfrmProductOrder_Ph.Create(application.MainForm);
|
||
with frmProductOrder_Ph do
|
||
begin
|
||
fDParameters1 := trim(DParameters1);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrder_Ph.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrder_Ph.Handle;
|
||
|
||
end;
|
||
231: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmCKSMEdit = nil then
|
||
begin
|
||
frmCKSMEdit := TfrmCKSMEdit.Create(application.MainForm);
|
||
with frmCKSMEdit do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKSMEdit.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKSMEdit.Handle;
|
||
|
||
end;
|
||
24: // <20>زֲ<D8B2>ѯ
|
||
begin
|
||
if frmHCList = nil then
|
||
begin
|
||
frmHCList := TfrmHCList.Create(application.MainForm);
|
||
with frmHCList do
|
||
begin
|
||
// fDParameters1:=trim(DParameters1);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmHCList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmHCList.Handle;
|
||
|
||
end;
|
||
|
||
25: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmProductOrder_Ph10 = nil then
|
||
begin
|
||
frmProductOrder_Ph10 := TfrmProductOrder_Ph10.Create(application.MainForm);
|
||
with frmProductOrder_Ph10 do
|
||
begin
|
||
fDParameters1 := trim(DParameters1);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrder_Ph10.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrder_Ph10.Handle;
|
||
|
||
end;
|
||
|
||
26: // <20>زֲ<D8B2>ѯ
|
||
begin
|
||
if frmCrkAccount = nil then
|
||
begin
|
||
frmCrkAccount := TfrmCrkAccount.Create(application.MainForm);
|
||
with frmCrkAccount do
|
||
begin
|
||
// fDParameters1:=trim(DParameters1);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCrkAccount.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCrkAccount.Handle;
|
||
|
||
end;
|
||
27: // <20><><EFBFBD>⡪<EFBFBD><E2A1AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmCKProductBCPInList_other = nil then
|
||
begin
|
||
frmCKProductBCPInList_other := TfrmCKProductBCPInList_other.Create(application.MainForm);
|
||
with frmCKProductBCPInList_other do
|
||
begin
|
||
// fDParameters2:='<27><>ѯ';
|
||
fDParameters2 := trim(DParameters2);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPInList_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPInList_other.Handle;
|
||
end;
|
||
28: // <20><><EFBFBD>⡪<EFBFBD><E2A1AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmCKProductBCPOutList_other = nil then
|
||
begin
|
||
frmCKProductBCPOutList_other := TfrmCKProductBCPOutList_other.Create(application.MainForm);
|
||
with frmCKProductBCPOutList_other do
|
||
begin
|
||
// fDParameters2:=trim(DParameters2);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPOutList_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPOutList_other.Handle;
|
||
end;
|
||
29: // <20><><EFBFBD>⡪<EFBFBD><E2A1AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmProductOrder_Ph_other = nil then
|
||
begin
|
||
frmProductOrder_Ph_other := TfrmProductOrder_Ph_other.Create(application.MainForm);
|
||
with frmProductOrder_Ph_other do
|
||
begin
|
||
// fDParameters2:=trim(DParameters2);
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmProductOrder_Ph_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmProductOrder_Ph_other.Handle;
|
||
end;
|
||
30: //<2F><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductBCPKCList_other = nil then
|
||
begin
|
||
frmCKProductBCPKCList_other := TfrmCKProductBCPKCList_other.Create(application.MainForm);
|
||
with frmCKProductBCPKCList_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPKCList_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPKCList_other.Handle;
|
||
|
||
end;
|
||
31: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCKProductBCPKCHZList_other = nil then
|
||
begin
|
||
frmCKProductBCPKCHZList_other := TfrmCKProductBCPKCHZList_other.Create(application.MainForm);
|
||
with frmCKProductBCPKCHZList_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPKCHZList_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPKCHZList_other.Handle;
|
||
|
||
end;
|
||
|
||
32: //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||
begin
|
||
if frmCrkAccount_other = nil then
|
||
begin
|
||
frmCrkAccount_other := TfrmCrkAccount_other.Create(application.MainForm);
|
||
with frmCrkAccount_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCrkAccount_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCrkAccount_other.Handle;
|
||
|
||
end;
|
||
33: //<2F><><EFBFBD>鱨<EFBFBD><E9B1A8>
|
||
begin
|
||
if frmJYOrderCDOne_other = nil then
|
||
begin
|
||
frmJYOrderCDOne_other := TfrmJYOrderCDOne_other.Create(application.MainForm);
|
||
with frmJYOrderCDOne_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmJYOrderCDOne_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmJYOrderCDOne_other.Handle;
|
||
|
||
end;
|
||
34: //<2F><><EFBFBD>鱨<EFBFBD><E9B1A8>
|
||
begin
|
||
if frmXsList_other = nil then
|
||
begin
|
||
frmXsList_other := TfrmXsList_other.Create(application.MainForm);
|
||
with frmXsList_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmXsList_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmXsList_other.Handle;
|
||
|
||
end;
|
||
35: //<2F>ջ<EFBFBD>ͳ<EFBFBD><CDB3>
|
||
begin
|
||
if frmYHList_other = nil then
|
||
begin
|
||
frmYHList_other := TfrmYHList_other.Create(application.MainForm);
|
||
with frmYHList_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmYHList_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmYHList_other.Handle;
|
||
|
||
end;
|
||
36: //<2F>ջ<EFBFBD>ͳ<EFBFBD><CDB3>
|
||
begin
|
||
if frmCKProductBCPKCHZListSUM_other = nil then
|
||
begin
|
||
frmCKProductBCPKCHZListSUM_other := TfrmCKProductBCPKCHZListSUM_other.Create(application.MainForm);
|
||
with frmCKProductBCPKCHZListSUM_other do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKProductBCPKCHZListSUM_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKProductBCPKCHZListSUM_other.Handle;
|
||
|
||
end;
|
||
37: //<2F><><EFBFBD>ų<EFBFBD><C5B3><EFBFBD><EFBFBD>Ա<EFBFBD>
|
||
begin
|
||
if frmCKEJK = nil then
|
||
begin
|
||
frmCKEJK := TfrmCKEJK.Create(application.MainForm);
|
||
with frmCKEJK do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKEJK.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKEJK.Handle;
|
||
|
||
end;
|
||
|
||
38: //<2F>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||
begin
|
||
if frmKH_XS_list = nil then
|
||
begin
|
||
frmKH_XS_list := TfrmKH_XS_list.Create(application.MainForm);
|
||
with frmKH_XS_list do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmKH_XS_list.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmKH_XS_list.Handle;
|
||
|
||
end;
|
||
39: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||
begin
|
||
if frmCP_XL <> nil then
|
||
frmCP_XL.Free;
|
||
if frmCP_XL = nil then
|
||
begin
|
||
frmCP_XL := TfrmCP_XL.Create(application.MainForm);
|
||
with frmCP_XL do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCP_XL.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCP_XL.Handle;
|
||
end;
|
||
40: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||
begin
|
||
if frmCP_COL_XL <> nil then
|
||
frmCP_COL_XL.Free;
|
||
if frmCP_COL_XL = nil then
|
||
begin
|
||
frmCP_COL_XL := TfrmCP_COL_XL.Create(application.MainForm);
|
||
with frmCP_COL_XL do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCP_COL_XL.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCP_COL_XL.Handle;
|
||
end;
|
||
41: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||
begin
|
||
if frmCP_COL_XL_ZD <> nil then
|
||
frmCP_COL_XL_ZD.Free;
|
||
if frmCP_COL_XL_ZD = nil then
|
||
begin
|
||
frmCP_COL_XL_ZD := TfrmCP_COL_XL_ZD.Create(application.MainForm);
|
||
with frmCP_COL_XL_ZD do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCP_COL_XL_ZD.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCP_COL_XL_ZD.Handle;
|
||
end;
|
||
42: //<2F><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
||
begin
|
||
if frmKH_XS_YP_list <> nil then
|
||
frmKH_XS_YP_list.Free;
|
||
if frmKH_XS_YP_list = nil then
|
||
begin
|
||
frmKH_XS_YP_list := TfrmKH_XS_YP_list.Create(application.MainForm);
|
||
with frmKH_XS_YP_list do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmKH_XS_YP_list.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmKH_XS_YP_list.Handle;
|
||
end;
|
||
61: //<2F><>ʾ
|
||
begin
|
||
if frmModulePromptList <> nil then
|
||
frmModulePromptList.Free;
|
||
if frmModulePromptList = nil then
|
||
begin
|
||
frmModulePromptList := TfrmModulePromptList.Create(application.MainForm);
|
||
with frmModulePromptList do
|
||
begin
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmModulePromptList.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmModulePromptList.Handle;
|
||
|
||
end;
|
||
97: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmKCRLLTZ = nil then
|
||
begin
|
||
frmKCRLLTZ := TfrmKCRLLTZ.Create(application.MainForm);
|
||
with frmKCRLLTZ do
|
||
begin
|
||
if trim(DataBase) = '<27><>Ȩ<EFBFBD><C8A8>' then
|
||
begin
|
||
iscom := false;
|
||
end
|
||
else
|
||
iscom := true;
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmKCRLLTZ.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmKCRLLTZ.Handle;
|
||
end;
|
||
98: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmMJManageNewFDNew_other = nil then
|
||
begin
|
||
frmMJManageNewFDNew_other := TfrmMJManageNewFDNew_other.Create(application.MainForm);
|
||
with frmMJManageNewFDNew_other do
|
||
begin
|
||
if trim(DataBase) = '<27><>Ȩ<EFBFBD><C8A8>' then
|
||
begin
|
||
iscom := false;
|
||
C_CodeName.Enabled := TRUE;
|
||
c_cOLOR.Enabled := TRUE;
|
||
BCGangNo.Enabled := TRUE;
|
||
end
|
||
else
|
||
iscom := true;
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmMJManageNewFDNew_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmMJManageNewFDNew_other.Handle;
|
||
|
||
end;
|
||
99: // <20><>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>
|
||
begin
|
||
if frmKCRLLTZ_other = nil then
|
||
begin
|
||
frmKCRLLTZ_other := TfrmKCRLLTZ_other.Create(application.MainForm);
|
||
with frmKCRLLTZ_other do
|
||
begin
|
||
if trim(DataBase) = '<27><>Ȩ<EFBFBD><C8A8>' then
|
||
begin
|
||
iscom := false;
|
||
end
|
||
else
|
||
iscom := true;
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmKCRLLTZ_other.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmKCRLLTZ_other.Handle;
|
||
end;
|
||
100: // <20>ͻ<EFBFBD><CDBB>̵<EFBFBD>
|
||
begin
|
||
if frmCKPDlist <> nil then
|
||
frmCKPDlist.Free;
|
||
if frmCKPDlist = nil then
|
||
begin
|
||
frmCKPDlist := TfrmCKPDlist.Create(application.MainForm);
|
||
with frmCKPDlist do
|
||
begin
|
||
fckName := trim(DParameters3);
|
||
// fckName:='<27>ֻ<EFBFBD>';
|
||
caption := Trim(Title);
|
||
FormStyle := mstyle;
|
||
windowState := mstate;
|
||
BorderStyle := mborderstyle;
|
||
//show;
|
||
end;
|
||
end
|
||
else
|
||
frmCKPDlist.BringToFront;
|
||
//<2F><><EFBFBD><EFBFBD>
|
||
mnewHandle := frmCKPDlist.Handle;
|
||
end;
|
||
end; // end case
|
||
|
||
Result := mnewHandle;
|
||
// NewDllApp:=Application ;
|
||
end;
|
||
//===========================================================
|
||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD>ӳ<EFBFBD>
|
||
//===========================================================
|
||
|
||
function ConnData(): Boolean;
|
||
begin
|
||
if not Assigned(DataLink_TradeManage) then
|
||
DataLink_TradeManage := TDataLink_TradeManage.Create(Application);
|
||
try
|
||
with DataLink_TradeManage.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_TradeManage.Free;
|
||
application := NewDllApp;
|
||
dxUnitsLoader.Finalize;
|
||
|
||
end.
|
||
|