-- nuevo globalDT DIOT Tipo Operación,, en base a 2025

This commit is contained in:
2025-03-12 19:22:18 -07:00
parent 9b07af360c
commit 453570af6f
4 changed files with 67 additions and 9 deletions

View File

@@ -799,20 +799,19 @@
</div>
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom">
<div class="form-body">
<asp:UpdatePanel ID="UPPDIOT" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table border="0" >
<tr>
<td>Tipo Tercero:</td>
<td>
<div class="form-group form-md-line-input" style="width: 200px">
<asp:DropDownList ID="DDlDIOTTipoTercero" runat="server" Width="100%">
<asp:DropDownList ID="DDlDIOTTipoTercero" runat="server" Width="100%" AutoPostBack="true" OnSelectedIndexChanged ="DDlDIOTTipoTercero_SelectedIndexChanged">
<asp:ListItem Text="-" Value="0"></asp:ListItem>
<asp:ListItem Text="04 - Proveedor Nacional" Value="1"></asp:ListItem>
<asp:ListItem Text="05 - Proveedor Extranjero" Value="2"></asp:ListItem>
<asp:ListItem Text="Accionistas, Socios o Integrantes" Value="3"></asp:ListItem>
<asp:ListItem Text="Retenciones (excepto Proveedores)" Value="4"></asp:ListItem>
<asp:ListItem Text="15 - Proveedor Nacional Global" Value="5"></asp:ListItem>
<asp:ListItem Text="15 - Proveedor Extranjero Global" Value="6"></asp:ListItem>
<asp:ListItem Text="Egresos Varios" Value="7"></asp:ListItem>
<asp:ListItem Text="05 - Proveedor Extranjero" Value="2"></asp:ListItem>
<asp:ListItem Text="15 - Proveedor Global" Value="5"></asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RFVTipoTercero" runat="server" ControlToValidate="DDlDIOTTipoTercero" InitialValue="0" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Tercero''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCETipoTercero" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoTercero" Width="300px"></ajax:ValidatorCalloutExtender>
@@ -833,11 +832,16 @@
<td>Tipo Operación:</td>
<td>
<div class="form-group form-md-line-input" style="width: 200px">
<asp:DropDownList ID="DdlDIOTTipoOperacion" runat="server" Width="100%">
<asp:DropDownList ID="DdlDIOTTipoOperacion" runat="server" Width="100%" DataTextField="ClaveSATTipoOperacionDescripcion" DataValueField="CveTipoOperacion">
<asp:ListItem Text="-" Value="0"></asp:ListItem>
<asp:ListItem Text="02 - Enajenación de bienes" Value="4"></asp:ListItem>
<asp:ListItem Text="03 - Prestación de Servicios Profesionales" Value="1"></asp:ListItem>
<asp:ListItem Text="06 - Arrendamiento de inmuebles" Value="2"></asp:ListItem>
<asp:ListItem Text="07 - Importación de bienes o servicios" Value="7"></asp:ListItem>
<asp:ListItem Text="08 - Importación por transferencia virtual" Value="8"></asp:ListItem>
<asp:ListItem Text="85 - Otros" Value="3"></asp:ListItem>
<asp:ListItem Text="87 - Operaciones globales" Value="9"></asp:ListItem>
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RFVTipoOperacion" runat="server" ControlToValidate="DdlDIOTTipoOperacion" InitialValue="0" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Operación''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCETipoOperacion" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoOperacion" Width="300px"></ajax:ValidatorCalloutExtender>
@@ -864,7 +868,9 @@
</td>
</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
</div>

View File

@@ -908,6 +908,7 @@ Partial Class Compras_Proveedores
'DIOT
CargaDIOTPais()
DDlDIOTTipoTercero.SelectedValueExist(ObjProveedor.DIOTCveTipoTercero)
CargaTipoTransaccion()
DdlDIOTTipoOperacion.SelectedValueExist(ObjProveedor.DIOTCveTipoOperacion)
TxtDIOTNumIDFiscal.Text = ObjProveedor.DIOTNumeroIDFiscal
DdlDIOTPais.SelectedValueExist(ObjProveedor.DIOTCvePais)
@@ -5876,6 +5877,27 @@ Partial Class Compras_Proveedores
End If
End Sub
Protected Sub DDlDIOTTipoTercero_SelectedIndexChanged(sender As Object, e As EventArgs)
CargaTipoTransaccion()
End Sub
Private Sub CargaTipoTransaccion()
Dim Filtro As String = ""
Select Case DDlDIOTTipoTercero.SelectedValue
Case "1"
Filtro = "AplicaProvNacional = 1"
Case "2"
Filtro = "AplicaProvExtranjero = 1"
Case "5"
Filtro = "AplicaProvGlobal = 1"
End Select
DdlDIOTTipoOperacion.DataSource = GlobalDTDIOTTipoOperacion.FiltraParametros(Filtro)
DdlDIOTTipoOperacion.DataBind()
End Sub
End Class