| | |
| | | return 1; |
| | | } |
| | | |
| | | int ViewUpdate(int pr, xstring updateItem, xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg) |
| | | { |
| | | if (updateItem == L"del") |
| | | { |
| | |
| | | KXMLDOMDocument supplier_x = ViewObject::RetrieveData(L"/sale/data/SupplierV3/entity/FindBySaleType", L"id", s); |
| | | if (supplier_x) |
| | | { |
| | | if (supplier_x.text() != L"跟单") |
| | | if ((xstring)supplier_x.text() != L"跟单") |
| | | { |
| | | alert(L"当前角色不是跟单员不能新增单子,请重新选择角色"); |
| | | return 0; |
| | |
| | | xstring EntityIDEx = dw_list.GetGuid(dw_list.GetRow()); |
| | | xaserverarg argEx; |
| | | |
| | | alert(EntityIDEx); |
| | | //alert(EntityIDEx); |
| | | argEx.AddArg(L"GDNID", EntityIDEx); |
| | | OpenWindow(L"dev:xpage[GDNDelay.vx]", argEx); |
| | | return 1; |