You are on page 1of 7

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddEmployeeMaster.aspx.c s" Inherits="AddEmployeeMaster" MasterPageFile="~/Masters/InnerMaster.

master" T itle="Add Employee Master" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPre fix="ajaxToolkit" %> <%@ Register Src="~/UserControls/HelpControl.ascx" TagName="Help" TagPrefix="uc" %> <%@ Register Src="~/UserControls/AppMessageControl.ascx" TagName="Message" TagPr efix="uc" %> <asp:Content ContentPlaceHolderID="cphModuleHeader" ID="Content1" runat="server" > <asp:Label runat="server" ID="lblPageMainHeading" Text="Employee Master"></a sp:Label> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="cphContetBoxHeader" runat="Serv er"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="cphMainContent" runat="Server"> <link href="../CSS/Alert.css" rel="stylesheet" type="text/css" /> <asp:Panel ID="pnl" CssClass="panel" runat="server" DefaultButton="btnSave"> <div style="width: 55%;" class="maindiv"> <div style="text-align: left;"> <asp:ValidationSummary runat="server" ValidationGroup="EMP" Disp layMode="BulletList" ID="valSummary" Visible="true" ShowSummary="true" /> </div> <div id="divValidate"> <uc:Message ID="Message" runat="server" ContainerId="EMP" /> </div> <div> <asp:Label runat="server" ID="lblpopupvisibilityHidden" Style="d isplay: none;"></asp:Label> </div> <div runat="server" id="divLookup"> </div> <div class="masterTableContainer"> <table cellpadding="0" border="0" style="width: 100%; text-align : left"> <tr> <td class="hint1"> Employee Master </td> </tr> </table> <table cellpadding="1" class="tblmaster" border="0" style="width : 100%;"> <tr> <td style="width: 20%"> <asp:Label ID="lblempid" runat="server" Text="Employ ee ID" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:TextBox runat="server" ID="txtemployeeid" CssCl ass="TextBox" TabIndex="1" MaxLength="30"></asp:TextBox> </td> </tr> <tr> <td style="width: 10%">

<asp:Label ID="lblcompany" runat="server" Text="Comp any" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:DropDownList ID="ddlCompany" CssClass="dropdown Search" runat="server" TabIndex="2"> </asp:DropDownList> </td> </tr> <tr> <td style="width: 15%"> <asp:Label ID="lblBranch" runat="server" Text="Emplo yee Name" CssClass="label"></asp:Label> </td> <td> <asp:TextBox runat="server" ID="txtemployeename" Css Class="TextBox" TabIndex="3" MaxLength="100"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="lbldesgination" runat="server" Text=" Designation" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:DropDownList ID="ddlDesignation" CssClass="drop downSearch" runat="server" TabIndex="4"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="lblDepartment" runat="server" Text="D epartment" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:DropDownList ID="ddlDepartment" CssClass="dropd own" runat="server" TabIndex="4"> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="lblemaild" runat="server" Text="Email ID" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:TextBox runat="server" ID="txtemailid" CssClass ="TextBox" TabIndex="5" MaxLength="100"></asp:TextBox> <asp:RegularExpressionValidator ValidationExpression ="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-] +\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" ID="rxpEmail" runat="server" ErrorMessage="Email Address is not valid" Text="*" Display="None" ValidationGroup="EMP" ControlToVa lidate="txtemailid"></asp:RegularExpressionValidator> </td> </tr> <tr>

