Diff Вы: nobody
Вход

Differences From Artifact [c042ef6b03]:

To Artifact [fce7a22872]:


    19     19   
    20     20   function onDoModal(dlgInfo)
    21     21   {
    22     22       if(dlgInfo.caption == "Выбор главы")
    23     23       {
    24     24           if(dlgInfo.stage == openModalWnd)
    25     25           {
           26  +            var ds = dlgInfo.form.getControl("tblTopics").dataSource
           27  +            Message("DataSourceType=" + ds.type)
           28  +            Message("hasCellAppearance=" + ds.hasCellAppearance)
           29  +            
           30  +            for(var rowID = ds.getRow(0, grtFirstChild); rowID; rowID = ds.getRow(rowID, grtNext))
           31  +            {
           32  +                Message(ds.getCellValue(rowID, 0))
           33  +            }
           34  +            /*
    26     35               var vt = dlgInfo.form.getControl("tblTopics").value
    27     36               if(vt.Count() > 3)
    28     37               {
    29     38                   var choices = []
    30     39                   for(var rows = new Enumerator(vt); !rows.atEnd(); rows.moveNext())
    31     40                       choices.push(rows.item().Get(0))
    32     41                   var rect = api.GetWindowRect(api.GetParentWindow(api.GetParentWindow(dlgInfo.form.getControl(-1).hwnd)))  // -1 - это сама форма
................................................................................
    40     49                           if(choices[k] == choice)
    41     50                               break
    42     51                           sk += "{DOWN}"
    43     52                       }
    44     53                       new ActiveXObject("WScript.Shell").SendKeys(sk + "~")
    45     54                   }
    46     55               }
           56  +            */
    47     57           }
    48     58       }
    49     59   }