pstatdialcountry.cpp
来自「一套BCB6开发的电话管理系统」· C++ 代码 · 共 52 行
CPP
52 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "PStatDialCountry.h"
#include "FStatDialCountry.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TPrtStatDialCountry *PrtStatDialCountry;
//---------------------------------------------------------------------------
__fastcall TPrtStatDialCountry::TPrtStatDialCountry(TComponent* Owner)
: TForm(Owner)
{
QRDBText7->DataField
= FrmStatDialCountry->CDSStatCountry->FieldByName( "GroupTDuration")->FieldName;
QRDBText8->DataField
= FrmStatDialCountry->CDSStatCountry->FieldByName( "GroupSumMoney")->FieldName;
}
//---------------------------------------------------------------------------
void __fastcall TPrtStatDialCountry::FormClose(TObject *Sender,
TCloseAction &Action)
{
Action = caFree;
PrtStatDialCountry = NULL;
}
//---------------------------------------------------------------------------
void __fastcall TPrtStatDialCountry::QRDBText7Print(TObject *sender,
AnsiString &Value)
{
int second = StrToInt( Value);
int hour = second / 3600;
int minute = (second - hour * 3600) / 60;
second = second - hour * 3600 - 60 * minute;
String str = "";
if( hour < 10)
str = "0" ;
str += IntToStr( hour) + ":";
if( minute < 10)
str += "0";
str += IntToStr( minute) + ":";
if( second < 10)
str += "0";
str += IntToStr( second);
Value = str;
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?