lifan
2026-08-13 728f46e67c27431c1e38fa77a146a1436c9ee99c
update
已修改3个文件
已添加1个文件
60 ■■■■■ 文件已修改
jrj/ext-jrj/ext-jrj.vcxproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jrj/ext-jrj/ext-jrj.vcxproj.filters 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jrj/project/business/ProductSample/UserProductApplyEx.cpp 补丁 | 查看 | 原始文档 | blame | 历史
jrj/project/business/SO/Product.FetchNo.cpp 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jrj/ext-jrj/ext-jrj.vcxproj
@@ -873,6 +873,7 @@
      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
    </ClCompile>
    <ClCompile Include="..\project\business\ProductSample\UserProductApplyEx.cpp" />
    <ClCompile Include="..\project\business\ProductSample\ViewPicturesEx.cpp">
      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
    </ClCompile>
jrj/ext-jrj/ext-jrj.vcxproj.filters
@@ -1661,6 +1661,9 @@
    <ClCompile Include="..\project\business\Expense\maint.Document.SampleRequestFormEx.cpp">
      <Filter>project\business\Expense</Filter>
    </ClCompile>
    <ClCompile Include="..\project\business\ProductSample\UserProductApplyEx.cpp">
      <Filter>project\business\ProductSample</Filter>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>
    <None Include="ext-jrj.def">
jrj/project/business/ProductSample/UserProductApplyEx.cpp
Binary files differ
jrj/project/business/SO/Product.FetchNo.cpp
@@ -23,7 +23,7 @@
            ProductFetchNoWin* pWin = new ProductFetchNoWin(implPtr, (HWND)hWnd);
            return pWin;
        }
        int SetAgent()
        /*int SetAgent()
        {
            xstring xfNodeAgentArea = L"agentarea";
            xnode anode = GetAgentNode(xfNodeAgentArea);
@@ -42,31 +42,28 @@
                }
            }
            return 1;
        }
        }*/
        int OnRowChanged(TEvent* evt, LPARAM p)
        xstring GetEntityName(LPARAM pr)
        {
            DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh;
            int row = hdr.row;
            /*
            htmlctrl xs = GetControl(L"html_detail");
            xstring html = makeHtml(row);
            xs.SetContent(html);
            xs.Redraw();
            xstring id = g_xdoc_product.getData(0,L"data/Item",row,L"@guid");
            OnShowImage(id);
            */
            return 1;
            return L"SampleNo";
        }
        xstring GetEntityID(LPARAM pr)
        {
            int row = dw_list.GetRow();
            xstring id = dw_list.GetItemString(row, L"SKUID");
            //alert(id);
            return id;
        }
        //焦点激活处理函数
        int OnSetFocus(TEvent* evt, LPARAM p)
        {
            //重置工具条
            //SetAgent();
            SetAgent(L"list", GetEntityID(1));
            return 1;
        }
@@ -105,8 +102,8 @@
                if (error.find(L"error") >= 0)
                    alert(L"提交失败");
                else
                    alert(L"提交成功!");
                SendNotice();
                    trace(L"提交成功!");
                //SendNotice();
            }
            return 1;
        }
@@ -248,9 +245,11 @@
        //命令发布函数
        int OnCmdDispatch(xstring comdid)
        {
            if (comdid == L"xmSubmit")
            if (comdid == L"xmSubmit" || L"action:bill.check.ask")
            {
                return OnSubmit();
                OnSubmit();
                ProcessFlowAction(L"action:bill.check.ask", 1);
                return 1;
            }
            if (comdid == L"xmCancel")
            {
@@ -266,6 +265,14 @@
            return OnCmdDispatch(evt->xcommand.pStrID);
        }
        int OnRowChanged(TEvent* evt, LPARAM p)
        {
            DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh;
            int row = hdr.row;
            SetAgent(L"list", dw_list.GetItemString(row, L"SKUID"));
            return 1;
        }
        int OnAttachEvent()
        {
            AttachEvent(L"dw_list", L"DWV_ROWFOCUSCHANGED", (FEvent)&ProductFetchNoWin::OnRowChanged);
@@ -273,6 +280,7 @@
            AttachEvent(L"WM_XCOMMAND", (FEvent)&ProductFetchNoWin::OnXCommand);
            //获取焦点事件,用于重置工具条
            AttachEvent(L"WM_SETFOCUS", (FEvent)&ProductFetchNoWin::OnSetFocus);
            return 1;
        }
@@ -321,6 +329,8 @@
                    
                    dw_list.Retrieve(x);
                    dw_list.Redraw();
                    dw_list.SetReadOnly(true);
                    dw_list.SetSelectionMode(1);
                }
            }
            OnAttachEvent();
@@ -331,7 +341,7 @@
        int onloaded()
        {
            //SetAgent();
            SetAgent(L"list", GetEntityID(1));
            return 1;
        }