示例#1
0
    /// <summary>
    /// load dropdown lists
    /// </summary>
    protected void LoadItemDDLs()
    {
        CStatus status = CSTAT.LoadItemTypeDDL(BaseMstr.BaseData, ddlType);

        if (!status.Status)
        {
            ShowStatusInfo(status);
            return;
        }

        status = CItem.LoadItemGroupDDL(BaseMstr.BaseData, ddlGroup, k_ACTIVE_ID.Active);
        if (!status.Status)
        {
            ShowStatusInfo(status);
            return;
        }
    }
示例#2
0
    private CStatus LoadFilterDDLs()
    {
        CStatus status = CSTAT.LoadItemTypeDDL(BaseMstr.BaseData, ddlFilterType);

        if (!status.Status)
        {
            ShowStatusInfo(status);
            return(status);
        }

        status = CItem.LoadItemGroupDDL(BaseMstr.BaseData, ddlFilterByGroup);
        if (!status.Status)
        {
            ShowStatusInfo(status);
            return(status);
        }

        return(new CStatus());
    }