Exemplo n.º 1
0
        /// <summary>
        /// This direct method will be called after confirming the delete
        /// </summary>
        /// <param name="index">the ID of the object to delete</param>



        private ActiveStatusParameterSet GetActivePreferance()
        {
            ActiveStatusParameterSet s = new ActiveStatusParameterSet();
            int bulk;

            if (inactivePref.Value != null && int.TryParse(inactivePref.Value.ToString(), out bulk))
            {
                s.active = bulk;
            }
            else
            {
                s.active = 2;
            }
            return(s);
        }
Exemplo n.º 2
0
        public ActiveStatusParameterSet GetActiveStatus()
        {
            ActiveStatusParameterSet s = new ActiveStatusParameterSet();
            int bulk;

            if (inactivePref.Value == null || !int.TryParse(inactivePref.Value.ToString(), out bulk))
            {
                s.active = 0;
            }
            else
            {
                s.active = bulk;
            }

            return(s);
        }
Exemplo n.º 3
0
        private ReportCompositeRequest GetRequest()
        {
            ReportCompositeRequest req = new ReportCompositeRequest();

            req.Size    = "1000";
            req.StartAt = "0";
            req.SortBy  = "firstName";
            JobInfoParameterSet p = GetJobInfo();

            req.Add(p);

            ActiveStatusParameterSet s = new ActiveStatusParameterSet();

            s.active = DropDownList1.SelectedIndex;
            req.Add(s);
            return(req);
        }