Tuesday, 7 March 2017

<%@ Page Title="" Language="C#" MasterPageFile="~/HrmsMaster.Master" AutoEventWireup="true" CodeBehind="JobTaskMst.aspx.cs" Inherits="KenResource.MasterSetups.JobTaskMst" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
           <script>
        function Open(win) {
            var window = document.getElementById(win);
            window.control.Show();
        }
        function Close(win) {
            var window = document.getElementById(win);
            window.control.Close();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <!-- Content Header (Page header) -->
   <section class="content-header">
        <ol class="breadcrumb">
            <li><a href="<%#ResolveUrl("~")%>/"><i class="fa fa-home"></i> Home</a></li>
            <li><i class="fa fa-cogs"></i> Setup</li>
            <li class="active">Job Task</li>
        </ol>
    </section>
    <section class="content-header">
        <h2>Job Task</h2>
    </section>
    <div class="alert alert-block alert-success">
        <%--<button type="button" class="close" data-dismiss="alert">
            <i class="ace-icon fa fa-times"></i>
        </button>--%>

   
        <telerik:RadLabel ID="lblMessage" runat="server" Text="<i class='ken-icon fa fa-check green'></i> Welcome to <strong class='green'>HRMS<small></small></strong>, This page display the Job Task Setup."></telerik:RadLabel>
    </div>
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy2" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="jobTaskGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="jobTaskGrid"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="RadWindow1" />
                    <telerik:AjaxUpdatedControl ControlID="lblMessage" />
                    <telerik:AjaxUpdatedControl ControlID="jobTaskGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="btnCancel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadWindow1" />
                    <telerik:AjaxUpdatedControl ControlID="RadPageLayout2"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="jobTaskGrid"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnReset">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadWindow1"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="RadPageLayout2"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="jobTaskGrid"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="RadWindow1" />
                    <telerik:AjaxUpdatedControl ControlID="lblMessage" />
                    <telerik:AjaxUpdatedControl ControlID="jobTaskGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadPageLayout runat="server" GridType="Fluid" ShowGrid="true" HtmlTag="None" CssClass="validation-form-container">

        <telerik:LayoutRow RowType="Generic">
            <Rows>
                <telerik:LayoutRow RowType="Generic" CssClass="header">
                    <Rows>
                        <telerik:LayoutRow RowType="Container" WrapperHtmlTag="Div">
                            <Columns>
                                <telerik:LayoutColumn Span="12" SpanMd="12" SpanSm="12" SpanXs="12">
                                    <%--<asp:ContentPlaceHolder ID="MainContent" runat="server">--%>

                                    <telerik:RadNotification RenderMode="Lightweight" ID="n1" runat="server" Position="TopCenter"
                                        AutoCloseDelay="2500" Width="350" Height="92" Title="Job Task" TitleIcon="none" LoadContentOn="EveryShow">
                                    </telerik:RadNotification>

                                    <telerik:RadWindowManager RenderMode="Lightweight" ID="AlertManager" runat="server" EnableShadow="true">
                                    </telerik:RadWindowManager>

                                    <telerik:RadWindowManager RenderMode="Lightweight" ID="RadWindowManager1" runat="server">
                                        <Windows>
                                            <telerik:RadWindow runat="server" ID="RadWindow1" Modal="true" Width="650px" Height="270px" Title="Job Task" Animation="None" AutoSize="false" Behavior="Close,Move" VisibleStatusbar="false">
                                                <ContentTemplate>
                                                    <telerik:RadPageLayout ID="RadPageLayout2" runat="server" GridType="Fluid">
                                                        <Rows>
                                                            <telerik:LayoutRow RowType="Container" Height="10px"></telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container" WrapperHtmlTag="Div">
                                                                <Columns>
                                                                    <telerik:LayoutColumn Span="3" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <telerik:RadLabel ID="lblJonTask" runat="server" Text="Job Task Name :"></telerik:RadLabel>
                                                                    </telerik:LayoutColumn>
                                                                    <telerik:LayoutColumn Span="8" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <telerik:RadTextBox RenderMode="Lightweight" ID="txtJobTask" runat="server" MaxLength="30" Width="90%"></telerik:RadTextBox>
                                                                        <asp:RequiredFieldValidator ID="reqName" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="txtJobTask" SetFocusOnError="true" ValidationGroup="JobTask" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                    </telerik:LayoutColumn>
                                                                </Columns>
                                                            </telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container" Height="5px"></telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container" WrapperHtmlTag="Div">
                                                                <Columns>
                                                                    <telerik:LayoutColumn Span="3" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <telerik:RadLabel ID="hdJobTaskID" runat="server" Style="display: none"></telerik:RadLabel>
                                                                        <telerik:RadLabel ID="lblJobFun" runat="server" Text="Job Function :"></telerik:RadLabel>
                                                                    </telerik:LayoutColumn>
                                                                    <telerik:LayoutColumn Span="8" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <telerik:RadComboBox RenderMode="Lightweight" ID="cmbJobFunction" runat="server" EmptyMessage="--Select--" Width="90%" DataTextField="JobFunction_Name" DataValueField="JobFunction_Id" AutoPostBack="true">
                                                                        </telerik:RadComboBox>
                                                                        <asp:RequiredFieldValidator ID="reqJobFun" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="cmbJobFunction" SetFocusOnError="true" ValidationGroup="JobTask" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                    </telerik:LayoutColumn>
                                                                </Columns>
                                                            </telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container" Height="5px"></telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container" WrapperHtmlTag="Div">
                                                                <Columns>
                                                                    <telerik:LayoutColumn Span="3" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <telerik:RadLabel ID="lblDesc" runat="server" Text="Description :"></telerik:RadLabel>
                                                                    </telerik:LayoutColumn>
                                                                    <telerik:LayoutColumn Span="8" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <telerik:RadTextBox RenderMode="Lightweight" ID="txtDescription" runat="server" Width="90%" TextMode="MultiLine" Height="60px" Resize="None"></telerik:RadTextBox>
                                                                        <asp:RequiredFieldValidator ID="reqDesc" runat="server" ErrorMessage="*" ForeColor="Red" ControlToValidate="txtDescription" SetFocusOnError="true" ValidationGroup="JobTask" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                    </telerik:LayoutColumn>
                                                                </Columns>
                                                            </telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container" Height="20px"></telerik:LayoutRow>
                                                            <telerik:LayoutRow RowType="Container">
                                                                <Columns>
                                                                    <telerik:LayoutColumn Span="12" SpanMd="12" SpanSm="12" SpanXs="12">
                                                                        <div align="center">
                                                                             <telerik:RadButton RenderMode="Lightweight" ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click"></telerik:RadButton>
                                                                            <telerik:RadButton RenderMode="Lightweight" ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click"></telerik:RadButton>
                                                                            <telerik:RadButton RenderMode="Lightweight" ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="JobTask"></telerik:RadButton>
                                                                        </div>
                                                                    </telerik:LayoutColumn>
                                                                </Columns>
                                                            </telerik:LayoutRow>
                                                        </Rows>
                                                    </telerik:RadPageLayout>
                                                </ContentTemplate>
                                            </telerik:RadWindow>
                                        </Windows>
                                    </telerik:RadWindowManager>

                                    <telerik:RadPageLayout ID="radPageLayout1" runat="server" GridType="Fluid" ShowGrid="true" HtmlTag="None">
                                        <Rows>
                                            <telerik:LayoutRow RowType="Container" WrapperHtmlTag="Div">
                                                <Columns>
                                                    <telerik:LayoutColumn Span="12" SpanSm="12" SpanXs="12">
                                                        <telerik:RadGrid RenderMode="Lightweight" Width="100%" ID="jobTaskGrid" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="true" AllowPaging="true" AllowSorting="true" OnItemCommand="jobTaskGrid_ItemCommand" PageSize="10" GridLines="None" OnPageIndexChanged="jobTaskGrid_PageIndexChanged" OnPageSizeChanged="jobTaskGrid_PageSizeChanged">
                                                            <ItemStyle Wrap="false"></ItemStyle>
                                                            <MasterTableView NoDetailRecordsText="No Records Found" NoMasterRecordsText="No Records Found" CommandItemDisplay="Top" ClientDataKeyNames="JobTask_Id" TableLayout="Fixed">
                                                                <CommandItemTemplate>
                                                                    <div style="padding: 5px 5px; text-align: left; width: 20%; float: left">
                                                                        <telerik:RadButton ID="lnkAddNew" runat="server" ButtonType="SkinnedButton" Height="23px" Width="25px" CommandName="addNew" Image-ImageUrl="~/Content/images/icons/add.png" ToggleType="None" ToolTip="Add New"></telerik:RadButton>
                                                                        &nbsp;&nbsp;
                                                                    </div>
                                                                    <div style="padding: 5px 5px; text-align: right; width: 20%; float: right">
                                                                        <telerik:RadButton ID="lnkReset" runat="server" ButtonType="LinkButton" Height="23px" Width="25px" Image-ImageUrl="../Content/images/icons/refresh.png" CommandName="resetGrid" ToggleType="None" ToolTip="Refresh"></telerik:RadButton>

                                                                    </div>
                                                                </CommandItemTemplate>
                                                                <Columns>
                                                                    <telerik:GridBoundColumn DataField="JobTask_Name" HeaderText="Job Task Name">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="JobFunction_Name" HeaderText="Job Function">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridBoundColumn DataField="JobTask_Description" HeaderText="Description">
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridBoundColumn>
                                                                    <telerik:GridButtonColumn ButtonType="ImageButton" runat="server" CommandName="EditJobTask" ImageUrl="../Content/images/icons/edit.png" HeaderStyle-Width="5%" ItemStyle-Width="5%" Text="Edit">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                    </telerik:GridButtonColumn>
                                                                    <telerik:GridButtonColumn ConfirmTextFormatString="Do you want to Delete {0}?"  ConfirmTextFields="Job Task" ConfirmDialogType="RadWindow" CommandName="DeleteJobTask" ConfirmDialogHeight="130px" ConfirmTitle="Infomation" ButtonType="ImageButton" ImageUrl="~/Content/images/icons/delete.png" HeaderStyle-Width="5%" ItemStyle-Width="5%" Text="Delete">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" />
                                                                    </telerik:GridButtonColumn>
                                                                </Columns>
                                                            </MasterTableView>
                                                            <PagerStyle AlwaysVisible="true" PageSizes="10,20,30,40,50" PagerTextFormat="{4}<strong>{5}</strong> Record(s) Found"></PagerStyle>
                                                        </telerik:RadGrid>
                                                    </telerik:LayoutColumn>
                                                </Columns>
                                            </telerik:LayoutRow>
                                        </Rows>
                                    </telerik:RadPageLayout>
                                    <%--</asp:ContentPlaceHolder>--%>
                                </telerik:LayoutColumn>
                            </Columns>
                        </telerik:LayoutRow>
                    </Rows>
                </telerik:LayoutRow>
            </Rows>
        </telerik:LayoutRow>
    </telerik:RadPageLayout>
    <!-- /.content -->
</asp:Content>

No comments:

Post a Comment