Ejemplo n.º 1
0
        public RoutesOptimizationProcess()
        {
            RoutesOptimizationProcess graphRoutesOptimizationProcess = null;

            AppointmentList.SetProcessDelegate(
                delegate(List <FSAppointmentFSServiceOrder> list)
            {
                graphRoutesOptimizationProcess = PXGraph.CreateInstance <RoutesOptimizationProcess>();

                PXResultset <FSAppointmentStaffMember, CSCalendar> staffSelected = new PXResultset <FSAppointmentStaffMember, CSCalendar>();

                foreach (PXResult <FSAppointmentStaffMember, CSCalendar> row in StaffMemberFilter.Select())
                {
                    if (((FSAppointmentStaffMember)row).Selected == true)
                    {
                        staffSelected.Add(row);
                    }
                }

                OptimizeRoutes(graphRoutesOptimizationProcess, Filter.Current, list, staffSelected);
            }
                );
        }