Ruta personalizada por Empresa
This commit is contained in:
@@ -697,7 +697,7 @@ Partial Class Compras_eFacturas
|
||||
|
||||
txtFechaF.Text = Now.ToShortDateString 'txtFechaI.Text.ToDate.AddMonths(1).AddDays(-1).ToShortDateString
|
||||
|
||||
Destino = String.Format("{0}Compras\", UsuarioActual.Empresa.Ruta) 'string.format("{0}Empresas\{1}\Compras\", ModExtensiones.DirectorioBaseEmpresas ,UsuarioActual.CveEmpresa & "\Compras\"
|
||||
Destino = String.Format("{0}Compras\", UsuarioActual.Empresa.Ruta)
|
||||
Ejecutable = "C:\Proyectos\wwwSIG\Utilerias\ADSUtilerias.exe"
|
||||
Form.DefaultButton = BtnConsultar.UniqueID
|
||||
|
||||
@@ -1300,7 +1300,7 @@ Partial Class Compras_eFacturas
|
||||
End Sub
|
||||
Protected Sub LnkNoRecibidas_Click(sender As Object, e As EventArgs, Optional ValidaRowCount As Boolean = False) Handles LnkNoRecibias.Click
|
||||
Dim DtNoRecibidas As New DataTable
|
||||
Dim Ruta As String = String.Format("{0}\Empresas\{1}\Compras\NoRecibidas-{1}.xml", ModExtensiones.DirectorioBaseEmpresas, UsuarioActual.CveEmpresa)
|
||||
Dim Ruta As String = String.Format("{0}Compras\NoRecibidas-{1}.xml", UsuarioActual.Empresa.Ruta, UsuarioActual.CveEmpresa)
|
||||
Dim Str As New StringBuilder
|
||||
If IO.File.Exists(Ruta) Then
|
||||
DtNoRecibidas.ReadXml(Ruta)
|
||||
@@ -1428,7 +1428,7 @@ Partial Class Compras_eFacturas
|
||||
|
||||
If filemove <> "" Then
|
||||
'filemove.FilesMove("", String.Format("{0}\Temp\Facturas", UsuarioActual.Empresa.Ruta))
|
||||
filemove.FilesMove("", String.Format("Empresas\{0}\Temp\Facturas", UsuarioActual.CveEmpresa))
|
||||
filemove.FilesMove("", String.Format("{0}Temp\Facturas", UsuarioActual.Empresa.Ruta))
|
||||
'AGREGA XML A LA LISTA
|
||||
If FileExtension.ToUpper = "XML" Or FileExtension.ToUpper = "PDF" Then
|
||||
ListXML.Add(String.Format("{0}Temp\Facturas\{1}", UsuarioActual.Empresa.Ruta, filemove))
|
||||
@@ -1438,7 +1438,7 @@ Partial Class Compras_eFacturas
|
||||
Next
|
||||
|
||||
|
||||
Dim fileEntries As String() = Directory.GetFiles(String.Format("{0}Empresas\{1}\Temp\Facturas", Extensiones.DirectorioBaseEmpresas, UsuarioActual.CveEmpresa))
|
||||
Dim fileEntries As String() = Directory.GetFiles(String.Format("{0}Temp\Facturas", UsuarioActual.Empresa.Ruta))
|
||||
|
||||
Dim ListaDirectoriosTemporales As New List(Of String)
|
||||
Dim ListaComprimidos As New List(Of String)
|
||||
@@ -1749,7 +1749,7 @@ Partial Class Compras_eFacturas
|
||||
DirectoryExistsCreate(String.Format("{0}Compras\{1}", UsuarioActual.Empresa.Ruta, RFC.ToUpper))
|
||||
|
||||
Try
|
||||
File.Move(PathArchivo, String.Format("{0}Empresas\{1}\Compras\{2}\{3}", ModExtensiones.DirectorioBaseEmpresas, UsuarioActual.CveEmpresa, RFC.ToUpper, NombreArchivo))
|
||||
File.Move(PathArchivo, String.Format("{0}Compras\{1}\{2}", UsuarioActual.Empresa.Ruta, RFC.ToUpper, NombreArchivo))
|
||||
Catch ex As Exception
|
||||
Alert("Error")
|
||||
End Try
|
||||
@@ -2787,7 +2787,7 @@ Partial Class Compras_eFacturas
|
||||
XMLNodosPagosModalCount = 0
|
||||
|
||||
Dim XMLDoc As New XmlDocument
|
||||
Dim Archivo As String = String.Format("{0}Empresas\{1}\Compras\{2}\{3}", ModExtensiones.DirectorioBaseEmpresas, UsuarioActual.CveEmpresa, gvRow.DataKey("RFCDe"), gvRow.DataKey("XML"))
|
||||
Dim Archivo As String = String.Format("{0}Compras\{2}\{3}", UsuarioActual.Empresa.Ruta, gvRow.DataKey("RFCDe"), gvRow.DataKey("XML"))
|
||||
If IO.File.Exists(Archivo) Then
|
||||
|
||||
|
||||
@@ -3669,7 +3669,7 @@ Partial Class Compras_eFacturas
|
||||
Dim strRFCde As String = gvrow.DataKey("RFCde")
|
||||
Dim strXml As String
|
||||
Dim strPDF As String
|
||||
Dim dirbase As String = String.Format("{0}{1}{2}{3}{4}\", ModExtensiones.DirectorioBaseEmpresas, "\Empresas\", UsuarioActual.CveEmpresa, "\Compras\", strRFCde)
|
||||
Dim dirbase As String = String.Format("{0}{1}{2}\", UsuarioActual.Empresa.Ruta, "Compras\", strRFCde)
|
||||
If Directory.Exists(dirbase) Then
|
||||
strXml = String.Format("{0}{1}", dirbase, gvrow.DataKey("XML"))
|
||||
strPDF = String.Format("{0}{1}", dirbase, gvrow.DataKey("PDF"))
|
||||
@@ -3704,7 +3704,7 @@ Partial Class Compras_eFacturas
|
||||
Dim gvrow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
Dim strRFCde As String = gvrow.DataKey("RFCde")
|
||||
Dim strPDF As String
|
||||
Dim dirbase As String = String.Format("{0}{1}{2}{3}{4}\", ModExtensiones.DirectorioBaseEmpresas, "\Empresas\", UsuarioActual.CveEmpresa, "\Compras\", strRFCde)
|
||||
Dim dirbase As String = String.Format("{0}{1}{2}\", UsuarioActual.Empresa.Ruta, "Compras\", strRFCde)
|
||||
strPDF = String.Format("{0}{1}", dirbase, gvrow.DataKey("PDF"))
|
||||
If File.Exists(strPDF) Then
|
||||
Dim file As New System.IO.FileInfo(strPDF)
|
||||
@@ -3728,7 +3728,7 @@ Partial Class Compras_eFacturas
|
||||
Dim gvrow As GridViewRow = DirectCast(DirectCast(sender, LinkButton).NamingContainer, GridViewRow)
|
||||
Dim strRFCde As String = gvrow.DataKey("RFCde")
|
||||
Dim strXml As String
|
||||
Dim dirbase As String = String.Format("{0}{1}{2}{3}{4}\", ModExtensiones.DirectorioBaseEmpresas, "\Empresas\", UsuarioActual.CveEmpresa, "\Compras\", strRFCde)
|
||||
Dim dirbase As String = String.Format("{0}{1}{2}\", UsuarioActual.Empresa.Ruta, "Compras\", strRFCde)
|
||||
strXml = String.Format("{0}{1}", dirbase, gvrow.DataKey("XML"))
|
||||
If File.Exists(strXml) Then
|
||||
Dim file As New System.IO.FileInfo(strXml)
|
||||
@@ -3949,7 +3949,7 @@ Partial Class Compras_eFacturas
|
||||
|
||||
|
||||
Dim XMLDoc As New XmlDocument
|
||||
Dim Archivo As String = String.Format("{0}Empresas\{1}\Compras\{2}\{3}", ModExtensiones.DirectorioBaseEmpresas, UsuarioActual.CveEmpresa, gvRow.DataKey("RFCDe"), gvRow.DataKey("XML"))
|
||||
Dim Archivo As String = String.Format("{0}Compras\{1}\{2}", UsuarioActual.Empresa.Ruta, gvRow.DataKey("RFCDe"), gvRow.DataKey("XML"))
|
||||
If IO.File.Exists(Archivo) Then
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user