예제 #1
0
        public List <string> PopulateStatusList(ref DropDownList dropDownList)
        {
            dropDownList.Items.Clear();
            var StatusList = MasterDataStatusDao.GetAll();
            var returnList = new List <string>();

            returnList.Add("");
            dropDownList.Items.Add(new ListItem(""));
            foreach (var s in StatusList)
            {
                returnList.Add(s.Status);
                dropDownList.Items.Add(new ListItem(s.Status));
            }

            dropDownList.SelectedIndex = 0;

            return(returnList);
        }
예제 #2
0
 public List <MasterDataStatus> GetAll()
 {
     return(MasterDataStatusDao.GetAll());
 }