michele: rapportini controller
This commit is contained in:
parent
9b81c1ee40
commit
1ea0a66479
@ -201,7 +201,6 @@ namespace VirtualTask.Controllers
|
|||||||
SessionHelper helper = new SessionHelper(this);
|
SessionHelper helper = new SessionHelper(this);
|
||||||
token = helper.GetStringValue("tok");
|
token = helper.GetStringValue("tok");
|
||||||
apiUrl = helper.GetStringValue("apiUrl");
|
apiUrl = helper.GetStringValue("apiUrl");
|
||||||
//urlBase = apiUrl + "impiantiListMngr";
|
|
||||||
urlBase = apiUrl + "rapportiniList";
|
urlBase = apiUrl + "rapportiniList";
|
||||||
urlBase = urlBase + "?token=" + token;
|
urlBase = urlBase + "?token=" + token;
|
||||||
Uri baseAddress = new Uri(urlBase);
|
Uri baseAddress = new Uri(urlBase);
|
||||||
@ -221,10 +220,12 @@ namespace VirtualTask.Controllers
|
|||||||
listItemFirt.Value = string.Empty;
|
listItemFirt.Value = string.Empty;
|
||||||
listItemFirt.Text = " - Impianto";
|
listItemFirt.Text = " - Impianto";
|
||||||
selectItems.Add(listItemFirt);
|
selectItems.Add(listItemFirt);
|
||||||
var app = string.Empty;
|
|
||||||
|
var appoggio = string.Empty;
|
||||||
|
|
||||||
foreach (var role in modelList)
|
foreach (var role in modelList)
|
||||||
{
|
{
|
||||||
if (!app.Equals(role.codice_impianto))
|
if (!appoggio.Equals(role.codice_impianto))
|
||||||
{
|
{
|
||||||
SelectListItem listItem = new SelectListItem();
|
SelectListItem listItem = new SelectListItem();
|
||||||
string s = role.codice_impianto;
|
string s = role.codice_impianto;
|
||||||
@ -233,9 +234,10 @@ namespace VirtualTask.Controllers
|
|||||||
selectItems.Add(listItem);
|
selectItems.Add(listItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
app = role.codice_impianto;
|
appoggio = role.codice_impianto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return selectItems;
|
return selectItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user