LiFan
2025-02-13 03ef0b51103c735077c784c7df81ae2bcc1599ab
jrj/project/business/SO3.maint.cpp
@@ -567,7 +567,7 @@
      {
         xstring sSalespersonID = dw_base.GetItemString(1, L"SalespersonID");
         //alert(sSalespersonID);
         hdr->data = sSalespersonID;
         hdr->data = sSalespersonID.c_str(true);
      }
@@ -592,7 +592,7 @@
            if (skunos == L"")
               skunos = dw_item.GetItemString(i, L"SKUNo");
            else
               skunos += L",L" + dw_item.GetItemString(i, L"SKUNo");
               skunos += L"," + dw_item.GetItemString(i, L"SKUNo");
         }
      }
      xaserverarg& arg = *new xaserverarg();
@@ -724,12 +724,12 @@
            alert(L"请先保存数据!");
            return 1;
         }
         xaserverarg& arg = * new xaserverarg;
         arg.setNativePointer(arg.CreateInstance());
         xaserverarg arg;
         arg.AddArg(L"EntityName", L"SaleOrder", L"");
         arg.AddArg(L"EntityID", dw_base.GetItemString(1, L"SOID"), L"");
         arg.AddArg(L"EntityNo", dw_base.GetItemString(1, L"SONo"), L"");
         openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", &arg);
         openUrl(L"/sale/view/view.base/xpage/Template/PrintViewEx", arg);
         return 1;
      }
      else if (comdid == L"xmSaveEx" && bupdate)
@@ -852,7 +852,7 @@
      return 1;
   }
   int OnImgDBClicked(TEvent* evt, int pr)
   int OnImgDBClicked(TEvent* evt, LPARAM  pr)
   {
      IMGNNMHDR* nmtv = (IMGNNMHDR *)evt->notify.pnmh;
      xstring src = nmtv->path;
@@ -861,13 +861,13 @@
      else
         src=src.mid(src.find(L"Thumbs", 0)+6, 50);
      */
      xaserverarg& arg = * new xaserverarg;
      xaserverarg arg;
      //arg.AddArg(L"src",L"/business/products/chanpin"+src);   
      arg.AddArg(L"src", src);
      //win::OpenWindow(L"dev:xpage[BigPicture.vx]",arg);   
      int h = openUrl(L"/sale/view/ProductLibrary/xpage/bigpictureview", &arg);
      openUrl(L"/sale/view/ProductLibrary/xpage/bigpictureview", arg);
      /*
      xwin x = new xwin;
      x.setNativePointer(h);
@@ -885,8 +885,8 @@
      ximageview im = GetControl(L"im1");
      KXMLDOMDocument xp;
      xaserverarg& arg_pic = *new xaserverarg;
      arg_pic.setNativePointer(arg_pic.CreateInstance());
      xaserverarg arg_pic ;
      arg_pic.AddArg(L"SKUNo", skuno);
      xstring res = L"/sale/data/ProductLibrary3/pref/picture/imagelistSKUNo";
@@ -936,7 +936,7 @@
            for (int ip = 0; ip < lenp; ip++)
            {
               auto xitem = nlistp.item(ip);
               string picname = xitem.selectSingleNode(L"PicPath").text();
               xstring picname = xitem.selectSingleNode(L"PicPath").text();
               string goodno = xitem.selectSingleNode(L"GoodsNo").text();
               if (picname == L"/business/products/Thumbs//")
                  picname = L"/business/products/Thumbs/00/00000000-0000-0000-0000-000000000000.jpg";
@@ -964,10 +964,12 @@
   int onload()
   {
      /*
      using JFString = JFactory<JString>;
      JPtr<JFString> jfString(JObjectSvr::CreateInstance<JFString>(L"JFactoryString"));
      //auto jfString = JObjectSvr::CreateInstance<JFString>(L"JFactoryString");
      JPtr<JString> pStr(jfString->make());
      */
      dw_props = GetControl(L"dw_props");
      /*KXMLDOMDocument x = SaleOrderView::GetMaintFormForBase();
@@ -1038,12 +1040,14 @@
      if (SONo != L"")
      {
         KXMLDOMDocument x = SaleOrderView::GetMaintDataForBase(SONo);
         BSTR str = (BSTR)x.xml();
         dw_base.Retrieve(x);
         dw_item.Retrieve(x);
      }
      else
      {
         KXMLDOMDocument x = ViewObject::RetrieveData(GetServerUrl(),L"/sale/data/SaleOrder/newinitial");
         BSTR str = (BSTR)x.xml();
         dw_base.Retrieve(x);
         xstring sdate = publiccode::GetCurrentDate();