Coalesys.WebMenu source code(partial)(10)

web

writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmDiI(id,bgco)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(document.getElementById(\"cswmIcoOn\"+id))");
                        writer.CSF_11("{");
                        writer.CSF_11("document.getElementById(\"cswmIco\"+id).style.display=\"inline\";");
                        writer.CSF_11("document.getElementById(\"cswmIcoOn\"+id).style.display=\"none\";");
                        writer.CSF_11("}");
                        writer.CSF_11("document.getElementById(\"cswmItem\"+id).style.color=\"");
                        writer.CSF_11(local57);
                        writer.CSF_11("\";");
                        writer.CSF_11("document.getElementById(\"cswmExpand\"+id).style.color=\"");
                        writer.CSF_11(local57);
                        writer.CSF_11("\";");
                        writer.CSF_11("if(bgco!=null)");
                        writer.CSF_11("{");
                        writer.CSF_11("document.getElementById(\"cswmItem\"+id).style.backgroundColor=bgco;");
                        writer.CSF_11("document.getElementById(\"cswmExpand\"+id).style.backgroundColor=bgco;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("document.getElementById(\"cswmItem\"+id).style.backgroundColor=\"");
                        writer.CSF_11(local52);
                        writer.CSF_11("\";");
                        writer.CSF_11("document.getElementById(\"cswmExpand\"+id).style.backgroundColor=\"");
                        writer.CSF_11(local52);
                        writer.CSF_11("\";");
                        writer.CSF_11("}");
                        writer.CSF_11("if(document.getElementById(\"cswmExpandIc\"+id))");
                        writer.CSF_11("{");
                        writer.CSF_11("document.getElementById(\"cswmExpandIc\"+id).src=cswmExIS;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmSP(id,itemid)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(!itemid)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmFP)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmSEL=cswmXOff;");
                        writer.CSF_11("cswmSET=cswmYOff;");
                        writer.CSF_11("cswmSEH=1;");
                        writer.CSF_11("cswmSEW=1;");
                        writer.CSF_11("cswmFP=0;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmSE=new Object(document.getElementById(cswmSI));");
                        writer.CSF_11("cswmSEL=new Number(cswmSE.offsetLeft+cswmXOff+document.getElementsByTagName(\"body\").item(0).offsetLeft);");
                        writer.CSF_11("cswmSET=new Number(cswmSE.offsetTop+cswmYOff+document.getElementsByTagName(\"body\").item(0).offsetTop);");
                        writer.CSF_11("cswmSEH=cswmSE.height;");
                        writer.CSF_11("cswmSEW=cswmSE.width;");
                        writer.CSF_11("}");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+id).style.display=\"inline\";");
                        writer.CSF_11("cswmPW=document.getElementById(\"cswmPopup\"+id).offsetWidth;");
                        writer.CSF_11("cswmPH=document.getElementById(\"cswmPopup\"+id).offsetHeight;");
                        writer.CSF_11("cswmBW=document.width;");
                        writer.CSF_11("cswmBH=window.innerHeight-15;");
                        if (!(local50))
                            writer.CSF_11("cswmSLA=window.pageXOffset;");
                        if (!(local51))
                            writer.CSF_11("cswmSTA=window.pageYOffset;");
                        writer.CSF_11("switch(cswmSPnt)");
                        writer.CSF_11("{");
                        writer.CSF_11("case \"above\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET-cswmPH;");
                        writer.CSF_11("cswmCA();");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("break;");
                        writer.CSF_11("case \"below\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET+cswmSEH;");
                        writer.CSF_11("cswmCB();");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("break;");
                        writer.CSF_11("case \"right\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL+cswmSEW;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET;");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("cswmCB();");
                        writer.CSF_11("break;");
                        writer.CSF_11("case \"left\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL-cswmPW;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET;");
                        writer.CSF_11("cswmCL();");
                        writer.CSF_11("cswmCB();");
                        writer.CSF_11("cswmDir=\"left\";");
                        writer.CSF_11("break;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmXOff=0;");
                        writer.CSF_11("cswmYOff=0;");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+id).style.left=cswmPL[cswmPL.length-1];");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+id).style.top=cswmPT[cswmPT.length-1];");
                        writer.CSF_11("cswmPI[cswmPI.length]=id;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPL[cswmPL.length]=document.getElementById(\"cswmPopup\"+cswmPI[cswmPI.length-1]).offsetWidth+cswmPL[cswmPL.length-1]-4;");
                        writer.CSF_11("cswmPT[cswmPT.length]=document.getElementById(\"cswmItem\"+itemid).offsetTop;");
                        writer.CSF_11("if(navigator.vendorSub>=6.1)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPT[cswmPT.length-1]+=document.getElementById(\"cswmItem\"+itemid).offsetParent.offsetTop;");
                        writer.CSF_11("}");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+id).style.display=\"inline\";");
                        writer.CSF_11("cswmPW=document.getElementById(\"cswmPopup\"+id).offsetWidth;");
                        writer.CSF_11("cswmPH=document.getElementById(\"cswmPopup\"+id).offsetHeight;");
                        writer.CSF_11("var cswmPrW=document.getElementById(\"cswmPopup\"+cswmPI[cswmPI.length-1]).offsetWidth;");
                        writer.CSF_11("cswmAR=cswmBW-cswmPL[cswmPL.length-1]+cswmSLA;");
                        writer.CSF_11("cswmAB=cswmBH-cswmPT[cswmPT.length - 1]+cswmSTA;");
                        writer.CSF_11("if(cswmPL[cswmPL.length-2]==cswmSLA){cswmDir=\"right\";}");
                        writer.CSF_11("if((cswmAR<cswmPW)||(cswmDir==\"left\"))");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=(cswmPL[cswmPL.length-1]-cswmPW-cswmPrW)+8;");
                        writer.CSF_11("if((cswmMB>=0)&&(cswmMB>cswmSLA))");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmDir=\"left\";");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmSLA;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPL[cswmPL.length-1]=cswmMB;");
                        writer.CSF_11("}");
                        writer.CSF_11("if(cswmAB<cswmPH)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmPT[cswmPT.length-1]-(cswmPH-cswmAB);");
                        writer.CSF_11("if(cswmMB<0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmSTA;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPT[cswmPT.length-1]=cswmMB;");
                        writer.CSF_11("}");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+id).style.left=cswmPL[cswmPL.length-1];");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+id).style.top=cswmPT[cswmPT.length-1];");
                        writer.CSF_11("cswmPI[cswmPI.length]=id;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHP(level)");
                        writer.CSF_11("{");
                        writer.CSF_11("var count=level;");
                        writer.CSF_11("for(count=level;count<cswmPI.length;count++)");
                        writer.CSF_11("{");
                        writer.CSF_11("document.getElementById(\"cswmPopup\"+cswmPI[count]).style.display=\"none\";");
                        writer.CSF_11("}");
                        writer.CSF_11("if(level==0&&cswmPI.length>0)");
                        writer.CSF_11("{");
                        if (!(Common.CSF_0(local59))) {
                            writer.CSF_11("var id = cswmPI[0];");
                            writer.CSF_11(local59);
                            writer.CSF_11(";");
                        }
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPI.length=level;");
                        writer.CSF_11("cswmPL.length=level;");
                        writer.CSF_11("cswmPT.length=level;");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmCR()");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmAR=(cswmBW+cswmSLA)-cswmPL[cswmPL.length-1];");
                        writer.CSF_11("if(cswmAR<cswmPW)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmSPnt==\"below\"||cswmSPnt==\"above\")");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmPL[cswmPL.length-1]-(cswmPW-cswmAR);");
                        writer.CSF_11("if(cswmMB<0||cswmMB<cswmSLA)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmSLA;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPL[cswmPL.length-1]=cswmMB;");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmSEL-cswmPW;");
                        writer.CSF_11("if(cswmMB>=0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPL[cswmPL.length-1]=cswmMB;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmCL()");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmPL[cswmPL.length-1]<(cswmSLA))");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPL[cswmPL.length-1]=cswmSEL+cswmSEW;");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmCB()");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmAB=(cswmBH+cswmSTA)-cswmPT[cswmPT.length-1];");
                        writer.CSF_11("if(cswmAB<cswmPH)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmSPnt==\"below\")");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmPT[cswmPT.length-1]-cswmPH-cswmSEH;");
                        writer.CSF_11("if(cswmMB>=0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPT[cswmPT.length-1]=cswmMB;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmPT[cswmPT.length-1]-(cswmPH-cswmAB);");
                        writer.CSF_11("if(cswmMB<0||cswmMB<cswmSTA)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmMB=cswmSTA;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmPT[cswmPT.length-1]=cswmMB;");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmCA()");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmPT[cswmPT.length-1]<(cswmSTA))");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmPT[cswmPT.length-1]=cswmSET+cswmSEH;");
                        writer.CSF_11("cswmCB();");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmShowInFrame(MenuID,x,y)");
                        writer.CSF_11("{");
                        writer.CSF_11("x+=window.pageXOffset;");
                        writer.CSF_11("y+=window.pageYOffset;");
                        writer.CSF_11("cswmShow(MenuID,'','below',x,y,1);");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHideSelectBox()");
                        writer.CSF_11("{");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmRefresh()");
                        writer.CSF_11("{");
                        writer.CSF_11("}\r\n");
                        writer.CSF_11("//-->\r\n");
                    }
                    return;
                break;
            }
        break;
    }
}   

