modifiche per stile barcode;

modifiche crossbrowser per compatibilità;
allargata al 100% la largezza tabella di masterAjax search e non con moduli interni tutti al 100% e poi proporzionale;

git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@50 43c8e981-f90d-406c-a89a-24a2c4268d51
This commit is contained in:
ermanno
2008-10-31 09:17:02 +00:00
parent 9d8184866b
commit 080fbbf44b
6 changed files with 42 additions and 8 deletions
+18 -1
View File
@@ -206,6 +206,8 @@ INPUT
{
padding: 0px;
margin: 2px;
/* con questo Table va a full screen */
width: 99%;
}
.topContrDx
{
@@ -2671,8 +2673,23 @@ A:hover
font-size:smaller;
}
grvGiornalieroComm
/* grvGiornalieroComm
{
font-size: xx-small;
color: Yellow;
}
*/
/* stile custom per questa webapp */
.barcodeBoxIE
{
width:700px;
margin-top: 20px;
}
.barcodeBoxOther
{
margin-left:20%;
margin-right:20%;
margin-top: 20px;
}
+1 -1
View File
@@ -5,7 +5,7 @@
<asp:Label runat="server" ID="lblULP" CssClass="ctrHeaderPagerDet" Width="150px" />
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="ods"
DataKeyNames="Cod" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="grView_SelectedIndexChanged"
OnDataBound="grView_DataBound" OnRowUpdating="grView_RowUpdating" OnRowUpdated="grView_RowUpdated">
OnDataBound="grView_DataBound" OnRowUpdating="grView_RowUpdating" OnRowUpdated="grView_RowUpdated" Width="100%">
<RowStyle CssClass="ctrRowStyleDet" />
<AlternatingRowStyle CssClass="ctrAltRowStyleDet" />
<EditRowStyle CssClass="ctrEditRowStyleDet" />
+5 -4
View File
@@ -4,15 +4,16 @@
<asp:TextBox runat="server" ID="txtComando" TextMode="Password" Width="200px"
ontextchanged="txtComando_TextChanged" />
</div>
<div style="width:700px; margin-top:20px;">
<div style="background-color:#FFE800; padding:8px; margin:1px;">
<asp:Panel runat="server" ID="pnlBarcodeBox" CssClass="">
<div style="background-color: #FFE800; padding: 8px; margin: 1px; height:15px;">
<asp:Label runat="server" ID="lblInput" Text="" />
</div>
<div style="background-color:#FFC500; padding:8px; margin:1px;">
<asp:Label runat="server" ID="lblValore" Text="" />
</div>
<div style="background-color:#FF7700; padding:8px; margin:1px;">
<div style="background-color: #FF7700; padding: 8px; margin: 1px; height:15px;">
<asp:Label runat="server" ID="lblRichiesta" Text="" Font-Bold="true" />
</div>
</div>
<asp:Label ID="lblBrowser" runat="server"></asp:Label>
</asp:Panel>
</div>
+16 -1
View File
@@ -48,6 +48,7 @@ public partial class mod_barcode : ApplicationUserControl
protected override void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
DetectAgent();
myInitialize();
}
/// <summary>
@@ -128,7 +129,21 @@ public partial class mod_barcode : ApplicationUserControl
_comandi.TryGetValue(txtComando.Text, out comando.descrComando);
}
}
/// <summary>
/// verifica quale browser usato e applica css corretto al div attorno al box
/// </summary>
private void DetectAgent()
{
System.Web.HttpBrowserCapabilities browser = Request.Browser;
if (browser.Browser == "IE")
{
pnlBarcodeBox.CssClass="barcodeBoxIE";
}
else
{
pnlBarcodeBox.CssClass = "barcodeBoxOther";
}
}
#endregion
#region area public
+1 -1
View File
@@ -9,7 +9,7 @@
<asp:Label runat="server" ID="lblRowsDDT" CssClass="ctrHeaderPager" Width="150px" />
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="ods"
DataKeyNames="Cod" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="grView_SelectedIndexChanged"
OnDataBound="grView_DataBound" onrowupdating="grView_RowUpdating">
OnDataBound="grView_DataBound" onrowupdating="grView_RowUpdating" Width="100%">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
+1
View File
@@ -49,6 +49,7 @@
<asp:TextBox ID="txtDescr" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvDescr" runat="server" ErrorMessage="!!!" ControlToValidate="txtDescr" />
</td>
</tr>
<tr>
<td>