Entrega almacen filtro fechas y ocultar controles de entrega en primera etapa, clientes ocultar txt dirección de envio
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<div class="col-sm-2">
|
||||
<asp:DropDownList runat="server" Id="DdlSubProyecto" CssClass="select2me" Width="100%" DataValueField="CveSubProyecto" DataTextField="SubProyecto"></asp:DropDownList>
|
||||
</div>
|
||||
<label class="col-md-1 " style="width: 90px;">Fecha Inicial:</label>
|
||||
<label class="col-md-1 " style="width: 90px;">Fecha Inicial:</label>
|
||||
<div class="col-md-2">
|
||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 138px !important; padding: 0px; margin-bottom: -10px;">
|
||||
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Width="98%" MaxLength="10"></asp:TextBox>
|
||||
@@ -80,33 +80,33 @@
|
||||
|
||||
|
||||
|
||||
<asp:UpdatePanel runat="server" ID="UpAcciones">
|
||||
<asp:UpdatePanel runat="server" ID="UpDatosEntrga">
|
||||
<ContentTemplate>
|
||||
|
||||
<div class="row">
|
||||
<div class="row" >
|
||||
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-1" runat="server" id="DVDatosEntrega1" visible="false">
|
||||
Chofer:
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-1" runat="server" id="DVDatosEntrega2" visible="false">
|
||||
<asp:DropDownList ID="DdlChofer" runat="server" DataTextField="Chofer" DataValueField="CveChofer" CssClass="form-control input-sm select2me" Width="100%" CausesValidation="true"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlChofer" runat="server" Enabled="false" ControlToValidate="DdlChofer" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Chofer''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VceDdlChofer" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlChofer" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-1" runat="server" id="DVDatosEntrega3" visible="false">
|
||||
Unidad:
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-1" runat="server" id="DVDatosEntrega4" visible="false">
|
||||
<asp:DropDownList runat="server" ID="DdlUnidadCamion" Width="100%" AppendDataBoundItems="true" CssClass="form-control input-sm select2me" DataValueField="CveCamion" DataTextField="Placa" CausesValidation="true"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RfvDdlUnidadCamion" runat="server" Enabled="false" ControlToValidate="DdlUnidadCamion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VceDdlUnidadCamion" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlUnidadCamion" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||
</div>
|
||||
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-1" runat="server" id="DVDatosEntrega5" visible="false">
|
||||
Fecha de Entrega:
|
||||
</div>
|
||||
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-1" runat="server" id="DVDatosEntrega6" visible="false">
|
||||
<div class="input-group input-sm input-small date date-picker" data-date-format="dd/mm/yyyy" style="width: 125px !important;">
|
||||
<asp:TextBox ID="TxtFechaEntrega" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" Width="80px" ClientIDMode="Static"></asp:TextBox>
|
||||
<span class="input-group-btn ">
|
||||
@@ -121,11 +121,11 @@
|
||||
<div class="col-md-1" runat="server" id="DvCartaPorte1" visible="false">
|
||||
Carta Porte:
|
||||
</div>
|
||||
<div class="col-md-1" runat="server" id="DvCartaPorte2" visible="false">
|
||||
<div class="col-md-1" runat="server" id="DvCartaPorte2" visible="false">
|
||||
|
||||
<asp:CheckBox ID="ChkEmitirCartaPorte" runat="server" Text="Carta Porte" CssClass="chksino" />
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<div class="col-md-9" runat="server" id="DVDatosEntrega7" >
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -69,11 +69,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
if (!IsPostBack)
|
||||
{
|
||||
|
||||
if (UsuarioActual.Empresa.Funcionalidad(161).ToEntero() == 1)
|
||||
{
|
||||
DvCartaPorte1.Visible = true;
|
||||
DvCartaPorte2.Visible = true;
|
||||
}
|
||||
|
||||
|
||||
SelecionEntrega = true;
|
||||
|
||||
@@ -304,13 +300,42 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
|
||||
DTGenrarDocumentos.AcceptChanges();
|
||||
|
||||
|
||||
|
||||
|
||||
SelecionEntrega = false;
|
||||
LnkGenerarDocumentos.Text = "Regresar a Preselección";
|
||||
LnkGenerarDocumentos.CssClass = "btn btn-default";
|
||||
|
||||
DVDatosEntrega1.Visible = true;
|
||||
DVDatosEntrega2.Visible = true;
|
||||
DVDatosEntrega3.Visible = true;
|
||||
DVDatosEntrega4.Visible = true;
|
||||
DVDatosEntrega5.Visible = true;
|
||||
DVDatosEntrega6.Visible = true;
|
||||
|
||||
DVDatosEntrega7.Attributes.Add("class", "col-md-1");
|
||||
|
||||
if (UsuarioActual.Empresa.Funcionalidad(161).ToEntero() == 1)
|
||||
{
|
||||
DvCartaPorte1.Visible = true;
|
||||
DvCartaPorte2.Visible = true;
|
||||
}
|
||||
|
||||
|
||||
BtnConsultar.Visible = false;
|
||||
|
||||
UpDatos.Update();
|
||||
UpFiltro.Update();
|
||||
|
||||
|
||||
if (CountRows > 0)
|
||||
{
|
||||
{
|
||||
GvGenerarDocumentos.DataSource = DTGenrarDocumentos;
|
||||
GvGenerarDocumentos.DataBind();
|
||||
|
||||
DVGvGenerarDocumentos.Visible = true;
|
||||
BtnAsignar.Visible = false;
|
||||
BtnAsignar.Visible = true;
|
||||
DVGvPaqueteriasGuias.Visible = false;
|
||||
|
||||
RegistraScript("InitOrdenamientoGvGenerarDocumentos();");
|
||||
@@ -320,17 +345,6 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
Alert("No hay entregas seleccionadas", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
SelecionEntrega = false;
|
||||
LnkGenerarDocumentos.Text = "Regresar a Preselección";
|
||||
//LnkGenerarDocumentos.CssClass = "btn btn-secondary";
|
||||
|
||||
BtnAsignar.Visible = true;
|
||||
BtnConsultar.Visible = false;
|
||||
|
||||
UpDatos.Update();
|
||||
UpFiltro.Update();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -338,16 +352,29 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
BtnConsultar.Visible = true;
|
||||
SelecionEntrega = true;
|
||||
LnkGenerarDocumentos.Text = "Preselección de Entregas";
|
||||
//LnkGenerarDocumentos.CssClass = "btn btn-primary";
|
||||
LnkGenerarDocumentos.CssClass = "btn btn-primary";
|
||||
DVDatosEntrega7.Attributes.Add("class", "col-md-9");
|
||||
|
||||
DVDatosEntrega1.Visible = false;
|
||||
DVDatosEntrega2.Visible = false;
|
||||
DVDatosEntrega3.Visible = false;
|
||||
DVDatosEntrega4.Visible = false;
|
||||
DVDatosEntrega5.Visible = false;
|
||||
DVDatosEntrega6.Visible = false;
|
||||
|
||||
if (UsuarioActual.Empresa.Funcionalidad(161).ToEntero() == 1)
|
||||
{
|
||||
DvCartaPorte1.Visible = false;
|
||||
DvCartaPorte2.Visible = false;
|
||||
}
|
||||
|
||||
BtnAsignar.Visible = false;
|
||||
DVGvGenerarDocumentos.Visible = false;
|
||||
DVGvPaqueteriasGuias.Visible = true;
|
||||
UpDatos.Update();
|
||||
UpFiltro.Update();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user