xj qian
2024-06-27 e4b4c508c599943ddb22b7d4868ccd40ac05a043
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#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();
    }
};