예제 #1
0
    private void GetStatus()
    {
        MasterDAL objMaster      = new MasterDAL();
        var       listCallStatus = objMaster.GetCallStatusType(string.Empty, 3);

        ECallStatus[] status = null;
        if (listCallStatus != null)
        {
            status = listCallStatus.ToArray();
        }
        if (status.Length > 0)
        {
            for (int count = 0; count < status.Length; count++)
            {
                ddlStatus.Items.Add(new ListItem(status[count].Status.ToString(), status[count].CallStatusID.ToString()));
            }
            ddlStatus.SelectedIndex = -1;
            ddlStatus.Items.FindByText("Planned").Selected = true;
        }
    }