LiFan
2024-07-18 a5289d51bd57a99a2377c5590bc61cb7a42e61d4
jrj/project/business/SO/Product.Select.SO.cpp
@@ -17,7 +17,7 @@
   class __declspec(dllexport) ProductSelectSOWin : public xwin
   {
   public:
      int hObject = 0;
      HWND hObject = 0;
      xstring CustomerID;
      xstring CustomerName;
@@ -672,7 +672,7 @@
         dw_list.Redraw();
         impStr = L"";
         SendMessage(hObject, 0x401, ls_nos, 0);
         SendMessage(hObject, 0x401, (LPARAM)ls_nos, 0);
         alert(L"转入完成!");
         return 1;
      }
@@ -1035,7 +1035,7 @@
         xcontrol query = GetControl(L"sl_search");
         xstring queryString = query.GetText();
         xshtml xs;
         if (name == L"购物车")
         {
            if (agentFor != L"goodscar")SwitchLayer(L"goodscarsheet", L"sheetframe");
@@ -1105,7 +1105,7 @@
                  no = e.getAttribute(L"guid");
               }
               dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(no).GetXmlDoc());
               dw_list.SetDataObject(ProductLibraryView::GetMaintListForm3(no).xml());
               dw_list = GetControl(L"dw_list");
               dw_list.SetReadOnly(true);
@@ -1242,7 +1242,7 @@
         dw_list.Redraw();
         dwc_list.Redraw();
         impStr = L"";
         win32::SendMessage(hObject, 0x401, ls_nos, 0);
         SendMessageW(hObject, 0x401, (LPARAM)ls_nos, 0);
         xutil::RestoreCursor(hCursor);
         CloseWindow();
@@ -1265,10 +1265,12 @@
         AttachEvent(L"dwc_list", L"DWV_CLICKED", (FEvent)&ProductSelectSOWin::OnDwcClicked);
         AttachEvent(L"dwc_list", L"DWV_DOUBLECLICKED", (FEvent)&ProductSelectSOWin::OnImport);
         return 1;
      }
      int onload()
      {
         SetArg();
         agentFor = L"goodslib";
         OnAttachEvent();
@@ -1283,7 +1285,7 @@
         hObject = 0;
         if (arg)
         {
            hObject = (int)arg.GetArgString(L"HWND");
            hObject = arg.GetArgString(L"HWND");
            CustomerID = arg.GetArgString(L"CustomerID");
         }
         InitialFolder();
@@ -1314,7 +1316,7 @@
         //xtreeview::ExpandItem(tv_folder.GetId(),
         //   xtreeview::GetNextItem(tv_folder.GetId(),xtreeview::GetRootItem(tv_folder.GetId())));
         xtreeview::ExpandItem(tv_folder.GetId(), xtreeview::GetRootItem(tv_folder.GetId()));
         tv_folder.ExpandItem(tv_folder.GetRootItem());
         dw_list.SetSelectionMode(3);
         dwc_list.SetSelectionMode(3);