| | |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\AP\Select.AP.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\AR\CustomerTran.AR.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\AR\Deduction.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\AR\ExchageFile.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | |
| | | <ClCompile Include="..\project\business\HR\GraduationSchool.cpp" /> |
| | | <ClCompile Include="..\project\business\HR\GraduationSchoolWin.vx.cpp" /> |
| | | <ClCompile Include="..\project\business\HR\ManpowerFile.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\HR\ManpowerFileWindow.cpp"> |
| | |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\SO\maint.Document.SO3.v3.cpp"> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> |
| | | <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild> |
| | | </ClCompile> |
| | | <ClCompile Include="..\project\business\SO\paymentterm.base.maint.so.cpp"> |
| | |
| | | KXMLDOMElement fe = x1.createElement(L"FilterColumn"); |
| | | fe.text = filterStr; |
| | | e.appendChild(fe); |
| | | fe.Release(); |
| | | e.Release(); |
| | | |
| | | } |
| | | docElement.Release(); |
| | | lst.Release(); |
| | | dw_2.Retrieve(x1); |
| | | } |
| | | else |
| | |
| | | if (row < 1) return 1; |
| | | KXMLDOMElement ele = dw_list.GetRowElement(row); |
| | | xstring APID = ele.selectSingleNode(L"APID").text(); |
| | | ele.Release(); |
| | | |
| | | xaserverarg arg; |
| | | |
| | | arg.AddArg(L"APID", APID); |
| | |
| | | { |
| | | xstring id = L""; |
| | | xstring name = L""; |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | xstring txt = xcombobox::GetLBText(evt.hCtrl, h); |
| | | xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); |
| | | apType = L"---"; |
| | | if (txt == L"已付货款") |
| | | { |
| | |
| | | xstring payTypeTwo = GetPayType(); |
| | | if (payTypeTwo == L"已付货款" || payTypeTwo == L"待付货款") |
| | | { |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | xstring txt = xcombobox::GetLBText(evt.hCtrl, h); |
| | | xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); |
| | | if (txt == L"出运日期") |
| | | { |
| | | apType = L"000"; |
| | |
| | | } |
| | | else if (payTypeTwo == L"预付货款") |
| | | { |
| | | int h1 = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h1 = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h1 > -1) |
| | | { |
| | | xstring txt1 = xcombobox::GetLBText(evt.hCtrl, h1); |
| | | xstring txt1 = xcombobox::GetLBText(evt->command.hCtrl, h1); |
| | | if (txt1 == L"出运日期") |
| | | { |
| | | apType = L"001"; |
| | |
| | | } |
| | | else if (payTypeTwo == L"预付货款(已冲)L") |
| | | { |
| | | int h2 = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h2 = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h2 > -1) |
| | | { |
| | | xstring txt2 = xcombobox::GetLBText(evt.hCtrl, h2); |
| | | xstring txt2 = xcombobox::GetLBText(evt->command.hCtrl, h2); |
| | | if (txt2 == L"出运日期") |
| | | { |
| | | apType = L"001"; |
| | |
| | | xaserverarg arg ; |
| | | |
| | | arg.AddArg(L"InvoiceNo", InvoiceNo); |
| | | arg.AddArg(L"InvoiceNoEx", GetControl(L"search").GetText()); |
| | | arg.AddArg(L"InvoiceNoEx", xcontrol(GetControl(L"search")).GetText()); |
| | | arg.AddArg(L"EntityID", EntityID); |
| | | |
| | | //trace(GetControl(L"search").GetText()); |
| | |
| | | } |
| | | |
| | | |
| | | int OnCombboChanged(ref TCommandEvent evt, int lParam) |
| | | int OnCombboChanged(TEvent* evt, int lParam) |
| | | { |
| | | xstring id = L""; |
| | | xstring name = L""; |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | tabname = xcombobox::GetItemData(evt.hCtrl, h); |
| | | SwitchLayer(L"sheet" + (h + 1).toString(), L"frame"); |
| | | tabname = xcombobox::GetItemData(evt->command.hCtrl, h); |
| | | SwitchLayer(L"sheet" + xstring((h + 1)), L"frame"); |
| | | RetrieveData(); |
| | | SetAgent(); |
| | | } |
| | |
| | | xaserverarg arg ; |
| | | |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText()); |
| | | arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); |
| | | arg.AddArg(L"QueryArg", GetQueryArg()); |
| | | //trace(L"QueryArg======L"+GetQueryArg()); |
| | | if (getUrl(dataUrl, arg.GetString(), x) != 1) |
| | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | |
| | | //trace(x.xml()); |
| | | xml x0 = ViewObject::MakeXml(); |
| | | xml x0 ; |
| | | x0.loadXML(L"<data/>"); |
| | | |
| | | KXMLDOMNodeList t = x.selectNodes(L"data/Item[@update.modify or @update.delete]"); |
| | |
| | | { |
| | | e1.appendChild(t.item(i)); |
| | | } |
| | | xaserverarg arg = ViewObject::MakeArg(); |
| | | xaserverarg arg ; |
| | | arg.AddArg(L"content", x0.xml()); |
| | | |
| | | if (xurl::get(L"/sale/data/AR/update/item", arg.GetString(), x) != 1) |
| | |
| | | return 0; |
| | | } |
| | | |
| | | int OnCombboChanged(ref TCommandEvent evt, int lParam) |
| | | int OnCombboChanged(TEvent* evt, int lParam) |
| | | { |
| | | xstring id = L""; |
| | | xstring name = L""; |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | xstring txt = xcombobox::GetLBText(evt.hCtrl, h); |
| | | xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); |
| | | if (txt == L"限定客户") |
| | | { |
| | | OnRetrieve(1); |
| | |
| | | dw_unexch.AcceptText(); |
| | | int row = dw_unexch.GetRow(); |
| | | |
| | | int hCursor = xutil::SetCursorWait(); |
| | | HCURSOR hCursor = xutil::SetCursorWait(); |
| | | double AdjustAmount = dw_unexch.GetItemDouble(row, L"AdjustAmount");//调整数 |
| | | double amted = dw_unexch.GetItemDouble(row, L"实收汇金额");//往次 |
| | | double samt = dw_unexch.GetItemDouble(row, L"应收汇金额");//应收汇金额 |
| | |
| | | xstring path1 = L"/sale/data/AR/item/exch/listwithcustomer"; |
| | | if (customer == 0) path1 = L"/sale/data/AR/item/exch/list"; |
| | | |
| | | arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText()); |
| | | arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText()); |
| | | arg.AddArg(L"QueryArg", GetQueryArg()); |
| | | trace(L"SEID+++L" + SEID + L"+++QueryTxt+++L" + GetControl(L"sle_search").GetText() + L"+++QueryArg+++L" + GetQueryArg()); |
| | | trace(L"SEID+++L" + SEID + L"+++QueryTxt+++L" + xcontrol(GetControl(L"sle_search")).GetText() + L"+++QueryArg+++L" + GetQueryArg()); |
| | | if (getUrl(path, arg.GetString(), x) != 1) |
| | | { |
| | | trace(L"错误信息1=L" + xstring(x.text())); |
| | |
| | | } |
| | | KXMLDOMNodeList items = ele.selectNodes(L"data/Item"); |
| | | AddItems(id,items); |
| | | items.Release(); |
| | | ele.Release(); |
| | | |
| | | } |
| | | x.Free(); |
| | | nodes.Release(); |
| | | |
| | | |
| | | } |
| | | arg.Free(); |
| | | //OnRetrieveItem(dw_pricelist.GetGuid(row)); |
| | | return 1; |
| | | } |
| | |
| | | } |
| | | KXMLDOMNodeList items = ele.selectNodes(L"data/Item"); |
| | | AddItems(id,items); |
| | | items.Release(); |
| | | ele.Release(); |
| | | |
| | | } |
| | | nodes.Release(); |
| | | x.Free(); |
| | | arg.Free(); |
| | | |
| | | |
| | | //OnRetrieveItem(dw_pricelist.GetGuid(row)); |
| | | return 1; |
| | |
| | | x.LoadXml(content); |
| | | KXMLDOMNodeList nodes = x.selectNodes(L"data/Item"); |
| | | AddItems(id,nodes); |
| | | nodes.Release(); |
| | | |
| | | xstring PriceInfo = L""; |
| | | for(int i=1;i<=dw_pricelist.GetRowCount();i++) |
| | | { |
| | |
| | | KXMLDOMElement e = dw_item.GetRowElement(nRow); |
| | | KXMLDOMNode n = e.cloneNode(-1); |
| | | x.documentElement().appendChild(n); |
| | | n.Release(); |
| | | |
| | | xstring val = x.xml(); |
| | | trace(L"=======L" + val + L"=======L"); |
| | | |
| | |
| | | KXMLDOMElement e = dw_item.GetRowElement(nRow); |
| | | KXMLDOMNode n = e.cloneNode(-1); |
| | | x.documentElement().appendChild(n); |
| | | n.Release(); |
| | | |
| | | xstring val = x.xml(); |
| | | trace(L"123=======L" + val + L"=======123"); |
| | | |
| | |
| | | if (n) |
| | | { |
| | | tax = xstring(n.text()).toDouble(); |
| | | n.Release(); |
| | | |
| | | } |
| | | n = o.selectSingleNode(L"VATRefundRate"); |
| | | if (n) |
| | | { |
| | | retax = xstring(n.text()).toDouble(); |
| | | n.Release(); |
| | | |
| | | } |
| | | o.Release(); |
| | | } |
| | |
| | | KXMLDOMNodeList nlist = x.selectNodes(L"//data/Item"); |
| | | KXMLDOMElement xitem = nlist.item(0); |
| | | xstring Reciever = xitem.selectSingleNode(L"userno").text(); |
| | | xitem.Release(); |
| | | |
| | | |
| | | /*alert(L"Category:"+Category + |
| | | "\r\nReciever:"+Reciever + L"\r\nNo:"+NO + L"\r\nEntityID:"+EntityID + L"Subject:"+Subject+ |
| | |
| | | Send(PersonID, CName, EntityNo, EntityID); |
| | | } |
| | | } |
| | | xitem.Release(); |
| | | |
| | | //return 1; |
| | | } |
| | | |
| | |
| | | |
| | | int OnInit() |
| | | { |
| | | int iArgs = GetParam(); |
| | | int iArgs = GetArg(); |
| | | |
| | | XXmlContentSvr xdoc = new XXmlContentSvr; |
| | | xdoc.setNativePointer(iArgs); |
| | |
| | | |
| | | xml x; |
| | | x ; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | |
| | | x.LoadXml(vc.GetContent()); |
| | | |
| | | dw_1.Retrieve(x); |
| | |
| | | |
| | | DWNMHDR& hdr = *(DWNMHDR*)evt->notify.pnmh; |
| | | |
| | | int h = xcombobox::GetCurSel(evt.hCtrl); |
| | | int h = xcombobox::GetCurSel(evt->command.hCtrl); |
| | | if (h > -1) |
| | | { |
| | | xstring txt = xcombobox::GetLBText(evt.hCtrl, h); |
| | | xstring txt = xcombobox::GetLBText(evt->command.hCtrl, h); |
| | | if (txt == L"通知日期") |
| | | { |
| | | |
| | |
| | | { |
| | | KXMLDOMElement e = lst.item(i); |
| | | docElement.appendChild(e); |
| | | e.Release(); |
| | | |
| | | } |
| | | docElement.Release(); |
| | | lst.Release(); |
| | | |
| | | dw_fob.Retrieve(x1); |
| | | } |
| | | else |
| | |
| | | { |
| | | KXMLDOMElement e = lst.item(i); |
| | | docElement.appendChild(e); |
| | | e.Release(); |
| | | |
| | | } |
| | | docElement.Release(); |
| | | lst.Release(); |
| | | |
| | | dw_fob.Retrieve(x1); |
| | | } |
| | | else |