lifan
2026-03-04 e39d18d6d7ed5ee9c7dd94836d7a898c975a7354
update
已修改4个文件
72 ■■■■■ 文件已修改
jrj/project/business/Expense/SampleRequestForm.cpp 补丁 | 查看 | 原始文档 | blame | 历史
jrj/project/start.vframe.vbusiness.cpp 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jrj/xframe/kobject/kreport.hpp 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jrj/xframe/xcontrol/xreport.hpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jrj/project/business/Expense/SampleRequestForm.cpp
Binary files differ
jrj/project/start.vframe.vbusiness.cpp
@@ -33,9 +33,75 @@
        }
        if (!doc.xml()) return 0;
        int row = dw_list.GetRow();
        KXMLDOMElement pElement;
        LPCWSTR path = L"@cate";
        LPWSTR val = nullptr;
        LPWSTR guid = nullptr;
        LPWSTR guid1 = nullptr;
        if (dw_list.GetRowCount() >= row  && row > 0)
        {
            pElement = dw_list.GetRowElement(row);
            val = pElement.getAttribute(L"cate");
            guid = pElement.getAttribute(L"taskid");
            if (dw_list.GetRowCount() >= row + 1)
            {
                KXMLDOMElement pElement1 = dw_list.GetRowElement(row+1);
                if (pElement1)
                {
                    xstring val1 = pElement.getAttribute(L"cate");
                    if(val1 == val)
                    {
                        guid1 = pElement.getAttribute(L"taskid");
                    }
                }
            }
        }
        dw_list.Retrieve(doc);
        if(val)
            dw_list.CreateTree((LPCWSTR)L"node()",path,val, 1, 15, 16);
        else
        dw_list.CreateTree((LPCWSTR)L"node()", 1, 15, 16);
        dw_list.Redraw();
        if (val)
        {
            row = 0;
            for (int i = 1; i <= dw_list.GetRowCount(); i++)
            {
                pElement = dw_list.GetRowElement(i);
                //BSTR bxml;
                //pElement.get_xml(bxml);
                //if (bxml)::SysFreeString(bxml);
                LPWSTR val1 = pElement.getAttribute(L"cate");
                if (xstring(val1) == val)
                {
                    row = i + 1;
                    break;
                }
            }
            if (row)
            {
                int srow = row;
                for (; row < dw_list.GetRowCount(); row++)
                {
                    pElement = dw_list.GetRowElement(row);
                    xstring cate = pElement.getAttribute(L"cate");
                    if (cate != val)break;
                    xstring id = pElement.getAttribute(L"taskid");
                    if (id == guid || id == guid1)
                    {
                        srow = row;
                        break;
                    }
                }
                dw_list.SetRow(srow);
            }
        }
        if (val)delete val;
        /*
        dw_list.Redraw();
        dw_list.SetReadOnly(true);
jrj/xframe/kobject/kreport.hpp
@@ -96,6 +96,8 @@
    public:
        int CreateTree(LPCTSTR pPath,int nCol, int nImage1,int nImage2);
        int CreateTree(LPCTSTR pPath, LPCTSTR pValPath, LPCTSTR pVal,int nCol, int nImage1, int nImage2);
        int GetContentRow(int nRow);
    };
}}}}
jrj/xframe/xcontrol/xreport.hpp
@@ -115,6 +115,10 @@
        {
            return getKReport()->CreateTree(pPath,nCol,nImage1,nImage2);
        }
        int CreateTree(LPCWSTR pPath, LPCWSTR pValPath, LPCWSTR pVal,int nCol, int nImage1, int nImage2)
        {
            return getKReport()->CreateTree(pPath, pValPath, pVal,nCol, nImage1, nImage2);
        }
        int GetContentRow(int nRow)
        {
            return getKReport()->GetContentRow(nRow);