Beispiel #1
0
 public string GetEmployessJSON(string OT)
 {
     WSMetrics[] emps = new WSMetrics[] {
         new WSMetrics()
         {
             OT           = OT + "-1",
             NombreOt     = "aaaaaa",
             Pliego       = "A_INTERIOR 1",
             Tiraje       = 10,
             Buenos       = 11,
             FechaInicio  = DateTime.Now.AddDays(-1),
             FechaTermino = DateTime.Now.AddDays(-1)
         },
         new WSMetrics()
         {
             OT           = OT + "-2",
             NombreOt     = "bbbbbb",
             Pliego       = "A_INTERIOR 2",
             Tiraje       = 1000,
             Buenos       = 1100,
             FechaInicio  = DateTime.Now.AddDays(-1),
             FechaTermino = DateTime.Now.AddDays(-1)
         }
     };
     return(new JavaScriptSerializer().Serialize(emps));
 }
Beispiel #2
0
 public WSMetrics[] GetEmployessXML()
 {
     WSMetrics[] emps = new WSMetrics[] {
         new WSMetrics()
         {
             OT           = "111111",
             NombreOt     = "aaaaaa",
             Pliego       = "A_INTERIOR 1",
             Tiraje       = 10,
             Buenos       = 11,
             FechaInicio  = DateTime.Now.AddDays(-1),
             FechaTermino = DateTime.Now.AddDays(-1)
         },
         new WSMetrics()
         {
             OT           = "222222",
             NombreOt     = "bbbbbb",
             Pliego       = "A_INTERIOR 2",
             Tiraje       = 1000,
             Buenos       = 1100,
             FechaInicio  = DateTime.Now.AddDays(-1),
             FechaTermino = DateTime.Now.AddDays(-1)
         }
     };
     return(emps);
 }