Ecoh.h
Upload User: xgxgxg8
Upload Date: 2007-02-22
Package Size: 6882k
Code Size: 4k
Development Platform:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef EcohH
  3. #define EcohH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "BillBaseForm.h"
  10. #include "DateEdit.hpp"
  11. #include "fpanel.h"
  12. #include "SDComboBox.h"
  13. #include "SDEdit.h"
  14. #include <Buttons.hpp>
  15. #include <ComCtrls.hpp>
  16. #include <ImgList.hpp>
  17. #include <Mask.hpp>
  18. #include <Menus.hpp>
  19. #include <ToolWin.hpp>
  20. #include "SDGrid.h"
  21. #include <Grids.hpp>
  22. #include <Dialogs.hpp>
  23. #include <ExtCtrls.hpp>
  24. class PACKAGE TfrmEcoh;
  25. //---------------------------------------------------------------------------
  26. class TfrmEcoh : public TBillBaseForm
  27. {
  28. __published: // IDE-managed Components
  29.     TFloatPanel *FloatPanel1;
  30.     TLabel *Label1;
  31.     TLabel *Label2;
  32.     TLabel *Label3;
  33.     TLabel *Label4;
  34.     TLabel *Label8;
  35.     TSDEdit *seEcohCode;
  36.     TSDEdit *seEcohVer;
  37.     TSDEdit *seEcohFileNo;
  38.     TMemo *memEcohDesc;
  39.     TFloatPanel *FloatPanel2;
  40.     TGroupBox *GroupBox1;
  41.     TGroupBox *GroupBox2;
  42.     TLabel *Label20;
  43.     TLabel *Label17;
  44.     TLabel *Label16;
  45.     TLabel *Label15;
  46.     TSDEdit *seEcodShl;
  47.     TSDEdit *seEcodQty;
  48.     TSDEdit *seEcodLine;
  49.     TGroupBox *GroupBox3;
  50.     TLabel *Label21;
  51.     TLabel *Label33;
  52.     TLabel *Label25;
  53.     TMemo *memEcodDesc;
  54.     TSDEdit *seEcodLot;
  55.     TSDComboBox *scEcodProcess;
  56.     TBitBtn *btnOK;
  57.     TBitBtn *btnCancel;
  58.     TLabel *Label14;
  59.     TDateEdit *deEcohDate;
  60.     TLabel *Label11;
  61.     TLabel *Label13;
  62.     TSDEdit *seEcodBgoodsName;
  63.     TLabel *Label19;
  64.     TSDComboBox *scEcodCfg;
  65.     TSDGrid *sgEcoh;
  66.     TSDComboBox *scEcohGoods;
  67.     TLabel *Label27;
  68.     TLabel *Label26;
  69.     TDateEdit *deEcohEdate;
  70.     TDateEdit *deEcohIdate;
  71.     TLabel *Label6;
  72.     TSDEdit *seEcohGoodsName;
  73.     TSDComboBox *scEcodBgoods;
  74.     TLabel *Label28;
  75.     TLabel *Label29;
  76.     TSDComboBox *scEcodPp;
  77.     TSDComboBox *scEcodOp;
  78.     TSDEdit *seEcodAgoods;
  79.     TFloatPanel *FloatPanel3;
  80.     TLabel *Label36;
  81.     TLabel *Label7;
  82.     TLabel *labEcohUser;
  83.     TLabel *labEcohChecker;
  84.     TCheckBox *cheEcohCheck;
  85.     TMemo *memEcodReason;
  86.     TLabel *Label9;
  87.     TPanel *Panel1;
  88.     TLabel *Label5;
  89.     TSDEdit *seEcodAgoodsName;
  90.     TSDEdit *seEcodModel;
  91.     TLabel *Label22;
  92.     TLabel *Label18;
  93.     TSDComboBox *scEcodType;
  94.     TSDComboBox *scEcodFrom;
  95.     TLabel *Label24;
  96.     TLabel *Label23;
  97.     TSDComboBox *scEcodUnit;
  98.     TLabel *Label10;
  99.     TLabel *labCheckDate;
  100.         TLabel *Label12;
  101.     void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  102.     void __fastcall FormShow(TObject *Sender);
  103.     void __fastcall sgEcohDblClick(TObject *Sender);
  104.     void __fastcall btnOKClick(TObject *Sender);
  105.     void __fastcall btnCancelClick(TObject *Sender);
  106.     void __fastcall scEcodBgoodsClick(TObject *Sender);
  107.     void __fastcall seEcodAgoodsButtonClick(TObject *Sender);
  108.     void __fastcall scEcohGoodsClick(TObject *Sender);
  109.     void __fastcall seEcodAgoodsExit(TObject *Sender);
  110.     void __fastcall seEcohCodeKeyDown(TObject *Sender, WORD &Key,
  111.           TShiftState Shift);
  112.         void __fastcall sgEcohClick(TObject *Sender);
  113. private: // User declarations
  114.     AnsiString __fastcall GetItemStringToGrid();
  115.     void __fastcall InitEditControl();
  116.     void __fastcall ClearControl(int Section,bool BringToNext);
  117.     void __fastcall GetDataFromComObject(int Section);
  118.     void __fastcall SendDataToComObject(int Section);
  119.     void __fastcall WaitUserInput(int Section);
  120.     void __fastcall RefreshGridData(int mAction);
  121.     void __fastcall DisplayBill();
  122.     void __fastcall GetBill(AnsiString BillID);
  123.     void __fastcall FillGridWithData();
  124.     void __fastcall ChangeToBrowseState(bool agree=true);
  125.     bool __fastcall BeforeCheck();
  126.     bool __fastcall BeforeUnCheck();
  127.     void __fastcall RefreshUpdateData(int MsgSrc,int MsgType);
  128. public: // User declarations
  129.     AnsiString FormIniFile;
  130.     __fastcall TfrmEcoh(TComponent* Owner, HWND chWnd, AnsiString MidCode,AnsiString WhereStr);
  131. };
  132. //---------------------------------------------------------------------------
  133. extern PACKAGE TfrmEcoh *frmEcoh;
  134. //---------------------------------------------------------------------------
  135. #endif