Пример #1
0
        protected void PopulateHumanWork()
        {
            try
            {
                oDV = AdoUDIRS.GetHumanWork();

                if (AdoUDIRS.BlnError)
                {
                    //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
                    return;
                }
                else if (oDV.Count == 0)
                {
                    //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
                    return;
                }
                else if (oDV.Count > 0)
                {
                    chkHumanFactorsWorkSystems.DataSource     = oDV;
                    chkHumanFactorsWorkSystems.DataValueField = "Id";
                    chkHumanFactorsWorkSystems.DataTextField  = "Title";
                    chkHumanFactorsWorkSystems.DataBind();
                }
            }
            catch (Exception ex)
            {
                //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
            }
        }