Dialog_Tag_Select.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:7k
源码类别:

OA系统

开发平台:

C#

  1. var OxO958a=["inp_name","inp_access","inp_id","inp_index","inp_size","inp_Multiple","inp_Disabled","inp_item_text","inp_item_value","btnInsertItem","btnUpdateItem","btnDeleteItem","btnMoveUpItem","btnMoveDownItem","list_options","list_options2","inp_item_forecolor","inp_item_backcolor","value","text","color","style","backgroundColor","selectedIndex","options","Please select an item first","length","ondblclick","OPTION","document","id","cssText","Name","name","size","disabled","checked","multiple","tabIndex","","accessKey"];var inp_name=Window_GetElement(window,OxO958a[0x0],true);var inp_access=Window_GetElement(window,OxO958a[0x1],true);var inp_id=Window_GetElement(window,OxO958a[0x2],true);var inp_index=Window_GetElement(window,OxO958a[0x3],true);var inp_size=Window_GetElement(window,OxO958a[0x4],true);var inp_Multiple=Window_GetElement(window,OxO958a[0x5],true);var inp_Disabled=Window_GetElement(window,OxO958a[0x6],true);var inp_item_text=Window_GetElement(window,OxO958a[0x7],true);var inp_item_value=Window_GetElement(window,OxO958a[0x8],true);var btnInsertItem=Window_GetElement(window,OxO958a[0x9],true);var btnUpdateItem=Window_GetElement(window,OxO958a[0xa],true);var btnDeleteItem=Window_GetElement(window,OxO958a[0xb],true);var btnMoveUpItem=Window_GetElement(window,OxO958a[0xc],true);var btnMoveDownItem=Window_GetElement(window,OxO958a[0xd],true);var list_options=Window_GetElement(window,OxO958a[0xe],true);var list_options2=Window_GetElement(window,OxO958a[0xf],true);var inp_item_forecolor=Window_GetElement(window,OxO958a[0x10],true);var inp_item_backcolor=Window_GetElement(window,OxO958a[0x11],true); function SetOption(Ox472){ Ox472[OxO958a[0x13]]=inp_item_text[OxO958a[0x12]] ; Ox472[OxO958a[0x12]]=inp_item_value[OxO958a[0x12]] ; Ox472[OxO958a[0x15]][OxO958a[0x14]]=inp_item_forecolor[OxO958a[0x12]] ; Ox472[OxO958a[0x15]][OxO958a[0x16]]=inp_item_backcolor[OxO958a[0x12]] ;}  ; function SetOption2(Ox472){ Ox472[OxO958a[0x13]]=inp_item_value[OxO958a[0x12]] ; Ox472[OxO958a[0x12]]=inp_item_text[OxO958a[0x12]] ; Ox472[OxO958a[0x15]][OxO958a[0x14]]=inp_item_forecolor[OxO958a[0x12]] ; Ox472[OxO958a[0x15]][OxO958a[0x16]]=inp_item_backcolor[OxO958a[0x12]] ;}  ; function Select(Ox472){var Ox475=Ox472[OxO958a[0x17]]; list_options[OxO958a[0x17]]=Ox475 ; list_options2[OxO958a[0x17]]=Ox475 ; inp_item_text[OxO958a[0x12]]=list_options2[OxO958a[0x12]] ; inp_item_value[OxO958a[0x12]]=list_options[OxO958a[0x12]] ;}  ; function Insert(){var Ox472= new Option(); SetOption(Ox472) ; list_options[OxO958a[0x18]].add(Ox472) ;var Ox477= new Option(); SetOption2(Ox477) ; list_options2[OxO958a[0x18]].add(Ox477) ; FireUIChanged() ;}  ; function Update(){if(list_options[OxO958a[0x17]]==-0x1){ alert(OxO958a[0x19]) ;return ;} ;var Ox472=list_options.options(list_options.selectedIndex); SetOption(Ox472) ;var Ox477=list_options2.options(list_options2.selectedIndex); SetOption2(Ox477) ; FireUIChanged() ;}  ; function Move(Ox60){var Ox475=list_options[OxO958a[0x17]];if(Ox475<0x0){return ;} ;var Ox478=Ox475-Ox60;if(Ox478<0x0){ Ox478=0x0 ;} ;if(Ox478>(list_options[OxO958a[0x18]][OxO958a[0x1a]]-0x1)){ Ox478=list_options[OxO958a[0x18]][OxO958a[0x1a]]-0x1 ;} ;if(Ox475==Ox478){return ;} ;var Ox472=list_options.options(list_options.selectedIndex);var Ox25=list_options2[OxO958a[0x12]];var Oxe=list_options[OxO958a[0x12]]; Delete() ; inp_item_text[OxO958a[0x12]]=Ox25 ; inp_item_value[OxO958a[0x12]]=Oxe ;var Ox472= new Option(); SetOption(Ox472) ; list_options[OxO958a[0x18]].add(Ox472,Ox478) ;var Ox477= new Option(); SetOption2(Ox477) ; list_options2[OxO958a[0x18]].add(Ox477,Ox478) ; list_options[OxO958a[0x17]]=Ox478 ; list_options2[OxO958a[0x17]]=Ox478 ; FireUIChanged() ;}  ; function Delete(){if(list_options[OxO958a[0x17]]==-0x1||list_options[OxO958a[0x17]]==-0x1){ alert(OxO958a[0x19]) ;return ;} ;var Ox479=list_options[OxO958a[0x17]];var Ox472=list_options.options(list_options.selectedIndex); Ox472.removeNode(true) ; Ox472=list_options2.options(list_options2.selectedIndex) ; Ox472.removeNode(true) ;if(list_options[OxO958a[0x18]][OxO958a[0x1a]]>Ox479){ list_options[OxO958a[0x17]]=Ox479 ;} else {if(list_options[OxO958a[0x18]][OxO958a[0x1a]]){ list_options[OxO958a[0x17]]=list_options[OxO958a[0x18]][OxO958a[0x1a]]-0x1 ;} ;} ; list_options.ondblclick() ;if(list_options2[OxO958a[0x18]][OxO958a[0x1a]]>Ox479){ list_options2[OxO958a[0x17]]=Ox479 ;} else {if(list_options2[OxO958a[0x18]][OxO958a[0x1a]]){ list_options2[OxO958a[0x17]]=list_options2[OxO958a[0x18]][OxO958a[0x1a]]-0x1 ;} ;} ; FireUIChanged() ;}  ; list_options[OxO958a[0x1b]]=function list_options_ondblclick(){if(list_options[OxO958a[0x17]]==-0x1){return ;} ;var Ox472=list_options.options(list_options.selectedIndex); inp_item_text[OxO958a[0x12]]=Ox472[OxO958a[0x13]] ; inp_item_value[OxO958a[0x12]]=Ox472[OxO958a[0x12]] ; inp_item_forecolor[OxO958a[0x12]]=inp_item_forecolor[OxO958a[0x15]][OxO958a[0x16]]=Ox472[OxO958a[0x15]][OxO958a[0x14]] ; inp_item_backcolor[OxO958a[0x12]]=inp_item_backcolor[OxO958a[0x15]][OxO958a[0x16]]=Ox472[OxO958a[0x15]][OxO958a[0x16]] ;}  ; function CopySelect(Ox47c,Ox47d){ Ox47d[OxO958a[0x18]][OxO958a[0x1a]]=0x0 ;for(var i=0x0;i<Ox47c[OxO958a[0x18]][OxO958a[0x1a]];i++){var Ox47e=Ox47c[OxO958a[0x18]][i];var Ox477;if(Browser_IsWinIE()){ Ox477=Ox47d[OxO958a[0x1d]].createElement(OxO958a[0x1c]) ;} else { Ox477=document.createElement(OxO958a[0x1c]) ;} ;if(Ox47d[OxO958a[0x1e]]!=OxO958a[0xf]){ Ox477[OxO958a[0x12]]=Ox47e[OxO958a[0x12]] ; Ox477[OxO958a[0x13]]=Ox47e[OxO958a[0x13]] ;} else { Ox477[OxO958a[0x12]]=Ox47e[OxO958a[0x13]] ; Ox477[OxO958a[0x13]]=Ox47e[OxO958a[0x12]] ;} ; Ox477[OxO958a[0x15]][OxO958a[0x1f]]=Ox47e[OxO958a[0x15]][OxO958a[0x1f]] ; Ox47d[OxO958a[0x18]].add(Ox477) ;} ; Ox47d[OxO958a[0x17]]=Ox47c[OxO958a[0x17]] ;}  ; UpdateState=function UpdateState_Select(){}  ; SyncToView=function SyncToView_Select(){if(element[OxO958a[0x20]]){ inp_name[OxO958a[0x12]]=element[OxO958a[0x20]] ;} ;if(element[OxO958a[0x21]]){ inp_name[OxO958a[0x12]]=element[OxO958a[0x21]] ;} ; inp_id[OxO958a[0x12]]=element[OxO958a[0x1e]] ; inp_size[OxO958a[0x12]]=element[OxO958a[0x22]] ; CopySelect(element,list_options) ; CopySelect(element,list_options2) ; inp_Disabled[OxO958a[0x24]]=element[OxO958a[0x23]] ; inp_Multiple[OxO958a[0x24]]=element[OxO958a[0x25]] ;if(element[OxO958a[0x26]]==0x0){ inp_index[OxO958a[0x12]]=OxO958a[0x27] ;} else { inp_index[OxO958a[0x12]]=element[OxO958a[0x26]] ;} ;if(element[OxO958a[0x28]]){ inp_access[OxO958a[0x12]]=element[OxO958a[0x28]] ;} ;}  ; SyncTo=function SyncTo_Select(element){ element[OxO958a[0x21]]=inp_name[OxO958a[0x12]] ;if(element[OxO958a[0x20]]){ element[OxO958a[0x20]]=inp_name[OxO958a[0x12]] ;} else {if(element[OxO958a[0x21]]){ element.removeAttribute(OxO958a[0x21],0x0) ; element[OxO958a[0x20]]=inp_name[OxO958a[0x12]] ;} else { element[OxO958a[0x20]]=inp_name[OxO958a[0x12]] ;} ;} ; element[OxO958a[0x1e]]=inp_id[OxO958a[0x12]] ; element[OxO958a[0x22]]=inp_size[OxO958a[0x12]] ; element[OxO958a[0x23]]=inp_Disabled[OxO958a[0x24]] ; element[OxO958a[0x25]]=inp_Multiple[OxO958a[0x24]] ; element[OxO958a[0x28]]=inp_access[OxO958a[0x12]] ; element[OxO958a[0x26]]=inp_index[OxO958a[0x12]] ;if(element[OxO958a[0x26]]==OxO958a[0x27]){ element.removeAttribute(OxO958a[0x26]) ;} ;if(element[OxO958a[0x28]]==OxO958a[0x27]){ element.removeAttribute(OxO958a[0x28]) ;} ; CopySelect(list_options,element) ;}  ;