Merge branch 'master' of http://oirigoyen@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -3220,6 +3220,27 @@ Public Class ClsPaginas
|
|||||||
Application("GlobalDTContaPlantillasPolizasDetalle") = value
|
Application("GlobalDTContaPlantillasPolizasDetalle") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
'Property GlobalDTContaPlantillasPolizasDetalle(CvePlantillaPoliza As Integer, CveEmpresa As Integer) As DataTable
|
||||||
|
' Get
|
||||||
|
' Dim AppNombre As String = String.Format("GlobalDTContaPlantillasPolizas-{0}", CveEmpresa)
|
||||||
|
' 'sino existe, recarga los datos
|
||||||
|
' If Application(AppNombre) Is Nothing Then
|
||||||
|
' Using ObjContabilidad As New ClsContabilidad
|
||||||
|
' If ObjContabilidad.GetConta_PlantillasPolizasDetalle(-1, CveEmpresa) Then Application(AppNombre) = ObjContabilidad.DtResultados Else Application(AppNombre) = Nothing
|
||||||
|
' End Using
|
||||||
|
' End If
|
||||||
|
|
||||||
|
' Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), String.Format("CvePlantillaPoliza = {0}", CvePlantillaPoliza), "Orden", DataViewRowState.CurrentRows)
|
||||||
|
' GlobalDTContaPlantillasPolizasDetalle = Dv.ToTable
|
||||||
|
' Dv.Dispose()
|
||||||
|
|
||||||
|
|
||||||
|
' End Get
|
||||||
|
' Set(value As DataTable)
|
||||||
|
' Dim AppNombre As String = String.Format("GlobalDTContaPlantillasPolizas-{0}", CveEmpresa)
|
||||||
|
' Application(AppNombre) = value
|
||||||
|
' End Set
|
||||||
|
'End Property
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ Namespace Extensiones
|
|||||||
MsgInformacion = 2
|
MsgInformacion = 2
|
||||||
MsgConfirmacion = 3
|
MsgConfirmacion = 3
|
||||||
MsgAdvertencia = 4
|
MsgAdvertencia = 4
|
||||||
MsgVentasDosBotones = 9
|
MsgDosBotones = 9
|
||||||
|
|
||||||
ToastInformacion = 5 'succes
|
ToastInformacion = 5 'succes
|
||||||
ToastInformacionB = 6 'info
|
ToastInformacionB = 6 'info
|
||||||
@@ -355,7 +355,7 @@ Namespace Extensiones
|
|||||||
onEscape = ""
|
onEscape = ""
|
||||||
headerclas = " header-blue "
|
headerclas = " header-blue "
|
||||||
|
|
||||||
Case TipoMensaje.MsgVentasDosBotones
|
Case TipoMensaje.MsgDosBotones
|
||||||
Titulo = "<i class='fa fa-info-circle'></i> Información"
|
Titulo = "<i class='fa fa-info-circle'></i> Información"
|
||||||
b1title = TextoConfirmacion
|
b1title = TextoConfirmacion
|
||||||
b1clas = "green"
|
b1clas = "green"
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ Partial Class Bancos_DepositosCaja
|
|||||||
CveCuentaBancariaDestino = drDestino("IdCtaContableSIG").ToString.ToEntero
|
CveCuentaBancariaDestino = drDestino("IdCtaContableSIG").ToString.ToEntero
|
||||||
End If
|
End If
|
||||||
|
|
||||||
NuevaCvePrePoliza = ObjContabilidad.AddPrePolizas("Vta", 13, TotalImportePrePoliza, TotalImportePrePoliza, CveMoneda, Fecha, "Depósito Bancario", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=1)
|
NuevaCvePrePoliza = ObjContabilidad.AddPrePolizas("DepCaja", 13, TotalImportePrePoliza, TotalImportePrePoliza, CveMoneda, Fecha, "Depósito Bancario", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoPoliza:=1)
|
||||||
|
|
||||||
|
|
||||||
If ChkIntermediario.Checked Then
|
If ChkIntermediario.Checked Then
|
||||||
|
|||||||
@@ -4886,6 +4886,8 @@ Partial Class Bancos_IE
|
|||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaEventoBitacora()
|
Private Sub CargaEventoBitacora()
|
||||||
|
|
||||||
|
If CveIE <= 0 Then Exit Sub
|
||||||
|
|
||||||
Dim ObjEventoBitacora As New ClsOIEventos()
|
Dim ObjEventoBitacora As New ClsOIEventos()
|
||||||
If ObjEventoBitacora.GetAgendaBitacora(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveIE:=CveIE) Then
|
If ObjEventoBitacora.GetAgendaBitacora(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveIE:=CveIE) Then
|
||||||
'GVEventoBitacora.DataSource = ObjEventoBitacora.DtResultados
|
'GVEventoBitacora.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
<div class="portlet-body nomarginleftright form-horizontal form-row-sepe formnombottom ">
|
||||||
<asp:GridView ID="GvMov" runat="server" AutoGenerateColumns="False" ShowHeader="False"
|
<asp:GridView ID="GvMov" runat="server" AutoGenerateColumns="False" ShowHeader="False"
|
||||||
DataKeyNames="IdMov,Cargo,Abono,TipoMovto,CveConcepto,CveConceptoContable,CveProveedor,CvePersonal, CveCompra,CveClasificacion,CveCliente,CveVenta,CveCuenta, ContadoTipoTransaccion, ContadoCuenta, ContadoNumeroFolio, ContadoImporte, ContadoBeneficiario, ContadoObservaciones"
|
DataKeyNames="IdMov,Cargo,Abono,TipoMovto,CveConcepto,CveConceptoContable,CveProveedor,CvePersonal, CveCompra,CveClasificacion,CveCliente,CveVenta,CveCuenta, ContadoTipoTransaccion, ContadoCuenta, ContadoNumeroFolio, ContadoImporte, ContadoBeneficiario, ContadoObservaciones,EsComplementaria"
|
||||||
Width="100%" CssClass=" GvMov GvSize table table-striped table-advance table-hover mysmallbtn" GridLines="None">
|
Width="100%" CssClass=" GvMov GvSize table table-striped table-advance table-hover mysmallbtn" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -392,6 +392,9 @@
|
|||||||
<HeaderTemplate>Cargo</HeaderTemplate>
|
<HeaderTemplate>Cargo</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtCargo" CssClass="txtcargo" runat="server" Style="text-align: right" Width="65px" Visible="False"></asp:TextBox>
|
<asp:TextBox ID="TxtCargo" CssClass="txtcargo" runat="server" Style="text-align: right" Width="65px" Visible="False"></asp:TextBox>
|
||||||
|
<div id="divCargoME" runat="server" Visible="False">ME:<asp:TextBox ID="TxtCargoME" CssClass="" runat="server" Style="text-align: right" Width="55px"></asp:TextBox>
|
||||||
|
TC:<asp:TextBox ID="TxtTC" CssClass="" runat="server" Style="text-align: right" Width="45px"></asp:TextBox>
|
||||||
|
</div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Right" />
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
@@ -399,6 +402,7 @@
|
|||||||
<HeaderTemplate>Abono</HeaderTemplate>
|
<HeaderTemplate>Abono</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:TextBox ID="TxtAbono" CssClass="txtabono" runat="server" Style="text-align: right" Width="65px" Visible="False"></asp:TextBox>
|
<asp:TextBox ID="TxtAbono" CssClass="txtabono" runat="server" Style="text-align: right" Width="65px" Visible="False"></asp:TextBox>
|
||||||
|
<div id="divAbonoME" runat="server" Visible="False">ME:<asp:TextBox ID="TxtAbonoME" CssClass="" runat="server" Style="text-align: right" Width="55px" ></asp:TextBox></div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Right" />
|
<ItemStyle HorizontalAlign="Right" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|||||||
@@ -334,6 +334,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
.Add("ContadoObservaciones", Type.GetType("System.String"))
|
.Add("ContadoObservaciones", Type.GetType("System.String"))
|
||||||
.Add("PorcentajeImpuesto", Type.GetType("System.Double"))
|
.Add("PorcentajeImpuesto", Type.GetType("System.Double"))
|
||||||
.Add("Modificado", Type.GetType("System.Boolean"))
|
.Add("Modificado", Type.GetType("System.Boolean"))
|
||||||
|
.Add("EsComplementaria", Type.GetType("System.Boolean"))
|
||||||
|
|
||||||
|
|
||||||
End With
|
End With
|
||||||
@@ -738,6 +739,8 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Dim CvePlantilla As Integer = DdlPlantilla.SelectedValue.ToEntero
|
Dim CvePlantilla As Integer = DdlPlantilla.SelectedValue.ToEntero
|
||||||
|
|
||||||
Dim Dt As DataTable = GlobalDTContaPlantillasPolizasDetalle(CvePlantilla).FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa), "Orden")
|
Dim Dt As DataTable = GlobalDTContaPlantillasPolizasDetalle(CvePlantilla).FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa), "Orden")
|
||||||
|
|
||||||
|
'Dim Dt As DataTable = GlobalDTContaPlantillasPolizasDetalle(CvePlantilla, UsuarioActual.CveEmpresa)
|
||||||
Dim Cuenta As String = ""
|
Dim Cuenta As String = ""
|
||||||
Dim IdCuenta As Integer = 0
|
Dim IdCuenta As Integer = 0
|
||||||
Dim CodigoCuenta As String = ""
|
Dim CodigoCuenta As String = ""
|
||||||
@@ -779,6 +782,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
dr("CveClasificacion") = -1
|
dr("CveClasificacion") = -1
|
||||||
dr("MultipleSubProyecto") = drt("MultipleSubProyecto")
|
dr("MultipleSubProyecto") = drt("MultipleSubProyecto")
|
||||||
dr("CveCuenta") = drt("CveCuenta")
|
dr("CveCuenta") = drt("CveCuenta")
|
||||||
|
dr("EsComplementaria") = drt("EsComplementaria")
|
||||||
'dr("FolioPoliza") = 0 'drt("FolioPoliza")
|
'dr("FolioPoliza") = 0 'drt("FolioPoliza")
|
||||||
|
|
||||||
DtMovimientos.Rows.Add(dr)
|
DtMovimientos.Rows.Add(dr)
|
||||||
@@ -835,6 +839,12 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
e.Row.FCDropDownList("DdlSubProyecto").Enabled = True
|
e.Row.FCDropDownList("DdlSubProyecto").Enabled = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If e.Row.DBCampo("EsComplementaria") = "True" Then
|
||||||
|
If e.Row.DBCampo("TipoMovto") = "0" Then e.Row.FindControl("divCargoME").Visible = True
|
||||||
|
If e.Row.DBCampo("TipoMovto") = "1" Then e.Row.FindControl("divAbonoME").Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
'Agregamos la opcion para vincular los movimientos bancarios
|
'Agregamos la opcion para vincular los movimientos bancarios
|
||||||
If e.Row.DataKey("CveConcepto").ToEntero.Contiene(41) Then
|
If e.Row.DataKey("CveConcepto").ToEntero.Contiene(41) Then
|
||||||
Dim ObjMovimientos As New ClsMovimientos
|
Dim ObjMovimientos As New ClsMovimientos
|
||||||
@@ -923,6 +933,8 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Dim alertaContabilizacion As String = "Se enviaron correctamente las siguientes pólizas:<br><br>"
|
Dim alertaContabilizacion As String = "Se enviaron correctamente las siguientes pólizas:<br><br>"
|
||||||
Dim idCuentaContabilizacion As Long = 1
|
Dim idCuentaContabilizacion As Long = 1
|
||||||
Dim Importe As Double = 0
|
Dim Importe As Double = 0
|
||||||
|
Dim ImporteME As Decimal = 0
|
||||||
|
Dim TipoCambio As Decimal = 1
|
||||||
Dim TipoMovto As Boolean = False
|
Dim TipoMovto As Boolean = False
|
||||||
Dim IdCtaContable As Integer = 0
|
Dim IdCtaContable As Integer = 0
|
||||||
|
|
||||||
@@ -948,13 +960,22 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
'End If
|
'End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
ImporteME = 0
|
||||||
|
TipoCambio = 1
|
||||||
If gvr.DataKey("TipoMovto").ToDouble > 0 Then
|
If gvr.DataKey("TipoMovto").ToDouble > 0 Then
|
||||||
Importe = gvr.FCTextBox("TxtAbono").Text.ToDouble
|
Importe = gvr.FCTextBox("TxtAbono").Text.ToDouble
|
||||||
TipoMovto = True
|
TipoMovto = True
|
||||||
|
If gvr.DataKey("EsComplementaria") = "True" Then
|
||||||
|
ImporteME = gvr.FCTextBox("TxtAbonoME").Text.ToDecimal
|
||||||
|
TipoCambio = gvr.FCTextBox("TipoCambio").Text.ToDecimal
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
Importe = gvr.FCTextBox("TxtCargo").Text.ToDouble
|
Importe = gvr.FCTextBox("TxtCargo").Text.ToDouble
|
||||||
TipoMovto = False
|
TipoMovto = False
|
||||||
|
If gvr.DataKey("EsComplementaria") = "True" Then
|
||||||
|
ImporteME = gvr.FCTextBox("TxtCargoME").Text.ToDecimal
|
||||||
|
TipoCambio = gvr.FCTextBox("TxtTC").Text.ToDecimal
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If gvr.DataKey("CveConcepto").ToEntero <> 30 Then
|
If gvr.DataKey("CveConcepto").ToEntero <> 30 Then
|
||||||
@@ -982,7 +1003,8 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
TxtFecha.Text.ToDate, IdCtaContable, -1, CveSubProyecto:=gvr.FCDropDownList("DdlSubProyecto").SelectedValue.ToEntero, CveIE:=CveIE,
|
TxtFecha.Text.ToDate, IdCtaContable, -1, CveSubProyecto:=gvr.FCDropDownList("DdlSubProyecto").SelectedValue.ToEntero, CveIE:=CveIE,
|
||||||
CveProveedor:=gvr.DataKey("CveProveedor").ToEntero, CveCompra:=gvr.DataKey("CveCompra").ToEntero,
|
CveProveedor:=gvr.DataKey("CveProveedor").ToEntero, CveCompra:=gvr.DataKey("CveCompra").ToEntero,
|
||||||
CvePersonal:=gvr.DataKey("CvePersonal").ToEntero, CveClasificacion:=gvr.DataKey("CveClasificacion").ToEntero,
|
CvePersonal:=gvr.DataKey("CvePersonal").ToEntero, CveClasificacion:=gvr.DataKey("CveClasificacion").ToEntero,
|
||||||
ImporteMX:=Importe, CveTipoGasto:=gvr.FCDropDownList("DdlTipoGasto").SelectedValue.ToEntero,
|
ImporteMX:=Importe, ImporteME:=ImporteME, TipoCambio:=TipoCambio,
|
||||||
|
CveTipoGasto:=gvr.FCDropDownList("DdlTipoGasto").SelectedValue.ToEntero,
|
||||||
CveCliente:=gvr.DataKey("CveCliente").ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCuenta:=tCveCuenta) Then
|
CveCliente:=gvr.DataKey("CveCliente").ToEntero, CveVenta:=gvr.DataKey("CveVenta").ToEntero, CveCuenta:=tCveCuenta) Then
|
||||||
Else
|
Else
|
||||||
MsgError = "No se pudo insertar el detalle de la póliza2"
|
MsgError = "No se pudo insertar el detalle de la póliza2"
|
||||||
@@ -1951,8 +1973,10 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Dim worksheet = workbook.Worksheets.Add(NombreHoja)
|
Dim worksheet = workbook.Worksheets.Add(NombreHoja)
|
||||||
|
|
||||||
Dim CvePlantilla As Integer = DdlPlantilla2.SelectedValue.ToEntero
|
Dim CvePlantilla As Integer = DdlPlantilla2.SelectedValue.ToEntero
|
||||||
|
'Dim Dt As DataTable = GlobalDTContaPlantillasPolizasDetalle(CvePlantilla, UsuarioActual.CveEmpresa)
|
||||||
Dim Dt As DataTable = GlobalDTContaPlantillasPolizasDetalle(CvePlantilla).FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa), "Orden")
|
Dim Dt As DataTable = GlobalDTContaPlantillasPolizasDetalle(CvePlantilla).FiltraParametros(String.Format("CveEmpresa={0}", UsuarioActual.CveEmpresa), "Orden")
|
||||||
|
|
||||||
|
|
||||||
Dim DtExcel As DataTable = (From row As DataRow In Dt.Rows
|
Dim DtExcel As DataTable = (From row As DataRow In Dt.Rows
|
||||||
Select New With
|
Select New With
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<asp:GridView runat="server" ID="GvGlobal" EmptyDataText="" ToolTip="" CssClass="table table-striped table-advance table-hover ScrollAD"
|
<asp:GridView runat="server" ID="GvGlobal" EmptyDataText="" ToolTip="" CssClass="table table-striped table-advance table-hover ScrollAD"
|
||||||
DataKeyNames="CveEmpresa,CveCuenta,CveConceptoContable,CveCuentaAsignacion,CveConceptoNomina, CveProveedor,CveClasificacion,CveAlmacen, IdCuenta, PorcentajeIVA, CveBancoCuenta, CveCliente, CvePersonal" AutoGenerateColumns="False"
|
DataKeyNames="CveEmpresa,CveCuenta,CveConceptoContable,CveCuentaAsignacion,CveConceptoNomina, CveProveedor,CveClasificacion,CveAlmacen, IdCuenta, PorcentajeIVA, CveBancoCuenta, CveCliente, CvePersonal" AutoGenerateColumns="False"
|
||||||
Style=" width:100%" GridLines="None">
|
Style=" width:100%" GridLines="None" Caption="Globales">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField DataField="ConceptoContable" ItemStyle-Width="150px" HeaderText="Concepto Contable" ItemStyle-HorizontalAlign="Left"/>
|
<asp:BoundField DataField="ConceptoContable" ItemStyle-Width="150px" HeaderText="Concepto Contable" ItemStyle-HorizontalAlign="Left"/>
|
||||||
<asp:BoundField DataField="CuentaCodigo" ItemStyle-Width="100px" HeaderText="Código Cuenta" ItemStyle-HorizontalAlign="Left"/>
|
<asp:BoundField DataField="CuentaCodigo" ItemStyle-Width="100px" HeaderText="Código Cuenta" ItemStyle-HorizontalAlign="Left"/>
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ Partial Class Contabilidad2_CatCuentasAsignaciones
|
|||||||
DdlPersonal.ddl.DataSource = ""
|
DdlPersonal.ddl.DataSource = ""
|
||||||
DdlPersonal.ddl.DataBind()
|
DdlPersonal.ddl.DataBind()
|
||||||
DdlPersonal.setEsWebService(True)
|
DdlPersonal.setEsWebService(True)
|
||||||
|
HdnCveCuentaAsignacion.Value = ""
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub LbAgregar_Click(sender As Object, e As EventArgs) Handles LbAgregar.Click
|
Protected Sub LbAgregar_Click(sender As Object, e As EventArgs) Handles LbAgregar.Click
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Partial Class General_SaldosIniciales
|
|||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
TxtFecha.Text = Now.ToShortDateString
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1695,7 +1695,7 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim Cuenta As String = ""
|
Dim Cuenta As String = ""
|
||||||
Dim Reporte As New StringBuilder
|
Dim Reporte As New StringBuilder
|
||||||
Dim SubProTemp As DataTable = GlobalDTSubProyectos(-1, -1, CveEmpresa:=UsuarioActual.CveEmpresa)
|
Dim SubProTemp As DataTable = GlobalDTSubProyectos(-1, -1, CveEmpresa:=UsuarioActual.CveEmpresa)
|
||||||
CvePrePoliza = ObjConta.AddPrePolizas("SI", 1, 0, 0, 1, Now.ToDate, "Saldos Iniciales", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
CvePrePoliza = ObjConta.AddPrePolizas("SI", 1, 0, 0, 1, TxtFecha.Text.ToDate, "Saldos Iniciales", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
For Each Row As DataRow In dt.Rows
|
For Each Row As DataRow In dt.Rows
|
||||||
NombreCuenta = Row("NombreCuenta").ToString
|
NombreCuenta = Row("NombreCuenta").ToString
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ Partial Class Inventarios_AjustesSeccionAlmacen
|
|||||||
|
|
||||||
Dim Fecha As Date = DateTime.Now
|
Dim Fecha As Date = DateTime.Now
|
||||||
'AGREGAMOS LA ENTRADA
|
'AGREGAMOS LA ENTRADA
|
||||||
Dim CveMovimientoSalida As Integer = ObjInventario.AddMovimiento(CveAlmacen, 3, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1,
|
Dim CveMovimientoSalida As Integer = ObjInventario.AddMovimiento(CveAlmacen, 44, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1,
|
||||||
Observaciones:="", Modulo:="ASA/G1")
|
Observaciones:="", Modulo:="ASA/G1")
|
||||||
Folio = ObjInventario.Folio
|
Folio = ObjInventario.Folio
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ Partial Class Inventarios_AjustesSeccionAlmacen
|
|||||||
If ObjInventario.GetMovimientosDetalle(CveMovimientoSalida, UsuarioActual.CveEmpresa) Then
|
If ObjInventario.GetMovimientosDetalle(CveMovimientoSalida, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
Dim resultado As DataTable = ObjInventario.DtResultados
|
Dim resultado As DataTable = ObjInventario.DtResultados
|
||||||
CveMovimientoEntrada = ObjInventario.AddMovimiento(CveAlmacen, 2, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, Observaciones:="", CveMovimientoRelacionado:=CveMovimientoSalida, Modulo:="ASA/G1")
|
CveMovimientoEntrada = ObjInventario.AddMovimiento(CveAlmacen, 43, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, Observaciones:="", CveMovimientoRelacionado:=CveMovimientoSalida, Modulo:="ASA/G1")
|
||||||
Dim ind As Integer = 0
|
Dim ind As Integer = 0
|
||||||
|
|
||||||
For Each Row As DataRow In resultado.Rows
|
For Each Row As DataRow In resultado.Rows
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ Partial Class Inventarios_Kardex
|
|||||||
|
|
||||||
If CveProducto > 0 Then
|
If CveProducto > 0 Then
|
||||||
Dim DtTemp = CargarKardex(CveProducto)
|
Dim DtTemp = CargarKardex(CveProducto)
|
||||||
If DtTemp IsNot Nothing Then
|
If DtTemp IsNot Nothing AndAlso DtTemp.Rows.Count > 0 Then
|
||||||
Dim AplicaSeccion, AplicaLote, AplicaCaducidad, AplicaSerie As Boolean
|
Dim AplicaSeccion, AplicaLote, AplicaCaducidad, AplicaSerie As Boolean
|
||||||
AplicaSerie = DtTemp.MAX("Serie") <> ""
|
AplicaSerie = DtTemp.MAX("Serie") <> ""
|
||||||
AplicaSeccion = DtTemp.MAX("SeccionAlmacen") <> ""
|
AplicaSeccion = DtTemp.MAX("SeccionAlmacen") <> ""
|
||||||
@@ -223,7 +223,7 @@ Partial Class Inventarios_Kardex
|
|||||||
If Not String.IsNullOrWhiteSpace(UsuarioActual.Empresa.Funcionalidad(147)) Then GvM.Columns(11).HeaderText = UsuarioActual.Empresa.Funcionalidad(147)
|
If Not String.IsNullOrWhiteSpace(UsuarioActual.Empresa.Funcionalidad(147)) Then GvM.Columns(11).HeaderText = UsuarioActual.Empresa.Funcionalidad(147)
|
||||||
|
|
||||||
|
|
||||||
Dim Drp As datarow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CveProducto).FiltroPrimero("")
|
Dim Drp As DataRow = GlobalDTPS(UsuarioActual.CveEmpresa, CvePS:=CveProducto).FiltroPrimero("")
|
||||||
Dim AuxAplicaSerie As Boolean
|
Dim AuxAplicaSerie As Boolean
|
||||||
Dim AuxAplicaCad As Boolean
|
Dim AuxAplicaCad As Boolean
|
||||||
If Drp IsNot Nothing Then
|
If Drp IsNot Nothing Then
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ public partial class Inventarios_RepTraspasoEmitido : ClsPaginas
|
|||||||
ObjInv.Dispose();
|
ObjInv.Dispose();
|
||||||
GvDatos.DataBind();
|
GvDatos.DataBind();
|
||||||
UpDatos.Update();
|
UpDatos.Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void GvDatos_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -483,7 +483,7 @@
|
|||||||
|
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
<asp:label runat="server" ID="LtlSubProyectoConfigurado"> </asp:label>
|
<asp:Label runat="server" ID="LtlSubProyectoConfigurado"> </asp:Label>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlSubProyectoConfigurado" runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
<asp:Literal ID="LtlSubProyectoConfigurado" runat="server" Text='<%# Eval("SubProyecto") %>'></asp:Literal>
|
||||||
@@ -971,11 +971,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<asp:TextBox ID="TxtFoto" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1119,6 +1114,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<asp:TextBox ID="TxtFoto" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<asp:CheckBox ID="chkcontinuarAgregando" Checked="true" TextAlign="Left" Text="Continuar agregando:" runat="server" />
|
<asp:CheckBox ID="chkcontinuarAgregando" Checked="true" TextAlign="Left" Text="Continuar agregando:" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5465,6 +5465,8 @@ Partial Class RH_Personal
|
|||||||
FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
FileExtension = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
||||||
filemove = fileItem.filename
|
filemove = fileItem.filename
|
||||||
|
|
||||||
|
Dim dir As String = String.Format("{0}RH\Personal\", UsuarioActual.Empresa.Ruta)
|
||||||
|
System.IO.Directory.CreateDirectory(dir)
|
||||||
Dim yaExistente As String = String.Format("{0}RH\Personal\{1}.jpg", UsuarioActual.Empresa.Ruta, CvePersonal)
|
Dim yaExistente As String = String.Format("{0}RH\Personal\{1}.jpg", UsuarioActual.Empresa.Ruta, CvePersonal)
|
||||||
Dim yaExistentePNG As String = String.Format("{0}RH\Personal\{1}.png", UsuarioActual.Empresa.Ruta, CvePersonal)
|
Dim yaExistentePNG As String = String.Format("{0}RH\Personal\{1}.png", UsuarioActual.Empresa.Ruta, CvePersonal)
|
||||||
Dim yaExistenteBMP As String = String.Format("{0}RH\Personal\{1}.bmp", UsuarioActual.Empresa.Ruta, CvePersonal)
|
Dim yaExistenteBMP As String = String.Format("{0}RH\Personal\{1}.bmp", UsuarioActual.Empresa.Ruta, CvePersonal)
|
||||||
|
|||||||
@@ -7130,7 +7130,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If ValidaExistencia AndAlso DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False AndAlso Not RegistroxOC Then
|
If ValidaExistencia AndAlso DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False AndAlso Not RegistroxOC Then
|
||||||
'VALIDA EXISTENCIA
|
'VALIDA EXISTENCIA
|
||||||
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119}) Then
|
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 140, 153}) Then
|
||||||
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
||||||
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
@@ -8822,7 +8822,7 @@ Partial Class Ventas
|
|||||||
Liga2 = $"document.location.href=""/Ventas/Clientes.aspx?CveCliente={CveCliente}"";"
|
Liga2 = $"document.location.href=""/Ventas/Clientes.aspx?CveCliente={CveCliente}"";"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Alert(MensajeAlert.ToString(), TipoMensaje.MsgVentasDosBotones, Liga, TextoConfirmacion:="Seguir Registrando", TextoSegundoBoton:="Ir al Cliente", JSBtn2:=Liga2)
|
Alert(MensajeAlert.ToString(), TipoMensaje.MsgDosBotones, Liga, TextoConfirmacion:="Seguir Registrando", TextoSegundoBoton:="Ir al Cliente", JSBtn2:=Liga2)
|
||||||
|
|
||||||
MensajeAlert.Clear()
|
MensajeAlert.Clear()
|
||||||
|
|
||||||
@@ -13484,7 +13484,7 @@ Partial Class Ventas
|
|||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CveConceptoAlmacen = 3 AndAlso UsuarioActual.CveEmpresa.Contiene({72, 80, 119}) AndAlso DdlTipoComprobante.SelectedValue.Contiene("Rem", "Ing") AndAlso Dr("EntregaDirecta").ToString().ToEntero() < 1 Then
|
If CveConceptoAlmacen = 3 AndAlso UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 140, 141}) AndAlso DdlTipoComprobante.SelectedValue.Contiene("Rem", "Ing") AndAlso Dr("EntregaDirecta").ToString().ToEntero() < 1 Then
|
||||||
Existencia = ObjInventario.GetExistenciasPS(CveProducto, CveUnidad, UsuarioActual.CveEmpresa, CveAlmacen, FechaMovto:=DateTime.Today.AddDays(1).ToString("yyyy/MM/dd HH:mm"), CveSubProyecto:=DdlSubProyectoDatos.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente), ExcluyeAdelantado:=1, RestringirAlmacenes:=1, ExcluyeApartados:=1)
|
Existencia = ObjInventario.GetExistenciasPS(CveProducto, CveUnidad, UsuarioActual.CveEmpresa, CveAlmacen, FechaMovto:=DateTime.Today.AddDays(1).ToString("yyyy/MM/dd HH:mm"), CveSubProyecto:=DdlSubProyectoDatos.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente), ExcluyeAdelantado:=1, RestringirAlmacenes:=1, ExcluyeApartados:=1)
|
||||||
If Existencia < Cantidad Then
|
If Existencia < Cantidad Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
@@ -16740,7 +16740,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then
|
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then
|
||||||
'VALIDA EXISTENCIA
|
'VALIDA EXISTENCIA
|
||||||
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 153}) Then
|
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 140, 153}) Then
|
||||||
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
||||||
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
Return False
|
||||||
|
|||||||
@@ -340,6 +340,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user