#include "view.base.hpp" using xml = KXMLDOMDocument; class QuoteView : public ViewObject { public: static KXMLDOMDocument GetSimulationView(string QuoteNo) { xaserverarg arg = MakeArg(L"QuoteNo", QuoteNo); return FecthData(L"/sale/data/Quote/fullview", arg.GetString()); } public: //Ö÷ÐÅϢά»¤ static KXMLDOMDocument GetMaintFormForBase() { return FecthData(L"/sale/data/Quote/maint/form/base", L""); } //ÉÌÆ·Î¬»¤Áбí static KXMLDOMDocument GetMaintFormForItemList() { return FecthData(L"/sale/data/Quote/maint/form/item/list", L""); } //ÉÌÆ·Î¬»¤ÉÌÆ·Ï¸½Ú static KXMLDOMDocument GetMaintFormForItemDetail() { return FecthData(L"/sale/data/Quote/maint/form/item/detail", L""); } static KXMLDOMDocument GetMaintFormForItemDetail(string guid) { xaserverarg arg = MakeArg(L"guid", guid); return FecthData(L"/sale/data/Quote/goods/maint/form", arg.GetString()); } public: //Ö÷ÐÅÏ¢ static KXMLDOMDocument GetMaintDataForBase(string No) { xaserverarg arg = MakeArg(L"id", No); return FecthData(L"/sale/data/Quote/maint/base", arg.GetString()); } //²úÆ·Êý¾Ý static KXMLDOMDocument GetMaintFormForItemList(string No) { xaserverarg arg = MakeArg(L"id", No); return FecthData(L"/sale/data/Quote/maint/item", arg.GetString()); } static KXMLDOMDocument LookupProductsByText(string str) { return RetrieveData(xapp::GetServerUrl(),L"/sale/data/Quote/lookup/products", L"str", str); } static KXMLDOMDocument Oncopy(string EnquiryID, string ItemID) { return RetrieveData(xapp::GetServerUrl(), L"/sale/data/Enquiry/Oncopy", L"EnquiryID", EnquiryID, L"ItemID", ItemID); } static KXMLDOMDocument LookupProductsByText(string str, string customerid) { return RetrieveData(xapp::GetServerUrl(), L"/sale/data/Quote/lookup/productsex", L"str", str, L"CustomerID", customerid); } static string MakeBillNo() { xml x = RetrieveData(xapp::GetServerUrl(), L"/sale/data/Quote/makebillno"); return x.text(); } };