<td> <asp:Label ID="lblmobileno" runat="server" Text="Mob ile Number" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:TextBox runat="server" ID="txtmobileno" CssClas s="TextBox" MaxLength="50" TabIndex="6"></asp:TextBox> <asp:RegularExpressionValidator runat="server" ID="R egularExpressionValidator1" ControlToValidate="txtmobileno" Display="None" ErrorMessage="Please enter number s only in Mobile Number." ValidationGroup="EMP" ValidationExpression="(^([0-9]*|\d*\d{1}?\d*)$)" > </asp:RegularExpressionValidator> </td> </tr> <tr> <td> <asp:Label ID="lblcontactno" runat="server" Text="Co ntact Number" CssClass="label"></asp:Label> </td> <td style="width: 36%"> <asp:TextBox runat="server" ID="txtcontactno" CssCla ss="TextBox" MaxLength="50" TabIndex="7"></asp:TextBox> <asp:RegularExpressionValidator runat="server" ID="R egularExpressionValidator2" ControlToValidate="txtcontactno" Display="None" ErrorMessage="Please enter number s only in Contact Number." ValidationGroup="EMP" ValidationExpression="^\d+$"> </asp:RegularExpressionValidator> </td> </tr> <tr> <td style="width: 15%"> <asp:Label ID="lbllob" runat="server" Text="LOB" Css Class="label"></asp:Label> <span class="red">*</span> </td> <td> <asp:TextBox runat="server" ID="txtlob" CssClass="Te xtBox" Columns="10" MaxLength="10" TabIndex="8"> </asp:TextBox> <asp:ImageButton ID="imgbtnPickLob" TabIndex="9" run at="server" AlternateTextText="Pick" ImageUrl="~/images/Pick.jpg" OnClick="imgbtnPick LobCode_Click" ToolTip="View LOB Code List" /> <asp:RequiredFieldValidator ID="RequiredFieldValidat or2" runat="server" Display="None" ValidationGroup="EMP" ControlToValidate="txtlob" ErrorMessage="LOB Code cannot be blank"></asp:RequiredFieldValidator> </td> </tr> <tr> <td style="width: 15%"> <asp:Label ID="Label2" runat="server" Text="Location " CssClass="label"></asp:Label> <span class="red">*</span> </td> <td>

<asp:TextBox runat="server" ID="txtloc" CssClass="Te xtBox" Columns="10" MaxLength="10" TabIndex="10"> </asp:TextBox> <asp:ImageButton ID="imgloc" TabIndex="11" runat="se rver" AlternateTextText="Pick" ImageUrl="~/images/Pick.jpg" OnClick="imgbtnPick LocCode_Click" ToolTip="View LOC Code List" /> <asp:RequiredFieldValidator ID="RequiredFieldValidat or3" runat="server" Display="None" ValidationGroup="EMP" ControlToValidate="txtloc" ErrorMessage="LOC Code cannot be blank"></asp:RequiredFieldValidator> </td> </tr> <tr> <td style="width: 15%"> <asp:Label ID="Label3" runat="server" Text="Cost Cen ter" CssClass="label"></asp:Label> <span class="red">*</span> </td> <td> <asp:TextBox runat="server" ID="txtcc" CssClass="Tex tBox" Columns="10" MaxLength="10" TabIndex="12"> </asp:TextBox> <asp:ImageButton ID="imgcc" runat="server" TabIndex= "13" AlternateTextText="Pick" ImageUrl="~/images/Pick.jpg" OnClick="imgbtnPick CcCode_Click" ToolTip="View CC Code List" /> <asp:RequiredFieldValidator ID="RequiredFieldValidat or4" runat="server" Display="None" ValidationGroup="EMP" ControlToValidate="txtloc" ErrorMessage="LOC Code cannot be blank"></asp:RequiredFieldValidator> </td> </tr> <tr> <td style="width: 15%"> <asp:Label ID="Label4" runat="server" Text="Resign D ate" CssClass="label"></asp:Label> </td> <td> <asp:TextBox runat="server" ID="txtresigndate" CssCl ass="" MaxLength="15" TabIndex="14"></asp:TextBox> <Ajax:CalendarExtender ID="CalendarExtender1" runat= "server" Format="dd/MM/yyyy" TargetControlID="txtresigndate"> </Ajax:CalendarExtender> <Ajax:MaskedEditExtender ID="MaskedEditExtender1" ru nat="server" Mask="99/99/9999" MaskType="Date" TargetControlID="txtresigndate"> </Ajax:MaskedEditExtender> </td> </tr> <tr> <td style="width: 15%"> <asp:Label ID="Label9" runat="server" Text="CRN Numb er" CssClass="label"></asp:Label> </td> <td> <asp:TextBox runat="server" ID="txtcrnno" CssClass="

