jrj/ext-jrj/ext-jrj.vcxproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/ext-jrj/ext-jrj.vcxproj.filters | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/AP/APNew3.warizd.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/AP/list.manageSupplierID.ap.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/Company/HrOrg.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/PO/Maint.PurcherItem.cpp | 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/PO/MakeAllPOEx.PO.cpp | 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/ProductSample/ProductLibrary4.cpp | 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/Public/UserGroupShare.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/project/business/SystemSettings/UserImport.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/xframe/xcontrol/xcombobox.hpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
jrj/xframe/xcontrol/xdwtable.hpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
jrj/ext-jrj/ext-jrj.vcxproj
@@ -258,6 +258,7 @@ <ClCompile Include="..\project\business\AP\list.ap.cpp"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\AP\list.manageSupplierID.ap.cpp" /> <ClCompile Include="..\project\business\AP\list.RefundGDNLine.Entity.xarch.cpp" /> <ClCompile Include="..\project\business\AP\list.RefundSourcingLine.Entity.xarch.cpp" /> <ClCompile Include="..\project\business\AP\maint.ap.cpp"> @@ -808,7 +809,7 @@ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\Public\UserGroupShare.cpp"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\Public\UserGroupShareEx.cpp"> @@ -940,7 +941,7 @@ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\SystemSettings\BindComputer.cpp"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> </ClCompile> <ClCompile Include="..\project\business\SystemSettings\Buglist.Developer.hxsoft.cpp"> jrj/ext-jrj/ext-jrj.vcxproj.filters
@@ -1268,5 +1268,8 @@ <ClCompile Include="..\project\business\Enquiry\Quick.Input.NewProductEx.cpp"> <Filter>project\business\Enquiry</Filter> </ClCompile> <ClCompile Include="..\project\business\AP\list.manageSupplierID.ap.cpp"> <Filter>project\business\AP</Filter> </ClCompile> </ItemGroup> </Project> jrj/project/business/AP/APNew3.warizd.cpp
@@ -380,7 +380,7 @@ else if (comdid == L"xmFilter") return OnFilter(); else if (comdid == L"xmQuery") { index = m_layer.GetSheetIndex(); index++; OnRetrieve(); @@ -575,11 +575,11 @@ arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); xcombobox cbx_type = GetControl(L"cbx_ship"); int h = xcombobox::GetCurSel(cbx_type.GetHWND()); int h = cbx_type.GetCurSel(); if (h < 0) return 1; xstring str = xcombobox::GetItemData(cbx_type.GetHWND()); xstring str = (string)cbx_type.GetItemData(h); arg.AddArg(L"ShipDays", str); trace(str); if (getUrl(L"/sale/data/AP/list101", arg.GetString(), x) != 1) { trace(x.text()); @@ -588,6 +588,7 @@ } else { dw_1.Retrieve(x); dw_1.Redraw(); } jrj/project/business/AP/list.manageSupplierID.ap.cpp
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,171 @@ #include <wobject/xstring.hpp> #include <xcontrol/xtreeview.hpp> #include <xcontrol/xdwgrid.hpp> #include <wobject/xdouble.hpp> #include <xcontrol/xlayersheet.hpp> #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" #include "viewobject/view.base.hpp" using xml = KXMLDOMDocument; class __declspec(dllexport) manageSupplierID : public xframe { public: xdwgrid dw_list; xdwtable dw_arg; xstring DatePicker; xnode m_agentNode; //Agent Condition public: manageSupplierID(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {} public: static manageSupplierID* CreateInstance(void* implPtr, void* hWnd) { manageSupplierID* pWin = new manageSupplierID(implPtr, (HWND)hWnd); return pWin; } int SetAgent() { xstring xfNodeAgentArea = L"agentarea"; xnode anode = GetAgentNode(xfNodeAgentArea); if(m_agentNode) { SetAgentNode (anode,m_agentNode); } else { KXMLDOMElement xframeElement = GetElement(); KXMLDOMElement agent = xframeElement.selectSingleNode(L"agent/"+xfNodeAgentArea+L"[1]/*"); if(agent) { xstring s = agent.xml(); m_agentNode = SetAgentNode (anode,s); } } return 1; } //ç¦ç¹æ¿æ´»å¤ç彿° int OnSetFocus(TEvent* evt, LPARAM p) { //éç½®å·¥å ·æ¡ //SetAgent(); return 1; } //å½ä»¤åå¸å½æ° int OnCmdDispatch(xstring comdid) { if(comdid==L"xmSearch" ||comdid==L"xmRefresh") { OnRetrieve(DatePicker); return 1; } if(comdid==L"xmSaveAs") { dw_list.SaveAs(L""); return 1; } if(comdid==L"xmRefresh") { OnRetrieve(DatePicker); return 1; } return 0; } //å½ä»¤å¤çäºä»¶ int OnXCommand(TEvent* evt, LPARAM param) { return OnCmdDispatch(evt->xcommand.pStrID); } int OnAttachEvent() { //ç»å®å·¥å ·æ¡ç¹å»äºä»¶ AttachEvent(L"WM_XCOMMAND", (FEvent)&manageSupplierID::OnXCommand); //è·åç¦ç¹äºä»¶ï¼ç¨äºéç½®å·¥å ·æ¡ AttachEvent(L"WM_SETFOCUS", (FEvent)&manageSupplierID::OnSetFocus); AttachEvent(L"cbx_state",L"CBN_SELCHANGE", (FEvent)&manageSupplierID::OnDatePicker); return 1; } int OnDatePicker(TEvent* evt, LPARAM lParam) { int h = xcombobox::GetCurSel(evt->command.hCtrl); if(h > -1) { xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); if(txt==L"åºè¿æ¥æ") { DatePicker=L"ETD"; OnRetrieve(DatePicker); } else if(txt==L"éç¨æ¥æ") { DatePicker=L"RefundAmountDate"; OnRetrieve(DatePicker); } } return 1; } xstring GetQueryArg() { dw_arg.AcceptText(); xml x; dw_arg.DwUpdateAllTo(x); return x.xml(); } int OnRetrieve(xstring DatePicker) { xml x; xaserverarg arg ; arg.AddArg(L"QueryTxt",xcontrol(GetControl(L"sle_search")).GetText()); arg.AddArg(L"QueryArg",GetQueryArg()); arg.AddArg(L"DatePicker",DatePicker); trace(L"QueryTxt:===L"+ xcontrol(GetControl(L"sle_search")).GetText()+L"QueryArg:====L"+GetQueryArg()+L"DatePicker:====L"+DatePicker); if (getUrl(L"/sale/data/AP/InvoiceSupplierIDList",arg.GetString(),x)!=1) { trace(x.text()); return -1; }else { dw_list.Retrieve(x); dw_list.Redraw(); dw_list.SetReadOnly(true); } return 1; } int onload() { dw_list = GetControl(L"dw_list"); dw_list.openUrl(L"/sale/view/AP/ManageSupplierID"); dw_arg = GetControl(L"dw_arg"); dw_arg.openUrl(L"/sale/view/AR/template/queryarg"); dw_arg.SetColHeaderHeight(0); dw_arg.SetRowSelectorWidth(0); dw_arg.SetHScrollState(false); dw_arg.SetVScrollState(false); dw_arg.SetItemString(1,L"DateType",L"æ¬æ"); //OnRetrieve(); OnAttachEvent(); return 1; } int onloaded() { //SetAgent(); return 1; } }; jrj/project/business/Company/HrOrg.cpp
@@ -131,7 +131,7 @@ return 1; xstring id = tv_org.GetItemData(sitem); xstring id = (string)tv_org.GetItemData(sitem); HCURSOR hCursor = xutil::SetCursorWait(); OnCreateTree(id, sitem); xutil::RestoreCursor(hCursor); jrj/project/business/PO/Maint.PurcherItem.cppBinary files differ
jrj/project/business/PO/MakeAllPOEx.PO.cppBinary files differ
jrj/project/business/ProductSample/ProductLibrary4.cppBinary files differ
jrj/project/business/Public/UserGroupShare.cpp
@@ -173,7 +173,7 @@ "\r\nReciever:"+Reciever + L"\r\nNo:"+NO + L"\r\nEntityID:"+EntityID + L"Subject:"+Subject+ "\r\nContent:"+Content); */ x = ViewObject::AddMessage(Category, Reciever, NO, EntityID, Subject, Content); ViewObject::AddMessage(GetServerUrl(), Category, Reciever, NO, EntityID, Subject, Content); return 1; } jrj/project/business/SystemSettings/BugMaint.Developer.hxsoft.cpp
@@ -176,7 +176,7 @@ for(i=0; i<s; i++) { xstring tmp = m_cb.GetLBText( i); xstring tmp2 = m_cb.GetItemData(i); xstring tmp2 = (string)m_cb.GetItemData(i); KXMLDOMElement e = x.createElement(L"item"); e.setAttribute(L"name", L""+tmp); e.setAttribute(L"file", L""+tmp2); jrj/project/business/SystemSettings/UserImport.cpp
@@ -110,10 +110,10 @@ //trace(row); KXMLDOMElement e = dw_list.GetRowElement(row); trace(e.xml()); xstring sEmployeeNo = e.selectSingleNode(L"EmployeeNo").text() + L""; xstring sOldEmpNo = e.selectSingleNode(L"OldEmpNo").text() + L""; xstring sPersonID = e.selectSingleNode(L"PersonID").text() + L""; xstring sPersonName = e.selectSingleNode(L"Name").text() + L""; xstring sEmployeeNo = e.selectSingleNode(L"EmployeeNo").text() + (xstring)L""; xstring sOldEmpNo = e.selectSingleNode(L"OldEmpNo").text() + (xstring)L""; xstring sPersonID = e.selectSingleNode(L"PersonID").text() + (xstring)L""; xstring sPersonName = e.selectSingleNode(L"Name").text() + (xstring)L""; xstring sPassWord = xutil::MD5(sOldEmpNo); /* jrj/xframe/xcontrol/xcombobox.hpp
@@ -16,7 +16,6 @@ return *this; } public: int GetCurSel() { int CB_GETCURSEL_ = 0x0147; jrj/xframe/xcontrol/xdwtable.hpp
@@ -453,24 +453,28 @@ int GetItemInt(int row, int col) { xstring str = GetItemString(row, col); str = str.replace(L",", L""); return str.toInt(); } double GetItemDouble(int row, int col) { xstring str = GetItemString(row, col); str = str.replace(L",", L""); return str.toDouble(); } int GetItemInt(int row, string col) { xstring str = GetItemString(row, col); str = str.replace(L",", L""); return str.toInt(); } double GetItemDouble(int row, string col) { xstring str = GetItemString(row, col); str = str.replace(L",", L""); return str.toDouble(); }