📄 pish.h
字号:
//---------------------------------------------------------------------------
#ifndef PishH
#define PishH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DateEdit.hpp"
#include "fpanel.h"
#include "GenBaseForm.h"
#include "SDComboBox.h"
#include "SDEdit.h"
#include "SDGrid.h"
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <Grids.hpp>
#include <ImgList.hpp>
#include <Mask.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include <Dialogs.hpp>
#include "GoodsQuery.h"
//---------------------------------------------------------------------------
class PACKAGE TfrmPish ;
class TfrmPish : public TGenBaseForm
{
__published: // IDE-managed Components
TFloatPanel *FloatPanel1;
TLabel *Label10;
TLabel *labPishSysDate;
TFloatPanel *FloatPanel3;
TLabel *Label36;
TLabel *Label8;
TLabel *Label12;
TLabel *labPishUser;
TLabel *labPishPoster;
TLabel *labPishChecker;
TSDGrid *sgPish;
TLabel *Label1;
TSDEdit *sePishCode;
TLabel *Label3;
TSDComboBox *scPishType;
TLabel *Label9;
TDateEdit *dePishDate;
TLabel *Label2;
TSDComboBox *scPishFmonth;
TLabel *Label7;
TSDComboBox *scPishPosType;
TLabel *Label11;
TSDComboBox *scPishState;
TCheckBox *chkPishCheck;
TCheckBox *chkPishCancel;
TCheckBox *chkPishPost;
TLabel *Label6;
TLabel *Label17;
TMemo *memPishDesc;
TCheckBox *chkPishRed;
TFloatPanel *FloatPanel2;
TLabel *Label18;
TLabel *Label19;
TLabel *Label20;
TLabel *Label23;
TLabel *Label13;
TLabel *Label14;
TLabel *Label15;
TLabel *Label16;
TLabel *Label21;
TLabel *Label22;
TLabel *labPisdGoodsName;
TLabel *Label25;
TBitBtn *btnOK;
TBitBtn *btnCancel;
TSDEdit *sePisdLine;
TSDComboBox *scPisdUnit;
TSDEdit *sePisdQty;
TSDEdit *sePisdSod;
TSDComboBox *scPisdBatch;
TMemo *memPisdDesc;
TSDEdit *sePisdPrice;
TLabel *Label4;
TSDComboBox *scPisdState;
TLabel *Label27;
TSDComboBox *scPishDept;
TLabel *Label5;
TLabel *lblFromCode;
TLabel *lblFromLine;
TSDComboBox *scPisdFrom;
TSDEdit *sePisdFromCode;
TSDEdit *sePisdFromLine;
TLabel *Label28;
TSDEdit *sePisdAmt;
TSDEdit *sePisdGoods;
TSDEdit *sePisdLoc;
TSDEdit *sePisdSodLine;
TSDComboBox *scPishKeeper;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormShow(TObject *Sender);
void __fastcall sgPishSelectCell(TObject *Sender, int ACol, int ARow,
bool &CanSelect);
void __fastcall btnOKClick(TObject *Sender);
void __fastcall btnCancelClick(TObject *Sender);
void __fastcall sgPishDblClick(TObject *Sender);
void __fastcall sePisdGoodsButtonClick(TObject *Sender);
void __fastcall sePisdGoodsExit(TObject *Sender);
void __fastcall scPishTypeChange(TObject *Sender);
void __fastcall sePisdQtyExit(TObject *Sender);
void __fastcall sePisdLocButtonClick(TObject *Sender);
void __fastcall sePisdSodButtonClick(TObject *Sender);
void __fastcall sePishCodeExit(TObject *Sender);
private: // User declarations
AnsiString pv_GoodsCode;
AnsiString __fastcall GetHeadValue(int Index);
AnsiString __fastcall GetItemStringToGrid();
void __fastcall SetHeadValue(int Index ,AnsiString Value);
void __fastcall RefreshUpdateData(int MsgSrc,int MsgType);
void __fastcall SetDetail(AnsiString gc);
void __fastcall UnDoChange(){};
public: // User declarations
AnsiString FormIniFile;
int MaxLineNum;//最大行号
AnsiString __fastcall GetDetailValue(int FieldIndex);
void __fastcall InitEditControl();
void __fastcall ClearControl(int Section,bool BringToNext);
void __fastcall GetDataFromComObject(int Section);
void __fastcall SendDataToComObject(int Section);
void __fastcall WaitUserInput(int Section);
void __fastcall RefreshGridData(int mAction);
void __fastcall DisplayBill();
void __fastcall GetBill(AnsiString BillID);
void __fastcall FillGridWithData();
void __fastcall ChangeToBrowseState(bool agree=false);
void __fastcall GenrateBill();
void __fastcall BackDisp();
void __fastcall SetDetailValue(int Index, AnsiString Value);
__fastcall TfrmPish(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmPish *frmPish;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -