Local
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -274,3 +274,4 @@ __pycache__/
|
|||||||
/App_WebReferences/WSRDLC
|
/App_WebReferences/WSRDLC
|
||||||
/wwwSIGGIT.rar
|
/wwwSIGGIT.rar
|
||||||
/Front
|
/Front
|
||||||
|
/Bin.rar
|
||||||
|
|||||||
@@ -2728,7 +2728,7 @@ Public Class ClsGenerales
|
|||||||
#Region "P A Q U E T E R I A S G U I A S"
|
#Region "P A Q U E T E R I A S G U I A S"
|
||||||
Public Function AddPaqueteriasGuias(CvePaqueteria As Integer, CvePaqueteriaGuiaTipo As Integer, CveEstatus As Integer, CveSubProyecto As Integer, Fecha As String, Rastreo As String, Guia As String, NumCajas As Integer,
|
Public Function AddPaqueteriasGuias(CvePaqueteria As Integer, CvePaqueteriaGuiaTipo As Integer, CveEstatus As Integer, CveSubProyecto As Integer, Fecha As String, Rastreo As String, Guia As String, NumCajas As Integer,
|
||||||
Peso As Double, Dimensiones As String, FechaEstimada As String, Observaciones As String, CveUsuario As Integer, CveEmpresa As Integer, Optional ImplicaCosto As Boolean = True,
|
Peso As Double, Dimensiones As String, FechaEstimada As String, Observaciones As String, CveUsuario As Integer, CveEmpresa As Integer, Optional ImplicaCosto As Boolean = True,
|
||||||
Optional EsEntregaInterna As Boolean = False) As Integer
|
Optional EsEntregaInterna As Boolean = False, Optional PolizaSeguro As String = "-1") As Integer
|
||||||
|
|
||||||
Dim Retorno As Integer = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
@@ -2755,6 +2755,7 @@ Public Class ClsGenerales
|
|||||||
.Add("@CvePaqueteriaGuiaTipo", SqlDbType.SmallInt).Value = CvePaqueteriaGuiaTipo
|
.Add("@CvePaqueteriaGuiaTipo", SqlDbType.SmallInt).Value = CvePaqueteriaGuiaTipo
|
||||||
|
|
||||||
.Add("@EsEntregaInterna", SqlDbType.Bit).Value = EsEntregaInterna
|
.Add("@EsEntregaInterna", SqlDbType.Bit).Value = EsEntregaInterna
|
||||||
|
.Add("@PolizaSeguro", SqlDbType.NVarChar).Value = PolizaSeguro
|
||||||
|
|
||||||
.Add("@CvePaqueteriaGuia", SqlDbType.Int).Direction = ParameterDirection.Output
|
.Add("@CvePaqueteriaGuia", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
|
|
||||||
|
|||||||
@@ -4851,7 +4851,6 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/Ventas/CatImpuestosLocales.aspx".ToUpper(), 394)
|
PaginaDict.Add("/Ventas/CatImpuestosLocales.aspx".ToUpper(), 394)
|
||||||
PaginaDict.Add("/Ventas/ActualizarPrecios.aspx".ToUpper(), 397)
|
PaginaDict.Add("/Ventas/ActualizarPrecios.aspx".ToUpper(), 397)
|
||||||
PaginaDict.Add("/Ventas/ClientesAbonar.aspx".ToUpper(), 321)
|
PaginaDict.Add("/Ventas/ClientesAbonar.aspx".ToUpper(), 321)
|
||||||
PaginaDict.Add("/Ventas/Reportes.aspx".ToUpper(), 567)
|
|
||||||
PaginaDict.Add("/Ventas/DiseñadorReportes.aspx".ToUpper(), 569)
|
PaginaDict.Add("/Ventas/DiseñadorReportes.aspx".ToUpper(), 569)
|
||||||
PaginaDict.Add("/Ventas/ReporteDetalle.aspx".ToUpper(), 576)
|
PaginaDict.Add("/Ventas/ReporteDetalle.aspx".ToUpper(), 576)
|
||||||
PaginaDict.Add("/Ventas/PopUpBuscarPs.aspx".ToUpper(), 13)
|
PaginaDict.Add("/Ventas/PopUpBuscarPs.aspx".ToUpper(), 13)
|
||||||
@@ -4912,7 +4911,7 @@ Public Class ClsPaginas
|
|||||||
PaginaDict.Add("/Ventas/RepVentasMensualesDetalle.aspx".ToUpper(), 721)
|
PaginaDict.Add("/Ventas/RepVentasMensualesDetalle.aspx".ToUpper(), 721)
|
||||||
PaginaDict.Add("/Ventas/MetasVendedores.aspx".ToUpper(), 722)
|
PaginaDict.Add("/Ventas/MetasVendedores.aspx".ToUpper(), 722)
|
||||||
PaginaDict.Add("/Ventas/CatMetasVendedores.aspx".ToUpper(), 723)
|
PaginaDict.Add("/Ventas/CatMetasVendedores.aspx".ToUpper(), 723)
|
||||||
PaginaDict.Add("/Ventas/RepAuxiliarFacturas.aspx".ToUpper(), 704)
|
PaginaDict.Add("/Ventas/RepAuxiliarFacturas.aspx".ToUpper(), 567)
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -460,8 +460,7 @@ Public Class ClsVentas
|
|||||||
Optional TipoDocto As String = "Cot", Optional Vigencia As Date = MinFecha, Optional CondicionesPago As Integer = -1,
|
Optional TipoDocto As String = "Cot", Optional Vigencia As Date = MinFecha, Optional CondicionesPago As Integer = -1,
|
||||||
Optional AtencionA As String = "-1", Optional PedidoContrato As String = "-1", Optional CveFormaPago33 As Integer = -1, Optional CveMetodoPago33 As Integer = -1,
|
Optional AtencionA As String = "-1", Optional PedidoContrato As String = "-1", Optional CveFormaPago33 As Integer = -1, Optional CveMetodoPago33 As Integer = -1,
|
||||||
Optional CveCliente As Integer = -1, Optional CveClienteSucursal As Integer = -1, Optional OrdenCompra As String = "-1", Optional RetIVA As Double = -1,
|
Optional CveCliente As Integer = -1, Optional CveClienteSucursal As Integer = -1, Optional OrdenCompra As String = "-1", Optional RetIVA As Double = -1,
|
||||||
Optional RetISR As Double = -1, Optional Kilometraje As Double = 0, Optional CveVendedor As Integer = -1, Optional ObsAlm As String = "", Optional FormaPaqueteria As Integer = -1,
|
Optional RetISR As Double = -1, Optional Kilometraje As Double = 0) As Boolean
|
||||||
Optional CorreoNot As String = "-1") As Boolean
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_VentasUpdate")
|
DataAdapter("PA_Vta_VentasUpdate")
|
||||||
|
|
||||||
@@ -492,10 +491,6 @@ Public Class ClsVentas
|
|||||||
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
.Add("@CveClienteSucursal", SqlDbType.Int).Value = CveClienteSucursal
|
||||||
.Add("@OrdenCompra", SqlDbType.VarChar).Value = OrdenCompra
|
.Add("@OrdenCompra", SqlDbType.VarChar).Value = OrdenCompra
|
||||||
.Add("@Kilometraje", SqlDbType.Float).Value = Kilometraje
|
.Add("@Kilometraje", SqlDbType.Float).Value = Kilometraje
|
||||||
.Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
|
|
||||||
.Add("@ObservacionesAlm", SqlDbType.NVarChar).Value = ObsAlm
|
|
||||||
.Add("@FormaPaqueteria", SqlDbType.Int).Value = FormaPaqueteria
|
|
||||||
.Add("@CorreoNotificacion", SqlDbType.NVarChar).Value = CorreoNot
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -507,6 +502,32 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function UpdateObservacionesVenta(CveVenta As Integer, CveEmpresa As Integer, CveVendedor As Integer, Observaciones As String, FormaPaqueteria As Integer, CorreoNotificaciones As String, ObservacionesAlm As String,
|
||||||
|
Pedido As String, OrdenCompra As String, FechaPago As String) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Vta_VentasObservacionesUpdate")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveVenta", SqlDbType.Int).Value = CveVenta
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@CveVendedor", SqlDbType.Int).Value = CveVendedor
|
||||||
|
.Add("@Observaciones", SqlDbType.NVarChar).Value = Observaciones
|
||||||
|
.Add("@FormaPaqueteria", SqlDbType.Int).Value = FormaPaqueteria
|
||||||
|
.Add("@CorreoNotificaciones", SqlDbType.NVarChar).Value = CorreoNotificaciones
|
||||||
|
.Add("@ObservacionesAlm", SqlDbType.NVarChar).Value = ObservacionesAlm
|
||||||
|
.Add("@Pedido", SqlDbType.NVarChar).Value = Pedido
|
||||||
|
.Add("@OrdenCompra", SqlDbType.NVarChar).Value = OrdenCompra
|
||||||
|
.Add("@FechaPago", SqlDbType.Date).Value = FechaPago
|
||||||
|
End With
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al actualizar las observaciones de la venta.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo)
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function UpdateFechaVencimientoVenta(CveVenta As Integer, FechaVencimiento As Date) As Boolean
|
Public Function UpdateFechaVencimientoVenta(CveVenta As Integer, FechaVencimiento As Date) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_VentasFechaVencimientoUpdate")
|
DataAdapter("PA_Vta_VentasFechaVencimientoUpdate")
|
||||||
@@ -1598,7 +1619,8 @@ Public Class ClsVentas
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetRepPSEcono(CveSubProyecto As Integer, CvePS As Integer, FechaI As Date, FechaF As Date, CveEmpresa As Integer, Optional CveUsuarioConsulta As Integer = -1, Optional GPO As Integer = -1,
|
Public Function GetRepPSEcono(CveSubProyecto As Integer, CvePS As Integer, FechaI As Date, FechaF As Date, CveEmpresa As Integer, Optional CveUsuarioConsulta As Integer = -1, Optional GPO As Integer = -1,
|
||||||
Optional CveMoneda As Integer = -1, Optional TipoCambio As Integer = -1, Optional TCEspecifico As Double = 0) As Boolean
|
Optional CveMoneda As Integer = -1, Optional TipoCambio As Integer = -1, Optional TCEspecifico As Double = 0,
|
||||||
|
Optional Clasificacion As String = "-1", Optional Linea As String = "-1", Optional Marca As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_RepPSEconoGet")
|
DataAdapter("PA_Vta_RepPSEconoGet")
|
||||||
|
|
||||||
@@ -1613,6 +1635,9 @@ Public Class ClsVentas
|
|||||||
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
.Add("@CveMoneda", SqlDbType.Int).Value = CveMoneda
|
||||||
.Add("@TipoCambio", SqlDbType.Int).Value = TipoCambio
|
.Add("@TipoCambio", SqlDbType.Int).Value = TipoCambio
|
||||||
.Add("@TCEspecifico", SqlDbType.Float).Value = TCEspecifico
|
.Add("@TCEspecifico", SqlDbType.Float).Value = TCEspecifico
|
||||||
|
.Add("@Clasificacion", SqlDbType.VarChar).Value = Clasificacion
|
||||||
|
.Add("@Linea", SqlDbType.VarChar).Value = Linea
|
||||||
|
.Add("@Marca", SqlDbType.VarChar).Value = Marca
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="lQzXnMYzJj9Lq03SQ9fuwegTyb4=">
|
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="0qns/0838cJFb5yp+oM76mm6SuzgFbT1201XTY4DyBY=">
|
||||||
<bindingConfigurations>
|
<bindingConfigurations>
|
||||||
<bindingConfiguration bindingType="basicHttpBinding" name="BasicHttpBinding_IRCService">
|
<bindingConfiguration bindingType="basicHttpBinding" name="BasicHttpBinding_IRCService">
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -83,6 +83,32 @@
|
|||||||
</s:sequence>
|
</s:sequence>
|
||||||
</s:complexType>
|
</s:complexType>
|
||||||
</s:element>
|
</s:element>
|
||||||
|
<s:element name="ReceiveGPSInformationMassiveXML">
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="xmlGPSInfo">
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:any processContents="lax" />
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
</s:element>
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
</s:element>
|
||||||
|
<s:element name="ReceiveGPSInformationMassiveXMLResponse">
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="ReceiveGPSInformationMassiveXMLResult">
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:any processContents="lax" />
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
</s:element>
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
</s:element>
|
||||||
</s:schema>
|
</s:schema>
|
||||||
</wsdl:types>
|
</wsdl:types>
|
||||||
<wsdl:message name="ReceiveGPSInformationSoapIn">
|
<wsdl:message name="ReceiveGPSInformationSoapIn">
|
||||||
@@ -103,6 +129,12 @@
|
|||||||
<wsdl:message name="ReceiveGPSInformation_ObjetoSoapOut">
|
<wsdl:message name="ReceiveGPSInformation_ObjetoSoapOut">
|
||||||
<wsdl:part name="parameters" element="tns:ReceiveGPSInformation_ObjetoResponse" />
|
<wsdl:part name="parameters" element="tns:ReceiveGPSInformation_ObjetoResponse" />
|
||||||
</wsdl:message>
|
</wsdl:message>
|
||||||
|
<wsdl:message name="ReceiveGPSInformationMassiveXMLSoapIn">
|
||||||
|
<wsdl:part name="parameters" element="tns:ReceiveGPSInformationMassiveXML" />
|
||||||
|
</wsdl:message>
|
||||||
|
<wsdl:message name="ReceiveGPSInformationMassiveXMLSoapOut">
|
||||||
|
<wsdl:part name="parameters" element="tns:ReceiveGPSInformationMassiveXMLResponse" />
|
||||||
|
</wsdl:message>
|
||||||
<wsdl:portType name="ReceiveGPSInfoSoap">
|
<wsdl:portType name="ReceiveGPSInfoSoap">
|
||||||
<wsdl:operation name="ReceiveGPSInformation">
|
<wsdl:operation name="ReceiveGPSInformation">
|
||||||
<wsdl:input message="tns:ReceiveGPSInformationSoapIn" />
|
<wsdl:input message="tns:ReceiveGPSInformationSoapIn" />
|
||||||
@@ -116,6 +148,10 @@
|
|||||||
<wsdl:input message="tns:ReceiveGPSInformation_ObjetoSoapIn" />
|
<wsdl:input message="tns:ReceiveGPSInformation_ObjetoSoapIn" />
|
||||||
<wsdl:output message="tns:ReceiveGPSInformation_ObjetoSoapOut" />
|
<wsdl:output message="tns:ReceiveGPSInformation_ObjetoSoapOut" />
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
<wsdl:operation name="ReceiveGPSInformationMassiveXML">
|
||||||
|
<wsdl:input message="tns:ReceiveGPSInformationMassiveXMLSoapIn" />
|
||||||
|
<wsdl:output message="tns:ReceiveGPSInformationMassiveXMLSoapOut" />
|
||||||
|
</wsdl:operation>
|
||||||
</wsdl:portType>
|
</wsdl:portType>
|
||||||
<wsdl:binding name="ReceiveGPSInfoSoap" type="tns:ReceiveGPSInfoSoap">
|
<wsdl:binding name="ReceiveGPSInfoSoap" type="tns:ReceiveGPSInfoSoap">
|
||||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||||
@@ -146,6 +182,15 @@
|
|||||||
<soap:body use="literal" />
|
<soap:body use="literal" />
|
||||||
</wsdl:output>
|
</wsdl:output>
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
<wsdl:operation name="ReceiveGPSInformationMassiveXML">
|
||||||
|
<soap:operation soapAction="http://tempuri.org/ReceiveGPSInformationMassiveXML" style="document" />
|
||||||
|
<wsdl:input>
|
||||||
|
<soap:body use="literal" />
|
||||||
|
</wsdl:input>
|
||||||
|
<wsdl:output>
|
||||||
|
<soap:body use="literal" />
|
||||||
|
</wsdl:output>
|
||||||
|
</wsdl:operation>
|
||||||
</wsdl:binding>
|
</wsdl:binding>
|
||||||
<wsdl:binding name="ReceiveGPSInfoSoap12" type="tns:ReceiveGPSInfoSoap">
|
<wsdl:binding name="ReceiveGPSInfoSoap12" type="tns:ReceiveGPSInfoSoap">
|
||||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||||
@@ -176,6 +221,15 @@
|
|||||||
<soap12:body use="literal" />
|
<soap12:body use="literal" />
|
||||||
</wsdl:output>
|
</wsdl:output>
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
<wsdl:operation name="ReceiveGPSInformationMassiveXML">
|
||||||
|
<soap12:operation soapAction="http://tempuri.org/ReceiveGPSInformationMassiveXML" style="document" />
|
||||||
|
<wsdl:input>
|
||||||
|
<soap12:body use="literal" />
|
||||||
|
</wsdl:input>
|
||||||
|
<wsdl:output>
|
||||||
|
<soap12:body use="literal" />
|
||||||
|
</wsdl:output>
|
||||||
|
</wsdl:operation>
|
||||||
</wsdl:binding>
|
</wsdl:binding>
|
||||||
<wsdl:service name="ReceiveGPSInfo">
|
<wsdl:service name="ReceiveGPSInfo">
|
||||||
<wsdl:port name="ReceiveGPSInfoSoap" binding="tns:ReceiveGPSInfoSoap">
|
<wsdl:port name="ReceiveGPSInfoSoap" binding="tns:ReceiveGPSInfoSoap">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="NuY352soI+OoFqhd5YCpuMvYvGc=">
|
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="ABzLtw767ZQUU0k4nCQPs//zQy+J7OBv8lt+paGCsS4=">
|
||||||
<bindingConfigurations>
|
<bindingConfigurations>
|
||||||
<bindingConfiguration bindingType="basicHttpBinding" name="Service1Soap">
|
<bindingConfiguration bindingType="basicHttpBinding" name="Service1Soap">
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -153,6 +153,43 @@
|
|||||||
</s:sequence>
|
</s:sequence>
|
||||||
</s:complexType>
|
</s:complexType>
|
||||||
</s:element>
|
</s:element>
|
||||||
|
<s:element name="ConsultarPresunto">
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="RFCEmisor" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="CuentaUsuario" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="ClaveUsuario" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="RfcPresunto" type="s:string" />
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
</s:element>
|
||||||
|
<s:element name="ConsultarPresuntoResponse">
|
||||||
|
<s:complexType>
|
||||||
|
<s:sequence>
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="ConsultarPresuntoResult" type="tns:StructPresunto" />
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
|
</s:element>
|
||||||
|
<s:complexType name="StructPresunto">
|
||||||
|
<s:sequence>
|
||||||
|
<s:element minOccurs="1" maxOccurs="1" name="Estado" type="s:int" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="Mensaje" type="s:string" />
|
||||||
|
<s:element minOccurs="1" maxOccurs="1" name="Numero" type="s:int" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="Rfc" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="Nombre" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="Situacion" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="NumeroOficioSATPresuncion" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="PublicacionSATPresuncion" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="NumeroFechaOficioDOF" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="PublicacionDOFPresuncion" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="PubicacionSATDesvirtuado" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="NumeroOficioDesvirtuado" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="PublicacionDOFDesvirtuado" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="NumeroOficioDefinitivo" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="PublicacionSATDefinitivo" type="s:string" />
|
||||||
|
<s:element minOccurs="0" maxOccurs="1" name="PublicacionDOFDefinitivo" type="s:string" />
|
||||||
|
</s:sequence>
|
||||||
|
</s:complexType>
|
||||||
<s:element name="ConsultarCfdisEmitidos">
|
<s:element name="ConsultarCfdisEmitidos">
|
||||||
<s:complexType>
|
<s:complexType>
|
||||||
<s:sequence>
|
<s:sequence>
|
||||||
@@ -242,6 +279,12 @@
|
|||||||
<wsdl:message name="ConsultarCancelacionSoapOut">
|
<wsdl:message name="ConsultarCancelacionSoapOut">
|
||||||
<wsdl:part name="parameters" element="tns:ConsultarCancelacionResponse" />
|
<wsdl:part name="parameters" element="tns:ConsultarCancelacionResponse" />
|
||||||
</wsdl:message>
|
</wsdl:message>
|
||||||
|
<wsdl:message name="ConsultarPresuntoSoapIn">
|
||||||
|
<wsdl:part name="parameters" element="tns:ConsultarPresunto" />
|
||||||
|
</wsdl:message>
|
||||||
|
<wsdl:message name="ConsultarPresuntoSoapOut">
|
||||||
|
<wsdl:part name="parameters" element="tns:ConsultarPresuntoResponse" />
|
||||||
|
</wsdl:message>
|
||||||
<wsdl:message name="ConsultarCfdisEmitidosSoapIn">
|
<wsdl:message name="ConsultarCfdisEmitidosSoapIn">
|
||||||
<wsdl:part name="parameters" element="tns:ConsultarCfdisEmitidos" />
|
<wsdl:part name="parameters" element="tns:ConsultarCfdisEmitidos" />
|
||||||
</wsdl:message>
|
</wsdl:message>
|
||||||
@@ -290,6 +333,11 @@
|
|||||||
<wsdl:input message="tns:ConsultarCancelacionSoapIn" />
|
<wsdl:input message="tns:ConsultarCancelacionSoapIn" />
|
||||||
<wsdl:output message="tns:ConsultarCancelacionSoapOut" />
|
<wsdl:output message="tns:ConsultarCancelacionSoapOut" />
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
<wsdl:operation name="ConsultarPresunto">
|
||||||
|
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consultar un CFDI directamente por UUID y Fecha</wsdl:documentation>
|
||||||
|
<wsdl:input message="tns:ConsultarPresuntoSoapIn" />
|
||||||
|
<wsdl:output message="tns:ConsultarPresuntoSoapOut" />
|
||||||
|
</wsdl:operation>
|
||||||
<wsdl:operation name="ConsultarCfdisEmitidos">
|
<wsdl:operation name="ConsultarCfdisEmitidos">
|
||||||
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consultar los CFDIs emitidos por rango de fecha</wsdl:documentation>
|
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consultar los CFDIs emitidos por rango de fecha</wsdl:documentation>
|
||||||
<wsdl:input message="tns:ConsultarCfdisEmitidosSoapIn" />
|
<wsdl:input message="tns:ConsultarCfdisEmitidosSoapIn" />
|
||||||
@@ -366,6 +414,15 @@
|
|||||||
<soap:body use="literal" />
|
<soap:body use="literal" />
|
||||||
</wsdl:output>
|
</wsdl:output>
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
<wsdl:operation name="ConsultarPresunto">
|
||||||
|
<soap:operation soapAction="http://tempuri.org/ConsultarPresunto" style="document" />
|
||||||
|
<wsdl:input>
|
||||||
|
<soap:body use="literal" />
|
||||||
|
</wsdl:input>
|
||||||
|
<wsdl:output>
|
||||||
|
<soap:body use="literal" />
|
||||||
|
</wsdl:output>
|
||||||
|
</wsdl:operation>
|
||||||
<wsdl:operation name="ConsultarCfdisEmitidos">
|
<wsdl:operation name="ConsultarCfdisEmitidos">
|
||||||
<soap:operation soapAction="http://tempuri.org/ConsultarCfdisEmitidos" style="document" />
|
<soap:operation soapAction="http://tempuri.org/ConsultarCfdisEmitidos" style="document" />
|
||||||
<wsdl:input>
|
<wsdl:input>
|
||||||
@@ -450,6 +507,15 @@
|
|||||||
<soap12:body use="literal" />
|
<soap12:body use="literal" />
|
||||||
</wsdl:output>
|
</wsdl:output>
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
<wsdl:operation name="ConsultarPresunto">
|
||||||
|
<soap12:operation soapAction="http://tempuri.org/ConsultarPresunto" style="document" />
|
||||||
|
<wsdl:input>
|
||||||
|
<soap12:body use="literal" />
|
||||||
|
</wsdl:input>
|
||||||
|
<wsdl:output>
|
||||||
|
<soap12:body use="literal" />
|
||||||
|
</wsdl:output>
|
||||||
|
</wsdl:operation>
|
||||||
<wsdl:operation name="ConsultarCfdisEmitidos">
|
<wsdl:operation name="ConsultarCfdisEmitidos">
|
||||||
<soap12:operation soapAction="http://tempuri.org/ConsultarCfdisEmitidos" style="document" />
|
<soap12:operation soapAction="http://tempuri.org/ConsultarCfdisEmitidos" style="document" />
|
||||||
<wsdl:input>
|
<wsdl:input>
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
<xs:complexType name="Acuse">
|
<xs:complexType name="Acuse">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element minOccurs="0" name="CodigoEstatus" nillable="true" type="xs:string" />
|
<xs:element minOccurs="0" name="CodigoEstatus" nillable="true" type="xs:string" />
|
||||||
|
<xs:element minOccurs="0" name="EsCancelable" nillable="true" type="xs:string" />
|
||||||
<xs:element minOccurs="0" name="Estado" nillable="true" type="xs:string" />
|
<xs:element minOccurs="0" name="Estado" nillable="true" type="xs:string" />
|
||||||
|
<xs:element minOccurs="0" name="EstatusCancelacion" nillable="true" type="xs:string" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
<xs:element name="Acuse" nillable="true" type="tns:Acuse" />
|
<xs:element name="Acuse" nillable="true" type="tns:Acuse" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="pOmVJStm5hxCRlvTFTVnICnM8aQ=">
|
<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="WiujLa2Wexk6dRbNVWygD/ahBFk/T12zxoYVy0Rah2Y=">
|
||||||
<bindingConfigurations>
|
<bindingConfigurations>
|
||||||
<bindingConfiguration bindingType="basicHttpBinding" name="BasicHttpBinding_IConsultaCFDIService">
|
<bindingConfiguration bindingType="basicHttpBinding" name="BasicHttpBinding_IConsultaCFDIService">
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvESC" runat="server" DataKeyNames="CveIE, Saldo, CveMoneda, CveConceptoContable, CveProveedor, CvePersonal" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros de Egresos sin Comprobar de Proveedores" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None">
|
<asp:GridView ID="GvESC" runat="server" DataKeyNames="CveIE, Saldo, CveMoneda, CveConceptoContable, CveProveedor, CvePersonal,CveSubProyecto" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros de Egresos sin Comprobar de Proveedores" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="10%">
|
<asp:TemplateField ItemStyle-Width="10%">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -219,7 +219,7 @@
|
|||||||
<asp:UpdatePanel ID="upDatosPersonal" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="upDatosPersonal" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:GridView ID="GvPersonal" runat="server" AutoGenerateColumns="False" DataKeyNames="CveIE, Saldo, CveMoneda, CveConceptoContable, CveProveedor, CvePersonal"
|
<asp:GridView ID="GvPersonal" runat="server" AutoGenerateColumns="False" DataKeyNames="CveIE, Saldo, CveMoneda, CveConceptoContable, CveProveedor, CvePersonal,CveSubProyecto"
|
||||||
EmptyDataText="No se encontraron registros de Egresos sin Comprobar de Funcionarios Empleados" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" GridLines="None">
|
EmptyDataText="No se encontraron registros de Egresos sin Comprobar de Funcionarios Empleados" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="10%">
|
<asp:TemplateField ItemStyle-Width="10%">
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ Partial Class Bancos_RepEgresosSinComprobante
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoOtIngresos, gr.DataKey("Saldo").ToDecimal, "", 78, "Saldo de ExC por Sistema", Now, -1, -1, gr.DataKey("CveIE").ToEntero,
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovtoOtIngresos, gr.DataKey("Saldo").ToDecimal, "", 78, "Saldo de ExC por Sistema", Now, -1, -1, gr.DataKey("CveIE").ToEntero,
|
||||||
ImporteMX:=gr.DataKey("Saldo").ToDecimal, CveCuenta:=CveCuenta) Then
|
ImporteMX:=gr.DataKey("Saldo").ToDecimal, CveSubProyecto:=gr.DataKey("CveSubProyecto").ToEntero, CveCuenta:=CveCuenta) Then
|
||||||
MsgError = "Ocurrio un error al saldar el movimiento"
|
MsgError = "Ocurrio un error al saldar el movimiento"
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -2835,8 +2835,8 @@ Partial Class Compras_Compras
|
|||||||
GvAnticiposSel.DataBind()
|
GvAnticiposSel.DataBind()
|
||||||
|
|
||||||
|
|
||||||
'' VALIDA ELIMINAR COMPRA
|
'' VALIDA ELIMINAR COMPRA, QUE NO TENGA PAGOS CONCILIADOS
|
||||||
If UsuarioActual.TienePermisoProceso(77) OrElse UsuarioActual.TienePermisoProceso(135) Then ' Eliminar compra
|
If (UsuarioActual.TienePermisoProceso(77) OrElse UsuarioActual.TienePermisoProceso(135)) AndAlso dr("NumPagosConciliados").ToString.ToEntero = 0 Then ' Eliminar compra
|
||||||
|
|
||||||
'SIN VINCULACIÓN
|
'SIN VINCULACIÓN
|
||||||
If UsuarioActual.TienePermisoProceso(135) Then
|
If UsuarioActual.TienePermisoProceso(135) Then
|
||||||
@@ -6347,7 +6347,6 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
Dim RegistraConcepto225 As Boolean = UsuarioActual.Empresa.UsaInventarios AndAlso DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") AndAlso Not UsuarioActual.Empresa.Funcionalidad(126) = "1"
|
Dim RegistraConcepto225 As Boolean = UsuarioActual.Empresa.UsaInventarios AndAlso DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") AndAlso Not UsuarioActual.Empresa.Funcionalidad(126) = "1"
|
||||||
|
|
||||||
|
|
||||||
Dim Insertado205 As Boolean = False
|
Dim Insertado205 As Boolean = False
|
||||||
|
|
||||||
If RBLPago.SelectedValue.ToEntero = 4 Then
|
If RBLPago.SelectedValue.ToEntero = 4 Then
|
||||||
@@ -6392,15 +6391,42 @@ Partial Class Compras_Compras
|
|||||||
If UsuarioActual.Empresa.UsaInventarios AndAlso Not UsuarioActual.Empresa.Funcionalidad(126) = "1" Then
|
If UsuarioActual.Empresa.UsaInventarios AndAlso Not UsuarioActual.Empresa.Funcionalidad(126) = "1" Then
|
||||||
DT = TmpDT.FiltraParametros("ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) > 0", "", {"CveAlmacen"})
|
DT = TmpDT.FiltraParametros("ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) > 0", "", {"CveAlmacen"})
|
||||||
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
||||||
For Each Dr As DataRow In DT.Rows
|
'SI LA COMPRA ES DE TIPO GASTO CON ALMACEN DEBE REGISTRAR MOVIMIENTO
|
||||||
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
If DdlTipoCompra.SelectedValue <> "10" Then
|
||||||
Dr("CveAlmacen") = 0
|
For Each Dr As DataRow In DT.Rows
|
||||||
End If
|
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
||||||
Dr.AcceptChanges()
|
Dr("CveAlmacen") = 0
|
||||||
Next
|
End If
|
||||||
|
Dr.AcceptChanges()
|
||||||
|
Next
|
||||||
|
End If
|
||||||
DT.AcceptChanges()
|
DT.AcceptChanges()
|
||||||
DT = DT.FiltraParametros("ISNULL(CveAlmacen,0) > 0")
|
DT = DT.FiltraParametros("ISNULL(CveAlmacen,0) > 0")
|
||||||
If DT.Rows.Count > 0 AndAlso Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
|
If DT.Rows.Count > 0 AndAlso Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
|
||||||
|
|
||||||
|
'SI ES GASTO CON ALMACEN
|
||||||
|
If DdlTipoCompra.SelectedValue = "10" Then
|
||||||
|
For Each RowDetalle As DataRow In TmpDT.FiltraParametros("ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) > 0", "", {"CveAlmacen", "CveClasificacion", "CveSubProyecto"}).Rows
|
||||||
|
|
||||||
|
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"CveAlmacen = {RowDetalle("CveAlmacen")}").ToString.ToDecimal + TmpDT.SUM("CostoIndirectoAlmacen", $"CveAlmacen = {RowDetalle("CveAlmacen")}").ToString.ToDecimal 'Row2("Total").ToString.ToDecimal + Row2("CostoIndirectoAlmacen").ToString.ToDecimal
|
||||||
|
importeMN = importeMovimiento * tipoCambioActual * Multiplicador
|
||||||
|
|
||||||
|
If ObjConta.GetRetCuenta(6, RowDetalle("CveClasificacion").ToString().ToEntero()) Then
|
||||||
|
If ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
|
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaGasto").ToString.ToEntero
|
||||||
|
CveCuenta = ObjConta.DtResultados.Rows(0)("IdCuentaGastoSIG").ToString.ToEntero
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If importeMN <> 0 Then
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMN, Referencia, 6, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, TipoCambio:=tipoCambioActual,
|
||||||
|
CveClasificacion:=RowDetalle("CveClasificacion").ToString().ToEntero(), CveSubProyecto:=RowDetalle("CveSubProyecto").ToString().ToEntero(), Contabilizable:=SeContabiliza) Then
|
||||||
|
ErrorPrepoliza = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
For Each Row2 As DataRow In DT.Rows
|
For Each Row2 As DataRow In DT.Rows
|
||||||
|
|
||||||
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"CveAlmacen = {Row2("CveAlmacen")}").ToString.ToDecimal + TmpDT.SUM("CostoIndirectoAlmacen", $"CveAlmacen = {Row2("CveAlmacen")}").ToString.ToDecimal 'Row2("Total").ToString.ToDecimal + Row2("CostoIndirectoAlmacen").ToString.ToDecimal
|
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"CveAlmacen = {Row2("CveAlmacen")}").ToString.ToDecimal + TmpDT.SUM("CostoIndirectoAlmacen", $"CveAlmacen = {Row2("CveAlmacen")}").ToString.ToDecimal 'Row2("Total").ToString.ToDecimal + Row2("CostoIndirectoAlmacen").ToString.ToDecimal
|
||||||
@@ -6418,15 +6444,16 @@ Partial Class Compras_Compras
|
|||||||
idCuentaContabilizacion = 0
|
idCuentaContabilizacion = 0
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'SI ES GASTO DE ALMACEN NO DEBE CONTABILIZAR CONCEPTO 68
|
'SI ES GASTO CON ALMACEN NO DEBE CONTABILIZAR CONCEPTO 68
|
||||||
If DdlTipoCompra.SelectedValue = "10" Then
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMN, Referencia, 68, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveMovimientoAlmacen:=CveMovimientoInventario, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, TipoCambio:=tipoCambioActual, Contabilizable:=If(DdlTipoCompra.SelectedValue = "10", False, SeContabiliza)) Then
|
||||||
SeContabiliza = False
|
ErrorPrepoliza = True
|
||||||
IdCtaContable = 0
|
|
||||||
CveCuenta = 0
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMN, Referencia, 68, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveMovimientoAlmacen:=CveMovimientoInventario, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, TipoCambio:=tipoCambioActual, Contabilizable:=SeContabiliza) Then
|
'SI ES GASTO CON ALMACEN REGISTRA EL CONCEPTO 95
|
||||||
ErrorPrepoliza = True
|
If DdlTipoCompra.SelectedValue = "10" Then
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, Not TipoMovimiento, importeMN, Referencia, 95, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveMovimientoAlmacen:=CveMovimientoInventario, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, TipoCambio:=tipoCambioActual, Contabilizable:=False) Then
|
||||||
|
ErrorPrepoliza = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
' si agrego en almacen, ya no se ocupa algun concepto puente
|
' si agrego en almacen, ya no se ocupa algun concepto puente
|
||||||
AgregaMercanciaInventario = False
|
AgregaMercanciaInventario = False
|
||||||
@@ -6462,7 +6489,15 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
Dim UsaComplementariaFleteImportaciones As Boolean = False
|
Dim UsaComplementariaFleteImportaciones As Boolean = False
|
||||||
|
|
||||||
|
'DEBE METER EL CONCEPTO DE COMPRAS SI EL TIPO ES GASTO CON ALMACEN
|
||||||
|
If DdlTipoCompra.SelectedValue = "10" Then
|
||||||
|
ConceptoContabilizacion = 6
|
||||||
|
End If
|
||||||
|
|
||||||
Select Case ConceptoContabilizacion
|
Select Case ConceptoContabilizacion
|
||||||
|
Case 6
|
||||||
|
importeMovimiento = TmpDT.SUMD(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"))
|
||||||
|
importeMN = importeMovimiento * tipoCambioActual * Multiplicador 'TIENE QUE TENER EL IMPORTEMN IGUAL AL IMPORTEMOVIMIENTO PORQUE NO TOMA EN CUENTA SI UN PRODUCTO ES TIPO SERVICIO
|
||||||
Case 176
|
Case 176
|
||||||
ConceptoContabilizacionME = 228
|
ConceptoContabilizacionME = 228
|
||||||
ConceptoContabilizacionMEComp = 229
|
ConceptoContabilizacionMEComp = 229
|
||||||
@@ -6483,8 +6518,14 @@ Partial Class Compras_Compras
|
|||||||
importeMN = importeMovimiento * tipoCambioActual * Multiplicador 'TIENE QUE TENER EL IMPORTEMN IGUAL AL IMPORTEMOVIMIENTO PORQUE NO TOMA EN CUENTA SI UN PRODUCTO ES TIPO SERVICIO
|
importeMN = importeMovimiento * tipoCambioActual * Multiplicador 'TIENE QUE TENER EL IMPORTEMN IGUAL AL IMPORTEMOVIMIENTO PORQUE NO TOMA EN CUENTA SI UN PRODUCTO ES TIPO SERVICIO
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
If ObjConta.GetRetCuenta(ConceptoContabilizacion, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then
|
If ConceptoContabilizacion = 6 Then
|
||||||
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCtaContable").ToString.ToEntero
|
If ObjConta.GetRetCuenta(ConceptoContabilizacion, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
|
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaGasto").ToString.ToEntero
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
If ObjConta.GetRetCuenta(ConceptoContabilizacion, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
|
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCtaContable").ToString.ToEntero
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjConta.GetRetCuenta(ConceptoContabilizacionME, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then
|
If ObjConta.GetRetCuenta(ConceptoContabilizacionME, UsuarioActual.CveEmpresa) AndAlso ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
@@ -6578,6 +6619,26 @@ Partial Class Compras_Compras
|
|||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Case 6
|
||||||
|
Concepto = $"{NombreProveedor} {TxtSerie.Text} - {TxtFolio.Text}"
|
||||||
|
|
||||||
|
For Each RowDetalle As DataRow In TmpDT.FiltraParametros("ISNULL(TipoAF,0) <> 2", "", {"CveClasificacion", "CveSubProyecto"}).Rows
|
||||||
|
|
||||||
|
If ObjConta.GetRetCuenta(6, RowDetalle("CveClasificacion").ToString().ToEntero()) Then
|
||||||
|
If ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
|
IdCtaContable = ObjConta.DtResultados.Rows(0)("IdCuentaGasto").ToString.ToEntero
|
||||||
|
CveCuenta = ObjConta.DtResultados.Rows(0)("IdCuentaGastoSIG").ToString.ToEntero
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If importeMN <> 0 Then
|
||||||
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, TipoMovimiento, importeMN, Referencia, 6, Concepto, FechaMovimiento, IdCtaContable, -1, CveCompra:=CveCompra, CveProveedor:=CveProveedorConcepto, CveAcreedor:=CveAcreedor, CveIE:=CveIE, CvePersonal:=CvePersonal, CveColectiva:=CveColectiva, CveCreditoDetalle:=CveCreditoDetalle, ImporteMX:=importeMN, ImporteME:=If(tipoCambioActual = 1, 0, importeMovimiento), CveCuenta:=CveCuenta, TipoCambio:=tipoCambioActual,
|
||||||
|
CveClasificacion:=RowDetalle("CveClasificacion").ToString().ToEntero(), CveSubProyecto:=RowDetalle("CveSubProyecto").ToString().ToEntero(), Contabilizable:=SeContabiliza) Then
|
||||||
|
ErrorPrepoliza = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
|
||||||
End Select
|
End Select
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
@@ -6595,8 +6656,6 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If RegistraConcepto225 Then
|
If RegistraConcepto225 Then
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) = 0 And ISNULL(AplicaCostoIndirecto,0) <> 1 And ISNULL(CveTipoPS,0) = 2").ToString.ToDecimal
|
importeMovimiento = TmpDT.SUM(If(ListaDocumentos IsNot Nothing AndAlso ListaDocumentos.Count > 0 AndAlso ArrAnticipos IsNot Nothing AndAlso ArrAnticipos.Count > 0 AndAlso TxtTotal.Text.ToDecimal = 0, "ImporteSinImpuestos", "Total"), $"ISNULL(TipoAF,0) <> 2 And ISNULL(CveAlmacen,0) = 0 And ISNULL(AplicaCostoIndirecto,0) <> 1 And ISNULL(CveTipoPS,0) = 2").ToString.ToDecimal
|
||||||
importeMN = importeMovimiento * tipoCambioActual * Multiplicador
|
importeMN = importeMovimiento * tipoCambioActual * Multiplicador
|
||||||
|
|
||||||
@@ -6682,12 +6741,15 @@ Partial Class Compras_Compras
|
|||||||
DT = TmpDT.FiltraParametros("ISNULL(AplicaCostoIndirecto,0) <> 1")
|
DT = TmpDT.FiltraParametros("ISNULL(AplicaCostoIndirecto,0) <> 1")
|
||||||
End If
|
End If
|
||||||
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
||||||
For Each Dr As DataRow In DT.Rows
|
If DdlTipoCompra.SelectedValue <> "10" Then
|
||||||
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
For Each Dr As DataRow In DT.Rows
|
||||||
Dr("CveAlmacen") = 0
|
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
||||||
End If
|
Dr("CveAlmacen") = 0
|
||||||
Dr.AcceptChanges()
|
End If
|
||||||
Next
|
Dr.AcceptChanges()
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
DT.AcceptChanges()
|
DT.AcceptChanges()
|
||||||
DtAlmacenes.Dispose()
|
DtAlmacenes.Dispose()
|
||||||
|
|
||||||
@@ -10118,12 +10180,14 @@ Partial Class Compras_Compras
|
|||||||
If UsuarioActual.Empresa.UsaInventarios AndAlso Not UsuarioActual.Empresa.Funcionalidad(126) = "1" And ConceptoContabilizacionAlmacen = 0 Then
|
If UsuarioActual.Empresa.UsaInventarios AndAlso Not UsuarioActual.Empresa.Funcionalidad(126) = "1" And ConceptoContabilizacionAlmacen = 0 Then
|
||||||
DT = TmpDT.FiltraParametros("ISNULL(TipoAF,0) <> 2 AND ISNULL(CveAlmacen,0) > 0", "", {"CveAlmacen"})
|
DT = TmpDT.FiltraParametros("ISNULL(TipoAF,0) <> 2 AND ISNULL(CveAlmacen,0) > 0", "", {"CveAlmacen"})
|
||||||
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
||||||
For Each Dr As DataRow In DT.Rows
|
If DdlTipoCompra.SelectedValue <> "10" Then
|
||||||
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
For Each Dr As DataRow In DT.Rows
|
||||||
Dr("CveAlmacen") = 0
|
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
||||||
End If
|
Dr("CveAlmacen") = 0
|
||||||
Dr.AcceptChanges()
|
End If
|
||||||
Next
|
Dr.AcceptChanges()
|
||||||
|
Next
|
||||||
|
End If
|
||||||
DT.AcceptChanges()
|
DT.AcceptChanges()
|
||||||
DT = DT.FiltraParametros("ISNULL(CveAlmacen,0) > 0")
|
DT = DT.FiltraParametros("ISNULL(CveAlmacen,0) > 0")
|
||||||
If DT.Rows.Count > 0 AndAlso Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
|
If DT.Rows.Count > 0 AndAlso Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
|
||||||
@@ -10204,12 +10268,15 @@ Partial Class Compras_Compras
|
|||||||
'GASTO
|
'GASTO
|
||||||
DT = TmpDT.Copy
|
DT = TmpDT.Copy
|
||||||
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
'RECORREMOS PARA DETECTAR LA MODALIDAD DEL ALMACEN, EN CASO DE SER SOLO EXISTENCIA LIMPIAMOS CVEALMACEN
|
||||||
For Each Dr As DataRow In DT.Rows
|
If DdlTipoCompra.SelectedValue <> "10" Then
|
||||||
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
For Each Dr As DataRow In DT.Rows
|
||||||
Dr("CveAlmacen") = 0
|
If DtAlmacenes.FiltroPrimeroValor("Modalidad", $"CveAlmacen = {Dr("CveAlmacen").ToString.ToEntero}").ToString = "Solo Existencia" Then
|
||||||
End If
|
Dr("CveAlmacen") = 0
|
||||||
Dr.AcceptChanges()
|
End If
|
||||||
Next
|
Dr.AcceptChanges()
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
DT.AcceptChanges()
|
DT.AcceptChanges()
|
||||||
DtAlmacenes.Dispose()
|
DtAlmacenes.Dispose()
|
||||||
|
|
||||||
@@ -10791,10 +10858,11 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
|
|
||||||
If e.Row.DataKey("DifPSSat").ToEntero = 1 Then
|
If e.Row.DataKey("DifPSSat").ToEntero = 1 Then
|
||||||
'#e35b5a
|
|
||||||
e.Row.BackColor = Drawing.Color.FromArgb(1, 227, 91, 90)
|
e.Row.BackColor = Drawing.ColorTranslator.FromHtml("#EFD569") 'Drawing.Color.FromArgb(1, 227, 91, 90)'#e35b5a
|
||||||
e.Row.Attributes.Add("data-toggle", "tooltip")
|
e.Row.Attributes.Add("data-toggle", "tooltip")
|
||||||
e.Row.Attributes.Add("title", "El código del producto del SAT no es igual al código del producto registrado.")
|
e.Row.Attributes.Add("data-html", "true")
|
||||||
|
e.Row.Attributes.Add("title", String.Format("El código del producto del SAT no es igual al código del producto registrado. <br/>Código XML:{0} <br/> Código Sistema:{1} ", e.Row.DBCampo("ClaveProdServ"), e.Row.DBCampo("SATClavePS")))
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -75,6 +75,23 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property listacolores As List(Of String)
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listacolores"), List(Of String))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String))
|
||||||
|
ViewState("listacolores") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
Private Property listaCampos As List(Of String())
|
||||||
|
Get
|
||||||
|
Return DirectCast(ViewState("listaCampos"), List(Of String()))
|
||||||
|
End Get
|
||||||
|
Set(value As List(Of String()))
|
||||||
|
ViewState("listaCampos") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
'Private Property ReporteComplementario As Boolean
|
'Private Property ReporteComplementario As Boolean
|
||||||
' Get
|
' Get
|
||||||
' ReporteComplementario = CBool(ViewState("ReporteComplementario").ToString)
|
' ReporteComplementario = CBool(ViewState("ReporteComplementario").ToString)
|
||||||
@@ -268,7 +285,20 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
If Not Page.IsPostBack Then
|
If Not Page.IsPostBack Then
|
||||||
|
listacolores = New List(Of String)
|
||||||
|
listaCampos = New List(Of String())
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
listacolores.Add("#FF6600")
|
||||||
|
listacolores.Add("#F8FF01")
|
||||||
|
listacolores.Add("#04D215")
|
||||||
|
listacolores.Add("#2A0CD0")
|
||||||
|
listacolores.Add("#8A0CCF")
|
||||||
|
listacolores.Add("#CD0D74")
|
||||||
|
listacolores.Add("#754DEB")
|
||||||
|
listacolores.Add("#DDDDDD")
|
||||||
|
listacolores.Add("#999999")
|
||||||
|
listacolores.Add("#000000")
|
||||||
|
listacolores.Add("#FF0F00")
|
||||||
|
|
||||||
TotalActualMes = 0
|
TotalActualMes = 0
|
||||||
TotalAnteriorMes = 0
|
TotalAnteriorMes = 0
|
||||||
@@ -892,6 +922,10 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
setgrafica(e)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
||||||
@@ -988,6 +1022,10 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
setgrafica(e)
|
||||||
|
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
||||||
@@ -1050,6 +1088,8 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
e.Row.FCHyperLink("HLDiciembre").Text = e.Row.DataKey("Diciembre").ToDecimal.ToString("###,###,##0.00")
|
e.Row.FCHyperLink("HLDiciembre").Text = e.Row.DataKey("Diciembre").ToDecimal.ToString("###,###,##0.00")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
setgrafica(e)
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
e.Row.FCHyperLink("HLEnero").ForeColor = If(e.Row.DataKey("Enero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLEnero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
e.Row.FCHyperLink("HLFebrero").ForeColor = If(e.Row.DataKey("Febrero").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLFebrero").ForeColor)
|
||||||
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
e.Row.FCHyperLink("HLMarzo").ForeColor = If(e.Row.DataKey("Marzo").ToDecimal < 0, Drawing.Color.Red, e.Row.FCHyperLink("HLMarzo").ForeColor)
|
||||||
@@ -1068,6 +1108,23 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgrafica(e As GridViewRowEventArgs)
|
||||||
|
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
lista.Add(New With {.Texto = "Enero", .Valor = e.Row.DataKey("Enero").ToDecimal(), .Color = "#FF0F00"})
|
||||||
|
lista.Add(New With {.Texto = "Febrero", .Valor = e.Row.DataKey("Febrero").ToDecimal(), .Color = "#FF6600"})
|
||||||
|
lista.Add(New With {.Texto = "Marzo", .Valor = e.Row.DataKey("Marzo").ToDecimal(), .Color = "#F8FF01"})
|
||||||
|
lista.Add(New With {.Texto = "Abril", .Valor = e.Row.DataKey("Abril").ToDecimal(), .Color = "#04D215"})
|
||||||
|
lista.Add(New With {.Texto = "Mayo", .Valor = e.Row.DataKey("Mayo").ToDecimal(), .Color = "#2A0CD0"})
|
||||||
|
lista.Add(New With {.Texto = "Junio", .Valor = e.Row.DataKey("Junio").ToDecimal(), .Color = "#8A0CCF"})
|
||||||
|
lista.Add(New With {.Texto = "Julio", .Valor = e.Row.DataKey("Julio").ToDecimal(), .Color = "#CD0D74"})
|
||||||
|
lista.Add(New With {.Texto = "Agosto", .Valor = e.Row.DataKey("Agosto").ToDecimal(), .Color = "#754DEB"})
|
||||||
|
lista.Add(New With {.Texto = "Septiembre", .Valor = e.Row.DataKey("Septiembre").ToDecimal(), .Color = "#DDDDDD"})
|
||||||
|
lista.Add(New With {.Texto = "Octubre", .Valor = e.Row.DataKey("Octubre").ToDecimal(), .Color = "#999999"})
|
||||||
|
lista.Add(New With {.Texto = "Noviembre", .Valor = e.Row.DataKey("Noviembre").ToDecimal(), .Color = "#000000"})
|
||||||
|
lista.Add(New With {.Texto = "Diciembre", .Valor = e.Row.DataKey("Diciembre").ToDecimal(), .Color = "#FF0F00"})
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
@@ -1491,7 +1548,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
CType(GvIngresosSubProyectoH.Columns(IDX_LIMPIAR), BoundField).HeaderText = ""
|
CType(GvIngresosSubProyectoH.Columns(IDX_LIMPIAR), BoundField).HeaderText = ""
|
||||||
GvIngresosSubProyectoH.Columns(IDX_LIMPIAR).Visible = False
|
GvIngresosSubProyectoH.Columns(IDX_LIMPIAR).Visible = False
|
||||||
Next
|
Next
|
||||||
|
listaCampos.Clear()
|
||||||
|
|
||||||
|
|
||||||
If DtIngresosSubProyectoH.Rows.Count > 0 Then
|
If DtIngresosSubProyectoH.Rows.Count > 0 Then
|
||||||
@@ -1513,7 +1570,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
CType(GvTotalesSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
CType(GvTotalesSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
||||||
CType(GvGastosSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
CType(GvGastosSubProyectoH.Columns(IndexGv), BoundField).HeaderText = DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString
|
||||||
End If
|
End If
|
||||||
|
listaCampos.Add(New String() {dCoumn.ColumnName.ToString(), DTSubProyectosCabecerasH.Rows(IndexSubProyecto)(0).ToString()})
|
||||||
Else
|
Else
|
||||||
GvIngresosSubProyectoH.Columns(IndexGv).Visible = False
|
GvIngresosSubProyectoH.Columns(IndexGv).Visible = False
|
||||||
GvTotalesSubProyectoH.Columns(IndexGv).Visible = False
|
GvTotalesSubProyectoH.Columns(IndexGv).Visible = False
|
||||||
@@ -1678,9 +1735,8 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
e.Row.ControlStyle.Font.Bold = True
|
e.Row.ControlStyle.Font.Bold = True
|
||||||
e.Row.ControlStyle.Font.Size = 13
|
e.Row.ControlStyle.Font.Size = 13
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
Dim CveCuenta As Integer = e.Row.DataKey("CveCuenta").ToEntero
|
Dim CveCuenta As Integer = e.Row.DataKey("CveCuenta").ToEntero
|
||||||
|
setgraficaCC(e)
|
||||||
'Dim CveSubProyecto As Integer = e.Row.DataKey("CveSubProyecto").ToEntero
|
'Dim CveSubProyecto As Integer = e.Row.DataKey("CveSubProyecto").ToEntero
|
||||||
If e.Row.DBCampo("CtaMayor").ToString.ToEntero > 0 Then
|
If e.Row.DBCampo("CtaMayor").ToString.ToEntero > 0 Then
|
||||||
|
|
||||||
@@ -1733,9 +1789,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
e.Row.FCHyperLink("HLAnterior").Text = If(DdlDivisor.SelectedValue.ToEntero > 1, e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0"), e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0.00"))
|
e.Row.FCHyperLink("HLAnterior").Text = If(DdlDivisor.SelectedValue.ToEntero > 1, e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0"), e.Row.DBCampo("ImporteAcumulado").ToString.ToDecimal.ToString("###,###,##0.00"))
|
||||||
|
|
||||||
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
||||||
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
||||||
End If
|
End If
|
||||||
@@ -1746,6 +1800,7 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
|
|
||||||
Protected Sub GvGastosSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvGastosSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCC(e)
|
||||||
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
If e.Row.DBCampo("CtaMayor").ToString.ToEntero < 0 Then
|
||||||
TotalActualMes -= e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
TotalActualMes -= e.Row.DBCampo("ImporteActual").ToString.ToDouble
|
||||||
TotalAnteriorMes -= e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
TotalAnteriorMes -= e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble
|
||||||
@@ -1754,9 +1809,6 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
'e.Row.CssClass = "SubTotales"
|
'e.Row.CssClass = "SubTotales"
|
||||||
e.Row.ControlStyle.Font.Bold = True
|
e.Row.ControlStyle.Font.Bold = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
If e.Row.DBCampo("ImporteAcumulado").ToString.ToDouble < 0 Then
|
||||||
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
e.Row.FCHyperLink("HLAnterior").ForeColor = Drawing.Color.Red
|
||||||
End If
|
End If
|
||||||
@@ -1764,18 +1816,27 @@ Partial Class Contabilidad_RepEstadoResultadosHorizontal
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub GvTotalesSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
Protected Sub GvTotalesSubProyectoH_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.Header Then
|
If e.Row.RowType = DataControlRowType.Header Then
|
||||||
' e.Row.Attributes.Add("style", "display:none")
|
' e.Row.Attributes.Add("style", "display:none")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
|
setgraficaCC(e)
|
||||||
e.Row.Attributes.Add("style", "Font-weight: bold")
|
e.Row.Attributes.Add("style", "Font-weight: bold")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub setgraficaCC(e As GridViewRowEventArgs)
|
||||||
|
Dim lista As New List(Of Object)
|
||||||
|
Dim colorindex As Integer = 0
|
||||||
|
For Each campo As String() In listaCampos
|
||||||
|
lista.Add(New With {.Texto = campo(1), .Valor = e.Row.DBCampo(campo(0)).ToDecimal(), .Color = listacolores(colorindex)})
|
||||||
|
colorindex = colorindex + 1
|
||||||
|
If colorindex >= listacolores.Count Then
|
||||||
|
colorindex = 0
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
e.Row.FCHyperLink("Hypgrafica").Attributes.Add("data-values", Newtonsoft.Json.JsonConvert.SerializeObject(lista))
|
||||||
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -52,10 +52,10 @@
|
|||||||
<Width>4.42895cm</Width>
|
<Width>4.42895cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>3.2021cm</Width>
|
<Width>3.06732cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>3.36938cm</Width>
|
<Width>3.6031cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>2.89562cm</Width>
|
<Width>2.89562cm</Width>
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Fecha Ven.</Value>
|
<Value>Fecha Vencimiento.</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Movto.</Value>
|
<Value>Cheque.</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -226,14 +226,14 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Abono</Value>
|
<Value>Abonado</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style>
|
<Style>
|
||||||
<TextAlign>Right</TextAlign>
|
<TextAlign>Center</TextAlign>
|
||||||
</Style>
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
@@ -250,47 +250,14 @@
|
|||||||
<PaddingBottom>2pt</PaddingBottom>
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
|
<ColSpan>2</ColSpan>
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
<TablixCell>
|
<TablixCell />
|
||||||
<CellContents>
|
|
||||||
<Textbox Name="Textbox21">
|
|
||||||
<CanGrow>true</CanGrow>
|
|
||||||
<KeepTogether>true</KeepTogether>
|
|
||||||
<Paragraphs>
|
|
||||||
<Paragraph>
|
|
||||||
<TextRuns>
|
|
||||||
<TextRun>
|
|
||||||
<Value />
|
|
||||||
<Style>
|
|
||||||
<FontWeight>Bold</FontWeight>
|
|
||||||
</Style>
|
|
||||||
</TextRun>
|
|
||||||
</TextRuns>
|
|
||||||
<Style>
|
|
||||||
<TextAlign>Center</TextAlign>
|
|
||||||
</Style>
|
|
||||||
</Paragraph>
|
|
||||||
</Paragraphs>
|
|
||||||
<rd:DefaultName>Textbox21</rd:DefaultName>
|
|
||||||
<Style>
|
|
||||||
<Border>
|
|
||||||
<Color>Silver</Color>
|
|
||||||
<Style>Solid</Style>
|
|
||||||
</Border>
|
|
||||||
<BackgroundColor>Silver</BackgroundColor>
|
|
||||||
<PaddingLeft>2pt</PaddingLeft>
|
|
||||||
<PaddingRight>2pt</PaddingRight>
|
|
||||||
<PaddingTop>2pt</PaddingTop>
|
|
||||||
<PaddingBottom>2pt</PaddingBottom>
|
|
||||||
</Style>
|
|
||||||
</Textbox>
|
|
||||||
</CellContents>
|
|
||||||
</TablixCell>
|
|
||||||
</TablixCells>
|
</TablixCells>
|
||||||
</TablixRow>
|
</TablixRow>
|
||||||
<TablixRow>
|
<TablixRow>
|
||||||
<Height>0.6cm</Height>
|
<Height>0.46771cm</Height>
|
||||||
<TablixCells>
|
<TablixCells>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
@@ -303,7 +270,8 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>= IIF( IsNothing(Fields!CveVenta.Value) , (Fields!Banco.Value & " - " & Fields!NumCuenta.Value),Fields!SerieFolio.Value)</Value>
|
<Value>= IIF( IsNothing(Fields!CveVenta.Value) , (Fields!Banco.Value & " - " & Fields!NumCuenta.Value),Fields!SerieFolio.Value)</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF( IsNothing(Fields!CveVenta.Value), "Bold","Normal")</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -336,7 +304,8 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!Fecha.Value</Value>
|
<Value>=Fields!Fecha.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF( IsNothing(Fields!CveVenta.Value), "Bold","Normal")</FontWeight>
|
||||||
<Format>dd/MM/yyyy</Format>
|
<Format>dd/MM/yyyy</Format>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
@@ -372,7 +341,8 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>= IIF( IsNothing(Fields!CveVenta.Value), Fields!FechaDocumento.Value,Fields!FechaVencimiento.Value)</Value>
|
<Value>= IIF( IsNothing(Fields!CveVenta.Value), Fields!FechaDocumento.Value,Fields!FechaVencimiento.Value)</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF( IsNothing(Fields!CveVenta.Value), "Bold","Normal")</FontWeight>
|
||||||
<Format>dd/MM/yyyy</Format>
|
<Format>dd/MM/yyyy</Format>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
@@ -408,7 +378,8 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>= IIF( IsNothing(Fields!CveVenta.Value) , Fields!FolioCobro.Value,"")</Value>
|
<Value>= IIF( IsNothing(Fields!CveVenta.Value) , Fields!FolioCobro.Value,"")</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF( IsNothing(Fields!CveVenta.Value), "Bold","Normal")</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -441,7 +412,8 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=Fields!ImporteAbonado.Value</Value>
|
<Value>=Fields!ImporteAbonado.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF( IsNothing(Fields!CveVenta.Value), "Bold","Normal")</FontWeight>
|
||||||
<Format>'$'#,0.00;('$'#,0.00)</Format>
|
<Format>'$'#,0.00;('$'#,0.00)</Format>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
@@ -478,7 +450,8 @@
|
|||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>=IIF(Fields!CveVenta.Value > 0,Fields!MonedaVenta.Value, Fields!MonedaIE.Value)</Value>
|
<Value>=IIF(Fields!CveVenta.Value > 0,Fields!MonedaVenta.Value, Fields!MonedaIE.Value)</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>9pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=IIF( IsNothing(Fields!CveVenta.Value), "Bold","Normal")</FontWeight>
|
||||||
</Style>
|
</Style>
|
||||||
</TextRun>
|
</TextRun>
|
||||||
</TextRuns>
|
</TextRuns>
|
||||||
@@ -527,8 +500,8 @@
|
|||||||
<DataSetName>DataSet1</DataSetName>
|
<DataSetName>DataSet1</DataSetName>
|
||||||
<Top>1.00112cm</Top>
|
<Top>1.00112cm</Top>
|
||||||
<Left>0.12912cm</Left>
|
<Left>0.12912cm</Left>
|
||||||
<Height>1.2cm</Height>
|
<Height>1.06771cm</Height>
|
||||||
<Width>19.74272cm</Width>
|
<Width>19.84166cm</Width>
|
||||||
<ZIndex>2</ZIndex>
|
<ZIndex>2</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
|
|||||||
@@ -209,7 +209,7 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>SubProyecto</Value>
|
<Value>=Parameters!SubProyectoHeader.Value</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontSize>7pt</FontSize>
|
<FontSize>7pt</FontSize>
|
||||||
<FontWeight>Bold</FontWeight>
|
<FontWeight>Bold</FontWeight>
|
||||||
@@ -1485,6 +1485,12 @@
|
|||||||
<AllowBlank>true</AllowBlank>
|
<AllowBlank>true</AllowBlank>
|
||||||
<Prompt>ReportParameter1</Prompt>
|
<Prompt>ReportParameter1</Prompt>
|
||||||
</ReportParameter>
|
</ReportParameter>
|
||||||
|
<ReportParameter Name="SubProyectoHeader">
|
||||||
|
<DataType>String</DataType>
|
||||||
|
<Nullable>true</Nullable>
|
||||||
|
<AllowBlank>true</AllowBlank>
|
||||||
|
<Prompt>ReportParameter1</Prompt>
|
||||||
|
</ReportParameter>
|
||||||
</ReportParameters>
|
</ReportParameters>
|
||||||
<Language>es-MX</Language>
|
<Language>es-MX</Language>
|
||||||
<rd:ReportUnitType>Cm</rd:ReportUnitType>
|
<rd:ReportUnitType>Cm</rd:ReportUnitType>
|
||||||
|
|||||||
@@ -208,6 +208,10 @@
|
|||||||
<asp:RequiredFieldValidator ID="RfvPaqueteriaGuiaTipo" runat="server" ControlToValidate="DdlPaqueteriaGuiaTipo" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Documento''</b> es necesario." ValidationGroup="GrpCrearGuia"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvPaqueteriaGuiaTipo" runat="server" ControlToValidate="DdlPaqueteriaGuiaTipo" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Documento''</b> es necesario." ValidationGroup="GrpCrearGuia"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="VcePaqueteriaGuiaTipo" runat="server" HighlightCssClass="vco" TargetControlID="RfvPaqueteriaGuiaTipo" Width="220px" PopupPosition="Left"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VcePaqueteriaGuiaTipo" runat="server" HighlightCssClass="vco" TargetControlID="RfvPaqueteriaGuiaTipo" Width="220px" PopupPosition="Left"></ajax:ValidatorCalloutExtender>
|
||||||
</td>
|
</td>
|
||||||
|
<td runat="server" id="tdLblPolizaSeguro" class="text-right" align="left" valign="top" style="width: 140px; padding-top: 4px;"><b>Poliza de Seguro:</b></td>
|
||||||
|
<td runat="server" id="tdTxtPolizaSeguro" align="left" valign="top" style="width: 200px;">
|
||||||
|
<asp:TextBox runat="server" ID="TxtPolizaSeguro" CssClass="form-control" Width="200px" Height="30px" Style="padding: 0px"></asp:TextBox>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr></tr>
|
<tr></tr>
|
||||||
|
|||||||
@@ -181,6 +181,10 @@ public partial class General_PopUpPaqueteriasGuias : ClsPaginas
|
|||||||
if (CveVenta > 0 || CveOC > 0 || CveMovimiento > 0 || CveCompra > 0)
|
if (CveVenta > 0 || CveOC > 0 || CveMovimiento > 0 || CveCompra > 0)
|
||||||
{
|
{
|
||||||
CargaGuiasVinculadas();
|
CargaGuiasVinculadas();
|
||||||
|
if(CveVenta > 0)
|
||||||
|
{
|
||||||
|
CondicionesVenta();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -381,7 +385,10 @@ public partial class General_PopUpPaqueteriasGuias : ClsPaginas
|
|||||||
String Observaciones = TxtObservaciones.Text;
|
String Observaciones = TxtObservaciones.Text;
|
||||||
Boolean ImplicaCosto = ChkImplicaCosto.Checked;
|
Boolean ImplicaCosto = ChkImplicaCosto.Checked;
|
||||||
|
|
||||||
int CvePaqueteriaGuia = ObjGeneral.AddPaqueteriasGuias(CvePaqueteria, CvePaqueteriaGuiaTipo,CveEstatus, CveSucursal, Fecha, Rastreo, Guia, NoCajas, Peso, Dimensiones, FechaEstimada, Observaciones, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, ImplicaCosto);
|
string PolizaSeguro = (tdLblPolizaSeguro.Visible) ? TxtPolizaSeguro.Text : "-1";
|
||||||
|
|
||||||
|
int CvePaqueteriaGuia = ObjGeneral.AddPaqueteriasGuias(CvePaqueteria, CvePaqueteriaGuiaTipo,CveEstatus, CveSucursal, Fecha, Rastreo, Guia, NoCajas, Peso, Dimensiones,
|
||||||
|
FechaEstimada, Observaciones, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, ImplicaCosto,PolizaSeguro: PolizaSeguro);
|
||||||
|
|
||||||
if (CvePaqueteriaGuia > 0)
|
if (CvePaqueteriaGuia > 0)
|
||||||
{
|
{
|
||||||
@@ -853,4 +860,21 @@ public partial class General_PopUpPaqueteriasGuias : ClsPaginas
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
private void CondicionesVenta()
|
||||||
|
{
|
||||||
|
|
||||||
|
ClsVentas ObjVenta = new ClsVentas();
|
||||||
|
if (ObjVenta.GetVentaDetalle(CveVenta))
|
||||||
|
{
|
||||||
|
DataTable VentasDetalle = ObjVenta.DtResultados;
|
||||||
|
if (VentasDetalle.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
double Total = VentasDetalle.SUM("Total");
|
||||||
|
bool Mostrar = (Total >= 100000.00);
|
||||||
|
tdLblPolizaSeguro.Visible = Mostrar;
|
||||||
|
tdTxtPolizaSeguro.Visible = Mostrar;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -190,7 +190,7 @@
|
|||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="GVDatos" runat="server" DataKeyNames="CvePaqueteriaGuia, CveSubProyecto, SubProyecto, CveAgrupador, TipoAgrupador, Folio, CvePaqueteria, Paqueteria, Liga, CveEstatus, Estatus, Rastreo, Guia, NumCajas, Peso, Dimensiones, Fecha, FechaEstimada, CveUsuario, CveEmpresa, FechaIng, Observaciones, ImplicaCosto, CvePaqueteriaGuiaTipo,EsEntregaInterna"
|
<asp:GridView ID="GVDatos" runat="server" DataKeyNames="CvePaqueteriaGuia, CveSubProyecto, SubProyecto, CveAgrupador, TipoAgrupador, Folio, CvePaqueteria, Paqueteria, Liga, CveEstatus, Estatus, Rastreo, Guia, NumCajas, Peso, Dimensiones, Fecha, FechaEstimada, CveUsuario, CveEmpresa, FechaIng, Observaciones, ImplicaCosto, CvePaqueteriaGuiaTipo,EsEntregaInterna,PolizaSeguro"
|
||||||
AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros con los filtros especificados" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-sort="true" GridLines="None"
|
AutoGenerateColumns="False" EmptyDataText="No se encontraron Registros con los filtros especificados" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn ScrollAD" data-sort="true" GridLines="None"
|
||||||
EmptyDataRowStyle-HorizontalAlign="Center" OnRowDataBound="GVDatos_RowDataBound">
|
EmptyDataRowStyle-HorizontalAlign="Center" OnRowDataBound="GVDatos_RowDataBound">
|
||||||
<Columns>
|
<Columns>
|
||||||
@@ -208,6 +208,7 @@
|
|||||||
<asp:BoundField DataField="Guia" HeaderText="Guía" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Guia" HeaderText="Guía" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
|
||||||
<asp:BoundField DataField="Rastreo" HeaderText="Rastreo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
<asp:BoundField DataField="Rastreo" HeaderText="Rastreo" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField DataField="PolizaSeguro" HeaderText="Póliza de seguro" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-Width="4%" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField DataField="Fecha" HeaderText="Fecha" ItemStyle-Width="4%" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField DataField="FechaEstimada" HeaderText="Fecha Est." ItemStyle-Width="4%" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField DataField="FechaEstimada" HeaderText="Fecha Est." ItemStyle-Width="4%" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField DataField="FechaIng" HeaderText="Fecha Ing" ItemStyle-Width="4%" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField DataField="FechaIng" HeaderText="Fecha Ing" ItemStyle-Width="4%" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
|||||||
@@ -806,7 +806,7 @@ Partial Class Inventarios_Apartados
|
|||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
e.Row.FCTextBox("TxtCantidad").Attributes.Add("onblur", String.Format("ValidaCantidad(this,{0})", e.Row.DBCampo("Cantidad")))
|
e.Row.FCTextBox("TxtCantidad").Attributes.Add("onblur", String.Format("ValidaCantidad(this,{0})", e.Row.DBCampo("Cantidad")))
|
||||||
If CBool(e.Row.DBCampo("AplicaSeccion")) AndAlso DdlAlmacenDestinoDesapartado.SelectedValue.ToEntero > 0 Then
|
If CBool(e.Row.DBCampo("AplicaSeccion")) AndAlso DdlAlmacenDestinoDesapartado.SelectedValue.ToEntero > 0 Then
|
||||||
Dim dtt As DataTable = GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, DdlAlmacenDestinoDesapartado.SelectedValue.ToEntero, e.Row.DBCampo("CvePS").ToEntero)
|
Dim dtt As DataTable = GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, DdlAlmacenDestinoDesapartado.SelectedValue.ToEntero, e.Row.DBCampo("CvePS").ToEntero).FiltraParametros("Predeterminado = 1")
|
||||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = True
|
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = True
|
||||||
e.Row.FCDropDownList("DdlSeccionAlmacen").DataSource = dtt
|
e.Row.FCDropDownList("DdlSeccionAlmacen").DataSource = dtt
|
||||||
e.Row.FCDropDownList("DdlSeccionAlmacen").DataBind()
|
e.Row.FCDropDownList("DdlSeccionAlmacen").DataBind()
|
||||||
|
|||||||
@@ -67,6 +67,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkPdf" runat="server"><i class="fa fa-ad-pdf"></i> Genera PDF</asp:LinkButton>
|
<asp:LinkButton ID="LnkPdf" runat="server"><i class="fa fa-ad-pdf"></i> Genera PDF</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton ID="LnkCargarMaximosMinimos" OnClick="LnkCargarMaximosMinimos_Click" runat="server"><i class="fa fa-ad-excel"></i> Cargar Excel</asp:LinkButton>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Genera Excel</asp:LinkButton>
|
<asp:LinkButton ID="LnkExportar" runat="server"><i class="fa fa-ad-excel"></i> Genera Excel</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
@@ -347,7 +350,74 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="DmodalCargarMaximosMinimos" class="modal ADS fade" role="dialog">
|
||||||
|
<asp:UpdatePanel ID="Upcargamasiva" class="modal-dialog" tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div class="modal-content rowpadding">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="modal-title uppercase" runat="server" style="text-align: left">CARGA MáSIVA DE MAXIMOS Y MINIMOS</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="portlet light smmallpadding bordered" id="DownFormato">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-download font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Paso 1: Formato</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding">
|
||||||
|
<div class="text-center">
|
||||||
|
|
||||||
|
<asp:LinkButton ID="LnkDescargarFormato" OnClick="LnkDescargarFormato_Click" CssClass="btn btn-primary" runat="server"> <i class="fa fa-download"></i> Descargar</asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet light smmallpadding bordered" id="CargarArchivo">
|
||||||
|
<div class="portlet-title">
|
||||||
|
<div class="caption font-green">
|
||||||
|
<i class="fa fa-download font-green"></i>
|
||||||
|
<span class="caption-subject bold uppercase">Paso 2:Cargar Formato</span>
|
||||||
|
</div>
|
||||||
|
<div class="tools">
|
||||||
|
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
||||||
|
</div>
|
||||||
|
<div class="actions">
|
||||||
|
<div class="btn-group">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-body rowpadding " style="display: none;">
|
||||||
|
|
||||||
|
<asp:TextBox ID="TxtArchivoSua" CssClass="ADSdropzone hidden" runat="server"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-footer">
|
||||||
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
|
||||||
|
<ContentTemplate>
|
||||||
|
<asp:LinkButton ID="LnkUpFile" OnClick="LnkUpFile_Click" CssClass="btn btn-primary" runat="server"><i class="fa fa-upload"></i> Subir</asp:LinkButton>
|
||||||
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
<Triggers>
|
||||||
|
<asp:PostBackTrigger ControlID="LnkDescargarFormato" />
|
||||||
|
</Triggers>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
</div>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
||||||
|
|||||||
@@ -357,4 +357,15 @@ Partial Class Inventarios_RepMaximoMinimo
|
|||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
Protected Sub LnkUpFile_Click(sender As Object, e As EventArgs)
|
||||||
|
RegistraScript("$('#DmodalCargarMaximosMinimos').modal('hide');")
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkCargarMaximosMinimos_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
RegistraScript("$('#DmodalCargarMaximosMinimos').modal();")
|
||||||
|
Upcargamasiva.Update()
|
||||||
|
End Sub
|
||||||
|
Protected Sub LnkDescargarFormato_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -202,14 +202,14 @@
|
|||||||
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró ningun Traspaso de Almacén"
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontró ningun Traspaso de Almacén"
|
||||||
ToolTip="Remisiones sin Facturar"
|
ToolTip="Remisiones sin Facturar" data-rows="2"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||||
data-sort="true" GridLines="None">
|
data-sort="true" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Disponible" DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
|
<asp:BoundField HeaderText="Disponible" DataField="Cantidad" DataFormatString="{0:#,##0.00####}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="10%" />
|
||||||
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="5%" />
|
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="5%" />
|
||||||
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-Width="5%" />
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-Width="5%" />
|
||||||
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"/>
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left"/>
|
||||||
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left"/>
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left"/>
|
||||||
<asp:BoundField HeaderText="Valor" DataField="Valor" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />
|
<asp:BoundField HeaderText="Valor" DataField="Valor" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|||||||
@@ -107,10 +107,15 @@ Partial Class RepTraspasoAlmacen
|
|||||||
|
|
||||||
e.Row.Cells(0).Text = String.Format("Folio: <a class=""texto"" style=""color:white;"" target='_blank' href='/Inventarios/EntradasSalidas.aspx?CveMovimiento={1}'>{0}</a> ", e.Row.DBCampo("FolioSalida"), e.Row.DBCampo("CveMovimientoSalida"))
|
e.Row.Cells(0).Text = String.Format("Folio: <a class=""texto"" style=""color:white;"" target='_blank' href='/Inventarios/EntradasSalidas.aspx?CveMovimiento={1}'>{0}</a> ", e.Row.DBCampo("FolioSalida"), e.Row.DBCampo("CveMovimientoSalida"))
|
||||||
e.Row.Cells(1).Text = String.Format("{0}", e.Row.DBCampo("FechaMovto").ToString.ToDate.ToShortDateString)
|
e.Row.Cells(1).Text = String.Format("{0}", e.Row.DBCampo("FechaMovto").ToString.ToDate.ToShortDateString)
|
||||||
e.Row.Cells(3).Text = String.Format("Almacen Origen: {0} Almacen Destino: {1} Responsable: {2}", e.Row.DBCampo("Almacen"), e.Row.DBCampo("AlmacenDestino"), e.Row.DBCampo("Recibio"))
|
e.Row.Cells(2).Text = String.Format("<span style =""white-space: nowrap;"">{0}</span>", e.Row.DBCampo("Almacen"))
|
||||||
|
e.Row.Cells(3).Text = String.Format("<span style =""white-space: nowrap;"">{0}</span>", e.Row.DBCampo("AlmacenDestino"))
|
||||||
|
e.Row.Cells(4).Text = String.Format("Responsable: {0}", e.Row.DBCampo("Recibio"))
|
||||||
ElseIf e.Row.DBCampo("FechaMovto") = "" Then
|
ElseIf e.Row.DBCampo("FechaMovto") = "" Then
|
||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
e.Row.Cells(0).Text = "Total General"
|
e.Row.Cells(0).Text = "Total General"
|
||||||
|
e.Row.Cells(2).Text = String.Format("<span style =""white-space: nowrap;"">Almacen Origen</span>")
|
||||||
|
e.Row.Cells(3).Text = String.Format("<span style =""white-space: nowrap;"">Almacen Destino</span>")
|
||||||
|
Else
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -816,7 +816,7 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
Case 23 ' Resguardo
|
Case 23 ' Resguardo
|
||||||
|
|
||||||
'SALIDA ORIGEN
|
'SALIDA ORIGEN
|
||||||
CveMovimientoSalida = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero, 24, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservaciones.Text, CvePersonal:=CvePersonal, CveAlmacenDestino:=DdlAlmacenDestino.SelectedValue.ToEntero, CveCliente:=CveCliente, CveProveedor:=CveProveedor)
|
CveMovimientoSalida = ObjInventario.AddMovimiento(DdlAlmacen.SelectedValue.ToEntero, 24, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservaciones.Text, CvePersonal:=CvePersonal, CveAlmacenDestino:=DdlAlmacenDestino.SelectedValue.ToEntero, CveCliente:=CveCliente, CveProveedor:=CveProveedor, Modulo:="ResgMat1")
|
||||||
FolioSalida = ObjInventario.Folio
|
FolioSalida = ObjInventario.Folio
|
||||||
|
|
||||||
If CveMovimientoSalida <= 0 Then
|
If CveMovimientoSalida <= 0 Then
|
||||||
@@ -839,7 +839,7 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
|
|
||||||
Cont = 0
|
Cont = 0
|
||||||
If Not TieneError Then
|
If Not TieneError Then
|
||||||
CveMovimientoEntrada = ObjInventario.AddMovimiento(DdlAlmacenDestino.SelectedValue.ToEntero, 2, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservaciones.Text, CvePersonal:=CvePersonal, CveMovimientoRelacionado:=CveMovimientoSalida, CveCliente:=CveCliente, CveProveedor:=CveProveedor)
|
CveMovimientoEntrada = ObjInventario.AddMovimiento(DdlAlmacenDestino.SelectedValue.ToEntero, 2, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservaciones.Text, CvePersonal:=CvePersonal, CveMovimientoRelacionado:=CveMovimientoSalida, CveCliente:=CveCliente, CveProveedor:=CveProveedor, Modulo:="ResgMat2")
|
||||||
FolioEntrada = ObjInventario.Folio
|
FolioEntrada = ObjInventario.Folio
|
||||||
|
|
||||||
If CveMovimientoEntrada <= 0 Then
|
If CveMovimientoEntrada <= 0 Then
|
||||||
@@ -873,7 +873,7 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
|
|
||||||
|
|
||||||
'SALIDA ORIGEN - RESGUARDO
|
'SALIDA ORIGEN - RESGUARDO
|
||||||
CveMovimientoSalida = ObjInventario.AddMovimiento(CveAlmacenLiberación, 3, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservacionesLiberacion.Text, CvePersonal:=CvePersonalLiberacion, CveAlmacenDestino:=DdlAlmacenDestinoLiberacion.SelectedValue.ToEntero, CveProveedor:=CveProveedorLiberacion, CveCliente:=CveClienteLiberacion, MovimientoFijo:=True)
|
CveMovimientoSalida = ObjInventario.AddMovimiento(CveAlmacenLiberación, 3, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservacionesLiberacion.Text, CvePersonal:=CvePersonalLiberacion, CveAlmacenDestino:=DdlAlmacenDestinoLiberacion.SelectedValue.ToEntero, CveProveedor:=CveProveedorLiberacion, CveCliente:=CveClienteLiberacion, MovimientoFijo:=True, Modulo:="ResgMat3")
|
||||||
FolioSalida = ObjInventario.Folio
|
FolioSalida = ObjInventario.Folio
|
||||||
Dim DiccionarioSecciones As New HybridDictionary
|
Dim DiccionarioSecciones As New HybridDictionary
|
||||||
|
|
||||||
@@ -899,7 +899,7 @@ Partial Class Inventarios_ResguardoMaterial
|
|||||||
|
|
||||||
|
|
||||||
If Not TieneError Then
|
If Not TieneError Then
|
||||||
CveMovimientoEntrada = ObjInventario.AddMovimiento(DdlAlmacenDestinoLiberacion.SelectedValue.ToEntero, 23, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservacionesLiberacion.Text, CvePersonal:=CvePersonalLiberacion, CveMovimientoRelacionado:=CveMovimientoSalida, CveProveedor:=CveProveedorLiberacion, CveCliente:=CveClienteLiberacion, MovimientoFijo:=True)
|
CveMovimientoEntrada = ObjInventario.AddMovimiento(DdlAlmacenDestinoLiberacion.SelectedValue.ToEntero, 23, 1, Fecha, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, SubProyecto, ActivoFijo, Observaciones:=TxtObservacionesLiberacion.Text, CvePersonal:=CvePersonalLiberacion, CveMovimientoRelacionado:=CveMovimientoSalida, CveProveedor:=CveProveedorLiberacion, CveCliente:=CveClienteLiberacion, MovimientoFijo:=True, Modulo:="ResgMat4")
|
||||||
FolioEntrada = ObjInventario.Folio
|
FolioEntrada = ObjInventario.Folio
|
||||||
|
|
||||||
If CveMovimientoEntrada <= 0 Then
|
If CveMovimientoEntrada <= 0 Then
|
||||||
|
|||||||
@@ -2845,6 +2845,19 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
DdlSeccionAlmacen.DataBind()
|
DdlSeccionAlmacen.DataBind()
|
||||||
DdlSeccionAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlSeccionAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
UpDatos.Update()
|
UpDatos.Update()
|
||||||
|
|
||||||
|
Dim DrAlmO As DataRow = GlobalDTAlmacen(UsuarioActual.CveEmpresa, CveAlmacen:=DdlAlmacenOrigen.SelectedValue.ToEntero).FiltroPrimero("")
|
||||||
|
If DrAlmO("CveTipoAlmacen").ToString.ToEntero = 26 Then 'costeados
|
||||||
|
|
||||||
|
DdlAlmacenDestino.DataSource = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltraParametros("CveTipoAlmacen IN (26) AND Estatus = 'Activo'")
|
||||||
|
DdlAlmacenDestino.DataBind()
|
||||||
|
DdlAlmacenDestino.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
Else
|
||||||
|
|
||||||
|
DdlAlmacenDestino.DataSource = GlobalDTAlmacen(UsuarioActual.CveEmpresa).FiltraParametros("CveTipoAlmacen NOT IN (3,4,9,10,11,24) AND Estatus = 'Activo'")
|
||||||
|
DdlAlmacenDestino.DataBind()
|
||||||
|
DdlAlmacenDestino.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -44,17 +44,18 @@ table > tr > th.adsCol, table.table > tr > th.adsCol {
|
|||||||
.AdsBody .ADSCroll::-webkit-scrollbar-track {
|
.AdsBody .ADSCroll::-webkit-scrollbar-track {
|
||||||
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
border-radius: 10px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.AdsBody .ADSCroll::-webkit-scrollbar {
|
.AdsBody .ADSCroll::-webkit-scrollbar {
|
||||||
width: 10px;
|
width: 8px;
|
||||||
|
height:10px;
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.AdsBody .ADSCroll::-webkit-scrollbar-thumb {
|
.AdsBody .ADSCroll::-webkit-scrollbar-thumb {
|
||||||
background-color: #AAA;
|
background-color: #AAA;
|
||||||
border-radius: 10px;
|
border-radius: 4px;
|
||||||
background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, .2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .2) 75%, transparent 75%, transparent)
|
background-image: -webkit-linear-gradient(90deg, rgba(0, 0, 0, .2) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .2) 75%, transparent 75%, transparent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ Partial Class OC
|
|||||||
ViewState("CveEmpresaActual") = value
|
ViewState("CveEmpresaActual") = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Private Property CveUsuarioAsignado As Integer
|
||||||
|
Get
|
||||||
|
Return If(IsNothing(ViewState("CveUsuarioAsignado")), -1, ViewState("CveUsuarioAsignado").ToString.ToEntero)
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveUsuarioAsignado") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Private Property TipoOC As String
|
Private Property TipoOC As String
|
||||||
Get
|
Get
|
||||||
TipoOC = ViewState("TipoOC").ToString
|
TipoOC = ViewState("TipoOC").ToString
|
||||||
@@ -1212,7 +1220,7 @@ Partial Class OC
|
|||||||
MPContrato.Enabled = False
|
MPContrato.Enabled = False
|
||||||
'SOLICITUD DE ANTICIPO
|
'SOLICITUD DE ANTICIPO
|
||||||
CveIEAnticipo = objOC.CveIEAnticipo
|
CveIEAnticipo = objOC.CveIEAnticipo
|
||||||
|
CveUsuarioAsignado = objOC.CveUsuarioAsignado
|
||||||
'LtImporteIEAnticipo.Text = objOC.ImporteAnticipo.FormatoNumero
|
'LtImporteIEAnticipo.Text = objOC.ImporteAnticipo.FormatoNumero
|
||||||
'LtFolioIEAnticipo.Text = $"<a class=""Texto"" href=""/Bancos/IE.aspx?CveIE={objOC.CveIEAnticipo}"" target=""_blank"">{objOC.FolioIEAnticipo}</a>"
|
'LtFolioIEAnticipo.Text = $"<a class=""Texto"" href=""/Bancos/IE.aspx?CveIE={objOC.CveIEAnticipo}"" target=""_blank"">{objOC.FolioIEAnticipo}</a>"
|
||||||
|
|
||||||
@@ -1663,7 +1671,10 @@ Partial Class OC
|
|||||||
InicializaMovtosAlmacen()
|
InicializaMovtosAlmacen()
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(565) = "1" And pCveOrdenCompra > 0 And TipoOC.ToUpper() = "REQ" Then
|
If UsuarioActual.Empresa.Funcionalidad(565) = "1" And pCveOrdenCompra > 0 And TipoOC.ToUpper() = "REQ" Then
|
||||||
RowCotizaciones.Visible = True
|
'LAS COTIZACIONES RAPIDAS SOLO DEBE APARECER SI EL PROVEEDOR ES DEDICADO
|
||||||
|
If CveConfianzaProveedor = 1 Then
|
||||||
|
RowCotizaciones.Visible = True
|
||||||
|
End If
|
||||||
UpIvas.Update()
|
UpIvas.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -1823,6 +1834,8 @@ Partial Class OC
|
|||||||
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
DdlProveedores.Attributes.Add("data-metodo", "getproveedores")
|
||||||
DdlProveedores.SelectedText = "Seleccione"
|
DdlProveedores.SelectedText = "Seleccione"
|
||||||
DdlProveedores.SelectedValue = "-1"
|
DdlProveedores.SelectedValue = "-1"
|
||||||
|
DdlProveedores.ddl.AutoPostBack = True
|
||||||
|
|
||||||
DdlProveedorCot.setEsWebService(True)
|
DdlProveedorCot.setEsWebService(True)
|
||||||
DdlProveedorCot.Attributes.Add("data-metodo", "getproveedores")
|
DdlProveedorCot.Attributes.Add("data-metodo", "getproveedores")
|
||||||
Else
|
Else
|
||||||
@@ -1830,6 +1843,7 @@ Partial Class OC
|
|||||||
DdlProveedores.DataSource = GlobalDTCompProveedores(CveEmpresaActual)
|
DdlProveedores.DataSource = GlobalDTCompProveedores(CveEmpresaActual)
|
||||||
DdlProveedores.DataBind()
|
DdlProveedores.DataBind()
|
||||||
DdlProveedores.ddl.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlProveedores.ddl.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
DdlProveedores.ddl.AutoPostBack = True
|
||||||
|
|
||||||
DdlProveedorCot.DataSource = GlobalDTCompProveedores(CveEmpresaActual)
|
DdlProveedorCot.DataSource = GlobalDTCompProveedores(CveEmpresaActual)
|
||||||
DdlProveedorCot.DataBind()
|
DdlProveedorCot.DataBind()
|
||||||
@@ -5352,6 +5366,14 @@ Partial Class OC
|
|||||||
|
|
||||||
VerificaSiRequiereCotizacion()
|
VerificaSiRequiereCotizacion()
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(565) = "1" And CveOrdenCompra > 0 And TipoOC.ToUpper() = "REQ" Then
|
||||||
|
'LAS COTIZACIONES RAPIDAS SOLO DEBE APARECER SI EL PROVEEDOR ES DEDICADO
|
||||||
|
If CveConfianzaProveedor = 1 Then
|
||||||
|
RowCotizaciones.Visible = True
|
||||||
|
End If
|
||||||
|
UpIvas.Update()
|
||||||
|
End If
|
||||||
|
|
||||||
DdlProveedorSucursal.DataBind()
|
DdlProveedorSucursal.DataBind()
|
||||||
UPProv.Update() : UPPEmp.Update()
|
UPProv.Update() : UPPEmp.Update()
|
||||||
UPPDetalle.Update()
|
UPPDetalle.Update()
|
||||||
@@ -5383,9 +5405,11 @@ Partial Class OC
|
|||||||
|
|
||||||
If CveEmpresaActual.Contiene(13, 83, 72, 80) Then
|
If CveEmpresaActual.Contiene(13, 83, 72, 80) Then
|
||||||
PnlUsuarioAsignado.Visible = True
|
PnlUsuarioAsignado.Visible = True
|
||||||
DdlUsuariosAsignado.DataSource = GlobalDTUsuarios(CveEmpresa:=CveEmpresaActual)
|
DdlUsuariosAsignado.DataSource = GlobalDTUsuarios(CveEmpresa:=CveEmpresaActual).FiltraParametros("Estatus = 1", "Nombre")
|
||||||
DdlUsuariosAsignado.DataBind()
|
DdlUsuariosAsignado.DataBind()
|
||||||
DdlUsuariosAsignado.Items.Insert(0, New ListItem(" - ", "-1"))
|
DdlUsuariosAsignado.Items.Insert(0, New ListItem(" - ", "-1"))
|
||||||
|
DdlUsuariosAsignado.SelectedValueExist(CveUsuarioAsignado)
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
VerificaCotizacionesGanadoras()
|
VerificaCotizacionesGanadoras()
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ Partial Class RepOC
|
|||||||
ddlUsuario.DataBind()
|
ddlUsuario.DataBind()
|
||||||
ddlUsuario.Items.Insert(0, New ListItem("Todos", "-1"))
|
ddlUsuario.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
DdlUsuarioAsignado.DataSource = GlobalDTUsuarios(-1, UsuarioActual.CveEmpresa)
|
DdlUsuarioAsignado.DataSource = GlobalDTUsuarios(-1, UsuarioActual.CveEmpresa).FiltraParametros("Estatus = 1", "Nombre")
|
||||||
DdlUsuarioAsignado.DataBind()
|
DdlUsuarioAsignado.DataBind()
|
||||||
DdlUsuarioAsignado.Items.Insert(0, New ListItem("Todos", "-1"))
|
DdlUsuarioAsignado.Items.Insert(0, New ListItem("Todos", "-1"))
|
||||||
|
|
||||||
|
|||||||
@@ -138,10 +138,10 @@
|
|||||||
<asp:LinkButton ID="LnkUpUsuarios" OnClick="LnkUpUsuarios_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Actualizar Participantes</asp:LinkButton>
|
<asp:LinkButton ID="LnkUpUsuarios" OnClick="LnkUpUsuarios_Click" Visible="true" runat="server"><i class="fa fa-pencil"></i> Actualizar Participantes</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkOpenModalAsistencia" OnClick="LnkOpenModalAsistencia_Click" Visible="false" runat="server"><i class="fa fa-users"></i>Asistencia</asp:LinkButton>
|
<asp:LinkButton ID="LnkOpenModalAsistencia" OnClick="LnkOpenModalAsistencia_Click" Visible="false" runat="server"><i class="fa fa-users"></i>Asistencia</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<asp:LinkButton ID="LnkEnviarCorreo" OnClick="LnkEnviarCorreo_Click" Visible="false" runat="server"><i class="fa fa-paper-plane-o"></i>Enviar correo</asp:LinkButton>
|
<asp:LinkButton ID="LnkEnviarCorreo" OnClick="LnkEnviarCorreo_Click" Visible="false" runat="server"><i class="fa fa-paper-plane-o"></i>Enviar correo</asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||||
<asp:UpdatePanel ID="UpContenido" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpContenido" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtDuracion" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
<asp:TextBox ID="TxtDuracion" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDuracion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDuracion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
@@ -219,7 +219,7 @@
|
|||||||
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6" style ="display:none;">
|
<div class="col-sm-6" style="display: none;">
|
||||||
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
||||||
<%--<asp:RequiredFieldValidator ID="RFVtxtFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
<%--<asp:RequiredFieldValidator ID="RFVtxtFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
||||||
@@ -445,7 +445,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id='<%= iddivTomarAsistencia %>' class="modal ADS fade" role="dialog">
|
<div id='<%= iddivTomarAsistencia %>' class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<asp:UpdatePanel ID="UpTomarASistencia" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpTomarASistencia" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
@@ -470,7 +470,7 @@
|
|||||||
Asistió
|
Asistió
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:CheckBox ID="ChkAsistio" CssClass="ChkOk" Checked='<%# Eval("Asistencia").ToString()=="1" %>' runat="server" />
|
<asp:CheckBox ID="ChkAsistio" CssClass="ChkOk" Checked='<%# Eval("Asistencia").ToString()=="1" %>' runat="server" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
@@ -487,11 +487,11 @@
|
|||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtAsistentesExternos" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
<asp:TextBox ID="TxtAsistentesExternos" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
<asp:Label runat="server" Text="Externos" AssociatedControlID="TxtAsistentesExternos"></asp:Label>
|
<asp:Label runat="server" Text="Externos" AssociatedControlID="TxtAsistentesExternos"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:LinkButton ID="LnkUpAsistencia" OnClick="LnkUpAsistencia_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
<asp:LinkButton ID="LnkUpAsistencia" OnClick="LnkUpAsistencia_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||||
@@ -509,7 +509,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function download(filename, text) {
|
||||||
|
var element = document.createElement('a');
|
||||||
|
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
||||||
|
element.setAttribute('download', filename);
|
||||||
|
|
||||||
|
element.style.display = 'none';
|
||||||
|
document.body.appendChild(element);
|
||||||
|
|
||||||
|
element.click();
|
||||||
|
|
||||||
|
document.body.removeChild(element);
|
||||||
|
}
|
||||||
|
|
||||||
let CveRol = -1;
|
let CveRol = -1;
|
||||||
let CveSucursal = -1;
|
let CveSucursal = -1;
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||||
}
|
}
|
||||||
this.Alert("Se ha agregadó la nueva convocatoria", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
this.Alert(string.Format("Se ha agregadó la nueva convocatoria.<br/><a href=\"data:text/plain;charset=utf-8,{0}\" download=\"Agendar.ics\" class=\"btn btn-default\">⏰ Agendar</a>", HttpUtility.UrlEncode(ICString)), ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -422,7 +422,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
objOI.Commit();
|
objOI.Commit();
|
||||||
enviarConvocatoria(RCveEvento);
|
enviarConvocatoria(RCveEvento);
|
||||||
Alert("Convocatoria actualizada");
|
Alert(string.Format("Convocatoria actualizada.<br/><a href=\"data:text/plain;charset=utf-8,{0}\" download=\"Agendar.ics\" class=\"btn btn-default\">⏰ Agendar</a>", HttpUtility.UrlEncode(ICString)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -585,14 +585,21 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
return string.Format("{0}/{1}", HttpContext.Current.Request.Url.ToString().Replace(HttpContext.Current.Request.Url.PathAndQuery, ""), addstr);
|
return string.Format("{0}/{1}", HttpContext.Current.Request.Url.ToString().Replace(HttpContext.Current.Request.Url.PathAndQuery, ""), addstr);
|
||||||
}
|
}
|
||||||
string UsuarioDemail = "";
|
string UsuarioDemail = "";
|
||||||
private string MailgetBodyConvocatoria(int RCveEvento)
|
string ICString = "";
|
||||||
|
private void enviarConvocatoria(int RCveEvento)
|
||||||
{
|
{
|
||||||
|
|
||||||
int Folio = 0; string Link = ""; string Asunto = ""; string Acuerdos = ""; string Descripcion = ""; DateTime DFechai = DateTime.MinValue; DateTime DFechaf = DateTime.MinValue;
|
string Body;
|
||||||
string UsuarioDe = "";
|
string UsuarioDe = "";
|
||||||
|
|
||||||
|
#region "Body"
|
||||||
|
int Folio = 0; string Link = ""; string Asunto = ""; string Acuerdos = ""; string Descripcion = ""; DateTime DFechai = DateTime.MinValue; DateTime DFechaf = DateTime.MinValue;
|
||||||
|
UsuarioDe = "";
|
||||||
string UsuarioPara = "";
|
string UsuarioPara = "";
|
||||||
string UsuarioDeAbr = "";
|
string UsuarioDeAbr = "";
|
||||||
|
string CorreoRegistro = "";
|
||||||
|
|
||||||
System.Data.DataTable dttareas;
|
System.Data.DataTable dttareas;
|
||||||
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
@@ -600,7 +607,8 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
||||||
UsuarioDe = drow["NombreRegistro"].ToString();
|
UsuarioDe = drow["NombreRegistro"].ToString();
|
||||||
UsuarioDemail= drow["NombreRegistro"].ToString();
|
UsuarioDemail = drow["NombreRegistro"].ToString();
|
||||||
|
CorreoRegistro = drow["CorreoRegistro"].ToString().Split(',')[0].Split(';')[0];
|
||||||
Folio = drow["Folio"].ToString().ToEntero();
|
Folio = drow["Folio"].ToString().ToEntero();
|
||||||
Link = GetDominio(string.Format("OI/ConvocatoriaDetalle.aspx?CveEvento={0}", RCveEvento));
|
Link = GetDominio(string.Format("OI/ConvocatoriaDetalle.aspx?CveEvento={0}", RCveEvento));
|
||||||
Asunto = drow["Asunto"].ToString();
|
Asunto = drow["Asunto"].ToString();
|
||||||
@@ -700,13 +708,12 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
StrMail.Append(" </div>");
|
StrMail.Append(" </div>");
|
||||||
StrMail.Append(" </div>");
|
StrMail.Append(" </div>");
|
||||||
StrMail.Append("</html></body>");
|
StrMail.Append("</html></body>");
|
||||||
return StrMail.ToString();
|
|
||||||
}
|
|
||||||
private void enviarConvocatoria(int RCveEvento)
|
|
||||||
{
|
|
||||||
|
|
||||||
string Body;
|
#endregion
|
||||||
Body = MailgetBodyConvocatoria(RCveEvento);
|
|
||||||
|
|
||||||
|
|
||||||
|
Body = StrMail.ToString();//MailgetBodyConvocatoria(RCveEvento);
|
||||||
string ArrayCC = "";
|
string ArrayCC = "";
|
||||||
//ViewState("Para") = GlobalDTUsuarios(CveUsuarioIng)(0)("correo").ToString;
|
//ViewState("Para") = GlobalDTUsuarios(CveUsuarioIng)(0)("correo").ToString;
|
||||||
//ViewState("Asunto") = string.Format("SIG - Minuta {0}", TxtAsunto.Text);
|
//ViewState("Asunto") = string.Format("SIG - Minuta {0}", TxtAsunto.Text);
|
||||||
@@ -728,7 +735,11 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
List<ClsSisMail.ArchivoMail> LSRutasMail = new List<ClsSisMail.ArchivoMail>();
|
List<ClsSisMail.ArchivoMail> LSRutasMail = new List<ClsSisMail.ArchivoMail>();
|
||||||
ClsSisMail.ArchivoMail mailfile = new ClsSisMail.ArchivoMail { Ruta = string.Format("{0}Imagenes\\Bell.png", ModExtensiones.DirectorioBaseEmpresas), NombreArchivo = "Bell.png" };
|
ClsSisMail.ArchivoMail mailfile = new ClsSisMail.ArchivoMail { Ruta = string.Format("{0}Imagenes\\Bell.png", ModExtensiones.DirectorioBaseEmpresas), NombreArchivo = "Bell.png" };
|
||||||
LSRutasMail.Add(mailfile);
|
LSRutasMail.Add(mailfile);
|
||||||
|
ICString = GenerateIcsContent(string.Format("{0:yyyy/MM/dd} 00:00", txtFechaI.Text.ToDateTime()).ToDateTime(), string.Format("{0:yyyy/MM/dd} 23:59", txtFechaI.Text.ToDateTime()).ToDateTime(),
|
||||||
|
UsuarioDe, CorreoRegistro, TxtLugar.Text, Asunto,Descripcion,string.Format("Convocatoria_{0}",RCveEvento) );
|
||||||
|
ClsSisMail.ArchivoMail ICSFile = new ClsSisMail.ArchivoMail { Ruta = "",ArchivoBinario= Encoding.ASCII.GetBytes(ICString), NombreArchivo = "Agendar.ics" };
|
||||||
|
LSRutasMail.Add(ICSFile);
|
||||||
ClsSisMail.ArchivoMail itemMail = new ClsSisMail.ArchivoMail();
|
ClsSisMail.ArchivoMail itemMail = new ClsSisMail.ArchivoMail();
|
||||||
|
|
||||||
|
|
||||||
@@ -742,31 +753,44 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public string GenerateIcsContent(DateTime dateStart,
|
public string GenerateIcsContent(DateTime FechaInicio, DateTime FechaFin, string Nombreorganizador, string Correoorganizador, string Ubicacion, string Asunto, string descripcion, string uuid)
|
||||||
DateTime dateEnd, string email, string location,
|
|
||||||
string summary, string description)
|
|
||||||
{
|
{
|
||||||
string DateFormat = "yyyyMMddTHHmmssZ";
|
var DTSTART = FechaInicio.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
var s = dateStart.ToUniversalTime().ToString(DateFormat);
|
var DTEND = FechaFin.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
var e = dateEnd.ToUniversalTime().ToString(DateFormat);
|
|
||||||
var iCal = string.Format(@"BEGIN:VCALENDAR
|
/*
|
||||||
VERSION:2.0
|
BEGIN:VCALENDAR
|
||||||
METHOD:PUBLISH
|
VERSION:2.0
|
||||||
BEGIN:VEVENT
|
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
|
||||||
ORGANIZER:MAILTO:{0}
|
BEGIN:VEVENT
|
||||||
DTSTART:{1}
|
UID:uid1@example.com
|
||||||
DTEND:{2}
|
DTSTAMP:19970714T170000Z
|
||||||
LOCATION:{3}
|
ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com
|
||||||
UID:{4}
|
DTSTART:19970714T170000Z
|
||||||
DTSTAMP:{4}
|
DTEND:19970715T035959Z
|
||||||
SUMMARY:{5}
|
SUMMARY:Bastille Day Party
|
||||||
DESCRIPTION:{6}
|
END:VEVENT
|
||||||
PRIORITY:5
|
END:VCALENDAR
|
||||||
CLASS:PUBLIC
|
*/
|
||||||
END:VEVENT
|
StringBuilder strICS = new StringBuilder();
|
||||||
END:VCALENDAR", email, s, e, location,
|
strICS.AppendLine("BEGIN:VCALENDAR");
|
||||||
DateTime.Now.ToUniversalTime().ToString(DateFormat),
|
strICS.AppendLine("VERSION:2.0");
|
||||||
summary, description);
|
strICS.AppendLine("METHOD:PUBLISH");
|
||||||
return iCal;
|
strICS.AppendLine("BEGIN:VEVENT");
|
||||||
|
strICS.AppendLine(string.Format("ORGANIZER;CN={0}:MAILTO:{1}", Nombreorganizador.Replace(":", "").Replace(";", ""), Correoorganizador));
|
||||||
|
strICS.AppendLine(string.Format("DTSTART:{0}", DTSTART));
|
||||||
|
strICS.AppendLine(string.Format("DTEND:{0}", DTEND));
|
||||||
|
strICS.AppendLine(string.Format("LOCATION:{0}", Ubicacion));
|
||||||
|
strICS.AppendLine(string.Format("UID:{0}", uuid));
|
||||||
|
strICS.AppendLine(string.Format("DTSTAMP:{0}", DateTime.Now.ToUniversalTime().ToString("yyyyMMddTHHmmssZ")));
|
||||||
|
strICS.AppendLine(string.Format("SUMMARY:{0}", Asunto));
|
||||||
|
strICS.AppendLine(string.Format("DESCRIPTION:{0}", descripcion));
|
||||||
|
strICS.AppendLine("PRIORITY:5");
|
||||||
|
strICS.AppendLine("CLASS:PUBLIC");
|
||||||
|
strICS.AppendLine("END:VEVENT");
|
||||||
|
strICS.AppendLine("END:VCALENDAR");
|
||||||
|
return strICS.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,17 @@
|
|||||||
<li>
|
<li>
|
||||||
<asp:LinkButton runat="server" ID="LkbNuevaVersion" OnClick="LkbNuevaVersion_Click" data-toggle="tooltip" data-placement="left" title="Agregar una nueva versión de este documento" Text="<i class='fa fa-plus'></i>Crear Nueva Versión"></asp:LinkButton>
|
<asp:LinkButton runat="server" ID="LkbNuevaVersion" OnClick="LkbNuevaVersion_Click" data-toggle="tooltip" data-placement="left" title="Agregar una nueva versión de este documento" Text="<i class='fa fa-plus'></i>Crear Nueva Versión"></asp:LinkButton>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton runat="server" ID="LkbPDF" OnClick="LkbPDF_Click" data-toggle="tooltip" data-placement="left" title="ImprimirPDF" Text="<i class='fa fa-file-pdf-o'></i> PDF"></asp:LinkButton>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<asp:LinkButton runat="server" ID="LkbExcel" OnClick="LkbExcel_Click" data-toggle="tooltip" data-placement="left" title="ImprimirExcel" Text="<i class='fa fa-file-excel-o'></i> Excel"></asp:LinkButton>
|
||||||
|
</li>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
|
<Triggers>
|
||||||
|
<asp:PostBackTrigger ControlID="LkbPDF"/>
|
||||||
|
<asp:PostBackTrigger ControlID="LkbExcel"/>
|
||||||
|
</Triggers>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
||||||
@@ -154,7 +164,7 @@
|
|||||||
<asp:TextBox ID="TxtArchivoPropuesta" CssClass="ADSdropzone hidden" runat="server" Style="height: 100px"></asp:TextBox>
|
<asp:TextBox ID="TxtArchivoPropuesta" CssClass="ADSdropzone hidden" runat="server" Style="height: 100px"></asp:TextBox>
|
||||||
<br />
|
<br />
|
||||||
<asp:Label runat="server" ID="Label2" Text="Comentarios:" style="font-size:15px"/>
|
<asp:Label runat="server" ID="Label2" Text="Comentarios:" style="font-size:15px"/>
|
||||||
<textarea runat="server" id="TxtComentarios" class="form-control" style="border: 1px solid #e5e5e5" rows="2"></textarea>
|
<textarea runat="server" id="TxtComentarios" class="form-control" style="border: 1px solid #e5e5e5" rows="2" maxlength="300"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:Button ID="BtnAgregarPropuesta" OnClick="BtnAgregarPropuesta_Click" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposD" />
|
<asp:Button ID="BtnAgregarPropuesta" OnClick="BtnAgregarPropuesta_Click" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposD" />
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ using Extensiones;
|
|||||||
using System.Data;
|
using System.Data;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using Microsoft.Reporting.WebForms;
|
||||||
|
|
||||||
public partial class OI_DocumentoDetalle : ClsPaginas
|
public partial class OI_DocumentoDetalle : ClsPaginas
|
||||||
{
|
{
|
||||||
@@ -90,14 +91,28 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private DataTable DtUsuariosParticipantes
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ((DataTable) ViewState["DtUsuariosParticipantes"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["DtUsuariosParticipantes"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
Cargar();
|
Cargar();
|
||||||
|
CargarMensajeNuevoEditado();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region "CARGAS"
|
#region "CARGAS"
|
||||||
private void CargarCveDocumento()
|
private void CargarCveDocumento()
|
||||||
@@ -120,7 +135,7 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
switch (MensajeNuevoEditado)
|
switch (MensajeNuevoEditado)
|
||||||
{
|
{
|
||||||
case "Nuevo":
|
case "Nuevo":
|
||||||
Alert("El Documento ha sido creado correctamente");
|
Alert("El Documento ha sido creado correctamente",JSBtnAceptar: "document.location.href=\"/OI/Documentos.aspx\";");
|
||||||
break;
|
break;
|
||||||
case "NuevaVersion":
|
case "NuevaVersion":
|
||||||
Alert("Nueva versión del Documento creado correctamente");
|
Alert("Nueva versión del Documento creado correctamente");
|
||||||
@@ -148,6 +163,7 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
if (ObjOI.GetDocumentoAutorizacion(this.CveDocumento))
|
if (ObjOI.GetDocumentoAutorizacion(this.CveDocumento))
|
||||||
{
|
{
|
||||||
GvUsuarios.DataSource = ObjOI.DtResultados;
|
GvUsuarios.DataSource = ObjOI.DtResultados;
|
||||||
|
DtUsuariosParticipantes = ObjOI.DtResultados;
|
||||||
UsuariosAux = ObjOI.DtResultados;
|
UsuariosAux = ObjOI.DtResultados;
|
||||||
}
|
}
|
||||||
ObjOI.Dispose();
|
ObjOI.Dispose();
|
||||||
@@ -299,7 +315,7 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
bool MostrarSegunEnProceso = (LblEstatus.Text == "Estatus: En Proceso");
|
bool MostrarSegunEnProceso = (LblEstatus.Text == "Estatus: En Proceso");
|
||||||
LkbActualizar.Visible = !(MostrarSegunRechazado) && (UsuarioActual.CveUsuario == this.CveUsuarioResponsable);
|
LkbActualizar.Visible = !(MostrarSegunRechazado) && (UsuarioActual.CveUsuario == this.CveUsuarioResponsable);
|
||||||
DivBotonesAcciones.Visible = !(MostrarSegunAprobado || MostrarSegunRechazado);
|
DivBotonesAcciones.Visible = !(MostrarSegunAprobado || MostrarSegunRechazado);
|
||||||
UpAgregar.Visible = MostrarSegunAprobado;
|
LkbNuevaVersion.Visible = MostrarSegunAprobado;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CargarCategorias()
|
private void CargarCategorias()
|
||||||
@@ -343,7 +359,7 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
ConfiguracionActualizar();
|
ConfiguracionActualizar();
|
||||||
ConfigurarGridUsuariosParticipantes();
|
ConfigurarGridUsuariosParticipantes();
|
||||||
ConfigurarCamposDetalleSegunUsuario();
|
ConfigurarCamposDetalleSegunUsuario();
|
||||||
CargarMensajeNuevoEditado();
|
|
||||||
MostrarBotonRechazar();
|
MostrarBotonRechazar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -831,7 +847,7 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region "Rechazar"
|
#region "RECHAZAR"
|
||||||
protected void LkbRechazar_Click(object sender, EventArgs e)
|
protected void LkbRechazar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ClsOIEventos ObjOI = new ClsOIEventos();
|
ClsOIEventos ObjOI = new ClsOIEventos();
|
||||||
@@ -844,4 +860,40 @@ public partial class OI_DocumentoDetalle : ClsPaginas
|
|||||||
Response.Redirect(string.Format("/OI/DocumentoDetalle.aspx?CveDocumento={0}&Mensaje={1}", this.CveDocumento, "Rechazado"));
|
Response.Redirect(string.Format("/OI/DocumentoDetalle.aspx?CveDocumento={0}&Mensaje={1}", this.CveDocumento, "Rechazado"));
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region "IMPRIMIR"
|
||||||
|
private void Imprimir(string Formato)
|
||||||
|
{
|
||||||
|
List<ReportParameter> Params = new List<ReportParameter>();
|
||||||
|
Params.Add(new ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa));
|
||||||
|
Params.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||||
|
Params.Add(new ReportParameter("LogoPath", ""));
|
||||||
|
Params.Add(new ReportParameter("Descripcion", TxtDescripcion.Text));
|
||||||
|
Params.Add(new ReportParameter("Categoria", DdlCategoria.SelectedItem.Text));
|
||||||
|
Params.Add(new ReportParameter("SubCategoria", DdlSubCategoria.SelectedItem.Text));
|
||||||
|
Params.Add(new ReportParameter("Estatus", LblEstatus.Text.Substring(9)));
|
||||||
|
Params.Add(new ReportParameter("Version", TxtVersion.Text));
|
||||||
|
Params.Add(new ReportParameter("Responsable", TxtResponsable.Text));
|
||||||
|
Params.Add(new ReportParameter("Observaciones", TxtObs.InnerText));
|
||||||
|
Params.Add(new ReportParameter("Documento", this.ArchivoAdjuntoNombre));
|
||||||
|
|
||||||
|
|
||||||
|
var logouri = string.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
||||||
|
System.IO.FileInfo Imagen = new System.IO.FileInfo(string.Format("{0}/Logo.png", UsuarioActual.Empresa.Ruta));
|
||||||
|
string LogoRuta = (Imagen.Exists) ? logouri : "" ;
|
||||||
|
Params.Add(new ReportParameter("LogoPath", LogoRuta));
|
||||||
|
|
||||||
|
ImprimirPDF("Empresas/Grales/Formatos/RepDocumentos.rdlc", this.DtUsuariosParticipantes, Params, "Detalle del documento", Formato);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LkbPDF_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Imprimir("PDF");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LkbExcel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Imprimir("Excel");
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
@@ -746,25 +746,31 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
protected void LnkTerminarMinuta_Click(object sender, EventArgs e)
|
protected void LnkTerminarMinuta_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Cambiar el estatus a Terminada para inabilitarla y que no se pueda modificar
|
// Cambiar el estatus a Terminada para inabilitarla y que no se pueda modificar
|
||||||
ClsOIEventos objOI = new ClsOIEventos();
|
|
||||||
int tCveSeguimiento;
|
int tCveSeguimiento;
|
||||||
bool HuboError = false;
|
bool HuboError = false;
|
||||||
|
using (ClsOIEventos objOI = new ClsOIEventos())
|
||||||
objOI.IniciaTransacSQL();
|
|
||||||
|
|
||||||
tCveSeguimiento = objOI.AddEventoComentario2(RCveEvento, "Termino minuta.", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
|
||||||
|
|
||||||
if (tCveSeguimiento > 0)
|
|
||||||
{
|
{
|
||||||
if (!objOI.UpdateEstatusEvento2(4, tCveSeguimiento, RCveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
objOI.IniciaTransacSQL();
|
||||||
HuboError = true;
|
tCveSeguimiento = objOI.AddEventoComentario2(RCveEvento, "Termino minuta.", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
if (tCveSeguimiento > 0)
|
||||||
|
{
|
||||||
|
if (!objOI.UpdateEstatusEvento2(4, tCveSeguimiento, RCveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
|
HuboError = true;
|
||||||
|
}
|
||||||
|
else { HuboError = true; }
|
||||||
|
if (HuboError == false)
|
||||||
|
{
|
||||||
|
objOI.Commit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
objOI.RollBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (HuboError == false)
|
||||||
|
{
|
||||||
|
if (!EnviarMinuta()) { HuboError = true; Alert("Ocurrió un error al terminar la minuta. no se pudo enviar el correo.", ModExtensiones.TipoMensaje.MsgError); }
|
||||||
}
|
}
|
||||||
else
|
|
||||||
HuboError = true;
|
|
||||||
|
|
||||||
|
|
||||||
// 'Envia minuta si es modificada
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (HuboError == false)
|
if (HuboError == false)
|
||||||
@@ -775,22 +781,6 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");", RCveEvento);
|
script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");", RCveEvento);
|
||||||
}
|
}
|
||||||
Alert("La minuta ha finalizado.", ModExtensiones.TipoMensaje.MsgInformacion, script);
|
Alert("La minuta ha finalizado.", ModExtensiones.TipoMensaje.MsgInformacion, script);
|
||||||
objOI.Commit();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Alert("Ocurrió un error al terminar la minuta. Por favor vuelva a intentar.", ModExtensiones.TipoMensaje.MsgError);
|
|
||||||
objOI.RollBack();
|
|
||||||
}
|
|
||||||
|
|
||||||
objOI.Dispose();
|
|
||||||
|
|
||||||
|
|
||||||
if (HuboError == false)
|
|
||||||
{
|
|
||||||
if (!EnviarMinuta())
|
|
||||||
HuboError = true;
|
|
||||||
Alert("La minuta se termino con exito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LnkEnviarMinuta.Visible = true;
|
LnkEnviarMinuta.Visible = true;
|
||||||
@@ -833,7 +823,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
private string MailgetBodyMinuta()
|
private string MailgetBodyMinuta()
|
||||||
{
|
{
|
||||||
|
|
||||||
int Folio=0; string Link=""; string Asunto = ""; string Acuerdos = ""; string Descripcion = ""; DateTime DFechai=DateTime.MinValue; DateTime DFechaf = DateTime.MinValue;
|
int Folio = 0; string Link = ""; string Asunto = ""; string Acuerdos = ""; string Descripcion = ""; DateTime DFechai = DateTime.MinValue; DateTime DFechaf = DateTime.MinValue;
|
||||||
string UsuarioDe = "";
|
string UsuarioDe = "";
|
||||||
string UsuarioPara = "";
|
string UsuarioPara = "";
|
||||||
string UsuarioDeAbr = "";
|
string UsuarioDeAbr = "";
|
||||||
@@ -875,7 +865,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
if (UsuarioPara != null)
|
if (UsuarioPara != null)
|
||||||
{
|
{
|
||||||
string[] str = UsuarioPara.Split(' ');
|
string[] str = UsuarioPara.Split(' ');
|
||||||
if (str.Length > 0 && str[0].Length >0)
|
if (str.Length > 0 && str[0].Length > 0)
|
||||||
{
|
{
|
||||||
UsuariParaAbr = str[0].Substring(0, 1).ToUpper();
|
UsuariParaAbr = str[0].Substring(0, 1).ToUpper();
|
||||||
}
|
}
|
||||||
@@ -899,7 +889,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
StrMail.Append(" <span style=\"color: #6C6C6C; font-size: 17px;\">Moderador:</span>");
|
StrMail.Append(" <span style=\"color: #6C6C6C; font-size: 17px;\">Moderador:</span>");
|
||||||
StrMail.Append($" <span style=\"color: #ED7D31; font-size: 22px;font-weight: bold;\">{UsuarioDeAbr}</span>");
|
StrMail.Append($" <span style=\"color: #ED7D31; font-size: 22px;font-weight: bold;\">{UsuarioDeAbr}</span>");
|
||||||
StrMail.Append($" <span style=\"color: #6C6C6C; font-size: 17px;\">{UsuarioDe}</span><br />");
|
StrMail.Append($" <span style=\"color: #6C6C6C; font-size: 17px;\">{UsuarioDe}</span><br />");
|
||||||
StrMail.Append(" <span style=\"color: #6C6C6C; font-size: 17px;\">Fecha:</span>");
|
StrMail.Append(" <span style=\"color: #6C6C6C; font-size: 17px;\">Fecha:</span>");
|
||||||
StrMail.Append($" <span style=\"color: #6C6C6C; font-size: 17px;\">{DFechai: dd} de {DFechai: MMMM yyyy HH:mm}</span><br />");
|
StrMail.Append($" <span style=\"color: #6C6C6C; font-size: 17px;\">{DFechai: dd} de {DFechai: MMMM yyyy HH:mm}</span><br />");
|
||||||
StrMail.Append(" </td>");
|
StrMail.Append(" </td>");
|
||||||
StrMail.Append(" <td style=\"width: 20%;\">");
|
StrMail.Append(" <td style=\"width: 20%;\">");
|
||||||
@@ -940,21 +930,21 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(dttareas != null && dttareas.Rows.Count > 0)
|
if (dttareas != null && dttareas.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
StrMail.Append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%\">");
|
StrMail.Append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%\">");
|
||||||
StrMail.Append(" <thead>");
|
StrMail.Append(" <thead>");
|
||||||
StrMail.Append(" <tr style=\"background-color:#dddddd;\">");
|
StrMail.Append(" <tr style=\"background-color:#dddddd;\">");
|
||||||
StrMail.Append(" <th scope=\"col\">Folio</th>");
|
StrMail.Append(" <th scope=\"col\">Folio</th>");
|
||||||
StrMail.Append(" <th scope=\"col\">Asunto</th>");
|
StrMail.Append(" <th scope=\"col\">Asunto</th>");
|
||||||
StrMail.Append(" <th scope=\"col\">Descripción</th>");
|
StrMail.Append(" <th scope=\"col\">Descripción</th>");
|
||||||
StrMail.Append(" <th scope=\"col\">Para</th>");
|
StrMail.Append(" <th scope=\"col\">Para</th>");
|
||||||
StrMail.Append(" <th scope=\"col\">Inicio</th>");
|
StrMail.Append(" <th scope=\"col\">Inicio</th>");
|
||||||
StrMail.Append(" <th scope=\"col\">Fin</th>");
|
StrMail.Append(" <th scope=\"col\">Fin</th>");
|
||||||
StrMail.Append(" </tr>");
|
StrMail.Append(" </tr>");
|
||||||
StrMail.Append(" </thead>");
|
StrMail.Append(" </thead>");
|
||||||
StrMail.Append(" <tbody>");
|
StrMail.Append(" <tbody>");
|
||||||
foreach (System.Data.DataRow drow in dttareas.Rows )
|
foreach (System.Data.DataRow drow in dttareas.Rows)
|
||||||
{
|
{
|
||||||
|
|
||||||
StrMail.Append(" <tr>");
|
StrMail.Append(" <tr>");
|
||||||
@@ -966,8 +956,8 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
StrMail.Append($" <td>{drow["FechaFin"]: dd/MM/yyyy}</td>");
|
StrMail.Append($" <td>{drow["FechaFin"]: dd/MM/yyyy}</td>");
|
||||||
StrMail.Append(" </tr>");
|
StrMail.Append(" </tr>");
|
||||||
}
|
}
|
||||||
StrMail.Append(" </tbody>");
|
StrMail.Append(" </tbody>");
|
||||||
StrMail.Append("</table>");
|
StrMail.Append("</table>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1006,14 +996,14 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
//System.Threading.Thread Hilo = new System.Threading.Thread(MandaCorreo);
|
//System.Threading.Thread Hilo = new System.Threading.Thread(MandaCorreo);
|
||||||
//Hilo.Start();
|
//Hilo.Start();
|
||||||
string abre = "";
|
string abre = "";
|
||||||
using (ClsOIEventos ObjOI_E =new ClsOIEventos())
|
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
if (ObjOI_E.GetEventosUsuario2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados!=null && ObjOI_E.DtResultados.Rows.Count >0)
|
if (ObjOI_E.GetEventosUsuario2(RCveEvento, UsuarioActual.CveEmpresa) && ObjOI_E.DtResultados != null && ObjOI_E.DtResultados.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (System.Data.DataRow item in ObjOI_E.DtResultados.Rows )
|
foreach (System.Data.DataRow item in ObjOI_E.DtResultados.Rows)
|
||||||
{
|
{
|
||||||
if (item["Correo"].ToString().Trim().Length >0)
|
if (item["Correo"].ToString().Trim().Length > 0)
|
||||||
ArrayCC = string.Format("{0}{1}{2}", ArrayCC,abre, item["Correo"].ToString().Trim());
|
ArrayCC = string.Format("{0}{1}{2}", ArrayCC, abre, item["Correo"].ToString().Trim());
|
||||||
abre = ";";
|
abre = ";";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1025,7 +1015,7 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
|
|
||||||
|
|
||||||
ClsSisMail Mail = new ClsSisMail();
|
ClsSisMail Mail = new ClsSisMail();
|
||||||
Mail.SendMail(EmpresaNotificaciones, get_GlobalDTUsuarios(UsuarioActual.CveUsuario).Rows[0]["correo"].ToString() +";"+ TxtCorreoExterno.Text, TxtAsunto.Text, Body, CCP: ArrayCC,Archivos: LSRutasMail);
|
Mail.SendMail(EmpresaNotificaciones, get_GlobalDTUsuarios(UsuarioActual.CveUsuario).Rows[0]["correo"].ToString() + ";" + TxtCorreoExterno.Text, TxtAsunto.Text, Body, CCP: ArrayCC, Archivos: LSRutasMail);
|
||||||
//Alert("Se Envió por correo la Minuta", ModExtensiones.TipoMensaje.MsgInformacion);
|
//Alert("Se Envió por correo la Minuta", ModExtensiones.TipoMensaje.MsgInformacion);
|
||||||
Retorno = true;
|
Retorno = true;
|
||||||
}
|
}
|
||||||
@@ -1378,8 +1368,44 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
LnkTerminarMinuta_Click(null, null);
|
LnkTerminarMinuta_Click(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string GenerateIcsContent(DateTime FechaInicio, DateTime FechaFin, string Nombreorganizador, string Correoorganizador, string Ubicacion, string Asunto, string descripcion, string uuid)
|
||||||
|
{
|
||||||
|
var DTSTART = FechaInicio.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
|
var DTEND = FechaFin.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
|
|
||||||
|
/*
|
||||||
|
BEGIN:VCALENDAR
|
||||||
|
VERSION:2.0
|
||||||
|
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
|
||||||
|
BEGIN:VEVENT
|
||||||
|
UID:uid1@example.com
|
||||||
|
DTSTAMP:19970714T170000Z
|
||||||
|
ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com
|
||||||
|
DTSTART:19970714T170000Z
|
||||||
|
DTEND:19970715T035959Z
|
||||||
|
SUMMARY:Bastille Day Party
|
||||||
|
END:VEVENT
|
||||||
|
END:VCALENDAR
|
||||||
|
*/
|
||||||
|
StringBuilder strICS = new StringBuilder();
|
||||||
|
strICS.Append("BEGIN:VCALENDAR");
|
||||||
|
strICS.Append("VERSION:2.0");
|
||||||
|
strICS.Append("METHOD:PUBLISH");
|
||||||
|
strICS.Append("BEGIN:VEVENT");
|
||||||
|
strICS.AppendFormat("ORGANIZER;CN={0}:MAILTO:{1}", Nombreorganizador.Replace(":", "").Replace(";", ""), Correoorganizador);
|
||||||
|
strICS.AppendFormat("DTSTART:{0}", DTSTART);
|
||||||
|
strICS.AppendFormat("DTEND:{0}", DTEND);
|
||||||
|
strICS.AppendFormat("LOCATION:{0}", Ubicacion);
|
||||||
|
strICS.AppendFormat("UID:{0}", uuid);
|
||||||
|
strICS.AppendFormat("DTSTAMP:{0}", DateTime.Now.ToUniversalTime().ToString("yyyyMMddTHHmmssZ"));
|
||||||
|
strICS.AppendFormat("SUMMARY:{0}", Asunto);
|
||||||
|
strICS.AppendFormat("DESCRIPTION:{0}", descripcion);
|
||||||
|
strICS.Append("PRIORITY:5");
|
||||||
|
strICS.Append("CLASS:PUBLIC");
|
||||||
|
strICS.Append("END:VEVENT");
|
||||||
|
strICS.Append("END:VCALENDAR");
|
||||||
|
return strICS.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void LnkOpenModalAsistencia_Click(object sender, EventArgs e)
|
protected void LnkOpenModalAsistencia_Click(object sender, EventArgs e)
|
||||||
|
|||||||
494
OI/Proyecto.aspx
494
OI/Proyecto.aspx
@@ -31,12 +31,17 @@
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gantt-samples-banner_controls_bar.controls_bar, .gantt_scale_line .gantt_scale_cell, .gantt_grid_scale .gantt_grid_head_cell, .gantt_grid_scale .gantt_grid_head_cell a, .gantt_grid_scale .gantt_grid_head_cell a:hover {
|
||||||
|
background-color: #95a5a6 !important;
|
||||||
|
color: #FFF !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<%--<link href="/Metronic/assets/global/plugins/GantJS/jsgantt.css" rel="stylesheet" type="text/css" />--%>
|
<%--<link href="/Metronic/assets/global/plugins/GantJS/jsgantt.css" rel="stylesheet" type="text/css" />--%>
|
||||||
<link rel="stylesheet" href="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.css" type="text/css">
|
<link rel="stylesheet" href="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.css" type="text/css">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Proyecto:
|
Proyecto:<asp:Label ID="LblAsunto" runat="server" Text=""></asp:Label>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -58,143 +63,146 @@
|
|||||||
|
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<div class="gantt-samples-banner_controls_bar controls_bar">
|
<div class="gantt-samples-banner_controls_bar controls_bar">
|
||||||
|
|
||||||
<strong>Formato: </strong>
|
<strong>Formato: </strong>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="week">
|
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="week">
|
||||||
<span>Horas</span></label>
|
<span>Horas</span></label>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="trplweek" checked="true">
|
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="trplweek" checked="true">
|
||||||
<span>Día</span></label>
|
<span>Día</span></label>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="year">
|
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="year">
|
||||||
<span>Mes</span></label>
|
<span>Mes</span></label>
|
||||||
|
<label>
|
||||||
|
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="yearyear">
|
||||||
|
<span>año</span></label>
|
||||||
|
|
||||||
<div id="filter_hours" style="display: none;">
|
<div id="filter_hours" style="display: none;">
|
||||||
|
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<strong>Mostrar: </strong>
|
<strong>Mostrar: </strong>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="full_day">
|
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="full_day">
|
||||||
<span>Dia Completo</span>
|
<span>Dia Completo</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="work_hours">
|
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="work_hours">
|
||||||
<span>Horario de Oficina</span>
|
<span>Horario de Oficina</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="filter_days" style="">
|
<div id="filter_days" style="">
|
||||||
|
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<strong>Mostrar: </strong>
|
<strong>Mostrar: </strong>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="full_week">
|
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="full_week">
|
||||||
<span>Semana completa</span>
|
<span>Semana completa</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="work_week">
|
<input name="scales_filter" onclick="set_scale_units(this)" type="radio" value="work_week">
|
||||||
<span>Dias de Trabajo</span>
|
<span>Dias de Trabajo</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="gantt_here" style='width: 100%; height: 100vh;'></div>
|
<div id="gantt_here" style='width: 100%; height: 100vh;'></div>
|
||||||
|
|
||||||
<div id='<%= iddivAgregarProyecto %>' class="modal ADS fade" role="dialog">
|
<div id='<%= iddivAgregarProyecto %>' class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<asp:UpdatePanel ID="UpModalProyecto" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpModalProyecto" class="modal-content " tabindex="-1" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
|
||||||
<h4 class="modal-title" style="text-align: left">
|
<h4 class="modal-title" style="text-align: left">
|
||||||
<asp:Literal ID="LtlTituloNewProyecto" runat="server">Proyecto</asp:Literal></h4>
|
<asp:Literal ID="LtlTituloNewProyecto" runat="server">Proyecto</asp:Literal></h4>
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
|
|
||||||
<asp:Panel runat="server" ID="portletTarea" class="portlet light smmallpadding bordered">
|
|
||||||
<div class="portlet-title">
|
|
||||||
<div class="caption font-green">
|
|
||||||
<i class="icon-pin font-green"></i>
|
|
||||||
<span class="caption-subject bold uppercase">Nuevo</span>
|
|
||||||
</div>
|
|
||||||
<div class="tools">
|
|
||||||
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body rowpadding">
|
<div class="modal-body">
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
||||||
<asp:Label runat="server" Text="Asunto:" AssociatedControlID="TxtAsunto"></asp:Label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group form-md-line-input">
|
|
||||||
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RfvDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
||||||
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group form-md-line-input">
|
<asp:Panel runat="server" ID="portletTarea" class="portlet light smmallpadding bordered">
|
||||||
<asp:DropDownList ID="DdlPara" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%">
|
<div class="portlet-title">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<div class="caption font-green">
|
||||||
</asp:DropDownList>
|
<i class="icon-pin font-green"></i>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlPara">Para:</asp:Label>
|
<span class="caption-subject bold uppercase">Nuevo</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="tools">
|
||||||
<div class="col-sm-6">
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
||||||
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
||||||
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
||||||
<asp:Label AssociatedControlID="txtFechaI" runat="server" Text="Fecha Inicio"></asp:Label>
|
|
||||||
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="portlet-body rowpadding">
|
||||||
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
<asp:TextBox ID="TxtAsunto" runat="server" CssClass="form-control" CausesValidation="true"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVtxtFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RFVAsunto" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtAsunto" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
<asp:Label AssociatedControlID="txtFechaF" runat="server" Text="Fecha Fin"></asp:Label>
|
<asp:Label runat="server" Text="Asunto:" AssociatedControlID="TxtAsunto"></asp:Label>
|
||||||
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VcoFechaF" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
<asp:TextBox ID="TxtDescripcion" runat="server" CssClass="form-control" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:RequiredFieldValidator ID="RfvDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
<asp:ListItem Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
<asp:Label runat="server" Text="Descripción" AssociatedControlID="TxtDescripcion"></asp:Label>
|
||||||
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="col-sm-6">
|
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:DropDownList ID="DdlTema" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveRevision" DataTextField="Revision" Width="100%">
|
<asp:DropDownList ID="DdlPara" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveUsuario" DataTextField="Nombre" Width="100%">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<asp:Label runat="server" AssociatedControlID="DdlTema">Tema:</asp:Label>
|
<asp:Label runat="server" AssociatedControlID="DdlPara">Para:</asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label AssociatedControlID="txtFechaI" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||||
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVtxtFechaF" runat="server" ControlToValidate="txtFechaF" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label AssociatedControlID="txtFechaF" runat="server" Text="Fecha Fin"></asp:Label>
|
||||||
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoFechaF" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaF" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlPrioridad" runat="server" CssClass="form-control select2me input-sm" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Baja" Value="1" class="itembaja"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Media" Value="2" class="itemmedia"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Alta" Value="3" class="itemalta"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVPrioridad" runat="server" ControlToValidate="DdlPrioridad" Display="None" ErrorMessage="El campo <b>''Prioridad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlPrioridad">Prioridad:</asp:Label>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VCOPrio" runat="server" TargetControlID="RFVPrioridad" HighlightCssClass="vco" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-group form-md-line-input">
|
||||||
|
<asp:DropDownList ID="DdlTema" runat="server" CssClass="form-control select2me input-sm" DataValueField="CveRevision" DataTextField="Revision" Width="100%">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
<asp:Label runat="server" AssociatedControlID="DdlTema">Tema:</asp:Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</asp:Panel>
|
||||||
|
<asp:TextBox ID="txtCveEvento" CssClass="hidden txtCveEvento" runat="server"></asp:TextBox>
|
||||||
|
<asp:Button ID="BtnopenmodalClickGant" OnClick="BtnopenmodalClickGant_Click" CssClass="hidden BtnopenmodalClickGant" UseSubmitBehavior="false" runat="server" Text="Button" />
|
||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
<div class="modal-footer">
|
||||||
<asp:TextBox ID="txtCveEvento" CssClass="hidden txtCveEvento" runat="server"></asp:TextBox>
|
<asp:LinkButton ID="btnguardarProyecto" OnClick="btnguardarProyecto_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
||||||
<asp:Button ID="BtnopenmodalClickGant" OnClick="BtnopenmodalClickGant_Click" CssClass="hidden BtnopenmodalClickGant" UseSubmitBehavior="false" runat="server" Text="Button" />
|
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
</ContentTemplate>
|
||||||
<asp:LinkButton ID="btnguardarProyecto" OnClick="btnguardarProyecto_Click" CssClass="btn btn-primary" runat="server">Guardar</asp:LinkButton>
|
</asp:UpdatePanel>
|
||||||
<button data-dismiss="modal" class="btn btn-danger">Cancelar</button>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
|
||||||
</asp:UpdatePanel>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<script src="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.js"></script>
|
<script src="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.js"></script>
|
||||||
@@ -204,129 +212,141 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
let RCveEvento =<%= RCveEvento %>;
|
||||||
function NuevoEvento(CveEvento) {
|
function NuevoEvento(CveEvento) {
|
||||||
$('.txtCveEvento').val(CveEvento);
|
$('.txtCveEvento').val(CveEvento);
|
||||||
$('.BtnopenmodalClickGant').click();
|
$('.BtnopenmodalClickGant').click();
|
||||||
}
|
}
|
||||||
function zoom_tasks(node) {
|
function zoom_tasks(node) {
|
||||||
switch (node.value) {
|
switch (node.value) {
|
||||||
case "week":
|
case "week":
|
||||||
gantt.config.scale_unit = "day";
|
gantt.config.scale_unit = "day";
|
||||||
gantt.config.date_scale = "%d %M";
|
gantt.config.date_scale = "%d %M";
|
||||||
|
|
||||||
gantt.config.scale_height = 60;
|
gantt.config.scale_height = 60;
|
||||||
gantt.config.min_column_width = 30;
|
gantt.config.min_column_width = 30;
|
||||||
gantt.config.subscales = [
|
gantt.config.subscales = [
|
||||||
{ unit: "hour", step: 1, date: "%H" }
|
{ unit: "hour", step: 1, date: "%H" }
|
||||||
];
|
];
|
||||||
show_scale_options("hour");
|
show_scale_options("hour");
|
||||||
break;
|
break;
|
||||||
case "trplweek":
|
case "trplweek":
|
||||||
gantt.config.min_column_width = 70;
|
gantt.config.min_column_width = 70;
|
||||||
gantt.config.scale_unit = "day";
|
gantt.config.scale_unit = "day";
|
||||||
gantt.config.date_scale = "%d %M";
|
gantt.config.date_scale = "%d %M";
|
||||||
gantt.config.subscales = [];
|
gantt.config.subscales = [];
|
||||||
gantt.config.scale_height = 35;
|
gantt.config.scale_height = 35;
|
||||||
show_scale_options("day");
|
show_scale_options("day");
|
||||||
break;
|
break;
|
||||||
case "month":
|
case "month":
|
||||||
gantt.config.min_column_width = 70;
|
gantt.config.min_column_width = 70;
|
||||||
gantt.config.scale_unit = "week";
|
gantt.config.scale_unit = "week";
|
||||||
gantt.config.date_scale = "Week #%W";
|
gantt.config.date_scale = "Week #%W";
|
||||||
gantt.config.subscales = [
|
gantt.config.subscales = [
|
||||||
{ unit: "day", step: 1, date: "%D" }
|
{ unit: "day", step: 1, date: "%D" }
|
||||||
];
|
];
|
||||||
show_scale_options();
|
show_scale_options();
|
||||||
gantt.config.scale_height = 60;
|
gantt.config.scale_height = 60;
|
||||||
break;
|
break;
|
||||||
case "year":
|
case "year":
|
||||||
gantt.config.min_column_width = 70;
|
gantt.config.min_column_width = 70;
|
||||||
gantt.config.scale_unit = "month";
|
gantt.config.scale_unit = "month";
|
||||||
gantt.config.date_scale = "%M";
|
gantt.config.date_scale = "%M";
|
||||||
gantt.config.scale_height = 60;
|
gantt.config.scale_height = 60;
|
||||||
show_scale_options();
|
show_scale_options();
|
||||||
gantt.config.subscales = [
|
gantt.config.subscales = [
|
||||||
{ unit: "week", step: 1, date: "#%W" }
|
{ unit: "week", step: 1, date: "#%W" }
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
case "yearyear":
|
||||||
set_scale_units();
|
gantt.config.min_column_width = 70;
|
||||||
gantt.render();
|
gantt.config.scale_unit = "month";
|
||||||
|
gantt.config.date_scale = "%y %M";
|
||||||
|
gantt.config.scale_height = 60;
|
||||||
|
show_scale_options();
|
||||||
|
gantt.config.subscales = [
|
||||||
|
{ unit: "month", step: 1, date: "#%M" }
|
||||||
|
];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
function show_scale_options(mode) {
|
set_scale_units();
|
||||||
var hourConf = document.getElementById("filter_hours"),
|
gantt.render();
|
||||||
dayConf = document.getElementById("filter_days");
|
}
|
||||||
if (mode == 'day') {
|
function show_scale_options(mode) {
|
||||||
hourConf.style.display = "none";
|
var hourConf = document.getElementById("filter_hours"),
|
||||||
dayConf.style.display = "";
|
dayConf = document.getElementById("filter_days");
|
||||||
dayConf.getElementsByTagName("input")[0].checked = true;
|
if (mode == 'day') {
|
||||||
} else if (mode == "hour") {
|
hourConf.style.display = "none";
|
||||||
hourConf.style.display = "";
|
dayConf.style.display = "";
|
||||||
dayConf.style.display = "none";
|
dayConf.getElementsByTagName("input")[0].checked = true;
|
||||||
hourConf.getElementsByTagName("input")[0].checked = true;
|
} else if (mode == "hour") {
|
||||||
} else {
|
hourConf.style.display = "";
|
||||||
hourConf.style.display = "none";
|
dayConf.style.display = "none";
|
||||||
dayConf.style.display = "none";
|
hourConf.getElementsByTagName("input")[0].checked = true;
|
||||||
}
|
} else {
|
||||||
|
hourConf.style.display = "none";
|
||||||
|
dayConf.style.display = "none";
|
||||||
}
|
}
|
||||||
function set_scale_units(mode) {
|
}
|
||||||
if (mode && mode.getAttribute) {
|
function set_scale_units(mode) {
|
||||||
mode = mode.getAttribute("value");
|
if (mode && mode.getAttribute) {
|
||||||
}
|
mode = mode.getAttribute("value");
|
||||||
|
|
||||||
switch (mode) {
|
|
||||||
case "work_hours":
|
|
||||||
gantt.config.subscales = [
|
|
||||||
{ unit: "hour", step: 1, date: "%H" }
|
|
||||||
];
|
|
||||||
gantt.ignore_time = function (date) {
|
|
||||||
if (date.getHours() < 9 || date.getHours() > 16) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
break;
|
|
||||||
case "full_day":
|
|
||||||
gantt.config.subscales = [
|
|
||||||
{ unit: "hour", step: 3, date: "%H" }
|
|
||||||
];
|
|
||||||
gantt.ignore_time = null;
|
|
||||||
break;
|
|
||||||
case "work_week":
|
|
||||||
gantt.ignore_time = function (date) {
|
|
||||||
if (date.getDay() == 0 || date.getDay() == 6) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
gantt.ignore_time = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
gantt.render();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (mode) {
|
||||||
|
case "work_hours":
|
||||||
|
gantt.config.subscales = [
|
||||||
|
{ unit: "hour", step: 1, date: "%H" }
|
||||||
|
];
|
||||||
|
gantt.ignore_time = function (date) {
|
||||||
|
if (date.getHours() < 9 || date.getHours() > 16) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "full_day":
|
||||||
|
gantt.config.subscales = [
|
||||||
|
{ unit: "hour", step: 3, date: "%H" }
|
||||||
|
];
|
||||||
|
gantt.ignore_time = null;
|
||||||
|
break;
|
||||||
|
case "work_week":
|
||||||
|
gantt.ignore_time = function (date) {
|
||||||
|
if (date.getDay() == 0 || date.getDay() == 6) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
gantt.ignore_time = null;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
gantt.render();
|
||||||
|
}
|
||||||
var datosGant = [];
|
var datosGant = [];
|
||||||
function loadGant() {
|
function loadGant() {
|
||||||
gantt.config.date_format = "%Y-%m-%d %H:%i";
|
gantt.config.date_format = "%Y-%m-%d %H:%i";
|
||||||
|
gantt.config.order_branch = true;
|
||||||
gantt.i18n.setLocale("es");
|
gantt.i18n.setLocale("es");
|
||||||
gantt.init("gantt_here");
|
gantt.init("gantt_here");
|
||||||
gantt.config.columns = [
|
gantt.config.columns = [
|
||||||
{ name: "text", label: "Proyecto ", width: "*", min_width: 350, tree: true, resize: true, template: function (obj) { return "<a href=\"/OI/TareaDetalle.aspx?CveEvento="+obj.id+"\" target=\"_Blank\">" + obj.text + " </a>" } },
|
{ name: "text", label: "Proyecto ", width: "*", min_width: 350, tree: true, resize: true, template: function (obj) { return "<a href=\"/OI/TareaDetalle.aspx?CveEvento=" + obj.id + "\" target=\"_Blank\">" + obj.text + " </a>" } },
|
||||||
{ name: "start_date", label: "Inicio", min_width: 90, align: "center" },
|
{ name: "start_date", label: "Inicio", min_width: 90, align: "center" },
|
||||||
{ name: "end_date", label: "Fin", min_width: 90, align: "center" },
|
{ name: "end_date", label: "Fin", min_width: 90, align: "center" },
|
||||||
{ name: "progress", label: "Avance", align: "center", template: function (obj) { return "" + (obj.progress * 100) + " %" } },
|
{ name: "progress", label: "Avance", align: "center", template: function (obj) { return "" + (obj.progress * 100).toFixed(2) + " %" } },
|
||||||
{ name: "duration", label: "Duracion", align: "center" },
|
{ name: "duration", label: "Duración", align: "center" },
|
||||||
{ name: "new", label: "<i class='fa fa-plus'></i>", align: "center",template: function (obj) { return "<a onclick=\"NuevoEvento("+obj.id+");\" target=\"_Blank\"><i class='fa fa-plus'></i> </a>" } }
|
{ name: "new", label: "<a onclick=\"NuevoEvento(" + RCveEvento + ");\" target=\"_Blank\"><i class='fa fa-plus'></i></a>", align: "center", template: function (obj) { return "<a onclick=\"NuevoEvento(" + obj.id + ");\" target=\"_Blank\"><i class='fa fa-plus'></i> </a>" } }
|
||||||
/*{name:"staff", label:"Holder(s)", template:function(obj){return obj.holder+"("+obj.progress+")"} },*/
|
/*{name:"staff", label:"Holder(s)", template:function(obj){return obj.holder+"("+obj.progress+")"} },*/
|
||||||
//{ name: "add", label: "" }
|
//{ name: "add", label: "" }
|
||||||
];
|
];
|
||||||
gantt.parse({
|
gantt.parse({
|
||||||
data:datosGant
|
data: datosGant
|
||||||
//data: [
|
//data: [
|
||||||
// { id: 1, text: "Apertura de Sucursal", start_date: null, duration: null, parent: 0, progress: 0, open: true },
|
// { id: 1, text: "Apertura de Sucursal", start_date: null, duration: null, parent: 0, progress: 0, open: true },
|
||||||
// { id: 2, text: "Direccion: evaluación de mercado", start_date: "2020/04/29 00:00", end_date: "2020/05/02 00:00",/*duration: 3,*/ parent: 1, progress: 0.25 },
|
// { id: 2, text: "Direccion: evaluación de mercado", start_date: "2020/04/29 00:00", end_date: "2020/05/02 00:00",/*duration: 3,*/ parent: 1, progress: 0.25 },
|
||||||
@@ -336,7 +356,7 @@
|
|||||||
// { id: 6, text: "Propaganda,Mkt: Inaguración", start_date: "2020/05/05 00:00", duration: 6, parent: 1, progress: 0.1 },
|
// { id: 6, text: "Propaganda,Mkt: Inaguración", start_date: "2020/05/05 00:00", duration: 6, parent: 1, progress: 0.1 },
|
||||||
// //{id: 7, text: "", start_date: "2020/05/ 00:00", duration:5, parent:1, progress: 1},
|
// //{id: 7, text: "", start_date: "2020/05/ 00:00", duration:5, parent:1, progress: 1},
|
||||||
// //{id: 8, text: "", start_date: "2020/05/ 00:00", duration:5, parent:1, progress: 1},
|
// //{id: 8, text: "", start_date: "2020/05/ 00:00", duration:5, parent:1, progress: 1},
|
||||||
|
|
||||||
// { id: 7, text: "Asamblea Anual", start_date: null, duration: null, parent: 0, progress: 0, open: true },
|
// { id: 7, text: "Asamblea Anual", start_date: null, duration: null, parent: 0, progress: 0, open: true },
|
||||||
// { id: 8, text: "Contabilidad: Impuestos", start_date: "2020/05/05 00:00", duration: 13, parent: 7, progress: 0.6 },
|
// { id: 8, text: "Contabilidad: Impuestos", start_date: "2020/05/05 00:00", duration: 13, parent: 7, progress: 0.6 },
|
||||||
// { id: 9, text: "Contabilida: utilidad o pérdida", start_date: "2020/05/06 00:00", duration: 9, parent: 7, progress: 0.5 },
|
// { id: 9, text: "Contabilida: utilidad o pérdida", start_date: "2020/05/06 00:00", duration: 9, parent: 7, progress: 0.5 },
|
||||||
@@ -351,14 +371,30 @@
|
|||||||
//]
|
//]
|
||||||
|
|
||||||
/*,
|
/*,
|
||||||
links:[
|
links:[
|
||||||
{id:1, source:2, target:3, type:"0"},
|
{id:1, source:2, target:3, type:"0"},
|
||||||
{id:2, source:3, target:4, type:"0"},
|
{id:2, source:3, target:4, type:"0"},
|
||||||
{id:3, source:5, target:6, type:"0"}
|
{id:3, source:5, target:6, type:"0"}
|
||||||
]*/
|
]*/
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
gantt.attachEvent("onBeforeTaskMove", function (id, parent, tindex) {
|
||||||
|
console.log(tindex)
|
||||||
|
var task = gantt.getTask(id);
|
||||||
|
if (task.parent != parent)
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
gantt.attachEvent("onRowDragEnd", function (id, target,tindex) {
|
||||||
|
console.log(tindex)
|
||||||
|
debugger;
|
||||||
|
drag_id = null;
|
||||||
|
gantt.render();
|
||||||
|
});
|
||||||
loadGant();
|
loadGant();
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<%--<script>
|
<%--<script>
|
||||||
|
|||||||
@@ -50,7 +50,14 @@ public partial class OI_Proyecto : ClsPaginas
|
|||||||
str.AppendLine("datosGant=[");
|
str.AppendLine("datosGant=[");
|
||||||
using (ClsOIEventos oieve = new ClsOIEventos())
|
using (ClsOIEventos oieve = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
if (oieve.GetTareaConHijos(RCveEvento,UsuarioActual.CveEmpresa))
|
|
||||||
|
|
||||||
|
if (oieve.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && oieve.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
System.Data.DataRow drow = oieve.DtResultados.Rows[0];
|
||||||
|
LblAsunto.Text = drow["Asunto"].ToString();
|
||||||
|
}
|
||||||
|
if (oieve.GetTareaConHijos(RCveEvento,UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
foreach (System.Data.DataRow dr in oieve.DtResultados.Select("Nivel > 0"))
|
foreach (System.Data.DataRow dr in oieve.DtResultados.Select("Nivel > 0"))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,17 +5,17 @@
|
|||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
.sortableList h4 {
|
.sortableList h4 {
|
||||||
background-color: #EEE;
|
background-color: #ccc;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sortableList {
|
.sortableList {
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
width: 250px;
|
width: 258px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,7 +31,9 @@
|
|||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
padding: 5px 0 0 0;
|
padding: 5px 0 0 0;
|
||||||
margin: 0;
|
background-color: #eee;
|
||||||
|
border: dotted #ccc;
|
||||||
|
margin: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sortableList ul li {
|
.sortableList ul li {
|
||||||
@@ -45,17 +47,22 @@
|
|||||||
padding: 7px 35px 7px 5px;
|
padding: 7px 35px 7px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.ListSorter > li {
|
ul.ListSorter > li {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sortableList ul li .btn.edit {
|
.sortableList ul li .btn.edit {
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bootomadd {
|
||||||
|
padding: 4px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
@@ -99,7 +106,7 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:Repeater>
|
</asp:Repeater>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="text-center">
|
<div class="text-center bootomadd">
|
||||||
|
|
||||||
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
||||||
</div>
|
</div>
|
||||||
@@ -170,15 +177,42 @@
|
|||||||
<asp:UpdatePanel runat="server" ID="Uppositionevento" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="Uppositionevento" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Button ID="BtnUpPosition" OnClick="BtnUpPosition_Click" runat="server" Text="Agregar" CssClass="btn btn-primary hidden BtnUpPosition" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxc" />
|
<asp:Button ID="BtnUpPosition" OnClick="BtnUpPosition_Click" runat="server" Text="Agregar" CssClass="btn btn-primary hidden BtnUpPosition" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxc" />
|
||||||
<asp:TextBox ID="Txtcvetablerolista" CssClass=" hidden Txtcvetablerolista" runat="server"></asp:TextBox><asp:TextBox ID="txtCveEvento" CssClass="txtCveEvento hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCveOrdeList" CssClass=" hidden TxtCveOrdeList" runat="server"></asp:TextBox>
|
||||||
|
<asp:Button ID="BtnOrderList" runat="server" OnClick="BtnOrderList_Click" CssClass="btn btn-primary hidden BtnOrderList" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxzc" />
|
||||||
|
<asp:TextBox ID="Txtcvetablerolista" CssClass=" hidden Txtcvetablerolista" runat="server"></asp:TextBox>
|
||||||
|
<asp:TextBox ID="txtCveEvento" CssClass="txtCveEvento hidden" runat="server"></asp:TextBox>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script>
|
<script>
|
||||||
|
let CurrentorderList = ''
|
||||||
|
function GetOrderList() {
|
||||||
|
|
||||||
|
let OrdeList = '';
|
||||||
|
let separator = '';
|
||||||
|
let Orden = 1;
|
||||||
|
$('.ListSorter > li').each(function () {
|
||||||
|
OrdeList = OrdeList + separator + Orden + ':' + $(this).data('cvetablerolista');
|
||||||
|
separator = ',';
|
||||||
|
Orden = Orden + 1;
|
||||||
|
});
|
||||||
|
return OrdeList;
|
||||||
|
}
|
||||||
|
function GetOrderListEvento(ulelement) {
|
||||||
|
|
||||||
|
let OrdeList = '';
|
||||||
|
let separator = '';
|
||||||
|
let Orden = 1;
|
||||||
|
ulelement.find(' li').each(function () {
|
||||||
|
OrdeList = OrdeList + separator + Orden + ':' + $(this).data('cveevento');
|
||||||
|
separator = ',';
|
||||||
|
Orden = Orden + 1;
|
||||||
|
});
|
||||||
|
return OrdeList;
|
||||||
|
}
|
||||||
function ADSReady() {
|
function ADSReady() {
|
||||||
|
CurrentorderList = GetOrderList();
|
||||||
var cvetablerolistaold = 0;
|
var cvetablerolistaold = 0;
|
||||||
var cvetablerolistanew = 0;
|
var cvetablerolistanew = 0;
|
||||||
|
|
||||||
@@ -190,7 +224,16 @@
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
cvetablerolistanew = $(event.srcElement).data('cvetablerolista');
|
cvetablerolistanew = $(event.srcElement).data('cvetablerolista');
|
||||||
//let cveevento = $(event.srcElement).data('cveevento');
|
//let cveevento = $(event.srcElement).data('cveevento');
|
||||||
//$('.Txtcvetablerolista').val(cvetablerolistanew);
|
|
||||||
|
setTimeout(function () {
|
||||||
|
let OrdeList = GetOrderList();
|
||||||
|
$('.TxtCveOrdeList').val(OrdeList);
|
||||||
|
console.log(OrdeList);
|
||||||
|
if (CurrentorderList != OrdeList) {
|
||||||
|
$('.BtnOrderList').click();
|
||||||
|
}
|
||||||
|
CurrentorderList = OrdeList;
|
||||||
|
}, 20);
|
||||||
//$('.txtCveEvento').val(cveevento);
|
//$('.txtCveEvento').val(cveevento);
|
||||||
//$('.BtnUpPosition').click();
|
//$('.BtnUpPosition').click();
|
||||||
}, 20);
|
}, 20);
|
||||||
@@ -202,8 +245,11 @@
|
|||||||
start: function (event, ui) { cvetablerolistaold = $(event.srcElement).closest('ul').data('cvetablerolista'); },
|
start: function (event, ui) { cvetablerolistaold = $(event.srcElement).closest('ul').data('cvetablerolista'); },
|
||||||
stop: function (event, ui) {
|
stop: function (event, ui) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
cvetablerolistanew = $(event.srcElement).closest('ul').data('cvetablerolista');
|
let ulelement = $(event.srcElement).closest('ul');
|
||||||
|
cvetablerolistanew = ulelement.data('cvetablerolista');
|
||||||
let cveevento = $(event.srcElement).data('cveevento');
|
let cveevento = $(event.srcElement).data('cveevento');
|
||||||
|
let OrdeList = GetOrderListEvento(ulelement);
|
||||||
|
$('.TxtCveOrdeList').val(OrdeList);
|
||||||
$('.Txtcvetablerolista').val(cvetablerolistanew);
|
$('.Txtcvetablerolista').val(cvetablerolistanew);
|
||||||
$('.txtCveEvento').val(cveevento);
|
$('.txtCveEvento').val(cveevento);
|
||||||
$('.BtnUpPosition').click();
|
$('.BtnUpPosition').click();
|
||||||
|
|||||||
@@ -164,9 +164,42 @@ public partial class OI_TableroDetalle : ClsPaginas
|
|||||||
|
|
||||||
protected void BtnUpPosition_Click(object sender, EventArgs e)
|
protected void BtnUpPosition_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
bool continuar = false;
|
||||||
using (ClsOIEventos eveobj = new ClsOIEventos())
|
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
eveobj.IniciaTransacSQL();
|
||||||
|
continuar =eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
List<string> orderlist = TxtCveOrdeList.Text.Split(',').ToList<string>();
|
||||||
|
continuar = eveobj.OrdenaTareas(orderlist, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
eveobj.Commit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eveobj.RollBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void BtnOrderList_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<string> orderlist = TxtCveOrdeList.Text.Split(',').ToList<string>();
|
||||||
|
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
eveobj.IniciaTransacSQL();
|
||||||
|
if(eveobj.OrdenaListas(orderlist,UsuarioActual.CveEmpresa,UsuarioActual.CveUsuario))
|
||||||
|
{
|
||||||
|
eveobj.Commit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eveobj.RollBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -829,7 +829,7 @@
|
|||||||
|
|
||||||
<asp:UpdatePanel ID="UpUniformesResguardo" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpUniformesResguardo" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:GridView ID="GvUniformesResguardo" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" DataKeyNames="CveAlmacen,CodigoPS,PU,CveUM,CveMovimiento,CveMovimientoDetalle,CvePS,AplicaSeccion,AplicaSerie,CveSeccionAlmacen" ToolTip=""
|
<asp:GridView ID="GvUniformesResguardo" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" DataKeyNames="CveAlmacen,CodigoPS,PU,CveUM,CveMovimiento,CveMovimientoDetalle,CvePS,AplicaSeccion,AplicaSerie,CveSeccionAlmacen,Cantidad" ToolTip=""
|
||||||
CssClass="table table-hover table-advance Widthall" GridLines="None">
|
CssClass="table table-hover table-advance Widthall" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:HyperLinkField DataNavigateUrlFields="CveMovimiento" Target="_blank" HeaderText="Folio" DataNavigateUrlFormatString="../Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" DataTextField="Folio" />
|
<asp:HyperLinkField DataNavigateUrlFields="CveMovimiento" Target="_blank" HeaderText="Folio" DataNavigateUrlFormatString="../Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" DataTextField="Folio" />
|
||||||
@@ -1318,28 +1318,28 @@
|
|||||||
<asp:Panel runat="server" ID="PnlSalarios" Visible="false">
|
<asp:Panel runat="server" ID="PnlSalarios" Visible="false">
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiario" Enabled="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiario" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Enabled="false" Text="Salario Diario (SDD):"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiario" Enabled="false" Text="Salario Diario (SDD):"></asp:Label>
|
||||||
<%--<asp:CompareValidator ID="CVSalarioDiario" runat="server" ControlToValidate="TxtSalarioDiario" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
<%--<asp:CompareValidator ID="CVSalarioDiario" runat="server" ControlToValidate="TxtSalarioDiario" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSDI" Enabled="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSDI" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSDI" Text="Salario Diario Integrado (SDI):"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSDI" Text="Salario Diario Integrado (SDI):"></asp:Label>
|
||||||
<%--<asp:CompareValidator ID="CVSDI" runat="server" ControlToValidate="TxtSDI" CssClass="help-block errorimput" ErrorMessage="El campo <b>''SDI''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
<%--<asp:CompareValidator ID="CVSDI" runat="server" ControlToValidate="TxtSDI" CssClass="help-block errorimput" ErrorMessage="El campo <b>''SDI''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group form-md-line-input input-iconright" style="display: none;">
|
<div class="form-group form-md-line-input input-iconright" style="display: none;">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiarioPago" Enabled="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSalarioDiarioPago" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioPago" Text="Salario Diario de Pago:"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioDiarioPago" Text="Salario Diario de Pago:"></asp:Label>
|
||||||
<%--<asp:CompareValidator ID="CVSalario" runat="server" ControlToValidate="TxtSalarioDiarioPago" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario de Pago''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
<%--<asp:CompareValidator ID="CVSalario" runat="server" ControlToValidate="TxtSalarioDiarioPago" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario de Pago''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<asp:Panel runat="server" ID="pnlSalarioIMSS" CssClass="form-group form-md-line-input input-iconright">
|
<asp:Panel runat="server" ID="pnlSalarioIMSS" CssClass="form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox CssClass="form-control" ID="TxtSalarioCotizado" Enabled="false" runat="server" MaxLength="10"></asp:TextBox>
|
<asp:TextBox CssClass="form-control" ID="TxtSalarioCotizado" runat="server" MaxLength="10"></asp:TextBox>
|
||||||
<asp:Label runat="server" AssociatedControlID="TxtSalarioCotizado" Text="Salario Diario IMSS:"></asp:Label>
|
<asp:Label runat="server" AssociatedControlID="TxtSalarioCotizado" Text="Salario Diario IMSS:"></asp:Label>
|
||||||
<%--<asp:CompareValidator ID="CVSDT" runat="server" ControlToValidate="TxtSalarioCotizado" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario Cotizado''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
<%--<asp:CompareValidator ID="CVSDT" runat="server" ControlToValidate="TxtSalarioCotizado" CssClass="help-block errorimput" ErrorMessage="El campo <b>''Salario Diario Cotizado''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>--%>
|
||||||
|
|
||||||
@@ -3869,23 +3869,43 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<asp:UpdatePanel runat="server" ID="UPPLiberarUniforme" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="UPPLiberarUniforme" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row" style="width: 75%;">
|
<div class="row" style="width: 100%;">
|
||||||
<asp:Label Text="Almacen: " runat="server" Style="width: 20%" />
|
<div class="col-md-1" style="width:30%;text-align:right">
|
||||||
<asp:DropDownList runat="server" ID="DdlAlmacenDestinoLiberarUniforme" CssClass="form-control input-sm select2me" Style="width: 50%" DataTextField="Almacen" DataValueField="CveAlmacen"></asp:DropDownList>
|
<asp:Label Text="Almacen: " runat="server" />
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1" style="width:70%">
|
||||||
|
<asp:DropDownList runat="server" ID="DdlAlmacenDestinoLiberarUniforme" Width="100%" CssClass="form-control input-sm select2me" DataTextField="Almacen" DataValueField="CveAlmacen"></asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div runat="server" id="divSeccionAlmacen" class="frow" visible="false">
|
<br />
|
||||||
<asp:Label Text="Sección: " runat="server" Style="width: 20%" />
|
<div runat="server" id="divSeccionAlmacen" class="row" style="width: 100%;" visible="false">
|
||||||
<asp:DropDownList ID="DdlSeccionAlmacen" DataTextField="Seccion" AppendDataBoundItems="true" DataValueField="CveSeccion" Class="form-control input-sm select2me" Style="width: 50% !important" runat="server" CausesValidation="true">
|
<div class="col-md-1" style="width:30%;text-align:right">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:Label Text="Sección: " runat="server" />
|
||||||
</asp:DropDownList>
|
</div>
|
||||||
|
<div class="col-md-1" style="width:70%">
|
||||||
|
<asp:DropDownList ID="DdlSeccionAlmacen" DataTextField="SeccionAlmacen" Width="100%" AppendDataBoundItems="true" DataValueField="CveSeccionAlmacen" Class="form-control input-sm select2me" runat="server" CausesValidation="true">
|
||||||
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row" style="width: 100%;">
|
||||||
|
<div class="col-md-1" style="width:30%;text-align:right">
|
||||||
|
<asp:Label runat="server" ID="LblCantidadResguardo">Cantidad:</asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-1" style="width:70%">
|
||||||
|
<asp:TextBox runat="server" ID="TxtCantidadResguardo" CssClass="form-control " Width="100%"></asp:TextBox>
|
||||||
|
<asp:RangeValidator ID="RvTxtCantidadResguardo" Display="Dynamic" ControlToValidate="TxtCantidadResguardo" runat="server" MinimumValue="0" MaximumValue="1" Type="Integer" ErrorMessage="Se supera la cantidad maxima disponibled" ValidationGroup="GpoResguardo"></asp:RangeValidator>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Button ID="BtnLiberarUniforme" runat="server" OnClick="LiberarUniforme" ClientIDMode="Static" Text="Guardar" CssClass="btn btn-primary" />
|
<asp:Button ID="BtnLiberarUniforme" runat="server" OnClick="LiberarUniforme" ClientIDMode="Static" Text="Guardar" ValidationGroup="GpoResguardo" CssClass="btn btn-primary" />
|
||||||
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
@@ -3932,7 +3952,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<%-- MODAL SUBIR ARCHIVO --%>
|
<%-- MODAL SUBIR ARCHIVO --%>
|
||||||
<div id="ModalArchvivo" class="modal ADS fade" role="dialog">
|
<div id="ModalArchivo" class="modal ADS fade" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|
||||||
<!-- Modal content-->
|
<!-- Modal content-->
|
||||||
|
|||||||
@@ -774,7 +774,13 @@ Partial Class RH_Personal
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Const wdPageBreak As Integer = 7
|
Const wdPageBreak As Integer = 7
|
||||||
Const wdCharacter As Integer = 1
|
Const wdCharacter As Integer = 1
|
||||||
|
|
||||||
|
Public ReadOnly Property showsalarios As Boolean
|
||||||
|
Get
|
||||||
|
Return Not UsuarioActual.Empresa.Funcionalidad(701) = "1"
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
'Configuración
|
'Configuración
|
||||||
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
|
||||||
@@ -782,7 +788,7 @@ Partial Class RH_Personal
|
|||||||
pnlSalarioIMSS.Visible = False
|
pnlSalarioIMSS.Visible = False
|
||||||
End If
|
End If
|
||||||
'
|
'
|
||||||
PnlSalarios.Visible = UsuarioActual.Empresa.Funcionalidad(701) = "1"
|
PnlSalarios.Visible = showsalarios
|
||||||
|
|
||||||
ViewState("Orden") = ""
|
ViewState("Orden") = ""
|
||||||
ViewState("Orden1") = ""
|
ViewState("Orden1") = ""
|
||||||
@@ -5105,7 +5111,7 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
Dim ObjInv As New ClsInventarios
|
Dim ObjInv As New ClsInventarios
|
||||||
|
|
||||||
If ObjInv.GetResguardoUniformesRep(UsuarioActual.CveEmpresa, CvePersonal, -1, -1, Todo:=True) Then
|
If ObjInv.GetResguardoUniformesRep(UsuarioActual.CveEmpresa, CvePersonal, -1, -1, Todo:=False) Then
|
||||||
GvUniformesResguardo.DataSource = ObjInv.DtResultados
|
GvUniformesResguardo.DataSource = ObjInv.DtResultados
|
||||||
UniformesInfo = ObjInv.DtResultados
|
UniformesInfo = ObjInv.DtResultados
|
||||||
Else
|
Else
|
||||||
@@ -5143,6 +5149,9 @@ Partial Class RH_Personal
|
|||||||
CvePS = row.DataKey("CvePS").ToString().ToEntero
|
CvePS = row.DataKey("CvePS").ToString().ToEntero
|
||||||
CveMovimientoUniforme = row.DataKey("CveMovimiento").ToString().ToEntero
|
CveMovimientoUniforme = row.DataKey("CveMovimiento").ToString().ToEntero
|
||||||
CveMovimientoDetalleUniforme = row.DataKey("CveMovimientoDetalle").ToString().ToEntero
|
CveMovimientoDetalleUniforme = row.DataKey("CveMovimientoDetalle").ToString().ToEntero
|
||||||
|
Dim Cantidad As Integer = row.DataKey("Cantidad").ToString().ToEntero
|
||||||
|
TxtCantidadResguardo.Text = Cantidad.ToString
|
||||||
|
RvTxtCantidadResguardo.MaximumValue = Cantidad.ToString
|
||||||
If row.DataKey("AplicaSeccion").ToString = "True" Then
|
If row.DataKey("AplicaSeccion").ToString = "True" Then
|
||||||
divSeccionAlmacen.Visible = True
|
divSeccionAlmacen.Visible = True
|
||||||
DdlSeccionAlmacen.Items.Clear()
|
DdlSeccionAlmacen.Items.Clear()
|
||||||
@@ -5168,11 +5177,13 @@ Partial Class RH_Personal
|
|||||||
Dim ObjInventario As New ClsInventarios
|
Dim ObjInventario As New ClsInventarios
|
||||||
ObjInventario.IniciaTransacSQL()
|
ObjInventario.IniciaTransacSQL()
|
||||||
|
|
||||||
|
Dim Cantidad As Double = TxtCantidadResguardo.Text.ToDouble()
|
||||||
|
|
||||||
Dim CveResultadoSalida As Integer = ObjInventario.AddMovimiento(CveAlmacenUniforme, 3, 1, Date.Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CveAlmacenDestino:=DdlAlmacenDestinoLiberarUniforme.SelectedValue.ToEntero, CvePersonal:=CvePersonal, Observaciones:=DescripcionUniforme)
|
Dim CveResultadoSalida As Integer = ObjInventario.AddMovimiento(CveAlmacenUniforme, 3, 1, Date.Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CveAlmacenDestino:=DdlAlmacenDestinoLiberarUniforme.SelectedValue.ToEntero, CvePersonal:=CvePersonal, Observaciones:=DescripcionUniforme)
|
||||||
Dim ResultadoDetalleSalida As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoSalida, 1.0, CveUM, CvePS, PU, CveSeccionAlmacen:=CveSeccionAlmacenUniforme, CveMovimientoDetalleEntrada:=CveMovimientoDetalleUniforme)
|
Dim ResultadoDetalleSalida As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoSalida, Cantidad, CveUM, CvePS, PU, CveSeccionAlmacen:=CveSeccionAlmacenUniforme, CveMovimientoDetalleEntrada:=CveMovimientoDetalleUniforme)
|
||||||
Dim CveSeccionAlmacen As Integer = DdlSeccionAlmacen.SelectedValue.ToEntero
|
Dim CveSeccionAlmacen As Integer = DdlSeccionAlmacen.SelectedValue.ToEntero
|
||||||
Dim CveResultadoEntrada As Integer = ObjInventario.AddMovimiento(DdlAlmacenDestinoLiberarUniforme.SelectedValue.ToEntero, 2, 1, Date.Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CvePersonal:=CvePersonal, Observaciones:=DescripcionUniforme, CveMovimientoRelacionado:=CveMovimientoUniforme)
|
Dim CveResultadoEntrada As Integer = ObjInventario.AddMovimiento(DdlAlmacenDestinoLiberarUniforme.SelectedValue.ToEntero, 2, 1, Date.Now, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CvePersonal:=CvePersonal, Observaciones:=DescripcionUniforme, CveMovimientoRelacionado:=CveMovimientoUniforme)
|
||||||
Dim ResultadoDetalleEntrada As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoEntrada, 1.0, CveUM, CvePS, PU, CveSeccionAlmacen:=CveSeccionAlmacen)
|
Dim ResultadoDetalleEntrada As Boolean = ObjInventario.AddMovimientoDetalle(CveResultadoEntrada, Cantidad, CveUM, CvePS, PU, CveSeccionAlmacen:=CveSeccionAlmacen)
|
||||||
|
|
||||||
If ResultadoDetalleSalida And ResultadoDetalleEntrada Then
|
If ResultadoDetalleSalida And ResultadoDetalleEntrada Then
|
||||||
ObjInventario.Commit()
|
ObjInventario.Commit()
|
||||||
@@ -5230,7 +5241,7 @@ Partial Class RH_Personal
|
|||||||
UpImage.Update()
|
UpImage.Update()
|
||||||
TxtCargaImg.Text = "[]"
|
TxtCargaImg.Text = "[]"
|
||||||
UpAddArchivo.Update()
|
UpAddArchivo.Update()
|
||||||
RegistraScript(String.Format("$('#{0}').modal('hide');", "ModalArchvivo"))
|
RegistraScript(String.Format("$('#{0}').modal('hide');", "ModalArchivo"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region "PERMISOS"
|
#Region "PERMISOS"
|
||||||
|
|||||||
@@ -426,6 +426,7 @@ function ADScroller2() {
|
|||||||
contenedor.append(divcenter);
|
contenedor.append(divcenter);
|
||||||
divcenter.append(divcenterCols);
|
divcenter.append(divcenterCols);
|
||||||
divcolsScroll = $('<div class="ADSCroll" style="height:' + (heightGral - altoc1) + 'px;"></div>').append(TVisibleCols);
|
divcolsScroll = $('<div class="ADSCroll" style="height:' + (heightGral - altoc1) + 'px;"></div>').append(TVisibleCols);
|
||||||
|
divcolsScroll.width(anchoc1);
|
||||||
divcenterCols.append(divcolsScroll);
|
divcenterCols.append(divcolsScroll);
|
||||||
divcenter.append(divcenterbody);
|
divcenter.append(divcenterbody);
|
||||||
divbodyScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;height:' + (heightGral - altoc1 + 20) + 'px;"></div>').append(Tthis);
|
divbodyScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;height:' + (heightGral - altoc1 + 20) + 'px;"></div>').append(Tthis);
|
||||||
@@ -1816,8 +1817,9 @@ jQuery(document).ready(function () {
|
|||||||
DataTablePaginatorScroll();
|
DataTablePaginatorScroll();
|
||||||
DataTablePaginatorScroll2();
|
DataTablePaginatorScroll2();
|
||||||
loadAdDropzone();
|
loadAdDropzone();
|
||||||
clonsbuttons();
|
clonsbuttons();
|
||||||
ADScroller2();
|
ADScroller2();
|
||||||
|
//setTimeout(ADScroller2, 500);
|
||||||
$('body').removeClass('page-portlet-fullscreen');
|
$('body').removeClass('page-portlet-fullscreen');
|
||||||
|
|
||||||
$('.form-md-floating-label input').each(function () {
|
$('.form-md-floating-label input').each(function () {
|
||||||
|
|||||||
@@ -184,7 +184,7 @@
|
|||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlUnidadMedida" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="206px">
|
<asp:DropDownList ID="DdlUnidadMedida" OnSelectedIndexChanged="DdlUnidadMedida_SelectedIndexChanged" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="true" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="206px">
|
||||||
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label for="<%= DdlUnidadMedida.ClientID.ToString()%>">Unidad de Medida:</label>
|
<label for="<%= DdlUnidadMedida.ClientID.ToString()%>">Unidad de Medida:</label>
|
||||||
|
|||||||
@@ -106,6 +106,15 @@ Partial Class ProductosyServicios
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private Property CveUnidadMedida As Integer
|
||||||
|
Get
|
||||||
|
Return ViewState("CveUnidadMedida").ToString.ToEntero
|
||||||
|
End Get
|
||||||
|
Set(value As Integer)
|
||||||
|
ViewState("CveUnidadMedida") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
@@ -769,6 +778,7 @@ Partial Class ProductosyServicios
|
|||||||
End If
|
End If
|
||||||
DdlTipoPSDes.SelectedValueExist(ObjProductosServicios.CveClasificacionDetalle.ToString)
|
DdlTipoPSDes.SelectedValueExist(ObjProductosServicios.CveClasificacionDetalle.ToString)
|
||||||
DdlUnidadMedida.SelectedValue = ObjProductosServicios.CveUnidadMedida.ToString
|
DdlUnidadMedida.SelectedValue = ObjProductosServicios.CveUnidadMedida.ToString
|
||||||
|
CveUnidadMedida = ObjProductosServicios.CveUnidadMedida.ToString.ToEntero
|
||||||
DdlMarca.SelectedValue = ObjProductosServicios.CveMarca.ToString
|
DdlMarca.SelectedValue = ObjProductosServicios.CveMarca.ToString
|
||||||
DdlMarcaPSDes.SelectedValue = ObjProductosServicios.CveMarca.ToString
|
DdlMarcaPSDes.SelectedValue = ObjProductosServicios.CveMarca.ToString
|
||||||
TxtCodigo.Text = ObjProductosServicios.Codigo
|
TxtCodigo.Text = ObjProductosServicios.Codigo
|
||||||
@@ -2653,23 +2663,32 @@ Partial Class ProductosyServicios
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub ChkSerie_CheckedChanged(sender As Object, e As EventArgs)
|
Protected Sub ChkSerie_CheckedChanged(sender As Object, e As EventArgs)
|
||||||
If ChkSerie.Checked Then
|
If ElProductoTieneExistencia() Then
|
||||||
ddlMetodos.SelectedValueExist("5")
|
ChkSerie.Checked = Not ChkSerie.Checked
|
||||||
|
Alert("el producto no se puede cambiar la opcion, porque tiene existencia.", TipoMensaje.MsgAdvertencia)
|
||||||
Else
|
Else
|
||||||
ddlMetodos.SelectedValueExist("-1")
|
If ChkSerie.Checked Then
|
||||||
|
ddlMetodos.SelectedValueExist("5")
|
||||||
|
Else
|
||||||
|
ddlMetodos.SelectedValueExist("-1")
|
||||||
|
End If
|
||||||
|
UpConta.Update()
|
||||||
End If
|
End If
|
||||||
UpConta.Update()
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub ChkSeccion_CheckedChanged(sender As Object, e As EventArgs)
|
Protected Sub ChkSeccion_CheckedChanged(sender As Object, e As EventArgs)
|
||||||
|
If ElProductoTieneExistencia() Then
|
||||||
If ChkSeccion.Checked Then
|
ChkSeccion.Checked = Not ChkSerie.Checked
|
||||||
DivSeccionAlmacen.Visible = True
|
Alert("el producto no se puede cambiar la opcion, porque tiene existencia.", TipoMensaje.MsgAdvertencia)
|
||||||
Else
|
Else
|
||||||
DivSeccionAlmacen.Visible = False
|
If ChkSeccion.Checked Then
|
||||||
End If
|
DivSeccionAlmacen.Visible = True
|
||||||
|
Else
|
||||||
|
DivSeccionAlmacen.Visible = False
|
||||||
|
End If
|
||||||
|
|
||||||
UpSeccionAlmacen.Update()
|
UpSeccionAlmacen.Update()
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Protected Sub DdlAlmacen_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlAlmacen_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
@@ -2680,4 +2699,21 @@ Partial Class ProductosyServicios
|
|||||||
|
|
||||||
UpModalSeccionAlmacen.Update()
|
UpModalSeccionAlmacen.Update()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Protected Sub DdlUnidadMedida_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
|
If ElProductoTieneExistencia() Then
|
||||||
|
DdlUnidadMedida.SelectedValue = CveUnidadMedida.ToString
|
||||||
|
Alert("el producto no se puede cambiar la opcion, porque tiene existencia.")
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Function ElProductoTieneExistencia() As Boolean
|
||||||
|
Dim Existencia As Decimal = 0
|
||||||
|
If CvePS > 0 Then
|
||||||
|
Dim ObjInventarios As New ClsInventarios
|
||||||
|
Existencia = ObjInventarios.GetExistenciasPS(CvePS, CveUnidadMedida, UsuarioActual.CveEmpresa, -1)
|
||||||
|
ObjInventarios.Dispose()
|
||||||
|
End If
|
||||||
|
Return Existencia > 0
|
||||||
|
End Function
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -154,6 +154,9 @@
|
|||||||
<asp:BoundField HeaderText="Tot. Máximo" DataField="MAX_Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
<asp:BoundField HeaderText="Tot. Máximo" DataField="MAX_Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Tot. Promedio" DataField="AVG_Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
<asp:BoundField HeaderText="Tot. Promedio" DataField="AVG_Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
<asp:BoundField HeaderText="Tot. Mínimo" DataField="MIN_Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
<asp:BoundField HeaderText="Tot. Mínimo" DataField="MIN_Total" ItemStyle-Width="10%" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" Visible="false" />
|
||||||
|
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-Width="10%" />
|
||||||
|
|
||||||
|
|
||||||
</Columns>
|
</Columns>
|
||||||
<RowStyle CssClass="Texto" />
|
<RowStyle CssClass="Texto" />
|
||||||
<HeaderStyle CssClass="Titulos" />
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
|||||||
@@ -134,6 +134,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="portlet-body" style="display: none">
|
||||||
|
<div class="row">
|
||||||
|
<label class="col-md-1 truncate">Productos Servicios:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<ADS:Dropdownlost runat="server" ID="DdlPS" CssStyle="width:55%;" CssClass="DdlPS" CssClassDdl="select2me " DataTextField="PSCodigo" DataValueField="CvePS" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label class="col-md-1 truncate">Clasificación:</label>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:ListBox ID="DdlClasificacion" AutoPostBack="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Style="width: 100%" data-text="Todos" SelectionMode="Multiple">
|
||||||
|
</asp:ListBox>
|
||||||
|
</div>
|
||||||
|
<label runat="server" id="LblLinea" data-placement="top" class="col-md-1" visible="false">Linea:</label>
|
||||||
|
<div runat="server" id="DivLinea" class="col-md-2" visible="false">
|
||||||
|
<asp:ListBox ID="DdlLinea" CssClass="select2me" runat="server" DataTextField="ClasificacionDetalle" DataValueField="CveClasificacionDetalle" Style="width: 100%" data-text="Todos" SelectionMode="Multiple"></asp:ListBox>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<label runat="server" id="LblMarca" title="Proveedor" data-toggle="tooltip" data-placement="top" class="col-md-1" visible="false">Marca:</label>
|
||||||
|
<div runat="server" id="DivMarca" class="col-md-2" visible="false">
|
||||||
|
<asp:ListBox ID="DdlMarcaPSDes" CssClass="select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Style="width: 100%" data-text="Todos" SelectionMode="Multiple"></asp:ListBox>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -142,23 +168,31 @@
|
|||||||
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron productos con los filtros especificados" ToolTip="Listado de Ventas"
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se encontraron productos con los filtros especificados" ToolTip="Listado de Ventas"
|
||||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" Style="text-align: center;" GridLines="None" Width="99%">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Grupo" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Left">
|
<asp:TemplateField HeaderText="Grupo" ItemStyle-HorizontalAlign="Left">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
<asp:Literal ID="LtlGrupo" runat="server" Text='<%# Eval("GPO") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
||||||
|
<HeaderTemplate >
|
||||||
|
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Literal ID="LtlGrupoPS" runat="server" Text='<%# Eval("PS") %>'></asp:Literal>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="10%">
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="10%">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
<asp:Literal ID="LtlCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:N0}") %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Unidad" DataField="UnidadMedida" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="P. Promedio" DataField="PUPromedio" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="P. Promedio" DataField="PUPromedio" ItemStyle-Width="5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Venta Total" DataField="SubTotal" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Venta Total" DataField="SubTotal" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Descuentos" DataField="Descuento" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Descuentos" DataField="Descuento" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Venta Neta" DataField="VentaNeta" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Venta Neta" DataField="VentaNeta" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="10%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" ItemStyle-Width="7.5%" DataFormatString="{0:###,###,###,###.##}" ItemStyle-HorizontalAlign="Right" />
|
||||||
</Columns>
|
</Columns>
|
||||||
<RowStyle CssClass="Texto" />
|
<RowStyle CssClass="Texto" />
|
||||||
<HeaderStyle CssClass="Titulos" />
|
<HeaderStyle CssClass="Titulos" />
|
||||||
|
|||||||
@@ -33,6 +33,39 @@ Partial Class Ventas_RepPS
|
|||||||
|
|
||||||
Private Sub CargaCombos()
|
Private Sub CargaCombos()
|
||||||
CargaTipoCentroCosto()
|
CargaTipoCentroCosto()
|
||||||
|
DdlClasificacion.DataSource = GlobalDTClasificaciones(UsuarioActual.CveEmpresa)
|
||||||
|
DdlClasificacion.DataBind()
|
||||||
|
|
||||||
|
DdlPS.setEsWebService(UsuarioActual.Empresa.Funcionalidad(105) = "1")
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(105) = "1" Then
|
||||||
|
DdlPS.ddlWS.Attributes.Add("data-cveclasificacion", DdlClasificacion.SelectedValue)
|
||||||
|
DdlPS.SelectedText = ""
|
||||||
|
DdlPS.SelectedValue = "-1"
|
||||||
|
Else
|
||||||
|
DdlPS.ddl.Items.Clear()
|
||||||
|
DdlPS.ddl.DataSource = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CveClasificacion:=DdlClasificacion.SelectedValue.ToEntero)
|
||||||
|
DdlPS.ddl.DataBind()
|
||||||
|
DdlPS.ddl.Items.Insert(0, New ListItem("Seleccione el Producto", "-1"))
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(130) = "1" Then
|
||||||
|
DivMarca.Visible = True
|
||||||
|
LblMarca.Visible = True
|
||||||
|
LblLinea.Visible = True
|
||||||
|
DivLinea.Visible = True
|
||||||
|
|
||||||
|
Using ObjMarcas As New ClsProductosServicios
|
||||||
|
If ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa) Then
|
||||||
|
DdlMarcaPSDes.DataSource = ObjMarcas.DtResultados
|
||||||
|
DdlMarcaPSDes.DataBind()
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
|
||||||
|
DdlLinea.DataSource = GlobalDTClasificacionesDetalle(UsuarioActual.CveEmpresa)
|
||||||
|
DdlLinea.DataBind()
|
||||||
|
'DdlMarcaPSDes.Items.Insert(0, New ListItem(" Todos ", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaTipoCentroCosto()
|
Private Sub CargaTipoCentroCosto()
|
||||||
@@ -70,9 +103,12 @@ Partial Class Ventas_RepPS
|
|||||||
|
|
||||||
Private Sub CargaDatos()
|
Private Sub CargaDatos()
|
||||||
|
|
||||||
|
Dim Clasificacion As String = If(DdlClasificacion.GetSelectedValuesM = "", "-1", DdlClasificacion.GetSelectedValuesM)
|
||||||
|
Dim Linea As String = If(DdlLinea.GetSelectedValuesM = "", "-1", DdlLinea.GetSelectedValuesM)
|
||||||
|
Dim Marca As String = If(DdlMarcaPSDes.GetSelectedValuesM = "", "-1", DdlMarcaPSDes.GetSelectedValuesM)
|
||||||
Dim CveSubProyecto As Integer = DdlSubProyecto.SelectedValue.ToEntero()
|
Dim CveSubProyecto As Integer = DdlSubProyecto.SelectedValue.ToEntero()
|
||||||
Dim Grupo As Integer = DdlGrupo.SelectedValue.ToEntero()
|
Dim Grupo As Integer = DdlGrupo.SelectedValue.ToEntero()
|
||||||
Dim CvePS As Integer = -1
|
Dim CvePS As Integer = DdlPS.SelectedValue.ToEntero()
|
||||||
Dim CveMoneda As Integer = -1
|
Dim CveMoneda As Integer = -1
|
||||||
Dim TC As Integer = 1
|
Dim TC As Integer = 1
|
||||||
Dim TCEspecifico As Decimal = -1
|
Dim TCEspecifico As Decimal = -1
|
||||||
@@ -81,7 +117,7 @@ Partial Class Ventas_RepPS
|
|||||||
FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.ToDate, MaxFecha)
|
FechaF = If(IsDate(txtFechaF.Text.Trim()), txtFechaF.Text.ToDate, MaxFecha)
|
||||||
|
|
||||||
Dim ObjVentas As New ClsVentas()
|
Dim ObjVentas As New ClsVentas()
|
||||||
If ObjVentas.GetRepPSEcono(CveSubProyecto, CvePS, FechaI, FechaF, UsuarioActual.CveEmpresa, CveUsuarioConsulta:=UsuarioActual.CveUsuario, GPO:=Grupo, CveMoneda:=CveMoneda, TipoCambio:=TC, TCEspecifico:=TCEspecifico) Then
|
If ObjVentas.GetRepPSEcono(CveSubProyecto, CvePS, FechaI, FechaF, UsuarioActual.CveEmpresa, CveUsuarioConsulta:=UsuarioActual.CveUsuario, GPO:=Grupo, CveMoneda:=CveMoneda, TipoCambio:=TC, TCEspecifico:=TCEspecifico, Clasificacion:=Clasificacion, Linea:=Linea, Marca:=Marca) Then
|
||||||
DtReporte = ObjVentas.DtResultados.Copy()
|
DtReporte = ObjVentas.DtResultados.Copy()
|
||||||
GvDatos.DataSource = DtReporte
|
GvDatos.DataSource = DtReporte
|
||||||
Else
|
Else
|
||||||
@@ -97,14 +133,25 @@ Partial Class Ventas_RepPS
|
|||||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||||
Select Case e.Row.DBCampo("Orden").ToString.ToEntero()
|
Select Case e.Row.DBCampo("Orden").ToString.ToEntero()
|
||||||
Case 4
|
Case 4
|
||||||
|
|
||||||
|
e.Row.Cells(0).ColumnSpan = 2
|
||||||
|
e.Row.Cells(1).Visible = False
|
||||||
e.Row.CssClass = "Totales"
|
e.Row.CssClass = "Totales"
|
||||||
Case 3
|
Case 3
|
||||||
|
e.Row.Cells(0).ColumnSpan = 2
|
||||||
|
e.Row.Cells(1).Visible = False
|
||||||
e.Row.CssClass = "SubTotales2"
|
e.Row.CssClass = "SubTotales2"
|
||||||
Case 2
|
Case 2
|
||||||
|
e.Row.Cells(0).ColumnSpan = 2
|
||||||
|
e.Row.Cells(1).Visible = False
|
||||||
e.Row.CssClass = "SubTotales"
|
e.Row.CssClass = "SubTotales"
|
||||||
Case 1
|
Case 1
|
||||||
|
e.Row.Cells(0).ColumnSpan = 2
|
||||||
|
e.Row.Cells(1).Visible = False
|
||||||
e.Row.CssClass = "SubTotalesB"
|
e.Row.CssClass = "SubTotalesB"
|
||||||
Case 0
|
Case 0
|
||||||
|
e.Row.Cells(0).ColumnSpan = 1
|
||||||
|
e.Row.Cells(1).Visible = True
|
||||||
e.Row.CssClass = "Texto"
|
e.Row.CssClass = "Texto"
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -295,12 +295,12 @@ Partial Class Ventas_RepProductosServicios
|
|||||||
DivMarca.Visible = True
|
DivMarca.Visible = True
|
||||||
LblMarca.Visible = True
|
LblMarca.Visible = True
|
||||||
|
|
||||||
Dim ObjMarcas As New ClsProductosServicios
|
Using ObjMarcas As New ClsProductosServicios
|
||||||
If ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa) Then
|
If ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa) Then
|
||||||
DdlMarcaPSDes.DataSource = ObjMarcas.DtResultados
|
DdlMarcaPSDes.DataSource = ObjMarcas.DtResultados
|
||||||
ObjMarcas.Dispose()
|
DdlMarcaPSDes.DataBind()
|
||||||
DdlMarcaPSDes.DataBind()
|
End If
|
||||||
End If
|
End Using
|
||||||
End If
|
End If
|
||||||
DdlMarcaPSDes.Items.Insert(0, New ListItem(" Todos ", "-1"))
|
DdlMarcaPSDes.Items.Insert(0, New ListItem(" Todos ", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -766,7 +766,7 @@ Partial Class Ventas_RepVentas
|
|||||||
Dim json As String = Newtonsoft.Json.JsonConvert.SerializeObject(query)
|
Dim json As String = Newtonsoft.Json.JsonConvert.SerializeObject(query)
|
||||||
Select Case DdlGrafica.SelectedValue.ToEntero
|
Select Case DdlGrafica.SelectedValue.ToEntero
|
||||||
Case 1
|
Case 1
|
||||||
RegistraScript($"CargaGraficaBarras({json})", "22")
|
RegistraScript($"CargaGraficaBarras({json});console.log({json})", "22")
|
||||||
Case 2
|
Case 2
|
||||||
RegistraScript($"CargaGraficaPastel({json})", "22")
|
RegistraScript($"CargaGraficaPastel({json})", "22")
|
||||||
End Select
|
End Select
|
||||||
|
|||||||
@@ -2880,7 +2880,7 @@
|
|||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</ajax:TabPanel>
|
</ajax:TabPanel>
|
||||||
|
|
||||||
<ajax:TabPanel ID="TabAuxiliarConta" runat="server" HeaderText="Saldo" Visible="false">
|
<ajax:TabPanel ID="TabAuxiliarConta" runat="server" HeaderText="Contabilidad" Visible="false">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Literal ID="LtlTipo1" runat="server"></asp:Literal>
|
<asp:Literal ID="LtlTipo1" runat="server"></asp:Literal>
|
||||||
<table border="0" class="contenido Widthall">
|
<table border="0" class="contenido Widthall">
|
||||||
|
|||||||
@@ -3668,7 +3668,7 @@ Partial Class Ventas
|
|||||||
HlCuentaTerminal.Visible = True
|
HlCuentaTerminal.Visible = True
|
||||||
End If
|
End If
|
||||||
CargarSaldoAuxiliar(CveCliente)
|
CargarSaldoAuxiliar(CveCliente)
|
||||||
TabAuxiliarConta.Visible = True
|
TabAuxiliarConta.Visible = UsuarioActual.TienePermisoProceso(306)
|
||||||
Dim TienePermiso As String = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, -1).FiltroPrimeroValor("CveSubProyecto", String.Format("CveSubProyecto = {0}", DbRowVenta("CveSubProyecto")))
|
Dim TienePermiso As String = GlobalDTSubProyectosUsuarios(UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, -1, -1).FiltroPrimeroValor("CveSubProyecto", String.Format("CveSubProyecto = {0}", DbRowVenta("CveSubProyecto")))
|
||||||
If TienePermiso <> "" Then ' si tiene acceso en el subproyecto
|
If TienePermiso <> "" Then ' si tiene acceso en el subproyecto
|
||||||
'LkNotaCredito.Visible = UsuarioActual.TienePermisoProceso(175)
|
'LkNotaCredito.Visible = UsuarioActual.TienePermisoProceso(175)
|
||||||
@@ -26143,10 +26143,8 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Private Sub GuardarValoresEditados()
|
Private Sub GuardarValoresEditados()
|
||||||
Dim ObjVentas As New ClsVentas()
|
Dim ObjVentas As New ClsVentas()
|
||||||
If ObjVentas.UpdateVentas(TxtSubTotal.Text.ToDecimal, LblDescuentos.Text.ToDecimal, TxtIVA.Text.ToDecimal, TxtIEPS.Text.ToDecimal, TxtTotal.Text.ToDecimal, DdlMoneda.SelectedValue.ToEntero(),
|
If ObjVentas.UpdateObservacionesVenta(CveVenta, UsuarioActual.CveEmpresa, DdlVendedor.SelectedValue.ToEntero(), TxtObsFact.Text, RblPaqueteria.SelectedValue.ToEntero(), TxtCorreoNotificaciones.Text,
|
||||||
TipoCambio, TxtFecha.Text.Trim.ToDate, TxtObsFact.Text.Trim, UsuarioActual.CveEmpresa, CveVenta, DdlMetodoPago33.SelectedValue.ToEntero, DdlFormaPago33.SelectedValue.ToEntero,
|
TxtObsAlmacen.Text, TxtPedidoContrato.Text, TxtOrdenCompra.Text, TxtFechaPago.Text) Then
|
||||||
TipoDocto:=DdlTipoComprobante.SelectedValue, OrdenCompra:=TxtOrdenCompra.Text, PedidoContrato:=TxtPedidoContrato.Text, ObsAlm:=TxtObsAlmacen.Text, FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero,
|
|
||||||
CorreoNot:=TxtCorreoNotificaciones.Text, CveVendedor:=DdlVendedor.SelectedValue.ToEntero, Kilometraje:=TxtKilometraje.Text.ToDouble) Then
|
|
||||||
CargaVenta()
|
CargaVenta()
|
||||||
BtnEditar.Text = "Editar"
|
BtnEditar.Text = "Editar"
|
||||||
Alert("Actualizado correctamente")
|
Alert("Actualizado correctamente")
|
||||||
|
|||||||
@@ -17,16 +17,16 @@
|
|||||||
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net40" />
|
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net40" />
|
||||||
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
|
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net40" />
|
||||||
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
|
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net40" />
|
||||||
<package id="Microsoft.IdentityModel.JsonWebTokens" version="5.3.0" targetFramework="net45" />
|
<package id="Microsoft.IdentityModel.JsonWebTokens" version="6.7.1" targetFramework="net45" />
|
||||||
<package id="Microsoft.IdentityModel.Logging" version="5.3.0" targetFramework="net45" />
|
<package id="Microsoft.IdentityModel.Logging" version="6.7.1" targetFramework="net45" />
|
||||||
<package id="Microsoft.IdentityModel.Tokens" version="5.3.0" targetFramework="net45" />
|
<package id="Microsoft.IdentityModel.Tokens" version="6.7.1" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin" version="4.1.0" targetFramework="net45" />
|
<package id="Microsoft.Owin" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net45" />
|
<package id="Microsoft.Owin.Host.SystemWeb" version="3.0.1" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net45" />
|
<package id="Microsoft.Owin.Security" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin.Security.Jwt" version="4.1.0" targetFramework="net45" />
|
<package id="Microsoft.Owin.Security.Jwt" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.Owin.Security.OAuth" version="4.1.0" targetFramework="net45" />
|
<package id="Microsoft.Owin.Security.OAuth" version="4.1.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1358.0" targetFramework="net45" />
|
<package id="Microsoft.ReportingServices.ReportViewerControl.WebForms" version="150.1358.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportViewer.2015.Runtime" version="12.0.2.2402" targetFramework="net4" />
|
<package id="Microsoft.ReportViewer.2015.Runtime" version="12.0.2.2402" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportViewer.Common.v12" version="12.0.0.1" targetFramework="net45" />
|
<package id="Microsoft.ReportViewer.Common.v12" version="12.0.0.1" targetFramework="net45" />
|
||||||
<package id="Microsoft.ReportViewer.WebForms.v12" version="12.0.0.0" targetFramework="net45" />
|
<package id="Microsoft.ReportViewer.WebForms.v12" version="12.0.0.0" targetFramework="net45" />
|
||||||
<package id="Microsoft.SqlServer.Types" version="14.0.1016.290" targetFramework="net45" />
|
<package id="Microsoft.SqlServer.Types" version="14.0.1016.290" targetFramework="net45" />
|
||||||
@@ -37,6 +37,6 @@
|
|||||||
<package id="NuGet.Core" version="2.8.0" targetFramework="net4" />
|
<package id="NuGet.Core" version="2.8.0" targetFramework="net4" />
|
||||||
<package id="Owin" version="1.0" targetFramework="net45" />
|
<package id="Owin" version="1.0" targetFramework="net45" />
|
||||||
<package id="StackExchange.Redis.StrongName" version="1.0.488" targetFramework="net40" />
|
<package id="StackExchange.Redis.StrongName" version="1.0.488" targetFramework="net40" />
|
||||||
<package id="System.IdentityModel.Tokens.Jwt" version="5.3.0" targetFramework="net45" />
|
<package id="System.IdentityModel.Tokens.Jwt" version="6.7.1" targetFramework="net45" />
|
||||||
<package id="WebGrease" version="1.6.0" targetFramework="net40" />
|
<package id="WebGrease" version="1.6.0" targetFramework="net40" />
|
||||||
</packages>
|
</packages>
|
||||||
12
vwd.webinfo
12
vwd.webinfo
@@ -84,6 +84,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user