| | |
| | | </ItemDefinitionGroup> |
| | | <ItemGroup> |
| | | <ClInclude Include="..\project\viewobject\customer.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\enquiry.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\productlibrary.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\purchaseorder.view.hpp" /> |
| | | <ClInclude Include="..\project\viewobject\quote.view.hpp" /> |
| | |
| | | <ClCompile Include="..\project\business\Enquiry.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\EnquiryEx3.list.cpp" /> |
| | | <ClCompile Include="..\project\business\Product.list.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | |
| | | <ClInclude Include="..\xframe\wobject\xint.hpp"> |
| | | <Filter>xframe\wobject</Filter> |
| | | </ClInclude> |
| | | <ClInclude Include="..\project\viewobject\enquiry.view.hpp"> |
| | | <Filter>project\viewobject</Filter> |
| | | </ClInclude> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ClCompile Include="dllmain.cpp"> |
| | |
| | | <ClCompile Include="..\project\vindexmenu.cpp"> |
| | | <Filter>project\wface</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\EnquiryEx3.list.cpp"> |
| | | <Filter>project\business</Filter> |
| | | </ClCompile> |
| | | </ItemGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | #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 EnquiryView : public ViewObject |
| | | { |
| | | static KXMLDOMDocument GetSimulationView(string EnquiryNo) |
| | | { |
| | | xaserverarg arg = MakeArg(L"EnquiryNo", EnquiryNo); |
| | | return FecthData(L"/sale/data/Enquiry/fullview", arg.GetString()); |
| | | } |
| | | public: |
| | | //主信æ¯ç»´æ¤ |
| | | static KXMLDOMDocument GetMaintFormForBase() |
| | | { |
| | | return FecthData(L"/sale/data/Enquiry/maint/form/base", L""); |
| | | } |
| | | |
| | | //ååç»´æ¤å表 |
| | | static KXMLDOMDocument GetMaintFormForItemList() |
| | | { |
| | | return FecthData(L"/sale/data/Enquiry/maint/form/item/list", L""); |
| | | } |
| | | |
| | | //ååç»´æ¤ååç»è |
| | | static KXMLDOMDocument GetMaintFormForItemDetail() |
| | | { |
| | | return FecthData(L"/sale/data/Enquiry/maint/form/item/detail", L""); |
| | | } |
| | | static KXMLDOMDocument GetMaintFormForItemDetail(string guid) |
| | | { |
| | | xaserverarg arg = MakeArg(L"guid", guid); |
| | | return FecthData(L"/sale/data/Enquiry/goods/maint/form", arg.GetString()); |
| | | } |
| | | |
| | | public: |
| | | //ä¸»ä¿¡æ¯ |
| | | static KXMLDOMDocument GetMaintDataForBase(string No) |
| | | { |
| | | xaserverarg arg = MakeArg(L"id", No); |
| | | return FecthData(L"/sale/data/Enquiry/maint/base", arg.GetString()); |
| | | } |
| | | //äº§åæ°æ® |
| | | static KXMLDOMDocument GetMaintFormForItemList(string No) |
| | | { |
| | | xaserverarg arg = MakeArg(L"id", No); |
| | | return FecthData(L"/sale/data/Enquiry/maint/item", arg.GetString()); |
| | | } |
| | | |
| | | static bstring MakeBillNo() |
| | | { |
| | | KXMLDOMDocument x = RetrieveData(L"/sale/data/Enquiry/makebillno"); |
| | | if (!x) |
| | | { |
| | | alert(L"error"); |
| | | } |
| | | return x.text(); |
| | | } |
| | | |
| | | }; |
| | |
| | | dwobj.Redraw(); |
| | | } |
| | | |
| | | int AddMessage(string serverUrl, string Category, string Reciever, string EntityNo, string EntityID, string Subject, string Content) |
| | | static int AddMessage(string serverUrl, string Category, string Reciever, string EntityNo, string EntityID, string Subject, string Content) |
| | | { |
| | | KXMLDOMDocument x; |
| | | xaserverarg arg; |
| | |
| | | return ((Hxsoft::XFrame::IXAServerArg*)getNativePointer())->GetParam(pArgName); |
| | | } |
| | | |
| | | }; |
| | | |
| | | class xaserverargPtr |
| | | { |
| | | public: |
| | | xaserverarg* arg; |
| | | public: |
| | | xaserverargPtr() :arg(new xaserverarg) {} |
| | | public: |
| | | operator xaserverarg& () { return *arg; } |
| | | operator xaserverarg* () { return arg; } |
| | | xaserverarg* operator ->() { return arg; } |
| | | public: |
| | | int AddArg(string argname, string val, string typ = NULL) //alias "?AddArg@IXAServerArg@XFrame@Hxsoft@@QAEHPB_W00@Z"; |
| | | { |
| | | return arg->AddArg(argname, val, typ); |
| | | } |
| | | |
| | | int ClearArgs() //alias "?ClearArgs@IXAServerArg@XFrame@Hxsoft@@QAEHXZ" from "xframe.dll"; |
| | | { |
| | | return arg->ClearArgs(); |
| | | } |
| | | |
| | | int RemoveArg(string argname) //alias "?RemoveArg@IXAServerArg@XFrame@Hxsoft@@QAEHPB_W@Z"; |
| | | { |
| | | return arg->RemoveArg(argname); |
| | | } |
| | | /*int SetArg(string argname,double val,string typ=NULL) //alias "?SetArg@IXAServerArg@XFrame@Hxsoft@@QAEHPB_WNO@Z"; |
| | | { |
| | | return arg->SetArg(argname,val,typ); |
| | | } |
| | | int SetArg(string argname,int val,string typ=NULL) //alias "?SetArg@IXAServerArg@XFrame@Hxsoft@@QAEHPB_WHO@Z"; |
| | | { |
| | | return arg->SetArg(argname,val,typ); |
| | | }*/ |
| | | int SetArg(string argname, string val, string typ = NULL) //alias "?SetArg@IXAServerArg@XFrame@Hxsoft@@QAEHPB_W00@Z"; |
| | | { |
| | | return arg->SetArg(argname, val, typ); |
| | | } |
| | | string GetString() //alias "?GetString@IXAServerArg@XFrame@Hxsoft@@QAEPB_WXZ" from "xframe.dll"; |
| | | { |
| | | return arg->GetString(); |
| | | } |
| | | static void* CreateInstance() //alias "?CreateInstance@IXAServerArg@XFrame@Hxsoft@@SAPAV123@XZ"; |
| | | { |
| | | return Hxsoft::XFrame::IXAServerArg::CreateInstance(); |
| | | } |
| | | static int ReleaseInstance(void* p) //alias "?ReleaseInstance@IXAServerArg@XFrame@Hxsoft@@SAHPAV123@@Z"; |
| | | { |
| | | Hxsoft::XFrame::IXAServerArg::ReleaseInstance((Hxsoft::XFrame::IXAServerArg*)p); |
| | | return 1; |
| | | } |
| | | bool GetArgBool(string argname) //alias "?GetArgBool@IXAServerArg@XFrame@Hxsoft@@QAE_NPA_W@Z"; |
| | | { |
| | | return arg->GetArgBool((LPTSTR)argname); |
| | | } |
| | | double GetArgDouble(string argname) //alias "?GetArgDouble@IXAServerArg@XFrame@Hxsoft@@QAENPA_W@Z"; |
| | | { |
| | | return arg->GetArgDouble((LPTSTR)argname); |
| | | } |
| | | int GetArgInt(string argname) //alias "?GetArgInt@IXAServerArg@XFrame@Hxsoft@@QAEHPA_W@Z"; |
| | | { |
| | | return arg->GetArgInt((LPTSTR)argname); |
| | | } |
| | | string GetArgString(string argname) //alias "?GetArgString@IXAServerArg@XFrame@Hxsoft@@QAEPA_WPA_W@Z"; |
| | | { |
| | | return arg->GetArgString((LPTSTR)argname); |
| | | } |
| | | |
| | | int SetParam(LPCTSTR pArgName, LPARAM pValue) |
| | | { |
| | | return arg->SetParam(pArgName, pValue); |
| | | } |
| | | |
| | | LPARAM GetParam(LPCTSTR pArgName) |
| | | { |
| | | return arg->GetParam(pArgName); |
| | | } |
| | | }; |
| | |
| | | if(!w) return 0; //response |
| | | return (xwin*)GetPropW(w->GetHWND(),L"AttachObject"); |
| | | } |
| | | |
| | | xwin* OpenWindow(string url, xaserver& arg) |
| | | { |
| | | return OpenWindow(url, (LPARAM)&arg); |
| | | } |
| | | |
| | | int trace(string info) |
| | | { |
| | | return 1; |
| | |
| | | { |
| | | return getKReport()->RetrieveDiff(xml); |
| | | } |
| | | int Filter(LPTSTR pColumn, LPTSTR pStr) |
| | | int Filter(LPCTSTR pColumn, LPCTSTR pStr) |
| | | { |
| | | return getKReport()->Filter(pColumn, pStr); |
| | | return getKReport()->Filter((LPTSTR)pColumn, (LPTSTR)pStr); |
| | | } |
| | | public: |
| | | int SetHeaderText(int row, int col, LPTSTR name) |
| | |
| | | return L""; |
| | | } |
| | | |
| | | int SetGuid(int row,xstring val) |
| | | { |
| | | KXMLDOMElement e = GetRowElement(row); |
| | | if (e) |
| | | { |
| | | e.setAttribute(L"guid",val.c_str()); |
| | | return 1; |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public: |
| | | |
| | | int DwRetrieve(string ServerUrl, string src, string argstr) |