<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Form_SeguiArticuloProyectoPopUp.aspx.vb" Inherits="SGHweb.Form_SeguiArticuloProyectoPopUp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function CerrarVentana(indicador) {
            var oWnd = GetRadWindow();
            var oArg = new Object();
            oArg.indicador = indicador;
            oWnd.close(oArg);
        }  
    </script>
</telerik:RadCodeBlock>
    <style type="text/css">
    .divtableInterior {
	    border:1px solid #8db2e3;
	    font-size:1em;
	    overflow:hidden;
	    width:100%;
	    text-align:center;
    }

</style>
</head>
<body>
    <form id="form1" runat="server">
<div>
    <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="WebBlue" Width="100%">
        <Items>
            <telerik:RadToolBarButton runat="server" Font-Names="Arial" Font-Size="9pt" ForeColor="White"
                ImageUrl="~/SIG/Resources/Update_Popup.png" Text="Guardar" >
            </telerik:RadToolBarButton>
            <telerik:RadToolBarButton runat="server" Font-Names="Arial" Font-Size="9pt" ForeColor="White"
                ImageUrl="~/SIG/Resources/Cancel_PopUp.png" Text="Cancelar" onclick="CerrarVentana(1);">
            </telerik:RadToolBarButton>
        </Items>
    </telerik:RadToolBar>
    <table style="width: 100%" >
        <tr>
            <td style=" width:50%; vertical-align:top">
                <dt class="divtableInterior">
                    <table style="font-size: 9pt; width: 100%; color: #464646; font-family: Arial; background-color: #fcfcfc; text-align: center; " 
                        cellspacing="4">
                        <tr>
                            <td style="text-align:right; width:15%">
                                Peso :&nbsp;
                            </td>
                            <td style="text-align:left; width:35%;" >
                                <telerik:RadNumericTextBox ID="pesoRNTB" Runat="server" Culture="es-PE" 
                                    DbValue='<%# Eval("peso", "{0:N}") %>' DbValueFactor="1"
                                    MaxValue="10000" MinValue="0" Width="90%"
                                    TabIndex="1" >
                                </telerik:RadNumericTextBox>
                            </td>
                            <td style=" text-align:right; width:15%; font-weight: bold; border-left: #464646 1px solid;" >
                                Area :&nbsp;
                            </td>
                            <td style="text-align:left; width:35%;" >
                                <asp:DropDownList ID="areaCB" runat="server" Width="90%" 
                                    TabIndex="3" DataSourceID="SDS_area" 
                                    DataTextField="NombreArea" DataValueField="AreaID"
                                    AppendDataBoundItems="True">
                                    <asp:ListItem Selected="True" Value="0" >Seleccione Area</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:right; width:15%">
                                Merma :&nbsp;
                            </td>
                            <td style="text-align:left; width:35%;">
                                <telerik:RadNumericTextBox ID="mermaRNTB" Runat="server" Culture="es-PE" 
                                    DbValue='<%# Eval("merma", "{0:N}") %>' DbValueFactor="1"
                                    MaxValue="10000" MinValue="0" Width="90%"
                                    TabIndex="2" >
                                </telerik:RadNumericTextBox>
                            </td>
                            <td style=" text-align:right; width:15%; font-weight: bold; border-left: #464646 1px solid;" >
                                Trabajador :&nbsp;
                            </td>
                            <td style="text-align:left; width:35%;">
                                <asp:DropDownList ID="trabajadorCB" runat="server" Width="90%" 
                                    TabIndex="4" DataSourceID="SDS_trabajadoresCombo" 
                                    DataTextField="Trabajador" DataValueField="TrabajadorId" 
                                    AppendDataBoundItems="True">
                                    <asp:ListItem Selected="True" Value="0" >Seleccione Trabajador</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </dt>
            </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SDS_area" runat="server" 
        SelectCommand="USP_UsuarioAreas" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="UsuarioID" SessionField="IdUsuarioLogin" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SDS_trabajadoresCombo" runat="server" 
        SelectCommand="SWPRO_TrabajadoresActvosCombo" 
        SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    </div>
    </form>
</body>
</html>
