AZANIR

график работы

Nov 24th, 2020
558
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //график работы
  2. mObject.grafic = new Grafic();
  3. try{mObject.grafic.Sunday = project.Json.orgpagePreloadedResults.items[0].workingTime[0][0].from.hours.ToString()+":"+
  4.     project.Json.orgpagePreloadedResults.items[0].workingTime[0][0].from.minutes.ToString()+" – "+
  5.     project.Json.orgpagePreloadedResults.items[0].workingTime[0][0].to.hours.ToString()+":"+
  6.     project.Json.orgpagePreloadedResults.items[0].workingTime[0][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
  7. try{mObject.grafic.Monday = project.Json.orgpagePreloadedResults.items[0].workingTime[1][0].from.hours.ToString()+":"+
  8.     project.Json.orgpagePreloadedResults.items[0].workingTime[1][0].from.minutes.ToString()+" – "+
  9.     project.Json.orgpagePreloadedResults.items[0].workingTime[1][0].to.hours.ToString()+":"+
  10.     project.Json.orgpagePreloadedResults.items[0].workingTime[1][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
  11. try{mObject.grafic.Tuesday = project.Json.orgpagePreloadedResults.items[0].workingTime[2][0].from.hours.ToString()+":"+
  12.     project.Json.orgpagePreloadedResults.items[0].workingTime[2][0].from.minutes.ToString()+" – "+
  13.     project.Json.orgpagePreloadedResults.items[0].workingTime[2][0].to.hours.ToString()+":"+
  14.     project.Json.orgpagePreloadedResults.items[0].workingTime[2][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
  15. try{mObject.grafic.Wednesday = project.Json.orgpagePreloadedResults.items[0].workingTime[3][0].from.hours.ToString()+":"+
  16.     project.Json.orgpagePreloadedResults.items[0].workingTime[3][0].from.minutes.ToString()+" – "+
  17.     project.Json.orgpagePreloadedResults.items[0].workingTime[3][0].to.hours.ToString()+":"+
  18.     project.Json.orgpagePreloadedResults.items[0].workingTime[3][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
  19. try{mObject.grafic.Thursday = project.Json.orgpagePreloadedResults.items[0].workingTime[4][0].from.hours.ToString()+":"+
  20.     project.Json.orgpagePreloadedResults.items[0].workingTime[4][0].from.minutes.ToString()+" – "+
  21.     project.Json.orgpagePreloadedResults.items[0].workingTime[4][0].to.hours.ToString()+":"+
  22.     project.Json.orgpagePreloadedResults.items[0].workingTime[4][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
  23. try{mObject.grafic.Friday = project.Json.orgpagePreloadedResults.items[0].workingTime[5][0].from.hours.ToString()+":"+
  24.     project.Json.orgpagePreloadedResults.items[0].workingTime[5][0].from.minutes.ToString()+" – "+
  25.     project.Json.orgpagePreloadedResults.items[0].workingTime[5][0].to.hours.ToString()+":"+
  26.     project.Json.orgpagePreloadedResults.items[0].workingTime[5][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
  27. try{mObject.grafic.Saturday = project.Json.orgpagePreloadedResults.items[0].workingTime[6][0].from.hours.ToString()+":"+
  28.     project.Json.orgpagePreloadedResults.items[0].workingTime[6][0].from.minutes.ToString()+" – "+
  29.     project.Json.orgpagePreloadedResults.items[0].workingTime[6][0].to.hours.ToString()+":"+
  30.     project.Json.orgpagePreloadedResults.items[0].workingTime[6][0].to.minutes.ToString();}catch{mObject.grafic.Sunday = "closed";}
RAW Paste Data