<window title="${c:l('msg_dbCustomers_lbl_list_title')}" border="normal"  closable="true" height="560px"
	use="ez.store.controller.crm.contact.window.JB007AddCustomerWindow" width="1080px" style="background-color: white;">
	<div sclass="theme-default ">
	<vlayout width="100%" style="padding: 0px 10px;background-color: white;">
		<grid style="border: none;" sclass="grid_no_border" width="100%">
			<columns>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="100px"/>
				<column width="80px"/>
				<column></column>
			</columns>
			<rows>
				<row>
					<textbox width="108px"  id="tbxKeyword" value="${c:l ('msg_lbl_search') }" forward="onOK=onSearch" sclass="form-control"/>
					<combobox readonly="true" id="cbxSubscriber" width="112px"
						use="ez.store.common.handle.combobox.ComboboxService" forward="onOK=onSearch">
						<comboitem label = "${c:l ('msg_lbl_product_subscriber_name') }"/>
					</combobox>
					<datebox width="112px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_register_date') }" id="dbxFromReg" forward="onOK=onSearch" locale="vi"/>
					<datebox width="112px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_register_date') }" id="dbxToReg" forward="onOK=onSearch" locale="vi"/>			
					<combobox readonly="true" id="cbxFollower" width="112px" forward="onOK=onSearch"
						use="ez.store.common.handle.combobox.ComboboxUser">
						<comboitem label="${c:l ('msg_lbl_sale_employee') }"/>
					</combobox>
					<combobox readonly="true" id="cbxChannelType" width="112px" forward="onOK=onSearch">
						<comboitem label = "${c:l ('msg_lbl_channel_type') }"/>
						<comboitem value="12" label = "${c:l ('msg_lbl_channel_type_marketing') }"/>
						<comboitem value="1" label = "---${c:l ('msg_lbl_channel_type_hotline') }"/>
						<comboitem value="2" label = "---${c:l ('msg_lbl_channel_type_website') }"/>
						<comboitem value="6" label = "---${c:l ('msg_lbl_channel_type_email') }"/>
						<comboitem value="35" label = "${c:l ('msg_lbl_channel_type_direct_sale') }"/>
						<comboitem value="3" label = "---${c:l ('msg_lbl_channel_type_direct') }"/>
						<comboitem value="5" label = "---${c:l ('msg_lbl_channel_type_viral_effect') }"/>
						<comboitem value="7" label = "---${c:l ('msg_lbl_channel_type_neighbour') }"/>
						<comboitem value="4" label = "${c:l ('msg_lbl_channel_type_cross_selling') }"/>
					</combobox>	
					<combobox readonly="true" width="94px" id="cbxCustomerState" 
						use="ez.store.common.handle.combobox.ComboboxCustomerState" forward="onOK=onSearch">
						<comboitem label = "${c:l ('msg_lbl_customer_state') }"/>
						<comboitem value = "0" label = "${c:l ('msg_lbl_customer_state_register') }"/>
						<comboitem value = "-100" label = "${c:l ('msg_lbl_customer_state_spam_duplicated') }"/>
					</combobox>											
					<button id="btnSearch" label="${c:l ('msg_btn_search') }" width="80px" style="margin-right: 5px;" sclass="btn btn-default" forward="onClick=onSearch"/>
					<button id="btnAdvance" label="${c:l ('msg_btn_advance') }" sclass="btn btn-default" width="125px" forward="onClick=onVisibleGrid" />
				</row>
			</rows>
		</grid>
		<grid style="border: none;" sclass="grid_no_border" width="100%" id="gridAdvance1" visible="false">
			<columns>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column></column>		
			</columns>
			<rows>
				<row>		
					<combobox readonly="true" width="112px" id="cbxCountry" use="ez.store.common.handle.combobox.ComboboxCountry">
						<comboitem label = "${c:l ('msg_dbCustomers_lbl_countries') }"/>
					</combobox>	
					<combobox readonly="true" id="cbxState" use="ez.store.common.handle.combobox.ComboboxState" width="112px" forward="onOK=onSearch">
						<comboitem label = "${c:l ('msg_lbl_province') }"/>
					</combobox>	
					<combobox readonly="true" id="cbxDistrict" use="ez.store.common.handle.combobox.ComboboxDistrict" width="112px" forward="onOK=onSearch" >
						<comboitem label="${c:l ('msg_dbCustomers_lbl_customer_district') }" />
					</combobox>				
					<combobox readonly="true" id="cbxCompanyTitle" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_company_title') }"/>
						<comboitem value="0" label="${c:l ('msg_lbl_company_title_0_na') }" />
						<comboitem value="1" label="A -- ${c:l ('msg_lbl_company_title_1_boss') }" />
						<comboitem value="2" label="B -- ${c:l ('msg_lbl_company_title_2_manager') }" />
						<comboitem value="3" label="C -- ${c:l ('msg_lbl_company_title_3_employee') }"/>
						<comboitem value="4" label="D -- ${c:l ('msg_lbl_company_title_4_spy') }" />
					</combobox>
					<combobox readonly="true" id="cbxCustomerType" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_customer_type') }"/>					
						<comboitem value="1" label="${c:l ('msg_lbl_customer_type_1_customer') }"/>
						<comboitem value="2" label="${c:l ('msg_lbl_customer_type_2_prospect') }"/>
						<comboitem value="3" label="${c:l ('msg_lbl_customer_type_3_customer_from_competitor') }"/>
						<comboitem value="0" label="${c:l ('msg_lbl_customer_type_0_spy') }"/>
					</combobox>						
					<combobox readonly="true" id="cbxUseStatus" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_account_use_status') }"/>					
						<comboitem value="0" label="${c:l ('msg_lbl_account_use_status_0_trial') }"/>
						<comboitem value="1" label="${c:l ('msg_lbl_account_use_status_1_offical') }"/>
						<comboitem value="2" label="${c:l ('msg_lbl_account_use_status_2_suspend') }"/>
						<comboitem value="3" label="${c:l ('msg_lbl_account_use_status_3_return') }"/>
					</combobox>
					<combobox readonly="true" id="cbxNeedStatus" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_account_need_status') }"/>					
						<comboitem value="0" label="${c:l ('msg_lbl_account_need_status_0_na') }" />
						<comboitem value="1" label="${c:l ('msg_lbl_account_need_status_1_yes') }" />
						<comboitem value="2" label="${c:l ('msg_lbl_account_need_status_2_no') }" />
					</combobox>
					<combobox readonly="true" id="cbxDispStatus" width="112px" forward="onOK=onSearch">
						<comboitem label = "${c:l ('msg_lbl_status') }"/>					
						<comboitem value="1" label="${c:l ('msg_lbl_account_status_1_active') }"/>
						<comboitem value="3" label="${c:l ('msg_lbl_account_status_3_register') }"/>	
						<comboitem value="7" label="${c:l ('msg_lbl_account_status_7_inactive') }"/>
						<!--comboitem value="9" label="${c:l ('msg_lbl_account_status_9_delete') }"/-->
					</combobox>																							
				</row>
			</rows>
		</grid>
		<grid style="border: none;" sclass="grid_no_border" width="100%" id="gridAdvance2" visible="false">
			<columns>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>						
				<column width="125px"/>
				<column width="125px"/>			
				<column></column>		
			</columns>
			<rows>
				<row>
					<combobox readonly="true" width="112px" id="cbxCustomerCategory" 
						use="ez.store.common.handle.combobox.ComboboxCustomerCategory" forward="onOK=onSearch">
						<comboitem label = "${c:l ('msg_lbl_customer_category_name') }"/>
					</combobox>	
					<combobox readonly="true" id="cbxIndustry" use="ez.store.common.handle.combobox.ComboboxIndustry"
						width="112px" style="margin-top:2px;">
						<comboitem label="${c:l ('msg_lbl_industry') }" />
					</combobox>
					<combobox readonly="true" id="cbxSetupStatus" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_account_setup_status') }"/>					
						<comboitem value="0" label="${c:l ('msg_lbl_account_setup_status_0_on_boarding') }"/>
						<comboitem value="1" label="${c:l ('msg_lbl_account_setup_status_1_established') }"/>
					</combobox>
					<combobox readonly="true" id="cbxMigrateStatus" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_account_migrate_status') }"/>					
						<comboitem value="1" label="${c:l ('msg_lbl_account_migrate_status_1_request') }"/>
					</combobox>
					<combobox readonly="true" id="cbxSupport" width="112px" forward="onOK=onSearch"
						use="ez.store.common.handle.combobox.ComboboxUser">
						<comboitem label="${c:l ('msg_lbl_support_employee') }"/>
					</combobox>						
					<combobox readonly="true" id="cbxCompanyTime" width="112px" style="margin-top:2px;">
					<comboitem label="${c:l ('msg_dbCustomers_lbl_company_time_create') }" />
					<comboitem value="1" label="${c:l ('msg_dbCustomers_lbl_company_time_6_month') }" />
					<comboitem value="2" label="${c:l ('msg_dbCustomers_lbl_company_time_3_years') }" />
					<comboitem value="3" label="${c:l ('msg_dbCustomers_lbl_company_time_5_years') }" />
					<comboitem value="4" label="${c:l ('msg_dbCustomers_lbl_company_time') }" />
				</combobox>					
				<combobox readonly="true" id="cbxCompanySize" width="112px" style="margin-top:2px;">
					<comboitem label="${c:l ('msg_dbCustomers_lbl_company_size') }" />
					<comboitem value="1" label="${c:l ('msg_dbCustomers_lbl_company_size_1') }" />
					<comboitem value="2" label="${c:l ('msg_dbCustomers_lbl_company_size_2') }" />
					<comboitem value="3" label="${c:l ('msg_dbCustomers_lbl_company_size_3') }" />
				</combobox>	
				</row>
			</rows>
		</grid>
		<grid style="border: none;" sclass="grid_no_border" width="100%" id="gridAdvance3" visible="false">
			<columns>
				<column width="200px"/>
				<column width="200px"/>
				<column width="200px"/>
				<column width="200px"/>
				<column width="200px"/>
				<column></column>		
			</columns>
			<rows>
				<row>
					<hbox>
						<datebox width="91px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_contract_date') }" id="dbxFromContract" forward="onOK=onSearch" locale="vi"/>
						<datebox width="91px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_contract_date') }" id="dbxToContract" forward="onOK=onSearch" locale="vi"/>
					</hbox>
					<hbox>
						<datebox width="91px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_official_date') }" id="dbxFromOfficial" forward="onOK=onSearch" locale="vi"/>
						<datebox width="91px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_official_date') }" id="dbxToOfficial" forward="onOK=onSearch" locale="vi"/>
					</hbox>
					<hbox>
						<datebox width="91px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_expire_date') }" id="dbxFromExpire" forward="onOK=onSearch" locale="vi"/>
						<datebox width="92px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_expire_date') }" id="dbxToExpire" forward="onOK=onSearch" locale="vi"/>
					</hbox>
					<hbox>
						<datebox width="92px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_last_login_date') }" id="dbxFromLogin" forward="onOK=onSearch" locale="vi"/>
						<datebox width="93px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_last_login_date') }" id="dbxToLogin" forward="onOK=onSearch" locale="vi"/>
					</hbox>
					<hbox>
						<datebox width="92px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_follow_date') }" id="dbxFromFollow" forward="onOK=onSearch" locale="vi"/>
						<datebox width="93px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_follow_date') }" id="dbxToFollow" forward="onOK=onSearch" locale="vi"/>
					</hbox>						
				</row>
			</rows>
		</grid>
		<grid style="border: none;" sclass="grid_no_border" width="100%" id="gridAdvance4" visible="false">
			<columns>					
				<column width="200px"/>	
				<column width="125px"/>
				<column width="125px"/>
				<column width="125px"/>
				<column></column>		
			</columns>
			<rows>
				<row>	
					<hbox>
						<datebox width="92px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_support_date') }" id="dbxFromSupport" forward="onOK=onSearch" locale="vi"/>
						<datebox width="93px" format="dd/MM/yyyy" tooltiptext="${c:l ('msg_lbl_account_support_date') }" id="dbxToSupport" forward="onOK=onSearch" locale="vi"/>
					</hbox>					
					<combobox readonly="true" id="cbxAssign" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_customer_assign_status') }"/>					
						<comboitem value="0" label="${c:l ('msg_lbl_customer_assign_0_not_assign') }"/>
						<comboitem value="1" label="${c:l ('msg_lbl_customer_assign_1_assigned') }"/>
					</combobox>
					<combobox readonly="true" id="cbxWorking" width="112px" forward="onOK=onSearch">
						<comboitem label="${c:l ('msg_lbl_customer_working_status') }"/>					
						<comboitem value="1" label="${c:l ('msg_lbl_customer_working_1_new') }"/>
						<comboitem value="2" label="${c:l ('msg_lbl_customer_working_2_working') }"/>
						<comboitem value="3" label="${c:l ('msg_lbl_customer_working_3_again') }"/>
						<comboitem value="4" label="${c:l ('msg_lbl_customer_working_4_finish') }"/>
					</combobox>
					<combobox readonly="true" id="cbxOrderClause" width="112px" forward="onOK=onSearch,onSelect=onSearch">
						<comboitem label="${c:l ('msg_lbl_order_by_time') }"/>					
						<comboitem value="1" label="${c:l ('msg_lbl_order_by_login_time') }"/>
						<comboitem value="2" label="${c:l ('msg_lbl_order_by_last_login') }"/>
						<comboitem value="3" label="${c:l ('msg_lbl_order_by_action_time') }"/>
					</combobox>						
				</row>
			</rows>
		</grid>
		<div class="horizontal"></div>
		<hbox>
			<div>
				
			</div>
		</hbox>
		<div>
		     <button id="btnAddNew"  sclass="btn btn-primary" width="130px" label="${c:l ('msg_jcMail_lbl_add_customer_list') }" tooltiptext="${c:l('msg_btn_add')}" forward="onClick=onAdd" visible="false" />	
		 	 <button id="btnAddAllCustomer" width="158px" sclass="btn btn-primary" label="${c:l('msg_lbl_button_choose_all_customer')}" tooltiptext="${c:l('msg_lbl_button_choose_all_customer')}" forward="onClick=onAddAllCustomer" />
		 	<div class="ezpaging-add">
		 			<ezpaging style="background:white;color:#525252;" pageSize="10" pageSizeArr="5,10,15,20" totalSize="3"
					detailed="true" id="paging" detailTemplate="{0}-{1}/{2}" />
		 	</div>
		</div>		
		<grid id="grid_list" width="1050px" height="395px">
			<columns menupopup="auto" sizable="true">
				<column label="${c:l('msg_lbl_stt')}" align="center" width="30px"/>			
				<column width="50px" align="center">
					<checkbox id="chkAllCheckBox" forward="onCheck=onSelectAll" width="50px"/>
				</column>		
				<column label="${c:l('msg_lbl_customer_code')}" width="100px" />					
				<column label="${c:l('msg_lbl_customer_name')}" />
				<column label="${c:l('msg_dbCustomers_lbl_birthday')}" align="center" width="80px" visible="false"/>
				<column label="${c:l ('msg_dbCustomers_lbl_phone_number') }" width="80px" visible="false"/>
				<column label="${c:l ('msg_dbCustomers_lbl_cell_phone_number') }" width="150px"/>					
				<column label="${c:l('msg_lbl_email')}" width="200px"/>
				<column label="${c:l('msg_lbl_address')}" width="200px"/>
			</columns>
			<rows>	
			</rows>
		</grid>
	</vlayout>
	</div>
</window>
