坯布仓库
This commit is contained in:
parent
a7e6fb4bb5
commit
412b263c99
|
|
@ -281,7 +281,7 @@ inherited frmTatClothCKHZList: TfrmTatClothCKHZList
|
||||||
end
|
end
|
||||||
object v1Column25: TcxGridDBColumn
|
object v1Column25: TcxGridDBColumn
|
||||||
Caption = #23458#25143
|
Caption = #23458#25143
|
||||||
DataBinding.FieldName = 'ContractBuyName'
|
DataBinding.FieldName = 'DR_ToCoName'
|
||||||
DataBinding.IsNullValueType = True
|
DataBinding.IsNullValueType = True
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Options.Editing = False
|
Options.Editing = False
|
||||||
|
|
@ -349,7 +349,7 @@ inherited frmTatClothCKHZList: TfrmTatClothCKHZList
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
Properties.CustomButtons.Buttons = <>
|
Properties.CustomButtons.Buttons = <>
|
||||||
Properties.Style = 9
|
Properties.Style = 9
|
||||||
Properties.TabIndex = 0
|
Properties.TabIndex = 1
|
||||||
Properties.Tabs.Strings = (
|
Properties.Tabs.Strings = (
|
||||||
#20135#21697#27719#24635
|
#20135#21697#27719#24635
|
||||||
#23458#25143#27719#24635)
|
#23458#25143#27719#24635)
|
||||||
|
|
@ -419,5 +419,9 @@ inherited frmTatClothCKHZList: TfrmTatClothCKHZList
|
||||||
Caption = #20840#24323
|
Caption = #20840#24323
|
||||||
OnClick = PM11Click
|
OnClick = PM11Click
|
||||||
end
|
end
|
||||||
|
object N2: TMenuItem
|
||||||
|
Caption = #22797#21046
|
||||||
|
OnClick = N2Click
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ type
|
||||||
PM11: TMenuItem;
|
PM11: TMenuItem;
|
||||||
N1: TMenuItem;
|
N1: TMenuItem;
|
||||||
cxTabControl1: TcxTabControl;
|
cxTabControl1: TcxTabControl;
|
||||||
|
N2: TMenuItem;
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure TBRafreshClick(Sender: TObject);
|
procedure TBRafreshClick(Sender: TObject);
|
||||||
|
|
@ -78,6 +79,7 @@ type
|
||||||
procedure IsJYTimeClick(Sender: TObject);
|
procedure IsJYTimeClick(Sender: TObject);
|
||||||
procedure C_NameKeyPress(Sender: TObject; var Key: Char);
|
procedure C_NameKeyPress(Sender: TObject; var Key: Char);
|
||||||
procedure cxTabControl1Change(Sender: TObject);
|
procedure cxTabControl1Change(Sender: TObject);
|
||||||
|
procedure N2Click(Sender: TObject);
|
||||||
private
|
private
|
||||||
CurrentPage, RecordsNumber: Integer;
|
CurrentPage, RecordsNumber: Integer;
|
||||||
lstCust: TStringList;
|
lstCust: TStringList;
|
||||||
|
|
@ -147,9 +149,9 @@ begin
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
sql.Add('select ContractBuyName,IONo,C_NAME,MAX(A.DR_unit_price) unit_price,COUNT(*)JS,SUM(Meter)stkMeter,SUM(Yardage)StkYardage,SUM(NetWeight)StkWeight');
|
sql.Add('select DR_ToCoName,IONo,C_NAME,MAX(A.DR_unit_price) unit_price,COUNT(*)JS,SUM(Meter)stkMeter,SUM(Yardage)StkYardage,SUM(NetWeight)StkWeight');
|
||||||
sql.Add(' FROM V_Tat_Cloth_IO A where A.IOFlag = ''³ö¿â'' ' + WSql);
|
sql.Add(' FROM V_Tat_Cloth_IO A where A.IOFlag = ''³ö¿â'' ' + WSql);
|
||||||
sql.Add(' group by ContractBuyName,IONo,C_NAME');
|
sql.Add(' group by DR_ToCoName,IONo,C_NAME');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// showmessage(sql.text);
|
// showmessage(sql.text);
|
||||||
|
|
@ -301,6 +303,11 @@ begin
|
||||||
SelOKNo(CDS_1, true);
|
SelOKNo(CDS_1, true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfrmTatClothCKHZList.N2Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
Clipboard.SetTextBuf(PChar(Trim(CDS_1.fieldbyname(TV1.Controller.FocusedColumn.DataBinding.FilterFieldName).AsString)));
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfrmTatClothCKHZList.ToolButton2Click(Sender: TObject);
|
procedure TfrmTatClothCKHZList.ToolButton2Click(Sender: TObject);
|
||||||
var
|
var
|
||||||
WSql: string;
|
WSql: string;
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ inherited frmTatClothOutList: TfrmTatClothOutList
|
||||||
Width = 52
|
Width = 52
|
||||||
Height = 12
|
Height = 12
|
||||||
Hint = '0'
|
Hint = '0'
|
||||||
Caption = #35745#21010#21333#21495
|
Caption = #20986#24211#21333#21495
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -12
|
Font.Height = -12
|
||||||
|
|
@ -291,7 +291,7 @@ inherited frmTatClothOutList: TfrmTatClothOutList
|
||||||
State = cbChecked
|
State = cbChecked
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
object OrderNo: TEdit
|
object IONO: TEdit
|
||||||
Tag = 2
|
Tag = 2
|
||||||
Left = 248
|
Left = 248
|
||||||
Top = 6
|
Top = 6
|
||||||
|
|
@ -299,7 +299,7 @@ inherited frmTatClothOutList: TfrmTatClothOutList
|
||||||
Height = 20
|
Height = 20
|
||||||
Hint = '0'
|
Hint = '0'
|
||||||
TabOrder = 5
|
TabOrder = 5
|
||||||
OnKeyPress = orderNoKeyPress
|
OnKeyPress = IONOKeyPress
|
||||||
end
|
end
|
||||||
object conNO: TEdit
|
object conNO: TEdit
|
||||||
Tag = 2
|
Tag = 2
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ type
|
||||||
Label20: TLabel;
|
Label20: TLabel;
|
||||||
Label23: TLabel;
|
Label23: TLabel;
|
||||||
Label1: TLabel;
|
Label1: TLabel;
|
||||||
OrderNo: TEdit;
|
IONO: TEdit;
|
||||||
conNO: TEdit;
|
conNO: TEdit;
|
||||||
STKID: TEdit;
|
STKID: TEdit;
|
||||||
C_Name: TEdit;
|
C_Name: TEdit;
|
||||||
|
|
@ -120,7 +120,7 @@ type
|
||||||
procedure TBCloseClick(Sender: TObject);
|
procedure TBCloseClick(Sender: TObject);
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
procedure TBExportClick(Sender: TObject);
|
procedure TBExportClick(Sender: TObject);
|
||||||
procedure orderNoKeyPress(Sender: TObject; var Key: Char);
|
procedure IONOKeyPress(Sender: TObject; var Key: Char);
|
||||||
procedure TBRKCXClick(Sender: TObject);
|
procedure TBRKCXClick(Sender: TObject);
|
||||||
procedure Tv1CellDblClick(Sender: TcxCustomGridTableView; ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton; AShift: TShiftState; var AHandled: Boolean);
|
procedure Tv1CellDblClick(Sender: TcxCustomGridTableView; ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton; AShift: TShiftState; var AHandled: Boolean);
|
||||||
procedure BTNPClick(Sender: TObject);
|
procedure BTNPClick(Sender: TObject);
|
||||||
|
|
@ -275,7 +275,7 @@ begin
|
||||||
TcxGridToExcel(Self.Caption, cxGrid1);
|
TcxGridToExcel(Self.Caption, cxGrid1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmTatClothOutList.orderNoKeyPress(Sender: TObject; var Key: Char);
|
procedure TfrmTatClothOutList.IONOKeyPress(Sender: TObject; var Key: Char);
|
||||||
begin
|
begin
|
||||||
if Key = #13 then
|
if Key = #13 then
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,20 @@ inherited frmTatClothRKHZList: TfrmTatClothRKHZList
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
end
|
end
|
||||||
|
object Label1: TLabel
|
||||||
|
Left = 190
|
||||||
|
Top = 34
|
||||||
|
Width = 39
|
||||||
|
Height = 12
|
||||||
|
Hint = '0'
|
||||||
|
Caption = #26426#21488#21495
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -12
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
end
|
||||||
object BegDate: TDateTimePicker
|
object BegDate: TDateTimePicker
|
||||||
Left = 88
|
Left = 88
|
||||||
Top = 6
|
Top = 6
|
||||||
|
|
@ -163,6 +177,16 @@ inherited frmTatClothRKHZList: TfrmTatClothRKHZList
|
||||||
TabOrder = 5
|
TabOrder = 5
|
||||||
OnKeyPress = C_NameKeyPress
|
OnKeyPress = C_NameKeyPress
|
||||||
end
|
end
|
||||||
|
object carno: TEdit
|
||||||
|
Tag = 2
|
||||||
|
Left = 237
|
||||||
|
Top = 32
|
||||||
|
Width = 100
|
||||||
|
Height = 20
|
||||||
|
Hint = '0'
|
||||||
|
TabOrder = 6
|
||||||
|
OnKeyPress = C_NameKeyPress
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object cxTabControl1: TcxTabControl [2]
|
object cxTabControl1: TcxTabControl [2]
|
||||||
Left = 0
|
Left = 0
|
||||||
|
|
@ -202,8 +226,6 @@ inherited frmTatClothRKHZList: TfrmTatClothRKHZList
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
PopupMenu = PM_1
|
PopupMenu = PM_1
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
ExplicitTop = 137
|
|
||||||
ExplicitHeight = 463
|
|
||||||
object Tv1: TcxGridDBTableView
|
object Tv1: TcxGridDBTableView
|
||||||
Navigator.Buttons.CustomButtons = <>
|
Navigator.Buttons.CustomButtons = <>
|
||||||
ScrollbarAnnotations.CustomAnnotations = <>
|
ScrollbarAnnotations.CustomAnnotations = <>
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ type
|
||||||
Tv1carno: TcxGridDBColumn;
|
Tv1carno: TcxGridDBColumn;
|
||||||
Tv1StkNetWeight: TcxGridDBColumn;
|
Tv1StkNetWeight: TcxGridDBColumn;
|
||||||
cxTabControl1: TcxTabControl;
|
cxTabControl1: TcxTabControl;
|
||||||
|
carno: TEdit;
|
||||||
|
Label1: TLabel;
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure TBRafreshClick(Sender: TObject);
|
procedure TBRafreshClick(Sender: TObject);
|
||||||
|
|
@ -154,6 +156,11 @@ begin
|
||||||
v1Column22.Visible := cxTabControl1.TabIndex = 0;
|
v1Column22.Visible := cxTabControl1.TabIndex = 0;
|
||||||
Tv1carno.Visible := cxTabControl1.TabIndex = 0;
|
Tv1carno.Visible := cxTabControl1.TabIndex = 0;
|
||||||
Tv1Column1.Visible := cxTabControl1.TabIndex = 0;
|
Tv1Column1.Visible := cxTabControl1.TabIndex = 0;
|
||||||
|
//产品汇总页隐藏机台号搜索框;隐藏时须清空文本,否则SGetFilters仍会把carno拼进SQL(该页SQL无carno列)
|
||||||
|
Label1.Visible := cxTabControl1.TabIndex = 0;
|
||||||
|
carno.Visible := Label1.Visible;
|
||||||
|
if not carno.Visible then
|
||||||
|
carno.Clear;
|
||||||
SCreateCDS(ADOQueryMain, CDS_1);
|
SCreateCDS(ADOQueryMain, CDS_1);
|
||||||
SInitCDSData(ADOQueryMain, CDS_1);
|
SInitCDSData(ADOQueryMain, CDS_1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user