1234
This commit is contained in:
parent
d896615732
commit
7d59c72616
|
|
@ -101,7 +101,7 @@ DebugSourceDirs=
|
||||||
UsePackages=0
|
UsePackages=0
|
||||||
[Parameters]
|
[Parameters]
|
||||||
RunParams=
|
RunParams=
|
||||||
HostApplication=D:\郑丰平开发代码\项目代码\睿顺\检验管理\testDll.exe
|
HostApplication=D:\D7W\项目代码\D7djRuishun\检验管理\testDll.exe
|
||||||
Launcher=
|
Launcher=
|
||||||
UseLauncher=0
|
UseLauncher=0
|
||||||
DebugCWD=
|
DebugCWD=
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ uses
|
||||||
forms,
|
forms,
|
||||||
WinTypes,
|
WinTypes,
|
||||||
WinProcs,
|
WinProcs,
|
||||||
|
MidasLib,
|
||||||
U_DataLink in 'U_DataLink.pas' {DataLink_TradeManage: TDataModule},
|
U_DataLink in 'U_DataLink.pas' {DataLink_TradeManage: TDataModule},
|
||||||
U_GetDllForm in 'U_GetDllForm.pas',
|
U_GetDllForm in 'U_GetDllForm.pas',
|
||||||
U_ZDYHelpSel in '..\..\..\ThreeFun\Form\U_ZDYHelpSel.pas' {frmZDYHelpSel},
|
U_ZDYHelpSel in '..\..\..\ThreeFun\Form\U_ZDYHelpSel.pas' {frmZDYHelpSel},
|
||||||
|
|
@ -66,8 +67,10 @@ begin
|
||||||
// if (Reason = DLL_PROCESS_DETACH) or (Reason=DLL_THREAD_DETACH) then
|
// if (Reason = DLL_PROCESS_DETACH) or (Reason=DLL_THREAD_DETACH) then
|
||||||
// Application:=NewDllApp;
|
// Application:=NewDllApp;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
exports
|
exports
|
||||||
GetDllForm;
|
GetDllForm;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
try
|
try
|
||||||
NewDllApp := Application;
|
NewDllApp := Application;
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,8 @@ object frmCpCkSaoMNewSel: TfrmCpCkSaoMNewSel
|
||||||
OnClick = Button2Click
|
OnClick = Button2Click
|
||||||
end
|
end
|
||||||
object Button3: TButton
|
object Button3: TButton
|
||||||
Left = 24
|
Left = 25
|
||||||
Top = 130
|
Top = 131
|
||||||
Width = 70
|
Width = 70
|
||||||
Height = 20
|
Height = 20
|
||||||
Caption = #36873#21333
|
Caption = #36873#21333
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,20 @@ uses
|
||||||
cxGridCustomPopupMenu, cxGridPopupMenu, cxGridLevel, cxGridCustomTableView,
|
cxGridCustomPopupMenu, cxGridPopupMenu, cxGridLevel, cxGridCustomTableView,
|
||||||
cxGridTableView, cxGridDBTableView, cxClasses, cxControls, cxGridCustomView,
|
cxGridTableView, cxGridDBTableView, cxClasses, cxControls, cxGridCustomView,
|
||||||
cxGrid, MovePanel, cxCheckBox, Menus, ComCtrls, MMSystem, cxLookAndFeels,
|
cxGrid, MovePanel, cxCheckBox, Menus, ComCtrls, MMSystem, cxLookAndFeels,
|
||||||
cxLookAndFeelPainters, cxNavigator;
|
cxLookAndFeelPainters, cxNavigator, dxSkinsCore, dxSkinBlack, dxSkinBlue,
|
||||||
|
dxSkinBlueprint, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom, dxSkinDarkSide,
|
||||||
|
dxSkinDevExpressDarkStyle, dxSkinDevExpressStyle, dxSkinFoggy,
|
||||||
|
dxSkinGlassOceans, dxSkinHighContrast, dxSkiniMaginary, dxSkinLilian,
|
||||||
|
dxSkinLiquidSky, dxSkinLondonLiquidSky, dxSkinMcSkin, dxSkinMetropolis,
|
||||||
|
dxSkinMetropolisDark, dxSkinMoneyTwins, dxSkinOffice2007Black,
|
||||||
|
dxSkinOffice2007Blue, dxSkinOffice2007Green, dxSkinOffice2007Pink,
|
||||||
|
dxSkinOffice2007Silver, dxSkinOffice2010Black, dxSkinOffice2010Blue,
|
||||||
|
dxSkinOffice2010Silver, dxSkinOffice2013DarkGray, dxSkinOffice2013LightGray,
|
||||||
|
dxSkinOffice2013White, dxSkinPumpkin, dxSkinSeven, dxSkinSevenClassic,
|
||||||
|
dxSkinSharp, dxSkinSharpPlus, dxSkinSilver, dxSkinSpringTime, dxSkinStardust,
|
||||||
|
dxSkinSummer2008, dxSkinTheAsphaltWorld, dxSkinsDefaultPainters,
|
||||||
|
dxSkinValentine, dxSkinVS2010, dxSkinWhiteprint, dxSkinXmas2008Blue,
|
||||||
|
dxSkinscxPCPainter;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmCpCkSaoMNewSel = class(TForm)
|
TfrmCpCkSaoMNewSel = class(TForm)
|
||||||
|
|
@ -444,7 +457,7 @@ begin
|
||||||
sql.Add(',AOrdDefstr1=(select AOrdDefstr1 from JYOrder_Sub_AnPai where ApId=A.ApId)');
|
sql.Add(',AOrdDefstr1=(select AOrdDefstr1 from JYOrder_Sub_AnPai where ApId=A.ApId)');
|
||||||
sql.Add(',MJXH=(select MJXH from WFB_MJJY where MJID=A.MJID)');
|
sql.Add(',MJXH=(select MJXH from WFB_MJJY where MJID=A.MJID)');
|
||||||
sql.Add(',MJStr4=(select MJStr4 from WFB_MJJY where MJID=A.MJID)');
|
sql.Add(',MJStr4=(select MJStr4 from WFB_MJJY where MJID=A.MJID)');
|
||||||
sql.Add(' from CK_BanCP_CR A inner join CK_BanCP_KC B on A.CRID=B.CRID');
|
sql.Add(' from CK_BanCP_CR A inner join CK_BanCP_KC B on A.mjid=B.mjid');
|
||||||
sql.Add(' where exists( select * from TBSubID AA where AA.SubId=A.SubId and AA.DName=''' + Trim(DCode) + ''') ');
|
sql.Add(' where exists( select * from TBSubID AA where AA.SubId=A.SubId and AA.DName=''' + Trim(DCode) + ''') ');
|
||||||
SQL.Add(' and (B.KCqty>0 OR B.KCKGQty>0) and A.CRType=''¼ìÑéÈë¿â'' ');
|
SQL.Add(' and (B.KCqty>0 OR B.KCKGQty>0) and A.CRType=''¼ìÑéÈë¿â'' ');
|
||||||
Open;
|
Open;
|
||||||
|
|
|
||||||
|
|
@ -255,7 +255,7 @@ object frmOrderSel: TfrmOrderSel
|
||||||
end
|
end
|
||||||
object Button1: TButton
|
object Button1: TButton
|
||||||
Left = 847
|
Left = 847
|
||||||
Top = 16
|
Top = 17
|
||||||
Width = 75
|
Width = 75
|
||||||
Height = 25
|
Height = 25
|
||||||
Caption = #21047#26032
|
Caption = #21047#26032
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,20 @@ uses
|
||||||
cxGridLevel, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
|
cxGridLevel, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
|
||||||
cxClasses, cxControls, cxGridCustomView, cxGrid, cxGridCustomPopupMenu,
|
cxClasses, cxControls, cxGridCustomView, cxGrid, cxGridCustomPopupMenu,
|
||||||
cxGridPopupMenu, cxCheckBox, Menus, cxLookAndFeels,
|
cxGridPopupMenu, cxCheckBox, Menus, cxLookAndFeels,
|
||||||
cxLookAndFeelPainters, cxNavigator;
|
cxLookAndFeelPainters, cxNavigator, dxSkinsCore, dxSkinBlack, dxSkinBlue,
|
||||||
|
dxSkinBlueprint, dxSkinCaramel, dxSkinCoffee, dxSkinDarkRoom,
|
||||||
|
dxSkinDarkSide, dxSkinDevExpressDarkStyle, dxSkinDevExpressStyle,
|
||||||
|
dxSkinFoggy, dxSkinGlassOceans, dxSkinHighContrast, dxSkiniMaginary,
|
||||||
|
dxSkinLilian, dxSkinLiquidSky, dxSkinLondonLiquidSky, dxSkinMcSkin,
|
||||||
|
dxSkinMetropolis, dxSkinMetropolisDark, dxSkinMoneyTwins,
|
||||||
|
dxSkinOffice2007Black, dxSkinOffice2007Blue, dxSkinOffice2007Green,
|
||||||
|
dxSkinOffice2007Pink, dxSkinOffice2007Silver, dxSkinOffice2010Black,
|
||||||
|
dxSkinOffice2010Blue, dxSkinOffice2010Silver, dxSkinOffice2013DarkGray,
|
||||||
|
dxSkinOffice2013LightGray, dxSkinOffice2013White, dxSkinPumpkin,
|
||||||
|
dxSkinSeven, dxSkinSevenClassic, dxSkinSharp, dxSkinSharpPlus,
|
||||||
|
dxSkinSilver, dxSkinSpringTime, dxSkinStardust, dxSkinSummer2008,
|
||||||
|
dxSkinTheAsphaltWorld, dxSkinsDefaultPainters, dxSkinValentine,
|
||||||
|
dxSkinVS2010, dxSkinWhiteprint, dxSkinXmas2008Blue, dxSkinscxPCPainter;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmOrderSel = class(TForm)
|
TfrmOrderSel = class(TForm)
|
||||||
|
|
@ -164,20 +177,20 @@ begin
|
||||||
sql.Add('select A.OrderNo,A.CustomerNoName,A.CustomerNo,');
|
sql.Add('select A.OrderNo,A.CustomerNoName,A.CustomerNo,');
|
||||||
sql.add('B.PRTCodeName,A.MainId,B.SubId,B.PRTColor,B.SOrddefstr1,B.OrderUnit,B.PRTOrderQty,B.PrtGangNo');
|
sql.add('B.PRTCodeName,A.MainId,B.SubId,B.PRTColor,B.SOrddefstr1,B.OrderUnit,B.PRTOrderQty,B.PrtGangNo');
|
||||||
sql.Add(',B.PRTMF,B.PRTKZ,B.PRTHX');
|
sql.Add(',B.PRTMF,B.PRTKZ,B.PRTHX');
|
||||||
sql.Add(',ZPPS=(select Count(CR.MJID) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.CRID=KC.CRID');
|
sql.Add(',ZPPS=(select Count(CR.MJID) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.MJID=KC.MJID');
|
||||||
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0)and isnull(CPType,'''')<>''´ÎÆ·'' ) ');
|
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0)and isnull(CPType,'''')<>''´ÎÆ·'' ) ');
|
||||||
sql.Add(',ZPQty=(select sum(KCQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.CRID=KC.CRID');
|
sql.Add(',ZPQty=(select sum(KCQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.MJID=KC.MJID');
|
||||||
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and isnull(CPType,'''')<>''´ÎÆ·'' ) ');
|
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and isnull(CPType,'''')<>''´ÎÆ·'' ) ');
|
||||||
sql.Add(',ZPKGQty=(select sum(KCKGQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.CRID=KC.CRID ');
|
sql.Add(',ZPKGQty=(select sum(KCKGQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.MJID=KC.MJID ');
|
||||||
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and isnull(CPType,'''')<>''´ÎÆ·'' ) ');
|
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and isnull(CPType,'''')<>''´ÎÆ·'' ) ');
|
||||||
sql.Add(',CPPS=(select Count(CR.MJID) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.CRID=KC.CRID');
|
sql.Add(',CPPS=(select Count(CR.MJID) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.MJID=KC.MJID');
|
||||||
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and CPType=''´ÎÆ·'') ');
|
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and CPType=''´ÎÆ·'') ');
|
||||||
sql.Add(',CPQty=(select sum(KCQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.CRID=KC.CRID');
|
sql.Add(',CPQty=(select sum(KCQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.MJID=KC.MJID');
|
||||||
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and CPType=''´ÎÆ·'') ');
|
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and CPType=''´ÎÆ·'') ');
|
||||||
sql.Add(',CPKGQty=(select sum(KCKGQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.CRID=KC.CRID');
|
sql.Add(',CPKGQty=(select sum(KCKGQty) from CK_BanCP_CR CR Inner join CK_BanCP_KC KC on CR.MJID=KC.MJID');
|
||||||
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and CPType=''´ÎÆ·'') ');
|
sql.Add(' where CR.subid=B.subid and CR.CRType=''¼ìÑéÈë¿â'' and (KC.KCQty>0 or KCKGQty>0) and CPType=''´ÎÆ·'') ');
|
||||||
sql.Add(' from JYOrder_Main A inner join jyorder_sub B on A.MainId=B.Mainid');
|
sql.Add(' from JYOrder_Main A inner join jyorder_sub B on A.MainId=B.Mainid');
|
||||||
sql.Add(' where exists(select AA.CRID from CK_BanCP_CR AA inner join CK_BanCP_KC BB on AA.CRID=BB.CRID ');
|
sql.Add(' where exists(select AA.CRID from CK_BanCP_CR AA inner join CK_BanCP_KC BB on AA.mjid=BB.mjid ');
|
||||||
sql.Add(' where AA.MainId=A.MainId and AA.SubId=B.SubId and AA.CRType=''¼ìÑéÈë¿â'' and (BB.KCQty>0 or BB.KCKGQty>0))');
|
sql.Add(' where AA.MainId=A.MainId and AA.SubId=B.SubId and AA.CRType=''¼ìÑéÈë¿â'' and (BB.KCQty>0 or BB.KCKGQty>0))');
|
||||||
// sql.Add('order by cast(dbo.Get_ShuZi(B.SOrddefstr1) as bigint)');
|
// sql.Add('order by cast(dbo.Get_ShuZi(B.SOrddefstr1) as bigint)');
|
||||||
// ShowMessage(sql.Text);
|
// ShowMessage(sql.Text);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user