| | |
| | | return 0; |
| | | } |
| | | |
| | | int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) |
| | | { |
| | | if( updateItem==L"setstate") |
| | | { |
| | |
| | | return 0; |
| | | } |
| | | |
| | | int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) |
| | | { |
| | | if( updateItem==L"setstate") |
| | | { |
| | |
| | | return L"APID"; |
| | | } |
| | | |
| | | xstring GetEntityID(int /*param*/ pr) |
| | | xstring GetEntityID(LPARAM /*param*/ pr) |
| | | { |
| | | return dw_list.GetItemString(dw_list.GetRow(), L"APID"); |
| | | } |
| | |
| | | return publiccode::GetGuid(); |
| | | } |
| | | |
| | | int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) |
| | | { |
| | | if(updateItem==L"update") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnItemClickEx(TEvent* evt, int pr) |
| | | int OnItemClickEx(TEvent* evt, LPARAM pr) |
| | | { |
| | | xdwtable dw = dw_visit.FindDwTable(L"item",0); |
| | | |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) |
| | | { |
| | | if( updateItem==L"del") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | xstring GetEntityData(int pr) |
| | | xstring GetEntityData(LPARAM pr) |
| | | { |
| | | dw_base.AcceptText(); |
| | | dw_goods.AcceptText(); |
| | |
| | | return 0; |
| | | } |
| | | |
| | | int OnImgDBClicked(TEvent* evt, int pr) |
| | | int OnImgDBClicked(TEvent* evt, LPARAM pr) |
| | | { |
| | | IMGNNMHDR& nmtv = *(IMGNNMHDR*)evt->notify.pnmh; |
| | | xstring src = nmtv.path; |
| | |
| | | OpenWindow(L"dev:xpage[PackSchemaMaint.goodslib.vx]"); |
| | | }else |
| | | { |
| | | int pr = dw_list; |
| | | OpenWindow(L"dev:xpage[ProductLibraryItemMaint.vx]",pr); |
| | | OpenWindow(L"dev:xpage[ProductLibraryItemMaint.vx]",dw_list); |
| | | } |
| | | */ |
| | | //KXMLDOMElement ele = dw_list.getRowElement(L"data/Item", 1); |
| | | //alert(ele.xml); |
| | | |
| | | int pr = dw_list; |
| | | OpenWindow(L"dev:xpage[ProductLibraryItemMaint3.vx]", pr); |
| | | OpenWindow(L"dev:xpage[ProductLibraryItemMaint3.vx]", dw_list); |
| | | |
| | | return 1; |
| | | } |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnImgDBClicked(TEvent* evt, int pr) |
| | | int OnImgDBClicked(TEvent* evt, LPARAM pr) |
| | | { |
| | | IMGNNMHDR& nmtv = *(IMGNNMHDR*)evt->notify.pnmh; |
| | | xstring src = nmtv.path; |
| | |
| | | OpenWindow(L"dev:xpage[PackSchemaMaint.goodslib.vx]"); |
| | | }else |
| | | { |
| | | int pr = g_xdoc_product; |
| | | LPARAM pr = g_xdoc_product; |
| | | OpenWindow(L"dev:xpage[ProductLibraryItemMaint.vx]",pr); |
| | | } |
| | | */ |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnImgDBClicked(TEvent * evt, int pr) |
| | | int OnImgDBClicked(TEvent * evt, LPARAM pr) |
| | | { |
| | | IMGNNMHDR& nmtv = *(IMGNNMHDR*)evt->notify.pnmh; |
| | | xstring src = nmtv.path; |
| | |
| | | OpenWindow(L"dev:xpage[PackSchemaMaint.goodslib.vx]"); |
| | | }else |
| | | { |
| | | int pr = g_xdoc_product; |
| | | LPARAM pr = g_xdoc_product; |
| | | OpenWindow(L"dev:xpage[ProductLibraryItemMaint.vx]",pr); |
| | | } |
| | | */ |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnImgDBClicked(TEvent* evt, int pr) |
| | | int OnImgDBClicked(TEvent* evt, LPARAM pr) |
| | | { |
| | | IMGNNMHDR* nmtv = (IMGNNMHDR *)evt->notify.pnmh; |
| | | xstring src = nmtv->path; |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) |
| | | { |
| | | if(updateItem == L"refresh") |
| | | { |
| | |
| | | return L"VTAInvoiceID"; |
| | | } |
| | | |
| | | xstring GetEntityID(int /*param*/ pr) |
| | | xstring GetEntityID(LPARAM /*param*/ pr) |
| | | { |
| | | return dw_list.GetItemString(dw_list.GetRow(),L"VATInvoiceID"); |
| | | } |
| | | |
| | | int ViewUpdate(int pr,xstring updateItem,xaserverarg arg) |
| | | int ViewUpdate(LPARAM pr,xstring updateItem,xaserverarg arg) |
| | | { |
| | | if( updateItem==L"del") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | xstring GetEntityData(int pr) |
| | | xstring GetEntityData(LPARAM pr) |
| | | { |
| | | xml x ; |
| | | dw_item.AcceptText(); |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int pr = pr1; |
| | | LPARAM pr = pr1; |
| | | xstring action = comdid.mid(comdid.find(L"action:", 0) + 7, 9999); |
| | | if (action == L"bill.delete" || action == L"bill.deleteEx") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int pr = pr1; |
| | | LPARAM pr = pr1; |
| | | xstring action = comdid.mid(comdid.find(L"action:",0)+7,9999); |
| | | if(action == L"bill.delete" || action == L"bill.deleteEx") |
| | | { |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnImgDBClicked(TEvent* evt, int pr) |
| | | int OnImgDBClicked(TEvent* evt, LPARAM pr) |
| | | { |
| | | IMGNNMHDR& nmtv = *(IMGNNMHDR*)evt->notify.pnmh; |
| | | xstring src = nmtv.path; |
| | |
| | | return L""; |
| | | } |
| | | |
| | | string GetEntityIDName(/*param*/int pr) |
| | | string GetEntityIDName(/*param*/LPARAM pr) |
| | | { |
| | | if (m_configDoc) |
| | | { |
| | |
| | | return L""; |
| | | } |
| | | |
| | | virtual string GetEntityRowData(int pr) |
| | | virtual string GetEntityRowData(LPARAM pr) |
| | | { |
| | | return GetEntityData(pr); |
| | | } |