1026
This commit is contained in:
parent
0b56af4425
commit
71afc186c9
|
|
@ -101,7 +101,7 @@ DebugSourceDirs=
|
|||
UsePackages=0
|
||||
[Parameters]
|
||||
RunParams=
|
||||
HostApplication=D:\徐加艳项目代码\项目代码\增泽\打卷检验管理\testDll.exe
|
||||
HostApplication=D:\Dp7Repo\项目代码\D7DJzengze\打卷检验管理\testDll.exe
|
||||
Launcher=
|
||||
UseLauncher=0
|
||||
DebugCWD=
|
||||
|
|
|
|||
50
打卷检验管理/TradeManage.skincfg
Normal file
50
打卷检验管理/TradeManage.skincfg
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[ExpressSkins]
|
||||
Default=1
|
||||
ShowNotifications=1
|
||||
Enabled=1
|
||||
dxSkinBlack=1
|
||||
dxSkinBlue=1
|
||||
dxSkinBlueprint=1
|
||||
dxSkinCaramel=1
|
||||
dxSkinCoffee=1
|
||||
dxSkinDarkRoom=1
|
||||
dxSkinDarkSide=1
|
||||
dxSkinDevExpressDarkStyle=1
|
||||
dxSkinDevExpressStyle=1
|
||||
dxSkinFoggy=1
|
||||
dxSkinGlassOceans=1
|
||||
dxSkinHighContrast=1
|
||||
dxSkiniMaginary=1
|
||||
dxSkinLilian=1
|
||||
dxSkinLiquidSky=1
|
||||
dxSkinLondonLiquidSky=1
|
||||
dxSkinMcSkin=1
|
||||
dxSkinMetropolis=1
|
||||
dxSkinMetropolisDark=1
|
||||
dxSkinMoneyTwins=1
|
||||
dxSkinOffice2007Black=1
|
||||
dxSkinOffice2007Blue=1
|
||||
dxSkinOffice2007Green=1
|
||||
dxSkinOffice2007Pink=1
|
||||
dxSkinOffice2007Silver=1
|
||||
dxSkinOffice2010Black=1
|
||||
dxSkinOffice2010Blue=1
|
||||
dxSkinOffice2010Silver=1
|
||||
dxSkinOffice2013DarkGray=1
|
||||
dxSkinOffice2013LightGray=1
|
||||
dxSkinOffice2013White=1
|
||||
dxSkinPumpkin=1
|
||||
dxSkinSeven=1
|
||||
dxSkinSevenClassic=1
|
||||
dxSkinSharp=1
|
||||
dxSkinSharpPlus=1
|
||||
dxSkinSilver=1
|
||||
dxSkinSpringTime=1
|
||||
dxSkinStardust=1
|
||||
dxSkinSummer2008=1
|
||||
dxSkinTheAsphaltWorld=1
|
||||
dxSkinsDefaultPainters=1
|
||||
dxSkinValentine=1
|
||||
dxSkinVS2010=1
|
||||
dxSkinWhiteprint=1
|
||||
dxSkinXmas2008Blue=1
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
object frmJYOrderCDOne: TfrmJYOrderCDOne
|
||||
Left = 296
|
||||
Top = 178
|
||||
Left = 648
|
||||
Top = 350
|
||||
Width = 1400
|
||||
Height = 757
|
||||
Caption = #26816#39564#25253#21578
|
||||
|
|
@ -21,7 +21,7 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
|||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1384
|
||||
Width = 1392
|
||||
Height = 62
|
||||
AutoSize = True
|
||||
ButtonHeight = 30
|
||||
|
|
@ -268,7 +268,7 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
|||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Top = 62
|
||||
Width = 1384
|
||||
Width = 1392
|
||||
Height = 88
|
||||
Align = alTop
|
||||
BevelInner = bvRaised
|
||||
|
|
@ -783,8 +783,8 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
|||
object cxGrid1: TcxGrid
|
||||
Left = 0
|
||||
Top = 150
|
||||
Width = 1384
|
||||
Height = 568
|
||||
Width = 1392
|
||||
Height = 576
|
||||
Align = alClient
|
||||
PopupMenu = PopupMenu1
|
||||
TabOrder = 3
|
||||
|
|
@ -1085,6 +1085,24 @@ object frmJYOrderCDOne: TfrmJYOrderCDOne
|
|||
HeaderAlignmentHorz = taCenter
|
||||
Width = 65
|
||||
end
|
||||
object Tv1KH: TcxGridDBColumn
|
||||
Caption = #20869#38144#23458#25143
|
||||
DataBinding.FieldName = 'KH'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 80
|
||||
end
|
||||
object Tv1ys: TcxGridDBColumn
|
||||
Caption = #20869#38144#39068#33394
|
||||
DataBinding.FieldName = 'YS'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 80
|
||||
end
|
||||
object Tv1PM: TcxGridDBColumn
|
||||
Caption = #20869#38144#21697#21517
|
||||
DataBinding.FieldName = 'PM'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 80
|
||||
end
|
||||
end
|
||||
object cxGrid1Level1: TcxGridLevel
|
||||
GridView = Tv1
|
||||
|
|
|
|||
|
|
@ -222,6 +222,9 @@ type
|
|||
Label36: TLabel;
|
||||
ComboBox3: TComboBox;
|
||||
Edit6: TEdit;
|
||||
Tv1KH: TcxGridDBColumn;
|
||||
Tv1ys: TcxGridDBColumn;
|
||||
Tv1PM: TcxGridDBColumn;
|
||||
procedure FormDestroy(Sender: TObject);
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
|
|
@ -1618,6 +1621,31 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
if (trim(ComboBox1.Text) = 'еç×ÓÂëµ¥') then
|
||||
begin
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.add('exec P_Print_CKMD_DZ ');
|
||||
sql.add('@DName=' + quotedstr(Trim(DCode)));
|
||||
Open;
|
||||
end;
|
||||
SCreateCDS20(ADOQueryTemp, CDS_HZ);
|
||||
SInitCDSData20(ADOQueryTemp, CDS_HZ);
|
||||
|
||||
with ADOQueryPrint 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=''4'' ');
|
||||
Open;
|
||||
end;
|
||||
end;
|
||||
|
||||
if (trim(ComboBox1.Text) = '쇱駱쯤데(횡<>)') then
|
||||
begin
|
||||
with ADOQueryTemp do
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
Left = 0
|
||||
Top = 87
|
||||
Width = 214
|
||||
Height = 736
|
||||
Height = 744
|
||||
Align = alLeft
|
||||
TabOrder = 0
|
||||
object Tv3: TcxGridDBTableView
|
||||
|
|
@ -123,10 +123,10 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
end
|
||||
object ScrollBox1: TScrollBox
|
||||
Left = 633
|
||||
Left = 905
|
||||
Top = 87
|
||||
Width = 717
|
||||
Height = 736
|
||||
Width = 453
|
||||
Height = 744
|
||||
Align = alClient
|
||||
Color = clWhite
|
||||
ParentColor = False
|
||||
|
|
@ -976,8 +976,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
object Panel2: TPanel
|
||||
Left = 428
|
||||
Top = 87
|
||||
Width = 205
|
||||
Height = 736
|
||||
Width = 477
|
||||
Height = 744
|
||||
Align = alLeft
|
||||
BevelInner = bvRaised
|
||||
BevelOuter = bvLowered
|
||||
|
|
@ -1064,7 +1064,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Label10: TLabel
|
||||
Left = 8
|
||||
Top = 334
|
||||
Top = 297
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #27491#21697
|
||||
|
|
@ -1077,7 +1077,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Label12: TLabel
|
||||
Left = 92
|
||||
Top = 334
|
||||
Top = 297
|
||||
Width = 40
|
||||
Height = 19
|
||||
Caption = #27425#21697
|
||||
|
|
@ -1089,8 +1089,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
ParentFont = False
|
||||
end
|
||||
object Label13: TLabel
|
||||
Left = 358
|
||||
Top = 54
|
||||
Left = 478
|
||||
Top = 606
|
||||
Width = 15
|
||||
Height = 22
|
||||
Caption = 'M'
|
||||
|
|
@ -1102,8 +1102,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
ParentFont = False
|
||||
end
|
||||
object Label14: TLabel
|
||||
Left = 207
|
||||
Top = 58
|
||||
Left = 327
|
||||
Top = 610
|
||||
Width = 60
|
||||
Height = 23
|
||||
Caption = #21407#25968#37327
|
||||
|
|
@ -1155,8 +1155,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
ParentFont = False
|
||||
end
|
||||
object Label27: TLabel
|
||||
Left = 243
|
||||
Top = 437
|
||||
Left = 363
|
||||
Top = 989
|
||||
Width = 40
|
||||
Height = 23
|
||||
Caption = #36192#36865
|
||||
|
|
@ -1169,7 +1169,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Label26: TLabel
|
||||
Left = 8
|
||||
Top = 377
|
||||
Top = 340
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #20986#32440
|
||||
|
|
@ -1181,8 +1181,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
ParentFont = False
|
||||
end
|
||||
object Label29: TLabel
|
||||
Left = 204
|
||||
Top = 14
|
||||
Left = 324
|
||||
Top = 566
|
||||
Width = 58
|
||||
Height = 23
|
||||
Caption = #26588' '#21495
|
||||
|
|
@ -1248,7 +1248,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Label34: TLabel
|
||||
Left = 90
|
||||
Top = 380
|
||||
Top = 343
|
||||
Width = 40
|
||||
Height = 19
|
||||
Caption = #20221#25968
|
||||
|
|
@ -1300,8 +1300,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
Visible = False
|
||||
end
|
||||
object Label40: TLabel
|
||||
Left = 220
|
||||
Top = 335
|
||||
Left = 340
|
||||
Top = 887
|
||||
Width = 80
|
||||
Height = 22
|
||||
Caption = #26579#21378#32568#21495
|
||||
|
|
@ -1313,8 +1313,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
ParentFont = False
|
||||
end
|
||||
object Label45: TLabel
|
||||
Left = 247
|
||||
Top = 138
|
||||
Left = 367
|
||||
Top = 690
|
||||
Width = 40
|
||||
Height = 23
|
||||
Caption = #21253#21495
|
||||
|
|
@ -1341,33 +1341,33 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Label53: TLabel
|
||||
Left = 8
|
||||
Top = 221
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #21152#38271
|
||||
Top = 220
|
||||
Width = 17
|
||||
Height = 32
|
||||
Caption = #21152#13#10#38271
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Height = -16
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label54: TLabel
|
||||
Left = 10
|
||||
Top = 260
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #21152#37325
|
||||
Left = 106
|
||||
Top = 221
|
||||
Width = 17
|
||||
Height = 32
|
||||
Caption = #21152#13#10#37325
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Height = -16
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label55: TLabel
|
||||
Left = 10
|
||||
Top = 297
|
||||
Top = 260
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #30721#23610
|
||||
|
|
@ -1378,6 +1378,84 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label56: TLabel
|
||||
Left = 18
|
||||
Top = 383
|
||||
Width = 80
|
||||
Height = 19
|
||||
Caption = #29233#36805#26631#31614
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clRed
|
||||
Font.Height = -19
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label57: TLabel
|
||||
Left = 208
|
||||
Top = 5
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #23458#25143
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label58: TLabel
|
||||
Left = 208
|
||||
Top = 99
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #39068#33394
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label59: TLabel
|
||||
Left = 208
|
||||
Top = 49
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #21697#21517
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label62: TLabel
|
||||
Left = 208
|
||||
Top = 189
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #26631#31614
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label60: TLabel
|
||||
Left = 210
|
||||
Top = 147
|
||||
Width = 42
|
||||
Height = 20
|
||||
Caption = #22791#27880
|
||||
Font.Charset = ANSI_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -20
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object MJFK: TEdit
|
||||
Left = 51
|
||||
Top = 415
|
||||
|
|
@ -1443,7 +1521,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Edit3: TEdit
|
||||
Left = 52
|
||||
Top = 328
|
||||
Top = 291
|
||||
Width = 39
|
||||
Height = 43
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1460,7 +1538,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Edit4: TEdit
|
||||
Left = 130
|
||||
Top = 328
|
||||
Top = 291
|
||||
Width = 40
|
||||
Height = 43
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1475,8 +1553,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object MJQty1: TEdit
|
||||
Left = 261
|
||||
Top = 49
|
||||
Left = 381
|
||||
Top = 601
|
||||
Width = 90
|
||||
Height = 41
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1507,8 +1585,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object MJQty2: TEdit
|
||||
Left = 289
|
||||
Top = 428
|
||||
Left = 409
|
||||
Top = 980
|
||||
Width = 90
|
||||
Height = 36
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1525,7 +1603,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Edit6: TEdit
|
||||
Left = 52
|
||||
Top = 371
|
||||
Top = 334
|
||||
Width = 40
|
||||
Height = 43
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1541,8 +1619,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object MJstr3: TEdit
|
||||
Left = 261
|
||||
Top = 9
|
||||
Left = 381
|
||||
Top = 561
|
||||
Width = 90
|
||||
Height = 41
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1593,7 +1671,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object ComboBox1: TComboBox
|
||||
Left = 132
|
||||
Top = 372
|
||||
Top = 335
|
||||
Width = 45
|
||||
Height = 40
|
||||
Style = csDropDownList
|
||||
|
|
@ -1617,7 +1695,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
object MJStr4: TEdit
|
||||
Left = 57
|
||||
Top = 37
|
||||
Width = 90
|
||||
Width = 136
|
||||
Height = 36
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
|
|
@ -1664,8 +1742,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object MJstr5: TEdit
|
||||
Left = 285
|
||||
Top = 322
|
||||
Left = 405
|
||||
Top = 874
|
||||
Width = 90
|
||||
Height = 41
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1696,8 +1774,8 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object BaoID: TEdit
|
||||
Left = 251
|
||||
Top = 252
|
||||
Left = 371
|
||||
Top = 804
|
||||
Width = 121
|
||||
Height = 20
|
||||
TabOrder = 10
|
||||
|
|
@ -1719,9 +1797,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnClick = Button7Click
|
||||
end
|
||||
object JC: TEdit
|
||||
Left = 57
|
||||
Left = 27
|
||||
Top = 217
|
||||
Width = 90
|
||||
Width = 70
|
||||
Height = 36
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
|
|
@ -1735,9 +1813,9 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object JZ: TEdit
|
||||
Left = 57
|
||||
Top = 253
|
||||
Width = 90
|
||||
Left = 127
|
||||
Top = 217
|
||||
Width = 70
|
||||
Height = 36
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
|
|
@ -1751,7 +1829,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object MC: TEdit
|
||||
Left = 57
|
||||
Top = 290
|
||||
Top = 253
|
||||
Width = 90
|
||||
Height = 36
|
||||
Font.Charset = GB2312_CHARSET
|
||||
|
|
@ -1764,9 +1842,165 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
OnClick = Edit1Click
|
||||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object edtaixun: TEdit
|
||||
Left = 105
|
||||
Top = 375
|
||||
Width = 40
|
||||
Height = 37
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -29
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
ReadOnly = True
|
||||
TabOrder = 24
|
||||
OnClick = edtaixunClick
|
||||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object KH: TBtnEditA
|
||||
Left = 256
|
||||
Top = 0
|
||||
Width = 145
|
||||
Height = 37
|
||||
AutoSize = False
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -28
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
ParentFont = False
|
||||
TabOrder = 25
|
||||
end
|
||||
object PM: TBtnEditA
|
||||
Left = 256
|
||||
Top = 44
|
||||
Width = 145
|
||||
Height = 37
|
||||
AutoSize = False
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -28
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
ParentFont = False
|
||||
TabOrder = 26
|
||||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object YS: TBtnEditA
|
||||
Left = 256
|
||||
Top = 90
|
||||
Width = 145
|
||||
Height = 37
|
||||
AutoSize = False
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -28
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
ParentFont = False
|
||||
TabOrder = 27
|
||||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object SLbName: TFTComboBox
|
||||
Left = 256
|
||||
Top = 180
|
||||
Width = 185
|
||||
Height = 32
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -24
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
ItemHeight = 24
|
||||
ItemIndex = 0
|
||||
ParentFont = False
|
||||
TabOrder = 28
|
||||
Text = #36890#29992#26631#31614
|
||||
OnChange = SLbNameChange
|
||||
Items.Strings = (
|
||||
#36890#29992#26631#31614
|
||||
#36890#29992#26631#31614'('#37325#37327')'
|
||||
#36890#29992#26631#31614'('#38271#24230')')
|
||||
end
|
||||
object Button9: TButton
|
||||
Left = 384
|
||||
Top = 0
|
||||
Width = 65
|
||||
Height = 38
|
||||
Caption = #36873#25321#23458#25143
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = 20
|
||||
Font.Name = #24494#36719#38597#40657
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 29
|
||||
OnClick = Button9Click
|
||||
end
|
||||
object Button10: TButton
|
||||
Left = 384
|
||||
Top = 40
|
||||
Width = 65
|
||||
Height = 38
|
||||
Caption = #36873#25321#21697#21517
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = 20
|
||||
Font.Name = #24494#36719#38597#40657
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 30
|
||||
OnClick = Button10Click
|
||||
end
|
||||
object Button11: TButton
|
||||
Left = 384
|
||||
Top = 86
|
||||
Width = 65
|
||||
Height = 38
|
||||
Caption = #36873#25321#39068#33394
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = 20
|
||||
Font.Name = #24494#36719#38597#40657
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 31
|
||||
OnClick = Button11Click
|
||||
end
|
||||
object Note: TBtnEditA
|
||||
Left = 258
|
||||
Top = 138
|
||||
Width = 145
|
||||
Height = 37
|
||||
AutoSize = False
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -28
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
ParentFont = False
|
||||
TabOrder = 32
|
||||
OnKeyPress = MJstr3KeyPress
|
||||
end
|
||||
object Button8: TButton
|
||||
Left = 386
|
||||
Top = 134
|
||||
Width = 65
|
||||
Height = 38
|
||||
Caption = #36873#25321#22791#27880
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = 20
|
||||
Font.Name = #24494#36719#38597#40657
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 33
|
||||
OnClick = Button8Click
|
||||
end
|
||||
end
|
||||
object MovePanel1: TMovePanel
|
||||
Left = 634
|
||||
Left = 890
|
||||
Top = 91
|
||||
Width = 339
|
||||
Height = 236
|
||||
|
|
@ -2019,7 +2253,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
Left = 214
|
||||
Top = 87
|
||||
Width = 214
|
||||
Height = 736
|
||||
Height = 744
|
||||
Align = alLeft
|
||||
BevelInner = bvRaised
|
||||
BevelOuter = bvLowered
|
||||
|
|
@ -2028,7 +2262,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
Left = 2
|
||||
Top = 2
|
||||
Width = 210
|
||||
Height = 411
|
||||
Height = 419
|
||||
Align = alClient
|
||||
TabOrder = 0
|
||||
object Tv2: TcxGridDBTableView
|
||||
|
|
@ -2136,7 +2370,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object Panel8: TPanel
|
||||
Left = 2
|
||||
Top = 413
|
||||
Top = 421
|
||||
Width = 210
|
||||
Height = 28
|
||||
Align = alBottom
|
||||
|
|
@ -2151,7 +2385,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
object AOrdDefNote1: TRichEdit
|
||||
Left = 2
|
||||
Top = 441
|
||||
Top = 449
|
||||
Width = 210
|
||||
Height = 293
|
||||
Align = alBottom
|
||||
|
|
@ -2167,7 +2401,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
end
|
||||
end
|
||||
object Panel3: TPanel
|
||||
Left = 634
|
||||
Left = 626
|
||||
Top = 328
|
||||
Width = 353
|
||||
Height = 334
|
||||
|
|
@ -2364,7 +2598,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1350
|
||||
Width = 1358
|
||||
Height = 30
|
||||
AutoSize = True
|
||||
ButtonHeight = 30
|
||||
|
|
@ -2552,7 +2786,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
object Panel6: TPanel
|
||||
Left = 0
|
||||
Top = 30
|
||||
Width = 1350
|
||||
Width = 1358
|
||||
Height = 57
|
||||
Align = alTop
|
||||
BevelInner = bvRaised
|
||||
|
|
@ -2720,7 +2954,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
ParentFont = False
|
||||
end
|
||||
object Label43: TLabel
|
||||
Left = 463
|
||||
Left = 444
|
||||
Top = 30
|
||||
Width = 120
|
||||
Height = 19
|
||||
|
|
@ -2732,6 +2966,19 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label61: TLabel
|
||||
Left = 611
|
||||
Top = 30
|
||||
Width = 40
|
||||
Height = 19
|
||||
Caption = #20869#38144
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -19
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object BTAdd: TButton
|
||||
Left = 1070
|
||||
Top = 8
|
||||
|
|
@ -2879,7 +3126,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
#25163#36755)
|
||||
end
|
||||
object Edit5: TEdit
|
||||
Left = 429
|
||||
Left = 410
|
||||
Top = 26
|
||||
Width = 28
|
||||
Height = 27
|
||||
|
|
@ -2894,6 +3141,22 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
|||
TabOrder = 9
|
||||
OnClick = Edit5Click
|
||||
end
|
||||
object Edit13: TEdit
|
||||
Left = 580
|
||||
Top = 26
|
||||
Width = 28
|
||||
Height = 27
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -19
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
|
||||
ParentFont = False
|
||||
ReadOnly = True
|
||||
TabOrder = 10
|
||||
OnClick = Edit13Click
|
||||
end
|
||||
end
|
||||
object cxStyleRepository1: TcxStyleRepository
|
||||
Left = 732
|
||||
|
|
|
|||
|
|
@ -13,18 +13,18 @@ uses
|
|||
MovePanel, cxLookAndFeels, cxLookAndFeelPainters, cxNavigator, ShellAPI,
|
||||
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;
|
||||
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, XMLDoc, XMLIntf, DateUtils, FTComboBox,
|
||||
BtnEdit;
|
||||
|
||||
type
|
||||
TfrmMJManageNewFDNewSF = class(TForm)
|
||||
|
|
@ -269,6 +269,24 @@ type
|
|||
Label54: TLabel;
|
||||
MC: TEdit;
|
||||
Label55: TLabel;
|
||||
Label56: TLabel;
|
||||
edtaixun: TEdit;
|
||||
Label61: TLabel;
|
||||
Edit13: TEdit;
|
||||
Label57: TLabel;
|
||||
Label58: TLabel;
|
||||
Label59: TLabel;
|
||||
Label62: TLabel;
|
||||
KH: TBtnEditA;
|
||||
PM: TBtnEditA;
|
||||
YS: TBtnEditA;
|
||||
SLbName: TFTComboBox;
|
||||
Button9: TButton;
|
||||
Button10: TButton;
|
||||
Button11: TButton;
|
||||
Label60: TLabel;
|
||||
Note: TBtnEditA;
|
||||
Button8: TButton;
|
||||
procedure FormDestroy(Sender: TObject);
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure TBCloseClick(Sender: TObject);
|
||||
|
|
@ -327,6 +345,13 @@ type
|
|||
procedure Timer1Timer(Sender: TObject);
|
||||
procedure TBCDClick(Sender: TObject);
|
||||
procedure Edit5Click(Sender: TObject);
|
||||
procedure edtaixunClick(Sender: TObject);
|
||||
procedure Edit13Click(Sender: TObject);
|
||||
procedure SLbNameChange(Sender: TObject);
|
||||
procedure Button9Click(Sender: TObject);
|
||||
procedure Button10Click(Sender: TObject);
|
||||
procedure Button11Click(Sender: TObject);
|
||||
procedure Button8Click(Sender: TObject);
|
||||
private
|
||||
{ Private declarations }
|
||||
FInt, PState, PrintInt, SCInitGrid, FState, FCK: Integer;
|
||||
|
|
@ -347,6 +372,7 @@ type
|
|||
procedure AddCDNew(Fbtn: TSpeedButton);
|
||||
procedure SavedataCK();
|
||||
procedure PrtData(FMJID: string);
|
||||
procedure PrtAiXunData(FMJID: string);
|
||||
procedure PrtBaoData(FBaoid: string);
|
||||
procedure OpenCom(DllName: string);
|
||||
procedure CloseCom(DllName: string);
|
||||
|
|
@ -367,7 +393,7 @@ implementation
|
|||
|
||||
uses
|
||||
U_DataLink, U_Fun, U_ZDYHelp, U_iniParam, U_ClothHCList, MMSystem,
|
||||
U_SysLogOrder;
|
||||
U_SCPersonColor, U_SysLogOrder;
|
||||
|
||||
{$R *.dfm}
|
||||
procedure TfrmMJManageNewFDNewSF.PrtBaoData(FBaoid: string);
|
||||
|
|
@ -1043,6 +1069,12 @@ begin
|
|||
FieldByName('MJTypeOther').Value := Trim(Label9.Caption);
|
||||
FieldByName('MJStr1').Value := Trim(Label13.Caption);
|
||||
FieldByName('MC').value := StrToFloatdef(trim(MC.Text), 100);
|
||||
|
||||
FieldByName('PM').Value := Trim(PM.Text);
|
||||
FieldByName('KH').Value := Trim(KH.Text);
|
||||
FieldByName('YS').Value := Trim(YS.Text);
|
||||
FieldByName('Note').Value := Trim(Note.Text);
|
||||
|
||||
if Edit12.Text <> '' then
|
||||
begin
|
||||
FieldByName('DingMaFlag').Value := '¶¨³¤';
|
||||
|
|
@ -1060,13 +1092,13 @@ begin
|
|||
begin
|
||||
// FieldByName('MJLen').Value := StrToFloatdef(trim(MJLen.Text), 0) - StrToFloatdef(trim(MJQty2.Text), 0) + fjc + StrToFloatdef(trim(JC.Text), 0);
|
||||
|
||||
|
||||
|
||||
if (trim(MC.Text) = '') or (trim(MC.Text) = '0') then
|
||||
begin
|
||||
FieldByName('MJLen').value := StrToFloatdef(trim(MJLen.Text), 0) - StrToFloatdef(trim(MJQty2.Text), 0) + fjc;
|
||||
end;
|
||||
|
||||
if (trim(MC.Text) <> '') and (trim(MC.Text) <> '0') then
|
||||
if (trim(MC.Text) <> '') and (trim(MC.Text) <> '0') then
|
||||
begin
|
||||
|
||||
FieldByName('MJLen').value := format('%.0f', [(StrToFloatdef(trim(MJLen.Text), 0) / (StrToFloatdef(trim(MC.Text), 100) / 100)) - StrToFloatdef(trim(MJQty2.Text), 0) + fjc]);
|
||||
|
|
@ -1726,6 +1758,11 @@ begin
|
|||
PrtData(FFFMJID);
|
||||
end;
|
||||
|
||||
if Trim(edtaixun.Text) = '√' then
|
||||
begin
|
||||
PrtAiXunData(FFFMJID);
|
||||
end;
|
||||
|
||||
if Trim(Edit6.Text) = '¡Ì' then
|
||||
begin
|
||||
if (fbaotype = 'ÊÖ¶¯´ò°ü') or (fbaotype = '') then
|
||||
|
|
@ -1936,6 +1973,129 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.PrtAiXunData(FMJID: string);
|
||||
var
|
||||
xml: TXmlDocument;
|
||||
xmlNode: IxmlNode;
|
||||
begin
|
||||
with ADOQueryPrint do
|
||||
begin
|
||||
Close;
|
||||
SQL.Clear;
|
||||
sql.Add(' EXEC P_Print_JYLab ');
|
||||
SQL.Add(' @MJID=''' + Trim(FMJID) + '''');
|
||||
Open;
|
||||
end;
|
||||
xml := TXmlDocument.Create(nil);
|
||||
try
|
||||
xml.Active := True;
|
||||
// xml.Version := '1.0';
|
||||
// xml.Encoding := 'UTF-8';
|
||||
xml.DocumentElement := xml.CreateElement('Barcode', '');
|
||||
/////////////////////////////XML模板/////////////////////////////////////////////
|
||||
// if (ADOQueryPrint.FieldByName('customerNoName').AsString = '琪雅') then
|
||||
// begin
|
||||
// xmlNode := xml.DocumentElement.AddChild('TemplateNumber');
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('100001', ntText)); //模板编号
|
||||
// end
|
||||
// else if (ADOQueryPrint.FieldByName('customerNoName').AsString = '陈丹') then
|
||||
// begin
|
||||
// xmlNode := xml.DocumentElement.AddChild('TemplateNumber');
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('100002', ntText)); //模板编号
|
||||
// end
|
||||
// else
|
||||
// begin
|
||||
// xmlNode := xml.DocumentElement.AddChild('TemplateNumber');
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('062', ntText)); //模板编号
|
||||
// end;
|
||||
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('TemplateNumber');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode('100001', ntText)); //模板编号
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('BarcodeTitle');
|
||||
if Trim(ADOQueryPrint.FieldByName('MainID').AsString) = 'JM230506002' then
|
||||
begin
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('KH').AsString), ntText)); //抬头
|
||||
end
|
||||
else
|
||||
begin
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('CustomerNoName').AsString), ntText)); //抬头
|
||||
end;
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('ProductName');
|
||||
if Trim(ADOQueryPrint.FieldByName('MainID').AsString) = 'JM230506002' then
|
||||
begin
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('PM').AsString), ntText)); //品名
|
||||
end
|
||||
else
|
||||
begin
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('Prtcodename').AsString), ntText)); //品名
|
||||
end;
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('ColorCode');
|
||||
if Trim(ADOQueryPrint.FieldByName('MainID').AsString) = 'JM230506002' then
|
||||
begin
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('YS').AsString), ntText)); //颜色
|
||||
end
|
||||
else
|
||||
begin
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('PRTColor').AsString), ntText)); //颜色
|
||||
end;
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('ColorNumber');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('MJStr4').AsString), ntText)); //缸号
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('BatchNO');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('MJStr4').AsString), ntText));
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('批号!', ntText));
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('PRTHX').AsString), ntText)); //批号
|
||||
xmlNode := xml.DocumentElement.AddChild('Quantity');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('MJLen').AsString), ntText)); //数量 MJMaoZ调换
|
||||
xmlNode := xml.DocumentElement.AddChild('ProductUnit');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('MJTypeOther').AsString), ntText)); //单位
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('M', ntText)); //单位
|
||||
xmlNode := xml.DocumentElement.AddChild('VolumeNumber');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(FormatFloat('000', StrToIntDef(Trim(ADOQueryPrint.FieldByName('MJXH').AsString), 0)), ntText)); //卷号
|
||||
xmlNode := xml.DocumentElement.AddChild('ColorNumber');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('SOrddefstr1').AsString), ntText)); //色号
|
||||
xmlNode := xml.DocumentElement.AddChild('Breadth');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('MJFK').AsString), ntText)); //幅宽
|
||||
xmlNode := xml.DocumentElement.AddChild('Grammage');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('MJSJKZ').AsString), ntText)); //克重
|
||||
//成分
|
||||
xmlNode := xml.DocumentElement.AddChild('DateMark');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('Filltime').AsString), ntText)); //时间
|
||||
xmlNode := xml.DocumentElement.AddChild('OrderNumber');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('orderno').AsString), ntText)); //订单号
|
||||
//备注1
|
||||
//行备注
|
||||
//工厂条码编号
|
||||
//打印机
|
||||
xmlNode := xml.DocumentElement.AddChild('PrintCopies');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ComboBox1.text), ntText)); //打印份数
|
||||
|
||||
|
||||
xmlNode := xml.DocumentElement.AddChild('FirstRemark');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('Sorddefstr5').AsString), ntText)); //品名英文
|
||||
// xmlNode := xml.DocumentElement.AddChild('Composition');
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('成分', ntText)); //成分
|
||||
xmlNode := xml.DocumentElement.AddChild('Remark');
|
||||
xmlNode.ChildNodes.Add(xml.CreateNode(Trim(ADOQueryPrint.FieldByName('note').AsString), ntText)); //备注
|
||||
// xmlNode := xml.DocumentElement.AddChild('FirstRemark');
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('备注!', ntText)); //备注
|
||||
// xmlNode := xml.DocumentElement.AddChild('Remark');
|
||||
// xmlNode.ChildNodes.Add(xml.CreateNode('行备注', ntText)); //行备注
|
||||
|
||||
xml.SaveToFile('D:\aixun\' + inttostr(DateTimeToUnix(Now)) + '.xml');
|
||||
// xml.SaveToFile('D:\aixun1\' + inttostr(DateTimeToUnix(Now)) + '.xml');
|
||||
finally
|
||||
xmlNode := nil;
|
||||
xml.Free;
|
||||
end;
|
||||
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.SavedataCK();
|
||||
var
|
||||
CRID: Integer;
|
||||
|
|
@ -2463,7 +2623,7 @@ begin
|
|||
begin
|
||||
fRollType := trim(ADOTmp.fieldbyname('Orddefstr15').AsString);
|
||||
end;
|
||||
|
||||
|
||||
Label24.Visible := True;
|
||||
Label24.Caption := '¶©µ¥ºÅ:' + Trim(ADOTmp.fieldbyname('OrderNoM').AsString);
|
||||
Label38.Visible := True;
|
||||
|
|
@ -2486,6 +2646,12 @@ begin
|
|||
FDC := StrToFloatDef(ADOTmp.fieldbyname('DC').asstring, 0);
|
||||
fbaotype := Trim(ADOTmp.fieldbyname('baotype').AsString);
|
||||
fbaosx := Trim(ADOTmp.fieldbyname('baosx').AsString);
|
||||
|
||||
PM.Text := Trim(ADOTmp.fieldbyname('PRTCodeName').AsString);
|
||||
KH.Text := Trim(ADOTmp.fieldbyname('CustomerNoName').AsString);
|
||||
YS.Text := Trim(ADOTmp.fieldbyname('PRTColor').AsString);
|
||||
note.Text := Trim(ADOTmp.fieldbyname('SOrddefstr1').AsString);
|
||||
|
||||
if FDC <> 0 then
|
||||
begin
|
||||
Edit12.Visible := True;
|
||||
|
|
@ -2752,6 +2918,12 @@ begin
|
|||
MJQty3.Text := Trim(ADOTmp.fieldbyname('MJQty3').AsString);
|
||||
MJQty4.Text := Trim(ADOTmp.fieldbyname('MJQty4').AsString);
|
||||
MJMaoZ.Text := Trim(ADOTmp.fieldbyname('MJMaoZ').AsString);
|
||||
|
||||
PM.Text := Trim(ADOTmp.fieldbyname('PM').AsString);
|
||||
YS.Text := Trim(ADOTmp.fieldbyname('YS').AsString);
|
||||
KH.Text := Trim(ADOTmp.fieldbyname('KH').AsString);
|
||||
note.Text := Trim(ADOTmp.fieldbyname('note').AsString);
|
||||
|
||||
Label15.Caption := Trim(CDS_MJID.fieldbyname('MJID').AsString);
|
||||
MJLen.Text := Trim(ADOTmp.fieldbyname('MJLen').AsString);
|
||||
MJstr4.Text := Trim(ADOTmp.fieldbyname('MJstr4').AsString);
|
||||
|
|
@ -2995,6 +3167,10 @@ begin
|
|||
MggCDFalg := '99';
|
||||
|
||||
PrtData(Trim(CDS_MJID.fieldbyname('MJID').AsString));
|
||||
if Trim(edtaixun.Text) = '√' then
|
||||
begin
|
||||
PrtAiXunData(Trim(CDS_MJID.fieldbyname('MJID').AsString));
|
||||
end;
|
||||
Label16.Caption := '';
|
||||
BTAdd.Click;
|
||||
MJLen.SetFocus;
|
||||
|
|
@ -3014,5 +3190,130 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.edtaixunClick(Sender: TObject);
|
||||
begin
|
||||
if Trim(edtaixun.Text) = '' then
|
||||
begin
|
||||
edtaixun.Text := '√';
|
||||
end
|
||||
else
|
||||
begin
|
||||
edtaixun.Text := '';
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.Edit13Click(Sender: TObject);
|
||||
begin
|
||||
if Trim(Edit13.Text) = '' then
|
||||
begin
|
||||
Edit13.Text := '√';
|
||||
|
||||
APID.Text := 'JS2305190001';
|
||||
|
||||
with ADOQueryPrint do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('Update JYOrder_Sub Set SLBName=''' + Trim(SLBName.Text) + ''' + ''.rmf'' ');
|
||||
sql.Add(' where Subid=''' + APID.Text + '''');
|
||||
ExecSQL;
|
||||
end;
|
||||
|
||||
Button3.Click;
|
||||
|
||||
end
|
||||
else
|
||||
begin
|
||||
Edit13.Text := '';
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.SLbNameChange(Sender: TObject);
|
||||
begin
|
||||
if Trim(Edit13.Text) = '' then
|
||||
begin
|
||||
Exit;
|
||||
end
|
||||
else
|
||||
begin
|
||||
with ADOQueryPrint do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('Update JYOrder_Sub Set SLBName=''' + Trim(SLBName.Text) + ''' + ''.rmf'' ');
|
||||
sql.Add(' where Subid=''' + FSubId + '''');
|
||||
ExecSQL;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.Button9Click(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmSCPersonColor := TfrmSCPersonColor.Create(self);
|
||||
with frmSCPersonColor do
|
||||
begin
|
||||
FTYPE := 'KH';
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
KH.Text := FName;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmSCPersonColor.close;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.Button10Click(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmSCPersonColor := TfrmSCPersonColor.Create(self);
|
||||
with frmSCPersonColor do
|
||||
begin
|
||||
FTYPE := 'PM';
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
PM.Text := FName;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmSCPersonColor.close;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.Button11Click(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmSCPersonColor := TfrmSCPersonColor.Create(self);
|
||||
with frmSCPersonColor do
|
||||
begin
|
||||
FTYPE := 'YS';
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
YS.Text := FName;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmSCPersonColor.close;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmMJManageNewFDNewSF.Button8Click(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmSCPersonColor := TfrmSCPersonColor.Create(self);
|
||||
with frmSCPersonColor do
|
||||
begin
|
||||
FTYPE := 'SH';
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
Note.Text := FName;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmSCPersonColor.close;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1363
|
||||
Width = 1371
|
||||
Height = 29
|
||||
ButtonHeight = 30
|
||||
ButtonWidth = 59
|
||||
|
|
@ -66,7 +66,7 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
object ScrollBox1: TScrollBox
|
||||
Left = 0
|
||||
Top = 29
|
||||
Width = 1363
|
||||
Width = 1371
|
||||
Height = 280
|
||||
Align = alTop
|
||||
BevelInner = bvNone
|
||||
|
|
@ -1521,7 +1521,7 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
OnClick = Button1Click
|
||||
end
|
||||
object GroupBox1: TGroupBox
|
||||
Left = 937
|
||||
Left = 945
|
||||
Top = 0
|
||||
Width = 424
|
||||
Height = 278
|
||||
|
|
@ -1548,7 +1548,7 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
object ToolBar2: TToolBar
|
||||
Left = 0
|
||||
Top = 309
|
||||
Width = 1363
|
||||
Width = 1371
|
||||
Height = 29
|
||||
ButtonHeight = 30
|
||||
ButtonWidth = 83
|
||||
|
|
@ -1595,8 +1595,8 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
object cxGrid1: TcxGrid
|
||||
Left = 0
|
||||
Top = 338
|
||||
Width = 1363
|
||||
Height = 384
|
||||
Width = 1371
|
||||
Height = 392
|
||||
Align = alClient
|
||||
TabOrder = 3
|
||||
object Tv1: TcxGridDBTableView
|
||||
|
|
@ -1687,11 +1687,18 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
Width = 67
|
||||
end
|
||||
object v1SOrddefstr1: TcxGridDBColumn
|
||||
Caption = #33394#21495
|
||||
Caption = #22791#27880
|
||||
DataBinding.FieldName = 'SOrddefstr1'
|
||||
PropertiesClassName = 'TcxButtonEditProperties'
|
||||
Properties.Buttons = <
|
||||
item
|
||||
Default = True
|
||||
Kind = bkEllipsis
|
||||
end>
|
||||
Properties.OnButtonClick = v1SOrddefstr1PropertiesButtonClick
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Styles.Header = DataLink_TradeManage.Default
|
||||
Width = 57
|
||||
Width = 100
|
||||
end
|
||||
object v1PRTColor: TcxGridDBColumn
|
||||
Caption = #39068#33394
|
||||
|
|
@ -1738,12 +1745,6 @@ object frmOrderInPut: TfrmOrderInPut
|
|||
Styles.Header = DataLink_TradeManage.FontBlue
|
||||
Width = 77
|
||||
end
|
||||
object v1Column1: TcxGridDBColumn
|
||||
Caption = #22791#27880
|
||||
DataBinding.FieldName = 'SOrdDefNote1'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 123
|
||||
end
|
||||
object v1PRTHX: TcxGridDBColumn
|
||||
Caption = #33457#22411#33457#21495
|
||||
DataBinding.FieldName = 'PRTHX'
|
||||
|
|
|
|||
|
|
@ -12,7 +12,20 @@ uses
|
|||
cxCurrencyEdit, cxImage, Menus, cxLookAndFeelPainters, cxButtons, cxDBEdit,
|
||||
cxGridCustomPopupMenu, cxGridPopupMenu, cxLookAndFeels, cxNavigator,
|
||||
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, RM_Preview,
|
||||
RM_DsgGridReport, RM_e_Graphic, RM_e_bmp;
|
||||
RM_DsgGridReport, RM_e_Graphic, RM_e_bmp, 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
|
||||
TfrmOrderInPut = class(TForm)
|
||||
|
|
@ -126,7 +139,6 @@ type
|
|||
MPRTSCTeBieNote: TMemo;
|
||||
Orddefstr5: TEdit;
|
||||
Label45: TLabel;
|
||||
v1Column1: TcxGridDBColumn;
|
||||
Label46: TLabel;
|
||||
orddefnote1: TMemo;
|
||||
orddefstr1: TBtnEditC;
|
||||
|
|
@ -208,6 +220,8 @@ type
|
|||
procedure Button1Click(Sender: TObject);
|
||||
procedure SLBNameBtnClick(Sender: TObject);
|
||||
procedure ToolButton4Click(Sender: TObject);
|
||||
procedure v1SOrddefstr1PropertiesButtonClick(Sender: TObject;
|
||||
AButtonIndex: Integer);
|
||||
private
|
||||
procedure InitData();
|
||||
procedure ZDYHelp(FButn: TcxButtonEdit; LType: string);
|
||||
|
|
@ -1744,5 +1758,25 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmOrderInPut.v1SOrddefstr1PropertiesButtonClick(
|
||||
Sender: TObject; AButtonIndex: Integer);
|
||||
begin
|
||||
try
|
||||
frmZDYHelp := TfrmZDYHelp.Create(Application);
|
||||
with frmZDYHelp do
|
||||
begin
|
||||
flag := 'SOrddefstr1';
|
||||
flagname := 'É«ºÅ';
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
Self.Order_Sub.Edit;
|
||||
Self.Order_Sub.FieldByName('SOrddefstr1').Value := Trim(ClientDataSet1.fieldbyname('ZDYName').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmZDYHelp.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1366
|
||||
Width = 1374
|
||||
AutoSize = True
|
||||
ButtonHeight = 30
|
||||
ButtonWidth = 95
|
||||
|
|
@ -187,7 +187,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Top = 32
|
||||
Width = 1366
|
||||
Width = 1374
|
||||
Height = 40
|
||||
Align = alTop
|
||||
BevelInner = bvRaised
|
||||
|
|
@ -416,7 +416,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
object cxGrid1: TcxGrid
|
||||
Left = 0
|
||||
Top = 95
|
||||
Width = 1366
|
||||
Width = 1374
|
||||
Height = 333
|
||||
Align = alTop
|
||||
TabOrder = 3
|
||||
|
|
@ -764,8 +764,8 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
end
|
||||
object cxSplitter1: TcxSplitter
|
||||
Left = 0
|
||||
Top = 451
|
||||
Width = 1366
|
||||
Top = 459
|
||||
Width = 1374
|
||||
Height = 8
|
||||
HotZoneClassName = 'TcxMediaPlayer9Style'
|
||||
AlignSplitter = salBottom
|
||||
|
|
@ -773,8 +773,8 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
end
|
||||
object Panel2: TPanel
|
||||
Left = 0
|
||||
Top = 459
|
||||
Width = 1366
|
||||
Top = 467
|
||||
Width = 1374
|
||||
Height = 256
|
||||
Align = alBottom
|
||||
Caption = 'Panel2'
|
||||
|
|
@ -782,7 +782,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
object cxGrid2: TcxGrid
|
||||
Left = 1
|
||||
Top = 1
|
||||
Width = 987
|
||||
Width = 995
|
||||
Height = 254
|
||||
Align = alClient
|
||||
TabOrder = 0
|
||||
|
|
@ -889,7 +889,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
Width = 75
|
||||
end
|
||||
object v1SOrddefstr1: TcxGridDBColumn
|
||||
Caption = #33394#21495
|
||||
Caption = #22791#27880
|
||||
DataBinding.FieldName = 'SOrddefstr1'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
|
|
@ -947,13 +947,6 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
Styles.Header = DataLink_TradeManage.FontBlue
|
||||
Width = 77
|
||||
end
|
||||
object cxSOrdDefNote1: TcxGridDBColumn
|
||||
Caption = #22791#27880
|
||||
DataBinding.FieldName = 'SOrdDefNote1'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 117
|
||||
end
|
||||
object v1Column4: TcxGridDBColumn
|
||||
Caption = #33457#22411#33457#21495
|
||||
DataBinding.FieldName = 'PRTHX'
|
||||
|
|
@ -1097,7 +1090,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
end
|
||||
end
|
||||
object GroupBox1: TGroupBox
|
||||
Left = 988
|
||||
Left = 996
|
||||
Top = 1
|
||||
Width = 377
|
||||
Height = 254
|
||||
|
|
@ -1127,7 +1120,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
object cxTabControl1: TcxTabControl
|
||||
Left = 0
|
||||
Top = 72
|
||||
Width = 1366
|
||||
Width = 1374
|
||||
Height = 23
|
||||
Align = alTop
|
||||
TabOrder = 2
|
||||
|
|
@ -1140,7 +1133,7 @@ object frmProductOrderNewList: TfrmProductOrderNewList
|
|||
#20840#37096)
|
||||
OnChange = cxTabControl1Change
|
||||
ClientRectBottom = 23
|
||||
ClientRectRight = 1366
|
||||
ClientRectRight = 1374
|
||||
ClientRectTop = 19
|
||||
end
|
||||
object cxGridPopupMenu1: TcxGridPopupMenu
|
||||
|
|
|
|||
|
|
@ -12,7 +12,20 @@ uses
|
|||
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, Menus, cxButtonEdit, cxContainer,
|
||||
cxImage, cxDBEdit, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
|
||||
IdFTP, shellAPI, cxPC, cxLookAndFeels, cxLookAndFeelPainters, cxNavigator,
|
||||
dxBarBuiltInMenu;
|
||||
dxBarBuiltInMenu, 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
|
||||
TfrmProductOrderNewList = class(TForm)
|
||||
|
|
@ -81,7 +94,6 @@ type
|
|||
v1SOrddefstr2: TcxGridDBColumn;
|
||||
v1PRTOrderQty: TcxGridDBColumn;
|
||||
v1OrderUnit: TcxGridDBColumn;
|
||||
cxSOrdDefNote1: TcxGridDBColumn;
|
||||
cxGridLevel1: TcxGridLevel;
|
||||
cxSplitter1: TcxSplitter;
|
||||
ADOQuerySub: TADOQuery;
|
||||
|
|
|
|||
371
打卷检验管理/U_SCPersonColor.dfm
Normal file
371
打卷检验管理/U_SCPersonColor.dfm
Normal file
|
|
@ -0,0 +1,371 @@
|
|||
object frmSCPersonColor: TfrmSCPersonColor
|
||||
Left = 632
|
||||
Top = 123
|
||||
Width = 1011
|
||||
Height = 676
|
||||
Caption = #25968#25454#36873#25321
|
||||
Color = clBtnFace
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -12
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
OldCreateOrder = False
|
||||
Position = poScreenCenter
|
||||
OnClose = FormClose
|
||||
OnDestroy = FormDestroy
|
||||
OnShow = FormShow
|
||||
PixelsPerInch = 96
|
||||
TextHeight = 12
|
||||
object ScrollBox1: TScrollBox
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1003
|
||||
Height = 645
|
||||
Align = alClient
|
||||
TabOrder = 0
|
||||
object btn58: TSpeedButton
|
||||
Left = 23
|
||||
Top = 15
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn9: TSpeedButton
|
||||
Left = 215
|
||||
Top = 15
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn10: TSpeedButton
|
||||
Left = 407
|
||||
Top = 15
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn11: TSpeedButton
|
||||
Left = 599
|
||||
Top = 15
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn12: TSpeedButton
|
||||
Left = 791
|
||||
Top = 15
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn59: TSpeedButton
|
||||
Left = 23
|
||||
Top = 159
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn16: TSpeedButton
|
||||
Left = 215
|
||||
Top = 159
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn17: TSpeedButton
|
||||
Left = 407
|
||||
Top = 159
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn18: TSpeedButton
|
||||
Left = 599
|
||||
Top = 159
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn19: TSpeedButton
|
||||
Left = 791
|
||||
Top = 159
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn60: TSpeedButton
|
||||
Left = 23
|
||||
Top = 302
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn23: TSpeedButton
|
||||
Left = 215
|
||||
Top = 302
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn24: TSpeedButton
|
||||
Left = 407
|
||||
Top = 302
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn25: TSpeedButton
|
||||
Left = 599
|
||||
Top = 302
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn26: TSpeedButton
|
||||
Left = 791
|
||||
Top = 302
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn61: TSpeedButton
|
||||
Left = 23
|
||||
Top = 446
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn30: TSpeedButton
|
||||
Left = 215
|
||||
Top = 446
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn31: TSpeedButton
|
||||
Left = 407
|
||||
Top = 446
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn32: TSpeedButton
|
||||
Left = 599
|
||||
Top = 446
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object btn33: TSpeedButton
|
||||
Left = 791
|
||||
Top = 446
|
||||
Width = 180
|
||||
Height = 120
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
Visible = False
|
||||
OnClick = btn1Click
|
||||
end
|
||||
object Label27: TLabel
|
||||
Left = 434
|
||||
Top = 589
|
||||
Width = 78
|
||||
Height = 21
|
||||
Caption = #24403#21069#39029':'
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clRed
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label1: TLabel
|
||||
Left = 528
|
||||
Top = 588
|
||||
Width = 12
|
||||
Height = 21
|
||||
Caption = '1'
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clRed
|
||||
Font.Height = -21
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Button3: TButton
|
||||
Left = 587
|
||||
Top = 585
|
||||
Width = 148
|
||||
Height = 29
|
||||
Caption = #19979#19968#39029
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -19
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 0
|
||||
OnClick = Button3Click
|
||||
end
|
||||
object Button1: TButton
|
||||
Left = 258
|
||||
Top = 585
|
||||
Width = 148
|
||||
Height = 29
|
||||
Caption = #19978#19968#39029
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -19
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 1
|
||||
OnClick = Button1Click
|
||||
end
|
||||
end
|
||||
object ADOTmp: TADOQuery
|
||||
Connection = DataLink_TradeManage.ADOLink
|
||||
LockType = ltReadOnly
|
||||
Parameters = <>
|
||||
Left = 856
|
||||
Top = 504
|
||||
end
|
||||
end
|
||||
223
打卷检验管理/U_SCPersonColor.pas
Normal file
223
打卷检验管理/U_SCPersonColor.pas
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
unit U_SCPersonColor;
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, Buttons, DB, ADODB, StdCtrls;
|
||||
|
||||
type
|
||||
TfrmSCPersonColor = class(TForm)
|
||||
ScrollBox1: TScrollBox;
|
||||
btn58: TSpeedButton;
|
||||
btn9: TSpeedButton;
|
||||
btn10: TSpeedButton;
|
||||
btn11: TSpeedButton;
|
||||
btn12: TSpeedButton;
|
||||
btn59: TSpeedButton;
|
||||
btn16: TSpeedButton;
|
||||
btn17: TSpeedButton;
|
||||
btn18: TSpeedButton;
|
||||
btn19: TSpeedButton;
|
||||
btn60: TSpeedButton;
|
||||
btn23: TSpeedButton;
|
||||
btn24: TSpeedButton;
|
||||
btn25: TSpeedButton;
|
||||
btn26: TSpeedButton;
|
||||
btn61: TSpeedButton;
|
||||
btn31: TSpeedButton;
|
||||
btn32: TSpeedButton;
|
||||
btn33: TSpeedButton;
|
||||
ADOTmp: TADOQuery;
|
||||
Label27: TLabel;
|
||||
Label1: TLabel;
|
||||
Button3: TButton;
|
||||
Button1: TButton;
|
||||
procedure FormDestroy(Sender: TObject);
|
||||
procedure FormShow(Sender: TObject);
|
||||
procedure btn1Click(Sender: TObject);
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure Button1Click(Sender: TObject);
|
||||
procedure Button3Click(Sender: TObject);
|
||||
private
|
||||
CPage: Integer;
|
||||
procedure InitPerson(page: Integer);
|
||||
{ Private declarations }
|
||||
public
|
||||
FlagStr: string;
|
||||
FName, FSJZL, FType: string;
|
||||
{ Public declarations }
|
||||
end;
|
||||
|
||||
var
|
||||
frmSCPersonColor: TfrmSCPersonColor;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
U_DataLink;
|
||||
|
||||
{$R *.dfm}
|
||||
|
||||
procedure TfrmSCPersonColor.FormDestroy(Sender: TObject);
|
||||
begin
|
||||
frmSCPersonColor := nil;
|
||||
end;
|
||||
|
||||
procedure TfrmSCPersonColor.InitPerson(page: Integer);
|
||||
type
|
||||
FdDy = record
|
||||
inc: integer;
|
||||
FDdys: string[32];
|
||||
FdDysName: string[32];
|
||||
end;
|
||||
var
|
||||
BB: array[0..500] of FdDy;
|
||||
i, j: Integer;
|
||||
begin
|
||||
with ADOTmp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
if FTYPE = 'KH' then
|
||||
begin
|
||||
sql.Add('select AA.*,row_number () over (order by name) as keyNo from(select DISTINCT zdyname as name,note from kh_zdy where type=''CustomerNoName'')AA');
|
||||
// sql.Add('select ZDYName from KH_Zdy where Type=''' + flag + ''' order by ZDYNO ');
|
||||
end
|
||||
else if FTYPE = 'PM' then
|
||||
begin
|
||||
sql.Add('select AA.*,row_number () over (order by name) as keyNo from(select DISTINCT zdyname as name,note from kh_zdy where type=''PRTCodeName'')AA');
|
||||
end
|
||||
else if FTYPE = 'YS' then
|
||||
begin
|
||||
sql.Add('select AA.*,row_number () over (order by name) as keyNo from(select DISTINCT zdyname as name,note from kh_zdy where type=''OrdColor'')AA');
|
||||
end
|
||||
else if FTYPE = 'HX' then
|
||||
begin
|
||||
sql.Add('select AA.*,row_number () over (order by name) as keyNo from(select DISTINCT zdyname as name,note from kh_zdy where type=''PRTHX'')AA');
|
||||
end
|
||||
else if FTYPE = 'SH' then
|
||||
begin
|
||||
sql.Add('select AA.*,row_number () over (order by name) as keyNo from(select DISTINCT zdyname as name,note from kh_zdy where type=''SOrddefstr1'')AA');
|
||||
end;
|
||||
|
||||
|
||||
|
||||
// showmessage(sql.text);
|
||||
Open;
|
||||
end;
|
||||
|
||||
if ADOTmp.IsEmpty then
|
||||
begin
|
||||
Application.MessageBox('没有定义数据!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
|
||||
j := (StrToInt(Label1.Caption) - 1) * 20 + 1;
|
||||
for i := 0 to 19 do
|
||||
begin
|
||||
|
||||
with ScrollBox1 do
|
||||
begin
|
||||
if ADOTmp.locate('keyNo', j + i, []) then
|
||||
begin
|
||||
// application.MessageBox(pchar(CDS_Kuang.FieldByName('ZDYName').AsString), '提示信息', 0);
|
||||
TSpeedButton(Controls[i]).Visible := True;
|
||||
TSpeedButton(Controls[i]).Caption := Trim(ADOTmp.FieldByName('name').AsString);
|
||||
if FTYPE = '挡车工' then
|
||||
begin
|
||||
TSpeedButton(Controls[i]).hint := Trim(ADOTmp.FieldByName('note').AsString);
|
||||
end;
|
||||
|
||||
end
|
||||
else
|
||||
begin
|
||||
TSpeedButton(Controls[i]).Visible := False;
|
||||
|
||||
// application.MessageBox(pchar('没找到' + inttostr(i)), '提示信息', 0);
|
||||
|
||||
end;
|
||||
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
// with ADOTmp do
|
||||
// begin
|
||||
// First;
|
||||
// i := 0;
|
||||
// while not Eof do
|
||||
// begin
|
||||
// BB[i].inc := i;
|
||||
// BB[i].FdDysName := Trim(fieldbyname('name').AsString);
|
||||
// i := i + 1;
|
||||
// Next;
|
||||
// end;
|
||||
// end;
|
||||
// i := i - 1;
|
||||
// if i > 19 then
|
||||
// begin
|
||||
// i := 19;
|
||||
// end;
|
||||
// for j := 0 to 19 do
|
||||
// begin
|
||||
// with ScrollBox1 do
|
||||
// begin
|
||||
// TSpeedButton(Controls[j]).Visible := false;
|
||||
// TSpeedButton(Controls[j]).Caption := '';
|
||||
// TSpeedButton(Controls[j]).Hint := '';
|
||||
// end;
|
||||
// end;
|
||||
// for j := 0 to i do
|
||||
// begin
|
||||
// with ScrollBox1 do
|
||||
// begin
|
||||
// TSpeedButton(Controls[j]).Visible := True;
|
||||
// TSpeedButton(Controls[j]).Caption := BB[j].FdDysName;
|
||||
// end;
|
||||
// end;
|
||||
end;
|
||||
|
||||
procedure TfrmSCPersonColor.FormShow(Sender: TObject);
|
||||
begin
|
||||
InitPerson(1);
|
||||
CPage := 1;
|
||||
end;
|
||||
|
||||
procedure TfrmSCPersonColor.btn1Click(Sender: TObject);
|
||||
begin
|
||||
FName := Trim(TSpeedButton(Sender).Caption);
|
||||
ModalResult := 1;
|
||||
end;
|
||||
|
||||
procedure TfrmSCPersonColor.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
begin
|
||||
Action := caHide;
|
||||
end;
|
||||
|
||||
procedure TfrmSCPersonColor.Button1Click(Sender: TObject);
|
||||
begin
|
||||
if CPage <= 1 then
|
||||
begin
|
||||
|
||||
Label1.Caption := '1';
|
||||
InitPerson(1);
|
||||
end
|
||||
else
|
||||
begin
|
||||
CPage := CPage - 1;
|
||||
|
||||
Label1.Caption := IntToStr(CPage);
|
||||
InitPerson(CPage);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmSCPersonColor.Button3Click(Sender: TObject);
|
||||
begin
|
||||
CPage := CPage + 1;
|
||||
Label1.Caption := IntToStr(CPage);
|
||||
InitPerson(CPage);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user