Funcionalidad 281 bloquear fechas
This commit is contained in:
@@ -149,8 +149,6 @@
|
|||||||
<asp:TextBox ID="TxtConceptoFluctuacion" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtConceptoFluctuacion" runat="server"></asp:TextBox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
@@ -230,15 +228,15 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-3 form-group form-md-line-input input-iconright">
|
<div class="col-md-5 form-group form-md-line-input input-iconright">
|
||||||
<asp:TextBox ID="TxtConceptoCompras" Style="text-transform: uppercase;" runat="server" MaxLength="100" CssClass="form-control marginFixRow" Width="90%"></asp:TextBox>
|
<asp:TextBox ID="TxtConceptoCompras" Style="text-transform: uppercase;" runat="server" MaxLength="100" CssClass="form-control marginFixRow" Width="96%"></asp:TextBox>
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtConceptoCompras" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtConceptoCompras"
|
<asp:RequiredFieldValidator ID="RFVTxtConceptoCompras" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtConceptoCompras"
|
||||||
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCompras"></asp:RequiredFieldValidator>
|
ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Concepto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarCompras"></asp:RequiredFieldValidator>
|
||||||
<label for="<%= TxtConceptoCompras.ClientID.ToString()%>">Concepto:</label>
|
<label for="<%= TxtConceptoCompras.ClientID.ToString()%>">Concepto:</label>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3 form-group form-md-line-input input-iconright">
|
<div class="col-md-1 form-group form-md-line-input input-iconright">
|
||||||
<asp:DropDownList ID="DdlSubProyectoCompras" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me js-referencia-programmatic marginFixRow" Width="90%" >
|
<asp:DropDownList ID="DdlSubProyectoCompras" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me js-referencia-programmatic marginFixRow" Width="90%" >
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
<label for="<%= DdlSubProyectoCompras.ClientID.ToString()%>"><asp:Label runat="server" ID="LblSubProyectoCompras"></asp:Label></label>
|
<label for="<%= DdlSubProyectoCompras.ClientID.ToString()%>"><asp:Label runat="server" ID="LblSubProyectoCompras"></asp:Label></label>
|
||||||
|
|||||||
@@ -106,6 +106,17 @@ 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)
|
||||||
|
{
|
||||||
|
TxtFechaPrestamo.Enabled = false;
|
||||||
|
ImgCalendarioPrestamo.Visible = false;
|
||||||
|
|
||||||
|
TxtFechaDocumento.Enabled = false;
|
||||||
|
ImgCalendario.Visible = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -275,6 +275,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
|
||||||
|
|
||||||
If Not IsPostBack Then
|
If Not IsPostBack Then
|
||||||
|
|
||||||
CveMovimiento = -1
|
CveMovimiento = -1
|
||||||
@@ -289,6 +290,7 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
CreaDT()
|
CreaDT()
|
||||||
CargaCombos()
|
CargaCombos()
|
||||||
TxtFecha.Text = Now.ToShortDateString
|
TxtFecha.Text = Now.ToShortDateString
|
||||||
|
TxtFechaInvFisico.Text = Now.ToShortDateString
|
||||||
RVFecha.MaximumValue = Now.ToShortDateString
|
RVFecha.MaximumValue = Now.ToShortDateString
|
||||||
|
|
||||||
If Not UsuarioActual.CveEmpresa = 48 Then
|
If Not UsuarioActual.CveEmpresa = 48 Then
|
||||||
@@ -350,7 +352,25 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
PermisoVerImportes()
|
PermisoVerImportes()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
||||||
|
|
||||||
|
TxtFecha.Enabled = False
|
||||||
|
ImgFecha.Visible = False
|
||||||
|
|
||||||
|
TxtFechaInvFisico.Enabled = False
|
||||||
|
ImgFechaInvFisico.Visible = False
|
||||||
|
|
||||||
|
UpGenerales.Update()
|
||||||
|
UpModalInventarioFisico.Update()
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region " PERMISOS PAGINAS "
|
#Region " PERMISOS PAGINAS "
|
||||||
@@ -927,6 +947,21 @@ Partial Class Inventarios_EntradasSalidas
|
|||||||
'BtnGuardar.Visible = False
|
'BtnGuardar.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
||||||
|
|
||||||
|
TxtFecha.Enabled = False
|
||||||
|
ImgFecha.Visible = False
|
||||||
|
|
||||||
|
TxtFechaInvFisico.Enabled = False
|
||||||
|
ImgFechaInvFisico.Visible = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
UpModalInventarioFisico.Update()
|
||||||
BloqueaEdicionEncabezado()
|
BloqueaEdicionEncabezado()
|
||||||
Mov.Dispose()
|
Mov.Dispose()
|
||||||
UpGenerales.Update()
|
UpGenerales.Update()
|
||||||
|
|||||||
@@ -263,6 +263,14 @@ Partial Class Inventarios_EntregaAlmacen
|
|||||||
InicializaValores()
|
InicializaValores()
|
||||||
CargaParametrosAD()
|
CargaParametrosAD()
|
||||||
If UsuarioActual.CveEmpresa.Contiene(72, 80) Then DdlAlmacen.AutoPostBack = True
|
If UsuarioActual.CveEmpresa.Contiene(72, 80) Then DdlAlmacen.AutoPostBack = True
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
||||||
|
|
||||||
|
TxtFecha.Enabled = False
|
||||||
|
ImgFecha.Visible = False
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -399,6 +399,14 @@ Partial Class Inventarios_RecepcionAlmacen
|
|||||||
CargaPermisos()
|
CargaPermisos()
|
||||||
If UsuarioActual.CveEmpresa.Contiene(72, 80) Then DdlAlmacen.AutoPostBack = True
|
If UsuarioActual.CveEmpresa.Contiene(72, 80) Then DdlAlmacen.AutoPostBack = True
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
||||||
|
|
||||||
|
TxtFecha.Enabled = False
|
||||||
|
ImgFecha.Visible = False
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -228,6 +228,18 @@ Partial Class Inventarios_TraspasoAlmacen
|
|||||||
|
|
||||||
TipoSeccionAlmacen = 0
|
TipoSeccionAlmacen = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(281).ToEntero = 1 Then
|
||||||
|
|
||||||
|
TxtFecha.Enabled = False
|
||||||
|
ImgFecha.Visible = False
|
||||||
|
|
||||||
|
TxtFechaRecepcion.Enabled = False
|
||||||
|
ImgFechaRecepcion.Visible = False
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
If ChkTransitorio.Checked Then
|
If ChkTransitorio.Checked Then
|
||||||
RegistraScript("$('#DivTransitorio').show(0);$('#DivGastoIndirecto').show(0);$('#DivDocChofer').show(0);")
|
RegistraScript("$('#DivTransitorio').show(0);$('#DivGastoIndirecto').show(0);$('#DivDocChofer').show(0);")
|
||||||
|
|||||||
Reference in New Issue
Block a user