143 lines
9.3 KiB
Plaintext
143 lines
9.3 KiB
Plaintext
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="True" CodeFile="CATProductos.aspx.CS" Inherits="CATProductos" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.page-bar .page-breadcrumb {
|
|
display: none !important;
|
|
}
|
|
|
|
.GVProductos th {
|
|
text-align: left !important;
|
|
}
|
|
|
|
.GVProductos th.centerclass {
|
|
text-align: center !important;
|
|
}
|
|
|
|
.portlet-title .font-green, .portlet-title .font-green a {
|
|
color: #3598dc !important;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Catalogo de Frutos
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="HA" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="H" runat="Server">
|
|
<asp:UpdatePanel ID="UpAcciones" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAgregarProductos" OnClick="LnkAgregarProd_Click" runat="server"><i class="fa fa-plus"></i>Agregar </asp:LinkButton></li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:UpdatePanel ID="upDatosProd" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="portlet light portlet bordered " style="margin-bottom: 0px; padding: 0px;" id="form_wizard_1">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject font-green bold uppercase">Información
|
|
<asp:Literal ID="LtlPeriodoseleccionado" runat="server"></asp:Literal></span>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
<%--<a href="javascript:;" class="fullscreen" data-original-title="" title=""></a>--%>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div style="float: right;">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVProductos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVProductos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
|
|
<asp:GridView ID="GVProductos" runat="server" OnRowDataBound="GVProductos_RowDataBound" GridLines="None" CssClass="table GVProductos table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="100%" AutoGenerateColumns="False"
|
|
DataKeyNames="CvePS,PS,FechaIng,Estatus,CveUsuario,Usuario,CveEmpresa,Empresa">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Fruto" ItemStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblpS" runat="server" Text='<%# Eval("PS")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Estatus" ItemStyle-Width="100px" >
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblestatus" runat="server" Text='<%# Eval("Estatus")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="FechaIng" HeaderStyle-CssClass="centerclass" ItemStyle-Width="100px" HeaderText="Fecha de Ingreso" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:d}" />
|
|
<asp:TemplateField HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="200px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblusuario" runat="server" Text='<%# Eval("Usuario")%>'> </asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="100px" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton data-toggle="tooltip" title="Editar" ID="LnkEditar" OnClick="LnkEditarProd_Click" CssClass="btn btn-circle btn-sm green" runat="server" Text="<i class='fa fa-pencil'></i>"></asp:LinkButton>
|
|
<asp:LinkButton ID="imgD" runat="server" OnClick="LnkEliminarProd_Click" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="¿Está seguro que desea eliminar el Productos?" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div id="DModalProductos" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UPModalProd" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Literal ID="ltlProdtitulo" Text="Fruto" runat="server"> </asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtProdpS" CssClass="form-control " runat="server"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RfvProdpS" runat="server" ControlToValidate="TxtProdpS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''PS''</b> es necesario, por favor ingréselo." ValidationGroup="VGMProd"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VcoProdpS" runat="server" HighlightCssClass="vco" TargetControlID="RfvProdpS"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtProdpS.ClientID.ToString()%>">Fruto:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivTipoPS" visible="false" runat="server">
|
|
<asp:DropDownList ID="DdlTipoPS" CssClass="select2me" runat="server">
|
|
<Items>
|
|
<asp:ListItem Value="1" Text="Empacado"></asp:ListItem>
|
|
<asp:ListItem Value="2" Text="Envasado"></asp:ListItem>
|
|
</Items>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtProdpS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''PS''</b> es necesario, por favor ingréselo." ValidationGroup="VGMProd"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RfvProdpS"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtProdpS.ClientID.ToString()%>">Producto:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivEstatus" runat="server">
|
|
<label for="<%= ChkProdestatus.ClientID.ToString()%>">Estatus:</label>
|
|
<asp:CheckBox ID="ChkProdestatus" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnProdADD" OnClick="BtnProdADD_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMProd" />
|
|
<asp:Button ID="BtnProdEdit" OnClick="BtnProdEdit_Click" runat="server" Text="Actualizar" CssClass="btn btn-primary" ValidationGroup="VGMProd"></asp:Button>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|