Merge branch 'master' of http://jperez@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -216,7 +216,36 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
|
Public Function Autorizaperiodoconta(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Nom_Autorizaperiodoconta", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al autorizar periodo.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
|
Public Function GetDispersiondenomina(CvePeriodo As Int32, CveEmpresa As Int32) As Boolean
|
||||||
|
Dim retorno As Boolean = False
|
||||||
|
DataAdapter("PA_PA_NomDispersiondenomina", CommandType.StoredProcedure)
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CvePeriodo", SqlDbType.Int).Value = CvePeriodo
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener el layout de nominas.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return retorno
|
||||||
|
End Function
|
||||||
Public Function GetCalculoUtilidades(ejercicio As Int32, cveEmpresa As Int32, importe As Double, importeA As Double) As Boolean
|
Public Function GetCalculoUtilidades(ejercicio As Int32, cveEmpresa As Int32, importe As Double, importeA As Double) As Boolean
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_NomCalcularUtilidades", CommandType.StoredProcedure)
|
DataAdapter("PA_NomCalcularUtilidades", CommandType.StoredProcedure)
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ Public Class LogicNominas
|
|||||||
For Each Row As DataRow In DtPercepciones.Rows
|
For Each Row As DataRow In DtPercepciones.Rows
|
||||||
If Row("Importe").ToString().ToDecimal > 0 AndAlso Row("SATCveConcepto").ToString().ToEntero() <> 17 Then
|
If Row("Importe").ToString().ToDecimal > 0 AndAlso Row("SATCveConcepto").ToString().ToEntero() <> 17 Then
|
||||||
If Row("CveSATConcepto").ToString() = "" Then cfdi.AddMsg(String.Format("Concepto No registrado ({0})", Row("Concepto").ToString())) : Exit For
|
If Row("CveSATConcepto").ToString() = "" Then cfdi.AddMsg(String.Format("Concepto No registrado ({0})", Row("Concepto").ToString())) : Exit For
|
||||||
ObjPercepciones.Add(New CFDINominaPercepciones With {.TipoPercepcion = Row("SATCveConcepto").ToString(), .Clave = Row("Codigo").ToString(), .Concepto = Row("Concepto").ToString(),
|
ObjPercepciones.Add(New CFDINominaPercepciones With {.TipoPercepcion = If(Row("SATCveConcepto").ToString() = "999", "038", Row("SATCveConcepto").ToString()), .Clave = Row("Codigo").ToString(), .Concepto = Row("Concepto").ToString(),
|
||||||
.ImporteGravado = Row("ImporteGravado").ToString().ToDecimal(), .ImporteExento = Row("ImporteExento").ToString().ToDecimal()})
|
.ImporteGravado = Row("ImporteGravado").ToString().ToDecimal(), .ImporteExento = Row("ImporteExento").ToString().ToDecimal()})
|
||||||
End If
|
End If
|
||||||
'RMF, falta poner el numero de horas pagadas
|
'RMF, falta poner el numero de horas pagadas
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
|||||||
|
|
||||||
'VALIDA PROMOCIONES Y EXISTENCIAS
|
'VALIDA PROMOCIONES Y EXISTENCIAS
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetPromocionesPS(-1, Now, CveSubProyecto, ObjFactura.CveCliente, ObjFactura.CveVendedor, UsuarioActual.CveEmpresa) Then
|
If ObjVentas.GetPromocionesPS(-1, Now, CveSubProyecto, ObjFactura.CveCliente, ObjFactura.CveVendedor, 1, UsuarioActual.CveEmpresa) Then
|
||||||
ObjFactura.DtPromociones = ObjVentas.DtResultados.Copy()
|
ObjFactura.DtPromociones = ObjVentas.DtResultados.Copy()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -6960,8 +6960,31 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
Dim DTDistinct = DT.Copy
|
Dim DTDistinct = DT.Copy
|
||||||
If UsuarioActual.Empresa.Funcionalidad(126) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(126) = "1" Then
|
||||||
|
|
||||||
|
For Each drowdis As DataRow In DTDistinct.Rows
|
||||||
|
If drowdis("CveTipoGasto").ToString = "" Then
|
||||||
|
drowdis("CveTipoGasto") = 0
|
||||||
|
End If
|
||||||
|
If drowdis("TipoGasto").ToString.Trim = "" Then
|
||||||
|
drowdis("TipoGasto") = "ND"
|
||||||
|
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
DTDistinct = DTDistinct.FiltraParametros("ISNULL(TipoAF, 0) <> 2", "", {"CveClasificacion", "Clasificacion", "SubProyecto", "CveSubProyecto", "CveTipoGasto", "TipoGasto"})
|
DTDistinct = DTDistinct.FiltraParametros("ISNULL(TipoAF, 0) <> 2", "", {"CveClasificacion", "Clasificacion", "SubProyecto", "CveSubProyecto", "CveTipoGasto", "TipoGasto"})
|
||||||
Else
|
Else
|
||||||
|
|
||||||
|
For Each drowdis As DataRow In DTDistinct.Rows
|
||||||
|
If drowdis("CveTipoGasto").ToString = "" Then
|
||||||
|
drowdis("CveTipoGasto") = 0
|
||||||
|
End If
|
||||||
|
If drowdis("TipoGasto").ToString.Trim = "" Then
|
||||||
|
drowdis("TipoGasto") = "ND"
|
||||||
|
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
DTDistinct.AcceptChanges()
|
||||||
|
|
||||||
DTDistinct = DTDistinct.FiltraParametros("ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) = 0 And ISNULL(AplicaCostoIndirecto,0) <> 1", "", {"CveClasificacion", "Clasificacion", "SubProyecto", "CveSubProyecto", "CveTipoGasto", "TipoGasto"})
|
DTDistinct = DTDistinct.FiltraParametros("ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) = 0 And ISNULL(AplicaCostoIndirecto,0) <> 1", "", {"CveClasificacion", "Clasificacion", "SubProyecto", "CveSubProyecto", "CveTipoGasto", "TipoGasto"})
|
||||||
End If
|
End If
|
||||||
'RMF, si es concepto relacionado a flete o importacion, no debe de afectar al gasto
|
'RMF, si es concepto relacionado a flete o importacion, no debe de afectar al gasto
|
||||||
@@ -9802,7 +9825,7 @@ Partial Class Compras_Compras
|
|||||||
Dim ObjInventario As New ClsInventarios(ObjCompra.IniciaTransacSQL)
|
Dim ObjInventario As New ClsInventarios(ObjCompra.IniciaTransacSQL)
|
||||||
Dim ObjContabilidad As New ClsContabilidad(ObjCompra.IniciaTransacSQL)
|
Dim ObjContabilidad As New ClsContabilidad(ObjCompra.IniciaTransacSQL)
|
||||||
Dim ObjAF As New ClsAF(ObjCompra.IniciaTransacSQL)
|
Dim ObjAF As New ClsAF(ObjCompra.IniciaTransacSQL)
|
||||||
Dim ObjContaAC As ClsContPAQi = New ClsContPAQi(UsuarioActual.Empresa)
|
Dim ObjContaAC As ClsContPAQi '= New ClsContPAQi(UsuarioActual.Empresa)
|
||||||
|
|
||||||
Dim Retorno As Boolean = True
|
Dim Retorno As Boolean = True
|
||||||
Dim CveEstatusFactura As Integer = HdnCveEstatusFactura.Value.ToEntero
|
Dim CveEstatusFactura As Integer = HdnCveEstatusFactura.Value.ToEntero
|
||||||
@@ -17816,6 +17839,8 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If UsuarioActual.Empresa.Tipo_CentroCosto <> 1 And UsuarioActual.Empresa.Tipo_CentroCosto <> 2 Then
|
If UsuarioActual.Empresa.Tipo_CentroCosto <> 1 And UsuarioActual.Empresa.Tipo_CentroCosto <> 2 Then
|
||||||
DdlProyecto.SelectedValueExist(GvRow.DataKey("CveProyecto"))
|
DdlProyecto.SelectedValueExist(GvRow.DataKey("CveProyecto"))
|
||||||
|
Else
|
||||||
|
DdlProyecto.SelectedValueExist("-1")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -712,7 +712,7 @@ Partial Class Compras_ReembolsosComprobaciones
|
|||||||
|
|
||||||
If Not ChkReembolsarSinBancos.Checked AndAlso (Not HdnCheque.Value.ToEntero > 0 Or Not UsuarioActual.CveEmpresa.Contiene(119)) Then
|
If Not ChkReembolsarSinBancos.Checked AndAlso (Not HdnCheque.Value.ToEntero > 0 Or Not UsuarioActual.CveEmpresa.Contiene(119)) Then
|
||||||
'Si es caja chica metemos el concepto 30, si es funcionario metemos 29
|
'Si es caja chica metemos el concepto 30, si es funcionario metemos 29
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, ImporteMovto, Referencia, If(CveCajaChica > 0, 30, 29), ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(CveCajaChica > 0, IdCuentaBancaria, IdCtaPersonal), -1, CveIE:=CveIEPago, CveIEDevolucion:=If(CveCajaChica > 0, DDlCheques.SelectedValue.ToEntero, -1), CvePersonal:=CvePersonal, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, ImporteMovto), ImporteMX:=ImporteMovto * tipoCambio, CveCuenta:=CveCuentaPersonal, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, Contabilizable:=If(CveCajaChica > 0 Or CvePersonal > 0, Not UsaSimplificacionCajaChica, True)) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaPago, True, ImporteMovto, Referencia, If(CveCajaChica > 0, 30, 29), ConceptoMovimiento, gvr.FCLiteral("LtlFecha").Text.ToDate, If(CveCajaChica > 0, IdCuentaBancaria, IdCtaPersonal), -1, CveIE:=CveIEPago, CveIEDevolucion:=If(CveCajaChica > 0, If(DDlCheques.SelectedValue.ToEntero = -1, CveIECajaChica, DDlCheques.SelectedValue.ToEntero), -1), CvePersonal:=CvePersonal, CveCompra:=gvr.FCHyperLink("HplF2").Text.ToEntero, CveProveedor:=gvr.FCHyperLink("HLProv").Text.ToEntero, ImporteME:=If(tipoCambio = 1, 0, ImporteMovto), ImporteMX:=ImporteMovto * tipoCambio, CveCuenta:=CveCuentaPersonal, CvePrePolizaOriginal:=CvePrePolizaPagoOriginal, Contabilizable:=If(CveCajaChica > 0 Or CvePersonal > 0, Not UsaSimplificacionCajaChica, True)) Then
|
||||||
MsgError = "Detalle"
|
MsgError = "Detalle"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
.txtimporte{
|
.txtimporte{
|
||||||
background: transparent;
|
/*background: transparent;*/
|
||||||
border: none;
|
/*border: none;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.txtcant,.txtimporte,
|
.txtcant,.txtimporte,
|
||||||
@@ -183,14 +183,22 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Cantidad">
|
<asp:TemplateField HeaderText="Cantidad">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtCantidad" Text="" CssClass="txtcant" onkeyup="ValidateCant(this)" type="number" step="any" data-cantidad='<%# Eval("CantidadMax")%>' data-pu='<%# Eval("PU")%>' data-cve='<%# Eval("CveContratoDetalle") %>' Width="90" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCantidad" Text="" CssClass="txtcant" type="number" step="any" data-cantidad='<%# Eval("CantidadMax")%>' data-pu='<%# Eval("PU")%>' data-cve='<%# Eval("CveContratoDetalle") %>' Width="90" runat="server"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Importe">
|
<asp:TemplateField HeaderText="Importe">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtImporte" Text="" data-cve='<%# Eval("CveContratoDetalle") %>' CssClass="txtimporte" type="number" step="any" Width="90" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtImporte" Text="" CssClass="txtimporte" data-cve='<%# Eval("CveContratoDetalle") %>' type="number" step="any" Width="90" runat="server"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
<asp:TemplateField HeaderText="Procentaje">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtPorcentaje" Text="" CssClass="txtporcentaje" data-cve='<%# Eval("CveContratoDetalle") %>' type="number" step="any" Width="90" runat="server"></asp:TextBox>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText=" ">
|
<asp:TemplateField HeaderText=" ">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|
||||||
@@ -254,115 +262,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%-- <ajax:TabContainer ID="Tab" runat="server" Width="100%" CssClass="tabBodyOverride" ActiveTabIndex="0">
|
|
||||||
|
|
||||||
<ajax:TabPanel ID="TabAvance" runat="server" HeaderText="Avance">
|
|
||||||
<ContentTemplate>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
</ajax:TabPanel>
|
|
||||||
|
|
||||||
<ajax:TabPanel ID="TabEstimación" runat="server" HeaderText="Estimación" visible ="false">
|
|
||||||
<ContentTemplate>
|
|
||||||
|
|
||||||
<asp:UpdatePanel runat="server" ID="UpEstimaciones" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="portlet solid grey-cascade portlet-filter">
|
|
||||||
<div class="portlet-title portlet-filterT smalltitle">
|
|
||||||
|
|
||||||
<div class="tools">
|
|
||||||
<asp:Button ID="BtnConsultarEstimaciones" runat="server" Text="Consultar" class="btn btn-default" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="titlefiltros caption" style="position: relative;">
|
|
||||||
<asp:UpdatePanel class="row" ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<label class="col-md-1 truncate">Contrato:</label>
|
|
||||||
<div class="col-md-6 col-lg-4">
|
|
||||||
<div class="ddls">
|
|
||||||
<asp:DropDownList ID="DDlContratosEstimaciones" runat="server" AutoPostBack="true" DataTextField="ContratoCompleto" DataValueField="CveContrato" Class=" form-control input-inline select2me" Width="100%">
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
|
|
||||||
<asp:GridView ID="GvEstimaciones" runat="server" AutoGenerateColumns="false" EmptyDataText="No se encontraron partidas para levantar avance"
|
|
||||||
DataKeyNames="CveContratoAvance,CveFamilias,CveSubFamilias,CveContratoDetalle,PS,Cantidad,Importe,Cantidad_Ultima,Importe_Ultima,PU,CantidadMax,Avance"
|
|
||||||
CssClass="table GVEstimacion table-advance table-hover" GridLines="None">
|
|
||||||
<Columns>
|
|
||||||
<asp:TemplateField HeaderText="">
|
|
||||||
<ItemTemplate>
|
|
||||||
<asp:LinkButton ID="Producto" runat="server" CssClass="Texto" Text='<%# Eval("PS")%>' Visible="false" ></asp:LinkButton>
|
|
||||||
<asp:Label ID="LinkButton1" runat="server" CssClass="Texto" Text='<%# Eval("PS")%>' ></asp:Label>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Cantidad">
|
|
||||||
<ItemTemplate>
|
|
||||||
<span><%# Eval("Cantidad", "{0:N2}")%></span>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Importe">
|
|
||||||
<ItemTemplate>
|
|
||||||
<span><%# Eval("Importe", "{0:N2}")%></span>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Cantidad">
|
|
||||||
<ItemTemplate>
|
|
||||||
<span><%# Eval("Cantidad_Ultima", "{0:N2}")%></span>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
<asp:TemplateField HeaderText="Importe">
|
|
||||||
<ItemTemplate>
|
|
||||||
<span><%# Eval("Importe_Ultima", "{0:N2}")%></span>
|
|
||||||
</ItemTemplate>
|
|
||||||
</asp:TemplateField>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</Columns>
|
|
||||||
</asp:GridView>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="text-center">
|
|
||||||
|
|
||||||
<asp:Button id="BtnGuardarEstimacion" CssClass="btn btn-primary" runat="server" Text="Generar Estimacion" Visible="false"/>
|
|
||||||
<asp:Button id="BtnDescargarGenerado" CssClass="btn btn-primary" runat="server" Text="Descarga Generador" Visible="false"/>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
<Triggers>
|
|
||||||
<asp:PostBackTrigger ControlID="BtnDescargarGenerado" />
|
|
||||||
</Triggers>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
|
||||||
</ajax:TabPanel>
|
|
||||||
|
|
||||||
|
|
||||||
</ajax:TabContainer>--%>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -473,6 +372,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function showmodalFile(obj) {
|
function showmodalFile(obj) {
|
||||||
$('#' + obj).data("append", 'my-dropzone');<% Dim url = Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, "")%>
|
$('#' + obj).data("append", 'my-dropzone');<% Dim url = Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, "")%>
|
||||||
$('#' + obj).data("urlup", '<%= url%>/Ashx/SIGWeb.ashx?Metodo=Uploadfile');
|
$('#' + obj).data("urlup", '<%= url%>/Ashx/SIGWeb.ashx?Metodo=Uploadfile');
|
||||||
@@ -481,38 +381,92 @@
|
|||||||
ADDropzone(obj);
|
ADDropzone(obj);
|
||||||
$('#dropmodal').modal();
|
$('#dropmodal').modal();
|
||||||
}
|
}
|
||||||
function ValidateCant(variable) {
|
function ValidateCant(opcion, cve) {
|
||||||
|
|
||||||
var txt = $(variable);
|
var txtimporte = $('.txtimporte[data-cve="' + cve + '"]');
|
||||||
var max = txt.data('cantidad');
|
var txtPorcentaje = $('.txtporcentaje[data-cve="' + cve + '"]');
|
||||||
var value = parseInt(txt.val());
|
var txtCantidad = $('.txtcant[data-cve="' + cve + '"]');
|
||||||
if (value > max) {
|
|
||||||
txt.val(max);
|
var max = parseFloat(txtCantidad.data('cantidad'));
|
||||||
|
var pu = parseFloat(txtCantidad.data('pu'));
|
||||||
|
var cantidad = parseFloat(txtCantidad.val());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (!Math.round10) {
|
||||||
|
Math.round10 = function (value, exp) {
|
||||||
|
return decimalAdjust('round', value, exp);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
if (value < 0) {
|
|
||||||
txt.val(0);
|
if (opcion == 2) {
|
||||||
|
|
||||||
|
if (txtimporte.val().toString().length > 0) {
|
||||||
|
|
||||||
|
var importe = parseFloat(txtimporte.val());
|
||||||
|
cantidad = parseFloat(importe / pu);
|
||||||
|
txtCantidad.val(cantidad);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
cantidad = 0.0
|
||||||
|
txtCantidad.val('');
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var importe = $('.txtimporte[data-cve="' + txt.data('cve') + '"]');
|
|
||||||
|
|
||||||
importe.val(parseFloat(txt.val()) * parseFloat(txt.data('pu')));
|
if (opcion == 3) {
|
||||||
|
|
||||||
//FormatoMoneda2(importe);
|
if (txtPorcentaje.val().toString().length > 0) {
|
||||||
|
var porcentaje = parseFloat(txtPorcentaje.val());
|
||||||
|
cantidad = (porcentaje * max / 100);
|
||||||
|
txtCantidad.val(cantidad);
|
||||||
|
} else {
|
||||||
|
cantidad = 0;
|
||||||
|
txtCantidad.val('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//if (parseInt(txt.val()) > 0) {
|
|
||||||
|
|
||||||
// $($(txt.parent()).parent()).find(".linkfile").removeClass("hidden");
|
if (cantidad > max) {
|
||||||
|
txtCantidad.val(max);
|
||||||
|
cantidad = max;
|
||||||
|
}
|
||||||
|
if (cantidad < 0) {
|
||||||
|
txtCantidad.val(0);
|
||||||
|
}
|
||||||
|
|
||||||
//} else {
|
|
||||||
|
|
||||||
// var ocultar = $($(txt.parent()).parent()).find(".linkfile");
|
if (cantidad > 0) {
|
||||||
|
txtimporte.val(cantidad * pu);
|
||||||
|
txtPorcentaje.val(Math.round10(cantidad * 100 / max, -2));
|
||||||
|
} else {
|
||||||
|
txtimporte.val('');
|
||||||
|
txtPorcentaje.val('');
|
||||||
|
}
|
||||||
|
|
||||||
// if (!ocultar.hasClass("hidden")) {
|
|
||||||
// ocultar.addClass("hidden");
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//);
|
|
||||||
|
function decimalAdjust(type, value, exp) {
|
||||||
|
// Si el exp no está definido o es cero...
|
||||||
|
if (typeof exp === 'undefined' || +exp === 0) {
|
||||||
|
return Math[type](value);
|
||||||
|
}
|
||||||
|
value = +value;
|
||||||
|
exp = +exp;
|
||||||
|
// Si el valor no es un número o el exp no es un entero...
|
||||||
|
if (isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) {
|
||||||
|
return NaN;
|
||||||
|
}
|
||||||
|
// Shift
|
||||||
|
value = value.toString().split('e');
|
||||||
|
value = Math[type](+(value[0] + 'e' + (value[1] ? (+value[1] - exp) : -exp)));
|
||||||
|
// Shift back
|
||||||
|
value = value.toString().split('e');
|
||||||
|
return +(value[0] + 'e' + (value[1] ? (+value[1] + exp) : exp));
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
|||||||
@@ -138,8 +138,6 @@ Partial Class Contratos_ContratoAvance
|
|||||||
DdlContratos.DataSource = GlobalDTContratos.FiltraParametros(String.Format($"CveContratoTipo in (30,31) AND CveEmpresa = {UsuarioActual.CveEmpresa}"))
|
DdlContratos.DataSource = GlobalDTContratos.FiltraParametros(String.Format($"CveContratoTipo in (30,31) AND CveEmpresa = {UsuarioActual.CveEmpresa}"))
|
||||||
DdlContratos.DataBind()
|
DdlContratos.DataBind()
|
||||||
|
|
||||||
'DDlContratosEstimaciones.DataSource = GlobalDTContratos.FiltraParametros(String.Format($"CveContratoTipo in (30,31) AND CveEmpresa = {UsuarioActual.CveEmpresa}"))
|
|
||||||
'DDlContratosEstimaciones.DataBind()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
@@ -190,7 +188,15 @@ Partial Class Contratos_ContratoAvance
|
|||||||
e.Row.FCLinkButton("LnkAnexo").Visible = Not (fecha = "")
|
e.Row.FCLinkButton("LnkAnexo").Visible = Not (fecha = "")
|
||||||
|
|
||||||
If e.Row.DBCampo("CveContratoDetalle").ToString.ToEntero = 0 Then
|
If e.Row.DBCampo("CveContratoDetalle").ToString.ToEntero = 0 Then
|
||||||
|
|
||||||
e.Row.FCTextBox("TxtCantidad").Visible = False
|
e.Row.FCTextBox("TxtCantidad").Visible = False
|
||||||
|
e.Row.FCTextBox("TxtImporte").Visible = False
|
||||||
|
e.Row.FCTextBox("TxtPorcentaje").Visible = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'txtimporte
|
||||||
e.Row.FCLinkButton("LnkAnexo").Visible = False
|
e.Row.FCLinkButton("LnkAnexo").Visible = False
|
||||||
|
|
||||||
If e.Row.DBCampo("CveSubFamilias").ToString.ToEntero = 0 Then
|
If e.Row.DBCampo("CveSubFamilias").ToString.ToEntero = 0 Then
|
||||||
@@ -221,9 +227,17 @@ Partial Class Contratos_ContratoAvance
|
|||||||
LnkGuardarAvance.Visible = True
|
LnkGuardarAvance.Visible = True
|
||||||
|
|
||||||
|
|
||||||
|
e.Row.FCTextBox("TxtCantidad").Attributes.Add("onkeyup", $"ValidateCant(1,{e.Row.DataKey("CveContratoDetalle")})")
|
||||||
|
e.Row.FCTextBox("TxtImporte").Attributes.Add("onkeyup", $"ValidateCant(2,{e.Row.DataKey("CveContratoDetalle")})")
|
||||||
|
e.Row.FCTextBox("TxtPorcentaje").Attributes.Add("onkeyup", $"ValidateCant(3,{e.Row.DataKey("CveContratoDetalle")})")
|
||||||
|
|
||||||
|
|
||||||
If e.Row.DataKey("CantidadMax").ToDouble = 0 Then
|
If e.Row.DataKey("CantidadMax").ToDouble = 0 Then
|
||||||
LnkAnexo.Visible = False
|
LnkAnexo.Visible = False
|
||||||
e.Row.FCTextBox("TxtCantidad").Visible = False
|
e.Row.FCTextBox("TxtCantidad").Visible = False
|
||||||
|
e.Row.FCTextBox("TxtImporte").Visible = False
|
||||||
|
e.Row.FCTextBox("TxtPorcentaje").Visible = False
|
||||||
|
|
||||||
LnkGuardarAvance.Visible = False
|
LnkGuardarAvance.Visible = False
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -740,7 +740,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Producto/Servicio" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField HeaderText="Concepto" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtPS" Text='<%# Eval("CodigoPS")%>' runat="server"></asp:Literal>
|
<asp:Literal ID="LtPS" Text='<%# Eval("CodigoPS")%>' runat="server"></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -962,7 +962,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField HeaderText="Producto/Servicio" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField HeaderText="Concepto" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtPS" Text='<%# Eval("CodigoPS")%>' runat="server"></asp:Literal>
|
<asp:Literal ID="LtPS" Text='<%# Eval("CodigoPS")%>' runat="server"></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
|
|||||||
@@ -953,6 +953,13 @@ Partial Class Contratos_ContratoObra
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If TxtPorAmortizacionAnticipo.Text.ToDecimal < TxtPorAnticipo.Text.ToDecimal Then
|
||||||
|
Alert("El porcentaje de amortización no debe de ser menor al porcentaje de anticipo.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim TieneError = False
|
Dim TieneError = False
|
||||||
Dim Modificado = False
|
Dim Modificado = False
|
||||||
' Dim Extension = Session("FileExtension").ToString
|
' Dim Extension = Session("FileExtension").ToString
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -192,7 +192,7 @@ Partial Class Inventarios_PrestamosdeProveedor
|
|||||||
If gvr.FCCheckBox("Chk").Checked AndAlso gvr.FCTextBox("TxtCantidad").Text.ToString.ToDecimal > 0 Then
|
If gvr.FCCheckBox("Chk").Checked AndAlso gvr.FCTextBox("TxtCantidad").Text.ToString.ToDecimal > 0 Then
|
||||||
CveMovimientoDetalleEntrada = gvr.DataKey("CveMovimientoDetalle").ToString.ToEntero
|
CveMovimientoDetalleEntrada = gvr.DataKey("CveMovimientoDetalle").ToString.ToEntero
|
||||||
CvePS = gvr.DataKey("CvePS").ToString.ToEntero
|
CvePS = gvr.DataKey("CvePS").ToString.ToEntero
|
||||||
If Not ObjInventario.AddMovimientoDetalle(CveMovimientoSalida, gvr.FCTextBox("TxtCantidad").Text.ToString.ToDecimal, gvr.DataKey("CveUM").ToString.ToEntero, gvr.DataKey("CvePS").ToString.ToEntero, 0, -1, CveMovimientoDetalleEntrada:=CveMovimientoDetalleEntrada, Serie:=gvr.DataKey("Serie").ToString, Lote:=gvr.FCTextBox("TxtLote").ToString, FechaCaducidad:=gvr.FCTextBox("TxtFechaCaducidad").ToString.ToDate) Then
|
If Not ObjInventario.AddMovimientoDetalle(CveMovimientoSalida, gvr.FCTextBox("TxtCantidad").Text.ToString.ToDecimal, gvr.DataKey("CveUM").ToString.ToEntero, gvr.DataKey("CvePS").ToString.ToEntero, 0, -1, CveMovimientoDetalleEntrada:=CveMovimientoDetalleEntrada, Serie:=gvr.DataKey("Serie").ToString, Lote:=gvr.FCTextBox("TxtLote").Text, FechaCaducidad:=gvr.FCTextBox("TxtFechaCaducidad").Text.ToDate) Then
|
||||||
ErrorMovInv = True
|
ErrorMovInv = True
|
||||||
TextoError = "Ocurrió un error al guardar los movimientos de salida"
|
TextoError = "Ocurrió un error al guardar los movimientos de salida"
|
||||||
Exit For
|
Exit For
|
||||||
|
|||||||
@@ -28,6 +28,15 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
ViewState("EstatusFinalOK") = value
|
ViewState("EstatusFinalOK") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property ValidaLoteCaducidad As Boolean
|
||||||
|
Get
|
||||||
|
Return CType(ViewState("ValidaLoteCaducidad"), Boolean)
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
ViewState("ValidaLoteCaducidad") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Private Property DtInv As DataTable
|
Private Property DtInv As DataTable
|
||||||
Get
|
Get
|
||||||
If ViewState("DtInv") Is Nothing Then
|
If ViewState("DtInv") Is Nothing Then
|
||||||
@@ -966,6 +975,7 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
Dim DtRecepcion As DataTable = Nothing
|
Dim DtRecepcion As DataTable = Nothing
|
||||||
Dim NumUsados = ObjInventario.DtResultados.COUNT("EsUsado", "EsUsado = True").ToEntero()
|
Dim NumUsados = ObjInventario.DtResultados.COUNT("EsUsado", "EsUsado = True").ToEntero()
|
||||||
Dim NumProductos = ObjInventario.DtResultados.COUNT("EsUsado", "EsUsado = False").ToEntero()
|
Dim NumProductos = ObjInventario.DtResultados.COUNT("EsUsado", "EsUsado = False").ToEntero()
|
||||||
|
Dim CveSubProyecto As Integer
|
||||||
|
|
||||||
'SI LA COMPRA TIENE PRODUCTOS Y USADOS SOLO MOSTRAR LOS PRODUCTOS
|
'SI LA COMPRA TIENE PRODUCTOS Y USADOS SOLO MOSTRAR LOS PRODUCTOS
|
||||||
If NumProductos > 0 AndAlso NumUsados > 0 Then
|
If NumProductos > 0 AndAlso NumUsados > 0 Then
|
||||||
@@ -994,6 +1004,11 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
CveSubProyecto = DtRecepcion.Rows(0)("CveSubProyecto").ToString.ToEntero
|
||||||
|
If UsuarioActual.CveEmpresa = 119 AndAlso CveSubProyecto = 10276 Then
|
||||||
|
ValidaLoteCaducidad = True
|
||||||
|
End If
|
||||||
|
|
||||||
CveAlmacenDevolucionProveedor = DtRecepcion.Rows(0)("CveAlmacenDevolucionProveedor").ToString.ToEntero
|
CveAlmacenDevolucionProveedor = DtRecepcion.Rows(0)("CveAlmacenDevolucionProveedor").ToString.ToEntero
|
||||||
|
|
||||||
'SI ES MOTOBATERIA NO GENERA MOVIMIENTO VIRTUAL
|
'SI ES MOTOBATERIA NO GENERA MOVIMIENTO VIRTUAL
|
||||||
@@ -1439,21 +1454,25 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = False
|
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CBool(e.Row.DBCampo("AplicaCaducidad")) Then
|
If (ValidaLoteCaducidad) OrElse (UsuarioActual.CveEmpresa <> 119) Then
|
||||||
e.Row.FCTextBox("TxtCaducidad").Visible = True
|
If CBool(e.Row.DBCampo("AplicaCaducidad")) Then
|
||||||
e.Row.FCLinkButton("LnkCaducidad").Visible = True
|
e.Row.FCTextBox("TxtCaducidad").Visible = True
|
||||||
e.Row.FCTextBox("TxtCaducidad").Text = Now.ToShortDateString
|
e.Row.FCLinkButton("LnkCaducidad").Visible = True
|
||||||
e.Row.FCTextBox("TxtDividir").Visible = True
|
e.Row.FCTextBox("TxtCaducidad").Text = Now.ToShortDateString
|
||||||
Else
|
e.Row.FCTextBox("TxtDividir").Visible = True
|
||||||
e.Row.FCTextBox("TxtCaducidad").Visible = False
|
Else
|
||||||
e.Row.FCLinkButton("LnkCaducidad").Visible = False
|
e.Row.FCTextBox("TxtCaducidad").Visible = False
|
||||||
|
e.Row.FCLinkButton("LnkCaducidad").Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CBool(e.Row.DBCampo("AplicaLote")) Then
|
||||||
|
e.Row.FCTextBox("TxtLote").Visible = True
|
||||||
|
Else
|
||||||
|
e.Row.FCTextBox("TxtLote").Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CBool(e.Row.DBCampo("AplicaLote")) Then
|
|
||||||
e.Row.FCTextBox("TxtLote").Visible = True
|
|
||||||
Else
|
|
||||||
e.Row.FCTextBox("TxtLote").Visible = False
|
|
||||||
End If
|
|
||||||
|
|
||||||
e.Row.FCButton("BtnDividir").Attributes.Add("onclick", String.Format("Dividir('{0}');", e.Row.FCTextBox("TxtDividir").ClientID))
|
e.Row.FCButton("BtnDividir").Attributes.Add("onclick", String.Format("Dividir('{0}');", e.Row.FCTextBox("TxtDividir").ClientID))
|
||||||
e.Row.FCButton("BtnDividir").CommandArgument = e.Row.RowIndex.ToString
|
e.Row.FCButton("BtnDividir").CommandArgument = e.Row.RowIndex.ToString
|
||||||
@@ -2162,6 +2181,13 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
End If
|
End If
|
||||||
Index += 1
|
Index += 1
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
If (Not ValidaLoteCaducidad) OrElse (UsuarioActual.CveEmpresa <> 119) Then
|
||||||
|
ValidaSeccion = False
|
||||||
|
ValidaCaducidad = False
|
||||||
|
ValidaLote = False
|
||||||
|
End If
|
||||||
|
|
||||||
If ValidaSeccion Then
|
If ValidaSeccion Then
|
||||||
Alert("La sección de almacen no ha sido especificada en todos los productos.", TipoMensaje.MsgAdvertencia)
|
Alert("La sección de almacen no ha sido especificada en todos los productos.", TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
Return False
|
||||||
|
|||||||
@@ -285,10 +285,10 @@
|
|||||||
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,###,###.##}" ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Cantidad" DataField="Cantidad" DataFormatString="{0:#,###,###.##}" ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-Width="40%" />
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-Width="40%" />
|
||||||
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="10%" />
|
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="10%" />
|
||||||
|
<asp:BoundField HeaderText="Sección" DataField="SeccionAlmacen" ItemStyle-Width="10%" Visible="false"/>
|
||||||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" Visible="false" />
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="10%" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-Width="10%" Visible="false" />
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-Width="10%" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Caducidad" DataField="FechaCaducidad" DataFormatString="{0:d}" ItemStyle-Width="10%" Visible="false" />
|
<asp:BoundField HeaderText="Caducidad" DataField="FechaCaducidad" DataFormatString="{0:d}" ItemStyle-Width="10%" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Sección" DataField="SeccionAlmacen" ItemStyle-Width="10%" Visible="false"/>
|
|
||||||
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-Width="10%" />
|
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-Width="10%" />
|
||||||
<%--<asp:TemplateField HeaderText="Sección Almacén" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" Visible="false">
|
<%--<asp:TemplateField HeaderText="Sección Almacén" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="10%" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
|
|||||||
@@ -832,9 +832,11 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
Serie = If(dr("Serie").ToString = "", "-1", dr("Serie").ToString)
|
Serie = If(dr("Serie").ToString = "", "-1", dr("Serie").ToString)
|
||||||
Lote = If(dr("Lote").ToString = "", "-1", dr("Lote").ToString)
|
Lote = If(dr("Lote").ToString = "", "-1", dr("Lote").ToString)
|
||||||
FechaCaducidad = If(dr("FechaCaducidad").ToString = "", MinFecha, dr("FechaCaducidad").ToString.ToDate)
|
FechaCaducidad = If(dr("FechaCaducidad").ToString = "", MinFecha, dr("FechaCaducidad").ToString.ToDate)
|
||||||
|
Dim tLote As String = If(Lote <> "-1", String.Format("AND Lote = '{0}' ", Lote), "")
|
||||||
|
Dim tFechaCaducidad As String = If(FechaCaducidad > MinFecha, String.Format("AND FechaCaducidad = '{0}' ", FechaCaducidad), "")
|
||||||
|
|
||||||
Dim ExistenciaEspecificada As Decimal = 0
|
Dim ExistenciaEspecificada As Decimal = 0
|
||||||
CantidadenGrid = DtMovimientos.SUMD("Cantidad", $"CvePS = {dr("CvePS").ToString.ToEntero} AND CveUM = {dr("CveUM").ToString.ToEntero} {If(dr("Serie").ToString <> "-1", $" AND Serie = '{dr("Serie").ToString}'", "")}")
|
CantidadenGrid = DtMovimientos.SUMD("Cantidad", String.Format("CvePS = {0} AND CveUM = {1} {2} {3} {4} ", dr("CvePS"), dr("CveUM"), If(Not dr("Serie").ToString.Contiene("-1", ""), $" AND Serie = '{dr("Serie")}'", ""), tLote, tFechaCaducidad))
|
||||||
Existencia = ObjInventario.GetExistenciasPS(dr("CvePS").ToString.ToEntero, dr("CveUM").ToString.ToEntero, UsuarioActual.CveEmpresa, DdlAlmacenOrigen.SelectedValue.ToEntero, FechaMovto:=TxtFecha.Text.ToDate.ToString("yyyy/MM/dd 23:59"), CveSeccionAlmacen:=CveSeccionAlmacen, Serie:=Serie, Lote:=Lote, FechaCaducidad:=FechaCaducidad, PendientePorSurtir:=1)
|
Existencia = ObjInventario.GetExistenciasPS(dr("CvePS").ToString.ToEntero, dr("CveUM").ToString.ToEntero, UsuarioActual.CveEmpresa, DdlAlmacenOrigen.SelectedValue.ToEntero, FechaMovto:=TxtFecha.Text.ToDate.ToString("yyyy/MM/dd 23:59"), CveSeccionAlmacen:=CveSeccionAlmacen, Serie:=Serie, Lote:=Lote, FechaCaducidad:=FechaCaducidad, PendientePorSurtir:=1)
|
||||||
Existencia -= CantidadenGrid
|
Existencia -= CantidadenGrid
|
||||||
'DtMovimientos.SUM("Cantidad", String.Format("CvePS = {0}", dr("CvePS").ToString.ToEntero))
|
'DtMovimientos.SUM("Cantidad", String.Format("CvePS = {0}", dr("CvePS").ToString.ToEntero))
|
||||||
@@ -2798,6 +2800,8 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
DtExcel.Columns.Add(New DataColumn("Codigo", GetType(String)))
|
DtExcel.Columns.Add(New DataColumn("Codigo", GetType(String)))
|
||||||
DtExcel.Columns.Add(New DataColumn("Producto", GetType(String)))
|
DtExcel.Columns.Add(New DataColumn("Producto", GetType(String)))
|
||||||
DtExcel.Columns.Add(New DataColumn("Serie", GetType(String)))
|
DtExcel.Columns.Add(New DataColumn("Serie", GetType(String)))
|
||||||
|
DtExcel.Columns.Add(New DataColumn("Lote", GetType(String)))
|
||||||
|
DtExcel.Columns.Add(New DataColumn("FechaCaducidad", GetType(Date)))
|
||||||
DtExcel.Columns.Add(New DataColumn("Observaciones", GetType(String)))
|
DtExcel.Columns.Add(New DataColumn("Observaciones", GetType(String)))
|
||||||
|
|
||||||
DtExcel.TableName = "Traspaso"
|
DtExcel.TableName = "Traspaso"
|
||||||
@@ -2856,7 +2860,15 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
Alert("El nombre de la cuarta columna debe ser 'Serie'. Favor de corregirlo", TipoMensaje.MsgError)
|
Alert("El nombre de la cuarta columna debe ser 'Serie'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
If Not dt.Columns(4).ColumnName = "Observaciones" Then
|
If Not dt.Columns(4).ColumnName = "Lote" Then
|
||||||
|
Alert("El nombre de la cuarta columna debe ser 'Lote'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
If Not dt.Columns(5).ColumnName = "FechaCaducidad" Then
|
||||||
|
Alert("El nombre de la cuarta columna debe ser 'Fecha Caducidad'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
If Not dt.Columns(6).ColumnName = "Observaciones" Then
|
||||||
Alert("El nombre de la quinta columna debe ser 'Observaciones'. Favor de corregirlo", TipoMensaje.MsgError)
|
Alert("El nombre de la quinta columna debe ser 'Observaciones'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
@@ -2879,9 +2891,9 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
|
|
||||||
Dim Cantidad As Double = RowExcel("Cantidad").ToString().ToDecimal()
|
Dim Cantidad As Double = RowExcel("Cantidad").ToString().ToDecimal()
|
||||||
Dim Serie As String = RowExcel("Serie").ToString()
|
Dim Serie As String = RowExcel("Serie").ToString()
|
||||||
|
Dim Lote As String = If(RowExcel("Lote").ToString() = "", "-1", RowExcel("Lote").ToString())
|
||||||
|
Dim FechaCaducidad As Date = If(RowExcel("FechaCaducidad").ToString <> "", MinFecha, RowExcel("FechaCaducidad").ToString.ToDate)
|
||||||
Dim Observaciones As String = RowExcel("Observaciones").ToString()
|
Dim Observaciones As String = RowExcel("Observaciones").ToString()
|
||||||
Dim FechaCaducidad As Date = MinFecha
|
|
||||||
Dim Lote As String = "-1"
|
|
||||||
|
|
||||||
If CveProducto > 0 Then
|
If CveProducto > 0 Then
|
||||||
|
|
||||||
@@ -2911,7 +2923,7 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Valido Then
|
If Valido Then
|
||||||
AgregarPS(Cantidad, CveProducto, CveUnidadMedida, Observaciones, CveSeccionAlmacen:=DdlSeccionAlmacen.SelectedValue.ToEntero, SeccionAlmacen:=DdlSeccionAlmacen.SelectedItem.Text, Serie:=If(Not String.IsNullOrEmpty(Serie), Serie, ""), Limpia:=False)
|
AgregarPS(Cantidad, CveProducto, CveUnidadMedida, Observaciones, CveSeccionAlmacen:=DdlSeccionAlmacen.SelectedValue.ToEntero, SeccionAlmacen:=DdlSeccionAlmacen.SelectedItem.Text, Serie:=If(Not String.IsNullOrEmpty(Serie), Serie, ""), Lote:=Lote, FechaCaducidad:=FechaCaducidad, Limpia:=False)
|
||||||
RowsCargados = RowsCargados + 1
|
RowsCargados = RowsCargados + 1
|
||||||
Else
|
Else
|
||||||
RowsNoCargados = RowsNoCargados + 1
|
RowsNoCargados = RowsNoCargados + 1
|
||||||
|
|||||||
@@ -8,350 +8,385 @@
|
|||||||
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
||||||
Catálogo de Periodos
|
Catálogo de periodos
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
||||||
<ContentTemplate>
|
|
||||||
<table class="table table-striped table-advance table-hover">
|
|
||||||
<thead>
|
|
||||||
<tr class="Titulos">
|
|
||||||
<th width="110px">
|
|
||||||
<asp:LinkButton ID="LbTipoPeriodo" runat="server" CausesValidation="false" Text="" CommandArgument="TipoPeriodo" OnClick="LbOrden_Click">
|
|
||||||
Tipo
|
|
||||||
<asp:Literal ID="ImgTipoPeriodo" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEjercicio" runat="server" CausesValidation="false" Text="" CommandArgument="Ejercicio" OnClick="LbOrden_Click">
|
|
||||||
Ej.
|
|
||||||
<asp:Literal ID="ImgEjercicio" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbMes" runat="server" CausesValidation="false" Text="" CommandArgument="Mes" OnClick="LbOrden_Click">
|
|
||||||
Mes
|
|
||||||
<asp:Literal ID="ImgMes" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbNumero" runat="server" CausesValidation="false" Text="" CommandArgument="Numero" OnClick="LbOrden_Click">
|
|
||||||
No.
|
|
||||||
<asp:Literal ID="ImgNumero" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="100px">
|
|
||||||
<asp:LinkButton ID="LbFechaInicio" runat="server" CausesValidation="false" Text="" CommandArgument="FechaInicio" OnClick="LbOrden_Click">
|
|
||||||
Fecha Ini
|
|
||||||
<asp:Literal ID="ImgFechaInicio" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="100px">
|
|
||||||
<asp:LinkButton ID="LbFechaFin" runat="server" CausesValidation="false" Text="" CommandArgument="FechaFin" OnClick="LbOrden_Click">
|
|
||||||
Fecha Fin
|
|
||||||
<asp:Literal ID="ImgFechaFin" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEsInicioMes" runat="server" CausesValidation="false" Text="" CommandArgument="EsInicioMes" OnClick="LbOrden_Click">
|
|
||||||
Ini. Mes
|
|
||||||
<asp:Literal ID="ImgEsInicioMes" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEsFinMes" runat="server" CausesValidation="false" Text="" CommandArgument="EsFinMes" OnClick="LbOrden_Click">
|
|
||||||
Fin Mes
|
|
||||||
<asp:Literal ID="ImgEsFinMes" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEsInicioSS" runat="server" CausesValidation="false" Text="" CommandArgument="EsInicioSS" OnClick="LbOrden_Click">
|
|
||||||
Ini. SS
|
|
||||||
<asp:Literal ID="ImgEsInicioSS" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEsFinSS" runat="server" CausesValidation="false" Text="" CommandArgument="EsFinSS" OnClick="LbOrden_Click">
|
|
||||||
Fin SS
|
|
||||||
<asp:Literal ID="ImgEsFinSS" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEsInicioAño" runat="server" CausesValidation="false" Text="" CommandArgument="EsInicioAño" OnClick="LbOrden_Click">
|
|
||||||
Ini. Año
|
|
||||||
<asp:Literal ID="ImgEsInicioAño" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="80px">
|
|
||||||
<asp:LinkButton ID="LbEsFinAño" runat="server" CausesValidation="false" Text="" CommandArgument="EsFinAño" OnClick="LbOrden_Click">
|
|
||||||
Fin Año
|
|
||||||
<asp:Literal ID="ImgEsFinAño" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="100px">
|
|
||||||
<asp:LinkButton ID="LbFueCalculado" runat="server" CausesValidation="false" Text="" CommandArgument="FueCalculado" OnClick="LbOrden_Click">
|
|
||||||
Calculado
|
|
||||||
<asp:Literal ID="ImgFueCalculado" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<th width="100px">
|
|
||||||
<asp:LinkButton ID="LbEstatus" runat="server" CausesValidation="false" Text="" CommandArgument="Estatus" OnClick="LbOrden_Click">
|
|
||||||
Estatus
|
|
||||||
<asp:Literal ID="ImgEstatus" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
||||||
</asp:LinkButton>
|
|
||||||
</th>
|
|
||||||
<%--<td width="100px"><asp:LinkButton ID="LbFechaIng" runat="server" CausesValidation="false" Text="Fecha Ing."></asp:LinkButton> <asp:ImageButton ID="ImgFechaIng" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></td>--%>
|
|
||||||
<%-- <td width="100px"><asp:LinkButton ID="LbUsuario" runat="server" CausesValidation="false" Text="Usuario"></asp:LinkButton> <asp:ImageButton ID="ImgUsuario" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></td>--%>
|
|
||||||
<th width="119">Comandos</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" Width="90px" ValidationGroup="GrpGuardar">
|
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVTipoPeriodo" runat="server" ControlToValidate="DdlTipoPeriodo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOTipoPeriodo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPeriodo" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<asp:TextBox ID="TxtEjercicio" runat="server" CausesValidation="true" MaxLength="70" ValidationGroup="GrpGuardar" Width="70px" Enabled="false"></asp:TextBox>
|
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVEjercicio" runat="server" ControlToValidate="TxtEjercicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEjercicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVEjercicio" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<asp:TextBox ID="TxtMes" runat="server" CausesValidation="true" MaxLength="70" ValidationGroup="GrpGuardar" Width="70px" Enabled="false"></asp:TextBox>
|
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVMes" runat="server" ControlToValidate="TxtMes" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCMes" runat="server" HighlightCssClass="vco" TargetControlID="RFVMes" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<asp:TextBox ID="TxtNumero" runat="server" CausesValidation="true" MaxLength="70" ValidationGroup="GrpGuardar" Width="70px"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVNumero" runat="server" ControlToValidate="TxtNumero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCNumero" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumero" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<asp:TextBox ID="TxtFechaInicio" runat="server" MaxLength="10" Width="70px"></asp:TextBox>
|
|
||||||
<asp:ImageButton runat="server" ID="ImgFechaInicio2" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="13px" Height="13px" AlternateText="Click para ver el Calendario" />
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CEFechaInicio" TargetControlID="TxtFechaInicio" PopupButtonID="ImgFechaInicio2" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaInicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaInicio''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOFechaInicio1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicio" Width="3100px"></ajax:ValidatorCalloutExtender>
|
|
||||||
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOFechaInicio2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaInicio" Width="3100px"></ajax:ValidatorCalloutExtender>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<asp:TextBox ID="TxtFechaFin" runat="server" MaxLength="10" Width="70px"></asp:TextBox>
|
|
||||||
<asp:ImageButton runat="server" ID="ImgFechaFin2" ImageUrl="/Imagenes/calendar.png" ImageAlign="AbsMiddle" Width="13px" Height="13px" AlternateText="Click para ver el Calendario" />
|
|
||||||
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
||||||
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgFechaFin2" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaFin''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
||||||
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaFin''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOFechaFin1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFin" Width="3100px"></ajax:ValidatorCalloutExtender>
|
|
||||||
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOFechaFin2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaFin" Width="3100px"></ajax:ValidatorCalloutExtender>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkEsInicioMes" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkEsFinMes" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkEsInicioSS" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkEsFinSS" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkEsInicioAño" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkEsFinAño" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td style="text-align: center">
|
|
||||||
<asp:CheckBox ID="ChkFueCalculado" runat="server" />
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Estatus" DataValueField="CveEstatus" Width="90px" ValidationGroup="GrpGuardar">
|
|
||||||
<asp:ListItem Selected="True" Text="" Value="0"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Actual" Value="1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Cerrado" Value="2"></asp:ListItem>
|
|
||||||
|
|
||||||
</asp:DropDownList>
|
<div class="portlet light xspadding bordered " id="pnldl">
|
||||||
</td>
|
<div class="portlet-title">
|
||||||
<td style="text-align: center">
|
<div class="caption ">
|
||||||
<asp:LinkButton ID="LbAgregar" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardar"></asp:LinkButton></td>
|
<i class="fa fa-bookmark font-yellow-gold"></i>
|
||||||
</tr>
|
<span class="caption-subject font-yellow-gold bold uppercase">Periodos</span>
|
||||||
</table>
|
</div>
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
<div class="tools">
|
||||||
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
<ContentTemplate>
|
<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePeriodo" EmptyDataText="No se encontraron Tipo de Periodo Registrados" ToolTip="Listado de Tipo de Periodo" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px;" GridLines="None">
|
</div>
|
||||||
<Columns>
|
<div class="actions">
|
||||||
<asp:TemplateField>
|
<div class="btn-group">
|
||||||
<ItemTemplate>
|
</div>
|
||||||
<asp:Literal ID="LtlTipoPeriodo" runat="server" Text='<%# Eval("TipoPeriodo", " {0}") %>'></asp:Literal>
|
</div>
|
||||||
</ItemTemplate>
|
<div style="float: right;">
|
||||||
<EditItemTemplate>
|
<asp:TextBox CssClass="TxtBusqueda form-control input-sm" runat="server" onkeyup="FiltrarTablaV2('.TxtBusqueda','.GvDatos')" Style="display: inline-block; margin-right: -20px; width: 150px;"></asp:TextBox>
|
||||||
<asp:DropDownList ID="DdlTipoPeriodo" runat="server" DataValueField="CveTipoPeriodo" DataTextField="TipoPeriodo" Width="80px"></asp:DropDownList>
|
<a href="javascript:;" onclick="FiltrarTablaV2('.TxtBusqueda','.GvDatos')" style="margin-top: -3px;" class="btn btn-circle btn-sm font-bold yellow-gold"><i class="icon-magnifier" style="font-weight: bold;"></i></a>
|
||||||
</EditItemTemplate>
|
</div>
|
||||||
</asp:TemplateField>
|
</div>
|
||||||
<asp:TemplateField>
|
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||||
<ItemTemplate>
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
||||||
<asp:Literal ID="LtlEjercicio" runat="server" Text='<%# Eval("Ejercicio", " {0}") %>'></asp:Literal>
|
<ContentTemplate>
|
||||||
</ItemTemplate>
|
<table class="table table-striped table-advance table-hover mysmallbtn Widthall tableheader">
|
||||||
<EditItemTemplate>
|
<thead>
|
||||||
<asp:TextBox ID="TxtEjercicio" runat="server" CausesValidation="true" MaxLength="80" Text='<%# Eval("Ejercicio") %>' ValidationGroup="GrpGV" Width="70px" Enabled="false"></asp:TextBox>
|
<tr class="Titulos ADtr">
|
||||||
<asp:RequiredFieldValidator ID="RFVEjercicio" runat="server" ControlToValidate="TxtEjercicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
<th width="110px">
|
||||||
<ajax:ValidatorCalloutExtender ID="VCEjercicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVEjercicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
<asp:LinkButton ID="LbTipoPeriodo" runat="server" CausesValidation="false" Text="" CommandArgument="TipoPeriodo" OnClick="LbOrden_Click">
|
||||||
</EditItemTemplate>
|
Tipo
|
||||||
</asp:TemplateField>
|
<asp:Literal ID="ImgTipoPeriodo" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:TemplateField>
|
</asp:LinkButton>
|
||||||
<ItemTemplate>
|
</th>
|
||||||
<asp:Literal ID="LtlMes" runat="server" Text='<%# Eval("Mes", " {0}") %>'></asp:Literal>
|
<th width="80px">
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="LbEjercicio" runat="server" CausesValidation="false" Text="" CommandArgument="Ejercicio" OnClick="LbOrden_Click">
|
||||||
<EditItemTemplate>
|
Ej.
|
||||||
<asp:TextBox ID="TxtMes" runat="server" CausesValidation="true" MaxLength="80" Text='<%# Eval("Mes") %>' ValidationGroup="GrpGV" Width="70px" Enabled="false"></asp:TextBox>
|
<asp:Literal ID="ImgEjercicio" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:RequiredFieldValidator ID="RFVMes" runat="server" ControlToValidate="TxtMes" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
</asp:LinkButton>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCMes" runat="server" HighlightCssClass="vco" TargetControlID="RFVMes" Width="300px"></ajax:ValidatorCalloutExtender>
|
</th>
|
||||||
</EditItemTemplate>
|
<th width="80px">
|
||||||
</asp:TemplateField>
|
<asp:LinkButton ID="LbMes" runat="server" CausesValidation="false" Text="" CommandArgument="Mes" OnClick="LbOrden_Click">
|
||||||
<asp:TemplateField>
|
Mes
|
||||||
<ItemTemplate>
|
<asp:Literal ID="ImgMes" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:Literal ID="LtlNumero" runat="server" Text='<%# Eval("Numero", " {0}") %>'></asp:Literal>
|
</asp:LinkButton>
|
||||||
</ItemTemplate>
|
</th>
|
||||||
<EditItemTemplate>
|
<th width="80px">
|
||||||
<asp:TextBox ID="TxtNumero" runat="server" CausesValidation="true" MaxLength="80" Text='<%# Eval("Numero") %>' ValidationGroup="GrpGV" Width="70px" Enabled="false"></asp:TextBox>
|
<asp:LinkButton ID="LbNumero" runat="server" CausesValidation="false" Text="" CommandArgument="Numero" OnClick="LbOrden_Click">
|
||||||
<asp:RequiredFieldValidator ID="RFVNumero" runat="server" ControlToValidate="TxtNumero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
No.
|
||||||
<ajax:ValidatorCalloutExtender ID="VCNumero" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumero" Width="300px"></ajax:ValidatorCalloutExtender>
|
<asp:Literal ID="ImgNumero" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</EditItemTemplate>
|
</asp:LinkButton>
|
||||||
</asp:TemplateField>
|
</th>
|
||||||
<asp:TemplateField>
|
<th width="100px">
|
||||||
<ItemTemplate>
|
<asp:LinkButton ID="LbFechaInicio" runat="server" CausesValidation="false" Text="" CommandArgument="FechaInicio" OnClick="LbOrden_Click">
|
||||||
<asp:Literal ID="LtlFechaInicio" runat="server" Text='<%# Eval("FechaInicio", "{0:d}") %>'></asp:Literal>
|
Fecha Ini
|
||||||
</ItemTemplate>
|
<asp:Literal ID="ImgFechaInicio" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<EditItemTemplate>
|
</asp:LinkButton>
|
||||||
<asp:TextBox ID="TxtFechaInicio" runat="server" CausesValidation="true" Text='<%# Eval("FechaInicio") %>' ValidationGroup="GrpGV" MaxLength="10" Width="70px"></asp:TextBox>
|
</th>
|
||||||
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
<th width="100px">
|
||||||
<ajax:ValidatorCalloutExtender ID="VCFechaInicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
<asp:LinkButton ID="LbFechaFin" runat="server" CausesValidation="false" Text="" CommandArgument="FechaFin" OnClick="LbOrden_Click">
|
||||||
</EditItemTemplate>
|
Fecha Fin
|
||||||
</asp:TemplateField>
|
<asp:Literal ID="ImgFechaFin" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:TemplateField>
|
</asp:LinkButton>
|
||||||
<ItemTemplate>
|
</th>
|
||||||
<asp:Literal ID="LtlFechaFin" runat="server" Text='<%# Eval("FechaFin", "{0:d}") %>'></asp:Literal>
|
<th width="80px">
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="LbEsInicioMes" runat="server" CausesValidation="false" Text="" CommandArgument="EsInicioMes" OnClick="LbOrden_Click">
|
||||||
<EditItemTemplate>
|
Ini. Mes
|
||||||
<asp:TextBox ID="TxtFechaFin" runat="server" CausesValidation="true" Text='<%# Eval("FechaFin") %>' ValidationGroup="GrpGV" MaxLength="10" Width="70px"></asp:TextBox>
|
<asp:Literal ID="ImgEsInicioMes" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
</asp:LinkButton>
|
||||||
<ajax:ValidatorCalloutExtender ID="VCFechaFin" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
</th>
|
||||||
</EditItemTemplate>
|
<th width="80px">
|
||||||
</asp:TemplateField>
|
<asp:LinkButton ID="LbEsFinMes" runat="server" CausesValidation="false" Text="" CommandArgument="EsFinMes" OnClick="LbOrden_Click">
|
||||||
<asp:TemplateField>
|
Fin Mes
|
||||||
<ItemTemplate>
|
<asp:Literal ID="ImgEsFinMes" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:CheckBox ID="ChkEsInicioMes" runat="server" Checked='<%# If (Eval("EsInicioMes").ToString = "Si", True, False) %>' />
|
</asp:LinkButton>
|
||||||
</ItemTemplate>
|
</th>
|
||||||
<EditItemTemplate>
|
<th width="80px">
|
||||||
<asp:CheckBox ID="ChkEsInicioMes" runat="server" Checked='<%# If (Eval("EsInicioMes").ToString = "Si", True, False) %>' />
|
<asp:LinkButton ID="LbEsInicioSS" runat="server" CausesValidation="false" Text="" CommandArgument="EsInicioSS" OnClick="LbOrden_Click">
|
||||||
</EditItemTemplate>
|
Ini. SS
|
||||||
</asp:TemplateField>
|
<asp:Literal ID="ImgEsInicioSS" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:TemplateField>
|
</asp:LinkButton>
|
||||||
<ItemTemplate>
|
</th>
|
||||||
<asp:CheckBox ID="ChkEsFinMes" runat="server" Checked='<%# If (Eval("EsFinMes").ToString = "Si", True, False) %>' />
|
<th width="80px">
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="LbEsFinSS" runat="server" CausesValidation="false" Text="" CommandArgument="EsFinSS" OnClick="LbOrden_Click">
|
||||||
<EditItemTemplate>
|
Fin SS
|
||||||
<asp:CheckBox ID="ChkEsFinMes" runat="server" Checked='<%# If (Eval("EsFinMes").ToString = "Si", True, False) %>' />
|
<asp:Literal ID="ImgEsFinSS" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</EditItemTemplate>
|
</asp:LinkButton>
|
||||||
</asp:TemplateField>
|
</th>
|
||||||
<asp:TemplateField>
|
<th width="80px">
|
||||||
<ItemTemplate>
|
<asp:LinkButton ID="LbEsInicioAño" runat="server" CausesValidation="false" Text="" CommandArgument="EsInicioAño" OnClick="LbOrden_Click">
|
||||||
<asp:CheckBox ID="ChkEsInicioSS" runat="server" Checked='<%# If (Eval("EsInicioSS").ToString = "Si", True, False) %>' />
|
Ini. Año
|
||||||
</ItemTemplate>
|
<asp:Literal ID="ImgEsInicioAño" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<EditItemTemplate>
|
</asp:LinkButton>
|
||||||
<asp:CheckBox ID="ChkEsInicioSS" runat="server" Checked='<%# If (Eval("EsInicioSS").ToString = "Si", True, False) %>' />
|
</th>
|
||||||
</EditItemTemplate>
|
<th width="80px">
|
||||||
</asp:TemplateField>
|
<asp:LinkButton ID="LbEsFinAño" runat="server" CausesValidation="false" Text="" CommandArgument="EsFinAño" OnClick="LbOrden_Click">
|
||||||
<asp:TemplateField>
|
Fin Año
|
||||||
<ItemTemplate>
|
<asp:Literal ID="ImgEsFinAño" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:CheckBox ID="ChkEsFinSS" runat="server" Checked='<%# If (Eval("EsFinSS").ToString = "Si", True, False) %>' />
|
</asp:LinkButton>
|
||||||
</ItemTemplate>
|
</th>
|
||||||
<EditItemTemplate>
|
<th width="100px">
|
||||||
<asp:CheckBox ID="ChkEsFinSS" runat="server" Checked='<%# If (Eval("EsFinSS").ToString = "Si", True, False) %>' />
|
<asp:LinkButton ID="LbFueCalculado" runat="server" CausesValidation="false" Text="" CommandArgument="FueCalculado" OnClick="LbOrden_Click">
|
||||||
</EditItemTemplate>
|
Calculado
|
||||||
</asp:TemplateField>
|
<asp:Literal ID="ImgFueCalculado" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
<asp:TemplateField>
|
</asp:LinkButton>
|
||||||
<ItemTemplate>
|
</th>
|
||||||
<asp:CheckBox ID="ChkEsInicioAño" runat="server" Checked='<%# If (Eval("EsInicioAño").ToString = "Si", True, False) %>' />
|
<th width="100px">
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="LbEstatus" runat="server" CausesValidation="false" Text="" CommandArgument="Estatus" OnClick="LbOrden_Click">
|
||||||
<EditItemTemplate>
|
Estatus
|
||||||
<asp:CheckBox ID="ChkEsInicioAño" runat="server" Checked='<%# If (Eval("EsInicioAño").ToString = "Si", True, False) %>' />
|
<asp:Literal ID="ImgEstatus" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</EditItemTemplate>
|
</asp:LinkButton>
|
||||||
</asp:TemplateField>
|
</th>
|
||||||
<asp:TemplateField>
|
<%--<td width="100px"><asp:LinkButton ID="LbFechaIng" runat="server" CausesValidation="false" Text="Fecha Ing."></asp:LinkButton> <asp:ImageButton ID="ImgFechaIng" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></td>--%>
|
||||||
<ItemTemplate>
|
<%-- <td width="100px"><asp:LinkButton ID="LbUsuario" runat="server" CausesValidation="false" Text="Usuario"></asp:LinkButton> <asp:ImageButton ID="ImgUsuario" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></td>--%>
|
||||||
<asp:CheckBox ID="ChkEsFinAño" runat="server" Checked='<%# If (Eval("EsFinAño").ToString = "Si", True, False) %>' />
|
<th style="width: 10px;" colspan="2">Comandos</th>
|
||||||
</ItemTemplate>
|
</tr>
|
||||||
<EditItemTemplate>
|
</thead>
|
||||||
<asp:CheckBox ID="ChkEsFinAño" runat="server" Checked='<%# If (Eval("EsFinAño").ToString = "Si", True, False) %>' />
|
<tr class="ADtr">
|
||||||
</EditItemTemplate>
|
<th>
|
||||||
</asp:TemplateField>
|
<asp:DropDownList ID="DdlTipoPeriodo" CssClass="select2me form-control" Width="100%" runat="server" AppendDataBoundItems="true" DataTextField="TipoPeriodo" DataValueField="CveTipoPeriodo" ValidationGroup="GrpGuardar">
|
||||||
<asp:TemplateField>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
<ItemTemplate>
|
</asp:DropDownList>
|
||||||
<asp:CheckBox ID="ChkFueCalculado" runat="server" Checked='<%# If (Eval("FueCalculado").ToString = "Si", True, False) %>' />
|
<asp:RequiredFieldValidator ID="RFVTipoPeriodo" runat="server" ControlToValidate="DdlTipoPeriodo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
</ItemTemplate>
|
<ajax:ValidatorCalloutExtender ID="VCOTipoPeriodo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPeriodo" Width="100px"></ajax:ValidatorCalloutExtender>
|
||||||
<EditItemTemplate>
|
</th>
|
||||||
<asp:CheckBox ID="ChkFueCalculado" runat="server" Checked='<%# If (Eval("FueCalculado").ToString = "Si", True, False) %>' />
|
<th>
|
||||||
</EditItemTemplate>
|
<asp:TextBox ID="TxtEjercicio" runat="server" CausesValidation="true" MaxLength="70" ValidationGroup="GrpGuardar" Width="70px" Enabled="false"></asp:TextBox>
|
||||||
</asp:TemplateField>
|
<%--<asp:RequiredFieldValidator ID="RFVEjercicio" runat="server" ControlToValidate="TxtEjercicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<asp:TemplateField>
|
<ajax:ValidatorCalloutExtender ID="VCEjercicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVEjercicio" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||||
<ItemTemplate>
|
</th>
|
||||||
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
<th>
|
||||||
</ItemTemplate>
|
<asp:TextBox ID="TxtMes" runat="server" CausesValidation="true" MaxLength="70" ValidationGroup="GrpGuardar" Width="70px" Enabled="false"></asp:TextBox>
|
||||||
<EditItemTemplate>
|
<%--<asp:RequiredFieldValidator ID="RFVMes" runat="server" ControlToValidate="TxtMes" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
<asp:DropDownList ID="DdlEstatus" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Estatus" Width="90px" ValidationGroup="GrpGuardar">
|
<ajax:ValidatorCalloutExtender ID="VCMes" runat="server" HighlightCssClass="vco" TargetControlID="RFVMes" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
</th>
|
||||||
<asp:ListItem Text="" Value="0"></asp:ListItem>
|
<th>
|
||||||
<asp:ListItem Text="Actual" Value="1"></asp:ListItem>
|
<asp:TextBox ID="TxtNumero" runat="server" CausesValidation="true" MaxLength="70" ValidationGroup="GrpGuardar" Width="70px"></asp:TextBox>
|
||||||
<asp:ListItem Text="Cerrado" Value="2"></asp:ListItem>
|
<asp:RequiredFieldValidator ID="RFVNumero" runat="server" ControlToValidate="TxtNumero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
</asp:DropDownList>
|
<ajax:ValidatorCalloutExtender ID="VCNumero" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumero" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</EditItemTemplate>
|
</th>
|
||||||
</asp:TemplateField>
|
<th>
|
||||||
<%--<asp:TemplateField>
|
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px; margin-bottom: -10px;">
|
||||||
|
<asp:TextBox ID="TxtFechaInicio" runat="server" CssClass="form-control" CausesValidation="true" Width="100%" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgFechaInicio2" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaInicio" runat="server" TargetControlID="TxtFechaInicio" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CEFechaInicio" TargetControlID="TxtFechaInicio" PopupButtonID="ImgFechaInicio2" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaInicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="CVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaInicio''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCOFechaInicio1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicio" Width="3100px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCOFechaInicio2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaInicio" Width="3100px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 110px !important; padding: 0px; margin-bottom: -10px;">
|
||||||
|
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" Width="100%" MaxLength="10"></asp:TextBox>
|
||||||
|
<span class="input-group-btn ">
|
||||||
|
<asp:LinkButton ID="ImgFechaFin2" class="btn default " Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<ajax:MaskedEditExtender ID="MEEFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
||||||
|
<ajax:CalendarExtender runat="server" ID="CEFechaFin" TargetControlID="TxtFechaFin" PopupButtonID="ImgFechaFin2" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaFin''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||||
|
<asp:CompareValidator ID="CVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''FechaFin''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCOFechaFin1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFin" Width="3100px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCOFechaFin2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaFin" Width="3100px"></ajax:ValidatorCalloutExtender>
|
||||||
|
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkEsInicioMes" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkEsFinMes" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkEsInicioSS" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkEsFinSS" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkEsInicioAño" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkEsFinAño" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center">
|
||||||
|
<asp:CheckBox ID="ChkFueCalculado" runat="server" />
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<asp:DropDownList ID="DdlEstatus" CssClass="select2me form-control" runat="server" AppendDataBoundItems="true" DataTextField="Estatus" DataValueField="CveEstatus" Width="90px" ValidationGroup="GrpGuardar">
|
||||||
|
<asp:ListItem Selected="True" Text="" Value="0"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Actual" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Cerrado" Value="2"></asp:ListItem>
|
||||||
|
|
||||||
|
</asp:DropDownList>
|
||||||
|
</th>
|
||||||
|
<th style="text-align: center" colspan="2">
|
||||||
|
<asp:LinkButton ID="LbAgregar" runat="server" CausesValidation="true" CssClass="btn btn-primary" Text="Agregar" ValidationGroup="GrpGuardar"></asp:LinkButton></th>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePeriodo" CssClass="table table-striped table-advance table-hover mysmallbtn ScrollAD Widthall GvDatos" data-tableheader=".tableheader"
|
||||||
|
EmptyDataText="No se encontraron Tipo de Periodo Registrados" ToolTip="Listado de Tipo de Periodo" Style="margin-top: -10px;" GridLines="None" data-rows="0" ShowHeader="false">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField ItemStyle-Width="250px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlTipoPeriodo" runat="server" Text='<%# Eval("TipoPeriodo", " {0}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:DropDownList ID="DdlTipoPeriodo" CssClass="select2me form-control" runat="server" DataValueField="CveTipoPeriodo" DataTextField="TipoPeriodo" Width="80px"></asp:DropDownList>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlEjercicio" runat="server" Text='<%# Eval("Ejercicio", " {0}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtEjercicio" CssClass="form-control" runat="server" CausesValidation="true" MaxLength="4" Text='<%# Eval("Ejercicio") %>' ValidationGroup="GrpGV" Width="70px" Enabled="false"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVEjercicio" runat="server" ControlToValidate="TxtEjercicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCEjercicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVEjercicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlMes" runat="server" Text='<%# Eval("Mes", " {0}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtMes" runat="server" CausesValidation="true" MaxLength="80" Text='<%# Eval("Mes") %>' ValidationGroup="GrpGV" Width="70px" Enabled="false"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVMes" runat="server" ControlToValidate="TxtMes" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCMes" runat="server" HighlightCssClass="vco" TargetControlID="RFVMes" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlNumero" runat="server" Text='<%# Eval("Numero", " {0}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtNumero" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="80" Text='<%# Eval("Numero") %>' ValidationGroup="GrpGV" Width="70px" Enabled="false"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVNumero" runat="server" ControlToValidate="TxtNumero" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCNumero" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumero" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlFechaInicio" runat="server" Text='<%# Eval("FechaInicio", "{0:dd/MM/yyyy}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtFechaInicio" CssClass="form-control" runat="server" CausesValidation="true" Text='<%# Eval("FechaInicio") %>' ValidationGroup="GrpGV" MaxLength="10" Width="70px"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVFechaInicio" runat="server" ControlToValidate="TxtFechaInicio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCFechaInicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaInicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlFechaFin" runat="server" Text='<%# Eval("FechaFin", "{0:d}") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:TextBox ID="TxtFechaFin" CssClass="form-control" runat="server" CausesValidation="true" Text='<%# Eval("FechaFin") %>' ValidationGroup="GrpGV" MaxLength="10" Width="70px"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Días de Período''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCFechaFin" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaFin" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsInicioMes" runat="server" Checked='<%# If (Eval("EsInicioMes").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsInicioMes" runat="server" Checked='<%# If (Eval("EsInicioMes").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsFinMes" runat="server" Checked='<%# If (Eval("EsFinMes").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsFinMes" runat="server" Checked='<%# If (Eval("EsFinMes").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsInicioSS" runat="server" Checked='<%# If (Eval("EsInicioSS").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsInicioSS" runat="server" Checked='<%# If (Eval("EsInicioSS").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsFinSS" runat="server" Checked='<%# If (Eval("EsFinSS").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsFinSS" runat="server" Checked='<%# If (Eval("EsFinSS").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsInicioAño" runat="server" Checked='<%# If (Eval("EsInicioAño").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsInicioAño" runat="server" Checked='<%# If (Eval("EsInicioAño").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsFinAño" runat="server" Checked='<%# If (Eval("EsFinAño").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkEsFinAño" runat="server" Checked='<%# If (Eval("EsFinAño").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-Width="10px">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkFueCalculado" runat="server" Checked='<%# If (Eval("FueCalculado").ToString = "Si", True, False) %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:CheckBox ID="ChkFueCalculado" runat="server" Checked='<%# If (Eval("FueCalculado").ToString = "Si", True, False) %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:DropDownList ID="DdlEstatus" runat="server" CssClass="select2me form-control" AppendDataBoundItems="true" DataTextField="Estatus" Width="90px" ValidationGroup="GrpGuardar">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="" Value="0"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Actual" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Cerrado" Value="2"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<%--<asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Literal>
|
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:d}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>--%>
|
</asp:TemplateField>--%>
|
||||||
<%-- <asp:TemplateField>
|
<%-- <asp:TemplateField>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>--%>
|
</asp:TemplateField>--%>
|
||||||
<asp:TemplateField HeaderText="Editar">
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="10px">
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<center>
|
<div style="width: 100%; text-align: center;">
|
||||||
<asp:ImageButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" ImageUrl="/Imagenes/Btn_Update.png" ValidationGroup="GrpGV" />
|
<asp:LinkButton CssClass="btn btn-circle btn-sm green mysmallbtn" Text="<i class='fa fa-check'></i>" ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" ValidationGroup="GrpGV"></asp:LinkButton>
|
||||||
<asp:ImageButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" ImageUrl="/Imagenes/Btn_Cancel.png" />
|
<asp:LinkButton CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='fa fa-ban'></i>" ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel"></asp:LinkButton>
|
||||||
</center>
|
</div>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:ImageButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" ImageUrl="/Imagenes/Btn_Edit.png" />
|
<div style="width: 100%; text-align: center;">
|
||||||
</ItemTemplate>
|
<asp:LinkButton ID="imgE" CssClass="btn btn-circle btn-sm blue mysmallbtn" Text="<i class='fa fa-pencil'></i>" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit"></asp:LinkButton>
|
||||||
</asp:TemplateField>
|
</div>
|
||||||
<asp:TemplateField HeaderText="Eliminar">
|
</ItemTemplate>
|
||||||
<ItemTemplate>
|
</asp:TemplateField>
|
||||||
<asp:ImageButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" ImageUrl="/Imagenes/Btn_Delete.png" OnClientClick="javascript:return C();" />
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="10px">
|
||||||
</ItemTemplate>
|
<ItemTemplate>
|
||||||
</asp:TemplateField>
|
<div style="width: 100%; text-align: center;">
|
||||||
</Columns>
|
<asp:LinkButton ID="imgD" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='icon-trash'></i>" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" OnClientClick="javascript:return C();"></asp:LinkButton>
|
||||||
<RowStyle CssClass="Texto" />
|
</div>
|
||||||
<AlternatingRowStyle CssClass="TextoAlterno" />
|
</ItemTemplate>
|
||||||
</asp:GridView>
|
</asp:TemplateField>
|
||||||
</ContentTemplate>
|
</Columns>
|
||||||
</asp:UpdatePanel>
|
<RowStyle CssClass="Texto" />
|
||||||
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
||||||
|
</asp:GridView>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
|
<script>function ADSBegin() { FiltrarTablaV2('.TxtBusqueda', '.GvDatos') }</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|||||||
@@ -62,14 +62,14 @@ Partial Class Nomina_CatPeriodos
|
|||||||
If ObjNom_Periodos.AddPeriodo(CveTipoPeriodo, Ejercicio, Mes, Numero, FechaInicio, FechaFin, EsInicioMes, EsFinMes, ChkEsInicioSS.Checked, ChkEsFinAño.Checked, ChkEsInicioAño.Checked, ChkEsFinAño.Checked, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjNom_Periodos.AddPeriodo(CveTipoPeriodo, Ejercicio, Mes, Numero, FechaInicio, FechaFin, EsInicioMes, EsFinMes, ChkEsInicioSS.Checked, ChkEsFinAño.Checked, ChkEsInicioAño.Checked, ChkEsFinAño.Checked, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
Alert("El nuevo Periodo se guardó correctamente.", TipoMensaje.MsgInformacion)
|
Alert("El nuevo Periodo se guardó correctamente.", TipoMensaje.MsgInformacion)
|
||||||
UpTitulos.Update()
|
UpDatos.Update()
|
||||||
ViewState("DTNom_Periodos") = ObjNom_Periodos.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
ViewState("DTNom_Periodos") = ObjNom_Periodos.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
|
||||||
GlobalDTNom_Periodos = ObjNom_Periodos.DtResultados
|
GlobalDTNom_Periodos = ObjNom_Periodos.DtResultados
|
||||||
|
CargaDatos()
|
||||||
If ViewState("Orden").ToString() <> String.Empty Then
|
If String.IsNullOrEmpty(ViewState("Orden").ToString()) Then
|
||||||
CargaGrid(ViewState("Orden").ToString())
|
CargaGrid(ViewState("Orden").ToString())
|
||||||
Else
|
Else
|
||||||
CargaGrid("")
|
CargaGrid("")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -87,22 +87,22 @@ Partial Class Nomina_CatPeriodos
|
|||||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
If e.Row.RowIndex = 0 Then
|
If e.Row.RowIndex = 0 Then
|
||||||
e.Row.Cells(0).Width = Unit.Pixel(100)
|
'e.Row.Cells(0).Width = Unit.Pixel(100)
|
||||||
e.Row.Cells(1).Width = Unit.Pixel(80)
|
'e.Row.Cells(1).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(2).Width = Unit.Pixel(80)
|
'e.Row.Cells(2).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(3).Width = Unit.Pixel(80)
|
'e.Row.Cells(3).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(4).Width = Unit.Pixel(100)
|
'e.Row.Cells(4).Width = Unit.Pixel(100)
|
||||||
e.Row.Cells(5).Width = Unit.Pixel(100)
|
'e.Row.Cells(5).Width = Unit.Pixel(100)
|
||||||
e.Row.Cells(6).Width = Unit.Pixel(80)
|
'e.Row.Cells(6).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(7).Width = Unit.Pixel(80)
|
'e.Row.Cells(7).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(8).Width = Unit.Pixel(80)
|
'e.Row.Cells(8).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(9).Width = Unit.Pixel(80)
|
'e.Row.Cells(9).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(10).Width = Unit.Pixel(80)
|
'e.Row.Cells(10).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(11).Width = Unit.Pixel(80)
|
'e.Row.Cells(11).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(12).Width = Unit.Pixel(80)
|
'e.Row.Cells(12).Width = Unit.Pixel(80)
|
||||||
e.Row.Cells(13).Width = Unit.Pixel(100)
|
'e.Row.Cells(13).Width = Unit.Pixel(100)
|
||||||
e.Row.Cells(14).Width = Unit.Pixel(53)
|
'e.Row.Cells(14).Width = Unit.Pixel(53)
|
||||||
e.Row.Cells(15).Width = Unit.Pixel(68)
|
'e.Row.Cells(15).Width = Unit.Pixel(68)
|
||||||
'e.Row.Cells(15).Width = Unit.Pixel(100)
|
'e.Row.Cells(15).Width = Unit.Pixel(100)
|
||||||
End If
|
End If
|
||||||
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
|
||||||
|
|||||||
@@ -82,6 +82,8 @@
|
|||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
|
|
||||||
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
<div class="row ">
|
<div class="row ">
|
||||||
<div class="col-sm-6 ">
|
<div class="col-sm-6 ">
|
||||||
<%--class="col-md-6 col-md-offset-3 col-sm-10 col-sm-offset-1"--%>
|
<%--class="col-md-6 col-md-offset-3 col-sm-10 col-sm-offset-1"--%>
|
||||||
@@ -402,6 +404,8 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ using System.Web;
|
|||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using Extensiones;
|
using Extensiones;
|
||||||
|
using static Extensiones.ModExtensiones;
|
||||||
|
|
||||||
public partial class Nomina_Finiquito : ClsPaginas
|
public partial class Nomina_Finiquito : ClsPaginas
|
||||||
{
|
{
|
||||||
@@ -42,6 +43,38 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
get { return ViewState["DtAltas"] != null ? (DataTable)ViewState["DtAltas"] : null; }
|
get { return ViewState["DtAltas"] != null ? (DataTable)ViewState["DtAltas"] : null; }
|
||||||
set { ViewState["DtAltas"] = value; }
|
set { ViewState["DtAltas"] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private DataTable dtConceptos
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (ViewState["dtConceptos"] == null) { return null; }
|
||||||
|
else { return (DataTable)ViewState["dtConceptos"]; }
|
||||||
|
}
|
||||||
|
|
||||||
|
set { ViewState["dtConceptos"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private DataTable dtempleadosConceptos
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (ViewState["dtempleadosConceptos"] == null) { return null; }
|
||||||
|
else { return (DataTable)ViewState["dtempleadosConceptos"]; }
|
||||||
|
}
|
||||||
|
|
||||||
|
set { ViewState["dtempleadosConceptos"] = value; }
|
||||||
|
}
|
||||||
|
private DataTable dtempleados
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (ViewState["dtempleados"] == null) { return null; }
|
||||||
|
else { return (DataTable)ViewState["dtempleados"]; }
|
||||||
|
}
|
||||||
|
|
||||||
|
set { ViewState["dtempleados"] = value; }
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -154,6 +187,7 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
}
|
}
|
||||||
protected void LnkConcepto_Click(object sender, EventArgs e)
|
protected void LnkConcepto_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Alert("x");
|
||||||
//SRCveConcepto = ((LinkButton)sender).CommandArgument.ToEntero();
|
//SRCveConcepto = ((LinkButton)sender).CommandArgument.ToEntero();
|
||||||
//SRTipoConcepto = ((LinkButton)sender).CommandArgument;
|
//SRTipoConcepto = ((LinkButton)sender).CommandArgument;
|
||||||
//#region carga conceptos
|
//#region carga conceptos
|
||||||
@@ -297,8 +331,31 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
|
|
||||||
protected void LnkTimbrar_Click(object sender, EventArgs e)
|
protected void LnkTimbrar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Alert("El finiquito se ha timbrado satisfactoriamente");
|
int CvePeriodo = CvePeriodoFiniquito;
|
||||||
LnkTimbrar.Visible = false;
|
|
||||||
|
string[] getcolumnas = new string[] { "CvePersonal", "CveMetodoPago", "CveNomina", "Total", "SalarioDiario", "SalarioDiarioIMSS", "SalarioDiarioIntegrado", "DiasLaborados", "DiasFaltados", "DiasVacaciones", "DiasIncapacidad" };
|
||||||
|
|
||||||
|
DataTable dtr = dtempleados.FiltraParametros(string.Format("(CvePersonal={0} OR {0}=-1) AND CvePersonal > 0 AND NomAutorizado =0", CvePersonal), "", getcolumnas);
|
||||||
|
int CveNomina = dtr.Rows[0]["CveNomina"].ToString().ToEntero();
|
||||||
|
LogicNominas lognom = new LogicNominas();
|
||||||
|
|
||||||
|
string Msg = lognom.TimbrarNomina(CveNomina, CvePersonal, CvePeriodo, UsuarioActual);
|
||||||
|
if (Msg != null && Msg.Length > 0)
|
||||||
|
{ Alert(Msg, TipoMensaje.MsgAdvertencia); }
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ClsNominas ObjPeriodo = new ClsNominas();
|
||||||
|
ObjPeriodo.CambiaEstatusPeriodo(CvePeriodo, (int)enumNominasEstatus.Timbrada, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
ObjPeriodo.Dispose();
|
||||||
|
//Alert("Se ha timbrado correctamente");
|
||||||
|
|
||||||
|
Alert("El finiquito se ha timbrado satisfactoriamente");
|
||||||
|
LnkTimbrar.Visible = false;
|
||||||
|
loadsobrerecibo(); UPDatos.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkFormatoRenuncia_Click(object sender, EventArgs e)
|
protected void LnkFormatoRenuncia_Click(object sender, EventArgs e)
|
||||||
@@ -461,6 +518,10 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
continuar = onom.GetFiniquitosPersonal(CvePersonal, UsuarioActual.CveEmpresa);
|
continuar = onom.GetFiniquitosPersonal(CvePersonal, UsuarioActual.CveEmpresa);
|
||||||
}
|
}
|
||||||
if (continuar)
|
if (continuar)
|
||||||
|
{
|
||||||
|
continuar = onom.GetFiniquitosPersonal(CvePersonal, UsuarioActual.CveEmpresa);
|
||||||
|
}
|
||||||
|
if (continuar)
|
||||||
{
|
{
|
||||||
ObjPersonal.Commit();
|
ObjPersonal.Commit();
|
||||||
}
|
}
|
||||||
@@ -472,31 +533,20 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
UPDatos.Update();
|
||||||
}
|
}
|
||||||
public void loadsobrerecibo()
|
public void loadsobrerecibo()
|
||||||
{
|
{
|
||||||
List<NConcepto> finordin = null;
|
List<NConcepto> finordin = null;
|
||||||
List<NConcepto> finindem = null;
|
List<NConcepto> finindem = null;
|
||||||
|
/*
|
||||||
DataTable dtConceptos = null;
|
DataTable dtConceptos = null;
|
||||||
DataTable dtempleadosConceptos = null;
|
DataTable dtempleadosConceptos = null;
|
||||||
DataTable dtempleados = null;
|
DataTable dtempleados = null;
|
||||||
|
|
||||||
|
*/
|
||||||
using (ClsNominas objnom = new ClsNominas())
|
using (ClsNominas objnom = new ClsNominas())
|
||||||
{
|
{
|
||||||
if (objnom.GetNominaEmpleado(-1, -1, -1, CvePeriodoFiniquito, UsuarioActual.CveEmpresa, 1, 3, CvePersonal) && objnom.DTSetResultados.Tables.Count > 1)
|
|
||||||
{
|
|
||||||
dtempleados = objnom.DTSetResultados.Tables[3];
|
|
||||||
dtempleadosConceptos = objnom.DTSetResultados.Tables[4];
|
|
||||||
dtConceptos = objnom.DTSetResultados.Tables[0];
|
|
||||||
}
|
|
||||||
if (dtConceptos != null && dtempleadosConceptos != null && dtempleados != null)
|
|
||||||
{
|
|
||||||
finordin = cargasobrericiboconceptos(dtConceptos, dtempleadosConceptos, dtempleados);
|
|
||||||
}
|
|
||||||
dtempleadosConceptos = null;
|
|
||||||
dtempleados = null;
|
|
||||||
if (objnom.GetNominaEmpleado(-1, -1, -1, CvePeriodoIndemnizacion, UsuarioActual.CveEmpresa, 1, 3, CvePersonal) && objnom.DTSetResultados.Tables.Count > 1)
|
if (objnom.GetNominaEmpleado(-1, -1, -1, CvePeriodoIndemnizacion, UsuarioActual.CveEmpresa, 1, 3, CvePersonal) && objnom.DTSetResultados.Tables.Count > 1)
|
||||||
{
|
{
|
||||||
dtempleados = objnom.DTSetResultados.Tables[3];
|
dtempleados = objnom.DTSetResultados.Tables[3];
|
||||||
@@ -507,23 +557,183 @@ public partial class Nomina_Finiquito : ClsPaginas
|
|||||||
{
|
{
|
||||||
finindem = cargasobrericiboconceptos(dtConceptos, dtempleadosConceptos, dtempleados);
|
finindem = cargasobrericiboconceptos(dtConceptos, dtempleadosConceptos, dtempleados);
|
||||||
}
|
}
|
||||||
|
dtempleadosConceptos = null;
|
||||||
|
dtempleados = null;
|
||||||
|
if (objnom.GetNominaEmpleado(-1, -1, -1, CvePeriodoFiniquito, UsuarioActual.CveEmpresa, 1, 3, CvePersonal) && objnom.DTSetResultados.Tables.Count > 1)
|
||||||
|
{
|
||||||
|
dtempleados = objnom.DTSetResultados.Tables[3];
|
||||||
|
LnkAutorizar.Visible = (dtempleados.COUNT("CvePersonal", "NomAutorizado =0") > 0);
|
||||||
|
LnkGuardarDatos.Enabled = LnkAutorizar.Visible;
|
||||||
|
LnkTimbrar.Visible = !(LnkAutorizar.Visible) && (dtempleados.COUNT("CvePersonal", "SeTimbro=0") > 0);
|
||||||
|
UpAcciones.Update();
|
||||||
|
dtempleadosConceptos = objnom.DTSetResultados.Tables[4];
|
||||||
|
dtConceptos = objnom.DTSetResultados.Tables[0];
|
||||||
|
}
|
||||||
|
if (dtConceptos != null && dtempleadosConceptos != null && dtempleados != null)
|
||||||
|
{
|
||||||
|
finordin = cargasobrericiboconceptos(dtConceptos, dtempleadosConceptos, dtempleados);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
GvFinOrdinario.DataSource = finordin;
|
GvFinOrdinario.DataSource = finordin;
|
||||||
GVFinIndemnizacion.DataSource = finindem;
|
GVFinIndemnizacion.DataSource = finindem;
|
||||||
GvFinOrdinario.DataBind();
|
GvFinOrdinario.DataBind();
|
||||||
GVFinIndemnizacion.DataBind();
|
GVFinIndemnizacion.DataBind();
|
||||||
LnkGuardarDatos.Enabled = false;
|
//LnkGuardarDatos.Enabled = false;
|
||||||
LnkGuardarDatos.CssClass = "btn btn-default";
|
if (!(LnkGuardarDatos.Enabled))
|
||||||
LnkGuardarDatos.ToolTip = "el finiquito ha sido capturado.";
|
{
|
||||||
|
|
||||||
|
LnkGuardarDatos.CssClass = "btn btn-default";
|
||||||
|
LnkGuardarDatos.ToolTip = "el finiquito ha sido capturado.";
|
||||||
|
}
|
||||||
LnkAutorizar.Visible = true;
|
LnkAutorizar.Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkAutorizar_Click(object sender, EventArgs e)
|
protected void LnkAutorizar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
autorizarNomina(CvePersonal);
|
||||||
|
UPDatos.Update();
|
||||||
|
//Alert("El finiquito se ha autorizado satisfactoriamente.");
|
||||||
|
//LnkAutorizar.Visible = false;
|
||||||
|
//LnkTimbrar.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
Alert("El finiquito se ha autorizado satisfactoriamente.");
|
|
||||||
LnkAutorizar.Visible = false;
|
private void autorizarNomina(int FiltroCvePersonal)
|
||||||
LnkTimbrar.Visible = true;
|
{
|
||||||
|
|
||||||
|
bool continuar = true;
|
||||||
|
string[] getcolumnas = new string[] { "CvePersonal", "CveMetodoPago", "SumaPercepciones", "Total", "SalarioDiario", "SalarioDiarioIMSS", "SalarioDiarioIntegrado", "DiasLaborados", "DiasFaltados", "DiasVacaciones", "DiasIncapacidad" };
|
||||||
|
|
||||||
|
DataTable dtr = dtempleados.FiltraParametros(string.Format("(CvePersonal={0} OR {0}=-1) AND CvePersonal > 0 AND NomAutorizado =0", FiltroCvePersonal), "", getcolumnas);
|
||||||
|
DataTable dtconp = null;
|
||||||
|
int CvePeriodoSeleccionado = CvePeriodoFiniquito;//cambiar reparar
|
||||||
|
#region PropNomina
|
||||||
|
int CvePersonal = 0;
|
||||||
|
int CveNomina = 0;
|
||||||
|
int CveMetodoPago = 0;
|
||||||
|
double SubTotal = 0;
|
||||||
|
double Total = 0;
|
||||||
|
int CveMoneda = 1;
|
||||||
|
#endregion
|
||||||
|
#region PropNominaDetalle
|
||||||
|
int CveConcepto = 0;
|
||||||
|
decimal ImporteConcepto = 0, ImporteGravadoConcepto = 0, ImporteExentoConcepto = 0, ImporteValor = 0;
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
using (ClsNominas objNomina = new ClsNominas())
|
||||||
|
{
|
||||||
|
objNomina.IniciaTransacSQL();
|
||||||
|
foreach (DataRow rtemp in dtr.Rows)
|
||||||
|
{
|
||||||
|
CveNomina = 0;
|
||||||
|
CvePersonal = rtemp["CvePersonal"].ToString().ToEntero();
|
||||||
|
CveMetodoPago = rtemp["CveMetodoPago"].ToString().ToEntero();
|
||||||
|
SubTotal = rtemp["SumaPercepciones"].ToString().ToDouble();
|
||||||
|
Total = rtemp["Total"].ToString().ToDouble();
|
||||||
|
if (CvePersonal > 0)
|
||||||
|
{
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
if (objNomina.GetNom_Nominas(-1, CvePersonal, CvePeriodoSeleccionado, -1, UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
|
||||||
|
if (objNomina.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
CveNomina = objNomina.CveNomina;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (objNomina.AddNom_Nominas(-1, 1, CvePersonal, CvePeriodoSeleccionado, SubTotal, 0, 0, Total, CveMoneda, 1, CveMetodoPago, DateTime.Now, "Deducciones nómina",
|
||||||
|
"", "", "", "", 0, 0, 0, new DateTime(), new DateTime(), new DateTime(), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
CveNomina = objNomina.CveNomina;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
continuar = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (CveNomina == 0)
|
||||||
|
{
|
||||||
|
continuar = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
dtconp = dtempleadosConceptos.FiltraParametros(string.Format("CvePersonal={0} AND Importe<>0", CvePersonal));
|
||||||
|
foreach (DataRow rcon in dtconp.Rows)
|
||||||
|
{
|
||||||
|
|
||||||
|
CveConcepto = rcon["CveConcepto"].ToString().ToEntero();
|
||||||
|
ImporteConcepto = rcon["Importe"].ToString().ToDecimal();
|
||||||
|
ImporteGravadoConcepto = rcon["ImporteGravado"].ToString().ToDecimal();
|
||||||
|
ImporteExentoConcepto = ImporteConcepto - ImporteGravadoConcepto;
|
||||||
|
ImporteValor = rcon["Valor"].ToString().ToDecimal();
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!objNomina.AddUPNom_NominasDetalles(CveNomina, CvePeriodoSeleccionado, CvePersonal, CveConcepto, ImporteConcepto, ImporteGravadoConcepto, ImporteExentoConcepto, ImporteValor, UsuarioActual.CveUsuario))
|
||||||
|
{
|
||||||
|
continuar = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
decimal SalarioDiario = rtemp["SalarioDiario"].ToString().ToEntero();
|
||||||
|
decimal SalarioDiarioIMSS = rtemp["SalarioDiarioIMSS"].ToString().ToEntero();
|
||||||
|
decimal SalarioDiarioIntegrado = rtemp["SalarioDiarioIntegrado"].ToString().ToEntero();
|
||||||
|
int DiasLaborados = rtemp["DiasLaborados"].ToString().ToEntero();
|
||||||
|
int DiasFaltados = rtemp["DiasFaltados"].ToString().ToEntero();
|
||||||
|
int DiasVacaciones = rtemp["DiasVacaciones"].ToString().ToEntero();
|
||||||
|
int DiasIncapacidad = rtemp["DiasIncapacidad"].ToString().ToEntero();
|
||||||
|
continuar = objNomina.PA_Nom_NominasAutorizarUP(CvePersonal, CvePeriodoSeleccionado, SalarioDiario, SalarioDiarioIMSS, SalarioDiarioIntegrado, 0, 0, Total, SubTotal, DiasLaborados, DiasFaltados, DiasVacaciones, DiasIncapacidad);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
continuar = objNomina.AutorizaNom_Nominas(-1, CvePeriodoSeleccionado, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
objNomina.Commit();
|
||||||
|
LnkAutorizar.Visible = false;
|
||||||
|
LnkTimbrar.Visible = true;
|
||||||
|
|
||||||
|
LnkGuardarDatos.Enabled = false;
|
||||||
|
|
||||||
|
LnkGuardarDatos.CssClass = "btn btn-default";
|
||||||
|
LnkGuardarDatos.ToolTip = "el finiquito ha sido capturado.";
|
||||||
|
Alert("La nomina se autorizó correctamente.");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
objNomina.RollBack();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (dtr != null)
|
||||||
|
{
|
||||||
|
dtr.Dispose();
|
||||||
|
|
||||||
|
}
|
||||||
|
if (dtconp != null)
|
||||||
|
{
|
||||||
|
dtconp.Dispose();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2406,6 +2406,102 @@ Partial Class Nomina_Nomina
|
|||||||
|
|
||||||
EnvioMasivoCorreo()
|
EnvioMasivoCorreo()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub CrearLayout(DTNomina As DataTable)
|
||||||
|
|
||||||
|
Dim sb As New StringBuilder
|
||||||
|
Dim SbErrores As New StringBuilder
|
||||||
|
Dim ErroresValidaciones As Boolean = False
|
||||||
|
|
||||||
|
|
||||||
|
SbErrores.AppendLine("Se detectaron los siguientes errores en la generación del layout")
|
||||||
|
|
||||||
|
For Each dRow As DataRow In DTNomina.Rows
|
||||||
|
|
||||||
|
Dim RFC As String = dRow("RFC").ToString()
|
||||||
|
Dim Nombre As String = dRow("Nombre").ToString()
|
||||||
|
Dim BancoNumCuenta As String = dRow("BancoNumCuenta").ToString()
|
||||||
|
Dim Importe As Decimal = dRow("Importe").ToString().ToDecimal
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If RFC.Trim().Length = 0 Then
|
||||||
|
SbErrores.AppendLine($"El RFC es requerido del empleado {Nombre}<br/>")
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim Coincidencia As Match = System.Text.RegularExpressions.Regex.Match(RFC, "/^([A-Z,Ñ,&]{3,4}([0-9]{2})(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0-1])[A-Z|\d]{3})$/")
|
||||||
|
If Not Coincidencia.Success Then
|
||||||
|
SbErrores.AppendLine($"El RFC {RFC} del empleado {Nombre} no es valido <br/>")
|
||||||
|
ErroresValidaciones = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If BancoNumCuenta.Trim().Length <> 10 Then
|
||||||
|
SbErrores.AppendLine($"Empleado {Nombre} numero de cuenta incorrecto, la cuenta debe de tener 10 caracteres<br/>") 'Bancomer 10 caracteres
|
||||||
|
ErroresValidaciones = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If Importe <= 0 Then
|
||||||
|
SbErrores.AppendLine($"Empleado {Nombre} el importe debe de ser mayor a 0 importe {Importe}") 'importe mayot a 0
|
||||||
|
ErroresValidaciones = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
|
ErroresValidaciones = False
|
||||||
|
|
||||||
|
If Not ErroresValidaciones Then
|
||||||
|
|
||||||
|
Dim Count As Integer = 1
|
||||||
|
For Each dRow As DataRow In DTNomina.Rows
|
||||||
|
|
||||||
|
Dim SbLinea As New StringBuilder
|
||||||
|
|
||||||
|
Dim RFC As String = dRow("RFC").ToString()
|
||||||
|
Dim Nombre As String = dRow("Nombre").ToString()
|
||||||
|
Dim BancoNumCuenta As String = dRow("BancoNumCuenta").ToString()
|
||||||
|
Dim Importe As Decimal = dRow("Importe").ToString().ToDecimal.RoundSQL(2)
|
||||||
|
|
||||||
|
SbLinea.Append(Count.ToString("000000000"))
|
||||||
|
SbLinea.Append(RFC.Trim().PadRight(16))
|
||||||
|
SbLinea.Append("03")
|
||||||
|
SbLinea.Append(BancoNumCuenta.Trim().PadRight(20))
|
||||||
|
SbLinea.Append(Importe.ToString("0000000000000.00").Replace(".", ""))
|
||||||
|
|
||||||
|
|
||||||
|
If Nombre.Trim().Length > 40 Then
|
||||||
|
Nombre = Nombre.Substring(0, 40)
|
||||||
|
End If
|
||||||
|
|
||||||
|
SbLinea.Append(Nombre.Trim().PadRight(40))
|
||||||
|
|
||||||
|
SbLinea.Append("012")
|
||||||
|
SbLinea.Append("000")
|
||||||
|
|
||||||
|
sb.AppendLine(SbLinea.ToString())
|
||||||
|
|
||||||
|
|
||||||
|
Count = Count + 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
Response.Clear()
|
||||||
|
Response.ClearHeaders()
|
||||||
|
Response.AppendHeader("Content-Length", sb.ToString())
|
||||||
|
Response.ContentType = "text/plain"
|
||||||
|
Response.AppendHeader("Content-Disposition", $"attachment;filename=""Nomina{Now.ToString("yyyyMMddhhmmss").ToString()}.txt""")
|
||||||
|
Response.Write(sb.ToString())
|
||||||
|
Response.End()
|
||||||
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
Alert(SbErrores.ToString(), TipoMensaje.MsgAdvertencia)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub EnvioMasivoCorreo()
|
Private Sub EnvioMasivoCorreo()
|
||||||
|
|||||||
@@ -149,6 +149,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkTimbrarTodos" Visible="false" OnClick="LnkTimbrarTodos_Click" runat="server"><i class="fa fa-bell"></i> Timbrar todos</asp:LinkButton>
|
<asp:LinkButton ID="LnkTimbrarTodos" Visible="false" OnClick="LnkTimbrarTodos_Click" runat="server"><i class="fa fa-bell"></i> Timbrar todos</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkConceptoEmpleado" OnClick="LnkConceptoEmpleado_Click" runat="server" ><i class="fa fa-plus"></i> Empleado concepto</asp:LinkButton>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkCargaAsistenciaMasiva" OnClick="LnkCargaAsistenciaMasiva_Click" runat="server"><i class="fa fa-check" aria-hidden="true"></i>Carga masiva de asistencia</asp:LinkButton>
|
<asp:LinkButton ID="LnkCargaAsistenciaMasiva" OnClick="LnkCargaAsistenciaMasiva_Click" runat="server"><i class="fa fa-check" aria-hidden="true"></i>Carga masiva de asistencia</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
@@ -462,7 +465,7 @@
|
|||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<div style="width: 100px; text-align: right; white-space: nowrap; padding-right: 10px;">
|
<div style="width: 100px; text-align: right; white-space: nowrap; padding-right: 10px;">
|
||||||
<asp:HyperLink ID="HypXml" Visible="false" NavigateUrl="#" runat="server">XML</asp:HyperLink>
|
<asp:HyperLink ID="HypXml" Visible="false" NavigateUrl="#" runat="server">XML</asp:HyperLink>
|
||||||
<asp:HyperLink ID="HypPDF" Visible="false" NavigateUrl="#" runat="server"><i class="fa fa-ad-pdf"></i></asp:HyperLink>
|
<asp:HyperLink ID="HypPDF" CssClass="btn btn-circle btn-sm blue mysmallbtn" Visible="false" NavigateUrl="#" runat="server"><i class="fa fa-ad-pdf"></i></asp:HyperLink>
|
||||||
<asp:LinkButton runat="server" ID="LnkTimbrar" CssClass="btn btn-circle btn-sm blue mysmallbtn" Text="<i class='fa fa-bell'></i>" OnClick="LnkTimbrar_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Timbrar?" data-btn-ok-label="si" />
|
<asp:LinkButton runat="server" ID="LnkTimbrar" CssClass="btn btn-circle btn-sm blue mysmallbtn" Text="<i class='fa fa-bell'></i>" OnClick="LnkTimbrar_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea Timbrar?" data-btn-ok-label="si" />
|
||||||
<asp:LinkButton runat="server" ID="ImgDelete" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='icon-trash'></i>" OnClick="ImgDelete_Click" CommandArgument='<%# Eval("CveNomina") %>' Visible='<%# (Eval("CveNomina").ToString() != "" && Eval("SeTimbro").ToString() == "False"? true :false)%>' data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar la nómina?" data-btn-ok-label="si" />
|
<asp:LinkButton runat="server" ID="ImgDelete" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='icon-trash'></i>" OnClick="ImgDelete_Click" CommandArgument='<%# Eval("CveNomina") %>' Visible='<%# (Eval("CveNomina").ToString() != "" && Eval("SeTimbro").ToString() == "False"? true :false)%>' data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar la nómina?" data-btn-ok-label="si" />
|
||||||
<asp:LinkButton runat="server" ID="LnkCancelar" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='fa fa-ban'></i>" OnClick="LnkCancelar_Click" CommandArgument='<%# Eval("CveNomina") %>' Visible='<%# (Eval("CveNomina").ToString() != "" && PermisoCancelarEmitido && Eval("SeTimbro").ToString() == "True"? true :false)%>' data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea cancelar la nómina?" data-btn-ok-label="si" />
|
<asp:LinkButton runat="server" ID="LnkCancelar" CssClass="btn btn-circle btn-sm red mysmallbtn" Text="<i class='fa fa-ban'></i>" OnClick="LnkCancelar_Click" CommandArgument='<%# Eval("CveNomina") %>' Visible='<%# (Eval("CveNomina").ToString() != "" && PermisoCancelarEmitido && Eval("SeTimbro").ToString() == "True"? true :false)%>' data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea cancelar la nómina?" data-btn-ok-label="si" />
|
||||||
@@ -1378,6 +1381,12 @@
|
|||||||
<asp:Label ID="LblConceptoMod" runat="server" Text=""></asp:Label></h4>
|
<asp:Label ID="LblConceptoMod" runat="server" Text=""></asp:Label></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
<div runat="server" Visible="<%# (SRCvePersonal <=0) %>" class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlmcPersonal" Enabled="false" Text="Empleado"></asp:Label>
|
||||||
|
<asp:DropDownList ID="DdlmcPersonal" DataTextField="Nombre" DataValueField="CvePersonal" runat="server" Width="100%" AppendDataBoundItems="true" CssClass="form-control select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlmcConceptos" Enabled="false" Text="Concepto"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlmcConceptos" Enabled="false" Text="Concepto"></asp:Label>
|
||||||
<asp:DropDownList ID="DdlmcConceptos" CssClass="select2me form-control" Width="100%" DataValueField="CveConcepto" DataTextField="CodigoConcepto" OnSelectedIndexChanged="DdlmcConceptos_SelectedIndexChanged" AutoPostBack=" true" runat="server">
|
<asp:DropDownList ID="DdlmcConceptos" CssClass="select2me form-control" Width="100%" DataValueField="CveConcepto" DataTextField="CodigoConcepto" OnSelectedIndexChanged="DdlmcConceptos_SelectedIndexChanged" AutoPostBack=" true" runat="server">
|
||||||
@@ -1891,6 +1900,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th colspan="2">Salario</th>
|
<th colspan="2">Salario</th>
|
||||||
|
<th colspan="2">Días</th>
|
||||||
<th colspan="2">Cuota Fija</th>
|
<th colspan="2">Cuota Fija</th>
|
||||||
<th colspan="2">Cuota Excedente</th>
|
<th colspan="2">Cuota Excedente</th>
|
||||||
<th colspan="2">Prestaciones en Dinero</th>
|
<th colspan="2">Prestaciones en Dinero</th>
|
||||||
@@ -1920,6 +1930,16 @@
|
|||||||
<asp:Label runat="server" Text='<%# Eval("SalarioSIG","{0:N2}")%>'> </asp:Label></td>
|
<asp:Label runat="server" Text='<%# Eval("SalarioSIG","{0:N2}")%>'> </asp:Label></td>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="SUA">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" Text='<%# Eval("DiasMes","{0:N0}")%>'> </asp:Label></td>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="SIG">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" Text='<%# Eval("DiasAsistio","{0:N0}")%>'> </asp:Label></td>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="SUA">
|
<asp:TemplateField HeaderText="SUA">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSUA","{0:N2}")%>'> </asp:Label></td>
|
<asp:Label runat="server" Text='<%# Eval("CuotaFijaSUA","{0:N2}")%>'> </asp:Label></td>
|
||||||
|
|||||||
@@ -370,9 +370,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
DataRow drow = objnom.DtResultados.Rows[0];
|
DataRow drow = objnom.DtResultados.Rows[0];
|
||||||
int Estatus = drow["Estatus"].ToString().ToEntero();
|
int Estatus = drow["Estatus"].ToString().ToEntero();
|
||||||
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
|
int CvePrePolizaProvision = drow["CvePrePolizaProvision"].ToString().ToEntero();
|
||||||
|
LnkConceptoEmpleado.Visible = true;
|
||||||
LnkAutorizar.Visible = (Estatus == 1);
|
LnkAutorizar.Visible = (Estatus == 1);
|
||||||
LnkRegistrarProvision.Visible = (Estatus > 2);
|
LnkRegistrarProvision.Visible = (Estatus > 2) && CvePrePolizaProvision<0;
|
||||||
|
LnkConceptoEmpleado.Visible = (Estatus < 2);
|
||||||
|
LnkCargaAsistenciaMasiva.Visible = (Estatus < 2);
|
||||||
|
LnkModalPlantillaNomina.Visible = (Estatus < 2);
|
||||||
LnkTimbrarTodos.Visible = (Estatus > 1);
|
LnkTimbrarTodos.Visible = (Estatus > 1);
|
||||||
|
|
||||||
LnkProvisionNomina.Visible = CvePrePolizaProvision > 0;
|
LnkProvisionNomina.Visible = CvePrePolizaProvision > 0;
|
||||||
@@ -393,6 +396,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
continuar = true;
|
continuar = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LnkTimbrarTodos.Visible = dtempleados.Rows.Count >0 && dtempleados.COUNT("CvePersonal", "SeTimbro=0 AND CvePersonal >0")>0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -949,7 +953,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
|
|
||||||
e.Row.FCHyperLink("HypPDF").Attributes.Add("onclick", string.Format("GETPDF({0},{1})", -1, CvePeriodoSeleccionado));
|
e.Row.FCHyperLink("HypPDF").Attributes.Add("onclick", string.Format("GETPDF({0},{1})", -1, CvePeriodoSeleccionado));
|
||||||
e.Row.FindControl("HypPDF").Visible = true;
|
e.Row.FindControl("HypPDF").Visible = false;
|
||||||
e.Row.CssClass = "SubTotales";
|
e.Row.CssClass = "SubTotales";
|
||||||
}
|
}
|
||||||
e.Row.FindControl("LnkSobreRecibo").Visible = false;
|
e.Row.FindControl("LnkSobreRecibo").Visible = false;
|
||||||
@@ -1062,7 +1066,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
string RFCEmisor = UsuarioActual.Empresa.RFC;
|
string RFCEmisor = UsuarioActual.Empresa.RFC;
|
||||||
|
|
||||||
|
|
||||||
if (ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, RFCEmisor,4))
|
if (ObjTimbrado.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, Total, RFCReceptor, RFCEmisor, 4))
|
||||||
{
|
{
|
||||||
Nom.UpdateEstatusNomNominas(2, UsuarioActual.Empresa.CvePAC, "", "", ("01/01/2000").ToDate(), CveNomina, 0, 0, 0, 0, 0);
|
Nom.UpdateEstatusNomNominas(2, UsuarioActual.Empresa.CvePAC, "", "", ("01/01/2000").ToDate(), CveNomina, 0, 0, 0, 0, 0);
|
||||||
|
|
||||||
@@ -1553,6 +1557,43 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
UPpanelModalUpConcepto.Update();
|
UPpanelModalUpConcepto.Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void LnkConceptoEmpleado_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
SRCveConcepto = -1;
|
||||||
|
SRTipoConcepto = "P";
|
||||||
|
SRCvePersonal = -1;
|
||||||
|
|
||||||
|
using (ClsRH ObjPersonal = new ClsRH())
|
||||||
|
{
|
||||||
|
if (ObjPersonal.GetPersonal(-1, UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
DdlmcPersonal.DataSource = ObjPersonal.DtResultados;
|
||||||
|
DdlmcPersonal.DataBind();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#region carga conceptos
|
||||||
|
DataTable dtCon;
|
||||||
|
|
||||||
|
dtCon = dtConceptos.FiltraParametros("Tipo IN('P','D') AND EsPadre = 1 ").Copy();
|
||||||
|
dtCon.Columns.Add(new DataColumn("CodigoConcepto"));
|
||||||
|
foreach (DataRow trow in dtCon.Rows)
|
||||||
|
{
|
||||||
|
trow["CodigoConcepto"] = string.Format("{0} - {1}", trow["Codigo"], trow["Concepto"]);
|
||||||
|
}
|
||||||
|
dtCon.AcceptChanges();
|
||||||
|
#endregion
|
||||||
|
DdlmcConceptos.DataSource = dtCon;
|
||||||
|
DdlmcConceptos.DataBind();
|
||||||
|
if (SRCveConcepto > 0)
|
||||||
|
{
|
||||||
|
DdlmcConceptos.SelectedValueExist(SRCveConcepto);
|
||||||
|
}
|
||||||
|
|
||||||
|
DdlmcConceptos_SelectedIndexChanged(DdlmcConceptos, null);
|
||||||
|
RegistraScript(string.Format("$('#ModalUpConcepto').on('shown.bs.modal', function () {{$('#{0}').trigger('focus')}});$('#ModalUpConcepto').modal();", TxtmcImporte.ClientID));
|
||||||
|
UPpanelModalUpConcepto.Update();
|
||||||
|
}
|
||||||
protected void DdlmcConceptos_SelectedIndexChanged(object sender, EventArgs e)
|
protected void DdlmcConceptos_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int CvePersonal = SRCvePersonal;
|
int CvePersonal = SRCvePersonal;
|
||||||
@@ -1587,8 +1628,12 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
int CveMoneda = 1;
|
int CveMoneda = 1;
|
||||||
int CveMetodoPago = 0;
|
int CveMetodoPago = 0;
|
||||||
int CvePersonal = SRCvePersonal;
|
int CvePersonal = SRCvePersonal;
|
||||||
|
if (CvePersonal <= 0)
|
||||||
|
{
|
||||||
|
CvePersonal = DdlmcPersonal.SelectedValue.ToEntero();
|
||||||
|
}
|
||||||
int CveConcepto = DdlmcConceptos.SelectedValue.ToEntero();
|
int CveConcepto = DdlmcConceptos.SelectedValue.ToEntero();
|
||||||
if (CveConcepto > 0)
|
if (CveConcepto > 0 && CvePersonal > 0)
|
||||||
{
|
{
|
||||||
decimal ImporteConcepto = TxtmcImporte.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
decimal ImporteConcepto = TxtmcImporte.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
||||||
decimal ImporteGravadoConcepto = TxtmcImporteGrabado.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
decimal ImporteGravadoConcepto = TxtmcImporteGrabado.Text.Replace("$", "").Replace(",", "").ToDecimal();
|
||||||
@@ -1655,8 +1700,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Alert("Debe seleccionar un concepto.", TipoMensaje.MsgAdvertencia);
|
if (CveConcepto > 0)
|
||||||
|
{
|
||||||
|
Alert("Debe seleccionar un empleado.", TipoMensaje.MsgAdvertencia);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Alert("Debe seleccionar un concepto.", TipoMensaje.MsgAdvertencia);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -4783,27 +4834,30 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
range.Value = "Salario";
|
range.Value = "Salario";
|
||||||
range = libro.Range(Fila, 4, Fila, 5);
|
range = libro.Range(Fila, 4, Fila, 5);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Cuota Fija";
|
range.Value = "Días";
|
||||||
range = libro.Range(Fila, 6, Fila, 7);
|
range = libro.Range(Fila, 6, Fila, 7);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Cuota Excedente";
|
range.Value = "Cuota Fija";
|
||||||
range = libro.Range(Fila, 8, Fila, 9);
|
range = libro.Range(Fila, 8, Fila, 9);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Prestaciones en Dinero";
|
range.Value = "Cuota Excedente";
|
||||||
range = libro.Range(Fila, 10, Fila, 11);
|
range = libro.Range(Fila, 10, Fila, 11);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Gastos Medicos";
|
range.Value = "Prestaciones en Dinero";
|
||||||
range = libro.Range(Fila, 12, Fila, 13);
|
range = libro.Range(Fila, 12, Fila, 13);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Riesgos de Trabajo";
|
range.Value = "Gastos Medicos";
|
||||||
range = libro.Range(Fila, 14, Fila, 15);
|
range = libro.Range(Fila, 14, Fila, 15);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Invalidez y Vida";
|
range.Value = "Riesgos de Trabajo";
|
||||||
range = libro.Range(Fila, 16, Fila, 17);
|
range = libro.Range(Fila, 16, Fila, 17);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
range.Value = "Guarderia";
|
range.Value = "Invalidez y Vida";
|
||||||
range = libro.Range(Fila, 18, Fila, 19);
|
range = libro.Range(Fila, 18, Fila, 19);
|
||||||
range.Merge();
|
range.Merge();
|
||||||
|
range.Value = "Guarderia";
|
||||||
|
range = libro.Range(Fila, 20, Fila, 21);
|
||||||
|
range.Merge();
|
||||||
range.Value = "Retiro";
|
range.Value = "Retiro";
|
||||||
Fila = Fila + 1;
|
Fila = Fila + 1;
|
||||||
libro.Cell(Fila, 1).Value = "Empleado";
|
libro.Cell(Fila, 1).Value = "Empleado";
|
||||||
@@ -4825,6 +4879,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
libro.Cell(Fila, 17).Value = "SIG";//GuarderiaSIG
|
libro.Cell(Fila, 17).Value = "SIG";//GuarderiaSIG
|
||||||
libro.Cell(Fila, 18).Value = "SUA";//RetiroSUA
|
libro.Cell(Fila, 18).Value = "SUA";//RetiroSUA
|
||||||
libro.Cell(Fila, 19).Value = "SIG";//RetiroSIG
|
libro.Cell(Fila, 19).Value = "SIG";//RetiroSIG
|
||||||
|
libro.Cell(Fila, 20).Value = "SUA";//RetiroSUA
|
||||||
|
libro.Cell(Fila, 21).Value = "SIG";//RetiroSIG
|
||||||
|
|
||||||
|
|
||||||
libro.Cell(1, 1).Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
libro.Cell(1, 1).Style.Font.FontColor = ClosedXML.Excel.XLColor.White;
|
||||||
@@ -4840,22 +4896,24 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
libro.Cell(Fila, 1).Value = erow["CodigoNombreCompleto"];
|
libro.Cell(Fila, 1).Value = erow["CodigoNombreCompleto"];
|
||||||
libro.Cell(Fila, 2).Value = string.Format("{0:N2}", erow["SalarioSUA"]);
|
libro.Cell(Fila, 2).Value = string.Format("{0:N2}", erow["SalarioSUA"]);
|
||||||
libro.Cell(Fila, 3).Value = string.Format("{0:N2}", erow["SalarioSIG"]);
|
libro.Cell(Fila, 3).Value = string.Format("{0:N2}", erow["SalarioSIG"]);
|
||||||
libro.Cell(Fila, 4).Value = string.Format("{0:N2}", erow["CuotaFijaSUA"]);
|
libro.Cell(Fila, 4).Value = string.Format("{0:N2}", erow["DiasMes"]);
|
||||||
libro.Cell(Fila, 5).Value = string.Format("{0:N2}", erow["CuotaFijaSIG"]);
|
libro.Cell(Fila, 5).Value = string.Format("{0:N2}", erow["DiasAsistio"]);
|
||||||
libro.Cell(Fila, 6).Value = string.Format("{0:N2}", erow["CuotaExcedenteSUA"]);
|
libro.Cell(Fila, 6).Value = string.Format("{0:N2}", erow["CuotaFijaSUA"]);
|
||||||
libro.Cell(Fila, 7).Value = string.Format("{0:N2}", erow["CuotaExcedenteSIG"]);
|
libro.Cell(Fila, 7).Value = string.Format("{0:N2}", erow["CuotaFijaSIG"]);
|
||||||
libro.Cell(Fila, 8).Value = string.Format("{0:N2}", erow["PrestacionesDineroSUA"]);
|
libro.Cell(Fila, 8).Value = string.Format("{0:N2}", erow["CuotaExcedenteSUA"]);
|
||||||
libro.Cell(Fila, 9).Value = string.Format("{0:N2}", erow["PrestacionesSIG"]);
|
libro.Cell(Fila, 9).Value = string.Format("{0:N2}", erow["CuotaExcedenteSIG"]);
|
||||||
libro.Cell(Fila, 10).Value = string.Format("{0:N2}", erow["GastosMedPenSUA"]);
|
libro.Cell(Fila, 10).Value = string.Format("{0:N2}", erow["PrestacionesDineroSUA"]);
|
||||||
libro.Cell(Fila, 11).Value = string.Format("{0:N2}", erow["GastosMedicosSIG"]);
|
libro.Cell(Fila, 11).Value = string.Format("{0:N2}", erow["PrestacionesSIG"]);
|
||||||
libro.Cell(Fila, 12).Value = string.Format("{0:N2}", erow["RiesgosdeTrabajoSUA"]);
|
libro.Cell(Fila, 12).Value = string.Format("{0:N2}", erow["GastosMedPenSUA"]);
|
||||||
libro.Cell(Fila, 13).Value = string.Format("{0:N2}", erow["RiesgoTrabajoSIG"]);
|
libro.Cell(Fila, 13).Value = string.Format("{0:N2}", erow["GastosMedicosSIG"]);
|
||||||
libro.Cell(Fila, 14).Value = string.Format("{0:N2}", erow["InvalidezyVidaSUA"]);
|
libro.Cell(Fila, 14).Value = string.Format("{0:N2}", erow["RiesgosdeTrabajoSUA"]);
|
||||||
libro.Cell(Fila, 15).Value = string.Format("{0:N2}", erow["InvalidezyVidaSIG"]);
|
libro.Cell(Fila, 15).Value = string.Format("{0:N2}", erow["RiesgoTrabajoSIG"]);
|
||||||
libro.Cell(Fila, 16).Value = string.Format("{0:N2}", erow["GuarderiaSUA"]);
|
libro.Cell(Fila, 16).Value = string.Format("{0:N2}", erow["InvalidezyVidaSUA"]);
|
||||||
libro.Cell(Fila, 17).Value = string.Format("{0:N2}", erow["GuarderiaSIG"]);
|
libro.Cell(Fila, 17).Value = string.Format("{0:N2}", erow["InvalidezyVidaSIG"]);
|
||||||
libro.Cell(Fila, 18).Value = string.Format("{0:N2}", erow["RetiroSUA"]);
|
libro.Cell(Fila, 18).Value = string.Format("{0:N2}", erow["GuarderiaSUA"]);
|
||||||
libro.Cell(Fila, 19).Value = string.Format("{0:N2}", erow["RetiroSIG"]);
|
libro.Cell(Fila, 19).Value = string.Format("{0:N2}", erow["GuarderiaSIG"]);
|
||||||
|
libro.Cell(Fila, 20).Value = string.Format("{0:N2}", erow["RetiroSUA"]);
|
||||||
|
libro.Cell(Fila, 21).Value = string.Format("{0:N2}", erow["RetiroSIG"]);
|
||||||
}
|
}
|
||||||
//libro.Row(2).SetAutoFilter();
|
//libro.Row(2).SetAutoFilter();
|
||||||
|
|
||||||
@@ -5045,7 +5103,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
List<byte[]> pdfs = new List<byte[]>();
|
List<byte[]> pdfs = new List<byte[]>();
|
||||||
//byte[] pdf2 = new byte[1]; bool notfirst = false;
|
//byte[] pdf2 = new byte[1]; bool notfirst = false;
|
||||||
foreach (DataRow dr in dtempleados.Rows)
|
foreach (DataRow dr in dtempleados.FiltraParametros("", "CveSubProyecto").Rows)
|
||||||
{
|
{
|
||||||
CvePersonal = dr["CvePersonal"].ToString().ToEntero();
|
CvePersonal = dr["CvePersonal"].ToString().ToEntero();
|
||||||
if (CvePersonal > 0)
|
if (CvePersonal > 0)
|
||||||
@@ -5169,7 +5227,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
mimeType = MimeMapping.GetMimeMapping(PathXML);
|
mimeType = MimeMapping.GetMimeMapping(PathXML);
|
||||||
}
|
}
|
||||||
catch (Exception )
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -5197,4 +5255,5 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ public partial class RH_CalculoSBC : ClsPaginas
|
|||||||
|
|
||||||
foreach (GridViewRow item in GVCalculosSBC.Rows)
|
foreach (GridViewRow item in GVCalculosSBC.Rows)
|
||||||
{
|
{
|
||||||
int CvePersonal = item.DataKey("Movtotxt").ToEntero();//,,,
|
int CvePersonal = item.DataKey("CvePersonal").ToEntero();//,,,
|
||||||
double SalarioDiario = item.DataKey("SalarioDiario").ToDouble();
|
double SalarioDiario = item.DataKey("SalarioDiario").ToDouble();
|
||||||
double SDINuevo = item.DataKey("SDINuevo").ToDouble();
|
double SDINuevo = item.DataKey("SDINuevo").ToDouble();
|
||||||
double SalarioDiarioSSNuevo = Math.Round(item.DataKey("SalarioDiarioSSNuevo").ToDouble(),2);
|
double SalarioDiarioSSNuevo = Math.Round(item.DataKey("SalarioDiarioSSNuevo").ToDouble(),2);
|
||||||
|
|||||||
163
RH/Personal.aspx
163
RH/Personal.aspx
@@ -38,11 +38,14 @@
|
|||||||
<asp:LinkButton ID="LbGafete" runat="server" CssClass="" Text="Gafete" />
|
<asp:LinkButton ID="LbGafete" runat="server" CssClass="" Text="Gafete" />
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="Lnkopenaddcuentabancaria" OnClick="Lnkopenaddcuentabancaria_Click" Visible="true" runat="server"> <i class="fa fa-plus"></i> Agregar cuenta bancaria</asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpBuzon" runat="server">
|
<asp:UpdatePanel ID="UpBuzon" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkBuzonDeCalidad" Visible="true" runat="server"> <i class="fa fa-sticky-note"></i> Agregar Buzón de Calidad</asp:LinkButton>
|
<asp:LinkButton ID="LnkBuzonDeCalidad" Visible="true" runat="server"> <i class="fa fa-sticky-note"></i> Agregar buzón de calidad</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -50,7 +53,7 @@
|
|||||||
<asp:UpdatePanel ID="UpSaldoI" runat="server">
|
<asp:UpdatePanel ID="UpSaldoI" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkSaldoI" Visible="true" runat="server"> <i class="fa fa-plus"></i> Carga Saldo Inicial</asp:LinkButton>
|
<asp:LinkButton ID="LnkSaldoI" Visible="true" runat="server"> <i class="fa fa-plus"></i> Carga saldo inicial</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -58,7 +61,7 @@
|
|||||||
<asp:UpdatePanel ID="UpDescargaConsumos" runat="server" Visible="false">
|
<asp:UpdatePanel ID="UpDescargaConsumos" runat="server" Visible="false">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkImprimirPDFConsumo" runat="server" OnClick="LnkImprimirPDFConsumo_Click"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF Consumo</asp:LinkButton>
|
<asp:LinkButton ID="LnkImprimirPDFConsumo" runat="server" OnClick="LnkImprimirPDFConsumo_Click"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF consumo</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
<Triggers>
|
<Triggers>
|
||||||
@@ -69,7 +72,7 @@
|
|||||||
<asp:UpdatePanel ID="UpLnkAddLicencias" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpLnkAddLicencias" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkAddLicencias" runat="server"><i class="fa fa-list-alt"></i> Registrar Licencias</asp:LinkButton>
|
<asp:LinkButton ID="LnkAddLicencias" runat="server"><i class="fa fa-list-alt"></i> Registrar licencias</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -82,10 +85,10 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkCalcularFactor" OnClick="LnkCalcularFactor_Click" runat="server"><i class="fa fa-list-alt"></i> Calcular Factor de integracion</asp:LinkButton>
|
<asp:LinkButton ID="LnkCalcularFactor" OnClick="LnkCalcularFactor_Click" runat="server"><i class="fa fa-list-alt"></i> Calcular factor de integracion</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkModsalario" OnClick="LnkModsalario_Click" runat="server"><i class="fa fa-pencil"></i>Modificar Salario </asp:LinkButton>
|
<asp:LinkButton ID="LnkModsalario" OnClick="LnkModsalario_Click" runat="server"><i class="fa fa-pencil"></i>Modificar salario </asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -755,29 +758,29 @@
|
|||||||
<i class="icon-user-following font-green"></i>
|
<i class="icon-user-following font-green"></i>
|
||||||
<span class="caption-subject bold uppercase">Contable:</span>
|
<span class="caption-subject bold uppercase">Contable:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<asp:Button ID="BtnCargarCuentas" runat="server" ClientIDMode="Static" Text="CargaCuentas" CssClass="help-block errorimput" class="btn btn-success" Style="display: none;" />
|
<asp:Button ID="BtnCargarCuentas" runat="server" ClientIDMode="Static" Text="CargaCuentas" CssClass="help-block errorimput" class="btn btn-success" Style="display: none;" />
|
||||||
<asp:HiddenField ID="HdnCuenta" runat="server" ClientIDMode="Static" Value="0" />
|
<asp:HiddenField ID="HdnCuenta" runat="server" ClientIDMode="Static" Value="0" />
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body form">
|
</div>
|
||||||
<div class="form-group input-iconright">
|
<div class="portlet-body form">
|
||||||
<label for="<%= DdlViaticos.ClientID.ToString()%>">Viáticos:</label>
|
<div class="form-group input-iconright">
|
||||||
<asp:DropDownList Width="100%" ID="DdlViaticos" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="Id" CssClass="form-control input-sm ">
|
<label for="<%= DdlViaticos.ClientID.ToString()%>">Viáticos:</label>
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
<asp:DropDownList Width="100%" ID="DdlViaticos" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="Id" CssClass="form-control input-sm ">
|
||||||
</asp:DropDownList>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
||||||
<i></i>
|
</asp:DropDownList>
|
||||||
|
<i></i>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="form-group input-iconright">
|
|
||||||
<label for="<%= DdlPrestamos.ClientID.ToString()%>">Préstamos:</label>
|
|
||||||
<asp:DropDownList Width="100%" ID="DdlPrestamos" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="Id" CssClass="form-control input-sm ">
|
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group input-iconright">
|
||||||
|
<label for="<%= DdlPrestamos.ClientID.ToString()%>">Préstamos:</label>
|
||||||
|
<asp:DropDownList Width="100%" ID="DdlPrestamos" runat="server" AppendDataBoundItems="true" DataTextField="CtaCodigo" DataValueField="Id" CssClass="form-control input-sm ">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -903,7 +906,7 @@
|
|||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<asp:UpdatePanel ID="UpTitulosCuentasBancos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpTitulosCuentasBancos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<table style="border: 1px solid #D3D3D3; table-layout: fixed;" class="table table-striped table-hover Widthall">
|
<%-- <table style="border: 1px solid #D3D3D3; table-layout: fixed;" class="table table-striped table-hover Widthall">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="Titulos">
|
<tr class="Titulos">
|
||||||
<th width="7%">
|
<th width="7%">
|
||||||
@@ -963,26 +966,18 @@
|
|||||||
<th width="7%">
|
<th width="7%">
|
||||||
<asp:LinkButton ID="LbMoneda" runat="server" CausesValidation="false" Text="" OnClick="LbOrden_Click" CommandArgument="Moneda0;0">
|
<asp:LinkButton ID="LbMoneda" runat="server" CausesValidation="false" Text="" OnClick="LbOrden_Click" CommandArgument="Moneda0;0">
|
||||||
Moneda
|
Moneda
|
||||||
|
|
||||||
<asp:Literal ID="ImgMoneda0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
<asp:Literal ID="ImgMoneda0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
||||||
</asp:LinkButton></th>
|
</asp:LinkButton></th>
|
||||||
<th id="THEstatus" runat="server" style="width: 7%;">
|
<th id="THEstatus" runat="server" style="width: 7%;">
|
||||||
<asp:LinkButton ID="LbEstatusPE" runat="server" CausesValidation="false" Text="Estatus Layout" OnClick="LbOrden_Click" CommandArgument="Estatus"></asp:LinkButton> <asp:ImageButton ID="ImgEstatusPE" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
<asp:LinkButton ID="LbEstatusPE" runat="server" CausesValidation="false" Text="Estatus Layout" OnClick="LbOrden_Click" CommandArgument="Estatus"></asp:LinkButton> <asp:ImageButton ID="ImgEstatusPE" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
||||||
<th width="7%">BBVA Alias
|
<th width="7%">BBVA Alias
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
<th id="THEstatusTexto" runat="server" style="width: 7%;">
|
<th id="THEstatusTexto" runat="server" style="width: 7%;">
|
||||||
<asp:LinkButton ID="LbEstatusTexto" runat="server" CausesValidation="false" Text="Estatus" CommandArgument="EstatusTexto"></asp:LinkButton> <asp:ImageButton ID="ImageButton5" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
<asp:LinkButton ID="LbEstatusTexto" runat="server" CausesValidation="false" Text="Estatus" CommandArgument="EstatusTexto"></asp:LinkButton> <asp:ImageButton ID="ImageButton5" OnClick="LbOrden_Click" CommandArgument="Estatus" runat="server" CausesValidation="false" ImageUrl="/Imagenes/FlechasAbajo.gif" /></th>
|
||||||
<th style="text-align: center;" width="14%">Comandos</th>
|
<th style="text-align: center;" width="14%">Comandos</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<td align="center" width="7%">
|
<td align="center" width="7%">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtNombreBanco" runat="server" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtNombreBanco" runat="server" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco" Width="90%"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVNombreBanco" runat="server" ControlToValidate="TxtNombreBanco" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''NombreBanco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVNombreBanco" runat="server" ControlToValidate="TxtNombreBanco" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''NombreBanco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
@@ -1007,7 +1002,6 @@
|
|||||||
</td>
|
</td>
|
||||||
<td align="center" width="7%">
|
<td align="center" width="7%">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtConvenioCIE" runat="server" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtConvenioCIE" runat="server" CausesValidation="true" MaxLength="8" ValidationGroup="GrpAgregarBanco" Width="90%"></asp:TextBox>
|
||||||
<%--<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtConvenioCIE" FilterType="Numbers" />--%>
|
|
||||||
</td>
|
</td>
|
||||||
<td align="center" width="7%">
|
<td align="center" width="7%">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtReferenciaCB" runat="server" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtReferenciaCB" runat="server" CausesValidation="true" MaxLength="100" ValidationGroup="GrpAgregarBanco" Width="90%"></asp:TextBox>
|
||||||
@@ -1025,29 +1019,24 @@
|
|||||||
<td align="center" width="7%">
|
<td align="center" width="7%">
|
||||||
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
<asp:TextBox ID="TxtBBVAAlias" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="30" ValidationGroup="GrpAgregarBanco"></asp:TextBox>
|
||||||
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
<ajax:FilteredTextBoxExtender ID="Flter" runat="server" TargetControlID="TxtBBVAAlias" FilterType="UppercaseLetters,LowercaseLetters,Numbers" InvalidChars="-+.," />
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td id="TDEstatusTexto" runat="server" visible="false" width="7%">
|
<td id="TDEstatusTexto" runat="server" visible="false" width="7%">
|
||||||
<%--<asp:CheckBox ID ="ChkEstatus" runat="server" Checked="true"></asp:CheckBox>--%>
|
|
||||||
</td>
|
</td>
|
||||||
<td id="TD1" runat="server" visible="true" width="7%">
|
<td id="TD1" runat="server" visible="true" width="7%">
|
||||||
<%--<asp:CheckBox ID ="ChkEstatus" runat="server" Checked="true"></asp:CheckBox>--%>
|
|
||||||
</td>
|
</td>
|
||||||
<td align="center" width="7%">
|
<td align="center" width="7%">
|
||||||
|
|
||||||
<asp:LinkButton ID="LbAgregarCuentaBanco" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpAgregarBanco" OnClick="LbAgregarCuentaBanco_Click"></asp:LinkButton>
|
<asp:LinkButton ID="LbAgregarCuentaBanco" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpAgregarBanco" OnClick="LbAgregarCuentaBanco_Click"></asp:LinkButton>
|
||||||
</td>
|
</td>
|
||||||
</table>
|
</table>--%>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpCuentasBancos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" CssClass="table table-striped table-hover Widthall" Style="table-layout: fixed" runat="server"
|
<asp:GridView ID="GvBancosCuentas" GridLines="None" BorderColor="#D3D3D3" BorderWidth="1" CssClass="table table-striped table-hover Widthall" Style="table-layout: fixed" runat="server"
|
||||||
DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias">
|
DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" ShowHeaderWhenEmpty="true">
|
||||||
<%--<asp:GridView ID="GvBancosCuentas" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="table table-striped table-advance table-hover" Style="table-layout: fixed" BorderWidth="0" GridLines="None">--%>
|
<%--<asp:GridView ID="GvBancosCuentas" runat="server" DataKeyNames="CveCuentaDeposito" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Cuentas Bancarias" CssClass="table table-striped table-advance table-hover" Style="table-layout: fixed" BorderWidth="0" GridLines="None">--%>
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" HeaderText="Banco">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtNombreBanco" runat="server" data-toggle="tooltip" title='<%# Eval("BancoNombre")%>' Text='<%# Eval("BancoNombre")%>'></asp:Label>
|
<asp:Label ID="LtNombreBanco" runat="server" data-toggle="tooltip" title='<%# Eval("BancoNombre")%>' Text='<%# Eval("BancoNombre")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1057,7 +1046,7 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VCENombreBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VCENombreBanco" runat="server" HighlightCssClass="vco" TargetControlID="RFVNombreBanco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtNumeroSucursal" runat="server" data-toggle="tooltip" title='<%# Eval("Sucursal")%>' Text='<%# Eval("Sucursal")%>'></asp:Label>
|
<asp:Label ID="LtNumeroSucursal" runat="server" data-toggle="tooltip" title='<%# Eval("Sucursal")%>' Text='<%# Eval("Sucursal")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1065,7 +1054,7 @@
|
|||||||
<asp:TextBox CssClass="form-control" ID="TxtNumeroSucursal" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Sucursal")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtNumeroSucursal" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Sucursal")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" HeaderText="Cuenta">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtNumeroCuenta" runat="server" data-toggle="tooltip" title='<%# Eval("Cuenta")%>' Text='<%# Eval("Cuenta")%>'></asp:Label>
|
<asp:Label ID="LtNumeroCuenta" runat="server" data-toggle="tooltip" title='<%# Eval("Cuenta")%>' Text='<%# Eval("Cuenta")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1075,7 +1064,7 @@
|
|||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" HeaderText="Clabe">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtCLABE" runat="server" data-toggle="tooltip" title='<%# Eval("CLABE")%>' Text='<%# Eval("CLABE")%>'></asp:Label>
|
<asp:Label ID="LtCLABE" runat="server" data-toggle="tooltip" title='<%# Eval("CLABE")%>' Text='<%# Eval("CLABE")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1085,7 +1074,7 @@
|
|||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtSWIFT" runat="server" data-toggle="tooltip" title='<%# Eval("SWIFT")%>' Text='<%# Eval("SWIFT")%>'></asp:Label>
|
<asp:Label ID="LtSWIFT" runat="server" data-toggle="tooltip" title='<%# Eval("SWIFT")%>' Text='<%# Eval("SWIFT")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1093,7 +1082,7 @@
|
|||||||
<asp:TextBox CssClass="form-control" ID="TxtSWIFT" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("SWIFT")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSWIFT" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("SWIFT")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtPlaza" runat="server" data-toggle="tooltip" title='<%# Eval("Plaza")%>' Text='<%# Eval("Plaza")%>'></asp:Label>
|
<asp:Label ID="LtPlaza" runat="server" data-toggle="tooltip" title='<%# Eval("Plaza")%>' Text='<%# Eval("Plaza")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1101,7 +1090,7 @@
|
|||||||
<asp:TextBox CssClass="form-control" ID="TxtPlaza" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Plaza")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtPlaza" runat="server" CausesValidation="true" MaxLength="100" Text='<%# Eval("Plaza")%>' ValidationGroup="GrpEditarCuentaBanco" Width="90%"></asp:TextBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtConvenioCIE" runat="server" data-toggle="tooltip" title='<%# Eval("CIE")%>' Text='<%# Eval("CIE")%>'></asp:Label>
|
<asp:Label ID="LtConvenioCIE" runat="server" data-toggle="tooltip" title='<%# Eval("CIE")%>' Text='<%# Eval("CIE")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1110,7 +1099,7 @@
|
|||||||
<%--<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtConvenioCIE" FilterType="Numbers" />--%>
|
<%--<ajax:FilteredTextBoxExtender ID="SoloNumeros3" runat="server" TargetControlID="TxtConvenioCIE" FilterType="Numbers" />--%>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtReferencia" runat="server" data-toggle="tooltip" title='<%# Eval("Referencia")%>' Text='<%# Eval("Referencia")%>'></asp:Label>
|
<asp:Label ID="LtReferencia" runat="server" data-toggle="tooltip" title='<%# Eval("Referencia")%>' Text='<%# Eval("Referencia")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1119,7 +1108,7 @@
|
|||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LtRefCrediProveedor" runat="server" data-toggle="tooltip" title='<%# Eval("RefCrediProveedor")%>' Text='<%# Eval("RefCrediProveedor")%>'></asp:Label>
|
<asp:Label ID="LtRefCrediProveedor" runat="server" data-toggle="tooltip" title='<%# Eval("RefCrediProveedor")%>' Text='<%# Eval("RefCrediProveedor")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1140,7 +1129,7 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|
||||||
|
|
||||||
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="LblBBVAAlias" runat="server" data-toggle="tooltip" title='<%# Eval("BBVAAlias")%>' Text='<%# Eval("BBVAAlias")%>'></asp:Label>
|
<asp:Label ID="LblBBVAAlias" runat="server" data-toggle="tooltip" title='<%# Eval("BBVAAlias")%>' Text='<%# Eval("BBVAAlias")%>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1165,7 +1154,7 @@
|
|||||||
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# IIf(Eval("EstatusTexto").ToString = "Activo", True, False)%>' Visible="false"></asp:CheckBox>
|
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# IIf(Eval("EstatusTexto").ToString = "Activo", True, False)%>' Visible="false"></asp:CheckBox>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="7%" ItemStyle-CssClass="Excede">
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="7%" ItemStyle-CssClass="Excede" Visible="false">
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update"
|
||||||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEditarCuentaBanco" />
|
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEditarCuentaBanco" />
|
||||||
@@ -1932,31 +1921,31 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Asistencia</HeaderTemplate>
|
<HeaderTemplate>Asistencia</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:DropDownList ID="DdlTipoAsistencias" runat="server" DataTextField="Tipo" DataValueField="CveAsistenciasInasistencias" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 70px !important;"></asp:DropDownList>
|
<asp:DropDownList ID="DdlTipoAsistencias" runat="server" TabIndex="2" DataTextField="Tipo" DataValueField="CveAsistenciasInasistencias" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 70px !important;"></asp:DropDownList>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>% Pago</HeaderTemplate>
|
<HeaderTemplate>% Pago</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtPorPago" runat="server" MaxLength="3" Text="100" Width="44px"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtPorPago" TabIndex="1" runat="server" MaxLength="3" Text="100" Width="44px"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Hrs Dob.</HeaderTemplate>
|
<HeaderTemplate>Hrs Dob.</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtHorasDobles" runat="server" MaxLength="3" Text="0" Width="50px"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtHorasDobles" TabIndex="1" runat="server" MaxLength="3" Text="0" Width="50px"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Hrs Trip.</HeaderTemplate>
|
<HeaderTemplate>Hrs Trip.</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtHorasTriples" runat="server" MaxLength="3" Text="0" Width="50px"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtHorasTriples" TabIndex="1" runat="server" MaxLength="3" Text="0" Width="50px"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Motivo H. Extras</HeaderTemplate>
|
<HeaderTemplate>Motivo H. Extras</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:DropDownList ID="DdlMotivoHoraExtra" runat="server" AppendDataBoundItems="true" DataTextField="MotivoHoraExtra" DataValueField="CveMotivoHoraExtra" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 110px !important;">
|
<asp:DropDownList ID="DdlMotivoHoraExtra" runat="server" TabIndex="2" AppendDataBoundItems="true" DataTextField="MotivoHoraExtra" DataValueField="CveMotivoHoraExtra" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 110px !important;">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -1964,7 +1953,7 @@
|
|||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>Obs.</HeaderTemplate>
|
<HeaderTemplate>Obs.</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtObservaciones" runat="server" Width="84px" MaxLength="150"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtObservaciones" TabIndex="3" runat="server" Width="84px" MaxLength="150"></asp:TextBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" Visible="false">
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" Visible="false">
|
||||||
@@ -3976,6 +3965,60 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="DivCuentasVancarias" class="modal ADS fade" role="dialog">
|
||||||
|
<div class="modal-dialog" style="width: 400px;">
|
||||||
|
<asp:UpdatePanel runat="server" class="modal-content" ID="UpCuentasVancarias" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-header ">
|
||||||
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||||
|
<h4 class="modal-title">
|
||||||
|
<asp:Literal ID="LtlCuentasvancarias" runat="server">Cuentas bancarias</asp:Literal></h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList ID="DdlBancoSat" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="Banco" DataValueField="CveSATBanco" CssClass="form-control input-sm select2me" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlBancoSat" Text="Banco:"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVBancoSat" runat="server" InitialValue="-1" ControlToValidate="DdlBancoSat" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Banco''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoBancoSat" runat="server" HighlightCssClass="vco" TargetControlID="RFVBancoSat" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtNumeroCuenta" runat="server"></asp:TextBox>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtNumeroCuenta" Text="Cuenta:"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVNumeroCuenta" runat="server" InitialValue="-1" ControlToValidate="TxtNumeroCuenta" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cuenta''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoNumeroCuenta" runat="server" HighlightCssClass="vco" TargetControlID="RFVNumeroCuenta" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox CssClass="form-control" ID="TxtCLABECB" runat="server" MaxLength="20"></asp:TextBox>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtCLABECB" Text="CLABE:"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVCLABECB" runat="server" InitialValue="-1" ControlToValidate="TxtCLABECB" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''CLABE''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoCLABECB" runat="server" HighlightCssClass="vco" TargetControlID="RFVCLABECB" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
<i></i>
|
||||||
|
</div>
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:DropDownList Width="100%" ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda" Class="form-control input-sm select2me" Style="width: 90% !important;"></asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlMoneda" Text="Moneda:"></asp:Label>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVMonedax" runat="server" InitialValue="-1" ControlToValidate="DdlMoneda" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Moneda''</b> es necesario, por favor ingréselo." ValidationGroup="GrpAgregarBanco"></asp:RequiredFieldValidator>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCEMonedax" runat="server" HighlightCssClass="vco" TargetControlID="RFVMonedax" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="ChkEstatus" Text="Activo:"></asp:Label><br />
|
||||||
|
<asp:CheckBox ID="ChkEstatus" runat="server" Checked="true" Visible="false"></asp:CheckBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:Button ID="BtnAgregarCuentaBanco" OnClick="LbAgregarCuentaBanco_Click" UseSubmitBehavior="false" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpAgregarBanco" />
|
||||||
|
<button id="Button5" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="divEditarDiaVacacion" class="modal ADS fade" role="dialog">
|
<div id="divEditarDiaVacacion" class="modal ADS fade" role="dialog">
|
||||||
<div id="dvEdicion" runat="server" class="modal-dialog" style="width: 400px;">
|
<div id="dvEdicion" runat="server" class="modal-dialog" style="width: 400px;">
|
||||||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalEditarDiaVacacion" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalEditarDiaVacacion" UpdateMode="Conditional">
|
||||||
@@ -4255,7 +4298,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td style="width: 33%!important; vertical-align: top!important">
|
<td style="width: 33%!important; vertical-align: top!important">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<ADS:Dropdownlost CssClassDdl="form-control input-sm select2me" ID="DdlClienteBuzon" Width="100%" data-metodo="getcliente" runat="server" DataTextField="Nombre" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
<ADS:Dropdownlost CssClassDdl="form-control input-sm select2me" ID="DdlClienteBuzon" Width="100%" data-metodo="getcliente" runat="server" DataTextField="Nombre" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||||
<%--<asp:DropDownList ID="DdlClienteBuzon" AutoPostBack="true" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-small input-sm" ValidationGroup="GrpAgragarBuzonCalidad" Width="200px">
|
<%--<asp:DropDownList ID="DdlClienteBuzon" AutoPostBack="true" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="Nombre" DataValueField="CveCliente" Class="table-group-action-input form-control input-inline input-small input-sm" ValidationGroup="GrpAgragarBuzonCalidad" Width="200px">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione uno" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione uno" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>--%>
|
</asp:DropDownList>--%>
|
||||||
|
|||||||
@@ -947,12 +947,17 @@ Partial Class RH_Personal
|
|||||||
Dim fechainicioasistencia As String
|
Dim fechainicioasistencia As String
|
||||||
Dim fechaFinasistencia As String
|
Dim fechaFinasistencia As String
|
||||||
If Now.Day >= 15 Then
|
If Now.Day >= 15 Then
|
||||||
|
'fechainicioasistencia = String.Format("{0:01/MM/yyyy}", Now)
|
||||||
|
'fechaFinasistencia = String.Format("{0:15/MM/yyyy}", Now)
|
||||||
|
fechainicioasistencia = String.Format("{0:16/MM/yyyy}", Now)
|
||||||
|
Dim dateendasis As DateTime = String.Format("{0:01/MM/yyyy}", Now).ToDateTime().AddMonths(1).AddDays(-1)
|
||||||
|
fechaFinasistencia = String.Format("{0:dd/MM/yyyy}", dateendasis)
|
||||||
|
Else
|
||||||
|
'Dim dateendasis As DateTime = String.Format("{0:01/MM/yyyy}", Now).ToDateTime().AddDays(-1)
|
||||||
|
'fechainicioasistencia = String.Format("{0:16/MM/yyyy}", dateendasis)
|
||||||
|
'fechaFinasistencia = String.Format("{0:dd/MM/yyyy}", dateendasis)
|
||||||
fechainicioasistencia = String.Format("{0:01/MM/yyyy}", Now)
|
fechainicioasistencia = String.Format("{0:01/MM/yyyy}", Now)
|
||||||
fechaFinasistencia = String.Format("{0:15/MM/yyyy}", Now)
|
fechaFinasistencia = String.Format("{0:15/MM/yyyy}", Now)
|
||||||
Else
|
|
||||||
Dim dateendasis As DateTime = String.Format("{0:01/MM/yyyy}", Now).ToDateTime().AddDays(-1)
|
|
||||||
fechainicioasistencia = String.Format("{0:16/MM/yyyy}", dateendasis)
|
|
||||||
fechaFinasistencia = String.Format("{0:dd/MM/yyyy}", dateendasis)
|
|
||||||
End If
|
End If
|
||||||
If Request("FechaI") IsNot Nothing AndAlso IsDate(Request("FechaI")) Then
|
If Request("FechaI") IsNot Nothing AndAlso IsDate(Request("FechaI")) Then
|
||||||
txtFechaI.Text = Request("FechaI")
|
txtFechaI.Text = Request("FechaI")
|
||||||
@@ -1195,7 +1200,9 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
Private Sub CargaBancos()
|
Private Sub CargaBancos()
|
||||||
DdlBanco.DataSource = GlobalDTNomSatBancos
|
DdlBanco.DataSource = GlobalDTNomSatBancos
|
||||||
|
DdlBancoSat.DataSource = GlobalDTNomSatBancos
|
||||||
DdlBanco.DataBind()
|
DdlBanco.DataBind()
|
||||||
|
DdlBancoSat.DataBind()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaEstados(pCvePais As Integer)
|
Private Sub CargaEstados(pCvePais As Integer)
|
||||||
@@ -1265,7 +1272,11 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
Protected Sub CargaGvAsistencias(Optional Orden As String = "")
|
Protected Sub CargaGvAsistencias(Optional Orden As String = "")
|
||||||
Dim objpersonal As New ClsRH
|
Dim objpersonal As New ClsRH
|
||||||
If objpersonal.GetAsistencias(CvePersonal, DdlClienteAsistenciaC.SelectedValue.ToEntero, -1, DdlSubProyectoAsistenciasC.SelectedValue.ToEntero, DdlTurno.SelectedValue.ToEntero, -1, txtFechaI.Text.Trim.ToDate, txtFechaF.Text.Trim.ToDate, UsuarioActual.CveEmpresa) Then
|
Dim CveCliente As Integer = DdlClienteAsistenciaC.SelectedValue.ToEntero()
|
||||||
|
If CveCliente <= 0 Then
|
||||||
|
CveCliente = -1
|
||||||
|
End If
|
||||||
|
If objpersonal.GetAsistencias(CvePersonal, CveCliente, -1, DdlSubProyectoAsistenciasC.SelectedValue.ToEntero, DdlTurno.SelectedValue.ToEntero, -1, txtFechaI.Text.Trim.ToDate, txtFechaF.Text.Trim.ToDate, UsuarioActual.CveEmpresa) Then
|
||||||
GVAsistencia.DataSource = objpersonal.DtResultados.FiltraParametros("Fecha IS NOT NULL")
|
GVAsistencia.DataSource = objpersonal.DtResultados.FiltraParametros("Fecha IS NOT NULL")
|
||||||
Else
|
Else
|
||||||
GVAsistencia.DataSource = Nothing
|
GVAsistencia.DataSource = Nothing
|
||||||
@@ -2878,10 +2889,16 @@ Partial Class RH_Personal
|
|||||||
DdlMoneda.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlMoneda.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub Lnkopenaddcuentabancaria_Click(sender As Object, e As EventArgs)
|
||||||
|
BtnAgregarCuentaBanco.Visible = False
|
||||||
|
BtnAgregarCuentaBanco.Visible = True
|
||||||
|
|
||||||
|
RegistraScript("$('#DivCuentasVancarias').modal();")
|
||||||
|
End Sub
|
||||||
Protected Sub LbAgregarCuentaBanco_Click(sender As Object, e As EventArgs)
|
Protected Sub LbAgregarCuentaBanco_Click(sender As Object, e As EventArgs)
|
||||||
Dim EsBancomer = False
|
Dim EsBancomer = False
|
||||||
|
Dim nombrebanco As String = DdlBancoSat.SelectedItem.Text
|
||||||
If TxtNombreBanco.Text.ToUpper.Contains("BBVA") Or TxtNombreBanco.Text.ToUpper.Contains("BANCOMER") Or (TxtCLABECB.Text.Length = 18 AndAlso TxtCLABECB.Text.Substring(0, 3) = "012") Then
|
If nombrebanco.ToUpper.Contains("BBVA") Or nombrebanco.ToUpper.Contains("BANCOMER") Or (TxtCLABECB.Text.Length = 18 AndAlso TxtCLABECB.Text.Substring(0, 3) = "012") Then
|
||||||
EsBancomer = True
|
EsBancomer = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2914,23 +2931,19 @@ Partial Class RH_Personal
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'SI CIE TIENE ALGO DEBE TENER UNA LOGITUD EXACTA DE 6 Y REFERENCIA OBLIGATORIA
|
|
||||||
If (TxtConvenioCIE.Text.Trim.Length <> 0 And TxtConvenioCIE.Text.Trim.Length <> 6) Or (TxtConvenioCIE.Text.Trim.Length = 6 And TxtReferenciaCB.Text.Trim.Length < 3) Then
|
|
||||||
Alert("El Convenio CIE debe tener una longitud de 6 dígitos y se debe especificar una referencia. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
|
|
||||||
Exit Sub
|
|
||||||
End If
|
|
||||||
|
|
||||||
'CUANDO SEA "BBVA" O "BANCOMER" DEBE TENER "CIE" O "CUENTA"
|
''CUANDO SEA "BBVA" O "BANCOMER" DEBE TENER "CIE" O "CUENTA"
|
||||||
If EsBancomer AndAlso Not (TxtNumeroCuenta.Text.Trim.Length = 10 Or TxtConvenioCIE.Text.Trim.Length = 6) Then
|
'If EsBancomer AndAlso Not (TxtNumeroCuenta.Text.Trim.Length = 10 Or TxtConvenioCIE.Text.Trim.Length = 6) Then
|
||||||
Alert("Para cuentas BBVA BANCOMER es obligatorio el Número de Cuenta o CIE.", TipoMensaje.MsgAdvertencia)
|
' Alert("Para cuentas BBVA BANCOMER es obligatorio el Número de Cuenta o CIE.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
' Exit Sub
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
AgregarCuentaBanco(TxtNombreBanco.Text.Trim, TxtNumeroSucursal.Text.Trim, TxtCLABECB.Text.Trim, TxtSWIFT.Text.Trim, TxtPlaza.Text.Trim, TxtNumeroCuenta.Text.Trim, TxtConvenioCIE.Text.Trim, TxtReferenciaCB.Text.Trim, DdlMoneda.SelectedValue.ToEntero, DdlMoneda.SelectedItem.Text, TxtBBVAAlias.Text)
|
AgregarCuentaBanco(nombrebanco, "", TxtCLABECB.Text.Trim, "", "", TxtNumeroCuenta.Text.Trim, "", "", DdlMoneda.SelectedValue.ToEntero, DdlMoneda.SelectedItem.Text, "", DdlBancoSat.SelectedValue.ToEntero())
|
||||||
|
RegistraScript("$('#DivCuentasVancarias').modal('hide');")
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaGridCuentasBancos(Orden As String)
|
Private Sub CargaGridCuentasBancos(Orden As String)
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
If Orden <> String.Empty Then
|
If Not String.IsNullOrEmpty(Orden) Then
|
||||||
Dim DV As New DataView(DTCuentasBancos, "", Orden, DataViewRowState.CurrentRows)
|
Dim DV As New DataView(DTCuentasBancos, "", Orden, DataViewRowState.CurrentRows)
|
||||||
GvBancosCuentas.DataSource = DV.ToTable()
|
GvBancosCuentas.DataSource = DV.ToTable()
|
||||||
DV.Dispose()
|
DV.Dispose()
|
||||||
@@ -2938,7 +2951,7 @@ Partial Class RH_Personal
|
|||||||
GvBancosCuentas.DataSource = DTCuentasBancos
|
GvBancosCuentas.DataSource = DTCuentasBancos
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Orden <> String.Empty Then
|
If Not String.IsNullOrEmpty(Orden) Then
|
||||||
Dim DV As New DataView(TempDTCuentasBancos, "", Orden, DataViewRowState.CurrentRows)
|
Dim DV As New DataView(TempDTCuentasBancos, "", Orden, DataViewRowState.CurrentRows)
|
||||||
GvBancosCuentas.DataSource = DV.ToTable()
|
GvBancosCuentas.DataSource = DV.ToTable()
|
||||||
DV.Dispose()
|
DV.Dispose()
|
||||||
@@ -2950,13 +2963,13 @@ Partial Class RH_Personal
|
|||||||
GvBancosCuentas.DataBind()
|
GvBancosCuentas.DataBind()
|
||||||
UpCuentasBancos.Update()
|
UpCuentasBancos.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, CveMoneda As Integer, Moneda As String, BBVAAlias As String)
|
Private Sub AgregarCuentaBanco(NombreBanco As String, NumeroSucursal As String, CLABE As String, SWIFT As String, Plaza As String, NumeroCuenta As String, ConvenioCIE As String, Referencia As String, CveMoneda As Integer, Moneda As String, BBVAAlias As String, CveSATBanco As Integer)
|
||||||
|
|
||||||
Dim Row As DataRow
|
Dim Row As DataRow
|
||||||
|
|
||||||
If CvePersonal > 0 Then
|
If CvePersonal > 0 Then
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", UsuarioActual.CveUsuario, CveMoneda, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=BBVAAlias) Then
|
If ObjCuentasBancos.AddCuentasDepositos(NombreBanco, Plaza, NumeroSucursal, NumeroCuenta, CLABE, ConvenioCIE, SWIFT, Referencia, "", UsuarioActual.CveUsuario, CveMoneda, CvePersonal:=CvePersonal, CveUsuarioModifico:=UsuarioActual.CveUsuario, BBVAAlias:=BBVAAlias, CveSATBanco:=CveSATBanco) Then
|
||||||
DTCuentasBancos.Clear()
|
DTCuentasBancos.Clear()
|
||||||
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
DTCuentasBancos.Merge(ObjCuentasBancos.DtResultados.FiltraParametros(String.Format("CvePersonal = {0}", CvePersonal)))
|
||||||
|
|
||||||
@@ -2991,14 +3004,8 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub LimpiaCuentasBancarias()
|
Private Sub LimpiaCuentasBancarias()
|
||||||
TxtNombreBanco.Text = ""
|
|
||||||
TxtNumeroSucursal.Text = ""
|
|
||||||
TxtCLABECB.Text = ""
|
TxtCLABECB.Text = ""
|
||||||
TxtSWIFT.Text = ""
|
|
||||||
TxtPlaza.Text = ""
|
|
||||||
TxtNumeroCuenta.Text = ""
|
TxtNumeroCuenta.Text = ""
|
||||||
TxtConvenioCIE.Text = ""
|
|
||||||
TxtReferenciaCB.Text = ""
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaCuentasBancarias()
|
Private Sub CargaCuentasBancarias()
|
||||||
Dim ObjCuentasBancos As New ClsGenerales
|
Dim ObjCuentasBancos As New ClsGenerales
|
||||||
|
|||||||
@@ -4308,7 +4308,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If CveEmpresaCRM > 0 And Not CveCliente > 0 Then
|
If CveEmpresaCRM > 0 Then
|
||||||
CargaEmpresaCRM(CveEmpresaCRM)
|
CargaEmpresaCRM(CveEmpresaCRM)
|
||||||
Else
|
Else
|
||||||
CveEmpresaCRM = IIf(CveEmpresaCRM > 0, CveEmpresaCRM, 0).ToString().ToEntero()
|
CveEmpresaCRM = IIf(CveEmpresaCRM > 0, CveEmpresaCRM, 0).ToString().ToEntero()
|
||||||
|
|||||||
@@ -1052,7 +1052,7 @@ Public Class WSApp
|
|||||||
|
|
||||||
'VALIDA PROMOCIONES Y EXISTENCIAS
|
'VALIDA PROMOCIONES Y EXISTENCIAS
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetPromocionesPS(-1, Now, CveSubProyecto, CveCliente, ObjFactura.CveVendedor, UsuarioActual.CveEmpresa) Then
|
If ObjVentas.GetPromocionesPS(-1, Now, CveSubProyecto, CveCliente, ObjFactura.CveVendedor, 1, UsuarioActual.CveEmpresa) Then
|
||||||
ObjFactura.DtPromociones = ObjVentas.DtResultados
|
ObjFactura.DtPromociones = ObjVentas.DtResultados
|
||||||
End If
|
End If
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
|
|||||||
@@ -194,6 +194,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user