This commit is contained in:
“zfp” 2025-08-21 11:04:01 +08:00
parent ea9809c014
commit bd802f7465
9 changed files with 817 additions and 146 deletions

View File

@ -101,7 +101,7 @@ DebugSourceDirs=
UsePackages=0 UsePackages=0
[Parameters] [Parameters]
RunParams= RunParams=
HostApplication=D:\郑丰平开发代码\项目代码\yichen\检验管理\testDll.exe HostApplication=D:\Dp7Repo\项目代码\D7djYichen\检验管理\testDll.exe
Launcher= Launcher=
UseLauncher=0 UseLauncher=0
DebugCWD= DebugCWD=

View File

@ -1,6 +1,6 @@
object frmCKProductBCPInList: TfrmCKProductBCPInList object frmCKProductBCPInList: TfrmCKProductBCPInList
Left = 148 Left = 313
Top = 43 Top = 217
Width = 1083 Width = 1083
Height = 680 Height = 680
Caption = #25104#21697#20837#24211#21015#34920 Caption = #25104#21697#20837#24211#21015#34920
@ -20,7 +20,7 @@ object frmCKProductBCPInList: TfrmCKProductBCPInList
object ToolBar1: TToolBar object ToolBar1: TToolBar
Left = 0 Left = 0
Top = 0 Top = 0
Width = 1067 Width = 1075
Height = 33 Height = 33
ButtonHeight = 30 ButtonHeight = 30
ButtonWidth = 83 ButtonWidth = 83
@ -107,7 +107,8 @@ object frmCKProductBCPInList: TfrmCKProductBCPInList
#38144#21806#30721#21333 #38144#21806#30721#21333
#38144#21806#30721#21333'1' #38144#21806#30721#21333'1'
#38144#21806#30721#21333'2' #38144#21806#30721#21333'2'
#38144#21806#30721#21333#65288#31354#21152#20928#37325#65289) #38144#21806#30721#21333#65288#31354#21152#20928#37325#65289
#38144#21806#30917#30721#21333)
end end
object TBClose: TToolButton object TBClose: TToolButton
Left = 562 Left = 562
@ -121,7 +122,7 @@ object frmCKProductBCPInList: TfrmCKProductBCPInList
object Panel1: TPanel object Panel1: TPanel
Left = 0 Left = 0
Top = 33 Top = 33
Width = 1067 Width = 1075
Height = 76 Height = 76
Align = alTop Align = alTop
BevelInner = bvRaised BevelInner = bvRaised
@ -406,8 +407,8 @@ object frmCKProductBCPInList: TfrmCKProductBCPInList
object cxGrid2: TcxGrid object cxGrid2: TcxGrid
Left = 0 Left = 0
Top = 109 Top = 109
Width = 1067 Width = 1075
Height = 532 Height = 540
Align = alClient Align = alClient
PopupMenu = PopupMenu1 PopupMenu = PopupMenu1
TabOrder = 2 TabOrder = 2

View File

