コード例 #1
0
ファイル: RT107.aspx.cs プロジェクト: EliasTous/ERP
        /// <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);
        }
コード例 #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);
        }
コード例 #3
0
ファイル: ReportTest.aspx.cs プロジェクト: EliasTous/ERP
        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);
        }