function()
{
if (!validateNotBlank("efDate", "Date"))
return false;
return true;
}
function ()
{
if (isRecordNew())
{
if (getCtrlValue("efDate") == "")
return false;
}
return true;
}
function (scanText)
{
setCtrlValue("efDate", scanText);
msgBeep(sys.MsgBoxTypeQuestion);
}
Taiwan
Japan
Gizzard
U 75
75/125
126/175
176/225
226/285
286/325
326/375
375+
TAN
BRUISED
BKN 75/125
BKN 126+
Gizzard
function ()
{
if (isRecordNew())
{
if (getCtrlValue("efBarcode") == "")
return false;
}
return true;
}
function()
{
if (!validateNotBlank("efBarcode", "Barcode"))
return false;
if (!validateNotBlank("cbGrade", "Grade"))
return false;
if (!validateNotBlank("cbSize", "Size"))
return false;
if (!isFieldUnique("efBarcode", "Barcode", false))
return false;
return true;
}
function (scanText)
{
if (scanText.substring(0, 3) == "GR_")
{ // Because starts with a "GR_" we say it is a Grade.
// Strip the "GR_" and put the balance into cbGrade.
var str = scanText.substring(3, scanText.length);
//msgBox(str);
setCtrlValue("cbGrade", str);
msgBeep(sys.MsgBoxTypeQuestion);
return;
}
if (scanText.substring(0, 3) == "SZ_")
{ // Because starts with a "SZ_" we say it is a Size.
// Strip the "SZ_" and put the balance into cbSize.
var str = scanText.substring(3, scanText.length);
//msgBox(str);
setCtrlValue("cbSize", str);
msgBeep(sys.MsgBoxTypeQuestion);
return;
}
if (!moveNew())
{
msgBeep(sys.MsgBoxTypeWarning);
return;
}
setCtrlValue("efBarcode", scanText);
msgBeep(sys.MsgBoxTypeQuestion);
}
function ()
{
var dte = dteu.today();
dte.setFullYear(dte.getFullYear(), 0, 1);
return stru.padLeft((dteu.daysSince(dte) + 1).toString() + dte.getFullYear().toString().substr(2), '0', 5);
}
function ()
{
if (isRecordNew())
{
setCtrlValue("efDDDYY", getDDDYY());
}
}