Пример #1
0
        private void BindCommission()
        {
            var commissions = BsoArchiveEntities.Current.CommissionTypes.Where(pt => pt.CommissionTypeID >= 0);

            WorkCommissions.DataSource = commissions.ToList();
            WorkCommissions.DataBind();
            WorkCommissions.Items.Insert(0, new ListItem("Select All", ""));
        }
Пример #2
0
        private void BindDropdownLists()
        {
            var premieres = BsoArchiveEntities.Current.PremiereTypes.Where(pt => pt.PremiereTypeID >= 0);

            WorkPremiere.DataSource = premieres.ToList();
            WorkPremiere.DataBind();
            WorkPremiere.Items.Insert(0, new ListItem("Select All", ""));

            var commissions = BsoArchiveEntities.Current.CommissionTypes.Where(pt => pt.CommissionTypeID >= 0);

            WorkCommissions.DataSource = commissions.ToList();
            WorkCommissions.DataBind();
            WorkCommissions.Items.Insert(0, new ListItem("Select All", ""));
        }