<cfinclude template="/corporate/tags/form.title.cfm">
<cfif IsDefined("error") and Len(error)><cfinclude template="/corporate/tags/form.error.cfm"></cfif>
<cfset isEdit=form.appObject.getFormIsEdit()>
<table width="100%" border="1" bordercolor="#00008B" class="borderCollapse" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr>
		<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
			<tr>
				<td width="50%" align="left" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
					<tr>
						<td class="formItemName"><b><cfoutput>#messages.form.dateRegistration#</cfoutput></b></td>
						<td>
							<cfoutput>#form.appObject.getDateRegistration()#</cfoutput>
						</td>
					</tr>
				</table></td>
				<td width="50%" align="left" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
						<td class="formItemName"><b><cfoutput>#messages.form.employee#</cfoutput></b></td>
						<td>
						<cfif isEdit and IsUserInRole("viewFull") and session.employee.getIdEmployeeType() neq application.employeeType.external>
							<cfset _selectObject=application.objectManager.getAppObject("employeeAccessProfile")>
							<select name="<cfoutput>#form.appObject.getFormPrefix()#</cfoutput>idEmployee">
								<cfset _selectObject.createSellerOptions(form.appObject.getIdEmployee())>
							</select>
						<cfelse>
							<cfif form.appObject.getIdEmployee() lt 1>
								<cfset form.appObject.setIdEmployee(session.employee.getIdEmployee())>
							</cfif>
							<input type="hidden" name="<cfoutput>#form.appObject.getFormPrefix()#</cfoutput>idEmployee" value="<cfoutput>#form.appObject.getIdEmployee()#</cfoutput>">
							<cfoutput>#form.appObject.getEmployee().getNameFull()#</cfoutput>
						</cfif>
						</td>
					</tr>
				</table></td>
			</tr>
			<tr>
				<td bgcolor="#00008B" colspan="2" height="1"><img src="/images/tr.gif" width="1" height="1"></td>
			</tr>
			<tr>
				<td width="50%" align="left" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
					<tr>
						<td class="formItemName"><b><cfoutput>#messages.form.nameFirst#</cfoutput></b></td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#nameFirst" type="text" value="#form.appObject.getNameFirst()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getNameFirst()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName"><cfoutput>#messages.form.nameFirst1#</cfoutput></td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#nameFirst1" type="text" value="#form.appObject.getNameFirst1()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getNameFirst1()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName">Ocupación</td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#occupation" type="text" value="#form.appObject.getOccupation()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getOccupation()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName">Estado Civil</td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#maritalStatus" type="text" value="#form.appObject.getMaritalStatus()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getMaritalStatus()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName">Compañía</td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#company" type="text" value="#form.appObject.getCompany()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getCompany()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName">Comentarios</td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#comments" type="text" value="#form.appObject.getComments()#" size="20" maxlength="200">
							<!--- <textarea name="#form.appObject.getFormPrefix()#comments" id="#form.appObject.getFormPrefix()#comments" cols="20" rows="4"><cfoutput>#form.appObject.getComments()#</cfoutput></textarea> --->
						<cfelse>
							<cfoutput>#form.appObject.getComments()#</cfoutput>
						</cfif>
						</td>
					</tr>
				</table>
				</td>
				<td width="50%" align="left" valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
					<tr>
						<td class="formItemName"><b><cfoutput>#messages.form.nameLast#</cfoutput></b></td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#nameLast" type="text" value="#form.appObject.getnameLast()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getNameLast()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName"><b><cfoutput>#messages.form.nameLast1#</cfoutput></b></td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#nameLast1" type="text" value="#form.appObject.getnameLast1()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getNameLast1()#</cfoutput>
						</cfif>
						</td>
					</tr>
					<tr>
						<td class="formItemName"><cfoutput>#messages.form.documentNumber#</cfoutput></td>
						<td>
						<cfif isEdit>
							<cfinput name="#form.appObject.getFormPrefix()#documentNumber" type="text" value="#form.appObject.getDocumentNumber()#" size="20" maxlength="200">
						<cfelse>
							<cfoutput>#form.appObject.getDocumentNumber()#</cfoutput>
						</cfif>
						</td>
					</tr>
				</table></td>
			</tr>
		</table></td>
		<cfinclude template="form.buttons.cfm">
	</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><img src="/images/tr.gif" width="100" height="1"></td></tr></table>
