260407
This commit is contained in:
parent
1b47f830ad
commit
2b2bcf1bec
|
|
@ -101,7 +101,7 @@ DebugSourceDirs=
|
||||||
UsePackages=0
|
UsePackages=0
|
||||||
[Parameters]
|
[Parameters]
|
||||||
RunParams=
|
RunParams=
|
||||||
HostApplication=D:\郑丰平开发代码\项目代码\方遒\检验管理\testDll.exe
|
HostApplication=D:\Dp7Repo\项目代码\D7myFangqiu\检验管理\testDll.exe
|
||||||
Launcher=
|
Launcher=
|
||||||
UseLauncher=0
|
UseLauncher=0
|
||||||
DebugCWD=
|
DebugCWD=
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ object frmCPDBao: TfrmCPDBao
|
||||||
Top = 195
|
Top = 195
|
||||||
Width = 1382
|
Width = 1382
|
||||||
Height = 754
|
Height = 754
|
||||||
VertScrollBar.Position = 2
|
|
||||||
Caption = #25171#21253#31383#21475
|
Caption = #25171#21253#31383#21475
|
||||||
Color = clBtnFace
|
Color = clBtnFace
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -21,7 +20,7 @@ object frmCPDBao: TfrmCPDBao
|
||||||
TextHeight = 12
|
TextHeight = 12
|
||||||
object ToolBar1: TToolBar
|
object ToolBar1: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = -2
|
Top = 0
|
||||||
Width = 1533
|
Width = 1533
|
||||||
Height = 33
|
Height = 33
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
|
|
@ -54,7 +53,7 @@ object frmCPDBao: TfrmCPDBao
|
||||||
end
|
end
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 31
|
Top = 33
|
||||||
Width = 1533
|
Width = 1533
|
||||||
Height = 76
|
Height = 76
|
||||||
Align = alTop
|
Align = alTop
|
||||||
|
|
@ -489,7 +488,7 @@ object frmCPDBao: TfrmCPDBao
|
||||||
end
|
end
|
||||||
object Panel2: TPanel
|
object Panel2: TPanel
|
||||||
Left = 400
|
Left = 400
|
||||||
Top = 139
|
Top = 141
|
||||||
Width = 1133
|
Width = 1133
|
||||||
Height = 560
|
Height = 560
|
||||||
Caption = 'Panel2'
|
Caption = 'Panel2'
|
||||||
|
|
@ -832,7 +831,7 @@ object frmCPDBao: TfrmCPDBao
|
||||||
end
|
end
|
||||||
object Panel3: TPanel
|
object Panel3: TPanel
|
||||||
Left = 999
|
Left = 999
|
||||||
Top = 225
|
Top = 227
|
||||||
Width = 290
|
Width = 290
|
||||||
Height = 286
|
Height = 286
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
|
|
@ -1027,9 +1026,9 @@ object frmCPDBao: TfrmCPDBao
|
||||||
end
|
end
|
||||||
object Panel4: TPanel
|
object Panel4: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 107
|
Top = 109
|
||||||
Width = 553
|
Width = 553
|
||||||
Height = 592
|
Height = 614
|
||||||
Align = alLeft
|
Align = alLeft
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
BevelOuter = bvLowered
|
BevelOuter = bvLowered
|
||||||
|
|
@ -1039,7 +1038,7 @@ object frmCPDBao: TfrmCPDBao
|
||||||
Left = 2
|
Left = 2
|
||||||
Top = 89
|
Top = 89
|
||||||
Width = 549
|
Width = 549
|
||||||
Height = 501
|
Height = 523
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object Tv3: TcxGridDBTableView
|
object Tv3: TcxGridDBTableView
|
||||||
|
|
@ -1324,7 +1323,7 @@ object frmCPDBao: TfrmCPDBao
|
||||||
end
|
end
|
||||||
object MovePanel1: TMovePanel
|
object MovePanel1: TMovePanel
|
||||||
Left = 506
|
Left = 506
|
||||||
Top = 274
|
Top = 276
|
||||||
Width = 715
|
Width = 715
|
||||||
Height = 327
|
Height = 327
|
||||||
BevelInner = bvLowered
|
BevelInner = bvLowered
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,20 @@ uses
|
||||||
cxCurrencyEdit, BtnEdit, ExtCtrls, ComCtrls, ToolWin, DBClient, ADODB,
|
cxCurrencyEdit, BtnEdit, ExtCtrls, ComCtrls, ToolWin, DBClient, ADODB,
|
||||||
MovePanel, Buttons, Menus, cxLookAndFeelPainters, cxButtons, RM_Common,
|
MovePanel, Buttons, Menus, cxLookAndFeelPainters, cxButtons, RM_Common,
|
||||||
RM_Class, RM_GridReport, RM_System, RM_Dataset, cxCheckBox,MMSystem,
|
RM_Class, RM_GridReport, RM_System, RM_Dataset, cxCheckBox,MMSystem,
|
||||||
cxLookAndFeels, cxNavigator;
|
cxLookAndFeels, 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
|
||||||
TfrmCPDBao = class(TForm)
|
TfrmCPDBao = class(TForm)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,21 @@ interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
SysUtils, Classes, DB, ADODB, ImgList, Controls, cxStyles, cxLookAndFeels,
|
SysUtils, Classes, DB, ADODB, ImgList, Controls, cxStyles, cxLookAndFeels,
|
||||||
Windows,Messages,forms,OleCtnrs,DateUtils, cxClasses;
|
Windows,Messages,forms,OleCtnrs,DateUtils, cxClasses, 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;
|
||||||
var
|
var
|
||||||
DConString:String; {全局连接字符串}
|
DConString:String; {全局连接字符串}
|
||||||
server, dtbase, user, pswd: String; {数据库连接参数}
|
server, dtbase, user, pswd: String; {数据库连接参数}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
object frmJYOrderCDOne: TfrmJYOrderCDOne
|
object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
Left = 259
|
Left = 763
|
||||||
Top = 110
|
Top = 367
|
||||||
Width = 1382
|
Width = 1382
|
||||||
Height = 754
|
Height = 754
|
||||||
Caption = #26816#39564#25253#21578
|
Caption = #26816#39564#25253#21578
|
||||||
|
|
@ -20,7 +20,8 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
object ToolBar1: TToolBar
|
object ToolBar1: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 1366
|
Width = 1374
|
||||||
|
Height = 62
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
ButtonWidth = 107
|
ButtonWidth = 107
|
||||||
|
|
@ -92,51 +93,52 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25209#37327#35843#25972#37325#37327
|
Caption = #25209#37327#35843#25972#37325#37327
|
||||||
ImageIndex = 54
|
ImageIndex = 54
|
||||||
|
Wrap = True
|
||||||
OnClick = ToolButton5Click
|
OnClick = ToolButton5Click
|
||||||
end
|
end
|
||||||
object ToolButton1: TToolButton
|
object ToolButton1: TToolButton
|
||||||
Left = 537
|
Left = 0
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25171#21360#26631#31614
|
Caption = #25171#21360#26631#31614
|
||||||
ImageIndex = 96
|
ImageIndex = 96
|
||||||
OnClick = ToolButton1Click
|
OnClick = ToolButton1Click
|
||||||
end
|
end
|
||||||
object TCPDB: TToolButton
|
object TCPDB: TToolButton
|
||||||
Left = 624
|
Left = 87
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25104#21697#25171#21253
|
Caption = #25104#21697#25171#21253
|
||||||
ImageIndex = 57
|
ImageIndex = 57
|
||||||
OnClick = TCPDBClick
|
OnClick = TCPDBClick
|
||||||
end
|
end
|
||||||
object ToolButton3: TToolButton
|
object ToolButton3: TToolButton
|
||||||
Left = 711
|
Left = 174
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25171#21360#21253#26631#31614
|
Caption = #25171#21360#21253#26631#31614
|
||||||
ImageIndex = 12
|
ImageIndex = 12
|
||||||
OnClick = ToolButton3Click
|
OnClick = ToolButton3Click
|
||||||
end
|
end
|
||||||
object ToolButton2: TToolButton
|
object ToolButton2: TToolButton
|
||||||
Left = 810
|
Left = 273
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25171#21360#26816#39564#25253#21578
|
Caption = #25171#21360#26816#39564#25253#21578
|
||||||
ImageIndex = 12
|
ImageIndex = 12
|
||||||
OnClick = ToolButton2Click
|
OnClick = ToolButton2Click
|
||||||
end
|
end
|
||||||
object ToolButton4: TToolButton
|
object ToolButton4: TToolButton
|
||||||
Left = 921
|
Left = 384
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25442#31639#31995#25968
|
Caption = #25442#31639#31995#25968
|
||||||
ImageIndex = 57
|
ImageIndex = 57
|
||||||
OnClick = ToolButton4Click
|
OnClick = ToolButton4Click
|
||||||
end
|
end
|
||||||
object TBAftChkHX: TToolButton
|
object TBAftChkHX: TToolButton
|
||||||
Left = 1008
|
Left = 471
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #26816#21518#22238#20462
|
Caption = #26816#21518#22238#20462
|
||||||
ImageIndex = 54
|
ImageIndex = 54
|
||||||
|
|
@ -144,8 +146,8 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
OnClick = TBAftChkHXClick
|
OnClick = TBAftChkHXClick
|
||||||
end
|
end
|
||||||
object TBClose: TToolButton
|
object TBClose: TToolButton
|
||||||
Left = 1095
|
Left = 558
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #20851#38381
|
Caption = #20851#38381
|
||||||
ImageIndex = 55
|
ImageIndex = 55
|
||||||
|
|
@ -154,8 +156,8 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
end
|
end
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 32
|
Top = 62
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 61
|
Height = 61
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
|
|
@ -569,9 +571,9 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
end
|
end
|
||||||
object cxGrid1: TcxGrid
|
object cxGrid1: TcxGrid
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 125
|
Top = 155
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 590
|
Height = 568
|
||||||
Align = alClient
|
Align = alClient
|
||||||
PopupMenu = PopupMenu1
|
PopupMenu = PopupMenu1
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
|
@ -1109,13 +1111,13 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||||
end
|
end
|
||||||
object Panel7: TPanel
|
object Panel7: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 93
|
Top = 123
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 32
|
Height = 32
|
||||||
Align = alTop
|
Align = alTop
|
||||||
TabOrder = 7
|
TabOrder = 7
|
||||||
DesignSize = (
|
DesignSize = (
|
||||||
1366
|
1374
|
||||||
32)
|
32)
|
||||||
object LBCPAP: TLabel
|
object LBCPAP: TLabel
|
||||||
Left = 643
|
Left = 643
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,20 @@ uses
|
||||||
cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter, RM_Dataset, RM_System,
|
cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter, RM_Dataset, RM_System,
|
||||||
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, Menus, MovePanel, cxTextEdit,
|
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, Menus, MovePanel, cxTextEdit,
|
||||||
cxContainer, cxCurrencyEdit, cxLookAndFeels, cxLookAndFeelPainters, Math,
|
cxContainer, cxCurrencyEdit, cxLookAndFeels, cxLookAndFeelPainters, Math,
|
||||||
cxNavigator;
|
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
|
||||||
TfrmJYOrderCDOne = class(TForm)
|
TfrmJYOrderCDOne = class(TForm)
|
||||||
|
|
@ -1166,20 +1179,25 @@ begin
|
||||||
begin
|
begin
|
||||||
Close;
|
Close;
|
||||||
SQL.Clear;
|
SQL.Clear;
|
||||||
sql.Add('select A.Baoid,A.BaoNo,A.MJTypeOther as QtyUnit,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,');
|
sql.Add('select A.Baoid,A.BaoNo,A.MJTypeOther as QtyUnit,C.KHorderNo,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,C.BlBName,');
|
||||||
|
SQL.Add('C.PRTCode,C.Sorddefstr5,C.PRTSpec,C.PRTMF,C.PRTKZ,C.PRTHX, ');
|
||||||
|
sql.Add('PRTCodeName=DBO.F_Get_Order_SubStr(BaoID,''BNCodeName''),');
|
||||||
sql.Add('PRTColor=DBO.F_Get_Order_SubStr(BaoID,''BNColor''),SOrddefstr1=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr1''),');
|
sql.Add('PRTColor=DBO.F_Get_Order_SubStr(BaoID,''BNColor''),SOrddefstr1=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr1''),');
|
||||||
sql.Add('SOrddefstr4=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr4''),PRtHX=DBO.F_Get_Order_SubStr(BaoID,''BNPRtHX''), ');
|
sql.Add('SOrddefstr4=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr4''),PRtHX=DBO.F_Get_Order_SubStr(BaoID,''BNPRtHX''), ');
|
||||||
sql.Add('Mjstr4=DBO.F_Get_Order_SubStr(BaoID,''BNGangNo''), ');
|
sql.Add('Mjstr4=DBO.F_Get_Order_SubStr(BaoID,''BNGangNo''), ');
|
||||||
|
sql.Add('MJXH=DBO.F_Get_Order_SubStr(BaoID,''BNMJXH''), ');
|
||||||
sql.Add('BNMJLENLIST=DBO.F_Get_Order_SubStr(BaoID,''BNMJLENLIST''), ');
|
sql.Add('BNMJLENLIST=DBO.F_Get_Order_SubStr(BaoID,''BNMJLENLIST''), ');
|
||||||
sql.Add('PRTkuanNo=DBO.F_Get_Order_SubStr(BaoID,''BNPrtkuanno''),');
|
sql.Add('PRTkuanNo=DBO.F_Get_Order_SubStr(BaoID,''BNPrtkuanno''),');
|
||||||
sql.Add('khConNo=(select top 1 khConNo from JYOrderCon_Main X where X.ConNO=D.conNO), ');
|
sql.Add('khConNo=(select top 1 khConNo from JYOrderCon_Main X where X.ConNO=D.conNO), ');
|
||||||
sql.Add('MprtCodeNameEng=(select top 1 Note from KH_Zdy X where X.zdyName=D.MprtCodeName), ');
|
sql.Add('MprtCodeNameEng=(select top 1 Note from KH_Zdy X where X.zdyName=D.MprtCodeName), ');
|
||||||
SQL.ADD('count(A.MJID) as JSl,sum(A.MJMaoZ) MJMAOZ,sum(MJQty3) as MJQty3,sum(MJQty4) as MJQty4,SUM(A.MJLen)as MJLen');
|
SQL.ADD('count(A.MJID) as JSl,sum(A.MJMaoZ) MJMAOZ,sum(MJQty3) as MJQty3,sum(MJQty4) as MJQty4,SUM(A.MJLen)as MJLen');
|
||||||
sql.Add('from WFB_MJJY A');
|
sql.Add('from WFB_MJJY A');
|
||||||
sql.Add(' inner join JYOrder_Sub C on C.SubID=A.SubID');
|
sql.Add('inner join JYOrder_Sub C on C.SubID=A.SubID');
|
||||||
sql.Add(' inner join JYOrder_Main D on D.MainID=A.MainID');
|
sql.Add('inner join JYOrder_Main D on D.MainID=A.MainID');
|
||||||
SQL.Add(' where A.BaoID=''' + Trim(Order_Main.fieldbyname('BaoID').AsString) + '''');
|
SQL.Add(' where A.BaoID=''' + Trim(Order_Main.fieldbyname('BaoID').AsString) + '''');
|
||||||
SQL.ADD('group by A.Baoid,A.BaoNo,A.MJTypeOther,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName');
|
SQL.ADD('group by A.Baoid,A.BaoNo,A.MJTypeOther,C.KHorderNo,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,C.BlBName');
|
||||||
|
SQL.Add(',C.PRTCode,C.Sorddefstr5,C.PRTSpec,C.PRTMF,C.PRTKZ,C.PRTHX ');
|
||||||
|
|
||||||
Open;
|
Open;
|
||||||
end;
|
end;
|
||||||
if Trim(ADOQueryPrint.fieldbyname('NLBName').AsString) <> '' then
|
if Trim(ADOQueryPrint.fieldbyname('NLBName').AsString) <> '' then
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Left = 183
|
Left = 1098
|
||||||
Top = 22
|
Top = 387
|
||||||
Width = 1378
|
Width = 1378
|
||||||
Height = 752
|
Height = 752
|
||||||
Caption = #25104#21697#26816#39564
|
Caption = #25104#21697#26816#39564
|
||||||
|
|
@ -21,7 +21,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 81
|
Top = 81
|
||||||
Width = 353
|
Width = 353
|
||||||
Height = 632
|
Height = 640
|
||||||
Align = alLeft
|
Align = alLeft
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object Tv3: TcxGridDBTableView
|
object Tv3: TcxGridDBTableView
|
||||||
|
|
@ -108,6 +108,13 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Styles.Header = cxStyle5
|
Styles.Header = cxStyle5
|
||||||
Width = 40
|
Width = 40
|
||||||
end
|
end
|
||||||
|
object Tv3baoNo: TcxGridDBColumn
|
||||||
|
Caption = #21253#21495
|
||||||
|
DataBinding.FieldName = 'baoNo'
|
||||||
|
HeaderAlignmentHorz = taCenter
|
||||||
|
Styles.Header = cxStyle5
|
||||||
|
Width = 80
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object cxGridLevel2: TcxGridLevel
|
object cxGridLevel2: TcxGridLevel
|
||||||
GridView = Tv3
|
GridView = Tv3
|
||||||
|
|
@ -116,8 +123,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
object ScrollBox1: TScrollBox
|
object ScrollBox1: TScrollBox
|
||||||
Left = 833
|
Left = 833
|
||||||
Top = 81
|
Top = 81
|
||||||
Width = 529
|
Width = 537
|
||||||
Height = 632
|
Height = 640
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
object SpeedButton13: TSpeedButton
|
object SpeedButton13: TSpeedButton
|
||||||
|
|
@ -1106,7 +1113,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Left = 637
|
Left = 637
|
||||||
Top = 81
|
Top = 81
|
||||||
Width = 196
|
Width = 196
|
||||||
Height = 632
|
Height = 640
|
||||||
Align = alLeft
|
Align = alLeft
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
BevelOuter = bvLowered
|
BevelOuter = bvLowered
|
||||||
|
|
@ -1166,7 +1173,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Label6: TLabel
|
object Label6: TLabel
|
||||||
Left = 251
|
Left = 251
|
||||||
Top = 130
|
Top = 114
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 23
|
Height = 23
|
||||||
Caption = #24133#23485
|
Caption = #24133#23485
|
||||||
|
|
@ -1192,7 +1199,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Label10: TLabel
|
object Label10: TLabel
|
||||||
Left = 15
|
Left = 15
|
||||||
Top = 339
|
Top = 369
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 23
|
Height = 23
|
||||||
Caption = #27491#21697
|
Caption = #27491#21697
|
||||||
|
|
@ -1205,7 +1212,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Label12: TLabel
|
object Label12: TLabel
|
||||||
Left = 100
|
Left = 100
|
||||||
Top = 339
|
Top = 369
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 22
|
Height = 22
|
||||||
Caption = #27425#21697
|
Caption = #27425#21697
|
||||||
|
|
@ -1310,7 +1317,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Label26: TLabel
|
object Label26: TLabel
|
||||||
Left = 15
|
Left = 15
|
||||||
Top = 387
|
Top = 413
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 22
|
Height = 22
|
||||||
Caption = #20986#32440
|
Caption = #20986#32440
|
||||||
|
|
@ -1389,7 +1396,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Label34: TLabel
|
object Label34: TLabel
|
||||||
Left = 15
|
Left = 15
|
||||||
Top = 438
|
Top = 460
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 22
|
Height = 22
|
||||||
Caption = #20221#25968
|
Caption = #20221#25968
|
||||||
|
|
@ -1466,8 +1473,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
end
|
end
|
||||||
object Label45: TLabel
|
object Label45: TLabel
|
||||||
Left = 247
|
Left = 17
|
||||||
Top = 138
|
Top = 331
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 23
|
Height = 23
|
||||||
Caption = #21253#21495
|
Caption = #21253#21495
|
||||||
|
|
@ -1479,8 +1486,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
end
|
end
|
||||||
object MJFK: TEdit
|
object MJFK: TEdit
|
||||||
Left = 296
|
Left = 304
|
||||||
Top = 121
|
Top = 105
|
||||||
Width = 90
|
Width = 90
|
||||||
Height = 41
|
Height = 41
|
||||||
Color = clSilver
|
Color = clSilver
|
||||||
|
|
@ -1531,7 +1538,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnKeyPress = MJstr3KeyPress
|
OnKeyPress = MJstr3KeyPress
|
||||||
end
|
end
|
||||||
object BTPrint: TButton
|
object BTPrint: TButton
|
||||||
Left = 6
|
Left = 14
|
||||||
Top = 496
|
Top = 496
|
||||||
Width = 83
|
Width = 83
|
||||||
Height = 53
|
Height = 53
|
||||||
|
|
@ -1562,7 +1569,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Edit3: TEdit
|
object Edit3: TEdit
|
||||||
Left = 60
|
Left = 60
|
||||||
Top = 333
|
Top = 363
|
||||||
Width = 39
|
Width = 39
|
||||||
Height = 43
|
Height = 43
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -1579,7 +1586,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Edit4: TEdit
|
object Edit4: TEdit
|
||||||
Left = 138
|
Left = 138
|
||||||
Top = 333
|
Top = 363
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 43
|
Height = 43
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -1663,7 +1670,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Edit6: TEdit
|
object Edit6: TEdit
|
||||||
Left = 60
|
Left = 60
|
||||||
Top = 381
|
Top = 407
|
||||||
Width = 40
|
Width = 40
|
||||||
Height = 43
|
Height = 43
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -1731,7 +1738,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object ComboBox1: TComboBox
|
object ComboBox1: TComboBox
|
||||||
Left = 60
|
Left = 60
|
||||||
Top = 430
|
Top = 452
|
||||||
Width = 122
|
Width = 122
|
||||||
Height = 40
|
Height = 40
|
||||||
Style = csDropDownList
|
Style = csDropDownList
|
||||||
|
|
@ -1834,8 +1841,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnKeyPress = MJstr3KeyPress
|
OnKeyPress = MJstr3KeyPress
|
||||||
end
|
end
|
||||||
object baoNo: TEdit
|
object baoNo: TEdit
|
||||||
Left = 293
|
Left = 61
|
||||||
Top = 130
|
Top = 325
|
||||||
Width = 90
|
Width = 90
|
||||||
Height = 37
|
Height = 37
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -1868,7 +1875,6 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 23
|
TabOrder = 23
|
||||||
Visible = False
|
|
||||||
OnClick = Button7Click
|
OnClick = Button7Click
|
||||||
end
|
end
|
||||||
object ComboBox2: TComboBox
|
object ComboBox2: TComboBox
|
||||||
|
|
@ -2088,7 +2094,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
object Panel4: TPanel
|
object Panel4: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 1362
|
Width = 1370
|
||||||
Height = 81
|
Height = 81
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
|
|
@ -2097,14 +2103,14 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
object Panel5: TPanel
|
object Panel5: TPanel
|
||||||
Left = 2
|
Left = 2
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 1358
|
Width = 1366
|
||||||
Height = 77
|
Height = 77
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object Panel6: TPanel
|
object Panel6: TPanel
|
||||||
Left = 1
|
Left = 1
|
||||||
Top = 31
|
Top = 31
|
||||||
Width = 1356
|
Width = 1364
|
||||||
Height = 48
|
Height = 48
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
|
|
@ -2328,7 +2334,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
object ToolBar1: TToolBar
|
object ToolBar1: TToolBar
|
||||||
Left = 1
|
Left = 1
|
||||||
Top = 1
|
Top = 1
|
||||||
Width = 1356
|
Width = 1364
|
||||||
Height = 30
|
Height = 30
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
ButtonWidth = 83
|
ButtonWidth = 83
|
||||||
|
|
@ -2348,16 +2354,133 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
ShowCaptions = True
|
ShowCaptions = True
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
object ToolButton1: TToolButton
|
object Panel9: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
|
Width = 545
|
||||||
|
Height = 30
|
||||||
|
BevelOuter = bvNone
|
||||||
|
Color = clSkyBlue
|
||||||
|
TabOrder = 0
|
||||||
|
object Label49: TLabel
|
||||||
|
Left = 58
|
||||||
|
Top = 7
|
||||||
|
Width = 84
|
||||||
|
Height = 20
|
||||||
|
Caption = #21367#21495#33539#22260
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -20
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
end
|
||||||
|
object Label50: TLabel
|
||||||
|
Left = 198
|
||||||
|
Top = 3
|
||||||
|
Width = 14
|
||||||
|
Height = 25
|
||||||
|
Caption = '-'
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -25
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
end
|
||||||
|
object Label53: TLabel
|
||||||
|
Left = 278
|
||||||
|
Top = 8
|
||||||
|
Width = 84
|
||||||
|
Height = 20
|
||||||
|
Caption = #21253#21495#33539#22260
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -20
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
end
|
||||||
|
object Label54: TLabel
|
||||||
|
Left = 418
|
||||||
|
Top = 5
|
||||||
|
Width = 14
|
||||||
|
Height = 25
|
||||||
|
Caption = '-'
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -25
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
end
|
||||||
|
object MaxRollNo: TEdit
|
||||||
|
Left = 212
|
||||||
|
Top = 1
|
||||||
|
Width = 57
|
||||||
|
Height = 28
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -20
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 1
|
||||||
|
OnClick = Edit1Click
|
||||||
|
end
|
||||||
|
object MinRollNo: TEdit
|
||||||
|
Left = 143
|
||||||
|
Top = 1
|
||||||
|
Width = 57
|
||||||
|
Height = 28
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -20
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 0
|
||||||
|
OnClick = Edit1Click
|
||||||
|
end
|
||||||
|
object MinBaoNO: TEdit
|
||||||
|
Left = 363
|
||||||
|
Top = 2
|
||||||
|
Width = 57
|
||||||
|
Height = 28
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -20
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 2
|
||||||
|
OnClick = Edit1Click
|
||||||
|
end
|
||||||
|
object MaxBaoNO: TEdit
|
||||||
|
Left = 434
|
||||||
|
Top = 2
|
||||||
|
Width = 57
|
||||||
|
Height = 28
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -20
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 3
|
||||||
|
OnClick = Edit1Click
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object ToolButton1: TToolButton
|
||||||
|
Left = 545
|
||||||
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #21047#26032
|
Caption = #21047#26032
|
||||||
ImageIndex = 9
|
ImageIndex = 9
|
||||||
OnClick = ToolButton1Click
|
OnClick = ToolButton1Click
|
||||||
end
|
end
|
||||||
object TBCD: TToolButton
|
object TBCD: TToolButton
|
||||||
Left = 63
|
Left = 608
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #30133#28857#31649#29702
|
Caption = #30133#28857#31649#29702
|
||||||
|
|
@ -2365,7 +2488,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnClick = TBCDClick
|
OnClick = TBCDClick
|
||||||
end
|
end
|
||||||
object ToolButton3: TToolButton
|
object ToolButton3: TToolButton
|
||||||
Left = 150
|
Left = 695
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #21024#38500
|
Caption = #21024#38500
|
||||||
|
|
@ -2373,7 +2496,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnClick = ToolButton3Click
|
OnClick = ToolButton3Click
|
||||||
end
|
end
|
||||||
object ToolButton2: TToolButton
|
object ToolButton2: TToolButton
|
||||||
Left = 213
|
Left = 758
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #20462#25913
|
Caption = #20462#25913
|
||||||
|
|
@ -2381,7 +2504,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnClick = ToolButton2Click
|
OnClick = ToolButton2Click
|
||||||
end
|
end
|
||||||
object TBClose: TToolButton
|
object TBClose: TToolButton
|
||||||
Left = 276
|
Left = 821
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #20851#38381
|
Caption = #20851#38381
|
||||||
|
|
@ -2392,8 +2515,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object MovePanel1: TMovePanel
|
object MovePanel1: TMovePanel
|
||||||
Left = 846
|
Left = 838
|
||||||
Top = 157
|
Top = 189
|
||||||
Width = 391
|
Width = 391
|
||||||
Height = 300
|
Height = 300
|
||||||
BevelInner = bvLowered
|
BevelInner = bvLowered
|
||||||
|
|
@ -2645,7 +2768,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Left = 353
|
Left = 353
|
||||||
Top = 81
|
Top = 81
|
||||||
Width = 284
|
Width = 284
|
||||||
Height = 632
|
Height = 640
|
||||||
Align = alLeft
|
Align = alLeft
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
BevelOuter = bvLowered
|
BevelOuter = bvLowered
|
||||||
|
|
@ -2654,7 +2777,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Left = 2
|
Left = 2
|
||||||
Top = 2
|
Top = 2
|
||||||
Width = 280
|
Width = 280
|
||||||
Height = 303
|
Height = 311
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object Tv2: TcxGridDBTableView
|
object Tv2: TcxGridDBTableView
|
||||||
|
|
@ -2763,7 +2886,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object Panel8: TPanel
|
object Panel8: TPanel
|
||||||
Left = 2
|
Left = 2
|
||||||
Top = 305
|
Top = 313
|
||||||
Width = 280
|
Width = 280
|
||||||
Height = 41
|
Height = 41
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
|
|
@ -2779,7 +2902,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
end
|
end
|
||||||
object AOrdDefNote1: TRichEdit
|
object AOrdDefNote1: TRichEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
Top = 346
|
Top = 354
|
||||||
Width = 280
|
Width = 280
|
||||||
Height = 284
|
Height = 284
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,20 @@ uses
|
||||||
cxControls, cxGridCustomView, cxGrid, RM_Common, RM_Class, RM_GridReport,
|
cxControls, cxGridCustomView, cxGrid, RM_Common, RM_Class, RM_GridReport,
|
||||||
RM_System, RM_Dataset, ADODB, DBClient, cxGridCustomPopupMenu, cxGridPopupMenu,
|
RM_System, RM_Dataset, ADODB, DBClient, cxGridCustomPopupMenu, cxGridPopupMenu,
|
||||||
ExtCtrls, ComCtrls, ToolWin, cxTextEdit, Buttons, cxSplitter, cxCheckBox,
|
ExtCtrls, ComCtrls, ToolWin, cxTextEdit, Buttons, cxSplitter, cxCheckBox,
|
||||||
MovePanel, cxLookAndFeels, cxLookAndFeelPainters, cxNavigator;
|
MovePanel, cxLookAndFeels, 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
|
||||||
TfrmMJManageNewFDNewSF = class(TForm)
|
TfrmMJManageNewFDNewSF = class(TForm)
|
||||||
|
|
@ -245,6 +258,16 @@ type
|
||||||
BaoID: TEdit;
|
BaoID: TEdit;
|
||||||
Button7: TButton;
|
Button7: TButton;
|
||||||
ComboBox2: TComboBox;
|
ComboBox2: TComboBox;
|
||||||
|
Tv3baoNo: TcxGridDBColumn;
|
||||||
|
Panel9: TPanel;
|
||||||
|
Label49: TLabel;
|
||||||
|
Label50: TLabel;
|
||||||
|
Label53: TLabel;
|
||||||
|
Label54: TLabel;
|
||||||
|
MaxRollNo: TEdit;
|
||||||
|
MinRollNo: TEdit;
|
||||||
|
MinBaoNO: TEdit;
|
||||||
|
MaxBaoNO: TEdit;
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure TBCloseClick(Sender: TObject);
|
procedure TBCloseClick(Sender: TObject);
|
||||||
|
|
@ -308,7 +331,7 @@ type
|
||||||
{ Private declarations }
|
{ Private declarations }
|
||||||
FInt, PState, PrintInt, SCInitGrid, FState, FCK: Integer;
|
FInt, PState, PrintInt, SCInitGrid, FState, FCK: Integer;
|
||||||
FColumn, FBanZu, FAPID, FMainId, FSubId, FFFMJID: string;
|
FColumn, FBanZu, FAPID, FMainId, FSubId, FFFMJID: string;
|
||||||
fRollType, flbtype: string;
|
fRollType, flbtype, fbaotype, fbaosx : string;
|
||||||
isCommopen, IsJsMessage: boolean;
|
isCommopen, IsJsMessage: boolean;
|
||||||
MValue, FCDName: string;
|
MValue, FCDName: string;
|
||||||
fxsws, fxsws1: string;
|
fxsws, fxsws1: string;
|
||||||
|
|
@ -322,6 +345,7 @@ type
|
||||||
procedure AddSLNew(Fbtn: TSpeedButton);
|
procedure AddSLNew(Fbtn: TSpeedButton);
|
||||||
procedure AddCDNew(Fbtn: TSpeedButton);
|
procedure AddCDNew(Fbtn: TSpeedButton);
|
||||||
procedure SavedataCK();
|
procedure SavedataCK();
|
||||||
|
procedure PrtBaoData(FBaoid: string);
|
||||||
procedure PrtData(FMJID: string);
|
procedure PrtData(FMJID: string);
|
||||||
procedure OpenCom(DllName: string);
|
procedure OpenCom(DllName: string);
|
||||||
procedure CloseCom(DllName: string);
|
procedure CloseCom(DllName: string);
|
||||||
|
|
@ -344,6 +368,97 @@ uses
|
||||||
U_DataLink, U_Fun, U_ZDYHelp, U_iniParam, U_ClothHCList;
|
U_DataLink, U_Fun, U_ZDYHelp, U_iniParam, U_ClothHCList;
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
|
procedure TfrmMJManageNewFDNewSF.PrtBaoData(FBaoid: string);
|
||||||
|
var
|
||||||
|
fPrintFile: string;
|
||||||
|
Txt, fImagePath: string;
|
||||||
|
Moudle: THandle;
|
||||||
|
Makebar: TMakebar;
|
||||||
|
Mixtext: TMixtext;
|
||||||
|
i: Integer;
|
||||||
|
begin
|
||||||
|
if CDS_MJID.IsEmpty then
|
||||||
|
exit;
|
||||||
|
CDS_MJID.First;
|
||||||
|
with ADOQueryPrint do
|
||||||
|
begin
|
||||||
|
Close;
|
||||||
|
SQL.Clear;
|
||||||
|
sql.Add('select A.Baoid,A.BaoNo,A.MJTypeOther as QtyUnit,C.KHorderNo,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,C.BlBName,');
|
||||||
|
SQL.Add('C.PRTCode,C.Sorddefstr5,C.PRTSpec,C.PRTMF,C.PRTKZ,C.PRTHX, ');
|
||||||
|
sql.Add('PRTCodeName=DBO.F_Get_Order_SubStr(BaoID,''BNCodeName''),');
|
||||||
|
sql.Add('PRTColor=DBO.F_Get_Order_SubStr(BaoID,''BNColor''),SOrddefstr1=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr1''),');
|
||||||
|
sql.Add('SOrddefstr4=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr4''),PRtHX=DBO.F_Get_Order_SubStr(BaoID,''BNPRtHX''), ');
|
||||||
|
sql.Add('Mjstr4=DBO.F_Get_Order_SubStr(BaoID,''BNGangNo''), ');
|
||||||
|
sql.Add('MJXH=DBO.F_Get_Order_SubStr(BaoID,''BNMJXH''), ');
|
||||||
|
sql.Add('BNMJLENLIST=DBO.F_Get_Order_SubStr(BaoID,''BNMJLENLIST''), ');
|
||||||
|
sql.Add('PRTkuanNo=DBO.F_Get_Order_SubStr(BaoID,''BNPrtkuanno''),');
|
||||||
|
sql.Add('khConNo=(select top 1 khConNo from JYOrderCon_Main X where X.ConNO=D.conNO), ');
|
||||||
|
sql.Add('MprtCodeNameEng=(select top 1 Note from KH_Zdy X where X.zdyName=D.MprtCodeName), ');
|
||||||
|
SQL.ADD('count(A.MJID) as JSl,sum(A.MJMaoZ) MJMAOZ,sum(MJQty3) as MJQty3,sum(MJQty4) as MJQty4,SUM(A.MJLen)as MJLen');
|
||||||
|
sql.Add('from WFB_MJJY A');
|
||||||
|
sql.Add('inner join JYOrder_Sub C on C.SubID=A.SubID');
|
||||||
|
sql.Add('inner join JYOrder_Main D on D.MainID=A.MainID');
|
||||||
|
SQL.Add('where A.BaoID=''' + Trim(FBaoid) + '''');
|
||||||
|
SQL.ADD('group by A.Baoid,A.BaoNo,A.MJTypeOther,C.KHorderNo,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,C.BlBName');
|
||||||
|
SQL.Add(',C.PRTCode,C.Sorddefstr5,C.PRTSpec,C.PRTMF,C.PRTKZ,C.PRTHX ');
|
||||||
|
Open;
|
||||||
|
end;
|
||||||
|
if ADOQueryPrint.RecordCount > 1 then
|
||||||
|
begin
|
||||||
|
Application.MessageBox('打包错误,请重新打包!', '提示', 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
if ADOQueryPrint.RecordCount < 1 then
|
||||||
|
begin
|
||||||
|
Application.MessageBox('此包号还未被保存,请保存数据,在打印条码!', '提示', 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
try
|
||||||
|
Moudle := LoadLibrary('MakeQRBarcode.dll');
|
||||||
|
@Makebar := GetProcAddress(Moudle, 'Make');
|
||||||
|
@Mixtext := GetProcAddress(Moudle, 'MixText');
|
||||||
|
Txt := trim(FBaoid);
|
||||||
|
fImagePath := ExtractFilePath(Application.ExeName) + 'image\temp.bmp';
|
||||||
|
if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
|
||||||
|
CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
|
||||||
|
if FileExists(fImagePath) then
|
||||||
|
DeleteFile(fImagePath);
|
||||||
|
Makebar(pchar(Txt), Length(Txt), 3, 3, 0, PChar(fImagePath), 3);
|
||||||
|
except
|
||||||
|
application.MessageBox('条形码生成失败!', '提示信息', MB_ICONERROR);
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
if Trim(ADOQueryPrint.fieldbyname('NLBName').AsString) <> '' then
|
||||||
|
begin
|
||||||
|
ExportFtErpFile(Trim(ADOQueryPrint.fieldbyname('NLBName').AsString), ADOCmd);
|
||||||
|
fPrintFile := ExtractFilePath(Application.ExeName) + 'Report\' + Trim(ADOQueryPrint.fieldbyname('NLBName').AsString + '.rmf' )
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
ExportFtErpFile('包标签.rmf', ADOCmd);
|
||||||
|
fPrintFile := ExtractFilePath(Application.ExeName) + 'Report\包标签.rmf';
|
||||||
|
end;
|
||||||
|
|
||||||
|
if not FileExists(fPrintFile) then
|
||||||
|
begin
|
||||||
|
Application.MessageBox(PChar('没有找' + fPrintFile), '提示', 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
if FileExists(fPrintFile) then
|
||||||
|
begin
|
||||||
|
RMVariables['QRBARCODE'] := fImagePath;
|
||||||
|
RM2.LoadFromFile(fPrintFile);
|
||||||
|
RM2.DefaultCopies := 1;
|
||||||
|
//RM2.ShowReport;
|
||||||
|
RM2.printReport;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfrmMJManageNewFDNewSF.On1301(var Message: Tmessage);
|
procedure TfrmMJManageNewFDNewSF.On1301(var Message: Tmessage);
|
||||||
var
|
var
|
||||||
i1, i2: integer;
|
i1, i2: integer;
|
||||||
|
|
@ -1056,8 +1171,12 @@ begin
|
||||||
|
|
||||||
FieldByName('MJTypeOther').Value := Trim(Label9.Caption);
|
FieldByName('MJTypeOther').Value := Trim(Label9.Caption);
|
||||||
FieldByName('note').Value := Trim(note.Text);
|
FieldByName('note').Value := Trim(note.Text);
|
||||||
// FieldByName('baoNO').Value:=Trim(baono.text);
|
if fbaotype = '手动打包' then
|
||||||
// FieldByName('baoID').Value:=Trim(baoID.Text);
|
begin
|
||||||
|
FieldByName('baoNO').Value := Trim(baono.text);
|
||||||
|
FieldByName('baoID').Value := Trim(baoID.Text);
|
||||||
|
end;
|
||||||
|
|
||||||
Post;
|
Post;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
@ -1171,7 +1290,35 @@ begin
|
||||||
sql.Add('where MJID=''' + Trim(FMJID) + ''' ');
|
sql.Add('where MJID=''' + Trim(FMJID) + ''' ');
|
||||||
execsql;
|
execsql;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
if (fbaotype = '手动打包') or (fbaotype = '') or (PState = 2) then
|
||||||
|
begin
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
with ADOCmd do
|
||||||
|
begin
|
||||||
|
Close;
|
||||||
|
sql.Clear;
|
||||||
|
sql.Add('exec P_Update_Bao ''' + trim(FMJID) + ''' ');
|
||||||
|
if fbaotype = '单卷单包' then
|
||||||
|
begin
|
||||||
|
sql.Add(',1 ');
|
||||||
|
end
|
||||||
|
else if fbaotype = '多卷单色' then
|
||||||
|
begin
|
||||||
|
sql.Add(',2 ');
|
||||||
|
end
|
||||||
|
else if fbaotype = '多卷混色' then
|
||||||
|
begin
|
||||||
|
sql.Add(',3 ');
|
||||||
|
end;
|
||||||
|
execsql;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
//SavedataCK();
|
//SavedataCK();
|
||||||
ADOCmd.Connection.CommitTrans;
|
ADOCmd.Connection.CommitTrans;
|
||||||
Result := True;
|
Result := True;
|
||||||
|
|
@ -1361,6 +1508,43 @@ begin
|
||||||
//end;
|
//end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if Trim(Edit6.Text) = '√' then
|
||||||
|
begin
|
||||||
|
if (fbaotype = '手动打包') or (fbaotype = '') then
|
||||||
|
begin
|
||||||
|
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
with ADOCmd do
|
||||||
|
begin
|
||||||
|
Close;
|
||||||
|
sql.Clear;
|
||||||
|
sql.Add('exec P_View_Baoid ''' + trim(FFFMJID) + ''' ');
|
||||||
|
sql.Add(',''' + trim(FMainId) + ''' ,''' + trim(FSubId) + ''' ');
|
||||||
|
if fbaotype = '单卷单包' then
|
||||||
|
begin
|
||||||
|
sql.Add(' ,1 ');
|
||||||
|
end;
|
||||||
|
if fbaotype = '多卷单色' then
|
||||||
|
begin
|
||||||
|
sql.Add(' ,2 ');
|
||||||
|
end;
|
||||||
|
if fbaotype = '多卷混色' then
|
||||||
|
begin
|
||||||
|
sql.Add(' ,3 ');
|
||||||
|
end;
|
||||||
|
Open;
|
||||||
|
end;
|
||||||
|
|
||||||
|
if trim(ADOCmd.FieldByName('baoid').AsString) <> '' then
|
||||||
|
begin
|
||||||
|
PrtBaoData(ADOCmd.fieldbyname('baoid').AsString);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
Label16.Caption := '';
|
Label16.Caption := '';
|
||||||
BTAdd.Click;
|
BTAdd.Click;
|
||||||
MJQty4.SetFocus;
|
MJQty4.SetFocus;
|
||||||
|
|
@ -2109,10 +2293,13 @@ begin
|
||||||
MJSJKZ.Text := Trim(ADOTmp.fieldbyname('PRTKZ').AsString);
|
MJSJKZ.Text := Trim(ADOTmp.fieldbyname('PRTKZ').AsString);
|
||||||
MJXH.Text := inttostr(ADOTmp.fieldbyname('maxMJxh').AsInteger + 1);
|
MJXH.Text := inttostr(ADOTmp.fieldbyname('maxMJxh').AsInteger + 1);
|
||||||
|
|
||||||
|
fbaotype := Trim(ADOTmp.fieldbyname('baotype').AsString);
|
||||||
|
|
||||||
|
|
||||||
fxsws := Trim(ADOTmp.fieldbyname('xsws').AsString);
|
fxsws := Trim(ADOTmp.fieldbyname('xsws').AsString);
|
||||||
fxsws1 := Trim(ADOTmp.fieldbyname('xsws1').AsString);
|
fxsws1 := Trim(ADOTmp.fieldbyname('xsws1').AsString);
|
||||||
baoNO.Text := Trim(ADOTmp.fieldbyname('maxBaoNO').AsString);
|
baoNO.Text := Trim(ADOTmp.fieldbyname('maxBaoNO').AsString);
|
||||||
if GetLSNo(ADOCmd, FBaoID, 'BI', 'WFB_MJJY', 3, 1) = False then
|
if GetLSNo(ADOCmd, FBaoID, 'BI', 'WFB_MJJY', 4, 1) = False then
|
||||||
begin
|
begin
|
||||||
// ADOQueryCmd.Connection.RollbackTrans;
|
// ADOQueryCmd.Connection.RollbackTrans;
|
||||||
Application.MessageBox('取包条码最大号失败!', '提示', 0);
|
Application.MessageBox('取包条码最大号失败!', '提示', 0);
|
||||||
|
|
@ -2396,7 +2583,9 @@ begin
|
||||||
begin
|
begin
|
||||||
Close;
|
Close;
|
||||||
SQL.Clear;
|
SQL.Clear;
|
||||||
sql.Add('select A.Baoid,A.BaoNo,A.MJTypeOther as QtyUnit,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,');
|
sql.Add('select A.Baoid,A.BaoNo,A.MJTypeOther as QtyUnit,C.KHorderNo,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,C.BlBName,');
|
||||||
|
SQL.Add('C.PRTCode,C.Sorddefstr5,C.PRTSpec,C.PRTMF,C.PRTKZ,C.PRTHX, ');
|
||||||
|
sql.Add('PRTCodeName=DBO.F_Get_Order_SubStr(BaoID,''BNCodeName''),');
|
||||||
sql.Add('PRTColor=DBO.F_Get_Order_SubStr(BaoID,''BNColor''),SOrddefstr1=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr1''),');
|
sql.Add('PRTColor=DBO.F_Get_Order_SubStr(BaoID,''BNColor''),SOrddefstr1=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr1''),');
|
||||||
sql.Add('SOrddefstr4=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr4''),PRtHX=DBO.F_Get_Order_SubStr(BaoID,''BNPRtHX''), ');
|
sql.Add('SOrddefstr4=DBO.F_Get_Order_SubStr(BaoID,''BNSOrddefstr4''),PRtHX=DBO.F_Get_Order_SubStr(BaoID,''BNPRtHX''), ');
|
||||||
sql.Add('Mjstr4=DBO.F_Get_Order_SubStr(BaoID,''BNGangNo''), ');
|
sql.Add('Mjstr4=DBO.F_Get_Order_SubStr(BaoID,''BNGangNo''), ');
|
||||||
|
|
@ -2410,7 +2599,8 @@ begin
|
||||||
sql.Add('inner join JYOrder_Sub C on C.SubID=A.SubID');
|
sql.Add('inner join JYOrder_Sub C on C.SubID=A.SubID');
|
||||||
sql.Add('inner join JYOrder_Main D on D.MainID=A.MainID');
|
sql.Add('inner join JYOrder_Main D on D.MainID=A.MainID');
|
||||||
SQL.Add('where A.BaoID=''' + Trim(CDS_MJID.fieldbyname('baoID').AsString) + '''');
|
SQL.Add('where A.BaoID=''' + Trim(CDS_MJID.fieldbyname('baoID').AsString) + '''');
|
||||||
SQL.ADD('group by A.Baoid,A.BaoNo,A.MJTypeOther,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName');
|
SQL.ADD('group by A.Baoid,A.BaoNo,A.MJTypeOther,C.KHorderNo,D.OrderNo,D.conNo,D.customerNoName,D.MprtCodeName,D.Mprtspec,D.OrdPerson1,D.MPRTKuanNO,D.LBName,D.NLBName,C.BlBName');
|
||||||
|
SQL.Add(',C.PRTCode,C.Sorddefstr5,C.PRTSpec,C.PRTMF,C.PRTKZ,C.PRTHX ');
|
||||||
Open;
|
Open;
|
||||||
end;
|
end;
|
||||||
if ADOQueryPrint.RecordCount > 1 then
|
if ADOQueryPrint.RecordCount > 1 then
|
||||||
|
|
@ -2449,7 +2639,7 @@ begin
|
||||||
open;
|
open;
|
||||||
end;
|
end;
|
||||||
baoNo.Text := inttostr(ADOTmp.fieldbyname('maxbaoNO').AsInteger + 1);
|
baoNo.Text := inttostr(ADOTmp.fieldbyname('maxbaoNO').AsInteger + 1);
|
||||||
if GetLSNo(ADOTmp, FBaoID, 'BI', 'WFB_MJJY', 3, 1) = False then
|
if GetLSNo(ADOTmp, FBaoID, 'BI', 'WFB_MJJY', 4, 1) = False then
|
||||||
begin
|
begin
|
||||||
Application.MessageBox('取包条码最大号失败!', '提示', 0);
|
Application.MessageBox('取包条码最大号失败!', '提示', 0);
|
||||||
Exit;
|
Exit;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ object frmOrderInPut: TfrmOrderInPut
|
||||||
object ToolBar1: TToolBar
|
object ToolBar1: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 1197
|
Width = 1205
|
||||||
Height = 29
|
Height = 29
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
ButtonWidth = 59
|
ButtonWidth = 59
|
||||||
|
|
@ -58,7 +58,7 @@ object frmOrderInPut: TfrmOrderInPut
|
||||||
object ScrollBox1: TScrollBox
|
object ScrollBox1: TScrollBox
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 29
|
Top = 29
|
||||||
Width = 1197
|
Width = 1205
|
||||||
Height = 288
|
Height = 288
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelInner = bvNone
|
BevelInner = bvNone
|
||||||
|
|
@ -1494,7 +1494,7 @@ object frmOrderInPut: TfrmOrderInPut
|
||||||
object ToolBar2: TToolBar
|
object ToolBar2: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 317
|
Top = 317
|
||||||
Width = 1197
|
Width = 1205
|
||||||
Height = 29
|
Height = 29
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
ButtonWidth = 83
|
ButtonWidth = 83
|
||||||
|
|
@ -1541,12 +1541,12 @@ object frmOrderInPut: TfrmOrderInPut
|
||||||
object cxGrid1: TcxGrid
|
object cxGrid1: TcxGrid
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 346
|
Top = 346
|
||||||
Width = 1197
|
Width = 1205
|
||||||
Height = 270
|
Height = 277
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
object Tv1: TcxGridDBTableView
|
object Tv1: TcxGridDBTableView
|
||||||
NavigatorButtons.ConfirmDelete = False
|
Navigator.Buttons.CustomButtons = <>
|
||||||
DataController.DataSource = DataSource1
|
DataController.DataSource = DataSource1
|
||||||
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
||||||
DataController.Summary.DefaultGroupSummaryItems = <
|
DataController.Summary.DefaultGroupSummaryItems = <
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,21 @@ uses
|
||||||
cxTextEdit, cxMaskEdit, cxButtonEdit, StdCtrls, ToolWin, DBClient, ADODB,
|
cxTextEdit, cxMaskEdit, cxButtonEdit, StdCtrls, ToolWin, DBClient, ADODB,
|
||||||
ExtCtrls, BtnEdit, cxCalendar,StrUtils, cxCurrencyEdit, cxImage, Menus,
|
ExtCtrls, BtnEdit, cxCalendar,StrUtils, cxCurrencyEdit, cxImage, Menus,
|
||||||
cxLookAndFeelPainters, cxButtons, cxDBEdit, cxGridCustomPopupMenu,
|
cxLookAndFeelPainters, cxButtons, cxDBEdit, cxGridCustomPopupMenu,
|
||||||
cxGridPopupMenu;
|
cxGridPopupMenu, cxLookAndFeels, 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,
|
||||||
|
cxNavigator;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmOrderInPut = class(TForm)
|
TfrmOrderInPut = class(TForm)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
Left = 177
|
Left = 397
|
||||||
Top = 123
|
Top = 451
|
||||||
Width = 1375
|
Width = 1375
|
||||||
Height = 754
|
Height = 754
|
||||||
Caption = #26631#31614#35774#32622
|
Caption = #26631#31614#35774#32622
|
||||||
|
|
@ -20,7 +20,8 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
object ToolBar1: TToolBar
|
object ToolBar1: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 1359
|
Width = 1367
|
||||||
|
Height = 62
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
ButtonWidth = 107
|
ButtonWidth = 107
|
||||||
|
|
@ -102,51 +103,60 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #30382#37325#35774#32622'(Kg)'
|
Caption = #30382#37325#35774#32622'(Kg)'
|
||||||
ImageIndex = 60
|
ImageIndex = 60
|
||||||
|
Wrap = True
|
||||||
OnClick = ToolButton3Click
|
OnClick = ToolButton3Click
|
||||||
end
|
end
|
||||||
object ToolButton5: TToolButton
|
object ToolButton5: TToolButton
|
||||||
Left = 648
|
Left = 0
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25442#31639#31995#25968
|
Caption = #25442#31639#31995#25968
|
||||||
ImageIndex = 60
|
ImageIndex = 60
|
||||||
OnClick = ToolButton5Click
|
OnClick = ToolButton5Click
|
||||||
end
|
end
|
||||||
object ToolButton6: TToolButton
|
object ToolButton6: TToolButton
|
||||||
Left = 735
|
Left = 87
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #38271#24230#20301#25968
|
Caption = #38271#24230#20301#25968
|
||||||
ImageIndex = 60
|
ImageIndex = 60
|
||||||
OnClick = ToolButton6Click
|
OnClick = ToolButton6Click
|
||||||
end
|
end
|
||||||
object ToolButton9: TToolButton
|
object ToolButton9: TToolButton
|
||||||
Left = 822
|
Left = 174
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #37325#37327#20301#25968
|
Caption = #37325#37327#20301#25968
|
||||||
ImageIndex = 60
|
ImageIndex = 60
|
||||||
OnClick = ToolButton9Click
|
OnClick = ToolButton9Click
|
||||||
end
|
end
|
||||||
|
object ToolButton11: TToolButton
|
||||||
|
Left = 261
|
||||||
|
Top = 30
|
||||||
|
AutoSize = True
|
||||||
|
Caption = #27599#21253#21367#25968
|
||||||
|
ImageIndex = 60
|
||||||
|
OnClick = ToolButton11Click
|
||||||
|
end
|
||||||
object ToolButton7: TToolButton
|
object ToolButton7: TToolButton
|
||||||
Left = 909
|
Left = 348
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #39044#35272#21367#26631#31614
|
Caption = #39044#35272#21367#26631#31614
|
||||||
ImageIndex = 12
|
ImageIndex = 12
|
||||||
OnClick = ToolButton7Click
|
OnClick = ToolButton7Click
|
||||||
end
|
end
|
||||||
object ToolButton8: TToolButton
|
object ToolButton8: TToolButton
|
||||||
Left = 1008
|
Left = 447
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #39044#35272#21253#26631#31614
|
Caption = #39044#35272#21253#26631#31614
|
||||||
ImageIndex = 12
|
ImageIndex = 12
|
||||||
OnClick = ToolButton8Click
|
OnClick = ToolButton8Click
|
||||||
end
|
end
|
||||||
object PiZhong: TEdit
|
object PiZhong: TEdit
|
||||||
Left = 1107
|
Left = 546
|
||||||
Top = 0
|
Top = 30
|
||||||
Width = 121
|
Width = 121
|
||||||
Height = 30
|
Height = 30
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -158,8 +168,8 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
object TBClose: TToolButton
|
object TBClose: TToolButton
|
||||||
Left = 1228
|
Left = 667
|
||||||
Top = 0
|
Top = 30
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #20851#38381
|
Caption = #20851#38381
|
||||||
ImageIndex = 55
|
ImageIndex = 55
|
||||||
|
|
@ -168,8 +178,8 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
end
|
end
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 32
|
Top = 62
|
||||||
Width = 1359
|
Width = 1367
|
||||||
Height = 62
|
Height = 62
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
|
|
@ -406,8 +416,8 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
end
|
end
|
||||||
object cxGrid1: TcxGrid
|
object cxGrid1: TcxGrid
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 94
|
Top = 124
|
||||||
Width = 1359
|
Width = 1367
|
||||||
Height = 545
|
Height = 545
|
||||||
Align = alTop
|
Align = alTop
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
|
@ -570,21 +580,21 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
DataBinding.FieldName = 'SOrddefstr1'
|
DataBinding.FieldName = 'SOrddefstr1'
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Options.Editing = False
|
Options.Editing = False
|
||||||
Width = 60
|
Width = 74
|
||||||
end
|
end
|
||||||
object v1Column5: TcxGridDBColumn
|
object v1Column5: TcxGridDBColumn
|
||||||
Caption = #38271#24230#20301#25968
|
Caption = #38271#24230#20301#25968
|
||||||
DataBinding.FieldName = 'xsws'
|
DataBinding.FieldName = 'xsws'
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Options.Editing = False
|
Options.Editing = False
|
||||||
Width = 60
|
Width = 83
|
||||||
end
|
end
|
||||||
object v1Column6: TcxGridDBColumn
|
object v1Column6: TcxGridDBColumn
|
||||||
Caption = #37325#37327#20301#25968
|
Caption = #37325#37327#20301#25968
|
||||||
DataBinding.FieldName = 'XSWS1'
|
DataBinding.FieldName = 'XSWS1'
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Options.Editing = False
|
Options.Editing = False
|
||||||
Width = 60
|
Width = 74
|
||||||
end
|
end
|
||||||
object v1Column7: TcxGridDBColumn
|
object v1Column7: TcxGridDBColumn
|
||||||
Caption = #20108#32500#30721#31867#22411
|
Caption = #20108#32500#30721#31867#22411
|
||||||
|
|
@ -595,7 +605,7 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
#29305#27530)
|
#29305#27530)
|
||||||
Properties.OnEditValueChanged = v1Column7PropertiesEditValueChanged
|
Properties.OnEditValueChanged = v1Column7PropertiesEditValueChanged
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Width = 70
|
Width = 83
|
||||||
end
|
end
|
||||||
object Tv1Column1: TcxGridDBColumn
|
object Tv1Column1: TcxGridDBColumn
|
||||||
Caption = #29305#27530#23383#31526
|
Caption = #29305#27530#23383#31526
|
||||||
|
|
@ -603,7 +613,24 @@ object frmProductOrderLBNameSet: TfrmProductOrderLBNameSet
|
||||||
PropertiesClassName = 'TcxTextEditProperties'
|
PropertiesClassName = 'TcxTextEditProperties'
|
||||||
Properties.OnEditValueChanged = Tv1Column1PropertiesEditValueChanged
|
Properties.OnEditValueChanged = Tv1Column1PropertiesEditValueChanged
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Width = 65
|
Width = 69
|
||||||
|
end
|
||||||
|
object Tv1baotype: TcxGridDBColumn
|
||||||
|
Caption = #25171#21253#26041#24335
|
||||||
|
DataBinding.FieldName = 'baotype'
|
||||||
|
PropertiesClassName = 'TcxComboBoxProperties'
|
||||||
|
Properties.Items.Strings = (
|
||||||
|
#21333#21367#21333#21253
|
||||||
|
#25163#21160#25171#21253
|
||||||
|
#22810#21367#21333#33394)
|
||||||
|
Properties.OnEditValueChanged = Tv1baotypePropertiesEditValueChanged
|
||||||
|
HeaderAlignmentHorz = taCenter
|
||||||
|
Width = 80
|
||||||
|
end
|
||||||
|
object Tv1JS: TcxGridDBColumn
|
||||||
|
Caption = #27599#21253#21367#25968
|
||||||
|
DataBinding.FieldName = 'JS'
|
||||||
|
HeaderAlignmentHorz = taCenter
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGrid1Level1: TcxGridLevel
|
object cxGrid1Level1: TcxGridLevel
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,21 @@ uses
|
||||||
cxGridCustomView, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
|
cxGridCustomView, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
|
||||||
cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter, RM_Dataset, RM_System,
|
cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter, RM_Dataset, RM_System,
|
||||||
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, StrUtils, Menus, cxDropDownEdit,
|
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, StrUtils, Menus, cxDropDownEdit,
|
||||||
cxTextEdit, cxLookAndFeels, cxLookAndFeelPainters, cxNavigator;
|
cxTextEdit, cxLookAndFeels, 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
|
||||||
TfrmProductOrderLBNameSet = class(TForm)
|
TfrmProductOrderLBNameSet = class(TForm)
|
||||||
|
|
@ -96,6 +110,9 @@ type
|
||||||
ToolButton10: TToolButton;
|
ToolButton10: TToolButton;
|
||||||
v1Column7: TcxGridDBColumn;
|
v1Column7: TcxGridDBColumn;
|
||||||
Tv1Column1: TcxGridDBColumn;
|
Tv1Column1: TcxGridDBColumn;
|
||||||
|
ToolButton11: TToolButton;
|
||||||
|
Tv1baotype: TcxGridDBColumn;
|
||||||
|
Tv1JS: TcxGridDBColumn;
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
|
|
@ -127,6 +144,8 @@ type
|
||||||
procedure ToolButton10Click(Sender: TObject);
|
procedure ToolButton10Click(Sender: TObject);
|
||||||
procedure v1Column7PropertiesEditValueChanged(Sender: TObject);
|
procedure v1Column7PropertiesEditValueChanged(Sender: TObject);
|
||||||
procedure Tv1Column1PropertiesEditValueChanged(Sender: TObject);
|
procedure Tv1Column1PropertiesEditValueChanged(Sender: TObject);
|
||||||
|
procedure ToolButton11Click(Sender: TObject);
|
||||||
|
procedure Tv1baotypePropertiesEditValueChanged(Sender: TObject);
|
||||||
private
|
private
|
||||||
DQdate: TDateTime;
|
DQdate: TDateTime;
|
||||||
procedure InitGrid();
|
procedure InitGrid();
|
||||||
|
|
@ -1109,5 +1128,94 @@ begin
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfrmProductOrderLBNameSet.ToolButton11Click(Sender: TObject);
|
||||||
|
var
|
||||||
|
FPiZhong: string;
|
||||||
|
FReal: Double;
|
||||||
|
begin
|
||||||
|
if Order_Main.IsEmpty then
|
||||||
|
exit;
|
||||||
|
if Order_Main.Locate('SSel', True, []) = False then
|
||||||
|
begin
|
||||||
|
Application.MessageBox('没有选择数据!', '提示', 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
if Trim(PiZhong.Text) = '' then
|
||||||
|
begin
|
||||||
|
Application.MessageBox('每包卷数不能为空!', '提示', 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
if TryStrToFloat(PiZhong.Text, FReal) = False then
|
||||||
|
begin
|
||||||
|
Application.MessageBox('每包卷数非法数字!', '提示', 0);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
with order_Main do
|
||||||
|
begin
|
||||||
|
first;
|
||||||
|
while not Eof do
|
||||||
|
begin
|
||||||
|
if order_Main.FieldByName('Ssel').AsBoolean = true then
|
||||||
|
begin
|
||||||
|
with ADOQueryCmd do
|
||||||
|
begin
|
||||||
|
Close;
|
||||||
|
sql.Clear;
|
||||||
|
sql.Add('Update JYOrder_Sub Set JS=' + Trim(PiZhong.Text));
|
||||||
|
sql.Add(' where Subid=''' + Trim(Order_Main.fieldbyname('Subid').AsString) + '''');
|
||||||
|
ExecSQL;
|
||||||
|
end;
|
||||||
|
with Order_Main do
|
||||||
|
begin
|
||||||
|
Edit;
|
||||||
|
FieldByName('JS').Value := PiZhong.Text;
|
||||||
|
Post;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
next;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
CheckBox1.Checked := False;
|
||||||
|
with Order_Main do
|
||||||
|
begin
|
||||||
|
DisableControls;
|
||||||
|
first;
|
||||||
|
while not Eof do
|
||||||
|
begin
|
||||||
|
edit;
|
||||||
|
fieldbyname('Ssel').AsBoolean := False;
|
||||||
|
post;
|
||||||
|
next;
|
||||||
|
end;
|
||||||
|
first;
|
||||||
|
EnableControls;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TfrmProductOrderLBNameSet.Tv1baotypePropertiesEditValueChanged(
|
||||||
|
Sender: TObject);
|
||||||
|
var
|
||||||
|
mvalues: string;
|
||||||
|
begin
|
||||||
|
mvalues := TCXTextEdit(Sender).Text;
|
||||||
|
|
||||||
|
with Order_Main do
|
||||||
|
begin
|
||||||
|
edit;
|
||||||
|
fieldbyname('baotype').Value := mvalues;
|
||||||
|
post;
|
||||||
|
end;
|
||||||
|
tv1.Controller.EditingController.ShowEdit();
|
||||||
|
|
||||||
|
with ADOQueryCmd do
|
||||||
|
begin
|
||||||
|
Close;
|
||||||
|
sql.Clear;
|
||||||
|
sql.Add('Update JYOrder_Main Set baotype=''' + trim(mvalues) + ''' ');
|
||||||
|
sql.Add('where Mainid=''' + Trim(Order_Main.fieldbyname('Mainid').AsString) + '''');
|
||||||
|
ExecSQL;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
object ToolBar1: TToolBar
|
object ToolBar1: TToolBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 1366
|
Width = 1374
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
ButtonHeight = 30
|
ButtonHeight = 30
|
||||||
ButtonWidth = 95
|
ButtonWidth = 95
|
||||||
|
|
@ -155,7 +155,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 32
|
Top = 32
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 41
|
Height = 41
|
||||||
Align = alTop
|
Align = alTop
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
|
|
@ -384,12 +384,12 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
object cxGrid1: TcxGrid
|
object cxGrid1: TcxGrid
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 95
|
Top = 95
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 334
|
Height = 334
|
||||||
Align = alTop
|
Align = alTop
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
object Tv1: TcxGridDBTableView
|
object Tv1: TcxGridDBTableView
|
||||||
NavigatorButtons.ConfirmDelete = False
|
Navigator.Buttons.CustomButtons = <>
|
||||||
OnCellDblClick = Tv1CellDblClick
|
OnCellDblClick = Tv1CellDblClick
|
||||||
OnFocusedRecordChanged = Tv1FocusedRecordChanged
|
OnFocusedRecordChanged = Tv1FocusedRecordChanged
|
||||||
DataController.DataSource = DataSource1
|
DataController.DataSource = DataSource1
|
||||||
|
|
@ -708,8 +708,8 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
end
|
end
|
||||||
object cxSplitter1: TcxSplitter
|
object cxSplitter1: TcxSplitter
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 452
|
Top = 459
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 8
|
Height = 8
|
||||||
HotZoneClassName = 'TcxMediaPlayer9Style'
|
HotZoneClassName = 'TcxMediaPlayer9Style'
|
||||||
AlignSplitter = salBottom
|
AlignSplitter = salBottom
|
||||||
|
|
@ -717,8 +717,8 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
end
|
end
|
||||||
object Panel2: TPanel
|
object Panel2: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 460
|
Top = 467
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 256
|
Height = 256
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
Caption = 'Panel2'
|
Caption = 'Panel2'
|
||||||
|
|
@ -726,12 +726,12 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
object cxGrid2: TcxGrid
|
object cxGrid2: TcxGrid
|
||||||
Left = 1
|
Left = 1
|
||||||
Top = 1
|
Top = 1
|
||||||
Width = 987
|
Width = 995
|
||||||
Height = 254
|
Height = 254
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object TV2: TcxGridDBTableView
|
object TV2: TcxGridDBTableView
|
||||||
NavigatorButtons.ConfirmDelete = False
|
Navigator.Buttons.CustomButtons = <>
|
||||||
OnFocusedRecordChanged = TV2FocusedRecordChanged
|
OnFocusedRecordChanged = TV2FocusedRecordChanged
|
||||||
DataController.DataSource = DataSource2
|
DataController.DataSource = DataSource2
|
||||||
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
||||||
|
|
@ -999,7 +999,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object GroupBox1: TGroupBox
|
object GroupBox1: TGroupBox
|
||||||
Left = 988
|
Left = 996
|
||||||
Top = 1
|
Top = 1
|
||||||
Width = 377
|
Width = 377
|
||||||
Height = 254
|
Height = 254
|
||||||
|
|
@ -1029,19 +1029,20 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
||||||
object cxTabControl1: TcxTabControl
|
object cxTabControl1: TcxTabControl
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 73
|
Top = 73
|
||||||
Width = 1366
|
Width = 1374
|
||||||
Height = 22
|
Height = 22
|
||||||
Align = alTop
|
Align = alTop
|
||||||
Style = 9
|
|
||||||
TabIndex = 0
|
|
||||||
TabOrder = 6
|
TabOrder = 6
|
||||||
Tabs.Strings = (
|
Properties.CustomButtons.Buttons = <>
|
||||||
|
Properties.Style = 9
|
||||||
|
Properties.TabIndex = 0
|
||||||
|
Properties.Tabs.Strings = (
|
||||||
#26410#23436#25104
|
#26410#23436#25104
|
||||||
#24050#23436#25104
|
#24050#23436#25104
|
||||||
#20840#37096)
|
#20840#37096)
|
||||||
OnChange = cxTabControl1Change
|
OnChange = cxTabControl1Change
|
||||||
ClientRectBottom = 22
|
ClientRectBottom = 22
|
||||||
ClientRectRight = 1366
|
ClientRectRight = 1374
|
||||||
ClientRectTop = 19
|
ClientRectTop = 19
|
||||||
end
|
end
|
||||||
object cxGridPopupMenu1: TcxGridPopupMenu
|
object cxGridPopupMenu1: TcxGridPopupMenu
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,22 @@ uses
|
||||||
cxGridDBTableView, cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter,
|
cxGridDBTableView, cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter,
|
||||||
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, RM_e_Xls,
|
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, RM_e_Xls,
|
||||||
Menus, cxButtonEdit, cxContainer, cxImage, cxDBEdit, IdBaseComponent,
|
Menus, cxButtonEdit, cxContainer, cxImage, cxDBEdit, IdBaseComponent,
|
||||||
IdComponent, IdTCPConnection, IdTCPClient, IdFTP,shellAPI, cxPC;
|
IdComponent, IdTCPConnection, IdTCPClient, IdFTP,shellAPI, cxPC,
|
||||||
|
cxLookAndFeels, cxLookAndFeelPainters, 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,
|
||||||
|
cxNavigator, dxBarBuiltInMenu;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmProductOrderNewList = class(TForm)
|
TfrmProductOrderNewList = class(TForm)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user