update tablet

This commit is contained in:
Samuele E. Locatelli
2017-04-14 10:53:24 +02:00
parent 74caa6513f
commit 8b13dde5bd
9 changed files with 57 additions and 79 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettTurni.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_dettTurni" %>
<div>
<div style="width: 100px;">
<div style="width: 9em;">
<div>
<b>Turni Attivi</b>
<asp:DetailsView ID="dtView" runat="server" DataSourceID="odsTurni" AutoGenerateRows="False" DataKeyNames="IdxMacchina" Width="100px">
<asp:DetailsView ID="dtView" runat="server" DataSourceID="odsTurni" AutoGenerateRows="False" DataKeyNames="IdxMacchina" Width="100%">
<Fields>
<asp:TemplateField HeaderText="T1">
<ItemTemplate>
@@ -33,11 +33,11 @@
</SelectParameters>
</asp:ObjectDataSource>
</div>
<div style="width: 100px;">
<div class="semaforoVerde">
<div>
<div class="sVe">
Turno Aperto
</div>
<div class="semaforoSpento">
<div class="sGr">
Turno Chiuso
</div>
</div>
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MapoDb;
using SteamWare;
namespace MoonProTablet.WebUserControls
{
@@ -28,7 +21,7 @@ namespace MoonProTablet.WebUserControls
/// <returns></returns>
public string coloreDaTurno(object turno)
{
string answ = "semaforoSpento";
string answ = "sGr";
bool aperto = false;
try
{
@@ -36,7 +29,7 @@ namespace MoonProTablet.WebUserControls
}
catch
{ }
if (aperto) answ = "semaforoVerde";
if (aperto) answ = "sVe";
return answ;
}
}
+11 -11
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MoonProTablet.WebUserControls {
@@ -13,20 +13,20 @@ namespace MoonProTablet.WebUserControls {
public partial class mod_dettTurni {
/// <summary>
/// dtView control.
/// Controllo dtView.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.DetailsView dtView;
/// <summary>
/// odsTurni control.
/// Controllo odsTurni.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsTurni;
}