@ -11,7 +11,20 @@ uses
ExtCtrls, ToolWin, cxGridCustomPopupMenu, cxGridPopupMenu, ADODB, DBClient, ExtCtrls, ToolWin, cxGridCustomPopupMenu, cxGridPopupMenu, ADODB, DBClient,
cxDropDownEdit, cxCheckBox, RM_Common, RM_Class, RM_e_Xls, RM_Dataset, cxDropDownEdit, cxCheckBox, RM_Common, RM_Class, RM_e_Xls, RM_Dataset,
RM_System, RM_GridReport, Menus, cxLookAndFeels, cxLookAndFeelPainters, RM_System, RM_GridReport, Menus, cxLookAndFeels, cxLookAndFeelPainters,
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
TfrmCKProductBCPInList = class(TForm) TfrmCKProductBCPInList = class(TForm)
@ -454,6 +467,35 @@ begin
SCreateCDS20(ADOQueryTemp, CDS_PRT); SCreateCDS20(ADOQueryTemp, CDS_PRT);
SInitCDSData20(ADOQueryTemp, CDS_PRT); SInitCDSData20(ADOQueryTemp, CDS_PRT);
end; end;
if (trim(ComboBox1.Text) = 'ÏúÊÛ°õÂëµ¥') then
begin
with ADOQueryTemp do
begin
Close;
sql.Clear;
sql.add('exec P_Print_CKMD ');
sql.add('@mainID=' + quotedstr(Trim('')));
sql.add(',@DName=' + quotedstr(Trim(DCode)));
// sql.add(',@flag=''0'' ');
// sql.add(',@CNum=''10'' ');
Open;
end;
SCreateCDS20(ADOQueryTemp, CDS_HZ);
SInitCDSData20(ADOQueryTemp, CDS_HZ);
with ADOQueryTemp do
begin
Close;
sql.Clear;
sql.add('exec P_Do_PrintMd_HZ ');
sql.add('@mainID=' + quotedstr(Trim('')));
sql.add(',@DName=' + quotedstr(Trim(DCode)));
sql.add(',@flag=''2'' ');
Open;
end;
SCreateCDS20(ADOQueryTemp, CDS_PRT);
SInitCDSData20(ADOQueryTemp, CDS_PRT);
end;
if (trim(ComboBox1.Text) = '데<>관陋') or (trim(ComboBox1.Text) = '데<>관陋-낀똑') or (trim(ComboBox1.Text) = '쭙陋') then if (trim(ComboBox1.Text) = '데<>관陋') or (trim(ComboBox1.Text) = '데<>관陋-낀똑') or (trim(ComboBox1.Text) = '쭙陋') then
begin begin

View File

@ -1,6 +1,6 @@
object frmCKProductBCPOutList: TfrmCKProductBCPOutList object frmCKProductBCPOutList: TfrmCKProductBCPOutList
Left = 63 Left = 460
Top = 145 Top = 247
Width = 1378 Width = 1378
Height = 754 Height = 754
Caption = #25104#21697#20986#24211#21015#34920 Caption = #25104#21697#20986#24211#21015#34920
@ -20,7 +20,7 @@ object frmCKProductBCPOutList: TfrmCKProductBCPOutList
object ToolBar1: TToolBar object ToolBar1: TToolBar
Left = 0 Left = 0
Top = 0 Top = 0
Width = 1362 Width = 1370
Height = 33 Height = 33
ButtonHeight = 30 ButtonHeight = 30
ButtonWidth = 83 ButtonWidth = 83
@ -98,7 +98,8 @@ object frmCKProductBCPOutList: TfrmCKProductBCPOutList
#38144#21806#30721#21333 #38144#21806#30721#21333
#38144#21806#30721#21333'1' #38144#21806#30721#21333'1'
#38144#21806#30721#21333'2' #38144#21806#30721#21333'2'
#38144#21806#30721#21333#65288#31354#21152#20928#37325#65289) #38144#21806#30721#21333#65288#31354#21152#20928#37325#65289
#38144#21806#30917#30721#21333)
end end
object TBClose: TToolButton object TBClose: TToolButton
Left = 475 Left = 475
@ -112,7 +113,7 @@ object frmCKProductBCPOutList: TfrmCKProductBCPOutList
object Panel1: TPanel object Panel1: TPanel
Left = 0 Left = 0
Top = 33 Top = 33
Width = 1362 Width = 1370
Height = 80 Height = 80
Align = alTop Align = alTop
BevelInner = bvRaised BevelInner = bvRaised
@ -377,8 +378,8 @@ object frmCKProductBCPOutList: TfrmCKProductBCPOutList
object cxGrid2: TcxGrid object cxGrid2: TcxGrid
Left = 0 Left = 0
Top = 113 Top = 113
Width = 1362 Width = 1370
Height = 602 Height = 610
Align = alClient Align = alClient
PopupMenu = PopupMenu1 PopupMenu = PopupMenu1
TabOrder = 2 TabOrder = 2

View File