" MaxLength="10" TabIndex="15"></asp:TextBox> </td> </tr> <%--<div id="displayimagesoneditmodeonly" runat="server"> <tr id="trPhotoImage"> <td style="width: 15%"> <asp:Label ID="lblPhoto" runat="server" Text="Ph oto Image" CssClass="label"></asp:Label> </td> <td> <asp:Image ID="ImagePhoto" runat="server" Height ="61px" Width="100px" /> </td> </tr> <tr id="trSignImage"> <td style="width: 15%"> <asp:Label ID="lblImage" runat="server" Text="Si gnature Image" CssClass="label"></asp:Label> </td> <td> <asp:Image ID="imageSign" runat="server" Height= "61px" Width="100px" /> </td> </tr> </div>--%> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode ="conditional"> <Triggers> <asp:PostBackTrigger ControlID="btnSave" /> </Triggers> <ContentTemplate> <tr> <td style="width: 15%"> <asp:Label ID="Label5" runat="server" Text=" Photo Image" CssClass="label"></asp:Label> </td> <td> <asp:FileUpload ID="filephotoimage" runat="s erver" TabIndex="16" Width="250px" /> <asp:RegularExpressionValidator ID="revImage " ValidationGroup="EMP" ControlToValidate="filephotoimage" ValidationExpression="^.*\.(jpg|JPG|jpeg |gif|GIF|bmp|png|)$" Display="None" ErrorMessage="Invalid Photo Image type" runat="server" /> </td> </tr> <tr runat="server" visible="false" id="trImagePhoto" > <td> </td> <td> <asp:Image ID="ImagePhoto" runat="server" He ight="120px" Width="120px" /> </td> </tr> <%-- <tr runat="server" id="trDeleteRow"> <td> </td> <td> <asp:Button ID="Button1" OnClick="btnDelete_

Click" runat="server" Text="Remove" /> </td> </tr>--%> <tr> <td style="width: 15%"> <asp:Label ID="Label6" runat="server" Text=" Signature Image" CssClass="label"></asp:Label> </td> <td> <asp:FileUpload ID="filesignatureimage" TabI ndex="17" runat="server" Width="250px" /> <asp:RegularExpressionValidator ID="RegularE xpressionValidator3" ValidationGroup="EMP" ControlToValidate="filesignatureimage" V alidationExpression="^.*\.(jpg|JPG|jpeg|gif|GIF|bmp|png|)$" ErrorMessage="Invalid Signature Image ty pe" Display="None" runat="server" /> </td> </tr> <tr runat="server" visible="false" id="trimageSign"> <td> </td> <td> <asp:Image ID="imageSign" runat="server" Hei ght="120px" Width="120px" /> </td> </tr> <%--<tr runat="server" id="trdeleterow1"> <td> </td> <td> <asp:Button ID="btnDelete" OnClick="btnDelet e1Click" runat="server" Text="Remove" /> </td> </tr>--%> <tr> <td style="width: 15%"> <asp:Label ID="Label7" runat="server" Text=" Remarks" CssClass="label"></asp:Label> </td> <td> <asp:TextBox runat="server" ID="txtremarks" CssClass="TextBoxSearch1" MaxLength="4000" TextMode="MultiLine" Columns="30" TabIndex="18" Rows="5"></as p:TextBox> <asp:RegularExpressionValidator ID="RegularE xpressionValidator12" runat="server" ControlToValidate="txtremarks" Display=" None" ErrorMessage="Please enter Remarks upto 4000 characters or less." ValidationGroup="EMP" ValidationExpressi on="[\s\S]{1,4000}"></asp:RegularExpressionValidator> </td> </tr> </table> <div class="yellowheader-btm"> <table width="100%" border="0" cellspacing="0" c ellpadding="0"> <tr> <td align="left" valign="middle"> &nbsp;

</td> <td align="left" valign="middle"> <span class="red">*</span><span clas s="mandatory-line">Mandatory fields, must be filled</span> </td> <td align="right" valign="middle"> <asp:ImageButton runat="server" ID=" btnSave" Text="Save" OnClick="btnSave_Click" ValidationGroup="EMP" CausesVali dation="true" TabIndex="19" ToolTip="Save Employee Master" ImageUrl="~/images/Save_Button.j pg" OnClientClick="javascript:anchurFocus();javascript:var t = document.getElementById('divValidate');if(t!=null){t.style.display = 'none';}" / > <asp:ImageButton runat="server" ID=" btnAdd" AlternateText="Reset" OnClick="btnAdd_Click" Visible="false" ValidationGroup= "Emp" CausesValidation="false" ImageUrl="~/images/newReset_Button.jpg" TabIndex="20" ToolTip="Reset" On ClientClick="javascript:var t = document.getElementById('divValidate');if(t!=null){t.style.display = 'none';}" / > <asp:ImageButton runat="server" ID=" btnCancel" AlternateText="Cancel" OnClick="btnCancel_Click" TabIndex="21" ToolTip="Cancel" I mageUrl="~/images/button_cancel.jpg" /> </td> <td> &nbsp;&nbsp; </td> </tr> </ContentTemplate> </asp:UpdatePanel> </table> </div> </div> </div> </asp:Panel> </asp:Content>