| | |
| | | //if(makeMessage(L"/task/quote/purchar/backtosaler")==-1) return 1; |
| | | return OnSaleBack(); |
| | | } |
| | | else if (comdid == L"xmPurch2") |
| | | { |
| | | return OnPurch2(); |
| | | } |
| | | else if (comdid == L"xmPurch") |
| | | { |
| | | return OnPurch(); |
| | |
| | | if (action == L"purch") |
| | | { |
| | | int crow = dw_cell.GetRow(); |
| | | xstring cmd = comdid.mid(3, comdid.length()); |
| | | if (getRowID(dw_cell, crow) == L"") SendCtrlCmd(dw_cell, cmd); |
| | | if (getRowID(dw_cell, crow) == L"") SendCtrlCmd(dw_cell, comdid); |
| | | return 1; |
| | | } |
| | | return 1; |
| | | } |
| | | return 0; |
| | | } |
| | |
| | | return 1; |
| | | } |
| | | |
| | | int OnPurch2() |
| | | { |
| | | xaserverarg arg; |
| | | arg.AddArg(L"EntityID", entityID); |
| | | OpenWindow(L"dev:xpage[QuoteFilePurch2Select.vx]", arg); |
| | | xstring taskID = arg.GetArgString(L"TaskID"); |
| | | if (taskID != L"") |
| | | { |
| | | ProcessSendMessage(L"/task/quote/repurch", taskID, L"", L"", true); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | int OnSaveEx(bool balert = false) |
| | | { |
| | | //dw_cell.AcceptText(); |