Parametro de Concatenar Directorio en metodo FilesMove de la clase Archivo de DropZone
This commit is contained in:
@@ -766,7 +766,7 @@ Partial Class AF_AF
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("{0}", Archivo.Name), String.Format("Empresas\{0}\AF\Placas", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("{0}", Archivo.Name), String.Format("{0}AF\Placas", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If HdnModalidad.Value = "A" Then
|
If HdnModalidad.Value = "A" Then
|
||||||
@@ -883,7 +883,7 @@ Partial Class AF_AF
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("{0}", Archivo.Name), String.Format("Empresas\{0}\AF\Licencias", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("{0}", Archivo.Name), String.Format("{0}AF\Licencias", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If HdnModalidadLicencia.Value = "A" Then
|
If HdnModalidadLicencia.Value = "A" Then
|
||||||
@@ -1036,7 +1036,7 @@ Partial Class AF_AF
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("{0}", Archivo.Name), String.Format("{0}AF\Polizas", UsuarioActual.Empresa.Ruta))
|
Filename.FilesMove(String.Format("{0}", Archivo.Name), String.Format("{0}AF\Polizas", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If HdnModalidadPoliza.Value = "A" Then
|
If HdnModalidadPoliza.Value = "A" Then
|
||||||
@@ -1929,7 +1929,7 @@ Partial Class AF_AF
|
|||||||
If EsURL2 Then
|
If EsURL2 Then
|
||||||
If objAF.UpdateActivosFijosResguardosURL("-1", $"AFT{CveResguardoPadre}.{FileExtension}", CveResguardoPadre) Then
|
If objAF.UpdateActivosFijosResguardosURL("-1", $"AFT{CveResguardoPadre}.{FileExtension}", CveResguardoPadre) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("AFT{0}", CveResguardoPadre), String.Format("Empresas\{0}\AF\Resguardos", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("AFT{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
HuboError = True
|
HuboError = True
|
||||||
@@ -1937,7 +1937,7 @@ Partial Class AF_AF
|
|||||||
Else
|
Else
|
||||||
If objAF.UpdateActivosFijosResguardosURL($"AFR{CveResguardoPadre}.{FileExtension}", "-1", CveResguardoPadre) Then
|
If objAF.UpdateActivosFijosResguardosURL($"AFR{CveResguardoPadre}.{FileExtension}", "-1", CveResguardoPadre) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("AFR{0}", CveResguardoPadre), String.Format("Empresas\{0}\AF\Resguardos", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("AFR{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
HuboError = True
|
HuboError = True
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ Partial Class AF_ResguardoAF
|
|||||||
If File.Exists(String.Format("{0}\AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension)) Then
|
If File.Exists(String.Format("{0}\AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension)) Then
|
||||||
File.Delete(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension))
|
File.Delete(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension))
|
||||||
End If
|
End If
|
||||||
If filemove.FilesMove(String.Format("AFR{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta)) Then
|
If filemove.FilesMove(String.Format("AFR{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False) Then
|
||||||
HuboError = False
|
HuboError = False
|
||||||
Else
|
Else
|
||||||
HuboError = True
|
HuboError = True
|
||||||
@@ -561,7 +561,7 @@ Partial Class AF_ResguardoAF
|
|||||||
If File.Exists(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension)) Then
|
If File.Exists(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension)) Then
|
||||||
File.Delete(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension))
|
File.Delete(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension))
|
||||||
End If
|
End If
|
||||||
If filemove.FilesMove(String.Format("AFT{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta)) Then
|
If filemove.FilesMove(String.Format("AFT{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False) Then
|
||||||
HuboError = False
|
HuboError = False
|
||||||
Else
|
Else
|
||||||
HuboError = True
|
HuboError = True
|
||||||
@@ -578,7 +578,7 @@ Partial Class AF_ResguardoAF
|
|||||||
If File.Exists(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension)) Then
|
If File.Exists(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension)) Then
|
||||||
File.Delete(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension))
|
File.Delete(String.Format("{0}AF\Resguardos\AFR{1}.{2}", UsuarioActual.Empresa.Ruta, CveResguardoPadre, FileExtension))
|
||||||
End If
|
End If
|
||||||
If filemove.FilesMove(String.Format("AFR{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta)) Then
|
If filemove.FilesMove(String.Format("AFR{0}", CveResguardoPadre), String.Format("{0}AF\Resguardos", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False) Then
|
||||||
HuboError = False
|
HuboError = False
|
||||||
Else
|
Else
|
||||||
HuboError = True
|
HuboError = True
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ Namespace Extensiones
|
|||||||
Return retorno
|
Return retorno
|
||||||
End Function
|
End Function
|
||||||
<Runtime.CompilerServices.Extension()>
|
<Runtime.CompilerServices.Extension()>
|
||||||
Public Function FilesMove(oldName As String, newName As String, newDirectorio As String, Optional Sobreescribir As Boolean = False) As Boolean
|
Public Function FilesMove(oldName As String, newName As String, newDirectorio As String, Optional Sobreescribir As Boolean = False, Optional ConcatenarDirectorioBase As Boolean = True) As Boolean
|
||||||
Dim retorno As Boolean = True
|
Dim retorno As Boolean = True
|
||||||
Dim directorioOld As New StringBuilder
|
Dim directorioOld As New StringBuilder
|
||||||
Dim directorioNew As New StringBuilder
|
Dim directorioNew As New StringBuilder
|
||||||
@@ -531,12 +531,18 @@ Namespace Extensiones
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'SI VA A LA CARPETA DE EMPRESAS TIENE QUE TOMAR LA RUTA DE EMPRESAS
|
'SI VA A LA CARPETA DE EMPRESAS TIENE QUE TOMAR LA RUTA DE EMPRESAS
|
||||||
If newDirectorio.Contains("Empresas") Then
|
If ConcatenarDirectorioBase Then
|
||||||
directorioNew.AppendFormat("{0}{1}\", ModExtensiones.DirectorioBaseEmpresas, newDirectorio)
|
If newDirectorio.Contains("Empresas") Then
|
||||||
|
directorioNew.AppendFormat("{0}{1}\", ModExtensiones.DirectorioBaseEmpresas, newDirectorio)
|
||||||
|
Else
|
||||||
|
directorioNew.AppendFormat("{0}{1}\", AppDomain.CurrentDomain.BaseDirectory, newDirectorio)
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
directorioNew.AppendFormat("{0}{1}\", AppDomain.CurrentDomain.BaseDirectory, newDirectorio)
|
'SI YA TIENE EL DIRECTORIO COMPLETO NO CONCANTENA EL DIRECTORIO
|
||||||
|
directorioNew.AppendFormat("{0}\", newDirectorio)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not Directory.Exists(directorioNew.ToString) Then
|
If Not Directory.Exists(directorioNew.ToString) Then
|
||||||
Directory.CreateDirectory(directorioNew.ToString)
|
Directory.CreateDirectory(directorioNew.ToString)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ Partial Class Bancos_CreditosPagoMultiple
|
|||||||
Alert("El Documento se guardó correctamente.", TipoMensaje.MsgInformacion, "document.location.href=""/Bancos/CreditosPagoMultiple.aspx"";")
|
Alert("El Documento se guardó correctamente.", TipoMensaje.MsgInformacion, "document.location.href=""/Bancos/CreditosPagoMultiple.aspx"";")
|
||||||
|
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CveIE.ToString, String.Format("Empresas\{0}\IE", UsuarioActual.CveEmpresa, UsuarioActual.Empresa.Ruta))
|
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
ObjIE.Commit()
|
ObjIE.Commit()
|
||||||
GeneraChequePDF(CveIE, UsuarioActual.Empresa)
|
GeneraChequePDF(CveIE, UsuarioActual.Empresa)
|
||||||
|
|||||||
@@ -2737,7 +2737,7 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
'GUARDA COMPROBANTE
|
'GUARDA COMPROBANTE
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CveIE.ToString, String.Format("Empresas\{0}\IE", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'GUARDA PREPOLIZAS DETALLE [PRIMERO SON LOS CASOS ESPECIALES, AL FINAL (ELSE) LOS CASOS NORMALES] --REEMPLAZA IFs
|
'GUARDA PREPOLIZAS DETALLE [PRIMERO SON LOS CASOS ESPECIALES, AL FINAL (ELSE) LOS CASOS NORMALES] --REEMPLAZA IFs
|
||||||
@@ -4880,7 +4880,7 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveIE:=CveIE) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveIE:=CveIE) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
|||||||
//GUARDA COMPROBANTE
|
//GUARDA COMPROBANTE
|
||||||
if (!filemove.Equals(""))
|
if (!filemove.Equals(""))
|
||||||
{
|
{
|
||||||
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta));
|
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:false);
|
||||||
}
|
}
|
||||||
decimal Importe;
|
decimal Importe;
|
||||||
decimal ImporteMN;
|
decimal ImporteMN;
|
||||||
@@ -744,7 +744,7 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
|||||||
//GUARDA COMPROBANTE
|
//GUARDA COMPROBANTE
|
||||||
if (!filemove.Equals(""))
|
if (!filemove.Equals(""))
|
||||||
{
|
{
|
||||||
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta));
|
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, false, Importe, Ref, CveConceptoContableBanco, Conc, DateTime.Now, IDCtaContableBancos, -1, CveIE, CveProveedor: DdlProveedorPrestamo.SelectedValue.ToEntero(), ImporteMX: ImporteMN, TipoCambio: TC, TipoCambioPago: TC, CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero()))
|
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, false, Importe, Ref, CveConceptoContableBanco, Conc, DateTime.Now, IDCtaContableBancos, -1, CveIE, CveProveedor: DdlProveedorPrestamo.SelectedValue.ToEntero(), ImporteMX: ImporteMN, TipoCambio: TC, TipoCambioPago: TC, CveSubProyecto: DdlSubProyecto.SelectedValue.ToEntero()))
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
|
|||||||
//GUARDA COMPROBANTE
|
//GUARDA COMPROBANTE
|
||||||
if (!filemove.Equals(""))
|
if (!filemove.Equals(""))
|
||||||
{
|
{
|
||||||
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta));
|
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// SI ES DOLARES
|
// SI ES DOLARES
|
||||||
@@ -699,7 +699,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
|
|||||||
//GUARDA COMPROBANTE
|
//GUARDA COMPROBANTE
|
||||||
if (!filemove.Equals(""))
|
if (!filemove.Equals(""))
|
||||||
{
|
{
|
||||||
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta));
|
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//GUARDA PREPOLIZAS DETALLE
|
//GUARDA PREPOLIZAS DETALLE
|
||||||
|
|||||||
@@ -1021,7 +1021,7 @@ Partial Class Bancos_PolizaCheque
|
|||||||
'If Conta IsNot Nothing Then Conta.Commit()
|
'If Conta IsNot Nothing Then Conta.Commit()
|
||||||
|
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta))
|
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
GeneraChequePDF(CveIE, UsuarioActual.Empresa, IDPoliza)
|
GeneraChequePDF(CveIE, UsuarioActual.Empresa, IDPoliza)
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ using Extensiones;
|
|||||||
using static Extensiones.ModExtensiones;
|
using static Extensiones.ModExtensiones;
|
||||||
public partial class Bancos_PrestamoPersonal : ClsPaginas
|
public partial class Bancos_PrestamoPersonal : ClsPaginas
|
||||||
{
|
{
|
||||||
#region "PROPIEDADES"
|
#region "PROPIEDADES"
|
||||||
private int IDCtaContablePrestamo
|
private int IDCtaContablePrestamo
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -106,7 +106,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
||||||
TxtImporte.Attributes.Add("disabled", "disabled");
|
TxtImporte.Attributes.Add("disabled", "disabled");
|
||||||
|
|
||||||
if(UsuarioActual.Empresa.Funcionalidad(281).ToEntero() == 1)
|
if (UsuarioActual.Empresa.Funcionalidad(281).ToEntero() == 1)
|
||||||
{
|
{
|
||||||
TxtFechaPrestamo.Enabled = false;
|
TxtFechaPrestamo.Enabled = false;
|
||||||
ImgCalendarioPrestamo.Visible = false;
|
ImgCalendarioPrestamo.Visible = false;
|
||||||
@@ -268,14 +268,14 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
if (CvePrePoliza > 0)
|
if (CvePrePoliza > 0)
|
||||||
{
|
{
|
||||||
decimal ImporteBanco = TxtImporte.Text.ToDecimal();
|
decimal ImporteBanco = TxtImporte.Text.ToDecimal();
|
||||||
decimal ImporteMNBanco= ImporteBanco;
|
decimal ImporteMNBanco = ImporteBanco;
|
||||||
decimal ImporteComplementaria = 0;
|
decimal ImporteComplementaria = 0;
|
||||||
decimal TC = TxtTCPago.Text.ToDecimal();
|
decimal TC = TxtTCPago.Text.ToDecimal();
|
||||||
string Conc = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
string Conc = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
||||||
string Ref = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
string Ref = TxtObservaciones.Text == "" ? TxtFolio.Text : TxtObservaciones.Text;
|
||||||
|
|
||||||
CveIE = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero(), DdlTipoTransaccion.SelectedValue.ToEntero(), TxtFechaDocumento.Text.Trim().ToDate(), TxtFolio.Text.Trim(), DdlFuncionarioEmpleadoPago.SelectedItem.Text, ImporteBanco.ToString().ToDouble(), CveMoneda,
|
CveIE = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero(), DdlTipoTransaccion.SelectedValue.ToEntero(), TxtFechaDocumento.Text.Trim().ToDate(), TxtFolio.Text.Trim(), DdlFuncionarioEmpleadoPago.SelectedItem.Text, ImporteBanco.ToString().ToDouble(), CveMoneda,
|
||||||
TC.ToString().ToDouble() , TxtObservaciones.Text.Trim(), "", ChkAbonoCuenta.Checked, false, -1, CvePrePoliza, Comprobante, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
TC.ToString().ToDouble(), TxtObservaciones.Text.Trim(), "", ChkAbonoCuenta.Checked, false, -1, CvePrePoliza, Comprobante, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
|
||||||
if (CveMoneda != 1)
|
if (CveMoneda != 1)
|
||||||
{
|
{
|
||||||
@@ -296,7 +296,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
//GUARDA COMPROBANTE
|
//GUARDA COMPROBANTE
|
||||||
if (!filemove.Equals(""))
|
if (!filemove.Equals(""))
|
||||||
{
|
{
|
||||||
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta));
|
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase: false);
|
||||||
}
|
}
|
||||||
decimal Importe;
|
decimal Importe;
|
||||||
decimal ImporteMN;
|
decimal ImporteMN;
|
||||||
@@ -377,7 +377,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") )
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
if (IDCtaContablePrestamo > 0 && IDCtaContableBancos > 0)
|
if (IDCtaContablePrestamo > 0 && IDCtaContableBancos > 0)
|
||||||
{
|
{
|
||||||
@@ -473,8 +473,8 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
{
|
{
|
||||||
tCveMoneda = dr["CveMoneda"].ToString().ToEntero();
|
tCveMoneda = dr["CveMoneda"].ToString().ToEntero();
|
||||||
|
|
||||||
IDCtaContableBancosPrestamo = dr["IdCtaContable"].ToString().ToEntero();
|
IDCtaContableBancosPrestamo = dr["IdCtaContable"].ToString().ToEntero();
|
||||||
IDCtaContableBancosPrestamoComplementario = dr["IdCtaContableComplementaria"].ToString().ToEntero();
|
IDCtaContableBancosPrestamoComplementario = dr["IdCtaContableComplementaria"].ToString().ToEntero();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -500,7 +500,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void AsignaCuentaPersonal( int CvePersonal, int tCveMoneda)
|
private void AsignaCuentaPersonal(int CvePersonal, int tCveMoneda)
|
||||||
{
|
{
|
||||||
IDCtaContablePrestamo = 0;
|
IDCtaContablePrestamo = 0;
|
||||||
|
|
||||||
@@ -508,7 +508,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
|
|
||||||
if (CvePersonal > 0)
|
if (CvePersonal > 0)
|
||||||
{
|
{
|
||||||
if (ObjRH.GetPersonal(CvePersonal,UsuarioActual.CveEmpresa))
|
if (ObjRH.GetPersonal(CvePersonal, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
IDCtaContablePrestamo = ObjRH.IdCtaContPrestamos;
|
IDCtaContablePrestamo = ObjRH.IdCtaContPrestamos;
|
||||||
|
|
||||||
@@ -550,7 +550,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
AsignaCuentaPersonal(DdlFuncionarioEmpleadoPrestamo.SelectedValue.ToEntero(), CveMoneda);
|
AsignaCuentaPersonal(DdlFuncionarioEmpleadoPrestamo.SelectedValue.ToEntero(), CveMoneda);
|
||||||
|
|
||||||
// DATOS PREPOLIZA
|
// DATOS PREPOLIZA
|
||||||
if (DdlTipoTransanccionPrestamo.SelectedValue == "1" && UsuarioActual.CveEmpresa != 119 ) FolioFijo = TxtFolioPrestamo.Text.ToEntero();
|
if (DdlTipoTransanccionPrestamo.SelectedValue == "1" && UsuarioActual.CveEmpresa != 119) FolioFijo = TxtFolioPrestamo.Text.ToEntero();
|
||||||
|
|
||||||
CvePrePoliza = ObjMov.AddPrePolizas("Bancos/PRESTAMO PERSONAL", CvePlantillaPoliza, TxtImportePrestamo.Text.Trim().ToDouble(), TxtImportePrestamo.Text.Trim().ToDouble(), CveMoneda, TxtFechaPrestamo.Text.ToDate(), DdlFuncionarioEmpleadoPrestamo.SelectedItem.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FolioFijo: FolioFijo, ReglaFolioPoliza: ObjComp.ObtenerReglaFolio(DdlTipoTransaccion.SelectedValue, null, UsuarioActual.CveEmpresa));
|
CvePrePoliza = ObjMov.AddPrePolizas("Bancos/PRESTAMO PERSONAL", CvePlantillaPoliza, TxtImportePrestamo.Text.Trim().ToDouble(), TxtImportePrestamo.Text.Trim().ToDouble(), CveMoneda, TxtFechaPrestamo.Text.ToDate(), DdlFuncionarioEmpleadoPrestamo.SelectedItem.Text, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FolioFijo: FolioFijo, ReglaFolioPoliza: ObjComp.ObtenerReglaFolio(DdlTipoTransaccion.SelectedValue, null, UsuarioActual.CveEmpresa));
|
||||||
|
|
||||||
@@ -568,7 +568,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
|
|
||||||
if (CveMoneda != 1)
|
if (CveMoneda != 1)
|
||||||
{
|
{
|
||||||
if (UsuarioActual.CveEmpresa.Contiene (1, 119)) { UsaComplementaria = true; }
|
if (UsuarioActual.CveEmpresa.Contiene(1, 119)) { UsaComplementaria = true; }
|
||||||
|
|
||||||
if (UsaComplementaria)
|
if (UsaComplementaria)
|
||||||
{
|
{
|
||||||
@@ -590,10 +590,10 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
//GUARDA COMPROBANTE
|
//GUARDA COMPROBANTE
|
||||||
if (!filemove.Equals(""))
|
if (!filemove.Equals(""))
|
||||||
{
|
{
|
||||||
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta));
|
filemove.FilesMove(CveIE.ToString(), string.Format(@"{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, true, Importe, Ref, CveConceptoContableBanco, Conc, DateTime.Now, IDCtaContableBancosPrestamo, -1, CveIE, CvePersonal: DdlFuncionarioEmpleadoPrestamo.SelectedValue.ToEntero(), ImporteMX: ImporteMN, TipoCambio: TC, TipoCambioPago:TC))
|
if (!ObjMov.AddPrePolizasDetalle(CvePrePoliza, true, Importe, Ref, CveConceptoContableBanco, Conc, DateTime.Now, IDCtaContableBancosPrestamo, -1, CveIE, CvePersonal: DdlFuncionarioEmpleadoPrestamo.SelectedValue.ToEntero(), ImporteMX: ImporteMN, TipoCambio: TC, TipoCambioPago: TC))
|
||||||
{
|
{
|
||||||
MsgError = "No se pudo insertar concepto de bancos";
|
MsgError = "No se pudo insertar concepto de bancos";
|
||||||
}
|
}
|
||||||
@@ -637,7 +637,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") )
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
if (IDCtaContablePrestamo > 0 && IDCtaContableBancosPrestamo > 0)
|
if (IDCtaContablePrestamo > 0 && IDCtaContableBancosPrestamo > 0)
|
||||||
{
|
{
|
||||||
@@ -732,7 +732,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
if (DdlFuncionarioEmpleado.SelectedValue.ToEntero() > 0) CvePersonal = DdlFuncionarioEmpleado.SelectedValue.ToEntero();
|
if (DdlFuncionarioEmpleado.SelectedValue.ToEntero() > 0) CvePersonal = DdlFuncionarioEmpleado.SelectedValue.ToEntero();
|
||||||
|
|
||||||
ClsBancos bancos = new ClsBancos();
|
ClsBancos bancos = new ClsBancos();
|
||||||
if(bancos.GetPersonalPrestamoAuxiliar(CvePersonal, FechaI, FechaF, UsuarioActual.CveEmpresa))
|
if (bancos.GetPersonalPrestamoAuxiliar(CvePersonal, FechaI, FechaF, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
GvAuxiliar.DataSource = bancos.DtResultados;
|
GvAuxiliar.DataSource = bancos.DtResultados;
|
||||||
|
|
||||||
|
|||||||
@@ -888,7 +888,7 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
|
|
||||||
'guardo el archivo
|
'guardo el archivo
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CveIE.ToString, String.Format("{0}\IE", UsuarioActual.Empresa.Ruta))
|
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Anexo.Text = ""
|
Anexo.Text = ""
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ Partial Class Bancos_Transferencias
|
|||||||
If (CveIE > 0 AndAlso CveIEDestino > 0) Then
|
If (CveIE > 0 AndAlso CveIEDestino > 0) Then
|
||||||
|
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CveIE.ToString, String.Format("Empresas\{0}\IE", UsuarioActual.CveEmpresa, UsuarioActual.Empresa.Ruta))
|
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'inserto los movimientos de la conta para abonar al saldo
|
'inserto los movimientos de la conta para abonar al saldo
|
||||||
|
|||||||
@@ -1059,7 +1059,7 @@ public partial class CRM_Acercamiento : ClsPaginas
|
|||||||
if (ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim(), string.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoProcesoCRM: CveTipoProceso, CveAcercamientoCRM: CveAcercamiento, CveEtapaProcesoCRM: CveEtapa))
|
if (ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim(), string.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveTipoProcesoCRM: CveTipoProceso, CveAcercamientoCRM: CveAcercamiento, CveEtapaProcesoCRM: CveEtapa))
|
||||||
{
|
{
|
||||||
if (filemove != "")
|
if (filemove != "")
|
||||||
filemove.FilesMove(string.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), string.Format(@"Empresas\{0}\OI", UsuarioActual.CveEmpresa));
|
filemove.FilesMove(string.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), string.Format(@"{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:false);
|
||||||
|
|
||||||
|
|
||||||
TxtEventoDescripcion.Text = "";
|
TxtEventoDescripcion.Text = "";
|
||||||
|
|||||||
@@ -1068,7 +1068,7 @@ public partial class CRM_EmpresaCRM : ClsPaginas
|
|||||||
if (ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim(), string.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveEmpresaCRM: CveEmpresaCRM))
|
if (ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim(), string.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveEmpresaCRM: CveEmpresaCRM))
|
||||||
{
|
{
|
||||||
if (filemove != "")
|
if (filemove != "")
|
||||||
filemove.FilesMove(string.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), string.Format(@"Empresas\{0}\OI", UsuarioActual.CveEmpresa));
|
filemove.FilesMove(string.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), string.Format(@"{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:false);
|
||||||
|
|
||||||
|
|
||||||
TxtEventoDescripcion.Text = "";
|
TxtEventoDescripcion.Text = "";
|
||||||
|
|||||||
@@ -1630,7 +1630,7 @@ Partial Class Compras_Compras
|
|||||||
Dim dr As DataRow = ObjeFacturas.DtResultados.Rows(0) ' no toma la cero, porque es el totalizador
|
Dim dr As DataRow = ObjeFacturas.DtResultados.Rows(0) ' no toma la cero, porque es el totalizador
|
||||||
|
|
||||||
Dim XMLDoc As New XmlDocument
|
Dim XMLDoc As New XmlDocument
|
||||||
Dim Archivo As String = String.Format("{0}Compras\{2}\{3}", UsuarioActual.Empresa.Ruta, dr("RFCDe"), dr("XML"))
|
Dim Archivo As String = String.Format("{0}Compras\{1}\{2}", UsuarioActual.Empresa.Ruta, dr("RFCDe"), dr("XML"))
|
||||||
If IO.File.Exists(Archivo) Then
|
If IO.File.Exists(Archivo) Then
|
||||||
|
|
||||||
Dim Validada As Boolean = True
|
Dim Validada As Boolean = True
|
||||||
@@ -13585,7 +13585,7 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=CveCompra) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCompra:=CveCompra) Then
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -2699,7 +2699,7 @@ Partial Class Compras_Proveedores
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveProveedor:=CveProveedor) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveProveedor:=CveProveedor) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -1428,7 +1428,8 @@ Partial Class Compras_eFacturas
|
|||||||
|
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
'filemove.FilesMove("", String.Format("{0}\Temp\Facturas", UsuarioActual.Empresa.Ruta))
|
'filemove.FilesMove("", String.Format("{0}\Temp\Facturas", UsuarioActual.Empresa.Ruta))
|
||||||
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), ConcatenarDirectorioBase:=False)
|
||||||
'AGREGA XML A LA LISTA
|
'AGREGA XML A LA LISTA
|
||||||
If FileExtension.ToUpper = "XML" Or FileExtension.ToUpper = "PDF" Then
|
If FileExtension.ToUpper = "XML" Or FileExtension.ToUpper = "PDF" Then
|
||||||
ListXML.Add(String.Format("{0}Temp\Facturas\{1}", UsuarioActual.Empresa.Ruta, filemove))
|
ListXML.Add(String.Format("{0}Temp\Facturas\{1}", UsuarioActual.Empresa.Ruta, filemove))
|
||||||
@@ -1454,7 +1455,7 @@ Partial Class Compras_eFacturas
|
|||||||
ListaComprimidos.Add(filePath)
|
ListaComprimidos.Add(filePath)
|
||||||
'CREO DIRECTORIO ALEATORIO
|
'CREO DIRECTORIO ALEATORIO
|
||||||
Dim Aleatorio As New Random
|
Dim Aleatorio As New Random
|
||||||
Dim TempDirectorio As String = String.Format("{0}\{1}\{2}{3}", UsuarioActual.Empresa.Ruta, "Temp\Facturas", Date.Now.Ticks, Aleatorio.Next(100, 999))
|
Dim TempDirectorio As String = String.Format("{0}{1}\{2}{3}", UsuarioActual.Empresa.Ruta, "Temp\Facturas", Date.Now.Ticks, Aleatorio.Next(100, 999))
|
||||||
Directory.CreateDirectory(TempDirectorio)
|
Directory.CreateDirectory(TempDirectorio)
|
||||||
ListaDirectoriosTemporales.Add(TempDirectorio)
|
ListaDirectoriosTemporales.Add(TempDirectorio)
|
||||||
'AGREGA DIRECTORIO A LA LISTA
|
'AGREGA DIRECTORIO A LA LISTA
|
||||||
|
|||||||
@@ -3248,7 +3248,7 @@ Partial Class Contratos_Default
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveContrato:=CveContrato) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveContrato:=CveContrato) Then
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
cargarBitacora()
|
cargarBitacora()
|
||||||
|
|||||||
@@ -1462,7 +1462,7 @@ Partial Class Contratos_Default
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveContrato:=CveContrato) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveContrato:=CveContrato) Then
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
cargarBitacora()
|
cargarBitacora()
|
||||||
|
|||||||
@@ -361,10 +361,10 @@ Partial Class Contratos_ContratoAvance
|
|||||||
Alert("No se logro guardar el Presupuesto favor de intentarlo mas tarde o comuniquese con soporte", TipoMensaje.MsgAdvertencia)
|
Alert("No se logro guardar el Presupuesto favor de intentarlo mas tarde o comuniquese con soporte", TipoMensaje.MsgAdvertencia)
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Dim urlsave As String = String.Format("Empresas\{0}\Contrato\{1}\Anexos", UsuarioActual.CveEmpresa, CveContrato)
|
Dim urlsave As String = String.Format("{0}Contrato\{1}\Anexos", UsuarioActual.Empresa.Ruta, CveContrato)
|
||||||
|
|
||||||
For Each fileItem As Archivo In guardarArchivos
|
For Each fileItem As Archivo In guardarArchivos
|
||||||
fileItem.filename.FilesMove(fileItem.filename.Replace($".{fileItem.Extension}", ""), urlsave)
|
fileItem.filename.FilesMove(fileItem.filename.Replace($".{fileItem.Extension}", ""), urlsave, ConcatenarDirectorioBase:=False)
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
@@ -426,9 +426,9 @@ Partial Class Contratos_ContratoAvance
|
|||||||
Alert("No se logro guardar el Presupuesto favor de intentarlo mas tarde o comuniquese con soporte", TipoMensaje.MsgAdvertencia)
|
Alert("No se logro guardar el Presupuesto favor de intentarlo mas tarde o comuniquese con soporte", TipoMensaje.MsgAdvertencia)
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Dim urlsave As String = String.Format("Empresas\{0}\Contrato\{1}\Anexos", UsuarioActual.CveEmpresa, CveContrato)
|
Dim urlsave As String = String.Format("{0}Contrato\{1}\Anexos", UsuarioActual.Empresa.Ruta, CveContrato)
|
||||||
For Each fileItem As Archivo In guardarArchivos
|
For Each fileItem As Archivo In guardarArchivos
|
||||||
fileItem.filename.FilesMove(fileItem.filename.Replace($".{fileItem.Extension}", ""), urlsave)
|
fileItem.filename.FilesMove(fileItem.filename.Replace($".{fileItem.Extension}", ""), urlsave, ConcatenarDirectorioBase:=False)
|
||||||
Next
|
Next
|
||||||
ObjContratos.Commit()
|
ObjContratos.Commit()
|
||||||
|
|
||||||
|
|||||||
@@ -3203,7 +3203,7 @@ Partial Class Contratos_ContratoObra
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveContrato:=CveContrato) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveContrato:=CveContrato) Then
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
cargarBitacora()
|
cargarBitacora()
|
||||||
|
|||||||
@@ -3000,7 +3000,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}{1}", UsuarioActual.CveUsuario, Now.ToString("HH-mm")), String.Format("Empresas\{0}\OI\Temp", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}{1}", UsuarioActual.CveUsuario, Now.ToString("HH-mm")), String.Format("{0}OI\Temp", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -3083,7 +3083,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
If ObjEventoBitacora.AddEventoBitacora(descripcion, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveMovimientoAlmacen:=CveMovimiento) Then
|
If ObjEventoBitacora.AddEventoBitacora(descripcion, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveMovimientoAlmacen:=CveMovimiento) Then
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvBitacora.DataSource = ObjEventoBitacora.DtResultados
|
GvBitacora.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -4284,7 +4284,7 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}{1}", UsuarioActual.CveUsuario, Now.ToString("HH-mm")), String.Format("Empresas\{0}\OI\Temp", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}{1}", UsuarioActual.CveUsuario, Now.ToString("HH-mm")), String.Format("{0}OI\Temp", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1707,7 +1707,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}{1}", UsuarioActual.CveUsuario, Now.ToString("HH-mm")), String.Format("Empresas\{0}\OI\Temp", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}{1}", UsuarioActual.CveUsuario, Now.ToString("HH-mm")), String.Format("{0}OI\Temp", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
@@ -1790,7 +1790,7 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
If ObjEventoBitacora.AddEventoBitacora(descripcion, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveMovimientoAlmacen:=CveMovimiento) Then
|
If ObjEventoBitacora.AddEventoBitacora(descripcion, String.Format("{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveMovimientoAlmacen:=CveMovimiento) Then
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvBitacora.DataSource = ObjEventoBitacora.DtResultados
|
GvBitacora.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ Partial Class PopOCCotizacionesDetalle
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(objCotizacion.CveCotizacion.ToString(), String.Format("{0}Cotizaciones", UsuarioActual.Empresa.Ruta))
|
Filename.FilesMove(objCotizacion.CveCotizacion.ToString(), String.Format("{0}Cotizaciones", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
For Each dr As GridViewRow In GvDC.Rows
|
For Each dr As GridViewRow In GvDC.Rows
|
||||||
@@ -225,7 +225,7 @@ Partial Class PopOCCotizacionesDetalle
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(CveCotizacion.ToString(), String.Format("{0}Cotizaciones", UsuarioActual.Empresa.Ruta))
|
Filename.FilesMove(CveCotizacion.ToString(), String.Format("{0}Cotizaciones", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
For Each dr As GridViewRow In GvDC.Rows
|
For Each dr As GridViewRow In GvDC.Rows
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ Partial Class OI_Normatividad
|
|||||||
If File.Exists(ruta) Then
|
If File.Exists(ruta) Then
|
||||||
File.Delete(ruta)
|
File.Delete(ruta)
|
||||||
End If
|
End If
|
||||||
filemove.FilesMove(String.Format("OI{0}", IDSelected.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", IDSelected.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim customerRow As Data.DataRow
|
Dim customerRow As Data.DataRow
|
||||||
@@ -205,7 +205,7 @@ Partial Class OI_Normatividad
|
|||||||
Idnew = row("CveEvento").ToString().ToEntero
|
Idnew = row("CveEvento").ToString().ToEntero
|
||||||
|
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", Idnew.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", Idnew.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
ArbolCuentas.DataSource = DtDatos
|
ArbolCuentas.DataSource = DtDatos
|
||||||
|
|||||||
@@ -1329,7 +1329,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OS{0}-{1}", UsuarioActual.CveUsuario, Consecutivo), String.Format("Empresas\{0}\OS\Temp", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OS{0}-{1}", UsuarioActual.CveUsuario, Consecutivo), String.Format("{0}OS\Temp", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
AddPS(Consecutivo, -1, DdlPSDetalle.SelectedValue.ToEntero, DdlPSDetalle.SelectedItem.Text, TxtCantidad.Text.ToEntero, TxtObservacionesServicioDetalle.Text, HdnEspecificaciones.Value.ToString, LtlPSEspecificaciones.Text, "",
|
AddPS(Consecutivo, -1, DdlPSDetalle.SelectedValue.ToEntero, DdlPSDetalle.SelectedItem.Text, TxtCantidad.Text.ToEntero, TxtObservacionesServicioDetalle.Text, HdnEspecificaciones.Value.ToString, LtlPSEspecificaciones.Text, "",
|
||||||
@@ -1476,7 +1476,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CveOS, -1, -1, -1, -1) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, -1, CveOS, -1, -1, -1, -1) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ Partial Class Prospectos_Prospectos
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), -1, -1, CveProspecto, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), -1, -1, CveProspecto, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2817,7 +2817,7 @@ Partial Class RH_Personal
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CvePersonal:=CvePersonal) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
||||||
@@ -5361,7 +5361,7 @@ Partial Class RH_Personal
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CvePersonal.ToString(), String.Format("Empresas\{0}\RH\Personal\", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(CvePersonal.ToString(), String.Format("{0}RH\Personal\", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
ViewState("Archivo") = String.Format("{0}.{1}", CvePersonal.ToString(), FileExtension)
|
ViewState("Archivo") = String.Format("{0}.{1}", CvePersonal.ToString(), FileExtension)
|
||||||
Next
|
Next
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ Partial Class Prospectos_Prospectos
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), -1, -1, CveProspecto, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), -1, -1, CveProspecto, -1, -1, -1, -1, -1, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3678,7 +3678,7 @@ Partial Class Clientes
|
|||||||
|
|
||||||
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, CveCliente, -1, -1, -1, -1, -1) Then
|
If ObjEventoBitacora.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, -1, -1, -1, CveCliente, -1, -1, -1, -1, -1) Then
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
filemove.FilesMove(String.Format("OI{0}", ObjEventoBitacora.CveEvento.ToString()), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
GvEB.DataSource = ObjEventoBitacora.DtResultados
|
||||||
|
|||||||
@@ -776,7 +776,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
|
|
||||||
'Guardar archivo
|
'Guardar archivo
|
||||||
If filemove <> "" Then
|
If filemove <> "" Then
|
||||||
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta))
|
filemove.FilesMove(CveIE.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19771,7 +19771,7 @@ Partial Class Ventas
|
|||||||
Dim ObjEventos As New ClsOIEventos()
|
Dim ObjEventos As New ClsOIEventos()
|
||||||
If ObjEventos.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVenta) Then
|
If ObjEventos.AddEventoBitacora(TxtEventoDescripcion.Text.Trim, String.Format(".{0}", FileExtension), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveVenta:=CveVenta) Then
|
||||||
If Filename <> "" Then
|
If Filename <> "" Then
|
||||||
Filename.FilesMove(String.Format("OI{0}", ObjEventos.CveEvento.ToString()), String.Format("Empresas\{0}\OI", UsuarioActual.CveEmpresa))
|
Filename.FilesMove(String.Format("OI{0}", ObjEventos.CveEvento.ToString()), String.Format("{0}OI", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjEventos.Dispose()
|
ObjEventos.Dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user