﻿/*
BHChosen：下拉搜索控件

Version 1.1.0
Copyright (c) 博华科技
by Wilson Kwan 2019-11-22

组成部分：
    BHChosen.js
    BHChose.css
    BHChosen.png    
    chk.png    
    chked.png  
    bhchosensub.aspx（BHChosen.dll）

公有方法：
    1）初始化：BHChosenInit(select控件,参数对象)
    2）清空赋值：BHChosenClear(select控件)
    3）设置BHChosen的值：BHChosenSetValue(select控件,值,显示文本)

依赖：
    jquery-1.9.1.min.js
    Newtonsoft.Json.dll
*/

._bhChosen_canvas
{
    border:0px;
    background-color:#fff;
}

._bhChosen_ul
{
    margin:0px;
    padding:0px;
    display:none;
    border:1px solid #aaaaaa;
    border-top:0px;
    overflow:auto;
    max-height:210px;
    background-color:#fff;
}

._bhChosen_li
{
    padding:0px 4px;
    list-style:none;
    cursor:pointer;
    line-height:1.6;
}

/* ._bhChosen_li:hover, */
._bhChosen_li_selected
{
    background-color:#298FF5;
    color:#FFF;
}
._bhChosen_li_no_selected
{
    background-color:#fff;
    color:#060606;
}


._bhChosen_div_text
{
    top:0px; 
    left:0px;
    height: 24px;
    line-height: 20px;
}

._bhChosen_text
{
    height: 18px;
    line-height: 20px;
    border: 0px;
    border-bottom: 1px solid #aaaaaa;
    padding: 2px 20px 2px 4px;
    cursor:pointer;
    background: url("BHChosen.png") no-repeat;
    background-position:right -34px top 3px;
}

._bhChosen_popDiv
{
    position:absolute; 
    top:100%;
    left:0px;
    background-color:#fff;
}


._bhChosen_query
{
    height: 18px;
    line-height: 20px;
    border: 1px solid #aaaaaa;
    border-top: 0px;
    padding: 2px 20px 2px 4px;
    background: url(BHChosen.png) no-repeat 100% -20px;
}

._bhChosen_div_btn
{
    padding:4px;
    padding-left:0;
    border:1px solid #aaaaaa;
    border-top:0px;
    text-align:right;
    
}

._bhChosen_btnOk:hover
{
  border: 0;
  background: #3385FF;
}
._bhChosen_btnOk
{
  background: #005EEA;
  border: 0;
  color: #fff;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: none;
  font-size: 10px;
  margin-left: 4px;
  margin-right: 4px;
  letter-spacing: 1px;
  padding:2px 8px 4px 8px;
}

._bhChosen_btnAdd:hover
{
  border: 0;
  background: #00D269;
}
._bhChosen_btnAdd
{
  background: #00BF60;
  border: 0;
  color: #fff;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: none;
  font-size: 10px;
  margin-left: 4px;
  margin-right: 4px;
  letter-spacing: 1px;
  padding:2px 8px 4px 8px;
}

._bhChosen_btnClear:hover 
{
  background: #EAF2FF;
  color:#3385FF;
  border: 1px solid #AECEFF;
}
._bhChosen_btnClear 
{
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: none;
  font-size: 10px;
  margin-left: 4px;
  margin-right: 4px;
  letter-spacing: 1px;
  padding:2px 8px 4px 8px;
}

._bhChosen_chk
{
    padding-left:18px;
    background-image:url('chk.png');
    background-position:left center;
    background-repeat:no-repeat;
}

._bhChosen_chked
{
    padding-left:18px;
    background-image:url('chked.png');
    background-position:left center;
    background-repeat:no-repeat;
    color:#045bde;
}
._bhChosen_btnCheckAll
{
    display:inline-block;
}
    