Beispiel #1
0
    public bool LoadTemplateComboByType(BaseMaster BaseMstr,
                                        long lTemplateType,
                                        DropDownList cboTemplates)
    {
        CDropDownList cbo         = new CDropDownList();
        DataSet       dsTemplates = GetTemplateDS(BaseMstr);

        cbo.RenderDataSetByMatch(BaseMstr,
                                 dsTemplates,
                                 cboTemplates,
                                 "DESCRIPTION",
                                 "TEMPLATE_ID",
                                 "",
                                 "TYPE_ID",
                                 Convert.ToString(lTemplateType));

        return(true);
    }