--codigo de af, acomodo de diagrama de grantt
This commit is contained in:
@@ -63,8 +63,8 @@ Partial Class RepContratosCalendario
|
||||
If DtAvance IsNot Nothing Then
|
||||
|
||||
For Each Row As DataRow In DtAvance.Rows
|
||||
If String.IsNullOrEmpty(Row("NoSerie").ToString()) Then
|
||||
Row("NoSerie") = "Unidad no asignada"
|
||||
If String.IsNullOrEmpty(Row("CodigoAF").ToString()) Then
|
||||
Row("CodigoAF") = "Unidad no asignada"
|
||||
End If
|
||||
Next
|
||||
|
||||
@@ -74,9 +74,9 @@ Partial Class RepContratosCalendario
|
||||
Dim random = New Random()
|
||||
|
||||
'DATOS
|
||||
For Each Row As DataRow In DtAvance.FiltraParametros("NoSerie <> ''").Rows
|
||||
For Each Row As DataRow In DtAvance.FiltraParametros("CodigoAF <> ''").Rows
|
||||
Dim obj As New JObject(
|
||||
New JProperty("category", Row("NoSerie")),
|
||||
New JProperty("category", Row("CodigoAF")),
|
||||
New JProperty("fromDate", Row("FechaInicial").ToString().ToDateTime().ToString("dd/MM/yyyy HH:mm").ToDateTime()),
|
||||
New JProperty("toDate", Row("FechaFinal").ToString().ToDateTime().ToString("dd/MM/yyyy HH:mm").ToDateTime()),
|
||||
New JProperty("columnSettings", New JObject(
|
||||
@@ -88,9 +88,9 @@ Partial Class RepContratosCalendario
|
||||
Next
|
||||
|
||||
'CATEGORIAS
|
||||
For Each Row As DataRow In DtAvance.FiltraParametros("NoSerie <> ''", "", {"NoSerie"}).Rows
|
||||
For Each Row As DataRow In DtAvance.FiltraParametros("CodigoAF <> ''", "", {"CodigoAF"}).Rows
|
||||
Dim obj As New JObject(
|
||||
New JProperty("category", Row("NoSerie"))
|
||||
New JProperty("category", Row("CodigoAF"))
|
||||
)
|
||||
jsonCategorias.Add(obj)
|
||||
Next
|
||||
|
||||
Reference in New Issue
Block a user