坯布仓库
This commit is contained in:
parent
a7e6fb4bb5
commit
412b263c99
|
|
@ -281,7 +281,7 @@ inherited frmTatClothCKHZList: TfrmTatClothCKHZList
|
|||
end
|
||||
object v1Column25: TcxGridDBColumn
|
||||
Caption = #23458#25143
|
||||
DataBinding.FieldName = 'ContractBuyName'
|
||||
DataBinding.FieldName = 'DR_ToCoName'
|
||||
DataBinding.IsNullValueType = True
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
|
|
@ -349,7 +349,7 @@ inherited frmTatClothCKHZList: TfrmTatClothCKHZList
|
|||
TabOrder = 3
|
||||
Properties.CustomButtons.Buttons = <>
|
||||
Properties.Style = 9
|
||||
Properties.TabIndex = 0
|
||||
Properties.TabIndex = 1
|
||||
Properties.Tabs.Strings = (
|
||||
#20135#21697#27719#24635
|
||||
#23458#25143#27719#24635)
|
||||
|
|
@ -419,5 +419,9 @@ inherited frmTatClothCKHZList: TfrmTatClothCKHZList
|
|||
Caption = #20840#24323
|
||||
OnClick = PM11Click
|
||||
end
|
||||
object N2: TMenuItem
|
||||
Caption = #22797#21046
|
||||
OnClick = N2Click
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ type
|
|||
PM11: TMenuItem;
|
||||
N1: TMenuItem;
|
||||
cxTabControl1: TcxTabControl;
|
||||
N2: TMenuItem;
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure TBRafreshClick(Sender: TObject);
|
||||
|
|
@ -78,6 +79,7 @@ type
|
|||
procedure IsJYTimeClick(Sender: TObject);
|
||||
procedure C_NameKeyPress(Sender: TObject; var Key: Char);
|
||||
procedure cxTabControl1Change(Sender: TObject);
|
||||
procedure N2Click(Sender: TObject);
|
||||
private
|
||||
CurrentPage, RecordsNumber: Integer;
|
||||
lstCust: TStringList;
|
||||
|
|
@ -147,9 +149,9 @@ begin
|
|||
end
|
||||
else
|
||||
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(' group by ContractBuyName,IONo,C_NAME');
|
||||
sql.Add(' group by DR_ToCoName,IONo,C_NAME');
|
||||
end;
|
||||
|
||||
// showmessage(sql.text);
|
||||
|
|
@ -301,6 +303,11 @@ begin
|
|||
SelOKNo(CDS_1, true);
|
||||
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);
|
||||
var
|
||||
WSql: string;
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ inherited frmTatClothOutList: TfrmTatClothOutList
|
|||
Width = 52
|
||||
Height = 12
|
||||
Hint = '0'
|
||||
Caption = #35745#21010#21333#21495
|
||||
Caption = #20986#24211#21333#21495
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -12
|
||||
|
|
@ -291,7 +291,7 @@ inherited frmTatClothOutList: TfrmTatClothOutList
|
|||
State = cbChecked
|
||||
TabOrder = 0
|
||||
end
|
||||
object OrderNo: TEdit
|
||||
object IONO: TEdit
|
||||
Tag = 2
|
||||
Left = 248
|
||||
Top = 6
|
||||
|
|
@ -299,7 +299,7 @@ inherited frmTatClothOutList: TfrmTatClothOutList
|
|||
Height = 20
|
||||
Hint = '0'
|
||||
TabOrder = 5
|
||||
OnKeyPress = orderNoKeyPress
|
||||
OnKeyPress = IONOKeyPress
|
||||
end
|
||||
object conNO: TEdit
|
||||
Tag = 2
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ type
|
|||
Label20: TLabel;
|
||||
Label23: TLabel;
|
||||
Label1: TLabel;
|
||||
OrderNo: TEdit;
|
||||
IONO: TEdit;
|
||||
conNO: TEdit;
|
||||
STKID: TEdit;
|
||||
C_Name: TEdit;
|
||||
|
|
@ -120,7 +120,7 @@ type
|
|||
procedure TBCloseClick(Sender: TObject);
|
||||
procedure FormShow(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 Tv1CellDblClick(Sender: TcxCustomGridTableView; ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton; AShift: TShiftState; var AHandled: Boolean);
|
||||
procedure BTNPClick(Sender: TObject);
|
||||
|
|
@ -275,7 +275,7 @@ begin
|
|||
TcxGridToExcel(Self.Caption, cxGrid1);
|
||||
end;
|
||||
|
||||
procedure TfrmTatClothOutList.orderNoKeyPress(Sender: TObject; var Key: Char);
|
||||
procedure TfrmTatClothOutList.IONOKeyPress(Sender: TObject; var Key: Char);
|
||||
begin
|
||||
if Key = #13 then
|
||||
begin
|
||||
|
|
|
|||
|
|
@ -98,6 +98,20 @@ inherited frmTatClothRKHZList: TfrmTatClothRKHZList
|
|||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
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
|
||||
Left = 88
|
||||
Top = 6
|
||||
|
|
@ -163,6 +177,16 @@ inherited frmTatClothRKHZList: TfrmTatClothRKHZList
|
|||
TabOrder = 5
|
||||
OnKeyPress = C_NameKeyPress
|
||||
end
|
||||
object carno: TEdit
|
||||
Tag = 2
|
||||
Left = 237
|
||||
Top = 32
|
||||
Width = 100
|
||||
Height = 20
|
||||
Hint = '0'
|
||||
TabOrder = 6
|
||||
OnKeyPress = C_NameKeyPress
|
||||
end
|
||||
end
|
||||
object cxTabControl1: TcxTabControl [2]
|
||||
Left = 0
|
||||
|
|
@ -202,8 +226,6 @@ inherited frmTatClothRKHZList: TfrmTatClothRKHZList
|
|||
ParentFont = False
|
||||
PopupMenu = PM_1
|
||||
TabOrder = 2
|
||||
ExplicitTop = 137
|
||||
ExplicitHeight = 463
|
||||
object Tv1: TcxGridDBTableView
|
||||
Navigator.Buttons.CustomButtons = <>
|
||||
ScrollbarAnnotations.CustomAnnotations = <>
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ type
|
|||
Tv1carno: TcxGridDBColumn;
|
||||
Tv1StkNetWeight: TcxGridDBColumn;
|
||||
cxTabControl1: TcxTabControl;
|
||||
carno: TEdit;
|
||||
Label1: TLabel;
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure TBRafreshClick(Sender: TObject);
|
||||
|
|
@ -154,6 +156,11 @@ begin
|
|||
v1Column22.Visible := cxTabControl1.TabIndex = 0;
|
||||
Tv1carno.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);
|
||||
SInitCDSData(ADOQueryMain, CDS_1);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user