Ruta personalizada por Empresa
This commit is contained in:
@@ -98,11 +98,11 @@ Partial Class GPS_CatDistribuidoresMaster
|
||||
'Dim CveSucursal = objSucursales.AddSucursal("MATRIZ", "M", 0.16, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, "", "", "", "", "", "", "", "", "", 1)
|
||||
'If CveSucursal < 0 Then HuboError = True
|
||||
End If
|
||||
If Not HuboError Then
|
||||
If Not IO.Directory.Exists(String.Format("{0}\{1}", ModExtensiones.DirectorioBaseEmpresas, objEmpresa.CveEmpresa)) Then
|
||||
IO.Directory.CreateDirectory(String.Format("{0}Empresas\{1}", ModExtensiones.DirectorioBaseEmpresas, objEmpresa.CveEmpresa))
|
||||
End If
|
||||
Alert("El distribuidor se agregó correctamente", TipoMensaje.MsgInformacion)
|
||||
If Not HuboError Then
|
||||
If Not IO.Directory.Exists(String.Format("{0}", UsuarioActual.Empresa.Ruta)) Then
|
||||
IO.Directory.CreateDirectory(String.Format("{0}", UsuarioActual.Empresa.Ruta))
|
||||
End If
|
||||
Alert("El distribuidor se agregó correctamente", TipoMensaje.MsgInformacion)
|
||||
End If
|
||||
ElseIf EsEditar = 1 Then
|
||||
If objEmpresa.UpdateDistribuidorMaster(TxtRFC.Text, TxtEmpresa.Text, TxtTelefono.Text, TxtContacto.Text, TxtMail.Text, UsuarioActual.CveUsuario, chkEstatus.Checked, CveEmpresa) Then
|
||||
|
||||
Reference in New Issue
Block a user