<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<repositoryVO id="__R1p67Ie7HpHp3F07kzt">
  <name>optsLib</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <content><![CDATA[/**                    
 03 单选是否选择                  
  **/                  
 function getYesOrNo(){                  
 	var opts=createOptions();    
 	opts.add("是","1");                  
 	opts.add("否","0");                  
 	return opts;                  
 }      
   function echoYesOrNo(key){   
     key += "";
     var YesOrNo = "";
     switch(key){
       case "1" : { YesOrNo += "是"; break; }
       case "0" : { YesOrNo += "否"; break; }
     }
     return YesOrNo;
   }

  function echoSex(key){   
     key += "";
     var Sex = "";
     switch(key){
       case "1" : { Sex += "男"; break; }
       case "2" : { Sex += "女"; break; }
     }
     return Sex;
   }
 
	
 	 
    /**                
 04    机构类型                
    **/                
    function getOfficeType(){                
 	var opts=createOptions();  
	opts.add("保安协会","0101");  	
 	opts.add("保安服务公司","0102");                
 	opts.add("保安培训单位","0103");                
 	opts.add("自行招用保安单位","0104");                               
 	return opts;                
    }    
     	
   // 05  普通保安服务公司设立许可/武装守护押运保安服务公司设立许可/中外合资经营、中外合作经营或外资独资经营保安服务公司设立许可       
 		 
   function getSevicePermitType(){       
 	  var opts=createOptions(); 
    opts.add("请选择","");  	  
 	opts.add("普通保安服务公司设立许可","1");       
 	opts.add("武装守护押运保安服务公司设立许可","2");       
 	opts.add("中外合资经营、中外合作经营或外资独资经营保安服务公司设立许可","3");	       
 	return opts;     
   } 
         
    // 06 下拉单选：企业根据意见处理、辞退、留用、企业自行处理    
    function getPoliceSuggestedTreatment(){    
     var opts=createOptions();     
    	opts.add("请选择","");    
    	opts.add("企业根据意见处理","1");    
    	opts.add("辞退","2");    
    	opts.add("留用","3");    
    	opts.add("企业自行处理","4");	    
    	return opts;    
    }  
	
   //07 主项信息不符合、涉军人员、犯罪、吸毒、抢劫犯、在逃、流浪、一级监控人员、重点人员   
      
   function getQuestionType(){   
   	var opts=createOptions();   
   	opts.add("请选择","");   
   	opts.add("主项信息不符合","1");   
   	opts.add("涉军人员","2");	   
   	opts.add("犯罪","3");	   
   	opts.add("吸毒","4");	   
   	opts.add("抢劫犯","5");	   
   	opts.add("在逃","6");	   
   	opts.add("流浪","7");	   
   	opts.add("一级监控人员","8");	   
   	opts.add("重点人员","9");		   
   	return opts;   
   } 
   
    
  /**     
     08 证书类型     
     **/     
          
     function getCertificateType(){     
     	var opts=createOptions();     
     	opts.add("保安资格证","1");     
     	opts.add("保安等级证","2");     
     	opts.add("保安持枪证","3");     
     	return opts;     
     } 
	 
	  	 
  /**                   
09 人员类别                   
 **/                   
 function getJobType2(){                   
 	var opts=createOptions();                   
 	opts.add("请选择","");                   
 	opts.add("普通保安员","1");                   
 	opts.add("武装押运人员","2");                   
 	opts.add("内勤人员","3");                   
 return opts;                   
 }  
  
  
 	 
  /**                   
 10 是否为分/子公司                
 **/                   
 function getIsSub(){                   
 	var opts=createOptions();                                    
 	opts.add("否","1"); 
 	opts.add("分公司","2"); 
 	opts.add("子公司","3");                   
 	return opts;                   
 } 
  
 /** 
 11 获取地区 
 **/ 
 function getRegion(){ 
 	var opts=createOptions(); 
 	opts.add("请选择",""); 
 	var sql="select '"+getDomainid()+"' as domainid,item_region FROM organizationauth.tlk_RegionSystem"; 
 	var datart=queryBySQL(sql); 
 	if(datart!=null){ 
 		for(var iter=datart.iterator();iter.hasNext();){ 
 			var docvo=iter.next(); 
 			opts.add(docvo.getItemValueAsString("region"),docvo.getItemValueAsString("region")); 
 		} 
 		 
 	} 
 	return opts; 
 }	
 
 
 /**
12 保安服务公司类型
 **/
 
  function getSecurityType(){                   
 	var opts=createOptions();                                    
 	opts.add("普通保安服务公司","1"); 
 	opts.add("武装守护押运保安服务公司","2");      
 	opts.add("中外合资经营、中外合作经营或外资独资经营保安服务公司","3");   	
 	return opts;                   
 } 
 /**
 13 等级证申报状态
 **/
 
  function getApprovalState(){                   
 	var opts=createOptions();  
    opts.add("请选择",""); 
 	opts.add("申报中","0",true); 
 	opts.add("申报通过","1");      
 	opts.add("申报不通过","2");   	
    opts.add("申报撤销","3"); 
 	opts.add("审批中","4");      	
 	return opts;                   
 } 

 /**
 14 背景筛查状态
 **/
 
  function getCensorState(){                   
 	var opts=createOptions();  
    opts.add("请选择",""); 
 	opts.add("审核中","0",true); 
 	opts.add("正常","1");      
 	opts.add("关注","2");   	
    opts.add("申诉通过","3"); 
 	opts.add("申诉不通过","4");      	
    opts.add("申诉中","5");   
 	return opts;                   
 } 
 /**
 15 实习状态
 **/
 
  function getPracticeState(){                   
 	var opts=createOptions();   
    opts.add("请选择",""); 
 	opts.add("实习中","0"); 
 	opts.add("实习完成","1");        
 	return opts;                   
 } 

 /**
16 材料审核状态
 **/
 
  function getCheckState(){                   
 	var opts=createOptions(); 
    opts.add("请选择",""); 
 	opts.add("未审核","0",true); 
 	opts.add("审核通过","1");      
 	opts.add("审核不通过","2");   	
    opts.add("审核中","3"); 
 	opts.add("-","4");//自然人      	      
 	return opts;                   
 } 
 // 17 户籍类型                  
                 
 function getHouseholdType(){                  
 	var opts=createOptions();    
   opts.add("请选择","");                  
 	opts.add("农村","1");                  
 	opts.add("城镇","2");                  
 	return opts;                  
 } 

   function echoHouseholdType(key){   
     key += "";
     var householdType = "";
     switch(key){
       case "1" : { householdType += "农村"; break; }
       case "2" : { householdType += "城镇"; break; }
     }
     return householdType;
   }

 //18 户籍所在地类型                  
                 
 function getresidentPlaceType(){                  
 	var opts=createOptions();      
 	opts.add("请选择","");                  
 	opts.add("本市","1");                  
 	opts.add("外埠","2");                  
 	return opts;                  
 } 

   function echoResidentPlaceType(key){   
     key += "";
     var residentPlaceType = "";
     switch(key){
       case "1" : { residentPlaceType += "本市"; break; }
       case "2" : { residentPlaceType += "外埠"; break; }
     }
     return residentPlaceType;
   }
//人员类型
  function echoSecurityType(key){   
     key += "";
     var securityType = "";
     switch(key){
       case "1" : { securityType += "普通保安员"; break; }
       case "2" : { securityType += "退伍军人"; break; }
     }
     return securityType;
   }

 //19 社保项目                                  
 function getSocialInsuranceProject(){                  
 	var opts=createOptions();      
   opts.add("请选择","");                  
 	opts.add("养老保险","1");                  
 	opts.add("医疗保险","2");                  
 	opts.add("失业保险","3");                  
 	opts.add("工伤保险","4");                  
 	opts.add("生育保险","5");                  
 	return opts;                  
 }

 // 20 性别                       
 function getSex(){                  
 	var opts=createOptions();    
   opts.add("请选择","");                  
 	opts.add("男","1");                  
 	opts.add("女","2");                  
 	return opts;                  
 } 
// 21 学历   下拉单选；小学、初中、高中、中专、大专、本科、硕士研究生、博士、博士后、其他
   function getEducation(){   
   	var opts=createOptions();   
   	opts.add("请选择","");   
   	opts.add("小学","1");   
   	opts.add("初中","2");	   
   	opts.add("高中","3");	   
   	opts.add("中专","4");	   
   	opts.add("大专","5");	   
   	opts.add("本科","6");	   
   	opts.add("硕士研究生","7");	   
   	opts.add("博士","8");	   
   	opts.add("博士后","9");		  
    opts.add("其他","10");	
   	return opts;   
   }

   function echoEducation(key){   
     key += "";
     var education = "";
     switch(key){
       case "1" : { education += "小学"; break; }
       case "2" : { education += "初中"; break; }
       case "3" : { education += "高中"; break; }
       case "4" : { education += "中专"; break; }
       case "5" : { education += "大专"; break; }
       case "6" : { education += "本科"; break; }
       case "7" : { education += "硕士研究生"; break; }
       case "8" : { education += "博士"; break; }
       case "9" : { education += "博士后"; break; }
       case "10" : { education += "其他"; break; } 
     }
     return education;
   }


// 22 民族
   function getNation(){  
var opts=createOptions();   
opts.add("汉族","1");
opts.add("蒙古族","2");
opts.add("回族","3");
opts.add("藏族","4");
opts.add("维吾尔族","5");
opts.add("苗族","6");
opts.add("彝族","7");
opts.add("壮族","8");
opts.add("布依族","9");
opts.add("朝鲜族","10");
opts.add("满族","11");
opts.add("侗族","12");
opts.add("瑶族","13");
opts.add("白族","14");
opts.add("土家族","15");
opts.add("哈尼族","16");
opts.add("哈萨克族","17");
opts.add("傣族","18");
opts.add("黎族","19");
opts.add("傈僳族","20");
opts.add("佤族","21");
opts.add("畲族","22");
opts.add("高山族","23");
opts.add("拉祜族","24");
opts.add("水族","25");
opts.add("东乡族","26");
opts.add("纳西族","27");
opts.add("景颇族","28");
opts.add("柯尔克孜族","29");
opts.add("土族","30");
opts.add("达斡尔族","31");
opts.add("仫佬族","32");
opts.add("羌族","33");
opts.add("布朗族","34");
opts.add("撒拉族","35");
opts.add("毛难族","36");
opts.add("仡佬族","37");
opts.add("锡伯族","38");
opts.add("阿昌族","39");
opts.add("普米族","40");
opts.add("塔吉克族","41");
opts.add("怒族","42");
opts.add("乌孜别克族","43");
opts.add("俄罗斯族","44");
opts.add("鄂温克族","45");
opts.add("崩龙族","46");
opts.add("保安族","47");
opts.add("裕固族","48");
opts.add("京族","49");
opts.add("塔塔尔族","50");
opts.add("独龙族","51");
opts.add("鄂伦春族","52");
opts.add("赫哲族","53");
opts.add("门巴族","54");
opts.add("珞巴族","55");
opts.add("基诺族","56");
opts.add("其他","57");
opts.add("外国血统中国籍人士","58");
return opts;   }

   function echoNation(key){   
     key += "";
     var nation = "";
     switch(key){
       case "1" : { nation += "汉族"; break; }
       case "2" : { nation += "蒙古族"; break; }
       case "3" : { nation += "回族"; break; }
       case "4" : { nation += "藏族"; break; }
       case "5" : { nation += "维吾尔族"; break; }
       case "6" : { nation += "苗族"; break; }
       case "7" : { nation += "彝族"; break; }
       case "8" : { nation += "壮族"; break; }
       case "9" : { nation += "布依族"; break; }
       case "10" : { nation += "朝鲜族"; break; } 
       case "11" : { nation += "满族"; break; }
       case "12" : { nation += "侗族"; break; }
       case "13" : { nation += "瑶族"; break; }
       case "14" : { nation += "白族"; break; }
       case "15" : { nation += "土家族"; break; }
       case "16" : { nation += "哈尼族"; break; }
       case "17" : { nation += "哈萨克族"; break; }
       case "18" : { nation += "傣族"; break; }
       case "19" : { nation += "黎族"; break; }
       case "20" : { nation += "傈僳族"; break; } 
       case "21" : { nation += "佤族"; break; }
       case "22" : { nation += "畲族"; break; }
       case "23" : { nation += "高山族"; break; }
       case "24" : { nation += "拉祜族"; break; }
       case "25" : { nation += "水族"; break; }
       case "26" : { nation += "东乡族"; break; }
       case "27" : { nation += "纳西族"; break; }
       case "28" : { nation += "景颇族"; break; }
       case "29" : { nation += "柯尔克孜族"; break; }
       case "30" : { nation += "土族"; break; } 
       case "31" : { nation += "达斡尔族"; break; }
       case "32" : { nation += "仫佬族"; break; }
       case "33" : { nation += "羌族"; break; }
       case "34" : { nation += "布朗族"; break; }
       case "35" : { nation += "撒拉族"; break; }
       case "36" : { nation += "毛难族"; break; }
       case "37" : { nation += "仡佬族"; break; }
       case "38" : { nation += "锡伯族"; break; }
       case "39" : { nation += "阿昌族"; break; }
       case "40" : { nation += "普米族"; break; } 
       case "41" : { nation += "塔吉克族"; break; }
       case "42" : { nation += "怒族"; break; }
       case "43" : { nation += "乌孜别克族"; break; }
       case "44" : { nation += "俄罗斯族"; break; }
       case "45" : { nation += "鄂温克族"; break; }
       case "46" : { nation += "崩龙族"; break; }
       case "47" : { nation += "保安族"; break; }
       case "48" : { nation += "裕固族"; break; }
       case "49" : { nation += "京族"; break; }
       case "50" : { nation += "塔塔尔族"; break; } 
       case "51" : { nation += "独龙族"; break; }
       case "52" : { nation += "鄂伦春族"; break; }
       case "53" : { nation += "赫哲族"; break; }
       case "54" : { nation += "门巴族"; break; }
       case "55" : { nation += "珞巴族"; break; }
       case "56" : { nation += "基诺族"; break; }
       case "57" : { nation += "其他"; break; }
       case "58" : { nation += "外国血统中国籍人士"; break; }
     }
     return nation;
   }


 /**
23 实习信息审核状态
 **/
 
  function getReviewTheStatus(){                   
 	var opts=createOptions(); 
    opts.add("请选择",""); 
 	opts.add("未审核","0",true); 
 	opts.add("审核通过","1");      
 	opts.add("审核不通过","2");   	   	      
 	return opts;                   
 }
 /**
24 等级证开班班级状态
 **/
 
  function getClassStatus(){                   
 	var opts=createOptions(); 
 	opts.add("待提交","0"); 
 	opts.add("审核通过","1");      
 	opts.add("审核不通过","2"); 
    opts.add("待审核","3");
    opts.add("已结束","4");
    opts.add("已取消","5");
 	return opts;                   
 }]]></content>
  <version>3</version>
</repositoryVO>