
$(window).load(function(){setTimeout(function(){glg("dcxScrollbar.js","/js/control/scroll/jquery.dcxScrollbar.js")},1000)});var LrList={};function dqs(c,d,f,g,h,j,k,l,m,n,o,p,q,r,s){if(p&&h<100)h=400;if(p&&g<150)g=200;if(l!=true)l=false;if(r!=true)r=false;if(p!=true)p=false;if(s!=true)s=false;var t=new Array();if(typeof(k)=="string"&&!ymr(k)){var u=k.split(',');for(var i=0;i<u.length;i++){if(ymr($.trim(u[i])))continue;var v={};var w=u[i].split('/');v.Text=w[0].ngj();if(w.length>1)v.Value=$.trim(w[1]);else v.Value=$.trim(w[0]);if(w.length>2&&$.trim(w[2])=="1")v.IsChecked=1;else v.IsChecked=0;if(w.length>3)v.V1=$.trim(w[3]);if(w.length>4)v.V2=$.trim(w[4]);if(w.length>5)v.V3=$.trim(w[5]);t.push(v)}}else if(typeof(k)=="object"&&!ymr(k))t=k;if(g<10){if(h>0)g=h-30;else g=160;if(g<10)g=160}
if(h<30){if(g>0)h=g+30;else h=300;if(h<10)h=300}
var x=new nzy();x.append("<div class=\"form-lrlist\" IsOnlyLeft="+(r?"1":"0")+" id=\"lrlist_"+d+c+"_"+f+"\" EntId=\""+c+"\" "+(p?"isforfield=1":"")+" ype="+(l?"1":"0")+" IsDropDown="+(p?"1":"0")+" IsSingleSelected="+(s?"1":"0")+" OnlyLeft="+(r?"1":"0")+" IsCtrl=1 FieldName=\""+f+"\"  CtrlPrex=\""+d+"\" style=\"-width:"+(g*2+60)+"px;");if(p)x.append("display:none;");x.append("\" >");var y=new nzy();var z=new nzy();y.append("<!--左边框 开始-->");y.append("<div class='form-lrlist-left dscroll' IsLeft=1 style =\"");y.append("width:"+g+"px;");y.append("height:"+h+"px;");if(n)y.append("float:right;margin:0px;");y.append("\">");y.append("<!--标题栏 开始-->");y.append("<div class='form-lrlist-title' >");y.append("<div class='form-lrlist-title-txt'>待选项</div>");y.append("<div class='form-lrlist-title-op'><a class='form-lrlist-title-addall' href =\"javascript:void(0);\" onclick='javascript:bus(this);' >全选</a></div>");y.append("</div>");y.append("<!--标题栏 结束-->");y.append("<!--列表 开始-->");y.append("<div class='form-lrlist-content dscroll-box' style =\"overflow:hidden;");y.append("width:"+g+"px;");y.append("height:"+(h-33)+"px;");y.append("\">");y.append("<ul class=\"form-lrlist-list dscroll-container\" IsLeft=1 style=\"");y.append("\">\n");if(!r){z.append("<!--右边框 开始-->");z.append("<div class='form-lrlist-right dscroll' IsRight=1 style =\"");z.append("width:"+g+"px;");z.append("height:"+h+"px;");if(n)y.append("float:left;margin-left:0px;margin-right:40px;-margin-right:20px;");z.append("\">");z.append("<!--标题栏 开始-->");z.append("<div class='form-lrlist-title' >");z.append("<div class='form-lrlist-title-txt'>已选项</div>");z.append("<div class='form-lrlist-title-op'><a class='form-lrlist-title-empty' href =\"javascript:void(0);\" onclick='javascript:nzd(this);' title=\"清空全部选项\">清空</a></div>");z.append("</div>");z.append("<!--标题栏 结束-->");z.append("<!--列表 开始-->");z.append("<div class='form-lrlist-content dscroll-box' style =\"");z.append("width:"+g+"px;");z.append("height:"+(h-33)+"px;");z.append("\">");z.append("<ul class=\"form-lrlist-list dscroll-container\" IsRight=1 style=\"");z.append("\">\n")}
var A=null;var B=null;var C="";var D="";if(t.length<1){A="";B=""}else{for(var i=0;i<t.length;i++){var v=t[i];B=v.Text;A=v.Value;if(ymr(A))A=B;if(ymr(B))B=A;var E=v.IsChecked;var F=!ymr(v.V1)?" v1=\""+v.V1+"\" ":"";var G=!ymr(v.V2)?" v2=\""+v.V2+"\" ":"";var H=!ymr(v.V3)?" v3=\""+v.V3+"\" ":"";y.append("<li  class=\"form-lrlist-item\" onclick='javascript:odw(this);' IsChecked="+E+" tvalue=\""+A+"\" ttext=\""+B+"\" "+F+G+H+">\n");y.append("<a class='form-lrlist-text' href='javascript:void(0);' >"+B+"</a>");y.append("<div ");if(E==1){C=C+A+",";D=D+B+",";if(!r){z.append("<li class=\"form-lrlist-selected\" tvalue=\""+A+"\" ttext=\""+B+"\" "+F+G+" title=\"可拖动\">\n");z.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+B+"</a>\n");z.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:mos(this);' ></div><br style=\"clear:both;\" />\n");z.append("</li>\n")}}else y.append("style='display: none' ");y.append("class='form-lrlist-checked'  title=\"本项已选\"></div><br style=\"clear:both;\" />\n");y.append("</li>\n")}}
y.append("</ul><div class='dragger-container' ><div class='dscroll-dragger'></div></div>\n");y.append("</div>");y.append("<!--列表 结束-->");y.append("</div>");y.append("<!--左边框 结束-->");if(!r){z.append("</ul><div class='dragger-container' ><div class='dscroll-dragger'></div></div>\n");z.append("</div>");z.append("<!--列表 结束-->");z.append("</div>");z.append("<!--右边框 结束-->")}
x.append(y.toString());if(!r)x.append(z.toString());x.append("<br style=\"clear:both;\" />\n");x.append("</div>");var I=m;if(ymr(I)||I.length<1){if(ymr(o))o=yvm(c,d);I=ppq(null,c,d,f,o,l,"input")}
I.val(C);if(p){var J=null;var K=jpy(I);if(!l&&!ymr(K)&&K.length>0){J=K.find("[CId]");if(!ymr(J)&&J.length>0)J.val(D)}
var L=leq(c,d);var M=$(x.toString());L.append(M);if(!r)M.find("ul[IsRight=1]").sortable({update:function(a,b){ymh(b.item)}}).disableSelection();else M.find("ul[IsLeft=1]").sortable({update:function(a,b){kds(b.item)}}).disableSelection();var N=function(){if($.fn.dcxScrollbar==undefined){setTimeout(function(){N()},1000)}
var b=M.find(".dscroll");b.each(function(){var a=$(this);a.attr("hasScroll","1");a.dcxScrollbar()})};try{glg("dcxScrollbar.js","/js/control/scroll/jquery.dcxScrollbar.js");setTimeout(function(){N()},2000)}catch(e){}}else{var K=jpy(I);if(!l&&!ymr(K)&&K.length>0){K.attr("OnlyLeft",(r?"1":"0"));K.html(x.toString())}
if(!r)K.find("ul[IsRight=1]").sortable({update:function(a,b){ymh(b.item)}}).disableSelection();else K.find("ul[IsLeft=1]").sortable({update:function(a,b){kds(b.item)}}).disableSelection()}}
LrList.CreateHtml=dqs
function bbo(a,b,c,d,e,f,g,h,i,j,k,l,m){dqs(a,b,c,d,e,f,g,h,i,j,k,l,m,true)}
LrList.CreateLeftHtml=bbo;function nhz(c,d,e,f,g,h,j,k){if(k!=true)k=false;if(ymr(f))f="";var l=j;var m=null;if(ymr(l)||l.length<1){if(ymr(m))m=yvm(c,d);l=ppq(null,c,d,e,m,h,"input")}
var n=null;var o=null;var p=false;if(parseInt(l.attr("CId"),10)==39){p=true;n=jpy(l);o=n.find("[CId]");var q=leq(c,d);if(!ymr(q))n=q.children("div[FieldName='"+$.trim(e)+"']:first")}else{n=jpy(l)}
var r=(parseInt(n.attr("OnlyLeft"),10)==1?true:false);var s=g.split(',');var t=new nzy();var u=new nzy();var v=null;var w=null;var x="";var y="";if(s.length<1){v="";w="";t.append("<li  class=\"form-lrlist-item\">\n");t.append("<a class='form-lrlist-text' href='javascript:void(0);' >"+w+"</a>");t.append("<div style='display: none' class='form-lrlist-checked' >已选中</div><br style=\"clear:both;\" />\n");t.append("</li>\n")}else{for(var i=0;i<s.length;i++){if(ymr($.trim(s[i])))continue;var z=s[i].split('/');w=z[0].ngj();if(z.length>1)v=$.trim(z[1]);else v=$.trim(z[0]);if(ymr(v))v=w;if(ymr(w))w=v;var A=z.length>2&&$.trim(z[2])=="1"?1:0;var B=z.length>3?" v1=\""+$.trim(z[3])+"\" ":"";var C=z.length>3?" v2=\""+$.trim(z[4])+"\" ":"";t.append("<li  class=\"form-lrlist-item\" onclick='javascript:odw(this);"+f+"' IsChecked="+A+" tvalue=\""+v+"\" ttext=\""+w+"\" "+B+C+">\n");t.append("<a class='form-lrlist-text' href='javascript:void(0);' >"+w+"</a>");t.append("<div ");if(A==1){x=x+v+",";y=y+w+",";if(!r){u.append("<li class=\"form-lrlist-selected\" tvalue=\""+v+"\" ttext=\""+w+"\" "+B+C+" title=\"可拖动\">\n");u.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+w+"</a>\n");u.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:mos(this);' ></div><br style=\"clear:both;\" />\n");u.append("</li>\n")}}else t.append("style='display: none' ");t.append("class='form-lrlist-checked'  title=\"本项已选\"></div><br style=\"clear:both;\" />\n");t.append("</li>\n")}}
if(!k){l.val(x);if(p){if(!ymr(o)&&o.length>0)o.val(y)}}
var D=n.find("ul[IsLeft=1]");D.html(t.toString());if(!k){if(!r){var E=n.find("ul[IsRight=1]");E.html(u.toString());E.sortable({update:function(a,b){ymh(b.item)}}).disableSelection()}else D.sortable({update:function(a,b){kds(b.item)}}).disableSelection()}}
LrList.Init=nhz;function cyl(c,d,e,f,g,h,j,l,m){if(!ymr(m)&&m.length>0){m=m.split(",");if(m.length>0)l=false;else m=null}else m=null;if(l!=true)l=false;if(ymr(f))f="";var n=j;var o=null;if(ymr(n)||n.length<1){if(ymr(o))o=yvm(c,d);n=ppq(null,c,d,e,o,h,"input")}
var p=null;var q=null;var r=false;if(parseInt(n.attr("CId"),10)==39){r=true;p=jpy(n);q=p.find("[CId]");var s=leq(c,d);if(!ymr(s))p=s.children("div[FieldName='"+$.trim(e)+"']:first")}else{p=jpy(n)}
var t=(parseInt(p.attr("OnlyLeft"),10)==1?true:false);if(ymr(g)){g=new Array()}
var u=new nzy();var v=new nzy();var w=null;var x=null;var y="";var z="";if(g.length<1){w="";x="";u.append("<li  class=\"form-lrlist-item\">\n");u.append("<a class='form-lrlist-text' href='javascript:void(0);' >"+x+"</a>");u.append("<div style='display: none' class='form-lrlist-checked' >已选中</div><br style=\"clear:both;\" />\n");u.append("</li>\n")}else{for(var i=0;i<g.length;i++){if(ymr($.trim(g[i].Value)))continue;var A=g[i];x=$.trim(A.Text);w=$.trim(A.Value);var B=A.IsChecked?1:0;var C=ymr(A.V1)?"":" v1=\""+$.trim(A.V1)+"\" ";var D=ymr(A.V2)?"":" v2=\""+$.trim(A.V2)+"\" ";var E=ymr(A.V3)?"":" v3=\""+$.trim(A.V3)+"\" ";u.append("<li  class=\"form-lrlist-item\" onclick='javascript:odw(this);"+f+"' IsChecked="+B+" tvalue=\""+w+"\" ttext=\""+x+"\" "+C+D+E+">\n");u.append("<a class='form-lrlist-text' href='javascript:void(0);' >"+x+"</a>");u.append("<div ");if(!ymr(w)&&!ymr(m)){B=0;for(var k=0;k<m.length;k++){if(w==$.trim(m[k])){B=1;break}}}
if(B==1){y=y+w+",";z=z+x+",";if(!t){v.append("<li class=\"form-lrlist-selected\" tvalue=\""+w+"\" ttext=\""+x+"\" "+C+D+E+" title=\"可拖动\">\n");v.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+x+"</a>\n");v.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:mos(this);' ></div><br style=\"clear:both;\" />\n");v.append("</li>\n")}}else u.append("style='display: none' ");u.append("class='form-lrlist-checked'  title=\"本项已选\"></div><br style=\"clear:both;\" />\n");u.append("</li>\n")}}
if(!l){n.val(y);if(r){if(!ymr(q)&&q.length>0)q.val(z)}}
var F=p.find("ul[IsLeft=1]");F.html(u.toString());if(!l){if(!t){var G=p.find("ul[IsRight=1]");G.html(v.toString());G.sortable({update:function(a,b){ymh(b.item)}}).disableSelection()}else F.sortable({update:function(a,b){kds(b.item)}}).disableSelection()}}
LrList.Init2=cyl;function odw(c,d,e,f){var g=false;var h=$(c);var i=$.trim(h.attr("tvalue"));var j=h.attr("ttext");var k=h.attr("v1");var l=h.attr("v2");k=ymr(k)?"":" v1=\""+k+"\" ";l=ymr(l)?"":" v2=\""+l+"\" ";if(ymr(i))i=j;if(ymr(j))j=i;var m=vuj($(c));var n=null;var o=null;var p=null;if(parseInt(m.attr("IsDropDown"),10)==1){o=LrList.$targetObj;var q=(parseInt(m.attr("ype"),10)==1?true:false);n=wyb(o);p=vuj(o);if(parseInt(p.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}}else{n=wyb($(c),m);if(parseInt(m.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}}
var r=(parseInt(m.attr("OnlyLeft"),10)==1?true:false);if(h.attr("IsChecked")=="1"){if(!r){var s=m.find("ul[IsRight=1]");var t=s.find("li[tvalue='"+$.trim(h.attr("tvalue"))+"']");if(t.length>0){mos(t.children(":first").get(0));t.remove()}}else{h.attr("IsChecked","0");h.find(".form-lrlist-checked").hide();var u="";var v="";h.parent().children("[IsChecked=1]").each(function(){var a=$.trim($(this).attr("tvalue"));var b=$(this).attr("ttext");u=u+a+",";v=v+b+","});if(u.length>0)u=u.substr(0,u.length-1);n.val(u);if(!ymr(o)&&o.length>0){if(v.length>0)v=v.substr(0,v.length-1);o.val(v)}}
return}
var w=n.val();if(w.length>0&&w[w.length-1]!=',')w=w+',';w=w+i;n.val(w);if(!ymr(o)&&o.length>0){var x=o.val();if(x.length>0&&x[x.length-1]!=',')x=x+',';x=x+j;o.val(x)}
if(!r){var s=m.find("ul[IsRight=1]");var y=new nzy();y.append("<li class=\"form-lrlist-selected\" tvalue=\""+i+"\" ttext=\""+j+"\""+k+l+">\n");y.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+j+(ymr(e)?"":e)+"</a>\n");y.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:"+(ymr(d)?"mos":d)+"(this);' ></div><br style=\"clear:both;\" />\n");y.append("</li>\n");s.append(y.toString());s.sortable({update:function(a,b){ymh(b.item);if(!ymr(f))f()}}).disableSelection()}else{}
h.attr("IsChecked","1");h.find(".form-lrlist-checked").show()}
LrList.AddItem=odw;function ajh(c,d,e,f,g,h){if(ymr(f)||f.length<1)return;var j=ppq(null,c,d,e,g,h,"input");if(ymr(j))return;var k=","+$.trim(j.val());var l=$.trim(j.val());var m="";var n=null;var o=null;var p=parseInt(j.attr("CId"),10);if(p==39){var q=leq(c,d);if(!ymr(q))n=q.children("div[FieldName='"+$.trim(e)+"']:first");$bindHtml=jpy($valCtrl);if(parseInt($bindHtml.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}
o=$bindHtml.find("[CId]");m=o.val()}else{n=jpy(j);if(parseInt(n.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}}
if(ymr(n)||n.length<1)return"";var r=n.find("ul[IsRight=1]");var s=n.find("ul[IsLeft=1]").children();var t=new nzy();for(var i=0;i<f.length;i++){var u=$.trim(f[i].Value);var v=$.trim(f[i].Text);if(k.indexOf(","+u+",")<0){l=l+u+",";m=m+v+",";t.append("<li class=\"form-lrlist-selected\" tvalue=\""+u+"\" ttext=\""+v+"\" title=\"可拖动\" ");if(!ymr(f[i].v1))t.append(" v1=\""+f[i].v1+"\" ");if(!ymr(f[i].v2))t.append(" v2=\""+f[i].v2+"\" ");t.append(">\n");t.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+v+"</a>\n");t.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:mos(this);' ></div><br style=\"clear:both;\" />\n");t.append("</li>\n");var w=s.filter("[tvalue='"+u+"']");w.attr("IsChecked","1");w.find(".form-lrlist-checked").show()}}
j.val(l);if(!ymr(o))o.val(m);r.html(t.toString());r.sortable({update:function(a,b){ymh(b.item)}}).disableSelection()}
LrList.AddItemByValue=ajh;function mos(a){var b=false;var c=$(a).parent();while(!ymr(c)&&c.length>0){if(!ymr(c.attr("tvalue"))){b=true;break}else{c=c.parent()}}
if(!b){alert("获取数据失败！");return}
var d=vuj($(a));var e=null;var f=null;var g=null;if(ymr(d))return;if(parseInt(d.attr("IsDropDown"),10)==1){f=LrList.$targetObj;var h=(parseInt(d.attr("ype"),10)==1?true:false);e=wyb(f);g=vuj(f);if(parseInt(g.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}}else{if(parseInt(d.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}
e=wyb($(a),d)}
var i=$.trim(c.attr("tvalue"));var j=c.attr("ttext");if(ymr(i))i=j;if(ymr(j))j=i;if(!ymr(f)&&f.length>0){var k=f.val();var t=0;if(k.length>0){k=","+k;if(k[k.length-1]!=","){k=k+",";t=1}}
k=k.replaceAll(","+j+",",",");if(k.length>0&&k[0]==',')k=k.substr(1,k.length-1);if(k.length>0&&k[k.length-1]==',')k=k.substr(0,k.length-1);f.val(k)}
var l=d.find("ul[IsLeft=1]").find("li[tvalue='"+i+"']");l.attr("IsChecked","0");l.find(".form-lrlist-checked").hide();c.remove();var k=e.val();var t=0;if(k.length>0){k=","+k;if(k[k.length-1]!=","){k=k+",";t=1}}
k=k.replaceAll(","+i+",",",");if(k.length>0&&k[0]==',')k=k.substr(1,k.length-1);if(k.length>0&&k[k.length-1]==',')k=k.substr(0,k.length-1);e.val(k)}
LrList.RemoveItem=mos;function bus(e){var f=vuj($(e));var g=null;var h=null;var i=null;if(parseInt(f.attr("IsDropDown"),10)==1){h=LrList.$targetObj;var j=(parseInt(f.attr("ype"),10)==1?true:false);g=wyb(h);i=vuj(h);if(parseInt(i.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}}else{if(parseInt(f.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}
g=wyb($(e),f)}
var k=(parseInt(f.attr("OnlyLeft"),10)==1?true:false);var l="";var m="";var n=k?null:f.find("ul[IsRight=1]");var o=new nzy();f.find("ul[IsLeft=1]").children().each(function(){var a=$(this).attr("tvalue");var b=$(this).attr("ttext");if($(this).attr("isLock")!="1"){l=l+a+",";m=m+b+",";if($(this).attr("IsChecked")=="0"){var c=$(this).attr("v1");var d=$(this).attr("v2");c=ymr(c)?"":" v1=\""+c+"\" ";d=ymr(d)?"":" v2=\""+d+"\" ";if(!k){o.append("<li class=\"form-lrlist-selected\" tvalue=\""+a+"\" ttext=\""+b+"\" "+c+d+" title=\"可拖动\">\n");o.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+b+"</a>\n");o.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:mos(this);' ></div><br style=\"clear:both;\" />\n");o.append("</li>\n")}
$(this).attr("IsChecked","1");$(this).find(".form-lrlist-checked").show()}}});if(l.length>0)l=l.substr(0,l.length-1);g.val(l);if(m.length>0)m=m.substr(0,m.length-1);if(!ymr(h)&&h.length>0)h.val(m);if(!k){n.append(o.toString());n.sortable({update:function(a,b){ymh(b.item)}}).disableSelection()}}
LrList.SelectAll=bus;function nzd(a){var b=vuj($(a));var c=null;var d=null;var e=null;if(parseInt(b.attr("IsDropDown"),10)==1){d=LrList.$targetObj;var f=(parseInt(b.attr("ype"),10)==1?true:false);c=wyb(d);e=vuj(d);if(parseInt(e.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}}else{if(parseInt(b.attr("IsDisabled"),10)==1){art.VLdialog({content:'禁止操作',time:0.4});return false}
c=wyb($(a),b)}
c.val("");if(!ymr(d))d.val("");b.find("ul[IsRight=1]").children().remove();b.find("ul[IsLeft=1]").children().attr("IsChecked","0").find(".form-lrlist-checked").hide()}
LrList.jeaAll=nzd;function zqp(f,g,h,i,j,k){var l=null;if(!ymr(f)){if($(f).attr("IsField")=="1")l=jpy($(f));else l=$(f)}else{var m=ppq(null,g,h,i,j,k,"input");var n=parseInt(m.attr("CId"),10);if(n==39){var o=leq(g,h);if(!ymr(o))l=o.children("div[FieldName='"+$.trim(i)+"']:first")}else l=jpy(m)}
if(ymr(l))return"";var p=(parseInt(l.attr("OnlyLeft"),10)==1?true:false);var q="";var r=p?l.find("ul[IsLeft=1]").children("[ischecked=1]"):l.find("ul[IsRight=1]").children();r.each(function(){var a=$.trim($(this).attr("tvalue")).replaceAll(",","%$");var b=$.trim($(this).attr("ttext")).replaceAll(",","%$");var c=$(this).attr("v1");var d=$(this).attr("v2");var e=$(this).attr("v3");c=ymr(c)?"":"/"+c;d=ymr(d)?"":"/"+d;e=ymr(e)?"":"/"+e;q=q+b+"/"+a+c+d+e+","});if(q.length>0)q=q.substr(0,q.length-1);return q}
LrList.GetTextValue=zqp;function lwa(b,c,d,e,f,g){var h=null;if(!ymr(b)){if($(b).attr("IsField")=="1")h=jpy($(b));else h=$(b)}else{var i=ppq(null,c,d,e,f,g,"input");var j=parseInt(i.attr("CId"),10);if(j==39){var k=leq(c,d);if(!ymr(k))h=k.children("div[FieldName='"+$.trim(e)+"']:first")}else h=jpy(i)}
if(ymr(h))return"";var l=(parseInt(h.attr("OnlyLeft"),10)==1?true:false);var m="";var n=l?h.find("ul[IsLeft=1]").children("[ischecked=1]"):h.find("ul[IsRight=1]").children();n.each(function(){var a=$.trim($(this).attr("ttext")).replaceAll(",","%$");m=m+a+","});if(m.length>0)m=m.substr(0,m.length-1);return m}
LrList.GetCtrlText=lwa;function abl(b,c,d,e,f,g){var h=null;if(!ymr(b)){if($(b).attr("IsField")=="1")h=jpy($(b));else h=$(b)}else{var i=ppq(null,c,d,e,f,g,"input");var j=parseInt(i.attr("CId"),10);if(j==39){var k=leq(c,d);if(!ymr(k))h=k.children("div[FieldName='"+$.trim(e)+"']:first")}else h=jpy(i)}
if(ymr(h)||h.length<1)return"";var l=(parseInt(h.attr("OnlyLeft"),10)==1?true:false);var m="";var n=l?h.find("ul[IsLeft=1]").children("[ischecked=1]"):h.find("ul[IsRight=1]").children();n.each(function(){var a=$.trim($(this).attr("tvalue")).replaceAll(",","%$");m=m+a+","});if(m.length>0)m=m.substr(0,m.length-1);return m}
LrList.GetCtrlValue=abl;function mhw(c){if(ymr(c)||c.length<1)return;var d="";$ctrl.find("ul[IsRight=1]").children().each(function(){var a=$.trim($(this).attr("tvalue"));var b=$(this).attr("ttext");d=d+a+","});if(d.length>0)d=d.substr(0,d.length-1);return d}
LrList.GetRightValue=mhw;function ymh(c){var d=vuj(c);var e=null;var f=null;var g=null;if(parseInt(d.attr("IsDropDown"),10)==1){e=ppq(null,d.attr("EntId"),d.attr("CtrlPrex"),d.attr("FieldName"),null,(parseInt(d.attr("ype"),10)==1?true:false),null);g=jpy(e);f=g.find("[CId]")}else{e=wyb(c,d)}
var h="";var i="";d.find("ul[IsRight=1]").children().each(function(){var a=$.trim($(this).attr("tvalue"));var b=$(this).attr("ttext");h=h+a+",";i=i+b+","});if(h.length>0)h=h.substr(0,h.length-1);e.val(h);if(i.length>0)i=i.substr(0,i.length-1);if(!ymr(f))f.val(i);return}
LrList.ycaByRight=ymh;function kds(c){var d=vuj(c);var e=null;var f=null;var g=null;if(parseInt(d.attr("IsDropDown"),10)==1){e=ppq(null,d.attr("EntId"),d.attr("CtrlPrex"),d.attr("FieldName"),null,(parseInt(d.attr("ype"),10)==1?true:false),null);g=jpy(e);f=g.find("[CId]")}else{e=wyb($(obj),d)}
var h="";var i="";d.find("ul[IsLeft=1]").children().children("[IsChecked=1]").each(function(){var a=$.trim($(this).attr("tvalue"));var b=$(this).attr("ttext");h=h+a+",";i=i+b+","});if(h.length>0)h=h.substr(0,h.length-1);e.val(h);if(i.length>0)i=i.substr(0,i.length-1);if(!ymr(f))f.val(i);return}
LrList.ycaByLeft=kds;LrList.zit=function(d,e,f,g){var h=$(d);var i=DcxForm.GetTopHCtrl(h);var j=DcxForm.GetBindingVCtrl(h,i);var k=$.trim(j.attr("fieldname"));var l=false;var m=$.trim(j.val());var n=false;if(parseInt(j.attr("CId"),10)==39){n=true;var o=leq(e,f);if(!ymr(o))i=o.children("div[FieldName='"+$.trim(k)+"']:first")}else{i=jpy(j)}
var p=(parseInt(i.attr("OnlyLeft"),10)==1?true:false);var q="";var r=","+m+",";var s=j.prev();if(n)s=i;var t=s.find("ul[IsRight=1]");if(t.length<1)return;if(ymr(m)){t.html("");var u=s.find("ul[IsLeft=1]").children("li");u.attr("IsChecked","0");u.find(".form-lrlist-checked").hide();return}
var p=(parseInt(i.attr("OnlyLeft"),10)==1?true:false);var v=new nzy();var w=l&&!isNaN(j.attr("UUT"))?true:false;s.find("ul[IsLeft=1]").children().each(function(){var a=$(this);var b=$.trim(a.attr("tvalue"));if(ymr(b))b=$.trim(a.attr("ttext"));if(ymr(b))return true;if(w)a.removeAttr("click");if(r.indexOf(","+b+",")<0){a.attr("IsChecked","0");a.find(".form-lrlist-checked").hide()}else{var c=a.attr("ttext");q=q+$.trim(a.attr("ttext"))+",";if(!p){v.append("<li class=\"form-lrlist-selected\" tvalue=\""+b+"\" ttext=\""+c+"\" title=\"可拖动\">\n");v.append("<a class=\"form-lrlist-text\" href=\"javascript:void(0);\">"+c+"</a>\n");v.append("<div class=\"form-lrlist-remove\" title=\"移除\" onclick='javascript:mos(this);' ></div><br style=\"clear:both;\" />\n");v.append("</li>\n")}
a.attr("IsChecked","1");a.find(".form-lrlist-checked").show()}});if(!p){t.html(v.toString());t.sortable({update:function(a,b){ymh(b.item)}}).disableSelection()}else{if(!ymr(h)&&h.length>0)h.val(q);qew.sortable({update:function(a,b){kds(b.item)}}).disableSelection()}}
function loe(c,d,e,f,g){var h=wyb($(c),null);if($(c).attr("disabled"))return false;var i=e+d+"_"+f;LrList.$list=$('#lrlist_'+i);LrList.$list.css("position","fixed");var p=Dcx.jxu(c,LrList.$list.get(0));LrList.$list.css({'left':(p.left-5)+'px','top':p.top+'px'});LrList.$list.attr("EntId",d);LrList.$list.attr("FieldName",f);if(g==false)LrList.$list.show();LrList.$list.css('display','block');LrList.CurLrListId_AF='lrlist_'+i;LrList.vyt=$(c).attr("id");LrList.$targetObj=$(c);LrList.EntId=d;LrList.FieldName=f;LrList.CtrlPrex=e;LrList.zit(c,d,e,false);if(LrList.$list.attr("isNotFirstTime")!="1"){$(document).mouseup(function(a){var b=$(a.target);if(!Dcx.wsj(b,LrList.$list.attr("id"),20))LrList.$list.hide()});LrList.$list.attr("isNotFirstTime","1")}}
LrList.ShowDialogAf=loe;function xup(a,b,c,d,e,f,g,h,i){}
LrList.ReturnValueAf=xup;function jza(c,d,e,f,g){var h=wyb($(c),null);if($(c).attr("disabled"))return false;var i=e+d+"_"+f;LrList.$list=$('#lrlist_'+i);LrList.$list.css("position","fixed");var p=Dcx.jxu(c,LrList.$list.get(0));LrList.$list.css({'left':(p.left-5)+'px','top':p.top+'px'});LrList.$list.attr("EntId",d);LrList.$list.attr("FieldName",f);if(g==false)LrList.$list.show();LrList.$list.css('display','block');LrList.CurLrListId_LF='lrlist_'+i;LrList.CurFormCtrlId_LF=$(c).attr("id");LrList.$targetObj=$(c);LrList.EntId=d;LrList.FieldName=f;LrList.CtrlPrex=e;LrList.$rowObj=DcxForm.GetRow(c,d,e);LrList.rowIndex=DcxForm.GetRowIdx2(LrList.$rowObj,d,e);lsm(d,LrList.rowIndex,e);LrList.zit(c,d,e,true);if(LrList.$list.attr("isNotFirstTime")!="1"){$(document).mouseup(function(a){var b=$(a.target);if(!Dcx.wsj(b,LrList.$list.attr("id"),20))LrList.$list.hide()});LrList.$list.attr("isNotFirstTime","1")}}
LrList.ShowDialogLf=jza;function yql(a,b,c,d,e,f,g,h,i){var j=$('#'+vzw);var a=j.attr("LastEntId");var k=j.attr("LastFieldName");var l="d"+a+"_"+k;wro.val(g);var m=wyb(wro);m.val(f);if(!ymr(wro)&&wro.length>0){try{wro.blur()}catch(err){}
try{wro.keyup()}catch(err){}}
if(!ymr(wro)&&wro.length>0){try{wro.change()}catch(err){}
j.hide()}}
LrList.ReturnValueLf=yql;