|
|
@ -4046,7 +4046,6 @@ void CDBCtrlSheet::setItemPrice(sint32 price)
|
|
|
|
node->setValue32(price);
|
|
|
|
node->setValue32(price);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
sint32 CDBCtrlSheet::getItemResaleFlag() const
|
|
|
|
sint32 CDBCtrlSheet::getItemResaleFlag() const
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -4071,6 +4070,54 @@ void CDBCtrlSheet::setItemResaleFlag(sint32 rf)
|
|
|
|
node->setValue32(rf);
|
|
|
|
node->setValue32(rf);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
sint32 CDBCtrlSheet::getItemCreateTime() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCDBNodeLeaf *node = getItemCreateTimePtr();
|
|
|
|
|
|
|
|
if (!node) return 0;
|
|
|
|
|
|
|
|
return node->getValue32();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
CCDBNodeLeaf *CDBCtrlSheet::getItemCreateTimePtr() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCDBNodeBranch *root = getRootBranch();
|
|
|
|
|
|
|
|
if (!root) return NULL;
|
|
|
|
|
|
|
|
return dynamic_cast<CCDBNodeLeaf *>(root->getNode(ICDBNode::CTextId("CREATE_TIME"), false));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
void CDBCtrlSheet::setItemCreateTime(sint32 ct)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCDBNodeLeaf *node = getItemCreateTimePtr();
|
|
|
|
|
|
|
|
if (!node) return;
|
|
|
|
|
|
|
|
node->setValue32(ct);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
sint32 CDBCtrlSheet::getItemSerial() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCDBNodeLeaf *node = getItemSerialPtr();
|
|
|
|
|
|
|
|
if (!node) return 0;
|
|
|
|
|
|
|
|
return node->getValue32();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
CCDBNodeLeaf *CDBCtrlSheet::getItemSerialPtr() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCDBNodeBranch *root = getRootBranch();
|
|
|
|
|
|
|
|
if (!root) return NULL;
|
|
|
|
|
|
|
|
return dynamic_cast<CCDBNodeLeaf *>(root->getNode(ICDBNode::CTextId("SERIAL"), false));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
void CDBCtrlSheet::setItemSerial(sint32 rf)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CCDBNodeLeaf *node = getItemSerialPtr();
|
|
|
|
|
|
|
|
if (!node) return;
|
|
|
|
|
|
|
|
node->setValue32(rf);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
bool CDBCtrlSheet::getLockedByOwner() const
|
|
|
|
bool CDBCtrlSheet::getLockedByOwner() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|