|  |  | 
 |  |  |          else if (comdid == L"xmFilter")  return OnFilter(); | 
 |  |  |          else if (comdid == L"xmQuery") | 
 |  |  |          { | 
 |  |  |  | 
 |  |  | 				 | 
 |  |  |             index = m_layer.GetSheetIndex(); | 
 |  |  |             index++; | 
 |  |  |             OnRetrieve(); | 
 |  |  | 
 |  |  |          arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); | 
 |  |  |  | 
 |  |  |          xcombobox cbx_type = GetControl(L"cbx_ship"); | 
 |  |  |          int h = xcombobox::GetCurSel(cbx_type.GetHWND()); | 
 |  |  |          int h = cbx_type.GetCurSel(); | 
 |  |  |          if (h < 0) return 1; | 
 |  |  |          xstring str = xcombobox::GetItemData(cbx_type.GetHWND()); | 
 |  |  |          xstring str = (string)cbx_type.GetItemData(h); | 
 |  |  |          arg.AddArg(L"ShipDays", str); | 
 |  |  |          trace(str); | 
 |  |  |  | 
 |  |  |          if (getUrl(L"/sale/data/AP/list101", arg.GetString(), x) != 1) | 
 |  |  |          { | 
 |  |  |             trace(x.text()); | 
 |  |  | 
 |  |  |          } | 
 |  |  |          else | 
 |  |  |          { | 
 |  |  | 				 | 
 |  |  |             dw_1.Retrieve(x); | 
 |  |  |             dw_1.Redraw(); | 
 |  |  |          } |