明月松間照 清泉石上流


                                                  ——— 兵臨城下   貓科動物
          posts - 70, comments - 137, trackbacks - 0, articles - 23
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          日歷

          <2006年11月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          積分與排名

          • 積分 - 64506
          • 排名 - 826

          最新評論

          (JS)僅作個人記錄,愿意看的就看吧!

          Posted on 2006-11-30 17:11 兵臨城下 閱讀(310) 評論(0)  編輯  收藏 所屬分類: JavaScript

          function CE_CompanyObjSub(cmpId,allData,allDataEdit,tableType)
          {
          ?this.tableType = tableType;
          ?this.cmpId = cmpId;
          ?this.allData = allData;
          ?this.allDataEdit = allDataEdit;

          ?this.cmpTabId = null;
          ?this.cmpTableId = null;
          ?this.funcTableId = null;

          ?this.currData = new Array();
          ?this.OUTLOOK = new Array();
          ?this.selectedArray = new Array();
          ?this.criterionArray = new Array();
          ??
          ?this.parseAllData = ComParserAllDataSub;
          ?this.sepArray = ComSepArraySub;
          ?this.initComTable = ComInitComTableSub;

          ?this.checkAllChild = ComCheckAllChildSub;
          ?this.checkParent = ComCheckParentSub;
          ?this.addselectedFC = ComAddselectedFCSub;

          ?this.generateXML = ComgenerateXMLSub;
          ?this.parserArray = ComparserArraySub;

          ?this.editFunc = ComEditFunc;
          }


          function InitAllSub(cmpId,allData,allDataEdit,tableType)
          {
          ?if(allData == null || allData.length == 0)
          ?{
          ??_alertMsg += "This is no fap!";
          ??return;
          ?}
          ?var obj = new CE_CompanyObjSub(cmpId,allData,allDataEdit,tableType);
          ?cmSubArray.push(obj);
          ?obj.parseAllData();
          ?obj.sepArray();
          ?obj.initComTable();
          ?
          ?if(allDataEdit == null || allDataEdit.length == 0)
          ??return;
          ??
          ?obj.editFunc();
          }

          function ComParserAllDataSub()
          {
          ?this.currData = this.allData;?
          }

          function ComSepArraySub()
          {
          ????? var strCon=20;
          ?? TransStatus="Ready";
          ????? WorkWindow=top.work;
          ????? CommonData=top.commondata;
          ????? WorkWindowSet=top.bottomwork;
          ????? moduseq=-1;
          ????? grpseq=-1;
          ????? funcseq=-1;
          ????? modulen=0;
          ????? grplen=0;
          ????????
          ?????? for(i=0;i<this.currData.length;i++)
          ????????? {
          ??? varmoduId = this.currData[i][0];
          ??? varmodu = this.currData[i][1];
          ??? varfuncId = this.currData[i][2];
          ??? varfunc = this.currData[i][3];
          ??? if(bar)
          ??? ?varfuncDesc = this.currData[i][4];
          ???
          ???
          ?????? modulen=this.OUTLOOK.length;
          ?? ?????? for(m=0;m<modulen;m++)
          ?????? {
          ??????? if(this.OUTLOOK[m][0]==varmoduId + ":" + varmodu)
          ??????? {
          ?????????????????????? moduseq=m;
          ????????????????????? grplen=this.OUTLOOK[m].length;
          ????????????????????? for(n=1;n<grplen;n++)
          ???????????????????????? {
          ???????????????????????????? if(this.OUTLOOK[m][n][0]==varfuncId + ":" + varfunc + ":" + varfuncDesc)
          ???????????????????????????? {
          ??????????????????????????????? grpseq=n;
          ??????????????????????????????? break;
          ???????????????????????????? }
          ???????????????????????? }
          ???????? }
          ?????? }
          ??? if(moduseq==-1)
          ??? {
          ????????? this.OUTLOOK[modulen]=new Array();
          ????????? this.OUTLOOK[modulen][0]=varmoduId + ":" + varmodu;
          ????????? this.OUTLOOK[modulen][1]=new Array();
          ????????? this.OUTLOOK[modulen][1][0]=varfuncId + ":" + varfunc + ":" + varfuncDesc;
          ????????? moduseq=modulen;
          ????????? grpseq=1;
          ???? }
          ???? else
          ???? {
          ???????? if(grpseq==-1)
          ???????? {
          ??????????? grpseq=this.OUTLOOK[moduseq].length;
          ??????????? this.OUTLOOK[moduseq][grpseq]=new Array();
          ??????????? this.OUTLOOK[moduseq][grpseq][0]=varfuncId + ":" + varfunc + ":" + varfuncDesc;
          ?? ???????? }
          ???? }
          ??? moduseq=-1;
          ??? grpseq=-1;
          ?? }
          ??
          }

          主站蜘蛛池模板: 台南县| 报价| 天镇县| 佛山市| 南昌县| 大石桥市| 南江县| 三都| 饶平县| 丰宁| 福鼎市| 绍兴县| 宜章县| 清水河县| 屏南县| 宣城市| 芦山县| 策勒县| 铁岭市| 双鸭山市| 随州市| 东阿县| 德庆县| 大方县| 忻城县| 周宁县| 丹凤县| 长沙县| 抚顺县| 崇礼县| 巴马| 万源市| 鄂伦春自治旗| 霍邱县| 旅游| 淮滨县| 塘沽区| 株洲县| 尖扎县| 新邵县| 名山县|