From 54aa6f0768d1d78e54513aa1ac89a310a53db13d Mon Sep 17 00:00:00 2001 From: LiFan <2308045698@qq.com> Date: 星期五, 05 七月 2024 12:05:33 +0800 Subject: [PATCH] update --- jrj/project/business/AP/APNew3.warizd.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/jrj/project/business/AP/APNew3.warizd.cpp b/jrj/project/business/AP/APNew3.warizd.cpp index 3858b6e..5beeecb 100644 --- a/jrj/project/business/AP/APNew3.warizd.cpp +++ b/jrj/project/business/AP/APNew3.warizd.cpp @@ -1,6 +1,7 @@ #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" @@ -79,7 +80,7 @@ { 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; } @@ -112,7 +113,7 @@ /*}*/ if (inserted) { - xstring sdate = win32::GetLocalDate(); + xstring sdate = publiccode::GetCurrentDate(); dw_3.SetItemString(row, L"APDate", sdate); dw_3.SetItemString(row, L"CreateDate", sdate); @@ -429,7 +430,7 @@ 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); @@ -577,9 +578,9 @@ 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) -- Gitblit v1.9.3