From 412b263c993d4cc3fe5bf7d9ecd0a37fef9c5471 Mon Sep 17 00:00:00 2001 From: funa <1559646174@qq.com> Date: Tue, 10 Nov 2026 17:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=AF=E5=B8=83=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- E04梭织坯布仓库/U_TatClothCKHZList.dfm | 8 ++++++-- E04梭织坯布仓库/U_TatClothCKHZList.pas | 11 +++++++++-- E04梭织坯布仓库/U_TatClothOutList.dfm | 6 +++--- E04梭织坯布仓库/U_TatClothOutList.pas | 6 +++--- E04梭织坯布仓库/U_TatClothRKHZList.dfm | 26 ++++++++++++++++++++++++-- E04梭织坯布仓库/U_TatClothRKHZList.pas | 7 +++++++ 6 files changed, 52 insertions(+), 12 deletions(-) diff --git a/E04梭织坯布仓库/U_TatClothCKHZList.dfm b/E04梭织坯布仓库/U_TatClothCKHZList.dfm index 8f3abc6..e62dcc2 100644 --- a/E04梭织坯布仓库/U_TatClothCKHZList.dfm +++ b/E04梭织坯布仓库/U_TatClothCKHZList.dfm @@ -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 diff --git a/E04梭织坯布仓库/U_TatClothCKHZList.pas b/E04梭织坯布仓库/U_TatClothCKHZList.pas index 851c5e4..3287a3e 100644 --- a/E04梭织坯布仓库/U_TatClothCKHZList.pas +++ b/E04梭织坯布仓库/U_TatClothCKHZList.pas @@ -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; diff --git a/E04梭织坯布仓库/U_TatClothOutList.dfm b/E04梭织坯布仓库/U_TatClothOutList.dfm index ae7025f..954d6a5 100644 --- a/E04梭织坯布仓库/U_TatClothOutList.dfm +++ b/E04梭织坯布仓库/U_TatClothOutList.dfm @@ -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 diff --git a/E04梭织坯布仓库/U_TatClothOutList.pas b/E04梭织坯布仓库/U_TatClothOutList.pas index ce3b973..73c30ee 100644 --- a/E04梭织坯布仓库/U_TatClothOutList.pas +++ b/E04梭织坯布仓库/U_TatClothOutList.pas @@ -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 diff --git a/E04梭织坯布仓库/U_TatClothRKHZList.dfm b/E04梭织坯布仓库/U_TatClothRKHZList.dfm index 2a64c45..9a83c9f 100644 --- a/E04梭织坯布仓库/U_TatClothRKHZList.dfm +++ b/E04梭织坯布仓库/U_TatClothRKHZList.dfm @@ -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 = <> diff --git a/E04梭织坯布仓库/U_TatClothRKHZList.pas b/E04梭织坯布仓库/U_TatClothRKHZList.pas index 53379e5..737c39b 100644 --- a/E04梭织坯布仓库/U_TatClothRKHZList.pas +++ b/E04梭织坯布仓库/U_TatClothRKHZList.pas @@ -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);