this update tree data item
| | |
| | | <OutDir>$(SolutionDir)..\..\..\mis-prj-build\jrj\$(Platform)\$(Configuration)\</OutDir> |
| | | <IntDir>$(SolutionDir)..\..\..\mis-prj-build\jrj-temp\$(Platform)\$(Configuration)\</IntDir> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| | | <OutDir>$(SolutionDir)..\..\..\mis-prj-build\jrj\$(Platform)\$(Configuration)\</OutDir> |
| | | <IntDir>$(SolutionDir)..\..\..\mis-prj-build\jrj-temp\$(Platform)\$(Configuration)\</IntDir> |
| | | </PropertyGroup> |
| | | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| | | <ClCompile> |
| | | <WarningLevel>Level3</WarningLevel> |
| | |
| | | <FunctionLevelLinking>true</FunctionLevelLinking> |
| | | <IntrinsicFunctions>true</IntrinsicFunctions> |
| | | <SDLCheck>true</SDLCheck> |
| | | <PreprocessorDefinitions>NDEBUG;EXTJRJ_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| | | <PreprocessorDefinitions>NDEBUG;EXTJRJ_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| | | <ConformanceMode>true</ConformanceMode> |
| | | <PrecompiledHeader>Use</PrecompiledHeader> |
| | | <PrecompiledHeader>NotUsing</PrecompiledHeader> |
| | | <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile> |
| | | <AdditionalIncludeDirectories>..\xframe;..\xframe\system;..\project</AdditionalIncludeDirectories> |
| | | </ClCompile> |
| | | <Link> |
| | | <SubSystem>Windows</SubSystem> |
| | |
| | | <OptimizeReferences>true</OptimizeReferences> |
| | | <GenerateDebugInformation>true</GenerateDebugInformation> |
| | | <EnableUAC>false</EnableUAC> |
| | | <AdditionalLibraryDirectories>D:\xclient64r</AdditionalLibraryDirectories> |
| | | <AdditionalDependencies>xarch.shape.lib;xarch.base.lib;xarch.util.lib;xarch.network.lib;xarch.xframe.lib;xarch.xcontrol.lib;xoffice.xcell.lib;xoffice.xgrid.lib;xoffice.xreport.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies> |
| | | </Link> |
| | | <PostBuildEvent> |
| | | <Command>copy $(OutDirFullPath)ext-jrj.dll D:\xclient64r\ext\ext-jrj.dll</Command> |
| | | </PostBuildEvent> |
| | | </ItemDefinitionGroup> |
| | | <ItemGroup> |
| | | <ClInclude Include="..\project\viewobject\custom.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\customer.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\enquiry.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\gdn3.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\productlibrary.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\purchaseorder.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\quote.view.hpp" /> |
| | |
| | | <ClInclude Include="..\xframe\kobject\kapp.hpp" /> |
| | | <ClInclude Include="..\xframe\kobject\kbase.hpp" /> |
| | | <ClInclude Include="..\xframe\kobject\kcachemgr.hpp" /> |
| | | <ClInclude Include="..\xframe\kobject\kcell.hpp" /> |
| | | <ClInclude Include="..\xframe\kobject\kcontrol.hpp" /> |
| | | <ClInclude Include="..\xframe\kobject\kdwgrid.hpp" /> |
| | | <ClInclude Include="..\xframe\kobject\kdwpages.hpp" /> |
| | |
| | | <ClInclude Include="..\xframe\wobject\xutil.hpp" /> |
| | | <ClInclude Include="..\xframe\wobject\xview.hpp" /> |
| | | <ClInclude Include="..\xframe\wobject\xwin.hpp" /> |
| | | <ClInclude Include="..\xframe\xcontrol\xcell.hpp" /> |
| | | <ClInclude Include="..\xframe\xcontrol\xcombobox.hpp" /> |
| | | <ClInclude Include="..\xframe\xcontrol\xdwgrid.hpp" /> |
| | | <ClInclude Include="..\xframe\xcontrol\xdwpages.hpp" /> |
| | |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Enquiry.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\EnquiryEx3.list.cpp" /> |
| | | <ClCompile Include="..\project\business\GDN3.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\GDN3.maint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Product.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\Product.maint.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\quote.enquiry.cpp" /> |
| | | <ClCompile Include="..\project\business\Quote3.list3.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | |
| | | <LocalDebuggerWorkingDirectory>d:\xclient64</LocalDebuggerWorkingDirectory> |
| | | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| | | <LocalDebuggerCommand>d:\xclient64r\xexplorer.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerWorkingDirectory>d:\xclient64r</LocalDebuggerWorkingDirectory> |
| | | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | { |
| | | xdwtable dw_PartyContact1; |
| | | dw_PartyContact1 =dw_detail.FindDwTable(L"PC_OtherInfo"); |
| | | xml xx = new xml; |
| | | xml x |
| | | xx.setNativePointer(xml ::CreateInstance()); |
| | | xaserverarg argnew = new xaserverarg; |
| | | argnew.setNativePointer(argnew.CreateInstance()); |
| | |
| | | if(arg.GetArgString(L"process") == L"ok") |
| | | { |
| | | |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | if (getUrl(L"/sale/data/Enquiry/PriceListEx/SKU",arg.GetString(),x)!=1) return 1; |
| | | KXMLDOMNodeList nodes = x.selectNodes(L"data/Item"); |
| | |
| | | dw_priceitem.Reset(); |
| | | |
| | | xaserverarg arg = xaserverarg::Make(); |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | arg.AddArg(L"SKUID",dw_pricelist.GetItemString(row,L"SKUID")); |
| | | arg.AddArg(L"SchemaNo",dw_pricelist.GetItemString(row,L"BOMSchema")); |
| | |
| | | OpenWindow(L"dev:xpage[PriceList.PurcharItemSelectEx.vx]",cast(arg as int)); |
| | | if(arg.GetArgString(L"process") == L"ok") |
| | | { |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | x.LoadXml(arg.GetArgString(L"result")); |
| | | KXMLDOMNodeList nodes = x.selectNodes(L"data/Item"); |
| | |
| | | OpenWindow(L"dev:xpage[PriceList.PurcharItemSelectEx.vx]",cast(arg as int)); |
| | | if(arg.GetArgString(L"process") == L"ok") |
| | | { |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | x.LoadXml(arg.GetArgString(L"result")); |
| | | KXMLDOMNodeList nodes = x.selectNodes(L"data/Item"); |
| | |
| | | |
| | | int OnRetrieveItem(xstring EnquiryPriceListID) |
| | | { |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | |
| | | KXMLDOMElement e1 = cast(tv_folder_pricebill.GetItemData(hItem) as KXMLDOMElement); |
| | | xstring no = e1.getAttribute(L"no"); |
| | | |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | |
| | | KXMLDOMElement e1 = cast(tv_folder_pricebill.GetItemData(hItem) as KXMLDOMElement); |
| | | xstring no = e1.getAttribute(L"no"); |
| | | |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | |
| | | |
| | | int OnProductPriceShareRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | | |
| | | class __declspec(dllexport) GDN3list : public listwin |
| | | class __declspec(dllexport) ListGDN3Win : public listwin |
| | | { |
| | | public: |
| | | GDN3list(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} |
| | | ListGDN3Win(void* implPtr, HWND hWnd) :listwin(implPtr, hWnd) {} |
| | | public: |
| | | static GDN3list* CreateInstance(void* implPtr, void* hWnd) |
| | | static ListGDN3Win* CreateInstance(void* implPtr, void* hWnd) |
| | | { |
| | | GDN3list* pWin = new GDN3list(implPtr, (HWND)hWnd); |
| | | ListGDN3Win* pWin = new ListGDN3Win(implPtr, (HWND)hWnd); |
| | | return pWin; |
| | | } |
| | | |
| | |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, (LPARAM)&e, 35); |
| | | ExpandCatChildFolder(h, e, 35); |
| | | } |
| | | x.Free(); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | |
| | | if (readed) return 1; |
| | | HTREEITEM hItem = tv_folder.GetSelectedItem(); |
| | | if (hItem <= 0) |
| | | if (!hItem) |
| | | { |
| | | hItem = tv_folder.GetRootItem(); |
| | | if (hItem <= 0) return 1; |
| | | if (!hItem) return 1; |
| | | } |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | KXMLDOMElement& e1 = *(KXMLDOMElement*)tv_folder.GetItemData(hItem); |
| | |
| | | //xml x = 0; |
| | | //x = ViewObject::RetrieveData(myDataUrl,L"no",no,L"QueryTxt", m_QueryTxt,L"rows",rows); |
| | | xstring DeptName = publiccode::GetUser().deptname; |
| | | xaserverarg arg = xaserverarg::Make(); |
| | | xaserverarg arg ; |
| | | arg.AddArg(L"no", no); |
| | | arg.AddArg(L"QueryTxt", m_QueryTxt); |
| | | arg.AddArg(L"rows", rows); |
| | |
| | | dw_list.DwRetrieve(GetServerUrl(),L"[list.folder.gdn.sql.xq]",arg.GetString()); |
| | | }*/ |
| | | dw_list.DwRetrieve(GetServerUrl(), L"[list.folder.gdn.sql.xq]", arg.GetString()); |
| | | arg.Free(); |
| | | dw_list.SetReadOnly(true); |
| | | dw_list.SetRowSort(L"ETD", false); |
| | | |
| | |
| | | int OnPreRetrieve() |
| | | { |
| | | HTREEITEM hItem = tv_folder.GetSelectedItem(); |
| | | if (hItem <= 0) return 1; |
| | | if (!hItem) return 1; |
| | | |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | dw_list.ResetEx(); |
| | | dw_list.Reset(); |
| | | dw_list.Redraw(); |
| | | } |
| | | dw_list.SetReadOnly(true); |
| | |
| | | |
| | | int PostOnAttachEvent() |
| | | { |
| | | AttachEvent(L"tv_folder", L"TVN_SELCHANGED", (FEvent)&GDN3list::OnTreeSelChanged); //æ éæ© |
| | | //AttachEvent(L"tv_folder", L"TVN_ITEMEXPANDING",(FEvent)&GDN3list::OnTreeExpanding); //æ å±å¼ |
| | | AttachEvent(L"dw_list", L"DWV_ROWFOCUSCHANGED", (FEvent)&GDN3list::OnRowChanged); |
| | | AttachEvent(L"cbx_1", L"CBN_SELCHANGE", (FEvent)&GDN3list::OnSelectDdlb); |
| | | AttachEvent(L"cbx_datashow", L"CBN_SELCHANGE", (FEvent)&GDN3list::OnSelectDataShowDdlb); |
| | | AttachEvent(L"tv_folder", L"TVN_SELCHANGED", (FEvent)&ListGDN3Win::OnTreeSelChanged); //æ éæ© |
| | | //AttachEvent(L"tv_folder", L"TVN_ITEMEXPANDING",(FEvent)&ListGDN3Win::OnTreeExpanding); //æ å±å¼ |
| | | AttachEvent(L"dw_list", L"DWV_ROWFOCUSCHANGED", (FEvent)&ListGDN3Win::OnRowChanged); |
| | | AttachEvent(L"cbx_1", L"CBN_SELCHANGE", (FEvent)&ListGDN3Win::OnSelectDdlb); |
| | | AttachEvent(L"cbx_datashow", L"CBN_SELCHANGE", (FEvent)&ListGDN3Win::OnSelectDataShowDdlb); |
| | | return 1; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | HTREEITEM hItem = tv_folder.GetCaretItem(); |
| | | if (hItem <= 0) return 1; |
| | | if (!hItem) return 1; |
| | | KXMLDOMElement e = tv_folder.GetItemData(hItem); |
| | | xstring no = e.getAttribute(L"no"); |
| | | if (no.find(L"Customer:") >= 0) |
| | |
| | | #include "viewobject/view.base.hpp" |
| | | #include "viewobject/saleorder.view.hpp" |
| | | #include "viewobject/quote.view.hpp" |
| | | #include "viewobject/gdn3.view.hpp" |
| | | #include "viewobject/custom.view.hpp" |
| | | |
| | | class __declspec(dllexport) GDN3MaintWin : public maint |
| | | { |
| | |
| | | } |
| | | } |
| | | tools += L"</vbox>"; |
| | | SetAgentNodeContent(anode, tools); |
| | | SetAgentNode(anode, tools); |
| | | |
| | | return 1; |
| | | } |
| | |
| | | KXMLDOMDocument xbasedoc = xbase; |
| | | dw_base.DwUpdateAllTo(xbasedoc); |
| | | |
| | | xaserverarg arg = GDNView::MakeArg(); |
| | | xaserverarg arg ; |
| | | //if(dw_billnote.DeletedCount()+dw_billnote.ModifiedCount() > 0) |
| | | //{ |
| | | xml xbillnote ; |
| | |
| | | |
| | | KXMLDOMDocument xprofitdoc = xprofit; |
| | | dw_profit.DwUpdateAllTo(xprofitdoc); |
| | | xaserverarg arg3 = GDNView::MakeArg(); |
| | | xaserverarg arg3 ; |
| | | arg3.AddArg(L"content", xprofit.xml()); |
| | | if (xurl::get(L"/sale/data/Gdn/update/profit", arg3.GetString(), xprofit) != 1) |
| | | { |
| | |
| | | KXMLDOMDocument xitemdoc = xitem; |
| | | dw_item.DwUpdateAllToEx(xitemdoc); |
| | | //dw_base.DwUpdateAllTo(xitemdoc); |
| | | xaserverarg arg1 = GDNView::MakeArg(); |
| | | xaserverarg arg1 ; |
| | | arg1.AddArg(L"content", xitem.xml()); |
| | | |
| | | if (xurl::get(L"/sale/data/Gdn/update/item", arg1.GetString(), xitem) != 1) |
| | |
| | | xml x; |
| | | |
| | | dw_source.DwUpdateAllToEx(x); |
| | | xaserverarg arg2 = GDNView::MakeArg(); |
| | | xaserverarg arg2 ; |
| | | arg2.AddArg(L"content", x.xml()); |
| | | |
| | | if (xurl::get(L"/sale/data/Gdn/update/sourceex", arg2.GetString(), x) != 1) |
| | |
| | | { |
| | | if (dw_custom.GetItemString(k, L"LineNo") == L"") |
| | | { |
| | | dw_custom.SetItemString(k, L"LineNo", k.toString()); |
| | | dw_custom.SetItemString(k, L"LineNo", xstring(k)); |
| | | } |
| | | } |
| | | xml xcustom; |
| | |
| | | xml x1 ; |
| | | |
| | | dw_invoiceItem.DwUpdateAllToEx(x1); |
| | | xaserverarg arg4 = GDNView::MakeArg(); |
| | | xaserverarg arg4; |
| | | arg4.AddArg(L"content", x1.xml()); |
| | | if (xurl::get(L"/sale/data/Gdn/update/itemex", arg4.GetString(), x1) != 1) |
| | | if (!x1) |
| | |
| | | xml xfcl ; |
| | | |
| | | dw_fcl.DwUpdateAllToEx(xfcl); |
| | | xaserverarg arg8 = GDNView::MakeArg(); |
| | | xaserverarg arg8 ; |
| | | arg8.AddArg(L"content", xfcl.xml()); |
| | | |
| | | if (xurl::get(L"/sale/data/Gdn/update/container", arg8.GetString(), xfcl) != 1) |
| | |
| | | dw_cdelement.DwUpdateAllToEx(xcdelement); |
| | | if (xcdelement.xml() != L"") |
| | | { |
| | | xcdelement = CustomView::UpdateCustomElement(dw_base.GetItemString(1, L"InvoiceNo"), xcdelement.GetXml()); |
| | | xcdelement = CustomView::UpdateCustomElement(dw_base.GetItemString(1, L"InvoiceNo"), xcdelement.xml()); |
| | | if (!xcdelement) |
| | | { |
| | | xstring error6 = xcdelement.text(); |
| | |
| | | xstring GDNLineID = dw_item.GetGuid(nRow); |
| | | if (clear) ClearSourcingItem(nRow); |
| | | double ExchangeCostEx = dw_profit.GetItemDouble(1, L"ExchangeCostEx"); |
| | | xml x = xml::Make(); |
| | | xml x ; |
| | | x.loadXML(L"<data/>"); |
| | | KXMLDOMElement e = dw_item.GetRowElement(nRow); |
| | | KXMLDOMNode n = e.cloneNode(-1); |
| | |
| | | n.Release(); |
| | | xstring val = x.xml(); |
| | | trace(L"=======L" + val + L"=======L"); |
| | | x.Free(); |
| | | |
| | | xml source = ViewObject::RetrieveData(L"/sale/data/PurchaseOrder/gdn/sourcing/refreshitemex", L"content", val); |
| | | if (source) |
| | |
| | | xstring GDNLineID = dw_item.GetGuid(nRow); |
| | | if (clear) ClearSourcingItem(nRow); |
| | | double ExchangeCostEx = dw_profit.GetItemDouble(1, L"ExchangeCostEx"); |
| | | xml x = xml::Make(); |
| | | xml x ; |
| | | x.loadXML(L"<data/>"); |
| | | KXMLDOMElement e = dw_item.GetRowElement(nRow); |
| | | KXMLDOMNode n = e.cloneNode(-1); |
| | |
| | | n.Release(); |
| | | xstring val = x.xml(); |
| | | trace(L"123=======L" + val + L"=======123"); |
| | | x.Free(); |
| | | |
| | | xml source = ViewObject::RetrieveData(L"/sale/data/PurchaseOrder/gdn/sourcing/refreshitemexOne", L"content", val); |
| | | if (source) |
| | |
| | | dw_item.DwUpdateAllToEx(xitemdoc); |
| | | |
| | | |
| | | xml x = ViewObject::RetrieveData(L"/sale/data/PurchaseOrder/gdn/sourcing/refreshitemexOne", L"content", xitem.GetXml()); |
| | | xml x = ViewObject::RetrieveData(L"/sale/data/PurchaseOrder/gdn/sourcing/refreshitemexOne", L"content", xitem.xml()); |
| | | trace(x.xml()); |
| | | if (x) |
| | | { |
| | |
| | | |
| | | PoTotal(); |
| | | |
| | | x.Free(); |
| | | evalProfitAmountEx(); |
| | | } |
| | | |
| | |
| | | { |
| | | if (data == L"") |
| | | { |
| | | dw_item.SetItemDisplayString(row, col, L""); |
| | | dw_item.SetItemDisplayString(row, col.c_str(), L""); |
| | | dw_item.SetItemString(row, L"CDUnitPrice", L""); |
| | | dw_item.SetItemDisplayString(row, L"CDUnitPrice", L""); |
| | | } |
| | |
| | | { |
| | | xaserverarg arg ; |
| | | |
| | | xstring str = dw_billnote.GetItemString(row, colname); |
| | | xstring str = dw_billnote.GetItemString(row, colname.c_str()); |
| | | arg.AddArg(L"value", str); |
| | | openUrl(L"/sale/view/view.dlg/xpage/memo/edit/new", &arg); |
| | | |
| | |
| | | if (comdid == L"xmOK") |
| | | { |
| | | xstring value = arg.GetArgString(L"value"); |
| | | dw_billnote.SetItemString(row, colname, value); |
| | | dw_billnote.SetItemString(row, colname.c_str(), value); |
| | | dw_billnote.Redraw(); |
| | | } |
| | | } |
| | |
| | | |
| | | int OnMakeCustom() |
| | | { |
| | | int HCursor = xutil::SetCursorWait(); |
| | | HCURSOR HCursor = xutil::SetCursorWait(); |
| | | dw_custom.AcceptText(); |
| | | int cnt = dw_custom.GetRowCount(); |
| | | bool cdelement = false; |
| | |
| | | { |
| | | if (dw_custom.GetItemString(m, L"UseFlag") == L"0") |
| | | { |
| | | if (dw_custom.GetItemString(i, L"ClassifyID") != L"") |
| | | DeleteCDElement(dw_custom.GetItemString(i, L"ClassifyID")); |
| | | if (dw_custom.GetItemString(m, L"ClassifyID") != L"") |
| | | DeleteCDElement(dw_custom.GetItemString(m, L"ClassifyID")); |
| | | dw_custom.DeleteRow(m); |
| | | } |
| | | } |
| | |
| | | |
| | | int OnAddSourcingItem() |
| | | { |
| | | xaserverarg arg = GDNView::MakeArg(); |
| | | xaserverarg arg ; |
| | | arg.AddArg(L"InvoiceNo", dw_base.GetItemString(1, L"InvoiceNo")); |
| | | int p = arg; |
| | | OpenWindow(L"dev:xpage[select.item.po.vx]", p); |
| | |
| | | KXMLDOMNode t = items.item(i); |
| | | dw_item.SetItemString(row, L"SeqNo", xstring((row * 10))); |
| | | dw_item.SetItemString(row, L"GDNID", dw_base.GetGuid(1)); |
| | | double cost = (double) t.selectSingleNode(L"Cost").text().todouble(); |
| | | double cost = xstring(t.selectSingleNode(L"Cost").text()).toDouble(); |
| | | |
| | | |
| | | if (t.selectSingleNode(L"SONo")) |
| | |
| | | double d1 = dw_item.GetItemDouble(row, L"Quantity"); |
| | | double d2 = dw_item.GetItemDouble(row, L"UnitPrice"); |
| | | double d = d1 * d2; |
| | | d = d.round(2); |
| | | d = xdouble(d).round(2); |
| | | dw_item.SetItemDouble(row, L"Amount", d); |
| | | |
| | | double UnitCommPrice = dw_item.GetItemDouble(row, L"UnitCommPrice"); |
| | |
| | | dw_base.SetItemString(1, L"Mark", FrontMarkss); |
| | | |
| | | double CostEx = dw_base.GetItemDouble(1, L"Cost"); |
| | | if (CostEx == 0 || CostEx == L"") |
| | | if (CostEx == 0) |
| | | { |
| | | if (costs >= 0) { |
| | | dw_base.SetItemString(1, L"CostMoreLess", L"1"); |
| | |
| | | int OnAddGDNItem() |
| | | { |
| | | //trace(L"12313"); |
| | | xaserverarg arg = GDNView::MakeArg(); |
| | | xaserverarg arg ; |
| | | arg.AddArg(L"CustomerID", dw_base.GetItemString(1, L"CustomerID")); |
| | | arg.AddArg(L"InvoiceNo", dw_base.GetItemString(1, L"InvoiceNo")); |
| | | arg.AddArg(L"SONo", dw_base.GetItemString(1, L"")); |
| | | int p = arg; |
| | | if (dw_base.GetItemString(1, L"CustomerID") == L"") |
| | | { |
| | | OpenWindow(L"dev:xpage[SelectItem.New.GDN.vx]", cast(arg as int)); |
| | | OpenWindow(L"dev:xpage[SelectItem.New.GDN.vx]", arg); |
| | | if (dw_base.GetItemString(1, L"CustomerID") == L"") |
| | | { |
| | | dw_base.SetItemDisplayString(1, L"CustomerID", arg.GetArgString(L"PartyName")); |
| | |
| | | } |
| | | else if (comdid == L"xmMaintBuyPrice") |
| | | { |
| | | xaserverarg arg = GDNView::MakeArg(); |
| | | xaserverarg arg ; |
| | | int row = dw_source.GetRow(); |
| | | if (row < 1) return 1; |
| | | arg.AddArg(L"SupplierID", dw_source.GetItemString(row, L"SupplierID")); |
| | | arg.AddArg(L"SupplierName", dw_source.GetItemDisplayString(row, L"SupplierID")); |
| | | arg.AddArg(L"Price", dw_source.GetItemString(row, L"BuyUnitPrice")); |
| | | OpenWindow(L"dev:xpage[GDNSourcePriceMaint.vx]", cast(arg as int)); |
| | | OpenWindow(L"dev:xpage[GDNSourcePriceMaint.vx]", arg); |
| | | if (arg.GetArgString(L"result") == L"ok") |
| | | { |
| | | if (arg.GetArgString(L"SupplierID") != L"") |
| | |
| | | KXMLDOMNode n = o.selectSingleNode(L"VATRates"); |
| | | if (n) |
| | | { |
| | | tax = n.text.toDouble(); |
| | | tax = xstring(n.text()).toDouble(); |
| | | n.Release(); |
| | | } |
| | | n = o.selectSingleNode(L"VATRefundRate"); |
| | | if (n) |
| | | { |
| | | retax = n.text.toDouble(); |
| | | retax = xstring(n.text()).toDouble(); |
| | | n.Release(); |
| | | } |
| | | o.Release(); |
| | |
| | | double rate = expRate.toDouble(); |
| | | ManagementFee = sale * rate; |
| | | } |
| | | trace(ManagementFee.toString()); |
| | | dw_profit.SetItemDouble(1, L"ManagementFee", ManagementFee); |
| | | return 1; |
| | | } |
| | |
| | | evalDrawbackEx(); |
| | | evalTotalCost(); |
| | | evalProfitAmountEx(); |
| | | return 1; |
| | | } |
| | | |
| | | int OnItemAskStyle(TEvent* evt, LPARAM p) |
| | |
| | | AttachEvent(L"dw_item", L"DWV_ASKSTYLE", (FEvent)&GDN3MaintWin::OnItemAskStyle); |
| | | |
| | | AttachCloseWindow(); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | int RetrieveUseBuffer(xstring invno) |
| | | { |
| | | |
| | | xml x; |
| | | x = new xml; |
| | | |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | if (dw_billnote.GetRowCount() < 1) |
| | | { |
| | | xml x0; |
| | | x0 = new xml; |
| | | x0.setNativePointer(xml::CreateInstance()); |
| | | xstring billnote = L"<GDN><DocInfo><data><Item Name='æ¥å
³å票' Field='Remark'></Item>" + |
| | | "<Item Name='æ¥å
³ç®±å' Field='Remark'></Item>" + |
| | | "<Item Name='è®®ä»å票' Field='Remark'></Item>" + |
| | | "<Item Name='è®®ä»ç®±å' Field='Remark'></Item>" + |
| | | "<Item Name='è£
è¹éç¥' Field='Remark'></Item>" + |
| | | "<Item Name='å æ¿å¤§æµ·å
³å票' Field='Remark'></Item>" + |
| | | "<Item Name='FORMA' Field='Remark'></Item></data></DocInfo></GDN>"; |
| | | xstring billnote = L"<GDN><DocInfo><data><Item Name='æ¥å
³å票' Field='Remark'></Item>" |
| | | L"<Item Name='æ¥å
³ç®±å' Field='Remark'></Item>" |
| | | L"<Item Name='è®®ä»å票' Field='Remark'></Item>" |
| | | L"<Item Name='è®®ä»ç®±å' Field='Remark'></Item>" |
| | | L"<Item Name='è£
è¹éç¥' Field='Remark'></Item>" |
| | | L"<Item Name='å æ¿å¤§æµ·å
³å票' Field='Remark'></Item>" |
| | | L"<Item Name='FORMA' Field='Remark'></Item></data></DocInfo></GDN>"; |
| | | x0.loadXML(billnote); |
| | | dw_billnote.Retrieve(x0); |
| | | } |
| | |
| | | dw_item.SetSelectionMode(1); |
| | | if (dw_item.GetRowCount() < 1) |
| | | { |
| | | xml x2 = xml::Make(); |
| | | xml x2 ; |
| | | x2.loadXML(L"<GDN/>"); |
| | | dw_item.Retrieve(x2); |
| | | x2.Free(); |
| | | } |
| | | |
| | | /* |
| | |
| | | ele = node; |
| | | //node.release(); |
| | | dw_invoiceItem.Retrieve(ele); |
| | | ele.release(); |
| | | } |
| | | //alert(L"123"+InvoiceID); |
| | | //dw_source.DwRetrieve(GetServerUrl(),L"[source.gdn.sql.xq]", L"EntityID", InvoiceID); |
| | |
| | | ele = node; |
| | | //node.release(); |
| | | dw_source.Retrieve(ele); |
| | | ele.release(); |
| | | } |
| | | dw_custom.DwRetrieve(GetServerUrl(), L"[cdline.gdn.sql.xq]", L"EntityID", InvoiceID); |
| | | dw_custom.SetSelectionMode(1); |
| | |
| | | //node.release(); |
| | | dw_cdelement.Retrieve(ele); |
| | | dw_cdelement.SetSelectionMode(1); |
| | | ele.release(); |
| | | } |
| | | |
| | | node = xdoc.selectSingleNode(L"data/Item[@subject='Container' or @subject='container']/*"); |
| | |
| | | ele = node; |
| | | //node.release(); |
| | | dw_fcl.Retrieve(ele); |
| | | ele.release(); |
| | | } |
| | | |
| | | return 1; |
| | |
| | | int OnRefreshSource(xstring invno) |
| | | { |
| | | xml x; |
| | | x = new xml; |
| | | |
| | | |
| | | xaserverarg arg ; |
| | | |
| | |
| | | //return RetrieveUseBuffer(invno); |
| | | |
| | | xml x; |
| | | x = new xml; |
| | | |
| | | |
| | | xaserverarg arg ; |
| | | |
| | |
| | | dw_billnote.Retrieve(x); |
| | | if (dw_billnote.GetRowCount() < 1) |
| | | { |
| | | xstring billnote = L"<GDN><DocInfo><data><Item Name='æ¥å
³å票' Field='Remark'></Item>" + |
| | | "<Item Name='æ¥å
³ç®±å' Field='Remark'></Item>" + |
| | | "<Item Name='è®®ä»å票' Field='Remark'></Item>" + |
| | | "<Item Name='è®®ä»ç®±å' Field='Remark'></Item>" + |
| | | "<Item Name='è£
è¹éç¥' Field='Remark'></Item>" + |
| | | "<Item Name='å æ¿å¤§æµ·å
³å票' Field='Remark'></Item>") + |
| | | "<Item Name='FORMA' Field='Remark'></Item></data></DocInfo></GDN>"); |
| | | xstring billnote = L"<GDN><DocInfo><data><Item Name='æ¥å
³å票' Field='Remark'></Item>" |
| | | "<Item Name='æ¥å
³ç®±å' Field='Remark'></Item>" |
| | | "<Item Name='è®®ä»å票' Field='Remark'></Item>" |
| | | "<Item Name='è®®ä»ç®±å' Field='Remark'></Item>" |
| | | "<Item Name='è£
è¹éç¥' Field='Remark'></Item>" |
| | | "<Item Name='å æ¿å¤§æµ·å
³å票' Field='Remark'></Item>" |
| | | "<Item Name='FORMA' Field='Remark'></Item></data></DocInfo></GDN>"; |
| | | x.loadXML(billnote); |
| | | dw_billnote.Retrieve(x); |
| | | } |
| | |
| | | |
| | | xstring GetInvoiceID(xstring InvoiceNo) |
| | | { |
| | | xml x = xml::Make(); |
| | | xaserverarg arg = xaserverarg::Make(); |
| | | xml x ; |
| | | xaserverarg arg ; |
| | | arg.AddArg(L"InvoiceNo", InvoiceNo); |
| | | xaserver::ExecXQuery(GetServerUrl(), L"[gdnid.gdn.xq]", arg.GetString(), x); |
| | | xstring InvoiceID1 = L""; |
| | |
| | | { |
| | | InvoiceID1 = x.text(); |
| | | } |
| | | arg.Free(); |
| | | x.Free(); |
| | | return InvoiceID1; |
| | | } |
| | | |
| | |
| | | dw_base.SetGuid(1, id); |
| | | dw_profit.SetGuid(1, id); |
| | | |
| | | xml x = ViewObject::MakeXml(); |
| | | xstring billnote = L"<GDN><DocInfo><data><Item Name='æ¥å
³å票' Field='Remark'></Item>" + |
| | | "<Item Name='æ¥å
³ç®±å' Field='Remark'></Item>" + |
| | | "<Item Name='è®®ä»å票' Field='Remark'></Item>" + |
| | | "<Item Name='è®®ä»ç®±å' Field='Remark'></Item>" + |
| | | "<Item Name='è£
è¹éç¥' Field='Remark'></Item>" + |
| | | "<Item Name='å æ¿å¤§æµ·å
³å票' Field='Remark'></Item>" + |
| | | xml x; |
| | | xstring billnote = L"<GDN><DocInfo><data><Item Name='æ¥å
³å票' Field='Remark'></Item>" |
| | | "<Item Name='æ¥å
³ç®±å' Field='Remark'></Item>" |
| | | "<Item Name='è®®ä»å票' Field='Remark'></Item>" |
| | | "<Item Name='è®®ä»ç®±å' Field='Remark'></Item>" |
| | | "<Item Name='è£
è¹éç¥' Field='Remark'></Item>" |
| | | "<Item Name='å æ¿å¤§æµ·å
³å票' Field='Remark'></Item>" |
| | | "<Item Name='FORMA' Field='Remark'></Item></data></DocInfo></GDN>"; |
| | | x.loadXML(billnote); |
| | | dw_billnote.Retrieve(x); |
| | | return 1; |
| | | } |
| | | |
| | | int onload() |
| | |
| | | dw_doclist.openUrl(L"/sale/view/GDN/template/doclist"); |
| | | |
| | | InvoiceNo = L""; |
| | | if (GetParam()) |
| | | if (GetWinParam()) |
| | | { |
| | | xaserverarg arg_param = new xaserverarg; |
| | | arg_param.setNativePointer(GetParam()); |
| | | xaserverarg arg_param=GetArg(); |
| | | |
| | | InvoiceNo = arg_param.GetArgString(L"InvoiceNo"); |
| | | if (InvoiceNo == L"") InvoiceNo = arg_param.GetArgString(L"EntityNo"); |
| | |
| | | else |
| | | { |
| | | OnNewInital(); |
| | | if (GetParam()) |
| | | if (GetWinParam()) |
| | | { |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(GetParam()); |
| | | xaserverarg arg = GetArg(); |
| | | |
| | | if (arg.GetArgString(L"CustomerID") != L"") |
| | | { |
| | |
| | | xstring colname = L"CustomerID"; |
| | | xstring value = arg.GetArgString(L"CustomerID"); |
| | | KXMLDOMNodeList nlist = GetElement().selectNodes(L"//*[@name='" + dwname + L"']/trans[@for='" + colname + L"']"); |
| | | ViewObject::TransData(nlist, dw_base, 1, colname, value); |
| | | ViewObject::TransData(nlist, dw_base, 1, colname, value); |
| | | trace(L"+++++L"); |
| | | } |
| | | } |
| | |
| | | { |
| | | KXMLDOMElement e = nlist.item(i); |
| | | string name = e.getAttribute(L"name"); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e.ptr(), image); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e, image); |
| | | ExpandCatChildFolder(h, e, 35); |
| | | } |
| | | return 1; |
| | |
| | | { |
| | | KXMLDOMElement e = nlist.item(i); |
| | | string name = e.getAttribute(L"name"); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e.ptr(), 35); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e, 35); |
| | | ExpandCatChildFolder(h, e, 35); |
| | | } |
| | | return 1; |
| | |
| | | xstring child = e.getAttribute(L"child"); |
| | | int image = 15; |
| | | if (sImage) image = sImage.toInt(); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e.ptr(), image); |
| | | HTREEITEM h = tv_folder.InsertChildItem(hItem, name, e, image); |
| | | if (child != L"no") tv_folder.SetItemChild(h, 1); |
| | | //ExpandChildFolder(h, e); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #pragma once |
| | | |
| | | #include <wobject/xstring.hpp> |
| | | #include <wobject/xaserverarg.hpp> |
| | | #include <win32/win.hpp> |
| | | #include <vbusiness/vutil/publiccode.vutil.vbusiness.hpp> |
| | | #include <wobject/xurl.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | #include <xcontrol/xdwtable.hpp> |
| | | #include "view.base.hpp" |
| | | |
| | | class CustomView : public ViewObject |
| | | { |
| | | public: |
| | | static KXMLDOMDocument GetSimulationView(string sono) |
| | | { |
| | | xaserverarg arg = MakeArg(L"sono", sono); |
| | | return FecthData(L"/sale/data/Custom3/fullview", arg.GetString()); |
| | | } |
| | | |
| | | //æ¥å
³ç¼å·æå® |
| | | static KXMLDOMDocument GetMaintFormForSourceItem() |
| | | { |
| | | return FecthData(L"/sale/data/Custom3/maint/form/sourceitem", L""); |
| | | } |
| | | |
| | | |
| | | static KXMLDOMDocument GetMaintSourceItem(string invno) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/maint/sourceitem", L"invno", invno); |
| | | } |
| | | |
| | | static KXMLDOMDocument GetMaintFormHSGoods(string invno) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/maint/form/hsgoods", L"invno", invno); |
| | | } |
| | | |
| | | static KXMLDOMDocument UpdateCustomItem(string invno, string content) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/maint/custom/update", L"invno", invno, L"content", content); |
| | | } |
| | | |
| | | static KXMLDOMDocument UpdateCustomElement(string invno, string content) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/maint/customelement/update", L"invno", invno, L"content", content); |
| | | } |
| | | |
| | | static KXMLDOMDocument GetCustomItem(string invno) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/maint/custom/data", L"invno", invno); |
| | | } |
| | | |
| | | static KXMLDOMDocument GetCustomContainer(string invno) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/maint/customcontainer", L"invno", invno); |
| | | } |
| | | |
| | | |
| | | static KXMLDOMDocument GetCustomHabit(string invno) |
| | | { |
| | | return RetrieveData(L"/sale/data/Custom3/custom/habit", L"invno", invno); |
| | | } |
| | | }; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #pragma once |
| | | |
| | | #include <wobject/xstring.hpp> |
| | | #include <wobject/xaserverarg.hpp> |
| | | #include <win32/win.hpp> |
| | | #include <vbusiness/vutil/publiccode.vutil.vbusiness.hpp> |
| | | #include <wobject/xurl.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | #include <xcontrol/xdwtable.hpp> |
| | | #include "view.base.hpp" |
| | | |
| | | class GDNView : public ViewObject |
| | | { |
| | | public: |
| | | //页é¢ä¿¡æ¯ |
| | | static KXMLDOMDocument GetGDNSimulationView(string SONo) |
| | | { |
| | | xaserverarg arg = MakeArg(L"SONo", SONo); |
| | | |
| | | return FecthData(L"/sale/data/Gdn/simulation/view", arg.GetString()); |
| | | } |
| | | |
| | | static KXMLDOMDocument GetInvoiceBySONo(string sono) |
| | | { |
| | | return RetrieveData(L"/sale/data/GDN/source/invno", L"sono", sono); |
| | | } |
| | | |
| | | static string GetInvoiceNoByID(string id) |
| | | { |
| | | KXMLDOMDocument x = RetrieveData(L"/sale/data/GDN/info/invnobyid", L"EntityID", id); |
| | | string no = L""; |
| | | if (x) no = x.selectSingleNode(L"//item").text(); |
| | | return no; |
| | | } |
| | | |
| | | }; |
| | |
| | | return no; |
| | | } |
| | | |
| | | static int TransData(KXMLDOMNodeList nlist, xdwtable dwobj, int row, string column, string data) |
| | | { |
| | | return TransData(xapp::GetServerUrl(), nlist, dwobj, row, column, data); |
| | | } |
| | | |
| | | static int TransData(string serverUrl,KXMLDOMNodeList nlist, xdwtable dwobj, int row, string column, string data) |
| | | { |
| | | int len = nlist.length(); |
| | |
| | | return 1; |
| | | } |
| | | |
| | | static int TransData(KXMLDOMNodeList nlist, xdwgrid dwobj, int row, string column, string data) |
| | | { |
| | | return TransData(xapp::GetServerUrl(), nlist, dwobj, row, column, data); |
| | | } |
| | | |
| | | static int TransData(string serverUrl, KXMLDOMNodeList nlist, xdwgrid dwobj, int row, string column, string data) |
| | | { |
| | | int len = nlist.length(); |
| | |
| | | int t2 = r.top; |
| | | int b2 = r.bottom; |
| | | |
| | | MoveWindow(m_hMenu, l - 7, b, 220, b2 - t2, false); |
| | | MoveWindow(m_hMenu, l - 7, b, 220, b2 - t2, true); |
| | | |
| | | return 1; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #pragma once |
| | | |
| | | #include "kcontrol.hpp" |
| | | namespace Hxsoft { namespace XFrame { namespace XOffice { namespace XCell{ |
| | | |
| | | class IXCell : public IXFControl |
| | | { |
| | | public: |
| | | int GetRow(); |
| | | int GetColumn(); |
| | | |
| | | int GetAnchorRow(); |
| | | int GetAnchorCol(); |
| | | |
| | | int SetRowColumn(int ARow, int ACol); |
| | | int SetAnchorRowColumn(int ARow, int ACol); |
| | | |
| | | int GetRowCount(); |
| | | int SetRowCount(int columnCount); |
| | | |
| | | int GetColumnCount(); |
| | | int SetColumnCount(int columnCount); |
| | | |
| | | LPCTSTR GetItemString(int ARow, int ACol); |
| | | int SetItemString(int ARow, int ACol, LPTSTR pText); |
| | | LPCTSTR GetItemDisplayString(int ARow, int ACol); |
| | | int SetItemDisplayString(int ARow, int ACol, LPTSTR pText); |
| | | |
| | | int SetBorder(int nBorder); |
| | | |
| | | int Copy(); |
| | | int Cut(); |
| | | int Paste(); |
| | | |
| | | int GetColumnWidth(int nCol); |
| | | bool SetColumnWidth(int nCol, int nWidth); |
| | | int GetRowHeight(int nRow); |
| | | bool SetRowHeight(int nRow, int nHeight); |
| | | public: |
| | | int SetRowSelectorWidth(int nWidth); |
| | | int ResetRowSelector(); |
| | | int GetRowSelectorWidth(); |
| | | int GetRowSelectorDefaultWidth(); |
| | | |
| | | int SetColHeaderHeight(int nHeight); |
| | | int GetColHeaderDefaultHeight(); |
| | | int ResetColHeaderHeight(); |
| | | int GetColHeaderHeight(); |
| | | public: |
| | | LPTSTR GetCellProps(int nRow, int nCol); //å¾å°åå
æ´ä½XML屿§ |
| | | int SetCellProps(int nRow, int nCol, LPCTSTR pXmlProp); //å¾å°åå
æ´ä½XML屿§ |
| | | LPTSTR GetCellProp(int nRow, int nCol, LPCTSTR pItem); //å¾å°åå
屿§ |
| | | int SetCellProp(int nRow, int nCol, LPCTSTR pItem, LPCTSTR pProp);//å¾å°åå
屿§ |
| | | public: |
| | | LPTSTR GetHtml(); |
| | | LPTSTR GetData(); |
| | | public: |
| | | void* GetSheetSvr(); |
| | | public: |
| | | void SetSchmaSource(LPCTSTR pSchema); |
| | | LPCTSTR GetSchemaSource(); |
| | | void SetSchmaString(LPCTSTR pSchemaStr); |
| | | LPCTSTR GetSchemaString(); |
| | | public: |
| | | int GetSpanRight(int ARow, int ACol); |
| | | int GetSpanBottom(int ARow, int ACol); |
| | | int GetSpanLeft(int ARow, int ACol); |
| | | int GetSpanTop(int ARow, int ACol); |
| | | bool IsSpanCell(int ARow, int ACol); |
| | | public: |
| | | int GetValidRow(); |
| | | int GetValidCol(int ARow); |
| | | int GetValidRowCol(int& ARow, int& ACol); |
| | | int GetValidCol(); |
| | | public: |
| | | int LoadTemplate(KXMLDOMDocument pDoc, LPTSTR strState); |
| | | int LoadTemplate(KXMLDOMElement pElement, LPTSTR strState); |
| | | public: |
| | | int SaveFileAs(); |
| | | int SaveFile(); |
| | | int SaveFile(wchar_t* fileName); |
| | | public: |
| | | int OpenFile(wchar_t* fileName); |
| | | int OpenFile(); |
| | | public: |
| | | wchar_t* m_pFileName; |
| | | public: |
| | | int SetReadOnly(bool bReadOnly); |
| | | int SetRunState(); |
| | | int SetRunState(int runstate); |
| | | public: |
| | | void SetEditUpperMode(bool upper); |
| | | bool GetEditUpperMode(); |
| | | public: |
| | | LPCTSTR GetSortColumns(); |
| | | void SortData(LPCTSTR sortColumn, LPTSTR strType, bool bAsc); |
| | | }; |
| | | }}}} |
| | |
| | | return false; |
| | | } |
| | | |
| | | xstring xstring::replace(wchar_t* from, wchar_t* to, int pos) |
| | | xstring xstring::replace(const wchar_t* from, const wchar_t* to) |
| | | { |
| | | return replace(from, to, 0); |
| | | } |
| | | xstring xstring::replace(const wchar_t* from, const wchar_t* to, int pos) |
| | | { |
| | | const wchar_t* pstr = c_str(); |
| | | if (!pstr) return 0; |
| | |
| | | { |
| | | /* |
| | | if (sOrgID == "") return "4.2"; |
| | | xml x = new xml; |
| | | xml |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg args=new xaserverarg; |
| | | args.setNativePointer(args.CreateInstance()); |
| | |
| | | |
| | | static KXMLDOMDocument getAssignment(string sguid, KXMLDOMDocument x) |
| | | { |
| | | //xml x = new xml; |
| | | //xml |
| | | //x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | |
| | | xstring rtrim(); |
| | | |
| | | bool isNumber(); |
| | | xstring replace(wchar_t* from, wchar_t* to, int pos); |
| | | xstring replace(const wchar_t* from, const wchar_t* to); |
| | | xstring replace(const wchar_t* from, const wchar_t* to, int pos); |
| | | }; |
| | | xstring operator +(const wchar_t* lhs, const xstring& rhs); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #pragma once |
| | | |
| | | #include "wobject/xcontrol.hpp" |
| | | #include "kobject/kcell.hpp" |
| | | #include "wobject/xurl.hpp" |
| | | |
| | | using kcell = Hxsoft::XFrame::XOffice::XCell::IXCell; |
| | | class xcell : public xcontrol |
| | | { |
| | | public: |
| | | xcell(void* impl=nullptr) :xcontrol(impl) {} |
| | | public: |
| | | kcell* GetKCell() |
| | | { |
| | | return (kcell*)this->GetNativePtr(); |
| | | } |
| | | public: |
| | | xstring GetHtml() //alias "?GetHtml@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WXZ"; |
| | | { |
| | | return GetKCell()->GetHtml(); |
| | | } |
| | | xstring GetData() //alias "?GetData@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WXZ"; |
| | | { |
| | | return GetKCell()->GetData(); |
| | | } |
| | | int GetAnchorCol() //alias "?GetAnchorCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->GetAnchorCol(); |
| | | |
| | | } |
| | | int GetAnchorRow() //alias "?GetAnchorRow@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->GetAnchorRow(); |
| | | |
| | | } |
| | | int GetColumn() //alias "?GetColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->GetColumn(); |
| | | |
| | | } |
| | | int GetColumnCount() //alias "?GetColumnCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->GetColumnCount(); |
| | | |
| | | } |
| | | xstring GetItemString(int ARow, int ACol) //alias "?GetItemString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPB_WHH@Z"; |
| | | { |
| | | return GetKCell()->GetItemString(ARow, ACol); |
| | | } |
| | | int GetRow() //alias "?GetRow@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->GetRow(); |
| | | } |
| | | int GetRowCount() //alias "?GetRowCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->GetRowCount(); |
| | | } |
| | | int SetAnchorRowColumn(int ARow, int ACol) //alias "?SetAnchorRowColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { |
| | | return GetKCell()->SetAnchorRowColumn(ARow,ACol); |
| | | } |
| | | int SetRowColumn(int ARow, int ACol) //alias "?SetRowColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { |
| | | return GetKCell()->SetRowColumn(ARow,ACol); |
| | | } |
| | | int SetBorder(int nBorder) //alias "?SetBorder@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { |
| | | return GetKCell()->SetBorder(nBorder); |
| | | } |
| | | |
| | | int SetColumnCount(int columnCount) //alias "?SetColumnCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { |
| | | return GetKCell()->SetColumnCount(columnCount); |
| | | } |
| | | int SetRowCount(int rowCount) //alias "?SetRowCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { |
| | | return GetKCell()->SetRowCount(rowCount); |
| | | } |
| | | |
| | | int SetItemString(int ARow, int ACol, xstring value) //alias "?SetItemString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHHPA_W@Z"; |
| | | { |
| | | return GetKCell()->SetItemString(ARow,ACol,(LPTSTR)value.c_str()); |
| | | } |
| | | int SetRowColumn(int ARow, int ACol) //alias "?SetRowColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { |
| | | return GetKCell()->SetRowColumn(ARow,ACol); |
| | | } |
| | | int Copy() //alias "?Copy@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->Copy() ; |
| | | } |
| | | int Cut() //alias "?Cut@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->Cut() ; |
| | | } |
| | | int Paste() //alias "?Paste@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { |
| | | return GetKCell()->Paste() ; |
| | | } |
| | | xstring GetCellProp(int nRow, int nCol, xstring Item) //alias "?GetCellProp@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WHHPB_W@Z"; |
| | | { |
| | | return GetKCell()->GetCellProp(nRow,nCol,Item); |
| | | } |
| | | xstring GetCellProps(int nRow, int nCol) //alias "?GetCellProps@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WHH@Z"; |
| | | { |
| | | return GetKCell()->GetCellProps(nRow,nCol); |
| | | } |
| | | int SetCellProp(int nRow, int nCol, xstring Item, xstring val) //alias "?SetCellProp@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHHPB_W0@Z"; |
| | | { |
| | | return GetKCell()->SetCellProp(nRow,nCol,Item,val); |
| | | } |
| | | int SetCellProps(int nRow, int nCol, xstring val) //alias "?SetCellProps@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHHPB_W@Z"; |
| | | { |
| | | return GetKCell()->SetCellProps(nRow,nCol,val); |
| | | } |
| | | int GetColumnWidth(int nCol) //alias "?GetColumnWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { |
| | | return GetKCell()->GetColumnWidth(nCol); |
| | | } |
| | | bool SetColumnWidth(int nCol, int nWidth) //alias "?SetColumnWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAE_NHH@Z"; |
| | | { |
| | | return GetKCell()->SetColumnWidth(nCol,nWidth) ; |
| | | } |
| | | bool SetRowHeight(int nRow, int nHeight) //alias "?SetRowHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAE_NHH@Z"; |
| | | { |
| | | return GetKCell()->SetRowHeight(nRow,nHeight); |
| | | } |
| | | int GetRowHeight(int nRow) //alias "?GetRowHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { |
| | | return GetKCell()->GetRowHeight(nRow); |
| | | } |
| | | int SetRowSelectorWidth(int nWidth) //alias "?SetRowSelectorWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { |
| | | return GetKCell()->SetRowSelectorWidth(nWidth); |
| | | } |
| | | int ResetRowSelector() //alias "?ResetRowSelector@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->ResetRowSelector(); |
| | | |
| | | } |
| | | int GetRowSelectorWidth() //alias "?GetRowSelectorWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->GetRowSelectorWidth(); |
| | | |
| | | } |
| | | int GetRowSelectorDefaultWidth() //alias "?GetRowSelectorDefaultWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->GetRowSelectorDefaultWidth(); |
| | | |
| | | } |
| | | int SetColHeaderHeight(int nHeight) //alias "?SetColHeaderHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { return GetKCell()->SetColHeaderHeight(nHeight); |
| | | |
| | | } |
| | | int GetColHeaderDefaultHeight() //alias "?GetColHeaderDefaultHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->GetColHeaderDefaultHeight(); |
| | | |
| | | } |
| | | int ResetColHeaderHeight() //alias "?ResetColHeaderHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->ResetColHeaderHeight(); |
| | | |
| | | } |
| | | int GetColHeaderHeight() //alias "?GetColHeaderHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->GetColHeaderHeight(); |
| | | |
| | | } |
| | | //param GetSheetSvr() //alias "?GetSheetSvr@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPAXXZ"; |
| | | void SetSchmaSource(xstring schemasource) //alias "?SetSchmaSource@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEXPB_W@Z"; |
| | | { return GetKCell()->SetSchmaSource(schemasource); |
| | | |
| | | } |
| | | void SetSchmaString(xstring schemasstr) //alias "?SetSchmaString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEXPB_W@Z"; |
| | | { return GetKCell()->SetSchmaString(schemasstr); |
| | | |
| | | } |
| | | xstring GetSchemaSource() //alias "?GetSchemaSource@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPB_WXZ"; |
| | | { return GetKCell()->GetSchemaSource(); |
| | | |
| | | } |
| | | xstring GetSchemaString() //alias "?GetSchemaString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPB_WXZ"; |
| | | { return GetKCell()->GetSchemaString(); |
| | | |
| | | } |
| | | |
| | | int GetSpanBottom(int nRow, int nCol) //alias "?GetSpanBottom@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { return GetKCell()->GetSpanBottom(nRow, nCol); |
| | | |
| | | } |
| | | int GetSpanLeft(int nRow, int nCol) //alias "?GetSpanLeft@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { return GetKCell()->GetSpanLeft(nRow,nCol); |
| | | |
| | | } |
| | | int GetSpanRight(int ARow, int ACol) //alias "?GetSpanRight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { return GetKCell()->GetSpanRight(ARow,ACol); |
| | | |
| | | } |
| | | int GetSpanTop(int ARow, int ACol) //alias "?GetSpanTop@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z"; |
| | | { return GetKCell()->GetSpanTop(ARow,ACol); |
| | | |
| | | } |
| | | bool IsSpanCell(int ARow, int ACol) //alias "?IsSpanCell@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAE_NHH@Z"; |
| | | { return GetKCell()->IsSpanCell(ARow,ACol); |
| | | |
| | | } |
| | | int GetValidCol(int ARow) //alias "?GetValidCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { return GetKCell()->GetValidCol(); |
| | | |
| | | } |
| | | int GetValidCol() //alias "?GetValidCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->GetValidCol(); |
| | | |
| | | } |
| | | int GetValidRow() //alias "?GetValidRow@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->GetValidRow(); |
| | | |
| | | } |
| | | int GetValidRowCol(int &ARow, int &ACol) //alias "?GetValidRowCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHAAH0@Z"; |
| | | { return GetKCell()->GetValidRowCol(ARow,ACol) ; |
| | | |
| | | } |
| | | void SetEditUpperMode(bool upper) //alias "?SetEditUpperMode@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEX_N@Z"; |
| | | { return GetKCell()->SetEditUpperMode(upper); |
| | | |
| | | } |
| | | |
| | | int LoadTemplate(KXMLDOMDocument xmldoc, xstring state) //alias "?LoadTemplate@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPAUIXMLDOMDocument@@PA_W@Z"; |
| | | { return GetKCell()->LoadTemplate(xmldoc,(LPTSTR)state.c_str()); |
| | | |
| | | } |
| | | int LoadTemplate(KXMLDOMElement ele, xstring state) //alias "?LoadTemplate@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPAUIXMLDOMElement@@PA_W@Z"; |
| | | { return GetKCell()->LoadTemplate(ele, (LPTSTR)state.c_str()); |
| | | |
| | | } |
| | | int LoadTemplateEx(KXMLDOMElement ele) |
| | | { |
| | | return LoadTemplate(ele, L"design"); |
| | | } |
| | | |
| | | int LoadTemplate(KXMLDOMDocument xmldoc) |
| | | { |
| | | return LoadTemplate(xmldoc, L"design"); |
| | | } |
| | | |
| | | int openUrl(xstring aurl) |
| | | { |
| | | KXMLDOMDocument x; |
| | | xurl::get(aurl, L"", x); |
| | | return LoadTemplate(x); |
| | | } |
| | | |
| | | int openUrl(xstring aurl, xstring arg) |
| | | { |
| | | KXMLDOMDocument x; |
| | | xurl::get(aurl, arg, x); |
| | | return LoadTemplate(x); |
| | | } |
| | | |
| | | int OpenFile(xstring fileUrl) //alias "?OpenFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPA_W@Z"; |
| | | { return GetKCell()->OpenFile((LPTSTR)fileUrl.c_str()); |
| | | |
| | | } |
| | | int OpenFile() //alias "?OpenFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->OpenFile(); |
| | | |
| | | } |
| | | int SaveFile(xstring fileUrl) //alias "?SaveFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPA_W@Z"; |
| | | { return GetKCell()->SaveFile((LPTSTR)fileUrl.c_str()); |
| | | |
| | | } |
| | | int SaveFile() //alias "?SaveFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->SaveFile(); |
| | | |
| | | } |
| | | int SaveFileAs() //alias "?SaveFileAs@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->SaveFileAs(); |
| | | |
| | | } |
| | | |
| | | int SetRunState(int state) // "?SetRunState@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z"; |
| | | { return GetKCell()->SetRunState(state); |
| | | |
| | | } |
| | | |
| | | int SetRunState() //alias "?SetRunState@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ"; |
| | | { return GetKCell()->SetRunState(); |
| | | |
| | | } |
| | | |
| | | int SetReadOnly(bool bReadOnly) //alias "?SetReadOnly@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEH_N@Z"; |
| | | { return GetKCell()->SetReadOnly(bReadOnly); |
| | | |
| | | } |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | |
| | | return getKReport()->GetTitleName(col); |
| | | } |
| | | public: |
| | | int SetRowSort(LPTSTR colName, bool colOrder = true) |
| | | int SetRowSort(LPCTSTR colName, bool colOrder = true) |
| | | { |
| | | return getKReport()->SetRowSort(colName, colOrder); |
| | | return getKReport()->SetRowSort((LPTSTR)colName, colOrder); |
| | | } |
| | | int SetClickEditFlag(bool f) |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | HTREEITEM InsertChildItem(HTREEITEM hItem, string label, KXMLDOMElement ele, int image = 0) |
| | | { |
| | | return InsertChildItem(hItem, label, ele.ptr(), image); |
| | | } |
| | | |
| | | HTREEITEM InsertChildItem(HTREEITEM hItem,string label,LPARAM data,int image = 0) |
| | | { |
| | | HTREEITEM h; |
| | |
| | | return h; |
| | | } |
| | | |
| | | HTREEITEM InsertChildItemEx(HTREEITEM hItem, string label, KXMLDOMElement ele, int image = 0, int image2 = 0) |
| | | { |
| | | return InsertChildItemEx(hItem, label, ele.ptr(), image,image2); |
| | | } |
| | | |
| | | HTREEITEM InsertChildItemEx(HTREEITEM hItem,string label,int data,int image = 0,int image2 = 0) |
| | | { |
| | | int TVM_INSERTITEM = TV_FIRST + 50; |