Compilacion correciones
This commit is contained in:
@@ -55,7 +55,7 @@ Partial Class OI_Circular
|
||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||
params.Add(New ReportParameter("LogoPath", If(Imagen.Exists, $"file://{Imagen.FullName}", "")))
|
||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Usuario))
|
||||
params.Add(New ReportParameter("FechaImpresion", Today))
|
||||
params.Add(New ReportParameter("FechaImpresion", Now.ToString("dd/MM/yyyy")))
|
||||
params.Add(New ReportParameter("Filtros", String.Format("Fecha Inicial: {0} Fecha Final: {1}", TxtFechaI.Text, TxtFechaF.Text)))
|
||||
|
||||
ImprimirPDF("Empresas/Grales/Formatos/Circulares.rdlc", DtDatos, params, "Circulares", "PDF", RDSName:="DataSet1")
|
||||
|
||||
@@ -55,15 +55,15 @@ Partial Class OI_CircularDetalle
|
||||
If ObjOI.GetCircular(UsuarioActual.CveEmpresa, CveCircular) Then
|
||||
Dim Circular As DataRow = ObjOI.DtResultados(0)
|
||||
|
||||
TxtAsunto.Text = Circular.Item("Asunto")
|
||||
TxtCorreo.Value = Circular.Item("CorreosInternos")
|
||||
TxtCorreoAdicional.Value = Circular.Item("CorreosExternos")
|
||||
TxtCircular.Text = Circular.Item("Circular")
|
||||
TxtAsunto.Text = Circular.Item("Asunto").ToString
|
||||
TxtCorreo.Value = Circular.Item("CorreosInternos").ToString
|
||||
TxtCorreoAdicional.Value = Circular.Item("CorreosExternos").ToString
|
||||
TxtCircular.Text = Circular.Item("Circular").ToString
|
||||
|
||||
If Circular.Item("ArchivoAdjunto") <> "" Then
|
||||
If Circular.Item("ArchivoAdjunto").ToString <> "" Then
|
||||
archivosDiv.Visible = True
|
||||
HkArchivo.NavigateUrl = $"~/Empresas/{UsuarioActual.CveEmpresa}/Formatos/{Circular.Item("ArchivoAdjunto")}"
|
||||
HkArchivo.Text = Circular.Item("ArchivoAdjunto")
|
||||
HkArchivo.Text = Circular.Item("ArchivoAdjunto").ToString
|
||||
End If
|
||||
|
||||
UpCliente.Update()
|
||||
@@ -84,7 +84,7 @@ Partial Class OI_CircularDetalle
|
||||
Dim ObjOI As New ClsOIEventos
|
||||
If CveCircular > 0 Then
|
||||
|
||||
Dim AdjuntoValidate As String = NombreArchivo().Split("-")(1)
|
||||
Dim AdjuntoValidate As String = NombreArchivo().Split("-"c)(1)
|
||||
|
||||
If ObjOI.UpdateCircular(CveCircular, TxtAsunto.Text, TxtCircular.Text, TxtCorreo.Value, TxtCorreoAdicional.Value, AdjuntoValidate) Then
|
||||
GuardarArchivo(CveCircular)
|
||||
@@ -93,7 +93,7 @@ Partial Class OI_CircularDetalle
|
||||
Else
|
||||
Dim CorreoExtra As String = If(TxtCorreoAdicional.Value = "", "-1", TxtCorreoAdicional.Value)
|
||||
|
||||
Dim AdjuntoValidate As String = NombreArchivo().Split("-")(1)
|
||||
Dim AdjuntoValidate As String = NombreArchivo().Split("-"c)(1)
|
||||
Dim CircularInsertado As Integer = ObjOI.AddCircular(TxtAsunto.Text, TxtCircular.Text, TxtCorreo.Value, Today.ToString, UsuarioActual.CveUsuario,
|
||||
UsuarioActual.CveEmpresa, CorreoExtra, AdjuntoValidate)
|
||||
If CircularInsertado > 0 Then
|
||||
@@ -118,8 +118,8 @@ Partial Class OI_CircularDetalle
|
||||
End Sub
|
||||
|
||||
Private Sub LimpiarModal()
|
||||
DdlRolesFiltro.SelectedValue = -1
|
||||
DdlSucursales.SelectedValue = -1
|
||||
DdlRolesFiltro.SelectedValueExist(-1)
|
||||
DdlSucursales.SelectedValueExist(-1)
|
||||
GvUsuarios.DataSource = Nothing
|
||||
GvUsuarios.DataBind()
|
||||
UpUsuarios.Update()
|
||||
@@ -222,7 +222,7 @@ Partial Class OI_CircularDetalle
|
||||
|
||||
Protected Sub LnkMandarCorreo_Click() Handles LnkMandarCorreo.Click
|
||||
Dim correos() As String
|
||||
correos = TxtCorreo.Value.Split(Environment.NewLine)
|
||||
correos = TxtCorreo.Value.Split(New String() {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
|
||||
Dim ArchivoBytes As Byte() = ArchivoBytesArrya(HkArchivo.Text)
|
||||
|
||||
Dim Contador As Integer = 0
|
||||
@@ -263,9 +263,9 @@ Partial Class OI_CircularDetalle
|
||||
Dim ArchivoEnviar As String = String.Format("{0}Formatos\{1}", UsuarioActual.Empresa.Ruta, ArchivoNombre)
|
||||
If File.Exists(ArchivoEnviar) Then
|
||||
Dim fs As System.IO.FileStream = System.IO.File.Open(ArchivoEnviar, IO.FileMode.Open, IO.FileAccess.Read)
|
||||
Dim buff(fs.Length) As Byte
|
||||
Dim buff(fs.Length.ToEntero) As Byte
|
||||
If fs.Length > 0 Then
|
||||
fs.Read(buff, 0, fs.Length - 1)
|
||||
fs.Read(buff, 0, fs.Length.ToEntero - 1)
|
||||
fs.Close()
|
||||
End If
|
||||
Return buff
|
||||
|
||||
@@ -213,7 +213,7 @@ Partial Class OI_Normatividad
|
||||
|
||||
ArbolCuentas.DataSource = DtDatos
|
||||
Dim item As ADServerControl.DragableItem = DirectCast(ArbolCuentas.FindControl(String.Format("{0}", DdlSubtitulo.SelectedValue.ToEntero)), ADServerControl.DragableItem)
|
||||
item.Attributes.Item("data-hijos") = item.Attributes.Item("data-hijos").ToEntero + 1
|
||||
item.Attributes.Item("data-hijos") = (item.Attributes.Item("data-hijos").ToEntero + 1).ToString
|
||||
Dim objul As ADServerControl.DragableUL = DirectCast(ArbolCuentas.FindControl(String.Format("ul{0}", DdlSubtitulo.SelectedValue.ToEntero)), ADServerControl.DragableUL)
|
||||
If (IsNothing(objul)) Then
|
||||
objul = New ADServerControl.DragableUL
|
||||
@@ -235,7 +235,7 @@ Partial Class OI_Normatividad
|
||||
End Sub
|
||||
Private Sub LimpiarCampos()
|
||||
Ttitulo.Text = ""
|
||||
DdlSubtitulo.SelectedValue = -1
|
||||
DdlSubtitulo.SelectedValueExist(-1)
|
||||
TxtObservaciones.Text = ""
|
||||
|
||||
Guardar.Visible = False
|
||||
@@ -265,7 +265,7 @@ Partial Class OI_Normatividad
|
||||
ArbolCuentas.DataSource = DtDatos
|
||||
Dim item As ADServerControl.DragableItem = DirectCast(ArbolCuentas.FindControl(String.Format("{0}", IDSelected)), ADServerControl.DragableItem)
|
||||
Dim padre As ADServerControl.DragableItem = DirectCast(ArbolCuentas.FindControl(String.Format("{0}", item.CvePadre)), ADServerControl.DragableItem)
|
||||
padre.Attributes.Item("data-hijos") = padre.Attributes.Item("data-hijos").ToEntero - 1
|
||||
padre.Attributes.Item("data-hijos") = (padre.Attributes.Item("data-hijos").ToEntero - 1).ToString
|
||||
ArbolCuentas.Controls.Remove(item)
|
||||
'RegistraScript(String.Format("$('#{0}').click();", editar.ClientID))
|
||||
|
||||
|
||||
@@ -309,8 +309,8 @@ public partial class OI_Proyecto : ClsPaginas
|
||||
else
|
||||
{
|
||||
|
||||
chkpara.Enabled = false;
|
||||
chkCCpara.Enabled = false;
|
||||
//chkpara.Enabled = false;
|
||||
//chkCCpara.Enabled = false;
|
||||
}
|
||||
string palomitavisto = "";
|
||||
string palomitasinver = "<i class=\"fa fa-check\" aria-hidden=\"true\"></i>";
|
||||
|
||||
@@ -127,7 +127,7 @@ Partial Class OI_SubidasADS
|
||||
If Not ChkCompletado Is Nothing And GvRow.DataKey("Actualizable").ToEntero = 1 Then
|
||||
If ChkCompletado.Checked Then
|
||||
|
||||
If Not ObjDesarrollo.DesarrolloAddUpdate(GvRow.DataKey("CveDesarrollo").ToEntero, GvRow.DataKey("Desarrollo"), GvRow.DataKey("CveEvento").ToEntero, GvRow.DataKey("CveUsuarioResponsable").ToEntero, GvRow.DataKey("CveUsuarioPruebas"), GvRow.DataKey("CveModulo").ToEntero, GvRow.DataKey("Descripcion"), GvRow.DataKey("CveUsuarioAsignado").ToEntero, Nothing, -1, 5, -1, UsuarioActual.CveUsuario) Then
|
||||
If Not ObjDesarrollo.DesarrolloAddUpdate(GvRow.DataKey("CveDesarrollo").ToEntero, GvRow.DataKey("Desarrollo"), GvRow.DataKey("CveEvento").ToEntero, GvRow.DataKey("CveUsuarioResponsable").ToEntero, GvRow.DataKey("CveUsuarioPruebas").ToEntero, GvRow.DataKey("CveModulo").ToEntero, GvRow.DataKey("Descripcion"), GvRow.DataKey("CveUsuarioAsignado").ToEntero, Nothing, -1, 5, -1, UsuarioActual.CveUsuario) Then
|
||||
Alert("Se presento un error al actulizar los estados")
|
||||
Exit For
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user