@ -11,7 +11,20 @@ uses
ExtCtrls, ToolWin, cxGridCustomPopupMenu, cxGridPopupMenu, ADODB, DBClient, ExtCtrls, ToolWin, cxGridCustomPopupMenu, cxGridPopupMenu, ADODB, DBClient,
cxDropDownEdit, RM_Common, RM_Class, RM_e_Xls, RM_Dataset, RM_System, cxDropDownEdit, RM_Common, RM_Class, RM_e_Xls, RM_Dataset, RM_System,
RM_GridReport, cxCheckBox, Menus, MovePanel, cxLookAndFeels, RM_GridReport, cxCheckBox, Menus, MovePanel, 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
TfrmCKProductBCPOutList = class(TForm) TfrmCKProductBCPOutList = class(TForm)
@ -476,6 +489,34 @@ begin
SInitCDSData20(ADOQueryTemp, CDS_PRT); SInitCDSData20(ADOQueryTemp, CDS_PRT);
end; end;
if (trim(ComboBox1.Text) = 'ÏúÊÛ°õÂëµ¥') then
begin
with ADOQueryTemp do
begin
Close;
sql.Clear;
sql.add('exec P_Print_CKMD ');
sql.add('@mainID=' + quotedstr(Trim('')));
sql.add(',@DName=' + quotedstr(Trim(DCode)));
Open;
end;
SCreateCDS20(ADOQueryTemp, CDS_HZ);
SInitCDSData20(ADOQueryTemp, CDS_HZ);
with ADOQueryTemp do
begin
Close;
sql.Clear;
sql.add('exec P_Do_PrintMd_HZ ');
sql.add('@mainID=' + quotedstr(Trim('')));
sql.add(',@DName=' + quotedstr(Trim(DCode)));
sql.add(',@flag=''2'' ');
Open;
end;
SCreateCDS20(ADOQueryTemp, CDS_PRT);
SInitCDSData20(ADOQueryTemp, CDS_PRT);
end;
if trim(ComboBox1.Text) = '»ìÉ«°ü×°-10É«' then if trim(ComboBox1.Text) = '»ìÉ«°ü×°-10É«' then
begin begin
with ADOQueryTemp do with ADOQueryTemp do

View File

@ -20,7 +20,7 @@ object frmCKProductRKHZList: TfrmCKProductRKHZList
object ToolBar1: TToolBar object ToolBar1: TToolBar
Left = 0 Left = 0
Top = 0 Top = 0
Width = 1116 Width = 1124
Height = 33 Height = 33
ButtonHeight = 30 ButtonHeight = 30
ButtonWidth = 83 ButtonWidth = 83
@ -91,7 +91,7 @@ object frmCKProductRKHZList: TfrmCKProductRKHZList
object Panel1: TPanel object Panel1: TPanel
Left = 0 Left = 0
Top = 33 Top = 33
Width = 1116 Width = 1124
Height = 68 Height = 68
Align = alTop Align = alTop
BevelInner = bvRaised BevelInner = bvRaised
@ -339,13 +339,13 @@ object frmCKProductRKHZList: TfrmCKProductRKHZList
object cxGrid2: TcxGrid object cxGrid2: TcxGrid
Left = 0 Left = 0
Top = 101 Top = 101
Width = 1116 Width = 1124
Height = 491 Height = 498
Align = alClient Align = alClient
TabOrder = 2 TabOrder = 2
object Tv1: TcxGridDBTableView object Tv1: TcxGridDBTableView
OnMouseUp = Tv1MouseUp OnMouseUp = Tv1MouseUp
NavigatorButtons.ConfirmDelete = False Navigator.Buttons.CustomButtons = <>
OnCellDblClick = Tv1CellDblClick OnCellDblClick = Tv1CellDblClick
DataController.DataSource = DataSource1 DataController.DataSource = DataSource1
DataController.Summary.DefaultGroupSummaryItems = <> DataController.Summary.DefaultGroupSummaryItems = <>

View File

