RegPrepolizas Ajustes tooltip modulo, Proveedores Abonar Pago de pesos en dolares ajuste tc
This commit is contained in:
@@ -67,7 +67,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-5" runat="server" id="DivTC" visible="false">
|
<div class="col-md-5" runat="server" id="DivTC" visible="false">
|
||||||
T.C.:
|
T.C.:
|
||||||
<asp:TextBox ID="TxtTC" runat="server" Text="1" placeholder="Tipo de Cambio" CssClass="form-control input-sm" MaxLength="12" onblur="CambiaPesosDolares();" Width="70px" ClientIDMode="Static" Style="text-align: right; display: inline-block;" />
|
<asp:TextBox ID="TxtTC" runat="server" Text="1" placeholder="Tipo de Cambio" CssClass="form-control input-sm" MaxLength="12" onblur="CambiaDolaresPesos();" Width="70px" ClientIDMode="Static" Style="text-align: right; display: inline-block;" />
|
||||||
<asp:RequiredFieldValidator ID="RFVTC" Enabled="false" runat="server" ControlToValidate="TxtTC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Cambio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTC" Enabled="false" runat="server" ControlToValidate="TxtTC" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Cambio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCETC" runat="server" HighlightCssClass="vco" TargetControlID="RFVTC" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCETC" runat="server" HighlightCssClass="vco" TargetControlID="RFVTC" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<asp:Label ID="LbImporteME" Text="" ClientIDMode="Static" runat="server" />
|
<asp:Label ID="LbImporteME" Text="" ClientIDMode="Static" runat="server" />
|
||||||
|
|||||||
@@ -327,9 +327,21 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
Private Sub CambiaTipoMoneda()
|
Private Sub CambiaTipoMoneda()
|
||||||
|
|
||||||
If DivTC.Visible Then
|
If DivTC.Visible Then
|
||||||
|
|
||||||
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
||||||
If ChkPagarDolares.Checked Then RegistraScript("CambiaPesosDolares();")
|
|
||||||
If ChkPagarPesos.Checked Then RegistraScript("CambiaDolaresPesos();")
|
If ChkPagarDolares.Checked Then
|
||||||
|
'RegistraScript("CambiaPesosDolares();")
|
||||||
|
RegistraScript("CambiaDolaresPesos();")
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
If ChkPagarPesos.Checked Then
|
||||||
|
'RegistraScript("CambiaDolaresPesos();")
|
||||||
|
RegistraScript("CambiaPesosDolares();")
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -1343,6 +1355,7 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
||||||
TxtFechaDocumento.Attributes.Add("onchange", "CambiaTC(this);")
|
TxtFechaDocumento.Attributes.Add("onchange", "CambiaTC(this);")
|
||||||
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
||||||
|
TxtTC.Attributes.Add("onblur", "CambiaPesosDolares()")
|
||||||
Else
|
Else
|
||||||
DivTC.Visible = False
|
DivTC.Visible = False
|
||||||
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
||||||
@@ -1362,6 +1375,7 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
||||||
TxtFechaDocumento.Attributes.Add("onchange", "CambiaTC(this);")
|
TxtFechaDocumento.Attributes.Add("onchange", "CambiaTC(this);")
|
||||||
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
TxtTC.Text = GlobalTipoCambio(TxtFechaDocumento.Text.ToDate).FormatoNumero(4)
|
||||||
|
TxtTC.Attributes.Add("onblur", "CambiaDolaresPesos()")
|
||||||
Else
|
Else
|
||||||
'DivDolaresDolares.Visible = False
|
'DivDolaresDolares.Visible = False
|
||||||
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
CargaCuentas(DdlTipoTransaccion.SelectedValue.ToEntero)
|
||||||
|
|||||||
@@ -187,8 +187,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtUsuarioElaboro" runat="server" MaxLength="15" Enabled="false"></asp:TextBox>
|
<asp:Label CssClass="form-control" ID="LblUsuarioElaboro" runat="server" MaxLength="15" ></asp:Label>
|
||||||
<label for="<%= TxtUsuarioElaboro.ClientID.ToString()%>">Usuario Elaboró: </label>
|
<label for="<%= LblUsuarioElaboro.ClientID.ToString()%>">Usuario Elaboró: </label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
TxtFechaDocumento.Text = NowADS().ToString("dd/MM/yyyy")
|
TxtFechaDocumento.Text = NowADS().ToString("dd/MM/yyyy")
|
||||||
TxtFechaelaboracion.Text = NowADS().ToString("dd/MM/yyyy")
|
TxtFechaelaboracion.Text = NowADS().ToString("dd/MM/yyyy")
|
||||||
TxtConcepto.Enabled = True
|
TxtConcepto.Enabled = True
|
||||||
TxtUsuarioElaboro.Text = UsuarioActual.Nombre
|
LblUsuarioElaboro.Text = UsuarioActual.Nombre
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
TxtFechaDocumento.Text = NowADS().ToString("dd/MM/yyyy")
|
TxtFechaDocumento.Text = NowADS().ToString("dd/MM/yyyy")
|
||||||
TxtFechaelaboracion.Text = NowADS().ToString("dd/MM/yyyy")
|
TxtFechaelaboracion.Text = NowADS().ToString("dd/MM/yyyy")
|
||||||
TxtConcepto.Enabled = True
|
TxtConcepto.Enabled = True
|
||||||
TxtUsuarioElaboro.Text = UsuarioActual.Usuario
|
LblUsuarioElaboro.Text = UsuarioActual.Usuario
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -453,13 +453,13 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Folio = dr("FolioPoliza").ToString
|
Folio = dr("FolioPoliza").ToString
|
||||||
|
|
||||||
TxtFolio.Text = dr("FolioPoliza").ToString
|
TxtFolio.Text = dr("FolioPoliza").ToString
|
||||||
TxtUsuarioElaboro.Text = dr("UsuarioNombre").ToString
|
LblUsuarioElaboro.Text = dr("UsuarioNombre").ToString
|
||||||
TxtFechaelaboracion.Text = dr("FechaIng").ToString.ToDate.ToString("dd/MM/yyyy")
|
TxtFechaelaboracion.Text = dr("FechaIng").ToString.ToDate.ToString("dd/MM/yyyy")
|
||||||
TxtFechaelaboracion.ToolTip = dr("FechaIng").ToString.ToDate.ToString("HH:mm:ss")
|
TxtFechaelaboracion.ToolTip = dr("FechaIng").ToString.ToDate.ToString("HH:mm:ss")
|
||||||
CvePlantillaPoliza = dr("CvePlantillaPoliza").ToString.ToEntero
|
CvePlantillaPoliza = dr("CvePlantillaPoliza").ToString.ToEntero
|
||||||
DdlPlantilla.SelectedValueExist(CvePlantillaPoliza)
|
DdlPlantilla.SelectedValueExist(CvePlantillaPoliza)
|
||||||
|
|
||||||
If UsuarioActual.CveRol = 1 Then TxtUsuarioElaboro.ToolTip = dr("Modulo").ToString
|
LblUsuarioElaboro.ToolTip = dr("Modulo").ToString
|
||||||
|
|
||||||
If UsuarioActual.CveRol = 1 OrElse UsuarioActual.TienePermisoProceso(221) Then
|
If UsuarioActual.CveRol = 1 OrElse UsuarioActual.TienePermisoProceso(221) Then
|
||||||
LnkAddConcepto.Visible = True
|
LnkAddConcepto.Visible = True
|
||||||
|
|||||||
Reference in New Issue
Block a user