Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -2863,12 +2863,13 @@ Public Class ClsInventarios
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetInventarioFisicoResultados(CveInventarioFisico As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetInventarioFisicoResultados(CveInventarioFisico As Integer, CveEmpresa As Integer, Optional GPO As Integer = 1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Inv_InventarioFisicoResultadosGet")
|
DataAdapter("PA_Inv_InventarioFisicoResultadosGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveInventarioFisico", SqlDbType.Int).Value = CveInventarioFisico
|
.Add("@CveInventarioFisico", SqlDbType.Int).Value = CveInventarioFisico
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@GPO", SqlDbType.Int).Value = GPO
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
|||||||
@@ -2603,8 +2603,8 @@ Public Class ClsNominas
|
|||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddMovtoPermanente(cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean, CveCuenta As Integer) As Boolean
|
Public Function AddMovtoPermanente(cveConcepto As Int32, cvePersonal As Int32, descripcion As String, tipoDescuento As Int32, valor As Double, vecesAplicar As Int32, montoLimite As Decimal, fechaInicioAplicacion As String, estatus As Boolean, CveCuenta As Integer) As Integer
|
||||||
Dim retorno As Boolean = False
|
Dim retorno As Integer = 0
|
||||||
DataAdapter("PA_AddMovtoPermanente", CommandType.StoredProcedure)
|
DataAdapter("PA_AddMovtoPermanente", CommandType.StoredProcedure)
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2618,15 +2618,16 @@ Public Class ClsNominas
|
|||||||
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
.Add("@fechaInicioAplicacion", SqlDbType.VarChar).Value = (fechaInicioAplicacion)
|
||||||
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
.Add("@estatus", SqlDbType.Bit).Value = (estatus)
|
||||||
.Add("@CveCuenta", SqlDbType.Int).Value = (CveCuenta)
|
.Add("@CveCuenta", SqlDbType.Int).Value = (CveCuenta)
|
||||||
|
.Add("@CveMovtoPermanente", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
retorno = True
|
retorno = SqlAdapter.SelectCommand.Parameters("@IDConexion").Value.ToString.ToEntero
|
||||||
Catch sqEx As SqlException
|
Catch sqEx As SqlException
|
||||||
retorno = False
|
retorno = -1
|
||||||
OnError("Ocurrió un error al agregar los movimientos permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al agregar los movimientos permanentes.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
retorno = False
|
retorno = -1
|
||||||
OnError("Ocurrió un error al agregar los movimientos permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
OnError("Ocurrió un error al agregar los movimientos permanentes.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
End Try
|
End Try
|
||||||
Return retorno
|
Return retorno
|
||||||
|
|||||||
@@ -399,13 +399,13 @@ Public Class LogicNominas
|
|||||||
ObjOtrosPagos.Add(otrp)
|
ObjOtrosPagos.Add(otrp)
|
||||||
|
|
||||||
|
|
||||||
If Row("SATCveConcepto").ToString().ToEntero() = 7 AndAlso Row("Importe").ToString().ToDecimal > 0 Then 'Subsidio
|
If Row("SATCveConcepto").ToString().ToEntero() = 7 AndAlso Row("Importe").ToString().ToDecimal() > 0 Then 'Subsidio
|
||||||
ObjDeducciones.Add(New CFDINominaDeducciones With {.TipoDeduccion = "002", ' codigo fijo
|
'ObjDeducciones.Add(New CFDINominaDeducciones With {.TipoDeduccion = "002", ' codigo fijo
|
||||||
.Clave = Row("Codigo").ToString(), .Concepto = "ISR", .Importe = Row("Importe").ToString().ToDecimal})
|
' .Clave = Row("Codigo").ToString(), .Concepto = "ISR", .Importe = Row("Importe").ToString().ToDecimal})
|
||||||
End If
|
End If
|
||||||
If Row("SATCveConcepto").ToString().ToEntero() = 8 AndAlso Row("Importe").ToString().ToDecimal > 0 Then 'Subsidio
|
If Row("SATCveConcepto").ToString().ToEntero() = 8 AndAlso Row("Importe").ToString().ToDecimal() > 0 Then 'Subsidio
|
||||||
ObjDeducciones.Add(New CFDINominaDeducciones With {.TipoDeduccion = "071", ' codigo fijo
|
'ObjDeducciones.Add(New CFDINominaDeducciones With {.TipoDeduccion = "071", ' codigo fijo
|
||||||
.Clave = Row("Codigo").ToString(), .Concepto = "(Ajuste en Subsidio para el empleo (efectivamente entregado al trabajador)", .Importe = Row("Importe").ToString().ToDecimal})
|
' .Clave = Row("Codigo").ToString(), .Concepto = "(Ajuste en Subsidio para el empleo (efectivamente entregado al trabajador)", .Importe = Row("Importe").ToString().ToDecimal})
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
<div class="col-md-5"></div>
|
<div class="col-md-5"></div>
|
||||||
<asp:RadioButtonList ID="TipoDevolucion" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="TipoDevolucion_SelectedIndexChanged" AutoPostBack="true">
|
<asp:RadioButtonList ID="TipoDevolucion" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="TipoDevolucion_SelectedIndexChanged" AutoPostBack="true">
|
||||||
<asp:ListItem Value="1" Text="Bancos"></asp:ListItem>
|
<asp:ListItem Value="1" Text="Bancos"></asp:ListItem>
|
||||||
<asp:ListItem Value="2" Text="Viaticos"></asp:ListItem>
|
<asp:ListItem Value="2" Text="Vía Nómina"></asp:ListItem>
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -113,7 +113,6 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
|
|
||||||
protected void TipoDevolucion_SelectedIndexChanged(object sender, EventArgs e)
|
protected void TipoDevolucion_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string tipo = "";
|
|
||||||
switch (TipoDevolucion.SelectedValue)
|
switch (TipoDevolucion.SelectedValue)
|
||||||
{
|
{
|
||||||
case "1":
|
case "1":
|
||||||
@@ -160,7 +159,7 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
}
|
}
|
||||||
protected void CargaPersonal()
|
protected void CargaPersonal()
|
||||||
{
|
{
|
||||||
DdlPersonal.DataSource = get_GlobalDTRHPersonal(UsuarioActual.CveEmpresa);
|
DdlPersonal.DataSource = get_GlobalDTRHPersonal(UsuarioActual.CveEmpresa).FiltraParametros("", "NombreCompleto");
|
||||||
DdlPersonal.DataBind();
|
DdlPersonal.DataBind();
|
||||||
DdlPersonal.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
DdlPersonal.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||||
}
|
}
|
||||||
@@ -415,27 +414,9 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
string Conc = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
string Conc = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
||||||
string Ref = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
string Ref = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
||||||
|
|
||||||
if (OpcionDevolucion.SelectedValue.ToEntero() == 3 || TipoDevolucion.SelectedValue.ToString().ToEntero() == 2)
|
if (OpcionDevolucion.SelectedValue.ToEntero() == 3 && TipoDevolucion.SelectedValue.ToString().ToEntero() == 2)
|
||||||
{
|
{
|
||||||
foreach (GridViewRow gvr in GvDevoluciones.Rows)
|
|
||||||
{
|
|
||||||
if (gvr.FCCheckBox("Chk").Checked)
|
|
||||||
{
|
|
||||||
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovoDevolucion, gvr.FCTextBox("TxtAbonar").Text.ToDecimal(), Ref, CveConceptoContableDevolucion, Conc, DateTime.Now, 0, -1, CveProveedor: cveProveedor, CvePersonal: cvePersonal, ImporteMX: gvr.FCTextBox("TxtAbonar").Text.ToDecimal(), CveIEDevolucion: CveIE))
|
|
||||||
{
|
|
||||||
MsgError = "No se pudo insertar concepto de Devolución";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//GUARDA PREPOLIZAS DETALLE Bancos
|
|
||||||
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, !TipoMovoDevolucion, TxtImporte.Text.ToDecimal(), Ref, 174, Conc, DateTime.Now, 0, -1, CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero(), CveCliente: cveCliente, CveProveedor: cveProveedor, CvePersonal: cvePersonal, ImporteMX: TxtImporte.Text.ToDecimal()))
|
|
||||||
{
|
|
||||||
MsgError = "No se pudo insertar concepto de Devolución";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (MsgError.Equals(""))
|
|
||||||
{
|
|
||||||
|
|
||||||
int cveConcepto = DdlConcepto.SelectedValue.ToEntero();
|
int cveConcepto = DdlConcepto.SelectedValue.ToEntero();
|
||||||
string descripcion = TxtDescripcion.Text;
|
string descripcion = TxtDescripcion.Text;
|
||||||
@@ -448,12 +429,37 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
bool estatus = true;
|
bool estatus = true;
|
||||||
int CveCuenta = -1;
|
int CveCuenta = -1;
|
||||||
|
|
||||||
if (!ObjNom.AddMovtoPermanente(cveConcepto, cvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta))
|
if (ObjNom.AddMovtoPermanente(cveConcepto, cvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta) < 0)
|
||||||
{
|
{
|
||||||
MsgError = "No se pudo insertar movimiento permanente";
|
MsgError = "No se pudo insertar movimiento permanente";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
foreach (GridViewRow gvr in GvDevoluciones.Rows)
|
||||||
|
{
|
||||||
|
if (gvr.FCCheckBox("Chk").Checked)
|
||||||
|
{
|
||||||
|
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, TipoMovoDevolucion, gvr.FCTextBox("TxtAbonar").Text.ToDecimal(), Ref, CveConceptoContableDevolucion, Conc, DateTime.Now, 0, -1, CveProveedor: cveProveedor, CvePersonal: cvePersonal, ImporteMX: gvr.FCTextBox("TxtAbonar").Text.ToDecimal(), CveIEDevolucion: CveIE))
|
||||||
|
{
|
||||||
|
MsgError = "No se pudo insertar concepto de Devolución";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Decimal tTotal = (TxtValor.Text.ToDecimal() * TxtVecesAplicar.Text.ToDecimal()).RoundSQL();
|
||||||
|
Decimal tTotal = gvr.FCTextBox("TxtAbonar").Text.ToDecimal();
|
||||||
|
//GUARDA PREPOLIZAS DETALLE Via Nómina
|
||||||
|
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, !TipoMovoDevolucion, tTotal, Ref, 174, Conc, DateTime.Now, 0, -1, CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero(), CveCliente: cveCliente, CveProveedor: cveProveedor, CvePersonal: cvePersonal, ImporteMX: tTotal))
|
||||||
|
{
|
||||||
|
MsgError = "No se pudo insertar concepto de Devolución";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -612,17 +618,20 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
|
Msg.AppendFormat(@"<br/><br/><a class=""Texto"" target='_blank' href=""/Contabilidad/RegPoliza.aspx?IdPoliza={0}"">Ver Póliza</a>", IDPoliza);
|
||||||
}
|
}
|
||||||
ObjIE.Commit();
|
ObjIE.Commit();
|
||||||
|
|
||||||
|
if (!Msg.ToString().Equals(""))
|
||||||
|
{
|
||||||
|
string AccionJS = String.Format(@"document.location.href=""{0}"";", HttpContext.Current.Request.Url.PathAndQuery);
|
||||||
|
Alert(Msg.ToString(), TipoMensaje.MsgInformacion, String.Format(@"document.location.href=""{0}"";", HttpContext.Current.Request.Url.PathAndQuery));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ObjIE.RollBack();
|
ObjIE.RollBack();
|
||||||
|
Msg.Clear();
|
||||||
|
Alert(Msg.ToString(), TipoMensaje.MsgError);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Msg.ToString().Equals(""))
|
|
||||||
{
|
|
||||||
string AccionJS = String.Format(@"document.location.href=""{0}"";", HttpContext.Current.Request.Url.PathAndQuery);
|
|
||||||
Alert(Msg.ToString(), TipoMensaje.MsgInformacion, String.Format(@"document.location.href=""{0}"";", HttpContext.Current.Request.Url.PathAndQuery));
|
|
||||||
}
|
|
||||||
|
|
||||||
ObjIE.Dispose();
|
ObjIE.Dispose();
|
||||||
ObjMov.Dispose();
|
ObjMov.Dispose();
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ Partial Class Contabilidad_ContabilidadElectronica
|
|||||||
Str.AppendFormat("Sello=""{0}"" ", "123")
|
Str.AppendFormat("Sello=""{0}"" ", "123")
|
||||||
Str.AppendFormat("noCertificado=""{0}"" ", "123")
|
Str.AppendFormat("noCertificado=""{0}"" ", "123")
|
||||||
Str.AppendFormat("Certificado=""{0}"" ", "1234567890")
|
Str.AppendFormat("Certificado=""{0}"" ", "1234567890")
|
||||||
Str.Append("xmlns:catalogocuentas=""www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas""")
|
Str.Append("xmlns:catalogocuentas=""www.sat.gob.mx/esquemas/ContabilidadE/1_1/CatalogoCuentas"">")
|
||||||
|
|
||||||
'DETALLES
|
'DETALLES
|
||||||
For Each Dr As DataRow In DtCuentas.Rows
|
For Each Dr As DataRow In DtCuentas.Rows
|
||||||
|
|||||||
@@ -304,6 +304,50 @@
|
|||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label style="font-size: 16px"><b>Productos Coincidentes</b></label>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4" align="left" id="div1" runat="server">
|
||||||
|
<asp:Label runat="server">Número de registros: <b><asp:Literal ID="LtlCoincidentes" runat="server"></asp:Literal></b></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8" align="right" id="divRegistradosCoinciden" runat="server">
|
||||||
|
<input type="text" id="TxtBusqueda3" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvS.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<asp:GridView ID="GvC" data-sort="true" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False"
|
||||||
|
CssClass="table table-striped table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None" DataKeyNames="CvePS">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField Visible="false">
|
||||||
|
<HeaderTemplate>
|
||||||
|
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="#">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LblC" runat="server" Font-Size="6pt"></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Sección Almacén" DataField="SeccionAlmacen"/>
|
||||||
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" />
|
||||||
|
<asp:BoundField HeaderText="Existencia" DataField="CantidadAlmacen" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Inv. Físico" DataField="CantidadInventarioFisico" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Diferencia" DataField="Diferencia" DataFormatString="{0:#,###.##}" ItemStyle-Font-Bold="true" />
|
||||||
|
<asp:BoundField HeaderText="Costo" DataField="Costo" DataFormatString="{0:#,##0.00}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
dt = Inventario.DtResultados
|
dt = Inventario.DtResultados
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
If Inventario.GetInventarioFisicoResultados(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
If Inventario.GetInventarioFisicoResultados(CveInventarioFisico, UsuarioActual.CveEmpresa, DdlGPO.SelectedValue.ToString.ToEntero) Then
|
||||||
dt = Inventario.DtResultados
|
dt = Inventario.DtResultados
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -155,7 +155,7 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
If Inventario.GetInventarioFisicoDetallesProveedores(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
If Inventario.GetInventarioFisicoDetallesProveedores(CveInventarioFisico, UsuarioActual.CveEmpresa) Then
|
||||||
Dim dta As DataTable = Inventario.DtResultados
|
Dim dta As DataTable = Inventario.DtResultados
|
||||||
Dim str As New StringBuilder
|
Dim str As New StringBuilder
|
||||||
If dta IsNot Nothing AndAlso dt.Rows.Count > 0 Then
|
If dta IsNot Nothing AndAlso dta.Rows.Count > 0 Then
|
||||||
|
|
||||||
For Each dr As DataRow In dta.FiltraParametros("Incluye = 1").Rows
|
For Each dr As DataRow In dta.FiltraParametros("Incluye = 1").Rows
|
||||||
str.AppendFormat("{0},", dr("RazonSocial"))
|
str.AppendFormat("{0},", dr("RazonSocial"))
|
||||||
@@ -187,6 +187,11 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
GvF.DataBind()
|
GvF.DataBind()
|
||||||
BanderaSerieLoteCad(GvF, DtF)
|
BanderaSerieLoteCad(GvF, DtF)
|
||||||
|
|
||||||
|
Dim DtC As DataTable = dt.FiltraParametros("Diferencia = 0")
|
||||||
|
GvC.DataSource = DtC
|
||||||
|
GvC.DataBind()
|
||||||
|
BanderaSerieLoteCad(GvC, DtC)
|
||||||
|
|
||||||
Dim Script = ""
|
Dim Script = ""
|
||||||
If (GvF.Rows.Count > 0) Then
|
If (GvF.Rows.Count > 0) Then
|
||||||
GvF.UseAccessibleHeader = True
|
GvF.UseAccessibleHeader = True
|
||||||
@@ -204,6 +209,14 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
LtlTotalRegistrosSobran.Text = GvS.Rows.Count.ToString
|
LtlTotalRegistrosSobran.Text = GvS.Rows.Count.ToString
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If (GvC.Rows.Count > 0) Then
|
||||||
|
GvC.UseAccessibleHeader = True
|
||||||
|
GvC.HeaderRow.TableSection = TableRowSection.TableHeader
|
||||||
|
Script += "OrdenarGVS();"
|
||||||
|
divRegistradosCoinciden.Visible = True
|
||||||
|
LtlCoincidentes.Text = GvC.Rows.Count.ToString
|
||||||
|
End If
|
||||||
|
|
||||||
PSIguales()
|
PSIguales()
|
||||||
RegistraScript(Script)
|
RegistraScript(Script)
|
||||||
|
|
||||||
@@ -260,9 +273,9 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
'End Sub
|
'End Sub
|
||||||
|
|
||||||
Private Sub LnkPDF_Click(sender As Object, e As EventArgs) Handles LnkPDF.Click
|
Private Sub LnkPDF_Click(sender As Object, e As EventArgs) Handles LnkPDF.Click
|
||||||
ImprimirbytesPDF(Impimir, Formato:="PDF")
|
ImprimirbytesPDF(Imprimir, Formato:="PDF")
|
||||||
End Sub
|
End Sub
|
||||||
Protected Function Impimir() As Byte()
|
Protected Function Imprimir() As Byte()
|
||||||
Dim retorno As Byte() = Nothing
|
Dim retorno As Byte() = Nothing
|
||||||
|
|
||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepAnomalias.rdlc", UsuarioActual.Empresa.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepAnomalias.rdlc", UsuarioActual.Empresa.Ruta))
|
||||||
|
|||||||
@@ -1359,9 +1359,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright" style=" padding-top: 0px;">
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlFormapagovacaciones">Forma de pago</asp:Label><br />
|
<asp:Label runat="server" AssociatedControlID="DdlFormapagovacaciones" style=" padding-bottom: 0px;margin-bottom: 0px;">Forma de pago</asp:Label><br />
|
||||||
<asp:DropDownList ID="DdlFormapagovacaciones" DataValueField="Cve" DataTextField="Texto" Width="100%" CssClass="form-control select2me " runat="server">
|
<asp:DropDownList ID="DdlFormapagovacaciones" DataValueField="Cve" style=" margin-top: -4px;" DataTextField="Texto" Width="100%" CssClass="form-control select2me " runat="server">
|
||||||
<asp:ListItem Text="Pagadas por anticipado" Value="1" Selected="True"></asp:ListItem>
|
<asp:ListItem Text="Pagadas por anticipado" Value="1" Selected="True"></asp:ListItem>
|
||||||
<asp:ListItem Text="Por pagar" Value="2"></asp:ListItem>
|
<asp:ListItem Text="Por pagar" Value="2"></asp:ListItem>
|
||||||
<asp:ListItem Text="Trabajadas" Value="3"></asp:ListItem>
|
<asp:ListItem Text="Trabajadas" Value="3"></asp:ListItem>
|
||||||
@@ -1374,11 +1374,36 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtVacDiasExtra" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtVacDiasExtra" CssClass="form-control input-sm " runat="server"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtVacDiasExtra">Días extras</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtVacDiasExtra">Días extras</asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtVacEjercicio" CssClass="form-control input-sm " Text="2021" runat="server"></asp:TextBox>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="TxtVacEjercicio">Ejercicio</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<div style="padding-top: 0px; padding-bottom: 0px;">
|
||||||
|
¿Prima Vacacional?
|
||||||
|
</div>
|
||||||
|
<asp:CheckBox ID="ChkVacPrimaVacacional" CssClass="chksino " Text=" " runat="server" />
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
<div style="padding-top: 0px; padding-bottom: 0px;">
|
||||||
|
¿Cobrar IMSS?
|
||||||
|
</div>
|
||||||
|
<asp:CheckBox ID="ChkVacCobrarIMSS" CssClass="chksino " Text=" " runat="server" />
|
||||||
|
</div></div>
|
||||||
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<asp:LinkButton ID="LnkSRVacacionesUP" OnClick="LnkSRVacacionesUP_Click" Visible="false" CssClass="btn btn-success" ValidationGroup="VG_Vacaciones" runat="server">Actualizar</asp:LinkButton>
|
<asp:LinkButton ID="LnkSRVacacionesUP" OnClick="LnkSRVacacionesUP_Click" Visible="false" CssClass="btn btn-success" ValidationGroup="VG_Vacaciones" runat="server">Actualizar</asp:LinkButton>
|
||||||
<asp:LinkButton ID="LnkSRVacacionesADD" OnClick="LnkSRVacacionesADD_Click" Visible="true" CssClass="btn btn-primary" ValidationGroup="VG_Vacaciones" runat="server">Guardar</asp:LinkButton>
|
<asp:LinkButton ID="LnkSRVacacionesADD" OnClick="LnkSRVacacionesADD_Click" Visible="true" CssClass="btn btn-primary" ValidationGroup="VG_Vacaciones" runat="server">Guardar</asp:LinkButton>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ using iTextSharp.text.pdf;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Data.SqlClient;
|
using System.Data.SqlClient;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
|
using System.Collections.Specialized;
|
||||||
|
|
||||||
public partial class Nomina_Nomina2 : ClsPaginas
|
public partial class Nomina_Nomina2 : ClsPaginas
|
||||||
{
|
{
|
||||||
@@ -1095,7 +1096,28 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
}
|
}
|
||||||
UpDatos.Update();
|
UpDatos.Update();
|
||||||
}
|
}
|
||||||
|
private void CreaObjetoEmpresa(ref Usuario UsuarioActual)
|
||||||
|
{
|
||||||
|
ClsSisEmpresas ObjEmpresa = new ClsSisEmpresas();
|
||||||
|
if (ObjEmpresa.GetEmpresas(UsuarioActual.CveEmpresa, "-1", "-1", "-1", "-1"))
|
||||||
|
{
|
||||||
|
if (ObjEmpresa.GetEmpresasFuncionalidades(UsuarioActual.CveEmpresa))
|
||||||
|
{
|
||||||
|
System.Data.DataTable dttmp = ObjEmpresa.DtResultados;
|
||||||
|
|
||||||
|
HybridDictionary EmpresasFuncionalidades = new HybridDictionary();
|
||||||
|
foreach (System.Data.DataRow Row in dttmp.Rows)
|
||||||
|
EmpresasFuncionalidades.Add(Convert.ToInt32(Row["CveFuncionalidad"]), Row["Valor"].ToString());
|
||||||
|
ObjEmpresa.Empresa.SetFuncionalidades(EmpresasFuncionalidades);
|
||||||
|
}
|
||||||
|
|
||||||
|
UsuarioActual.Empresa = ObjEmpresa.Empresa;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
}
|
||||||
|
ObjEmpresa.Dispose();
|
||||||
|
}
|
||||||
protected void LnkTimbrar_Click(object sender, EventArgs e)
|
protected void LnkTimbrar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
LinkButton lnk = (LinkButton)sender;
|
LinkButton lnk = (LinkButton)sender;
|
||||||
@@ -1104,7 +1126,13 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
int CvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
int CvePersonal = gvRow.DataKey("CvePersonal").ToEntero();
|
||||||
int CveNomina = gvRow.DataKey("CveNomina").ToEntero();
|
int CveNomina = gvRow.DataKey("CveNomina").ToEntero();
|
||||||
LogicNominas lognom = new LogicNominas();
|
LogicNominas lognom = new LogicNominas();
|
||||||
|
Usuario UsuarioActual = null;
|
||||||
|
using(ClsSisUsuarios ObjUsuario= new ClsSisUsuarios())
|
||||||
|
{
|
||||||
|
UsuarioActual =ObjUsuario.ValidaUsuario("jcaudillo", Encripta("45makako45"), "-1", 1);
|
||||||
|
}
|
||||||
|
CreaObjetoEmpresa(ref UsuarioActual);
|
||||||
|
UsuarioActual.CveEmpresa = this.UsuarioActual.CveEmpresa;
|
||||||
string Msg = lognom.TimbrarNomina(CveNomina, CvePersonal, CvePeriodo, UsuarioActual);
|
string Msg = lognom.TimbrarNomina(CveNomina, CvePersonal, CvePeriodo, UsuarioActual);
|
||||||
if (Msg != null && Msg.Length > 0)
|
if (Msg != null && Msg.Length > 0)
|
||||||
{ Alert(Msg, TipoMensaje.MsgAdvertencia); }
|
{ Alert(Msg, TipoMensaje.MsgAdvertencia); }
|
||||||
@@ -1367,7 +1395,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
Archivo fileItem = continuar ? Filesgral[0] : null;
|
Archivo fileItem = continuar ? Filesgral[0] : null;
|
||||||
if (continuar)
|
if (continuar)
|
||||||
{
|
{
|
||||||
string FileExtension = fileItem.Extencion.ToUpper();
|
string FileExtension = fileItem.Extension.ToUpper();
|
||||||
if (FileExtension == "XLS" | FileExtension == "XLSX" | FileExtension == "CSV")
|
if (FileExtension == "XLS" | FileExtension == "XLSX" | FileExtension == "CSV")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -4558,8 +4586,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
bool Continuar;
|
bool Continuar;
|
||||||
using (ClsNominas ObjMovt = new ClsNominas())
|
using (ClsNominas ObjMovt = new ClsNominas())
|
||||||
{
|
{
|
||||||
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta);
|
Continuar = ObjMovt.AddMovtoPermanente(cveConcepto, SRCvePersonal, descripcion, tipoDescuento, valor, vecesAplicar, montoLimite, fechaInicioAplicacion, estatus, CveCuenta) > 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (Continuar)
|
if (Continuar)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -272,6 +272,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user