Beispiel #1
0
        protected void PoPuP(object sender, DirectEventArgs e)
        {
            int    id   = Convert.ToInt32(e.ExtraParams["id"]);
            string type = e.ExtraParams["type"];

            switch (type)
            {
            case "imgAttach":
                //panelRecordDetails.ActiveIndex = 0;

                ReportCompositeRequest comp = new ReportCompositeRequest();
                comp.Add(GetActivePreferance());
                comp.Add(new MissingFieldParameterSet()
                {
                    fieldId = id.ToString()
                });

                ListResponse <RT107B> resp = _reportService.ChildGetAll <RT107B>(comp);
                if (!resp.Success)
                {
                    Common.errorMessage(resp);
                    return;
                }
                employeesStore.DataSource = resp.Items;
                employeesStore.DataBind();
                Viewport1.ActiveIndex = 1;

                break;



            default:
                break;
            }
        }
Beispiel #2
0
        private ReportCompositeRequest GetRequest()
        {
            ReportCompositeRequest req = new ReportCompositeRequest();

            req.Size    = "1000";
            req.StartAt = "0";


            req.Add(dateRange1.GetRange());
            req.Add(employeeCombo1.GetEmployee());
            return(req);
        }
Beispiel #3
0
        /// <summary>
        /// Adding new record
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>


        protected void Store1_RefreshData(object sender, StoreReadDataEventArgs e)
        {
            //GEtting the filter from the page
            string filter     = string.Empty;
            int    totalCount = 1;

            ReportCompositeRequest req = new ReportCompositeRequest();


            req.Add(GetActivePreferance());

            //Fetching the corresponding list

            //in this test will take a list of News


            ListResponse <Model.Reports.RT107> branches = _reportService.ChildGetAll <Model.Reports.RT107>(req);

            if (!branches.Success)
            {
                X.Msg.Alert(Resources.Common.Error, GetGlobalResourceObject("Errors", branches.ErrorCode) != null ? GetGlobalResourceObject("Errors", branches.ErrorCode).ToString() : branches.Summary).Show();
                return;
            }
            this.Store1.DataSource = branches.Items;
            e.Total = branches.count;

            this.Store1.DataBind();
        }
Beispiel #4
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);
        }
Beispiel #5
0
        private ReportCompositeRequest GetRequest()
        {
            ReportCompositeRequest req = new ReportCompositeRequest();

            req.Size    = "1000";
            req.StartAt = "0";

            req.Add(jobInfo1.GetJobInfo());


            return(req);
        }
Beispiel #6
0
        private ReportCompositeRequest GetRequest()
        {
            ReportCompositeRequest req = new ReportCompositeRequest();

            req.Size    = "1000";
            req.StartAt = "0";
            req.SortBy  = "eventDt";


            req.Add(dateRange1.GetRange());


            //req.Add();
            return(req);
        }
Beispiel #7
0
        private ReportCompositeRequest GetRequest()
        {
            ReportCompositeRequest request = new ReportCompositeRequest();

            request.Size    = "1000";
            request.StartAt = "0";
            request.SortBy  = "hireDate";
            request.Add(jobInfo1.GetJobInfo());
            request.Add(activeControl.GetActiveStatus());
            request.Add(GetCountryInfo());
            request.Add(employeeFilter.GetEmployee());
            request.Add(GetGenderFilter());
            request.Add(GetSponserFilter());
            request.Add(GetLocalsFilter());



            return(request);
        }
Beispiel #8
0
        protected void Unnamed_Event(object sender, DirectEventArgs e)
        {
            ReportCompositeRequest request = GetRequest();

            if (string.IsNullOrEmpty(e.ExtraParams["week"]))
            {
                return;
            }
            string   week           = e.ExtraParams["week"];
            int      year           = Convert.ToInt32(week.Split('-')[0]);
            int      weekNo         = Convert.ToInt32(week.Split('-')[1]);
            DateTime d              = FirstDateOfWeekISO8601(year, weekNo);
            DateTime dF             = d.AddDays(6);
            DateRangeParameterSet r = new DateRangeParameterSet();

            r.DateFrom = d;
            r.DateTo   = dF;
            r.IsDayId  = true;
            request.Add(r);
            ListResponse <Model.Reports.RT304> resp = _reportsService.ChildGetAll <Model.Reports.RT304>(request);

            if (!resp.Success)
            {
                X.MessageBox.ButtonText.Ok = Resources.Common.Ok;
                Common.errorMessage(resp);
                return;
            }
            if (resp.Items.Count > 0)
            {
                DisplayResult(resp.Items);
            }
            else
            {
                firstStore.DataSource = new List <departmentAvailability>();
                firstStore.DataBind();
            }
        }