Beispiel #1
0
        /// <summary>
        /// Loads all Activity.
        /// </summary>
        private void LoadAllActivityDetail()
        {
            objActivityBo      = new ActivityDetailBO();
            objActivityBo.Lang = Session["LanguageSetting"].ToString();
            DataTable dt = new DataTable();

            wbs = new ActivityManagementService();
            wbs.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationActivity();
            dt = wbs.PopulateActivityDetail(objActivityBo);
            //Session["vdcList"] = dtvm;
            if (dt != null && dt.Rows.Count > 0)
            {
                lvRoles.DataSource = dt;
                lvRoles.DataBind();
            }
        }
        private void PopulateActivityDetail()
        {
            objActivityBo      = new ActivityDetailBO();
            objActivityBo.Lang = Session["LanguageSetting"].ToString();
            DataTable dt = new DataTable();

            wbs = new ActivityManagementService();
            wbs.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationActivity();
            dt = wbs.PopulateActivityDetail(objActivityBo);
            if (dt != null && dt.Rows.Count > 0)
            {
                ddlActivityDetail.DataSource     = dt;
                ddlActivityDetail.DataTextField  = "activity_detail_name";
                ddlActivityDetail.DataValueField = "activity_detail_id";
                ddlActivityDetail.DataBind();
            }
        }