- acomodo
This commit is contained in:
10
OC/OC.aspx
10
OC/OC.aspx
@@ -952,7 +952,7 @@
|
||||
<Columns>
|
||||
|
||||
<%-- 0 --%>
|
||||
<asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Right">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TxtCantEdit" runat="server" Text='<%# Eval("Cantidad", "{0:#,###.######}")%>' Width="45px" Height="24px"></asp:TextBox>
|
||||
<ajax:FilteredTextBoxExtender ID="SoloNumerosCantEdit" runat="server" TargetControlID="TxtCantEdit" FilterType="Custom, Numbers" ValidChars="." />
|
||||
@@ -1258,7 +1258,7 @@
|
||||
<tr runat="server" id="TrDescuento" class="text-right" visible="false">
|
||||
<td><b>Descuento:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtDescuento" ClientIDMode="Static" onkeyup="FormatoMoneda(this);ValidaDescuento();" onblur="AplicaDescuentoGeneral();" Width="100px" Font-Size="10.5" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:TextBox ID="TxtDescuento" ClientIDMode="Static" onkeyup="FormatoMoneda(this);ValidaDescuento();" onblur="AplicaDescuentoGeneral();" Width="100px" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnLimpiarDescuento" OnClick="BtnLimpiarDescuento_Click" runat="server" />
|
||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarDescuento" OnClick="BtnAplicarDescuento_Click" runat="server" />
|
||||
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnDescuento" />
|
||||
@@ -1274,7 +1274,7 @@
|
||||
<tr align="right">
|
||||
<td><b>IVA:</b></td>
|
||||
<td style="text-align: right;">
|
||||
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Visible="false" onkeyup="FormatoMoneda(this);SumaTotal();" onblur="$('#BtnAplicarIVA').click();" Width="100px" Font-Size="10.5" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:TextBox ID="TxtIVA" ClientIDMode="Static" Visible="false" onkeyup="FormatoMoneda(this);SumaTotal();" onblur="$('#BtnAplicarIVA').click();" Width="100px" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:Label ID="LblIVA" ClientIDMode="Static" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00"></asp:Label>
|
||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarIVA" OnClick="BtnAplicarIVA_Click" runat="server" />
|
||||
</td>
|
||||
@@ -1285,7 +1285,7 @@
|
||||
<tr runat="server" id="TrIEPS" class="text-right" visible="false">
|
||||
<td><b>IEPS:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtIEPS" Enabled="false" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" Font-Size="10.5" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:TextBox ID="TxtIEPS" Enabled="false" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" BackColor="#eeeeee" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -1293,7 +1293,7 @@
|
||||
<tr runat="server" id="TrRetIVA" class="text-right" visible="false">
|
||||
<td><b>Ret IVA:</b></td>
|
||||
<td>
|
||||
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" onblur="AplicaRetIVAGeneral();" Font-Size="10.5" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:TextBox ID="TxtRetIVA" ClientIDMode="Static" onkeyup="FormatoMoneda(this);SumaTotal();" Width="100px" onblur="AplicaRetIVAGeneral();" BackColor="#f7f7f7" runat="server" BorderStyle="None" Style="text-align: right;" Text="0.00" />
|
||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnLimpiarRetIVA" OnClick="BtnLimpiarRetIVA_Click" runat="server" />
|
||||
<asp:Button Text="" Style="display: none" ClientIDMode="Static" ID="BtnAplicarRetIVA" OnClick="BtnAplicarRetIVA_Click" runat="server" />
|
||||
<asp:HiddenField ClientIDMode="Static" Value="0" runat="server" ID="HdnRetIVA" />
|
||||
|
||||
@@ -4049,29 +4049,24 @@ Partial Class OC_OC
|
||||
|
||||
'CveAFVinculado
|
||||
e.Row.FCLiteral("LitMaq").Text = String.Format("<a class='Texto' href='../AF/AF.aspx?CveActivoFijo={0}'>{1}</a>", e.Row.DBCampo("CveActivoFijo"), e.Row.DBCampo("CodigoAF"))
|
||||
|
||||
'CveCompraDetalle Vinculada
|
||||
Dim ObjOC As New ClsOC
|
||||
If ObjOC.GetOCVinculadasPendientes(e.Row.DBCampo("CveOrdenCompraDetalle").ToEntero) Then
|
||||
If ObjOC.DtResultados.Rows.Count = 1 Then
|
||||
e.Row.FCLiteral("LtlCompra").Text = String.Format("<a class='Texto' target='_blank' href='../Compras/Compras.aspx?CveCompra={0}'>{1}</a>", ObjOC.DtResultados.FiltroPrimeroValor("CveCompra"), e.Row.DBCampo("FolioCompra"))
|
||||
If e.Row.DBCampo("CveCompra") <> "" Then
|
||||
If e.Row.DBCampo("NumComprasVinculadas").ToEntero = 1 Then
|
||||
e.Row.FCLiteral("LtlCompra").Text = String.Format("<a class='Texto' target='_blank' href='../Compras/Compras.aspx?CveCompra={0}'>{1}</a>", e.Row.DBCampo("CveCompra"), e.Row.DBCampo("FolioCompra"))
|
||||
LblCompra.Visible = True
|
||||
GvD.Columns(14).Visible = True
|
||||
ElseIf ObjOC.DtResultados.Rows.Count > 1 Then
|
||||
Else
|
||||
LblCompra.Visible = True
|
||||
e.Row.FCLiteral("LtlCompra").Visible = False
|
||||
e.Row.FCLinkButton("LnkCompra").Visible = True
|
||||
e.Row.FCLinkButton("LnkCompra").Enabled = True
|
||||
'e.Row.FCLinkButton("LnkCompra").CausesValidation = False
|
||||
'e.Row.FCLinkButton("LnkCompra").OnClientClick = "return true;" 'return true;
|
||||
e.Row.FCLinkButton("LnkCompra").CommandArgument = e.Row.DBCampo("CveOrdenCompraDetalle")
|
||||
GvD.Columns(14).Visible = True
|
||||
Else
|
||||
e.Row.FCLiteral("LtlCompra").Text = ""
|
||||
LblCompra.Visible = True
|
||||
End If
|
||||
Else
|
||||
e.Row.FCLiteral("LtlCompra").Text = ""
|
||||
LblCompra.Visible = True
|
||||
End If
|
||||
ObjOC.Dispose()
|
||||
|
||||
'CargaPresupuestosEgresos
|
||||
If UsuarioActual.Empresa.UsaAC Then
|
||||
|
||||
Reference in New Issue
Block a user