Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -4627,7 +4627,8 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddCuenta(CvePadre As Integer, Codigo As String, Nombre As String, Tipo As String, CtaMayor As Integer, CveMoneda As Integer, Optional DigAgrupador As Integer = -1, Optional CveAgrupadorSAT As Integer = -1, Optional NomIdioma As String = "") As Integer
|
Public Function AddCuenta(CvePadre As Integer, Codigo As String, Nombre As String, Tipo As String, CtaMayor As Integer, CveMoneda As Integer, Optional DigAgrupador As Integer = -1,
|
||||||
|
Optional CveAgrupadorSAT As Integer = -1, Optional NomIdioma As String = "", Optional CveEmpresaParam As Integer = -1) As Integer
|
||||||
Dim Retorno As Integer = 0
|
Dim Retorno As Integer = 0
|
||||||
DataAdapter("PA_Conta_AddCuentas")
|
DataAdapter("PA_Conta_AddCuentas")
|
||||||
|
|
||||||
@@ -4641,6 +4642,7 @@ Public Class ClsContabilidad
|
|||||||
.Add("@DigAgrupador", SqlDbType.Int).Value = DigAgrupador
|
.Add("@DigAgrupador", SqlDbType.Int).Value = DigAgrupador
|
||||||
.Add("@NomIdioma", SqlDbType.VarChar).Value = NomIdioma
|
.Add("@NomIdioma", SqlDbType.VarChar).Value = NomIdioma
|
||||||
.Add("@CveAgrupadorSAT", SqlDbType.Int).Value = CveAgrupadorSAT
|
.Add("@CveAgrupadorSAT", SqlDbType.Int).Value = CveAgrupadorSAT
|
||||||
|
.Add("@CveEmpresaParam", SqlDbType.Int).Value = CveEmpresaParam
|
||||||
'.Add("@CveCuenta", SqlDbType.Int).Value = 0
|
'.Add("@CveCuenta", SqlDbType.Int).Value = 0
|
||||||
'.Add("@Error", SqlDbType.VarChar).Value = ""
|
'.Add("@Error", SqlDbType.VarChar).Value = ""
|
||||||
'.Add("@Error", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
'.Add("@Error", SqlDbType.VarChar).Direction = ParameterDirection.Output
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ Public Class TareasProgramadas : Implements IHttpHandler
|
|||||||
retorno = ""
|
retorno = ""
|
||||||
context.Response.Write(retorno)
|
context.Response.Write(retorno)
|
||||||
Case "EstadosCuenta"
|
Case "EstadosCuenta"
|
||||||
'CargaEstadosCuenta(context, 119, 227736)
|
'CargaEstadosCuenta(context, 119, 227774)
|
||||||
CargaEstadosCuenta(context, -1, -1)
|
CargaEstadosCuenta(context, 119, -1)
|
||||||
End Select
|
End Select
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
ex.GuardaLog(ex.ToString())
|
ex.GuardaLog(ex.ToString())
|
||||||
@@ -341,7 +341,7 @@ Public Class TareasProgramadas : Implements IHttpHandler
|
|||||||
End If
|
End If
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
If DTClientes IsNot Nothing Then
|
If DTClientes IsNot Nothing Then
|
||||||
For Each RowCliente As DataRow In DTClientes.Rows
|
For Each RowCliente As DataRow In DTClientes.Rows
|
||||||
Dim CveCliente As Integer = RowCliente("CveCliente").ToString().ToEntero()
|
Dim CveCliente As Integer = RowCliente("CveCliente").ToString().ToEntero()
|
||||||
Dim Correo As String = RowCliente("CobranzaCorreo").ToString()
|
Dim Correo As String = RowCliente("CobranzaCorreo").ToString()
|
||||||
@@ -435,9 +435,6 @@ Public Class TareasProgramadas : Implements IHttpHandler
|
|||||||
drr("CveMoneda") = drt("CveMoneda")
|
drr("CveMoneda") = drt("CveMoneda")
|
||||||
DtCxCFact.Rows.Add(drr)
|
DtCxCFact.Rows.Add(drr)
|
||||||
Next
|
Next
|
||||||
Else
|
|
||||||
Retorno = False
|
|
||||||
Return Retorno
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DtCxCFact IsNot Nothing Then
|
If DtCxCFact IsNot Nothing Then
|
||||||
@@ -470,6 +467,11 @@ Public Class TareasProgramadas : Implements IHttpHandler
|
|||||||
TotalIng = SaldoIngPesos + SaldoIngDolaresPesos
|
TotalIng = SaldoIngPesos + SaldoIngDolaresPesos
|
||||||
TotalAnt = SaldoAntPesos + SaldoAntDolaresPesos
|
TotalAnt = SaldoAntPesos + SaldoAntDolaresPesos
|
||||||
|
|
||||||
|
If TotalIng.RoundSQL(2) = 0 AndAlso TotalAnt.RoundSQL(2) = 0 Then
|
||||||
|
Retorno = False
|
||||||
|
Return Retorno
|
||||||
|
End If
|
||||||
|
|
||||||
Dim DtCxCFact2 As DataTable = DtCxCFact.FiltraParametros($"TipoDocto IN ({TipoDocto2})")
|
Dim DtCxCFact2 As DataTable = DtCxCFact.FiltraParametros($"TipoDocto IN ({TipoDocto2})")
|
||||||
|
|
||||||
'INGRESOS
|
'INGRESOS
|
||||||
|
|||||||
@@ -110,14 +110,17 @@
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
<div runat="server" id="divLabelTotal" style="width:100%;text-align:right;font-size:1.5em" visible="false">
|
||||||
|
<asp:label runat="server">Importe seleccionado: $</asp:label><asp:label runat="server" ID="lblValorTotal">00.00</asp:label>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
<asp:GridView ID="GvFacturas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveVenta, CvePrePoliza, CveIE, TipoCambio, CveMoneda, CveCliente, IdCtaContableBancos, IdCtaContClientes, Importe" CssClass="table detallerow table-hover" Style="text-align: center; float: right; width: 100%; font-size: medium;" GridLines="None">
|
<asp:GridView ID="GvFacturas" runat="server" AutoGenerateColumns="False" DataKeyNames="CveVenta, CvePrePoliza, CveIE, TipoCambio, CveMoneda, CveCliente, IdCtaContableBancos, IdCtaContClientes, Importe" CssClass="table detallerow table-hover" Style="text-align: center; float: right; width: 100%; font-size: medium;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:CheckBox ID="ChkFactura" runat="server" Checked="false" Enabled="True" />
|
<asp:CheckBox ID="ChkFactura" OnCheckedChanged="ChkFactura_Click" runat="server" Checked="false" Enabled="True" AutoPostBack="True"/>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Factura">
|
<asp:TemplateField HeaderText="Factura">
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ Partial Class Bancos_DepositosCaja
|
|||||||
|
|
||||||
UpGvFacturas.Update()
|
UpGvFacturas.Update()
|
||||||
GvFacturas.DataBind()
|
GvFacturas.DataBind()
|
||||||
|
divLabelTotal.Visible = True
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub BtnDepositar_Click(sender As Object, e As EventArgs) Handles BtnDepositar.Click
|
Private Sub BtnDepositar_Click(sender As Object, e As EventArgs) Handles BtnDepositar.Click
|
||||||
@@ -157,4 +158,20 @@ Partial Class Bancos_DepositosCaja
|
|||||||
ObjContabilidad.Dispose()
|
ObjContabilidad.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ObtenerTotalImporta()
|
||||||
|
|
||||||
|
Dim Total As Double = 0
|
||||||
|
For Each Gvr As GridViewRow In GvFacturas.Rows
|
||||||
|
If Gvr.FCCheckBox("ChkFactura").Checked Then
|
||||||
|
Total += Gvr.DataKey("Importe").ToDouble
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
lblValorTotal.Text = Total.ToString
|
||||||
|
UpGvFacturas.Update()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub ChkFactura_Click(sender As Object, e As EventArgs)
|
||||||
|
ObtenerTotalImporta()
|
||||||
|
End Sub
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
@@ -15,11 +15,14 @@
|
|||||||
<Width>1.67447cm</Width>
|
<Width>1.67447cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>6.57043cm</Width>
|
<Width>2.82586cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>1.94532cm</Width>
|
<Width>1.94532cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
|
<TablixColumn>
|
||||||
|
<Width>2.89687cm</Width>
|
||||||
|
</TablixColumn>
|
||||||
<TablixColumn>
|
<TablixColumn>
|
||||||
<Width>5.49064cm</Width>
|
<Width>5.49064cm</Width>
|
||||||
</TablixColumn>
|
</TablixColumn>
|
||||||
@@ -225,7 +228,7 @@
|
|||||||
</TablixCell>
|
</TablixCell>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="Textbox22">
|
<Textbox Name="Textbox15">
|
||||||
<CanGrow>true</CanGrow>
|
<CanGrow>true</CanGrow>
|
||||||
<KeepTogether>true</KeepTogether>
|
<KeepTogether>true</KeepTogether>
|
||||||
<Paragraphs>
|
<Paragraphs>
|
||||||
@@ -244,6 +247,42 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>Textbox15</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Color>LightGrey</Color>
|
||||||
|
<Style>Solid</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>Silver</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="Textbox22">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>Código Producto/Servicio</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>Bold</FontWeight>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style>
|
||||||
|
<TextAlign>Center</TextAlign>
|
||||||
|
</Style>
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox22</rd:DefaultName>
|
<rd:DefaultName>Textbox22</rd:DefaultName>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
@@ -578,7 +617,6 @@
|
|||||||
<PaddingBottom>2pt</PaddingBottom>
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
</Style>
|
</Style>
|
||||||
</Textbox>
|
</Textbox>
|
||||||
<rd:Selected>true</rd:Selected>
|
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
@@ -616,6 +654,40 @@
|
|||||||
</Textbox>
|
</Textbox>
|
||||||
</CellContents>
|
</CellContents>
|
||||||
</TablixCell>
|
</TablixCell>
|
||||||
|
<TablixCell>
|
||||||
|
<CellContents>
|
||||||
|
<Textbox Name="PS">
|
||||||
|
<CanGrow>true</CanGrow>
|
||||||
|
<KeepTogether>true</KeepTogether>
|
||||||
|
<Paragraphs>
|
||||||
|
<Paragraph>
|
||||||
|
<TextRuns>
|
||||||
|
<TextRun>
|
||||||
|
<Value>=Fields!PS.Value</Value>
|
||||||
|
<Style>
|
||||||
|
<FontSize>8pt</FontSize>
|
||||||
|
<FontWeight>=iif(Fields!CveVenta.Value = "", "Bold", "Normal")</FontWeight>
|
||||||
|
<Color>=iif(Fields!CveVenta.Value = "",IIf(Fields!Gpo.Value = "","White","#67809F"), "Black")</Color>
|
||||||
|
</Style>
|
||||||
|
</TextRun>
|
||||||
|
</TextRuns>
|
||||||
|
<Style />
|
||||||
|
</Paragraph>
|
||||||
|
</Paragraphs>
|
||||||
|
<rd:DefaultName>PS</rd:DefaultName>
|
||||||
|
<Style>
|
||||||
|
<Border>
|
||||||
|
<Style>None</Style>
|
||||||
|
</Border>
|
||||||
|
<BackgroundColor>=iif(Fields!CveVenta.Value = "",IIf(Fields!Gpo.Value = "","#67809F","#cccccc"), "Transparent")</BackgroundColor>
|
||||||
|
<PaddingLeft>2pt</PaddingLeft>
|
||||||
|
<PaddingRight>2pt</PaddingRight>
|
||||||
|
<PaddingTop>2pt</PaddingTop>
|
||||||
|
<PaddingBottom>2pt</PaddingBottom>
|
||||||
|
</Style>
|
||||||
|
</Textbox>
|
||||||
|
</CellContents>
|
||||||
|
</TablixCell>
|
||||||
<TablixCell>
|
<TablixCell>
|
||||||
<CellContents>
|
<CellContents>
|
||||||
<Textbox Name="CodigoPS">
|
<Textbox Name="CodigoPS">
|
||||||
@@ -851,6 +923,7 @@
|
|||||||
<TablixMember />
|
<TablixMember />
|
||||||
<TablixMember />
|
<TablixMember />
|
||||||
<TablixMember />
|
<TablixMember />
|
||||||
|
<TablixMember />
|
||||||
</TablixMembers>
|
</TablixMembers>
|
||||||
</TablixColumnHierarchy>
|
</TablixColumnHierarchy>
|
||||||
<TablixRowHierarchy>
|
<TablixRowHierarchy>
|
||||||
@@ -866,7 +939,7 @@
|
|||||||
<DataSetName>DataSet1</DataSetName>
|
<DataSetName>DataSet1</DataSetName>
|
||||||
<Left>0.06614cm</Left>
|
<Left>0.06614cm</Left>
|
||||||
<Height>0.90467cm</Height>
|
<Height>0.90467cm</Height>
|
||||||
<Width>28.36649cm</Width>
|
<Width>27.51879cm</Width>
|
||||||
<Style>
|
<Style>
|
||||||
<Border>
|
<Border>
|
||||||
<Style>None</Style>
|
<Style>None</Style>
|
||||||
@@ -877,7 +950,7 @@
|
|||||||
<Height>0.59228in</Height>
|
<Height>0.59228in</Height>
|
||||||
<Style />
|
<Style />
|
||||||
</Body>
|
</Body>
|
||||||
<Width>11.21478in</Width>
|
<Width>10.86021in</Width>
|
||||||
<Page>
|
<Page>
|
||||||
<PageHeader>
|
<PageHeader>
|
||||||
<Height>2.91154cm</Height>
|
<Height>2.91154cm</Height>
|
||||||
|
|||||||
@@ -585,7 +585,35 @@ Partial Class General_SaldosIniciales
|
|||||||
If Not dt.Columns(11).ColumnName = "Clave Unidad" Then
|
If Not dt.Columns(11).ColumnName = "Clave Unidad" Then
|
||||||
Alert("El nombre de la diescisieteava columna debe ser 'Clave Unidad'. Favor de corregirlo", TipoMensaje.MsgError)
|
Alert("El nombre de la diescisieteava columna debe ser 'Clave Unidad'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
ElseIf RblFormato.SelectedValue = "9" Then
|
||||||
|
|
||||||
|
If Not dt.Columns(0).ColumnName = "Cuenta" Then
|
||||||
|
Alert("El nombre de la primera columna debe ser 'Cuenta'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(1).ColumnName = "NombreCuenta" Then
|
||||||
|
Alert("El nombre de la segunda columna debe ser 'NombreCuenta'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(2).ColumnName = "TipoCuenta" Then
|
||||||
|
Alert("El nombre de la tercera columna debe ser 'TipoCuenta'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(3).ColumnName = "CuentaPadre" Then
|
||||||
|
Alert("El nombre de la cuarta columna debe ser 'CuentaPadre'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(5).ColumnName = "AgrupadorSAT" Then
|
||||||
|
Alert("El nombre de la quinta columna debe ser 'AgrupadorSAT'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
ElseIf RblFormato.SelectedValue = "12" Then
|
ElseIf RblFormato.SelectedValue = "12" Then
|
||||||
If Not dt.Columns(0).ColumnName = "CodigoPS" Then
|
If Not dt.Columns(0).ColumnName = "CodigoPS" Then
|
||||||
Alert("El nombre de la primera columna debe ser 'CodigoPS'. Favor de corregirlo", TipoMensaje.MsgError)
|
Alert("El nombre de la primera columna debe ser 'CodigoPS'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
@@ -1777,7 +1805,7 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim AgrupadorSAT As String = Row("AgrupadorSAT").ToString
|
Dim AgrupadorSAT As String = Row("AgrupadorSAT").ToString
|
||||||
Dim CveCuentaPadre As Integer = -1
|
Dim CveCuentaPadre As Integer = -1
|
||||||
|
|
||||||
If Not CuentaPadre = "NULL" Then
|
If Not CuentaPadre = "" Then
|
||||||
If ObjConta.GetCuentas(-1, CuentaPadre.Replace("-", ""), -1, UsuarioActual.CveEmpresa) Then
|
If ObjConta.GetCuentas(-1, CuentaPadre.Replace("-", ""), -1, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjConta.DtResultados.Rows.Count > 0 Then
|
If ObjConta.DtResultados.Rows.Count > 0 Then
|
||||||
CveCuentaPadre = ObjConta.DtResultados().FiltroPrimeroValor("Id").ToEntero
|
CveCuentaPadre = ObjConta.DtResultados().FiltroPrimeroValor("Id").ToEntero
|
||||||
@@ -1793,7 +1821,7 @@ Partial Class General_SaldosIniciales
|
|||||||
CveCuentaPadre = -2
|
CveCuentaPadre = -2
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim IdNew = ObjConta.AddCuenta(CveCuentaPadre, Cuenta.Replace("-", ""), NombreCuenta, TipoCuenta, 1, 1)
|
Dim IdNew = ObjConta.AddCuenta(CveCuentaPadre, Cuenta.Replace("-", ""), NombreCuenta, TipoCuenta, 1, 1, CveEmpresaParam:=UsuarioActual.CveEmpresa)
|
||||||
If IdNew > 0 Then
|
If IdNew > 0 Then
|
||||||
ContadorUpdate = ContadorUpdate + 1
|
ContadorUpdate = ContadorUpdate + 1
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -3910,7 +3910,7 @@ Partial Class Clientes
|
|||||||
Gracias por la atención brindada al presente.<br /> Reciba un cordial saludo.<br />
|
Gracias por la atención brindada al presente.<br /> Reciba un cordial saludo.<br />
|
||||||
<br />
|
<br />
|
||||||
<b>ESTE CORREO SE GENERO EN FORMA AUTOMATICA.</b>", TxtNombreComercial.Text, UsuarioActual.Empresa.Empresa)
|
<b>ESTE CORREO SE GENERO EN FORMA AUTOMATICA.</b>", TxtNombreComercial.Text, UsuarioActual.Empresa.Empresa)
|
||||||
Dim Hilo As New System.Threading.Thread(Sub() MandaCorreo2(File, TxtCobranzaCorreo.Text, $"Estado Actual de Cartera {UsuarioActual.Empresa.Empresa}", Cuerpo))
|
Dim Hilo As New System.Threading.Thread(Sub() MandaCorreoEstadoCuenta(File, TxtCobranzaCorreo.Text, $"Estado Actual de Cartera {UsuarioActual.Empresa.Empresa}", Cuerpo, GuardarBitacora:=True))
|
||||||
Hilo.Start()
|
Hilo.Start()
|
||||||
Alert("El correo se envió con éxito", TipoMensaje.MsgInformacion)
|
Alert("El correo se envió con éxito", TipoMensaje.MsgInformacion)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
@@ -3977,7 +3977,7 @@ Partial Class Clientes
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub MandaCorreo2(File As Byte(), Para As String, Asunto As String, Body As String)
|
Private Sub MandaCorreoEstadoCuenta(File As Byte(), Para As String, Asunto As String, Body As String, Optional GuardarBitacora As Boolean = False)
|
||||||
|
|
||||||
Dim a As String = String.Format("{0} -- {1} ---- -->", Asunto, Para)
|
Dim a As String = String.Format("{0} -- {1} ---- -->", Asunto, Para)
|
||||||
'a.GuardaLog()
|
'a.GuardaLog()
|
||||||
@@ -3986,11 +3986,17 @@ Partial Class Clientes
|
|||||||
Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail)
|
Dim LSRutasMail As New List(Of ClsSisMail.ArchivoMail)
|
||||||
LSRutasMail.Add(New ClsSisMail.ArchivoMail With {.ArchivoBinario = File, .NombreArchivo = "EstadoDeCuenta.pdf"})
|
LSRutasMail.Add(New ClsSisMail.ArchivoMail With {.ArchivoBinario = File, .NombreArchivo = "EstadoDeCuenta.pdf"})
|
||||||
|
|
||||||
Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body, Archivos:=LSRutasMail)
|
Dim Envio As Boolean = Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body, Archivos:=LSRutasMail)
|
||||||
|
|
||||||
|
If Envio AndAlso GuardarBitacora Then
|
||||||
|
Using ObjBitacora As New ClsOIEventos
|
||||||
|
ObjBitacora.AddEventoBitacora("Se envió correo con el estado de cuenta del cliente", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCliente:=Me.CveCliente)
|
||||||
|
End Using
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "E N V I O C O R R E O"
|
#Region "E N V I O C O R R E O"
|
||||||
Private Sub EnviaCorreo(Liga As String, LigaActivar As String)
|
Private Sub EnviaCorreo(Liga As String, LigaActivar As String)
|
||||||
|
|
||||||
@@ -5731,7 +5737,8 @@ Partial Class Clientes
|
|||||||
Dim a As String = String.Format("{0} -- {1} ---- -->", Asunto, Para)
|
Dim a As String = String.Format("{0} -- {1} ---- -->", Asunto, Para)
|
||||||
a.GuardaLog()
|
a.GuardaLog()
|
||||||
Dim Mail As New ClsSisMail()
|
Dim Mail As New ClsSisMail()
|
||||||
Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body)
|
Dim Envio As Boolean = Mail.SendMail(ClsPaginas.EmpresaNotificaciones, Para, Asunto, Body)
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Protected Sub BtnCobranzaSMS_Click(sender As Object, e As EventArgs)
|
Protected Sub BtnCobranzaSMS_Click(sender As Object, e As EventArgs)
|
||||||
Dim Telefono = CobranzaTelefono
|
Dim Telefono = CobranzaTelefono
|
||||||
|
|||||||
@@ -6739,11 +6739,11 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
'ENVIAR POLIZA VIRTUAL
|
'ENVIAR POLIZA VIRTUAL
|
||||||
'If ErrorList.Count = 0 Then
|
If ErrorList.Count = 0 Then
|
||||||
' If UsuarioActual.Empresa.Funcionalidad(576) = "1" Then
|
If UsuarioActual.Empresa.Funcionalidad(576) = "1" Then
|
||||||
' GeneraPolizaVentaWS(ObjFactura)
|
GeneraPolizaVentaWS(ObjFactura)
|
||||||
' End If
|
End If
|
||||||
'End If
|
End If
|
||||||
|
|
||||||
If ObjFactura.CveVenta > 0 AndAlso ErrorList.Count = 0 Then
|
If ObjFactura.CveVenta > 0 AndAlso ErrorList.Count = 0 Then
|
||||||
|
|
||||||
@@ -23752,48 +23752,52 @@ Partial Class Ventas
|
|||||||
DtUsados = ObjAcum.DtResultados.Copy()
|
DtUsados = ObjAcum.DtResultados.Copy()
|
||||||
End If
|
End If
|
||||||
ObjAcum.Dispose()
|
ObjAcum.Dispose()
|
||||||
|
Try
|
||||||
|
For Each Row As DataRow In DtUsados.Rows
|
||||||
|
Dim obj As New Modelos.MPolizaVentaWS
|
||||||
|
'DATOS DEL CLIENTE
|
||||||
|
obj.customer_name = ObjFactura.Cliente.Nombre
|
||||||
|
obj.customer_last_name1 = ""
|
||||||
|
obj.customer_last_name2 = ""
|
||||||
|
obj.customer_birthday = Nothing
|
||||||
|
obj.customer_phone = ObjFactura.Cliente.Telefono
|
||||||
|
obj.customer_email = ObjFactura.Cliente.Mail
|
||||||
|
obj.customer_gender = "03" 'OTRO GENERO
|
||||||
|
obj.customer_advertising = False
|
||||||
|
obj.customer_car_brand = "00"
|
||||||
|
obj.customer_car_model = "00"
|
||||||
|
obj.customer_car_year = ObjFactura.Fecha.Year
|
||||||
|
|
||||||
For Each Row As DataRow In DtUsados.Rows
|
'DATOS DE VENTA
|
||||||
Dim obj As New Modelos.MPolizaVentaWS
|
obj.sale_date = ObjFactura.Fecha
|
||||||
'DATOS DEL CLIENTE
|
obj.sale_paidby = "01"
|
||||||
obj.customer_name = ObjFactura.Cliente.Nombre
|
obj.sale_type = "01" 'PISO
|
||||||
obj.customer_last_name1 = ""
|
obj.sale_type_service = "02" 'COMERCIAL
|
||||||
obj.customer_last_name2 = ""
|
obj.sale_total = ObjFactura.Total
|
||||||
obj.customer_birthday = Nothing
|
obj.sale_discount = ObjFactura.Descuento
|
||||||
obj.customer_phone = ObjFactura.Cliente.Telefono
|
obj.sale_id = String.Format("{0}{1}{2}", ObjFactura.Serie, ObjFactura.Folio, ObjFactura.CveVenta)
|
||||||
obj.customer_email = ObjFactura.Cliente.Mail
|
|
||||||
obj.customer_gender = "03" 'OTRO GENERO
|
|
||||||
obj.customer_advertising = False
|
|
||||||
obj.customer_car_brand = "00"
|
|
||||||
obj.customer_car_model = "00"
|
|
||||||
obj.customer_car_year = ObjFactura.Fecha.Year
|
|
||||||
|
|
||||||
'DATOS DE VENTA
|
'DATOS DEL PRODUCTO
|
||||||
obj.sale_date = ObjFactura.Fecha
|
obj.product_code = Row("Code17").ToString()
|
||||||
obj.sale_paidby = "01"
|
obj.product_unique_code = "" 'se indique el código único de la batería.
|
||||||
obj.sale_type = "01" 'PISO
|
obj.product_sale_type = "01 " 'VENTA
|
||||||
obj.sale_type_service = "02" 'COMERCIAL
|
|
||||||
obj.sale_total = ObjFactura.Total
|
|
||||||
obj.sale_discount = ObjFactura.Descuento
|
|
||||||
obj.sale_id = String.Format("{0}{1}{2}", ObjFactura.Serie, ObjFactura.Folio, ObjFactura.CveVenta)
|
|
||||||
|
|
||||||
'DATOS DEL PRODUCTO
|
Dim FechaUsado As DateTime = Row("FechaAjuste").ToString().ToDateTime()
|
||||||
obj.product_code = Row("Code17").ToString()
|
|
||||||
obj.product_unique_code = "" 'se indique el código único de la batería.
|
|
||||||
obj.product_sale_type = "01 " 'VENTA
|
|
||||||
|
|
||||||
Dim FechaUsado As DateTime = Row("FechaAjuste").ToString().ToDateTime()
|
'DATOS DE USADO
|
||||||
|
obj.used_product = True
|
||||||
|
obj.used_brand = Row("IdModelo").ToString() 'MARCAR DEL USADO
|
||||||
|
obj.used_bci = Row("CveBCIUsado").ToString() 'VALOR DEL BCI
|
||||||
|
obj.used_month = FechaUsado.Month
|
||||||
|
obj.used_year = FechaUsado.Year
|
||||||
|
obj.used_sale_date = FechaUsado
|
||||||
|
|
||||||
'DATOS DE USADO
|
EnviarPolizaVentaWS(obj)
|
||||||
obj.used_product = True
|
Next
|
||||||
obj.used_brand = Row("IdModelo").ToString() 'MARCAR DEL USADO
|
Catch ex As Exception
|
||||||
obj.used_bci = Row("CveBCIUsado").ToString() 'VALOR DEL BCI
|
OnError("Ocurrió un error al generar la poliza virtual", ex)
|
||||||
obj.used_month = FechaUsado.Month
|
End Try
|
||||||
obj.used_year = FechaUsado.Year
|
|
||||||
obj.used_sale_date = FechaUsado
|
|
||||||
|
|
||||||
EnviarPolizaVentaWS(obj)
|
|
||||||
Next
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user