public void GetStatus()
        {
            objClsMemberWiseSearchReport   = new clsMemberWiseSearchReport();
            objClsBLMemberWiseSearchReport = new clsBLMemberWiseSearchReport();

            DataSet dsStatus = new DataSet();

            dsStatus = objClsBLMemberWiseSearchReport.GetStatus();

            for (int i = 0; i < dsStatus.Tables[0].Rows.Count; i++)
            {
                ddlStatus.Items.Add(new ListItem(dsStatus.Tables[0].Rows[i]["StatusDesc"].ToString(), dsStatus.Tables[0].Rows[i]["StatusID"].ToString()));
            }
            ddlStatus.Items.Insert(0, "All");
        }
示例#2
0
        private void BindStatus()
        {
            try
            {
                clsMemberWiseSearchReport   objClsMemberWiseSearchReport   = new clsMemberWiseSearchReport();
                clsBLMemberWiseSearchReport objClsBLMemberWiseSearchReport = new clsBLMemberWiseSearchReport();

                objClsMemberWiseSearchReport   = new clsMemberWiseSearchReport();
                objClsBLMemberWiseSearchReport = new clsBLMemberWiseSearchReport();
                //objViewMyIssues = new Model.clsViewMyIssues();
                //objBLViewMyIssues = new BusinessLayer.clsBLViewMyIssues();
                DataSet dsStatus = new DataSet();
                dsStatus = objClsBLMemberWiseSearchReport.GetStatus();
                // ddlStatus.Items.Add(new ListItem(dsStatus.Tables[0].Rows[i]["GroupName"].ToString(), dsStatus.Tables[0].Rows[i]["GroupID"].ToString()))

                for (int i = 0; i < dsStatus.Tables[0].Rows.Count; i++)
                {
                    ddlStatus.Items.Add(new ListItem(dsStatus.Tables[0].Rows[i]["StatusDesc"].ToString(), dsStatus.Tables[0].Rows[i]["StatusID"].ToString()));
                }
                ddlStatus.Items.Insert(0, "All");

                //ddlStatus.DataSource = Status.BindStatusEnum(typeof(IssueStatus),"All");
                //ddlStatus.DataTextField="Key";
                //ddlStatus.DataValueField="Value";
                //ddlStatus.DataBind();
            }
            catch (V2Exceptions ex)
            {
                throw;
            }
            catch (System.Exception ex)
            {
                FileLog objFileLog = FileLog.GetLogger();
                objFileLog.WriteLine(LogType.Error, ex.Message, "CategoryWiseSearchReport.aspx", "BindStatus", ex.StackTrace);
                throw new V2Exceptions(ex.ToString(), ex);
            }
        }