时间: 2024-09-08 11:12:27

Coalesys.WebMenu source code(partial)(10)的相关文章

Coalesys.WebMenu source code(partial)(1)

web I post this source code in order to test our il2c#, this source code was generated by our software, this is the  "javascript" method of class Coalesys.WebMenu.Generate internal static void JavaScript(WebMenu webmenu, GenerateConstants type,

Coalesys.WebMenu source code(partial)(9)

web writer.CSF_11("while(cswmCIO)");                        writer.CSF_11("{");                        writer.CSF_11("var cswmLI=cswmCIO.id;");                        writer.CSF_11("if(cswmLI.indexOf(\"Item\")&

Coalesys.WebMenu source code(partial)(4)

web writer.CSF_11("cswmSA=false;");                            writer.CSF_11("}");                            writer.CSF_11("break;");                            writer.CSF_11("case \"left\":");           

Coalesys.WebMenu source code(partial)(3)

web break;                case 0:                    goto case 3;                case 2:                    goto case 3;                case 3:                    i2: writer.CSF_11("}");                    writer.CSF_11("function cswmCR()&q

Coalesys.WebMenu source code(partial)(2)

web writer.CSF_11("document.cswmSelects=document.getElementsByTagName(\"select\");");    writer.CSF_11("}");    writer.CSF_11("var iCount=0;");    writer.CSF_11("for(iCount=0;iCount<document.cswmSelects.leng

扩展UltraGrid控件实现对所有数据行的全选功能[Source Code下载]

在前面一篇文章中,我通过对三种Infragistics 控件(UltraToolBarManager.UltraGird和UltraListView)进行扩展,以实现对ToolTip样式的定义,今天我来介绍如何采用相同的方式实现另外一个更为常用的功能:在UltraGrid的Header中动态添加CheckBox,从而实现对所有数据行进行全选的功能.[Source Code从这里下载] 一.我们的目标:在UltraGird的选择列的Header添加CheckBox实现对所有数据行的全选  我们现有

Enterprise Library Policy Injection Application Block 之三:PIAB的扩展—创建自定义CallHandler(提供Source Code下载)

本系列的第一部分对PIAB使用场景进行了简单的介绍,作中阐述了通过PI(Policy Injection)的方式实现了Business Logic和Non-Business Infrastructure Logic的分离,从而实现了AOP(Aspect Oriented Programming).在第二部分中详细介绍PIAB的实现机制:通过自定义RealProxy的方式实现了Method Injection.通过这几天接收到的网友的留言,觉得很多人对在具体的项目开发中如何使用PIAB还有很多困惑

事件(Event),绝大多数内存泄漏(Memory Leak)的元凶[下篇] (提供Source Code下载)

在上篇中我们谈到:将一个生命周期较短的对象(对象A)注册到一个生命周期较长(对象B)的某个事件(Event)上,两者便无形之间建立一个引用关系(B引用A).这种引用关系导致GC在进行垃圾回收的时候不会将A是为垃圾对象,最终使其常驻内存(或者说将A捆绑到B上,具有了和B一样的生命周期).这种让无用的对象不能被GC垃圾回收的现象,在托管环境下就是一种典型的内存泄漏问题.我们今天将会着重解释其背后的原因.[本篇文章的Source Code从这里下载) 一.CLR垃圾回收简介 在一个托管应用程序中,我们

Java Tools: Source Code Optimization and Analysis[转]

Below is a list of some tools that can help you examine your Java source code for potential problems: 1. PMD from http://pmd.sourceforge.net/ License: PMD is licensed under a "BSD-style" license PMD scans Java source code and looks for potential