| | |
| | | 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"; |