明月松間照 清泉石上流


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

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

          Posted on 2006-11-30 17:11 兵臨城下 閱讀(307) 評論(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;
          ?? }
          ??
          }

          主站蜘蛛池模板: 余姚市| 海林市| 聊城市| 兴城市| 仁怀市| 历史| 太仆寺旗| 广东省| 忻城县| 武平县| 蚌埠市| 阜平县| 福海县| 蕉岭县| 上虞市| 佛教| 罗田县| 鸡东县| 华亭县| 婺源县| 温泉县| 项城市| 淳化县| 曲麻莱县| 永安市| 文昌市| 南溪县| 安西县| 阿合奇县| 常州市| 黑河市| 姜堰市| 涡阳县| 郑州市| 如东县| 霍城县| 翁源县| 西华县| 沿河| 兴文县| 辽阳县|