⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mgsp.cpp

📁 科思ERP部分源码及控件
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
#include "mGsp.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)
TKSGsp *sdGsp;
//---------------------------------------------------------------------------
__fastcall TKSGsp::TKSGsp()
  :TKSMidBase()
{
}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::ValidMasterField(int FieldNo)
{
  switch(FieldNo)
  {
    case 1:  //物料编码
      ValidGspGoods();
      break;
    case 2:  //年度
      ValidGspYear();
      break;
    case 3:  //月份
      ValidGspFmonth();
      break;
    case 4:  //计划数
      ValidGspPQty();
      break;
    case 5:  //计划额
      ValidGspPAmt();
      break;
  }
}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::ValidGspGoods()  //物料编码
{

}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::ValidGspYear()  //年度
{

}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::ValidGspFmonth()  //月份
{
}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::ValidGspPQty()  //计划数
{
  double m_GspPQty;
   m_GspPQty=GetMasterValue("GspPQty");
      if(m_GspPQty<0)
          throw Exception("计划数量需大于0");
}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::ValidGspPAmt()  //计划额
{
  double m_GspPAmt;
   m_GspPAmt=GetMasterValue("GspPAmt");
      if(m_GspPAmt<0)
          throw Exception("计划金额需大于0");
}
//---------------------------------------------------------------------------
void __fastcall TKSGsp::CmdExec(AnsiString Param)
{

}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -