Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -439,8 +439,7 @@ Public Class ClsVentas
|
|||||||
Optional CorreoNotificacion As String = "", Optional FormaPaqueteria As Integer = 1, Optional FacturarSucursal As Boolean = False, Optional VentaDesglosaIEPS As Boolean = False, Optional ServicioDomicilio As Boolean = False, Optional RFCReceptor As String = "", Optional Adjunto As String = "-1",
|
Optional CorreoNotificacion As String = "", Optional FormaPaqueteria As Integer = 1, Optional FacturarSucursal As Boolean = False, Optional VentaDesglosaIEPS As Boolean = False, Optional ServicioDomicilio As Boolean = False, Optional RFCReceptor As String = "", Optional Adjunto As String = "-1",
|
||||||
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1, Optional DescripcionVenta As String = "",
|
Optional DevolucionImportePagado As Decimal = 0, Optional EsGarantia As Boolean = False, Optional CveLineaAdicional As Integer = -1, Optional DescripcionVenta As String = "",
|
||||||
Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional CveTipoVenta As Integer = -1, Optional RequiereOS As Boolean = False,
|
Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional CveTipoVenta As Integer = -1, Optional RequiereOS As Boolean = False,
|
||||||
Optional FechaParaSurtir As DateTime = MinFecha
|
Optional FechaParaSurtir As DateTime = MinFecha, Optional Paciente As String = "-1", Optional Episodio As String = "-1") As Boolean
|
||||||
) As Boolean
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_VentasAdd")
|
DataAdapter("PA_VentasAdd")
|
||||||
@@ -547,6 +546,9 @@ Public Class ClsVentas
|
|||||||
.Add("@RequiereOS", SqlDbType.Int).Value = RequiereOS
|
.Add("@RequiereOS", SqlDbType.Int).Value = RequiereOS
|
||||||
.Add("@FechaParaSurtir", SqlDbType.DateTime).Value = If(FechaParaSurtir = MinFecha, Fecha, FechaParaSurtir)
|
.Add("@FechaParaSurtir", SqlDbType.DateTime).Value = If(FechaParaSurtir = MinFecha, Fecha, FechaParaSurtir)
|
||||||
|
|
||||||
|
.Add("@Paciente", SqlDbType.VarChar).Value = Paciente
|
||||||
|
.Add("@Episodio", SqlDbType.VarChar).Value = Episodio
|
||||||
|
|
||||||
|
|
||||||
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue
|
.Add("@RETURN_VALUE", SqlDbType.Int).Direction = ParameterDirection.ReturnValue
|
||||||
End With
|
End With
|
||||||
@@ -576,7 +578,8 @@ Public Class ClsVentas
|
|||||||
Optional AtencionA As String = "", Optional PedidoContrato As String = "", Optional CveFormaPago33 As Integer = -1, Optional CveMetodoPago33 As Integer = -1,
|
Optional AtencionA As String = "", Optional PedidoContrato As String = "", 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 Decimal = -1,
|
Optional CveCliente As Integer = -1, Optional CveClienteSucursal As Integer = -1, Optional OrdenCompra As String = "-1", Optional RetIVA As Decimal = -1,
|
||||||
Optional RetISR As Decimal = -1, Optional Kilometraje As Decimal = 0, Optional CveUsoCFDi As Integer = -1, Optional ServicioDomicilio As Boolean = False, Optional CveVendedor As Integer = -1,
|
Optional RetISR As Decimal = -1, Optional Kilometraje As Decimal = 0, Optional CveUsoCFDi As Integer = -1, Optional ServicioDomicilio As Boolean = False, Optional CveVendedor As Integer = -1,
|
||||||
Optional RequiereOS As Boolean = False, Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional FechaParaSurtir As DateTime = MinFecha) As Boolean
|
Optional RequiereOS As Boolean = False, Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1, Optional FechaParaSurtir As DateTime = MinFecha,
|
||||||
|
Optional Paciente As String = "-1", Optional Episodio As String = "-1") As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_VentasUpdate")
|
DataAdapter("PA_Vta_VentasUpdate")
|
||||||
@@ -613,6 +616,8 @@ Public Class ClsVentas
|
|||||||
.Add("@CveMedico", SqlDbType.Int).Value = CveMedico
|
.Add("@CveMedico", SqlDbType.Int).Value = CveMedico
|
||||||
.Add("@CveProcedimiento", SqlDbType.Int).Value = CveProcedimiento
|
.Add("@CveProcedimiento", SqlDbType.Int).Value = CveProcedimiento
|
||||||
.Add("@FechaParaSurtir", SqlDbType.DateTime).Value = FechaParaSurtir
|
.Add("@FechaParaSurtir", SqlDbType.DateTime).Value = FechaParaSurtir
|
||||||
|
.Add("@Paciente", SqlDbType.VarChar).Value = Paciente
|
||||||
|
.Add("@Episodio", SqlDbType.VarChar).Value = Episodio
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@@ -627,7 +632,7 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
Public Function UpdateObservacionesVenta(CveVenta As Integer, CveEmpresa As Integer, CveVendedor As Integer, Observaciones As String, FormaPaqueteria As Integer, CorreoNotificaciones As String, ObservacionesAlm As String,
|
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, CveUsoCFDI As Integer, Optional DescripcionVenta As String = "-1", Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1,
|
Pedido As String, OrdenCompra As String, FechaPago As String, CveUsoCFDI As Integer, Optional DescripcionVenta As String = "-1", Optional CveMedico As Integer = -1, Optional CveProcedimiento As Integer = -1,
|
||||||
Optional FechaParaSurtir As DateTime = MinFecha) As Boolean
|
Optional FechaParaSurtir As DateTime = MinFecha, Optional Paciente As String = "-1", Optional Episodio As String = "-1") As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_VentasObservacionesUpdate")
|
DataAdapter("PA_Vta_VentasObservacionesUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -646,6 +651,8 @@ Public Class ClsVentas
|
|||||||
.Add("@CveMedico", SqlDbType.Int).Value = CveMedico
|
.Add("@CveMedico", SqlDbType.Int).Value = CveMedico
|
||||||
.Add("@CveProcedimiento", SqlDbType.Int).Value = CveProcedimiento
|
.Add("@CveProcedimiento", SqlDbType.Int).Value = CveProcedimiento
|
||||||
.Add("@FechaParaSurtir", SqlDbType.DateTime).Value = FechaParaSurtir
|
.Add("@FechaParaSurtir", SqlDbType.DateTime).Value = FechaParaSurtir
|
||||||
|
.Add("@Paciente", SqlDbType.VarChar).Value = Paciente
|
||||||
|
.Add("@Episodio", SqlDbType.VarChar).Value = Episodio
|
||||||
|
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -2156,7 +2156,7 @@ Namespace Modelos
|
|||||||
CveMetodoPago33:=factura.CveMetodoPago33, CveUsoCFDI:=factura.CveUsoCFDI, OrdenCompra:=factura.OrdenCompra, CveCuentaTerminal:=factura.CveCuentaTerminal, CveTipoRelacion:=factura.CveTipoRelacion, ImpuestoLocal:=TotalImpuestoLocal,
|
CveMetodoPago33:=factura.CveMetodoPago33, CveUsoCFDI:=factura.CveUsoCFDI, OrdenCompra:=factura.OrdenCompra, CveCuentaTerminal:=factura.CveCuentaTerminal, CveTipoRelacion:=factura.CveTipoRelacion, ImpuestoLocal:=TotalImpuestoLocal,
|
||||||
CveVentaRelacion:=(If(factura.CveVentaRelacion.ToEntero > 0, factura.CveVentaRelacion, -1)), ImporteRelacion:=(If(factura.ImporteRelacion <> Nothing, factura.ImporteRelacion, -1)),
|
CveVentaRelacion:=(If(factura.CveVentaRelacion.ToEntero > 0, factura.CveVentaRelacion, -1)), ImporteRelacion:=(If(factura.ImporteRelacion <> Nothing, factura.ImporteRelacion, -1)),
|
||||||
CveTipoAmortizacionAnticipo:=factura.CveTipoAmortizacionAnticipo, CveEmpresaCRM:=CveEmpresaCRM, EsInterno:=EsInterno, ServicioDomicilio:=factura.ServicioDomicilio, RFCReceptor:=RFCReceptor, EsGarantia:=factura.EsGarantia, DescripcionVenta:=factura.DescripcionVenta,
|
CveTipoAmortizacionAnticipo:=factura.CveTipoAmortizacionAnticipo, CveEmpresaCRM:=CveEmpresaCRM, EsInterno:=EsInterno, ServicioDomicilio:=factura.ServicioDomicilio, RFCReceptor:=RFCReceptor, EsGarantia:=factura.EsGarantia, DescripcionVenta:=factura.DescripcionVenta,
|
||||||
CveMedico:=factura.CveMedico, CveProcedimiento:=factura.CveProcedimiento, CveTipoVenta:=factura.CveTipoVenta, FechaParaSurtir:=factura.FechaParaSurtir) Then
|
CveMedico:=factura.CveMedico, CveProcedimiento:=factura.CveProcedimiento, CveTipoVenta:=factura.CveTipoVenta, FechaParaSurtir:=factura.FechaParaSurtir, Paciente:=factura.Paciente, Episodio:=factura.Episodio) Then
|
||||||
|
|
||||||
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
|
|
||||||
@@ -7647,6 +7647,9 @@ Namespace Modelos
|
|||||||
Public Property CveProcedimiento As Integer = -1
|
Public Property CveProcedimiento As Integer = -1
|
||||||
Public Property Procedimiento As String = ""
|
Public Property Procedimiento As String = ""
|
||||||
Public Property CveTipoVenta As Integer = -1
|
Public Property CveTipoVenta As Integer = -1
|
||||||
|
|
||||||
|
Public Property Paciente As String = ""
|
||||||
|
Public Property Episodio As String = ""
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -366,7 +366,17 @@
|
|||||||
<Paragraph>
|
<Paragraph>
|
||||||
<TextRuns>
|
<TextRuns>
|
||||||
<TextRun>
|
<TextRun>
|
||||||
<Value>Tipo de Comprobante: I - Ingreso </Value>
|
<Value>Tipo de Comprobante: </Value>
|
||||||
|
<Style>
|
||||||
|
<FontStyle>Normal</FontStyle>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
<TextDecoration>None</TextDecoration>
|
||||||
|
<Color>#000000</Color>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
<TextRun>
|
||||||
|
<Value>= IIF(Parameters!Tipo.Value = "INGRESO","I - Ingreso","E - Egreso")</Value>
|
||||||
<Style>
|
<Style>
|
||||||
<FontStyle>Normal</FontStyle>
|
<FontStyle>Normal</FontStyle>
|
||||||
<FontSize>8pt</FontSize>
|
<FontSize>8pt</FontSize>
|
||||||
|
|||||||
@@ -437,7 +437,6 @@
|
|||||||
<PaddingBottom>2pt</PaddingBottom>
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
<rd:Selected>true</rd:Selected>
|
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
</TablixCells>
|
</TablixCells>
|
||||||
@@ -791,12 +790,24 @@ CIUDAD DE MEXICO</Value>
|
|||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style />
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Telefono +52 551 563 3271 support@smsmedicalsolutions.com</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style />
|
||||||
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox6</rd:DefaultName>
|
<rd:DefaultName>Textbox6</rd:DefaultName>
|
||||||
<Top>0.80781cm</Top>
|
<Top>0.80781cm</Top>
|
||||||
<Left>4.60107cm</Left>
|
<Left>4.60107cm</Left>
|
||||||
<Height>1.56146cm</Height>
|
<Height>1.56146cm</Height>
|
||||||
<Width>8.54466cm</Width>
|
<Width>10.0923cm</Width>
|
||||||
<ZIndex>2</ZIndex>
|
<ZIndex>2</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
|
|||||||
@@ -645,12 +645,24 @@ CIUDAD DE MEXICO</Value>
|
|||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style />
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Telefono +52 551 563 3271 support@smsmedicalsolutions.com</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style />
|
||||||
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox6</rd:DefaultName>
|
<rd:DefaultName>Textbox6</rd:DefaultName>
|
||||||
<Top>0.93835cm</Top>
|
<Top>0.93835cm</Top>
|
||||||
<Left>4.45623cm</Left>
|
<Left>4.49034cm</Left>
|
||||||
<Height>1.56146cm</Height>
|
<Height>1.56146cm</Height>
|
||||||
<Width>8.54466cm</Width>
|
<Width>9.99987cm</Width>
|
||||||
<ZIndex>1</ZIndex>
|
<ZIndex>1</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
|
|||||||
@@ -1529,12 +1529,24 @@ CIUDAD DE MEXICO</Value>
|
|||||||
</TextRuns>
|
</TextRuns>
|
||||||
<Style />
|
<Style />
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Telefono +52 551 563 3271 support@smsmedicalsolutions.com</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style />
|
||||||
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox6</rd:DefaultName>
|
<rd:DefaultName>Textbox6</rd:DefaultName>
|
||||||
<Top>0.63635cm</Top>
|
<Top>0.63635cm</Top>
|
||||||
<Left>8.55215cm</Left>
|
<Left>7.67902cm</Left>
|
||||||
<Height>1.13405cm</Height>
|
<Height>1.52889cm</Height>
|
||||||
<Width>8.54466cm</Width>
|
<Width>10.41731cm</Width>
|
||||||
<ZIndex>2</ZIndex>
|
<ZIndex>2</ZIndex>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
@@ -2288,6 +2300,7 @@ CIUDAD DE MEXICO</Value>
|
|||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
<Line Name="Line5">
|
<Line Name="Line5">
|
||||||
|
<Top>0cm</Top>
|
||||||
<Left>0.13678cm</Left>
|
<Left>0.13678cm</Left>
|
||||||
<Height>0cm</Height>
|
<Height>0cm</Height>
|
||||||
<Width>20.28859cm</Width>
|
<Width>20.28859cm</Width>
|
||||||
@@ -2299,6 +2312,7 @@ CIUDAD DE MEXICO</Value>
|
|||||||
</Style>
|
</Style>
|
||||||
</Line>
|
</Line>
|
||||||
<Line Name="Line4">
|
<Line Name="Line4">
|
||||||
|
<Top>0cm</Top>
|
||||||
<Left>0.13678cm</Left>
|
<Left>0.13678cm</Left>
|
||||||
<Height>0cm</Height>
|
<Height>0cm</Height>
|
||||||
<Width>25.72414cm</Width>
|
<Width>25.72414cm</Width>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -552,9 +552,9 @@ Partial Class Inicio
|
|||||||
Dim CveEventoEstatus As Integer = -1
|
Dim CveEventoEstatus As Integer = -1
|
||||||
FechaI = NowADS().AddDays(-180)
|
FechaI = NowADS().AddDays(-180)
|
||||||
FechaF = NowADS()
|
FechaF = NowADS()
|
||||||
If ObjProspectos.GetRepEventos(-1, 1, -1, "-1", "-1", -1, -1, -1, 1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF) Then
|
If ObjProspectos.GetRepEventos(-1, -1, -1, "-1", "-1", -1, -1, -1, 1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FechaI, FechaF) Then
|
||||||
|
|
||||||
Dim DT As DataTable = ObjProspectos.DtResultados.Clone.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
Dim DT As DataTable = ObjProspectos.DtResultados.Clone.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa} AND (CveTipoEvento =1 OR CveTipoEvento =3 OR CveTipoEvento =5 OR )")
|
||||||
|
|
||||||
If ChkOIPorHacer.Checked Then DT.Merge(ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioPara = {0} AND CveEmpresa = {1}", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)))
|
If ChkOIPorHacer.Checked Then DT.Merge(ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioPara = {0} AND CveEmpresa = {1}", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)))
|
||||||
If ChkOIAsigne.Checked Then DT.Merge(ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioDe = {0} AND CveEmpresa = {1} ", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)))
|
If ChkOIAsigne.Checked Then DT.Merge(ObjProspectos.DtResultados.FiltraParametros(String.Format("CveUsuarioDe = {0} AND CveEmpresa = {1} ", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)))
|
||||||
|
|||||||
@@ -489,6 +489,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
}
|
}
|
||||||
private void CargaTiposPeriodo()
|
private void CargaTiposPeriodo()
|
||||||
{
|
{
|
||||||
|
set_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa, null);
|
||||||
DdlTipoPeriodo.DataSource = get_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa);
|
DdlTipoPeriodo.DataSource = get_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa);
|
||||||
DdlTipoPeriodoCM.DataSource = DdlTipoPeriodo.DataSource;
|
DdlTipoPeriodoCM.DataSource = DdlTipoPeriodo.DataSource;
|
||||||
DdlTipoPeriodoSim.DataSource = DdlTipoPeriodo.DataSource;
|
DdlTipoPeriodoSim.DataSource = DdlTipoPeriodo.DataSource;
|
||||||
@@ -7541,7 +7542,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
|||||||
GvConceptossimulador.DataSource = new DataTable();
|
GvConceptossimulador.DataSource = new DataTable();
|
||||||
LblSalarioDiarioSimula.Text = "";
|
LblSalarioDiarioSimula.Text = "";
|
||||||
GvConceptossimulador.DataBind();
|
GvConceptossimulador.DataBind();
|
||||||
DdlTipoPeriodoSim.SelectedValue = "1";
|
DdlTipoPeriodoSim.SelectedValueExist(4);
|
||||||
|
DdlTipoPeriodoSim.SelectedValueExist(1);
|
||||||
RegistraScript("$('#DSimulador').modal()");
|
RegistraScript("$('#DSimulador').modal()");
|
||||||
UpSimulador.Update();
|
UpSimulador.Update();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
|
|
||||||
if (CveCircular > 0)
|
if (CveCircular > 0)
|
||||||
{
|
{
|
||||||
|
CargaDatos();
|
||||||
string[] correos;
|
string[] correos;
|
||||||
correos = TxtCorreo.Text.Split(';');
|
correos = TxtCorreo.Text.Split(';');
|
||||||
byte[] ArchivoBytes = ArchivoBytesArrya(HkArchivo.Text);
|
byte[] ArchivoBytes = ArchivoBytesArrya(HkArchivo.Text);
|
||||||
@@ -321,7 +321,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
int Contador = 0;
|
int Contador = 0;
|
||||||
foreach (string Correo in correos)
|
foreach (string Correo in correos)
|
||||||
{
|
{
|
||||||
MandaCorreo(TxtAsunto.Text, Correo, Contador > 0 ? "" : TxtCorreoAdicional.Text, TxtCircular.Text.Replace("< ", "<"), ArchivoBytes, HkArchivo.Text);
|
MandaCorreo(TxtAsunto.Text, Correo, Contador > 0 ? "" : TxtCorreoAdicional.Text, TxtCircular.Text.Replace("< ", "<"), ArchivoBytes, HkArchivo.Text, CircularInsertado);
|
||||||
Contador += 1;
|
Contador += 1;
|
||||||
}
|
}
|
||||||
BtnGuardar.Text = "Actualizar";
|
BtnGuardar.Text = "Actualizar";
|
||||||
@@ -375,7 +375,6 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
string FileExtension = "-1";
|
string FileExtension = "-1";
|
||||||
List<Archivo> Filesgral = TxtArchivo.getfiles().Archivos;
|
List<Archivo> Filesgral = TxtArchivo.getfiles().Archivos;
|
||||||
//string Filename = "";
|
//string Filename = "";
|
||||||
|
|
||||||
foreach (Archivo fileItem in Filesgral)
|
foreach (Archivo fileItem in Filesgral)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -446,7 +445,7 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MandaCorreo(string Asunto, string Para, string ArrayCC, string body, byte[] ArchivoBinario, string NombreArchivo)
|
private void MandaCorreo(string Asunto, string Para, string ArrayCC, string body, byte[] ArchivoBinario, string NombreArchivo,int CircularInsertado=-1)
|
||||||
{
|
{
|
||||||
string a = string.Format("{0} -- {1} --- {2}", Asunto, Para, ArrayCC);
|
string a = string.Format("{0} -- {1} --- {2}", Asunto, Para, ArrayCC);
|
||||||
a.GuardaLog();
|
a.GuardaLog();
|
||||||
@@ -485,6 +484,22 @@ public partial class OI_CircularDetalleB : ClsPaginas
|
|||||||
|
|
||||||
return new byte[] { };
|
return new byte[] { };
|
||||||
}
|
}
|
||||||
|
private byte[] ArchivoBytesArryarutaCompleta(string ArchivoEnviar)
|
||||||
|
{
|
||||||
|
if (File.Exists(ArchivoEnviar))
|
||||||
|
{
|
||||||
|
System.IO.FileStream fs = System.IO.File.Open(ArchivoEnviar, System.IO.FileMode.Open, System.IO.FileAccess.Read);
|
||||||
|
byte[] buff = new byte[fs.Length + 1];
|
||||||
|
if (fs.Length > 0)
|
||||||
|
{
|
||||||
|
fs.Read(buff, 0, (fs.Length.ToString().ToEntero() - 1));
|
||||||
|
fs.Close();
|
||||||
|
}
|
||||||
|
return buff;
|
||||||
|
}
|
||||||
|
|
||||||
|
return new byte[] { };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void RLBTipoEnvioTipo_SelectedIndexChanged(object sender, EventArgs e)
|
protected void RLBTipoEnvioTipo_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ Partial Class OI_RepMinutas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CargaFiltros()
|
Private Sub CargaFiltros()
|
||||||
txtFechaI.Text = New Date(NowADS().Year, NowADS().Month, 1).ToShortDateString
|
TxtFechaI.Text = NowADS().ToShortDateString()
|
||||||
txtFechaF.Text = NowADS().ToShortDateString
|
TxtFechaF.Text = (NowADS().AddMonths(1)).ToShortDateString()
|
||||||
End Sub
|
End Sub
|
||||||
Public Sub CargaDatosOIMinutas()
|
Public Sub CargaDatosOIMinutas()
|
||||||
Dim ObjProspectos As New ClsOIEventos
|
Dim ObjProspectos As New ClsOIEventos
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ public partial class OI_RepReuniones : ClsPaginas
|
|||||||
|
|
||||||
private void CargaFiltros()
|
private void CargaFiltros()
|
||||||
{
|
{
|
||||||
TxtFechaI.Text = new DateTime(NowADS().Year, NowADS().Month, 1).ToShortDateString();
|
TxtFechaI.Text = NowADS().ToShortDateString();
|
||||||
TxtFechaF.Text = NowADS().ToShortDateString();
|
TxtFechaF.Text = (NowADS().AddMonths(1)).ToShortDateString();
|
||||||
TxtCFechaInicio.Text = TxtFechaI.Text;
|
TxtCFechaInicio.Text = TxtFechaI.Text;
|
||||||
TxtCFechaFin.Text = TxtFechaF.Text;
|
TxtCFechaFin.Text = TxtFechaF.Text;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ public partial class OI_TareaDetalle : ClsPaginas
|
|||||||
CveTipoEvento = drow["CveTipoEvento"].ToString().ToEntero();
|
CveTipoEvento = drow["CveTipoEvento"].ToString().ToEntero();
|
||||||
|
|
||||||
|
|
||||||
if(CveTipoEvento == 3)
|
if(CveTipoEvento == 3 && CveEventoPadre<=0)
|
||||||
{
|
{
|
||||||
DivAvance.Visible = false;
|
DivAvance.Visible = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1283,7 +1283,28 @@
|
|||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" >Material Utilizado</h4>
|
<h4 class="modal-title" >Material Utilizado</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" runat="server" visible="false" id="DvTxtPacienteModal" >
|
||||||
|
<asp:TextBox ID="TxtPacienteModal" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtPacienteModal" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtPacienteModal"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Paciente''</b> es necesario, por favor ingréselo." ValidationGroup="GrpMaterialUtilizado"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= TxtPacienteModal.ClientID.ToString()%>">Paciente:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group form-md-line-input input-iconright" runat="server" visible="false" id="DvTxtEpisodioModal">
|
||||||
|
<asp:TextBox ID="TxtEpisodioModal" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="20"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RfvTxtEpisodioModal" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEpisodioModal"
|
||||||
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Episodio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpMaterialUtilizado"></asp:RequiredFieldValidator>
|
||||||
|
<label for="<%= TxtEpisodioModal.ClientID.ToString()%>">Episodio:</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -1342,7 +1363,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
||||||
<asp:LinkButton ID="LnkModalMaterialUtilizado" runat="server" CssClass="btn btn-primary" data-toggle="confirmation" data-popout="true" data-original-title="El material definido es el correcto?" data-btn-ok-label="si" ValidationGroup="GrpDevolucion"
|
<asp:LinkButton ID="LnkModalMaterialUtilizado" runat="server" CssClass="btn btn-primary" data-toggle="confirmation" data-popout="true" data-original-title="El material definido es el correcto?" data-btn-ok-label="si"
|
||||||
|
ValidationGroup="GrpMaterialUtilizado" CausesValidation="true"
|
||||||
OnClick="LnkModalMaterialUtilizado_Click" >Guardar</asp:LinkButton>
|
OnClick="LnkModalMaterialUtilizado_Click" >Guardar</asp:LinkButton>
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
||||||
|
|
||||||
|
|||||||
@@ -473,6 +473,9 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
DVEpisodioPaciente.Visible = True
|
DVEpisodioPaciente.Visible = True
|
||||||
|
|
||||||
|
DvTxtPacienteModal.Visible = True
|
||||||
|
DvTxtEpisodioModal.Visible = True
|
||||||
|
|
||||||
If CveOS > 0 And TipoEstatus >= 3 Then
|
If CveOS > 0 And TipoEstatus >= 3 Then
|
||||||
DdlUsuarioAtendio.Enabled = True
|
DdlUsuarioAtendio.Enabled = True
|
||||||
DVUsuarioAtendio3.Visible = True
|
DVUsuarioAtendio3.Visible = True
|
||||||
@@ -682,7 +685,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
DdlEstatusOS.SelectedValue = ObjOS.CveEstatusOrdenServicio.ToString
|
DdlEstatusOS.SelectedValue = ObjOS.CveEstatusOrdenServicio.ToString
|
||||||
|
|
||||||
'If TipoEstatus = 2 Then
|
'If TipoEstatus = 2 Then
|
||||||
LnkTecnico.Visible = True
|
'LnkTecnico.Visible = True
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
If TipoEstatus = 3 Then
|
If TipoEstatus = 3 Then
|
||||||
@@ -3023,6 +3026,12 @@ Partial Class OS_OrdenesServicios
|
|||||||
LnkModalMaterialUtilizado.Visible = False
|
LnkModalMaterialUtilizado.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
||||||
|
TxtPacienteModal.Text = TxtPaciente.Text
|
||||||
|
TxtEpisodioModal.Text = TxtIdentificadorCliente.Text
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
UpModalMaterialUtilizado.Update()
|
UpModalMaterialUtilizado.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -3038,6 +3047,21 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
Protected Sub LnkModalMaterialUtilizado_Click(sender As Object, e As EventArgs)
|
Protected Sub LnkModalMaterialUtilizado_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
||||||
|
|
||||||
|
If TxtPacienteModal.Text.Trim.Length = 0 Then
|
||||||
|
Alert("Debe de proporcionar el paciente.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If TxtEpisodioModal.Text.Trim.Length = 0 Then
|
||||||
|
Alert("Debe de proporcionar el episodio.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
Dim CveAlmacenActual As Integer = DTSolicitudDev.FiltroPrimeroValor("CveAlmacenActual").ToEntero
|
Dim CveAlmacenActual As Integer = DTSolicitudDev.FiltroPrimeroValor("CveAlmacenActual").ToEntero
|
||||||
Dim CveMoneda As Integer = DTSolicitudDev.FiltroPrimeroValor("CveMoneda").ToEntero
|
Dim CveMoneda As Integer = DTSolicitudDev.FiltroPrimeroValor("CveMoneda").ToEntero
|
||||||
Dim CveSubProyectoPedido As Integer = DTSolicitudDev.FiltroPrimeroValor("CveSubProyecto").ToEntero
|
Dim CveSubProyectoPedido As Integer = DTSolicitudDev.FiltroPrimeroValor("CveSubProyecto").ToEntero
|
||||||
@@ -3307,6 +3331,8 @@ Partial Class OS_OrdenesServicios
|
|||||||
ObjFactura.FechaParaSurtir = TxtFechaCita.Text.ToDateTime
|
ObjFactura.FechaParaSurtir = TxtFechaCita.Text.ToDateTime
|
||||||
ObjFactura.CveClienteSucursal = DdlSucursalCliente.SelectedValue.ToEntero
|
ObjFactura.CveClienteSucursal = DdlSucursalCliente.SelectedValue.ToEntero
|
||||||
ObjFactura.CveVentaRelacion = CveVentaPedido
|
ObjFactura.CveVentaRelacion = CveVentaPedido
|
||||||
|
ObjFactura.Paciente = TxtPacienteModal.Text.Trim
|
||||||
|
ObjFactura.Episodio = TxtEpisodioModal.Text.Trim
|
||||||
|
|
||||||
For Each GvRow As GridViewRow In GvMU.Rows
|
For Each GvRow As GridViewRow In GvMU.Rows
|
||||||
|
|
||||||
|
|||||||
@@ -347,7 +347,7 @@
|
|||||||
<div class="portlet light smmallpadding bordered">
|
<div class="portlet light smmallpadding bordered">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<i class="icon-user"></i><span class="caption-subject bold uppercase" style="font-size: 18px;">Personal (<span id="contaper"></span>)</span>
|
<i class="icon-user"></i><span class="caption-subject bold uppercase" style="font-size: 18px;">Personal (<asp:Literal ID="ltlContador" runat="server"></asp:Literal>)</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<div style="display: inline-block">
|
<div style="display: inline-block">
|
||||||
@@ -1353,7 +1353,8 @@
|
|||||||
|
|
||||||
|
|
||||||
Sys.Application.add_load(function (s, e) {
|
Sys.Application.add_load(function (s, e) {
|
||||||
<%= String.Format("FiltrarTablaClass('TxtBusqueda','{0}','contaper');", GvDatos.ClientID) %>
|
|
||||||
|
<%= String.Format("setTimeout(function(){{ FiltrarTablaClass('TxtBusqueda','{0}','contaper');}}, 1000)", GvDatos.ClientID) %>
|
||||||
});
|
});
|
||||||
function OrdenarGV() {
|
function OrdenarGV() {
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ Partial Class RH_CatPersonal
|
|||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
ltlContador.Text = String.Format("<span id='contaper' {0}>...</span>{1}", If(GvDatos.Rows.Count > 0, "", " class='hidden' "), If(GvDatos.Rows.Count > 0, "", "0"))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub CargaDatos()
|
Public Sub CargaDatos()
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ function FiltrarTabla(idtxt, idtable, idcontador) {
|
|||||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||||
}
|
}
|
||||||
if ($('#' + idcontador).length > 0) {
|
if ($('#' + idcontador).length > 0) {
|
||||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
$('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.ADtr)').length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ function FiltrarTablaStr(str, idtable, idcontador) {
|
|||||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||||
}
|
}
|
||||||
if ($('#' + idcontador).length > 0) {
|
if ($('#' + idcontador).length > 0) {
|
||||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
$('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ function FiltrarTablaStrMulti(idtable, idcontador /*, str1, str2, str3...*/ ) {
|
|||||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||||
if (idcontador) {
|
if (idcontador) {
|
||||||
if ($('#' + idcontador).length > 0) {
|
if ($('#' + idcontador).length > 0) {
|
||||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
$('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -130,7 +130,7 @@ function FiltrarTablaClass(idtxt, idtable, idcontador, resta) {
|
|||||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').removeClass('hidetrad');
|
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').removeClass('hidetrad');
|
||||||
}
|
}
|
||||||
if ($('#' + idcontador).length > 0) {
|
if ($('#' + idcontador).length > 0) {
|
||||||
let numconta = $('#' + idtable + ' tr:not(.hidetrad):not(.ADtr)').length;
|
let numconta = $('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length;
|
||||||
if (numconta > 0) { numconta - resta}
|
if (numconta > 0) { numconta - resta}
|
||||||
$('#' + idcontador).html(numconta );
|
$('#' + idcontador).html(numconta );
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@ function FiltrarTablaV2(idtxt, idtable, idcontador) {
|
|||||||
$('div.ADScroller .ADScroller-header ' + idtable + ' tr:not(.ADtr)').css('display', '');
|
$('div.ADScroller .ADScroller-header ' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||||
}
|
}
|
||||||
if ($('#' + idcontador).length > 0) {
|
if ($('#' + idcontador).length > 0) {
|
||||||
$('#' + idcontador).html($(idtable + ' tr:visible').length);
|
$('#' + idcontador).html($(idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -603,6 +603,20 @@
|
|||||||
<asp:TextBox ID="TxtFechaOS" type="datetime-local" runat="server" CssClass="make-switchsd" CausesValidation="true" Style="width: 130px"></asp:TextBox>
|
<asp:TextBox ID="TxtFechaOS" type="datetime-local" runat="server" CssClass="make-switchsd" CausesValidation="true" Style="width: 130px"></asp:TextBox>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr runat="server" id="TrVentasMedicas3" visible="false">
|
||||||
|
<td runat="server" id="Td6" visible="true">
|
||||||
|
<b>Paciente:</b>
|
||||||
|
</td>
|
||||||
|
<td runat="server">
|
||||||
|
<asp:TextBox ID="TxtPaciente" runat="server" CssClass="make-switchsd" Style="width: 130px" MaxLength="50"></asp:TextBox>
|
||||||
|
</td>
|
||||||
|
<td runat="server" id="Td9" visible="true">
|
||||||
|
<b>Episodio:</b>
|
||||||
|
</td>
|
||||||
|
<td runat="server">
|
||||||
|
<asp:TextBox ID="TxtEpisodio" runat="server" CssClass="make-switchsd" Style="width: 130px" MaxLength="20"></asp:TextBox>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2402,7 +2416,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
Emitir:
|
Emitir
|
||||||
<asp:CheckBox ID="ChkEmitirCartaPorte" runat="server" CssClass="chksino" Text=" " OnCheckedChanged="ChkEmitirCartaPorte_CheckedChanged" AutoPostBack="true" />
|
<asp:CheckBox ID="ChkEmitirCartaPorte" runat="server" CssClass="chksino" Text=" " OnCheckedChanged="ChkEmitirCartaPorte_CheckedChanged" AutoPostBack="true" />
|
||||||
<a href="javascript:;" class="collapse"></a>
|
<a href="javascript:;" class="collapse"></a>
|
||||||
</div>
|
</div>
|
||||||
@@ -2665,7 +2679,7 @@
|
|||||||
Convertir a unidad Aduana
|
Convertir a unidad Aduana
|
||||||
<asp:TextBox ID="TxtComExtConvertir" runat="server" Width="60px"></asp:TextBox><asp:Button ID="BtnComExtConvertirUnidad" runat="server" Text="Convertir" />
|
<asp:TextBox ID="TxtComExtConvertir" runat="server" Width="60px"></asp:TextBox><asp:Button ID="BtnComExtConvertirUnidad" runat="server" Text="Convertir" />
|
||||||
<asp:GridView ID="GvComercioExterior" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD mysmallbtn" Width="100%" data-sort="true" AutoGenerateColumns="False"
|
<asp:GridView ID="GvComercioExterior" runat="server" GridLines="None" CssClass="table table-hover table-striped ScrollAD mysmallbtn" Width="100%" data-sort="true" AutoGenerateColumns="False"
|
||||||
EmptyDataText="No hay datos disponibles" DataKeyNames="Cantidad,Codigo,ClaveSATFraccionArancelaria,ClaveSATUnidadAduana" OnRowDataBound="GvComercioExterior_RowDataBound">
|
EmptyDataText="No hay datos disponibles" DataKeyNames="Consec,CvePS,Cantidad,Codigo,ClaveSATFraccionArancelaria,ClaveSATUnidadAduana" OnRowDataBound="GvComercioExterior_RowDataBound">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField HeaderText="Cantidad">
|
<asp:TemplateField HeaderText="Cantidad">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
@@ -8641,6 +8655,14 @@
|
|||||||
TotalUSD.innerText = FormatoNumero(ToDouble(ValorUnitario.value) * ToDouble(TxtCantidad.value), 2);
|
TotalUSD.innerText = FormatoNumero(ToDouble(ValorUnitario.value) * ToDouble(TxtCantidad.value), 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function CalculaPU_USD(TxtValorUnitario, TotalUSD, TxtCantidad) {
|
||||||
|
TxtValorUnitario.value = FormatoNumero(ToDouble(TotalUSD) / ToDouble(TxtCantidad.value), 6);
|
||||||
|
}
|
||||||
|
|
||||||
|
function CalculaCantidad_USD(TxtValorUnitario, TotalUSD, TxtCantidad) {
|
||||||
|
TxtCantidad.value = FormatoNumero(ToDouble(TotalUSD) / ToDouble(TxtValorUnitario.value), 6);
|
||||||
|
}
|
||||||
|
|
||||||
function LimitaCantidadAplicaDev(Cantidad, TxtCantidadAplicaDevolucion) {
|
function LimitaCantidadAplicaDev(Cantidad, TxtCantidadAplicaDevolucion) {
|
||||||
if (ToDouble(TxtCantidadAplicaDevolucion.value) > Cantidad) {
|
if (ToDouble(TxtCantidadAplicaDevolucion.value) > Cantidad) {
|
||||||
TxtCantidadAplicaDevolucion.value = FormatoNumero(Cantidad, 2)
|
TxtCantidadAplicaDevolucion.value = FormatoNumero(Cantidad, 2)
|
||||||
|
|||||||
@@ -5876,13 +5876,21 @@ Partial Class Ventas
|
|||||||
|
|
||||||
CveTipoVenta = If(DbRowVenta("CveTipoVenta").ToString.ToEntero > 0, DbRowVenta("CveTipoVenta").ToString.ToEntero, -1)
|
CveTipoVenta = If(DbRowVenta("CveTipoVenta").ToString.ToEntero > 0, DbRowVenta("CveTipoVenta").ToString.ToEntero, -1)
|
||||||
|
|
||||||
|
TrVentasMedicas3.Visible = True
|
||||||
|
|
||||||
If DbRowVenta("CveMedico").ToString.ToEntero > 0 AndAlso CveTipoVenta.Contiene(1, 2, 3, 5) Then
|
If DbRowVenta("CveMedico").ToString.ToEntero > 0 AndAlso CveTipoVenta.Contiene(1, 2, 3, 5) Then
|
||||||
TrVentasMedicas1.Visible = True
|
TrVentasMedicas1.Visible = True
|
||||||
|
|
||||||
DdlMedico.SelectedValueExist(DbRowVenta("CveMedico").ToString)
|
DdlMedico.SelectedValueExist(DbRowVenta("CveMedico").ToString)
|
||||||
DdlProcedimiento.SelectedValueExist(DbRowVenta("CveProcedimiento").ToString)
|
DdlProcedimiento.SelectedValueExist(DbRowVenta("CveProcedimiento").ToString)
|
||||||
|
TxtPaciente.Text = DbRowVenta("Paciente").ToString
|
||||||
|
TxtEpisodio.Text = DbRowVenta("Episodio").ToString
|
||||||
|
|
||||||
DdlMedico.Enabled = False
|
DdlMedico.Enabled = False
|
||||||
DdlProcedimiento.Enabled = False
|
DdlProcedimiento.Enabled = False
|
||||||
|
TxtPaciente.Enabled = False
|
||||||
|
TxtEpisodio.Enabled = False
|
||||||
|
|
||||||
|
|
||||||
If DbRowVenta("FechaParaSurtir").ToString().ToDate() > DateTime.MinValue Then
|
If DbRowVenta("FechaParaSurtir").ToString().ToDate() > DateTime.MinValue Then
|
||||||
TrVentasMedicas2.Visible = True
|
TrVentasMedicas2.Visible = True
|
||||||
@@ -10161,17 +10169,17 @@ Partial Class Ventas
|
|||||||
ViewState("CveVenta") = ObjFactura.CveVenta
|
ViewState("CveVenta") = ObjFactura.CveVenta
|
||||||
|
|
||||||
If Request("CveEmbarqueManifiesto") IsNot Nothing AndAlso IsNumeric(Request("CveEmbarqueManifiesto")) AndAlso Request("CveEmbarqueManifiesto").ToEntero() > 0 Then
|
If Request("CveEmbarqueManifiesto") IsNot Nothing AndAlso IsNumeric(Request("CveEmbarqueManifiesto")) AndAlso Request("CveEmbarqueManifiesto").ToEntero() > 0 Then
|
||||||
|
If Not ObjVentas.Embarque_ManifiestoUpvta(ObjFactura.CveVenta, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Request("CveEmbarqueManifiesto").ToEntero()) Then
|
||||||
If ObjVentas.Embarque_ManifiestoUpvta(ObjFactura.CveVenta, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Request("CveEmbarqueManifiesto").ToEntero()) Then
|
ErrorList.Add("Error al actualizar el manifiesto.")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Request("CveManifiesto") IsNot Nothing AndAlso IsNumeric(Request("CveManifiesto")) AndAlso Request("CveManifiesto").ToEntero() > 0 Then
|
If Request("CveManifiesto") IsNot Nothing AndAlso IsNumeric(Request("CveManifiesto")) AndAlso Request("CveManifiesto").ToEntero() > 0 Then
|
||||||
|
If Not ObjVentas.CGame_ManifiestoUpvta(ObjFactura.CveVenta, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Request("CveManifiesto").ToEntero()) Then
|
||||||
If ObjVentas.CGame_ManifiestoUpvta(ObjFactura.CveVenta, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Request("CveManifiesto").ToEntero()) Then
|
ErrorList.Add("Error al actualizar el manifiesto.")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
OnError("Ocurrió un error al actualizar el embarque", ex)
|
OnError("Ocurrió un error al actualizar el embarque", ex)
|
||||||
ErrorList.Add("Ocurrió un error al actualizar el embarque")
|
ErrorList.Add("Ocurrió un error al actualizar el embarque")
|
||||||
@@ -10181,9 +10189,8 @@ Partial Class Ventas
|
|||||||
ViewState("CveVenta") = ObjFactura.CveVenta
|
ViewState("CveVenta") = ObjFactura.CveVenta
|
||||||
|
|
||||||
If Request("CveOrdenProduccion") IsNot Nothing AndAlso IsNumeric(Request("CveOrdenProduccion")) AndAlso Request("CveOrdenProduccion").ToEntero() > 0 Then
|
If Request("CveOrdenProduccion") IsNot Nothing AndAlso IsNumeric(Request("CveOrdenProduccion")) AndAlso Request("CveOrdenProduccion").ToEntero() > 0 Then
|
||||||
|
If Not ObjVentas.AgroOrdenProduccionUpvta(ObjFactura.CveVenta, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Request("CveOrdenProduccion").ToEntero()) Then
|
||||||
If ObjVentas.AgroOrdenProduccionUpvta(ObjFactura.CveVenta, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, Request("CveOrdenProduccion").ToEntero()) Then
|
ErrorList.Add("Error al actualizar el manifiesto.")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -13336,7 +13343,8 @@ Partial Class Ventas
|
|||||||
Kilometraje:=TxtKilometraje.Text.ToDouble, EsAmortizacion:=EsNCAmortizacion, CveTipoRetencion:=factura.CveTipoRetencion, CorreoNotificacion:=TxtCorreoNotificaciones.Text,
|
Kilometraje:=TxtKilometraje.Text.ToDouble, EsAmortizacion:=EsNCAmortizacion, CveTipoRetencion:=factura.CveTipoRetencion, CorreoNotificacion:=TxtCorreoNotificaciones.Text,
|
||||||
FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero, FacturarSucursal:=factura.FacturarSucursal, VentaDesglosaIEPS:=factura.VentaDesglosaIEPS, RFCReceptor:=RFCReceptor, Adjunto:=Adjunto, DevolucionImportePagado:=factura.DevolucionImportePagado, EsGarantia:=factura.EsGarantia, ServicioDomicilio:=TrServicioDomicilio.Visible,
|
FormaPaqueteria:=RblPaqueteria.SelectedValue.ToEntero, FacturarSucursal:=factura.FacturarSucursal, VentaDesglosaIEPS:=factura.VentaDesglosaIEPS, RFCReceptor:=RFCReceptor, Adjunto:=Adjunto, DevolucionImportePagado:=factura.DevolucionImportePagado, EsGarantia:=factura.EsGarantia, ServicioDomicilio:=TrServicioDomicilio.Visible,
|
||||||
CveLineaAdicional:=DdlLineaAdicional.SelectedValue.ToEntero(), DescripcionVenta:=DescripcionVenta,
|
CveLineaAdicional:=DdlLineaAdicional.SelectedValue.ToEntero(), DescripcionVenta:=DescripcionVenta,
|
||||||
CveMedico:=CveMedico, CveProcedimiento:=CveProcedimiento, CveTipoVenta:=CveTipoVentaGuardar, RequiereOS:=ChkRequiereTecnico.Checked, FechaParaSurtir:=factura.FechaParaSurtir) Then
|
CveMedico:=CveMedico, CveProcedimiento:=CveProcedimiento, CveTipoVenta:=CveTipoVentaGuardar, RequiereOS:=ChkRequiereTecnico.Checked, FechaParaSurtir:=factura.FechaParaSurtir,
|
||||||
|
Paciente:=TxtPaciente.Text, Episodio:=TxtEpisodio.Text) Then
|
||||||
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al Generar la Venta.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
Else
|
Else
|
||||||
If factura.TipoDocto.Contiene("Dev", "Egs") OrElse DtVentasNC IsNot Nothing OrElse CveEstatusRefacturacion > 0 OrElse CveAnticipoPadre > 0 Then
|
If factura.TipoDocto.Contiene("Dev", "Egs") OrElse DtVentasNC IsNot Nothing OrElse CveEstatusRefacturacion > 0 OrElse CveAnticipoPadre > 0 Then
|
||||||
@@ -13438,6 +13446,17 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'ACTUALIZA EL CAMPO CANTIDAD CONVERSION CON BASE A LO ESTABLECIDO EN LA TABLA
|
||||||
|
If AplicaComercioExterior Then
|
||||||
|
For Each gvr As GridViewRow In GvComercioExterior.Rows
|
||||||
|
For Each Row As DataRow In TmpDTDetalle.Rows
|
||||||
|
If gvr.DataKey("Consec") = Row("Consec").ToString() AndAlso gvr.DataKey("CvePS") = Row("CvePS").ToString() Then
|
||||||
|
Row("CantidadConversion") = gvr.FCTextBox("TxtCantidad").Text.ToDecimal()
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Next
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
If factura.TipoDocto = "Egs" AndAlso NuevaFactura = 1 Then
|
If factura.TipoDocto = "Egs" AndAlso NuevaFactura = 1 Then
|
||||||
If DtVentasNC Is Nothing Then
|
If DtVentasNC Is Nothing Then
|
||||||
@@ -15364,7 +15383,7 @@ Partial Class Ventas
|
|||||||
If Not OcurrioError AndAlso DebeGenerarMovimiento AndAlso UsuarioActual.Empresa.Funcionalidad(558) = "1" AndAlso UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso factura.TipoDocto.Contiene("Ing", "Rem") Then
|
If Not OcurrioError AndAlso DebeGenerarMovimiento AndAlso UsuarioActual.Empresa.Funcionalidad(558) = "1" AndAlso UsuarioActual.Empresa.Funcionalidad(567) = "1" AndAlso factura.TipoDocto.Contiene("Ing", "Rem") Then
|
||||||
If Not (ObjInventario.GetInv_Mov(factura.CveVenta, UsuarioActual.CveEmpresa) AndAlso ObjInventario.DtResultados.Rows.Count > 0) Then
|
If Not (ObjInventario.GetInv_Mov(factura.CveVenta, UsuarioActual.CveEmpresa) AndAlso ObjInventario.DtResultados.Rows.Count > 0) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
ErrorList.Add("Ocurrió un error al verificar inventario.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
ErrorList.Add("Ocurrió un error al aplicar el inventario.<br />Revise su factura y cualquier detalle comuníquese a Soporte Técnico")
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -16853,6 +16872,10 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
|
||||||
|
AgregarPS()
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ElseIf CvePSParametro = -2 Then
|
ElseIf CvePSParametro = -2 Then
|
||||||
@@ -16866,11 +16889,6 @@ Partial Class Ventas
|
|||||||
UPPPS.Update()
|
UPPPS.Update()
|
||||||
UpPS.Update()
|
UpPS.Update()
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(109) = "1" Then
|
|
||||||
AgregarPS()
|
|
||||||
End If
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function CalculaPrecioSugerido(CvePSParametro As Integer, CveClasificacion As Integer, Optional CvePrecioListaSugerido As Integer = -1) As Modelos.MPrecioSugerido
|
Private Function CalculaPrecioSugerido(CvePSParametro As Integer, CveClasificacion As Integer, Optional CvePrecioListaSugerido As Integer = -1) As Modelos.MPrecioSugerido
|
||||||
@@ -17587,7 +17605,7 @@ Partial Class Ventas
|
|||||||
Protected Sub LbAgregar_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LbAgregar.Click
|
Protected Sub LbAgregar_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LbAgregar.Click
|
||||||
AgregarPS()
|
AgregarPS()
|
||||||
End Sub
|
End Sub
|
||||||
Private Function ValidaAgregarPS(CvePS As Integer, CveUM As Integer, PU As Double, CveTipoPS As Integer) As Boolean 'NO TOCAR - IPP
|
Private Function ValidaAgregarPS(CvePS As Integer, CveUM As Integer, PU As Double, CveTipoPS As Integer, Optional CantidadModal As Decimal = 0D, Optional PSValidarModal As String = "") As Boolean 'NO TOCAR - IPP
|
||||||
|
|
||||||
'VALIDA PARAMETROS
|
'VALIDA PARAMETROS
|
||||||
If CvePS <= 0 Or CveUM <= 0 Then
|
If CvePS <= 0 Or CveUM <= 0 Then
|
||||||
@@ -17595,6 +17613,10 @@ Partial Class Ventas
|
|||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If PSValidarModal.Trim.Length > 0 Then
|
||||||
|
HdnPS.Value = PSValidarModal
|
||||||
|
End If
|
||||||
|
|
||||||
If HdnPS.Value = "" Or HdnPS.Value = "-1" Then
|
If HdnPS.Value = "" Or HdnPS.Value = "-1" Then
|
||||||
Alert("Es necesario seleccionar el Producto o Servicio a facturar.", TipoMensaje.MsgAdvertencia)
|
Alert("Es necesario seleccionar el Producto o Servicio a facturar.", TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
Return False
|
||||||
@@ -17675,11 +17697,11 @@ Partial Class Ventas
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then
|
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Or UsuarioActual.Empresa.Funcionalidad(578).ToEntero = 1 Then
|
||||||
'VALIDA EXISTENCIA
|
'VALIDA EXISTENCIA
|
||||||
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 153, 140}) Then
|
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 153, 140, 186}) Then
|
||||||
If CveVenta <= 0 OrElse Me.EsCreaApartirDe Then
|
If CveVenta <= 0 OrElse Me.EsCreaApartirDe Then
|
||||||
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < (If(CantidadModal > 0, CantidadModal, TxtCantidad.Text.ToDouble)) Then
|
||||||
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
@@ -17694,7 +17716,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
'SUMA LO YA RESTADO EN PENDIENTE POR SURTIR QUE PERTENESCA A LA VENTA.
|
'SUMA LO YA RESTADO EN PENDIENTE POR SURTIR QUE PERTENESCA A LA VENTA.
|
||||||
'PARA QUE NO RESTE LA EXISTENCIA 2 VECES Y PUEDAS COMPARAR LO REAL
|
'PARA QUE NO RESTE LA EXISTENCIA 2 VECES Y PUEDAS COMPARAR LO REAL
|
||||||
If (Existencia + CantidadVenta) - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} And (EntregaDirecta Is NULL Or EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
If (Existencia + CantidadVenta) - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} And (EntregaDirecta Is NULL Or EntregaDirecta < 1)") < (If(CantidadModal > 0, CantidadModal, TxtCantidad.Text.ToDouble)) Then
|
||||||
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
Return False
|
||||||
End If
|
End If
|
||||||
@@ -21661,6 +21683,8 @@ Partial Class Ventas
|
|||||||
TrVentasMedicas1.Visible = True
|
TrVentasMedicas1.Visible = True
|
||||||
DdlMedico.Enabled = True
|
DdlMedico.Enabled = True
|
||||||
DdlProcedimiento.Enabled = True
|
DdlProcedimiento.Enabled = True
|
||||||
|
TxtPaciente.Enabled = True
|
||||||
|
TxtEpisodio.Enabled = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -21835,7 +21859,8 @@ Partial Class Ventas
|
|||||||
PedidoContrato:=TxtPedidoContrato.Text, AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero(),
|
PedidoContrato:=TxtPedidoContrato.Text, AtencionA:=TxtAtencionA.Text.Trim, CveMetodoPago33:=DdlMetodoPago33.SelectedValue.ToEntero(),
|
||||||
CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero(), TipoDocto:=DdlTipoComprobante.SelectedValue, CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal,
|
CveFormaPago33:=DdlFormaPago33.SelectedValue.ToEntero(), TipoDocto:=DdlTipoComprobante.SelectedValue, CveCliente:=CveCliente, CveClienteSucursal:=CveClienteSucursal,
|
||||||
OrdenCompra:=TxtOrdenCompra.Text, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, Kilometraje:=TxtKilometraje.Text.ToDecimal, CveUsoCFDi:=DdlUsoCFDI.SelectedValue.ToEntero(),
|
OrdenCompra:=TxtOrdenCompra.Text, RetIVA:=TxtRetIVA.Text.ToDecimal, RetISR:=TxtRetISR.Text.ToDecimal, Kilometraje:=TxtKilometraje.Text.ToDecimal, CveUsoCFDi:=DdlUsoCFDI.SelectedValue.ToEntero(),
|
||||||
CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), ServicioDomicilio:=TrServicioDomicilio.Visible, CveMedico:=DdlMedico.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero, FechaParaSurtir:=FechaParaSurtir) Then
|
CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), ServicioDomicilio:=TrServicioDomicilio.Visible, CveMedico:=DdlMedico.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero,
|
||||||
|
FechaParaSurtir:=FechaParaSurtir, Paciente:=TxtPaciente.Text, Episodio:=TxtEpisodio.Text) Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -29734,9 +29759,12 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
e.Row.FCTextBox("TxtValorUnitario").Text = PUBase.ToString("N2")
|
e.Row.FCTextBox("TxtValorUnitario").Text = PUBase.ToString("N2")
|
||||||
|
'e.Row.FCTextBox("TxtValorUnitario").Attributes.Add("onkeyup", $"CalculaTotalUSD({e.Row.FCLabel("LblTotalUSD").ClientID}, this,{e.Row.FCTextBox("TxtCantidad").ClientID});")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
e.Row.FCTextBox("TxtValorUnitario").Attributes.Add("onkeyup", $"CalculaTotalUSD({e.Row.FCLabel("LblTotalUSD").ClientID}, this,{e.Row.FCTextBox("TxtCantidad").ClientID});")
|
e.Row.FCTextBox("TxtCantidad").Attributes.Add("onkeyup", $"CalculaPU_USD({e.Row.FCTextBox("TxtValorUnitario").ClientID}, {e.Row.FCLabel("LblTotalUSD").Text.ToDecimal()},this);")
|
||||||
|
e.Row.FCTextBox("TxtValorUnitario").Attributes.Add("onkeyup", $"CalculaCantidad_USD(this,{e.Row.FCLabel("LblTotalUSD").Text.ToDecimal()},{e.Row.FCTextBox("TxtCantidad").ClientID});")
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -33667,6 +33695,8 @@ Partial Class Ventas
|
|||||||
TrVentasMedicas1.Visible = True
|
TrVentasMedicas1.Visible = True
|
||||||
DdlMedico.Enabled = True
|
DdlMedico.Enabled = True
|
||||||
DdlProcedimiento.Enabled = True
|
DdlProcedimiento.Enabled = True
|
||||||
|
TxtPaciente.Enabled = True
|
||||||
|
TxtEpisodio.Enabled = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.TienePermisoProceso(289) Then
|
If UsuarioActual.TienePermisoProceso(289) Then
|
||||||
@@ -33723,7 +33753,8 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If Not ObjVentas.UpdateObservacionesVenta(Me.CveVenta, UsuarioActual.CveEmpresa, DdlVendedor.SelectedValue.ToEntero(), TxtObsFact.Text, RblPaqueteria.SelectedValue.ToEntero(), TxtCorreoNotificaciones.Text,
|
If Not ObjVentas.UpdateObservacionesVenta(Me.CveVenta, UsuarioActual.CveEmpresa, DdlVendedor.SelectedValue.ToEntero(), TxtObsFact.Text, RblPaqueteria.SelectedValue.ToEntero(), TxtCorreoNotificaciones.Text,
|
||||||
TxtObsAlmacen.Text, TxtPedidoContrato.Text, TxtOrdenCompra.Text, TxtFechaPago.Text, DdlUsoCFDI.SelectedValue.ToEntero, DescripcionVenta:=TxtDescripcionVenta.Text.Trim,
|
TxtObsAlmacen.Text, TxtPedidoContrato.Text, TxtOrdenCompra.Text, TxtFechaPago.Text, DdlUsoCFDI.SelectedValue.ToEntero, DescripcionVenta:=TxtDescripcionVenta.Text.Trim,
|
||||||
CveMedico:=DdlMedico.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero, FechaParaSurtir:=FechaParaSurtir) Then
|
CveMedico:=DdlMedico.SelectedValue.ToEntero, CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero, FechaParaSurtir:=FechaParaSurtir, Paciente:=TxtPaciente.Text,
|
||||||
|
Episodio:=TxtEpisodio.Text) Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -36080,6 +36111,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
TrVentasMedicas1.Visible = True
|
TrVentasMedicas1.Visible = True
|
||||||
TrVentasMedicas2.Visible = True
|
TrVentasMedicas2.Visible = True
|
||||||
|
TrVentasMedicas3.Visible = True
|
||||||
|
|
||||||
For Each item As ListItem In RBLTipoVenta.Items
|
For Each item As ListItem In RBLTipoVenta.Items
|
||||||
item.Text = $"  {item.Text}"
|
item.Text = $"  {item.Text}"
|
||||||
@@ -36160,7 +36192,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
|
|
||||||
TdFechaOS1.Visible = ChkRequiereTecnico.Checked
|
TdFechaOS1.Visible = ChkRequiereTecnico.Checked
|
||||||
TdFechaOS2.Visible = ChkRequiereTecnico.Checked
|
|
||||||
|
|
||||||
UpCliente.Update()
|
UpCliente.Update()
|
||||||
End Sub
|
End Sub
|
||||||
@@ -36327,6 +36359,27 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
For Each GvRow As GridViewRow In GvProductosProcedimiento.Rows
|
||||||
|
Dim Cantidad As Decimal = GvRow.FCTextBox("TxtCantidad").Text.ToDecimal
|
||||||
|
Dim CveUnidadMedida As Integer = GvRow.DataKey("CveUnidadMedida").ToEntero
|
||||||
|
Dim Abreviatura As String = GvRow.DataKey("Abreviatura").ToString
|
||||||
|
Dim PU As Decimal = GvRow.DataKey("Precio").ToDecimal
|
||||||
|
Dim CveClasificacion As Integer = GvRow.DataKey("CveClasificacion").ToEntero
|
||||||
|
Dim Clasificacion As String = GvRow.DataKey("Clasificacion").ToString
|
||||||
|
Dim CvePS As Integer = GvRow.DataKey("CvePS").ToEntero
|
||||||
|
Dim CodigoPS As String = GvRow.DataKey("CodigoPS")
|
||||||
|
|
||||||
|
If Cantidad > 0 Then
|
||||||
|
If Not ValidaAgregarPS(CvePS, CveUnidadMedida, PU, 2, Cantidad, CodigoPS) Then
|
||||||
|
Alert("No hay existencia.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
ChkRequiereTecnico.Checked = ChkRequiereTecnicoModal.Checked
|
ChkRequiereTecnico.Checked = ChkRequiereTecnicoModal.Checked
|
||||||
TxtFechaOS.Text = TxtFechaModal.Text
|
TxtFechaOS.Text = TxtFechaModal.Text
|
||||||
|
|
||||||
@@ -36413,6 +36466,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
If CountPsAgregados > 0 Then
|
If CountPsAgregados > 0 Then
|
||||||
CalculaTotalesVenta()
|
CalculaTotalesVenta()
|
||||||
End If
|
End If
|
||||||
@@ -36480,7 +36534,8 @@ Partial Class Ventas
|
|||||||
If ObjOrdenServicio.AddOrdenesServicios(CveCliente, DdlSubProyectoDatos.SelectedValue.ToEntero, UsuarioActual.Nombre, TxtFechaOS.Text.Replace(",", "").ToDateTime, $"Venta: {LblSerie.Text}-{TxtFolio.Text}", UsuarioActual.CveUsuario, EstatusOrdenServicio,
|
If ObjOrdenServicio.AddOrdenesServicios(CveCliente, DdlSubProyectoDatos.SelectedValue.ToEntero, UsuarioActual.Nombre, TxtFechaOS.Text.Replace(",", "").ToDateTime, $"Venta: {LblSerie.Text}-{TxtFolio.Text}", UsuarioActual.CveUsuario, EstatusOrdenServicio,
|
||||||
UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVentaOS, -1, -1, CveOSTipo, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero,
|
UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVentaOS, -1, -1, CveOSTipo, CveClienteSucursal:=DdlSucursalCliente.SelectedValue.ToEntero,
|
||||||
Direccion:="", Telefono:="", CveModeloAuto:=-1, Año:="", CveMedico:=DdlMedico.SelectedValue.ToEntero,
|
Direccion:="", Telefono:="", CveModeloAuto:=-1, Año:="", CveMedico:=DdlMedico.SelectedValue.ToEntero,
|
||||||
CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero, CveTipoVenta:=RBLTipoVenta.SelectedValue.ToEntero, FechaCita:=TxtFechaOS.Text.Replace(",", "").ToDateTime) Then
|
CveProcedimiento:=DdlProcedimiento.SelectedValue.ToEntero, CveTipoVenta:=RBLTipoVenta.SelectedValue.ToEntero, FechaCita:=TxtFechaOS.Text.Replace(",", "").ToDateTime,
|
||||||
|
Paciente:=TxtPaciente.Text, IdentificadorCliente:=TxtEpisodio.Text) Then
|
||||||
CveOSVentaMedica = ObjOrdenServicio.CveOS
|
CveOSVentaMedica = ObjOrdenServicio.CveOS
|
||||||
Else
|
Else
|
||||||
errorList.Add("Se presento un error al guardar la orden de servicio.")
|
errorList.Add("Se presento un error al guardar la orden de servicio.")
|
||||||
|
|||||||
Reference in New Issue
Block a user