| | |
| | | #include <wobject/xstring.hpp> |
| | | #include <xcontrol/xtreeview.hpp> |
| | | #include <xcontrol/xdwgrid.hpp> |
| | | #include <wobject/xdouble.hpp> |
| | | |
| | | #include "vbusiness/vframe/listwin.vframe.vbusiness.hpp" |
| | | #include "viewobject/view.base.hpp" |
| | |
| | | { |
| | | double Amount1 = dw_3.GetItemDouble(hdr.row, L"Amount"); |
| | | double PrePayAmount = dw_3.GetItemDouble(hdr.row, L"PrePayAmount"); |
| | | dw_3.SetItemDouble(hdr.row, L"PayedAmount", (Amount - PrePayAmount).round(2)); |
| | | dw_3.SetItemDouble(hdr.row, L"PayedAmount", xdouble(Amount - PrePayAmount).round(2)); |
| | | } |
| | | return 1; |
| | | } |
| | |
| | | /*}*/ |
| | | if (inserted) |
| | | { |
| | | xstring sdate = win32::GetLocalDate(); |
| | | xstring sdate = publiccode::GetCurrentDate(); |
| | | dw_3.SetItemString(row, L"APDate", sdate); |
| | | |
| | | dw_3.SetItemString(row, L"CreateDate", sdate); |
| | |
| | | int row = hdr.row; |
| | | |
| | | OnPrepayRetrieve(row, bstart); |
| | | xml x = ViewObject::RetrieveData(L"/sale/data/AP/list/invoice/supplier", L"InvoiceNo", dw_1.GetItemString(row, L"InvoiceNo"), |
| | | xml x = ViewObject::RetrieveData( L"/sale/data/AP/list/invoice/supplier", L"InvoiceNo", dw_1.GetItemString(row, L"InvoiceNo"), |
| | | "SupplierID", dw_1.GetItemString(row, L"SupplierID")); |
| | | if (x) dw_101.Retrieve(x); |
| | | |
| | |
| | | arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText()); |
| | | |
| | | xcombobox cbx_type = GetControl(L"cbx_ship"); |
| | | int h = xcombobox::GetCurSel(cbx_type.GetId()); |
| | | int h = xcombobox::GetCurSel(cbx_type.GetHWND()); |
| | | if (h < 0) return 1; |
| | | xstring str = xcombobox::GetItemData(cbx_type.GetId()); |
| | | xstring str = xcombobox::GetItemData(cbx_type.GetHWND()); |
| | | arg.AddArg(L"ShipDays", str); |
| | | trace(str); |
| | | if (getUrl(L"/sale/data/AP/list101", arg.GetString(), x) != 1) |