@ -10,7 +10,22 @@ uses
cxGridLevel, cxClasses, cxControls, cxGridCustomView, cxGridDBTableView, cxGridLevel, cxClasses, cxControls, cxGridCustomView, cxGridDBTableView,
cxGrid, StdCtrls, ComCtrls, ExtCtrls, ToolWin, cxGridCustomPopupMenu, cxGrid, StdCtrls, ComCtrls, ExtCtrls, ToolWin, cxGridCustomPopupMenu,
cxGridPopupMenu, ADODB, DBClient, cxDropDownEdit, MovePanel, cxButtonEdit, cxGridPopupMenu, ADODB, DBClient, cxDropDownEdit, MovePanel, cxButtonEdit,
cxCalendar, RM_System, RM_Common, RM_Class, RM_GridReport; cxCalendar, RM_System, RM_Common, RM_Class, RM_GridReport,
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;
type type
TfrmCKProductRKHZList = class(TForm) TfrmCKProductRKHZList = class(TForm)

View File

@ -1,6 +1,6 @@
object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
Left = 88 Left = 230
Top = 15 Top = 173
Width = 1265 Width = 1265
Height = 738 Height = 738
Caption = #25104#21697#26816#39564 Caption = #25104#21697#26816#39564
@ -19,9 +19,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
TextHeight = 12 TextHeight = 12
object cxGrid3: TcxGrid object cxGrid3: TcxGrid
Left = 0 Left = 0
Top = 81 Top = 105
Width = 225 Width = 225
Height = 618 Height = 602
Align = alLeft Align = alLeft
TabOrder = 0 TabOrder = 0
object Tv3: TcxGridDBTableView object Tv3: TcxGridDBTableView
@ -115,9 +115,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
object ScrollBox1: TScrollBox object ScrollBox1: TScrollBox
Left = 601 Left = 601
Top = 81 Top = 105
Width = 648 Width = 656
Height = 618 Height = 602
Align = alClient Align = alClient
TabOrder = 1 TabOrder = 1
object SpeedButton13: TSpeedButton object SpeedButton13: TSpeedButton
@ -1104,9 +1104,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
object Panel2: TPanel object Panel2: TPanel
Left = 401 Left = 401
Top = 81 Top = 105
Width = 200 Width = 200
Height = 618 Height = 602
Align = alLeft Align = alLeft
BevelInner = bvRaised BevelInner = bvRaised
BevelOuter = bvLowered BevelOuter = bvLowered
@ -1982,8 +1982,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
object Panel4: TPanel object Panel4: TPanel
Left = 0 Left = 0
Top = 0 Top = 0
Width = 1249 Width = 1257
Height = 81 Height = 105
Align = alTop Align = alTop
BevelInner = bvRaised BevelInner = bvRaised
BevelOuter = bvLowered BevelOuter = bvLowered
@ -1991,15 +1991,15 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
object Panel5: TPanel object Panel5: TPanel
Left = 2 Left = 2
Top = 2 Top = 2
Width = 1245 Width = 1253
Height = 77 Height = 101
Align = alClient Align = alClient
TabOrder = 0 TabOrder = 0
object Panel6: TPanel object Panel6: TPanel
Left = 1 Left = 1
Top = 31 Top = 31
Width = 1243 Width = 1251
Height = 48 Height = 74
Align = alTop Align = alTop
BevelInner = bvRaised BevelInner = bvRaised
BevelOuter = bvLowered BevelOuter = bvLowered
@ -2110,6 +2110,19 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
ParentFont = False ParentFont = False
Visible = False Visible = False
end end
object Label53: TLabel
Left = 903
Top = 46
Width = 40
Height = 19
Caption = #21367#21495
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object APID: TEdit object APID: TEdit
Left = 92 Left = 92
Top = 16 Top = 16
@ -2218,11 +2231,31 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
Visible = False Visible = False
OnClick = Edit9Click OnClick = Edit9Click
end end
object ComboBox2: TComboBox
Left = 944
Top = 40
Width = 74
Height = 32
Style = csDropDownList
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -24
Font.Name = #23435#20307
Font.Style = [fsBold]
ItemHeight = 24
ItemIndex = 0
ParentFont = False
TabOrder = 7
Text = #33258#21160
Items.Strings = (
#33258#21160
#25163#36755)
end
end end
object ToolBar1: TToolBar object ToolBar1: TToolBar
Left = 1 Left = 1
Top = 1 Top = 1
Width = 1243 Width = 1251
Height = 30 Height = 30
ButtonHeight = 30 ButtonHeight = 30
ButtonWidth = 83 ButtonWidth = 83
@ -2283,6 +2316,60 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
ImageIndex = 55 ImageIndex = 55
OnClick = TBCloseClick OnClick = TBCloseClick
end end
object Label51: TLabel
Left = 339
Top = 0
Width = 84
Height = 30
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 MinRollNo: TEdit
Left = 423
Top = 0
Width = 57
Height = 30
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 Label52: TLabel
Left = 480
Top = 0
Width = 14
Height = 30
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 = 494
Top = 0
Width = 57
Height = 30
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -20
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
OnClick = Edit1Click
end
end end
end end
end end
@ -2539,9 +2626,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
object Panel7: TPanel object Panel7: TPanel
Left = 225 Left = 225
Top = 81 Top = 105
Width = 176 Width = 176
Height = 618 Height = 602
Align = alLeft Align = alLeft
BevelInner = bvRaised BevelInner = bvRaised
BevelOuter = bvLowered BevelOuter = bvLowered
@ -2550,7 +2637,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
Left = 2 Left = 2
Top = 2 Top = 2
Width = 172 Width = 172
Height = 289 Height = 273
Align = alClient Align = alClient
TabOrder = 0 TabOrder = 0
object Tv2: TcxGridDBTableView object Tv2: TcxGridDBTableView
@ -2659,7 +2746,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
object Panel8: TPanel object Panel8: TPanel
Left = 2 Left = 2
Top = 291 Top = 275
Width = 172 Width = 172
Height = 41 Height = 41
Align = alBottom Align = alBottom
@ -2674,7 +2761,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
object AOrdDefNote1: TRichEdit object AOrdDefNote1: TRichEdit
Left = 2 Left = 2
Top = 332 Top = 316
Width = 172 Width = 172
Height = 284 Height = 284
Align = alBottom Align = alBottom
@ -2690,9 +2777,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
end end
object Panel3: TPanel object Panel3: TPanel
Left = 40 Left = 48
Top = 376 Top = 376
Width = 283 Width = 353
Height = 279 Height = 279
BevelInner = bvRaised BevelInner = bvRaised
BevelOuter = bvLowered BevelOuter = bvLowered
@ -2701,7 +2788,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
Visible = False Visible = False
object SpeedButton1: TSpeedButton object SpeedButton1: TSpeedButton
Left = 2 Left = 2
Top = 207 Top = 209
Width = 140 Width = 140
Height = 70 Height = 70
Caption = '0' Caption = '0'
@ -2855,7 +2942,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
OnClick = SpeedButton1Click OnClick = SpeedButton1Click
end end
object SpeedButton12: TSpeedButton object SpeedButton12: TSpeedButton
Left = 212 Left = 211
Top = 2 Top = 2
Width = 70 Width = 70
Height = 70 Height = 70
@ -2871,9 +2958,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
object SpeedButton49: TSpeedButton object SpeedButton49: TSpeedButton
Tag = 9 Tag = 9
Left = 211 Left = 211
Top = 72 Top = 139
Width = 70 Width = 70
Height = 206 Height = 142
Caption = #38544#34255 Caption = #38544#34255
Font.Charset = GB2312_CHARSET Font.Charset = GB2312_CHARSET
Font.Color = clWindowText Font.Color = clWindowText
@ -2883,6 +2970,399 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
ParentFont = False ParentFont = False
OnClick = SpeedButton49Click OnClick = SpeedButton49Click
end end
object SpeedButton84: TSpeedButton
Tag = 9
Left = 280
Top = 0
Width = 73
Height = 278
Caption = #23383#27597
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -29
Font.Name = #26999#20307'_GB2312'
Font.Style = [fsBold]
ParentFont = False
OnClick = SpeedButton84Click
end
object SpeedButton85: TSpeedButton
Left = 350
Top = 139
Width = 70
Height = 70
Caption = 'O'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton86: TSpeedButton
Left = 420
Top = 139
Width = 70
Height = 70
Caption = 'P'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton87: TSpeedButton
Left = 490
Top = 139
Width = 70
Height = 70
Caption = 'Q'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton88: TSpeedButton
Left = 350
Top = 71
Width = 70
Height = 70
Caption = 'H'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton89: TSpeedButton
Left = 420
Top = 71
Width = 70
Height = 70
Caption = 'I'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton90: TSpeedButton
Left = 490
Top = 71
Width = 70
Height = 70
Caption = 'J'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton91: TSpeedButton
Left = 350
Top = 3
Width = 70
Height = 70
Caption = 'A'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton92: TSpeedButton
Left = 420
Top = 3
Width = 70
Height = 70
Caption = 'B'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton93: TSpeedButton
Left = 490
Top = 3
Width = 70
Height = 70
Caption = 'C'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton94: TSpeedButton
Left = 560
Top = 139
Width = 70
Height = 70
Caption = 'R'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton95: TSpeedButton
Left = 630
Top = 139
Width = 70
Height = 70
Caption = 'S'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton96: TSpeedButton
Left = 700
Top = 139
Width = 70
Height = 70
Caption = 'T'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton97: TSpeedButton
Left = 560
Top = 71
Width = 70
Height = 70
Caption = 'K'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton98: TSpeedButton
Left = 630
Top = 71
Width = 70
Height = 70
Caption = 'L'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton99: TSpeedButton
Left = 700
Top = 71
Width = 70
Height = 70
Caption = 'M'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton100: TSpeedButton
Left = 560
Top = 3
Width = 70
Height = 70
Caption = 'D'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton101: TSpeedButton
Left = 630
Top = 3
Width = 70
Height = 70
Caption = 'E'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton102: TSpeedButton
Left = 700
Top = 3
Width = 70
Height = 70
Caption = 'F'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton103: TSpeedButton
Left = 770
Top = 139
Width = 70
Height = 70
Caption = 'U'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton104: TSpeedButton
Left = 770
Top = 71
Width = 70
Height = 70
Caption = 'N'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton105: TSpeedButton
Left = 770
Top = 3
Width = 70
Height = 70
Caption = 'G'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton106: TSpeedButton
Left = 350
Top = 209
Width = 70
Height = 70
Caption = 'V'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton107: TSpeedButton
Left = 420
Top = 209
Width = 70
Height = 70
Caption = 'W'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton108: TSpeedButton
Left = 490
Top = 209
Width = 70
Height = 70
Caption = 'X'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton109: TSpeedButton
Left = 560
Top = 209
Width = 70
Height = 70
Caption = 'Y'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton110: TSpeedButton
Left = 630
Top = 209
Width = 70
Height = 70
Caption = 'Z'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
object SpeedButton111: TSpeedButton
Left = 210
Top = 71
Width = 70
Height = 70
Caption = '-'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = #40657#20307
Font.Style = []
ParentFont = False
OnClick = SpeedButton1Click
end
end end
object cxStyleRepository1: TcxStyleRepository object cxStyleRepository1: TcxStyleRepository
Left = 612 Left = 612
@ -2910,7 +3390,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
end end
object cxGridPopupMenu1: TcxGridPopupMenu object cxGridPopupMenu1: TcxGridPopupMenu
PopupMenus = <> PopupMenus = <>
Left = 400 Left = 448
Top = 48
end end
object DataSource1: TDataSource object DataSource1: TDataSource
DataSet = Order_MJ DataSet = Order_MJ
@ -2920,19 +3401,21 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
object Order_MJ: TClientDataSet object Order_MJ: TClientDataSet
Aggregates = <> Aggregates = <>
Params = <> Params = <>
Left = 560 Left = 576
Top = 8 Top = 32
end end
object ADOQueryMain: TADOQuery object ADOQueryMain: TADOQuery
Connection = DataLink_TradeManage.ADOLink Connection = DataLink_TradeManage.ADOLink
LockType = ltReadOnly LockType = ltReadOnly
Parameters = <> Parameters = <>
Left = 576 Left = 600
Top = 48
end end
object ADOCmd: TADOQuery object ADOCmd: TADOQuery
Connection = DataLink_TradeManage.ADOLink Connection = DataLink_TradeManage.ADOLink
Parameters = <> Parameters = <>
Left = 536 Left = 552
Top = 40
end end
object ADOTmp: TADOQuery object ADOTmp: TADOQuery
Connection = DataLink_TradeManage.ADOLink Connection = DataLink_TradeManage.ADOLink
@ -2964,7 +3447,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
CompressThread = False CompressThread = False
LaterBuildEvents = True LaterBuildEvents = True
OnlyOwnerDataSet = False OnlyOwnerDataSet = False
Left = 464 Left = 520
Top = 56
ReportData = {} ReportData = {}
end end
object DataSource2: TDataSource object DataSource2: TDataSource

View File

@ -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)
@ -252,6 +265,40 @@ type
Label49: TLabel; Label49: TLabel;
MJSJKZ1: TEdit; MJSJKZ1: TEdit;
Label50: TLabel; Label50: TLabel;
Label51: TLabel;
MinRollNo: TEdit;
Label52: TLabel;
MaxRollNo: TEdit;
Label53: TLabel;
ComboBox2: TComboBox;
SpeedButton84: TSpeedButton;
SpeedButton85: TSpeedButton;
SpeedButton86: TSpeedButton;
SpeedButton87: TSpeedButton;
SpeedButton88: TSpeedButton;
SpeedButton89: TSpeedButton;
SpeedButton90: TSpeedButton;
SpeedButton91: TSpeedButton;
SpeedButton92: TSpeedButton;
SpeedButton93: TSpeedButton;
SpeedButton94: TSpeedButton;
SpeedButton95: TSpeedButton;
SpeedButton96: TSpeedButton;
SpeedButton97: TSpeedButton;
SpeedButton98: TSpeedButton;
SpeedButton99: TSpeedButton;
SpeedButton100: TSpeedButton;
SpeedButton101: TSpeedButton;
SpeedButton102: TSpeedButton;
SpeedButton103: TSpeedButton;
SpeedButton104: TSpeedButton;
SpeedButton105: TSpeedButton;
SpeedButton106: TSpeedButton;
SpeedButton107: TSpeedButton;
SpeedButton108: TSpeedButton;
SpeedButton109: TSpeedButton;
SpeedButton110: TSpeedButton;
SpeedButton111: TSpeedButton;
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);
@ -310,6 +357,7 @@ type
procedure Edit9Click(Sender: TObject); procedure Edit9Click(Sender: TObject);
procedure ToolButton3Click(Sender: TObject); procedure ToolButton3Click(Sender: TObject);
procedure Button7Click(Sender: TObject); procedure Button7Click(Sender: TObject);
procedure SpeedButton84Click(Sender: TObject);
private private
{ Private declarations } { Private declarations }
FInt, PState, PrintInt, SCInitGrid, FState, FCK: Integer; FInt, PState, PrintInt, SCInitGrid, FState, FCK: Integer;
@ -938,6 +986,8 @@ begin
Exit; Exit;
if PState = 1 then if PState = 1 then
begin
if ComboBox2.ItemIndex = 0 then
begin begin
if fRollType = '按订单生成' then if fRollType = '按订单生成' then
begin begin
@ -980,8 +1030,28 @@ begin
MJXH.Text := Trim(fieldbyname('maxRoll').AsString); MJXH.Text := Trim(fieldbyname('maxRoll').AsString);
end; end;
end; end;
end;
end; end;
if minRollNo.Text <> '' then
begin
if StrToIntDef(minRollNo.Text, 0) > StrToIntDef(MJXH.Text, 0) then
begin
Application.MessageBox('小于最小卷号,不能保存!', '提示', 0);
exit;
end;
end;
if MaxRollNo.Text <> '' then
begin
if StrToIntDef(MaxRollNo.Text, 0) < StrToIntDef(MJXH.Text, 0) then
begin
Application.MessageBox('已超出最大卷号,不能保存!', '提示', 0);
exit;
end;
end;
try try
ADOCmd.Connection.BeginTrans; ADOCmd.Connection.BeginTrans;
@ -1083,6 +1153,8 @@ begin
end; end;
if PState = 1 then if PState = 1 then
begin
if ComboBox2.ItemIndex = 0 then
begin begin
if fRollType = '按订单生成' then if fRollType = '按订单生成' then
begin begin
@ -1125,6 +1197,7 @@ begin
end; end;
end; end;
end; end;
end;
with ADOCmd do with ADOCmd do
begin begin
@ -1245,14 +1318,14 @@ begin
application.MessageBox('长度或者重量不能都为零!', '提示信息', 0); application.MessageBox('长度或者重量不能都为零!', '提示信息', 0);
exit; exit;
end; end;
if Trim(MJstr4.Text) <> '' then // if Trim(MJstr4.Text) <> '' then
begin // begin
if TryStrToint(MJstr4.Text, mvalue1) = False then // if TryStrToint(MJstr4.Text, mvalue1) = False then
begin // begin
Application.MessageBox('缸号输入错误!', '提示', 0); // Application.MessageBox('缸号输入错误!', '提示', 0);
Exit; // Exit;
end; // end;
end; // end;
if Trim(FAPID) = '' then if Trim(FAPID) = '' then
Exit; Exit;
@ -1303,6 +1376,8 @@ begin
end; end;
end; end;
if ComboBox2.ItemIndex = 0 then
begin
if fRollType = '无规则生成' then if fRollType = '无规则生成' then
begin begin
@ -1320,6 +1395,7 @@ begin
end; end;
end; end;
end;
if SaveData() then if SaveData() then
begin begin
@ -1333,6 +1409,10 @@ begin
MJXH.Text := inttostr(strTointdef(trim(MJXH.Text), 0) + 1); MJXH.Text := inttostr(strTointdef(trim(MJXH.Text), 0) + 1);
mjfk.Text := '';
mjfk1.Text := '';
MJSJKZ.text := '';
MJSJKZ1.text := '';
if PState = 2 then if PState = 2 then
begin begin
apid.Text := FAPID; apid.Text := FAPID;
@ -2079,8 +2159,7 @@ begin
FAPID := Trim(ADOTmp.fieldbyname('SubId').AsString); FAPID := Trim(ADOTmp.fieldbyname('SubId').AsString);
FMainId := Trim(ADOTmp.fieldbyname('MainId').AsString); FMainId := Trim(ADOTmp.fieldbyname('MainId').AsString);
FSubId := Trim(ADOTmp.fieldbyname('SubId').AsString); FSubId := Trim(ADOTmp.fieldbyname('SubId').AsString);
AOrdDefNote1.Text := '包装要求:' + #13 + Trim(ADOTmp.fieldbyname('MPRTBZNote').AsString) + #13 AOrdDefNote1.Text := '包装要求:' + #13 + Trim(ADOTmp.fieldbyname('MPRTBZNote').AsString) + #13 //+'封条:'+Trim(ADOTmp.fieldbyname('MPRTYaoFeng').AsString)+#13
//+'封条:'+Trim(ADOTmp.fieldbyname('MPRTYaoFeng').AsString)+#13
//+'烫金:'+Trim(ADOTmp.fieldbyname('MPRTTangJin').AsString)+#13 //+'烫金:'+Trim(ADOTmp.fieldbyname('MPRTTangJin').AsString)+#13
//+'开剪:'+Trim(ADOTmp.fieldbyname('MPRTKaiJian').AsString)+#13 //+'开剪:'+Trim(ADOTmp.fieldbyname('MPRTKaiJian').AsString)+#13
// +'门幅:'+Trim(ADOTmp.fieldbyname('PRTMF').AsString)+#13 // +'门幅:'+Trim(ADOTmp.fieldbyname('PRTMF').AsString)+#13
@ -2464,5 +2543,13 @@ begin
end; end;
procedure TfrmMJManageNewFDNewSF.SpeedButton84Click(Sender: TObject);
begin
if panel3.Width > 400 then
panel3.Width := 350
else
panel3.Width := 840;
end;
end. end.