[Form]
public class DGS_EditWorkTemplate extends FormRun
{
QueryBuildRange workTransTypeRange;
boolean initRange;
[DataSource]
class DGS_EditWorkTemplate
{
/// <summary>
///
/// </summary>
public void executeQuery()
{
workTransTypeRange.value(workTransType.valueStr());
if (initRange)
{
workTransTypeRange.value(workTransType.valueStr());
initRange = false;
}
super();
}
public void init()
{
super();
workTransTypeRange = this.query().dataSourceTable(tableNum(DGS_EditWorkTemplate)).addRange(fieldNum(DGS_EditWorkTemplate, WorkTransType));
initRange = true;
}
}
[Control("ComboBox")]
class WorkTransType
{
public boolean modified()
{
boolean ret = super();
if (ret)
{
workTransTypeRange.value(workTransType.valueStr());
DGS_EditWorkTemplate_ds.executeQuery();
}
return ret;
}
public boolean validate()
{
boolean ret = super();
switch (this.valueStr())
{
case enum2str(WHSWorkTransType::WorkCancel):
ret = checkFailed("@WAX4626");
break;
}
return ret;
}
}
}
留言列表