Exemplo n.º 1
0
 public void Load()
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     jobIndexService.GetAllAbstractJobIndex(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         if (exp == null)
         {
             JobIndexTree = SilverLightTreeViewHelper <AbstractJobIndexDTOWithActions> .prepareListForTreeView(res);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }));
 }
Exemplo n.º 2
0
 private void preLoad()
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     jobPositionInPeriodService.GetAllJobPositions(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         if (exp == null)
         {
             JobPositionTree = SilverLightTreeViewHelper <JobPositionInPeriodDTO> .prepareListForTreeView(res);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }), Period.Id);
 }
Exemplo n.º 3
0
 public void Load(PeriodDTO period)
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     Period      = period;
     DisplayName = PeriodMgtAppLocalizedResources.JobPositionInPeriodTreeViewTitle + " " + Period.Name;
     jobPositionInPeriodService.GetJobPositionsWithActions(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         if (exp == null)
         {
             JobPositionInPeriodTree = SilverLightTreeViewHelper <JobPositionInPeriodDTOWithActions> .prepareListForTreeView(res);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }), period.Id);
 }
Exemplo n.º 4
0
 private void setIndexInPeriodTree(long periodId)
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     jobIndexInPeriodService.GetPeriodAbstractIndexes(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         HideBusyIndicator();
         if (exp == null)
         {
             AbstractIndexInPeriods    = res;
             AbstractIndexInPeriodTree =
                 SilverLightTreeViewHelper <AbstractIndexInPeriodDTOWithActions> .prepareListForTreeView(
                     AbstractIndexInPeriods);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }), periodId);
 }