| | |
| | | #include "wobject/xaserver.hpp" |
| | | #include "xcontrol/xcombobox.hpp" |
| | | #include "xcontrol/xlayersheet.hpp" |
| | | #include "vbusiness/vframe/frame.vframe.vbusiness.hpp" |
| | | |
| | | |
| | | using xml = KXMLDOMDocument; |
| | | class __declspec(dllexport) vindexform: public xwin |
| | | class __declspec(dllexport) vindexform: public xframe |
| | | { |
| | | public: |
| | | string m_Assignment; |
| | |
| | | while (hItem > 1) |
| | | { |
| | | //mainsheet.DeleteSheet(hItem - 1); |
| | | SendMessage(GetHWND(), 0x401, L"xmSheetClose", 0); |
| | | SendMessage(GetHWND(), 0x401, (WPARAM)L"xmSheetClose", 0); |
| | | hItem = mainsheet.GetSheetCount(); |
| | | } |
| | | |
| | |
| | | if (m_Assignment == L"") |
| | | alert(L"获取用户数据失败,请重新登录!"); |
| | | else |
| | | xaserver::SetUID(m_Assignment); |
| | | xaserver::SetUID((LPWSTR)m_Assignment); |
| | | |
| | | xcombobox::AddItem(memuId.GetHWND(), L"开始"); |
| | | xcombobox::AddItem(tabNo.GetHWND(), L"-1"); |
| | |
| | | xstring sInfo = m_Assignment; |
| | | if (s > 0) |
| | | { |
| | | HMENU m = xwin::CreatePopupMenu(); |
| | | HMENU m = CreatePopupMenu(); |
| | | int MF_STRING = 0x00000000; |
| | | int MF_DISABLED = 0x00000002; |
| | | int TPM_RIGHTBUTTON = 0x0002; |
| | |
| | | xstring id = xitem.selectSingleNode(L"AssignmentID").text(); |
| | | xstring name = xitem.selectSingleNode(L"PositionName").text(); |
| | | if (sInfo == id) |
| | | xwin::AppendMenu(m, MF_STRING | MF_CHECKED, i + 1, name); |
| | | AppendMenu(m, MF_STRING | MF_CHECKED, i + 1, name); |
| | | else |
| | | xwin::AppendMenu(m, MF_STRING, i + 1, name); |
| | | AppendMenu(m, MF_STRING, i + 1, name); |
| | | } |
| | | xrect xr; |
| | | xpoint pt; |
| | |
| | | |
| | | int OnAllCaption() |
| | | { |
| | | int m = xwin::CreatePopupMenu(); |
| | | HMENU m = CreatePopupMenu(); |
| | | int MF_STRING = 0x00000000; |
| | | int MF_DISABLED = 0x00000002; |
| | | int TPM_RIGHTBUTTON = 0x0002; |
| | |
| | | //string str = xcombobox::GetLBText(memuId.GetId(), i); |
| | | xstring str = mainsheet.GetSheetText(i); |
| | | if (i == k) |
| | | xwin::AppendMenu(m, MF_STRING | MF_CHECKED, i + 1, str); |
| | | AppendMenu(m, MF_STRING | MF_CHECKED, i + 1, str); |
| | | else |
| | | xwin::AppendMenu(m, MF_STRING, i + 1, str); |
| | | AppendMenu(m, MF_STRING, i + 1, str); |
| | | } |
| | | xrect xr; |
| | | xpoint pt; |
| | | GetCursorPos(pt); |
| | | int res = xwin::TrackPopupMenu(m, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, GetHWND(), xr); |
| | | int res = TrackPopupMenu(m, TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, GetHWND(), xr); |
| | | if (res == 0) return 0; |
| | | int nSheet = mainsheet.GetSheetIndex(); |
| | | if (nSheet == (res - 1)) return 0; |
| | |
| | | return 1; |
| | | }*/ |
| | | |
| | | int p = pa.toInt(); |
| | | xaserverarg arg ; |
| | | |
| | | xstring isnew = arg.GetArgString(L"_isNewModule"); |
| | |
| | | if (isnew == L"Y") |
| | | { |
| | | if (vx.find(L".vx", 0) > 0 || vx.find(L".xpage", 0) > 0) |
| | | OpenWindow(L"dev:xpage[" + vx + L"]", p); |
| | | OpenWindow(L"dev:xpage[" + vx + L"]", arg); |
| | | else |
| | | openUrl(vx, p); |
| | | return 1; |
| | |
| | | |
| | | if (cursheet != mainsheet.GetSheetIndex()) |
| | | { |
| | | int hPicture = xwin::FindWindowEx(0, 0, L"XFrameWndClass", L"__ProductPicture"); |
| | | int hPicture = FindWindowEx(0, 0, L"XFrameWndClass", L"__ProductPicture"); |
| | | if (hPicture > 0) |
| | | { |
| | | int WM_CLOSE = 0x0010; |