Ejemplo n.º 1
0
        protected void PopulateCorrectiveAction()
        {
            try
            {
                oDV = AdoUDIRS.GetCorrectiveAction();

                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)
                {
                    chkCorrectiveAction.DataSource     = oDV;
                    chkCorrectiveAction.DataValueField = "Id";
                    chkCorrectiveAction.DataTextField  = "Title";
                    chkCorrectiveAction.DataBind();
                }
            }
            catch (Exception ex)
            {
                //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
            }
        }