From a4d2315ee4ca3f6177b4fb2526bed2feff3d89be Mon Sep 17 00:00:00 2001
From: lifan <2308045698@qq.com>
Date: 星期三, 22 十月 2025 16:52:58 +0800
Subject: [PATCH] update
---
jrj/project/business/AP/list.ap.cpp | 44 ++++++++++++++++++++++----------------------
1 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/jrj/project/business/AP/list.ap.cpp b/jrj/project/business/AP/list.ap.cpp
index 3d185f7..8b315aa 100644
--- a/jrj/project/business/AP/list.ap.cpp
+++ b/jrj/project/business/AP/list.ap.cpp
@@ -56,27 +56,27 @@
xstring GetPayType()
{
xcombobox cbx_type = GetControl(L"cbx_type");
- int h = xcombobox::GetCurSel(cbx_type.GetId());
- if (h < 0) return "";
- return xcombobox::GetLBText(cbx_type.GetId(), h);
+ int h = xcombobox::GetCurSel(cbx_type.GetHWND());
+ if (h < 0) return L"";
+ return xcombobox::GetLBText(cbx_type.GetHWND(), h);
}
- xstring GetEntityName(int pr)
+ xstring GetEntityName(LPARAM pr)
{
return L"AP3";
}
- xstring GetEntityIDName(int /*param*/ pr)
+ xstring GetEntityIDName(LPARAM /*param*/ pr)
{
return L"APID";
}
- xstring GetEntityID(int /*param*/ pr)
+ xstring GetEntityID(LPARAM /*param*/ pr)
{
return dw_list.GetItemString(dw_list.GetRow(), L"APID");
}
- int ViewUpdate(int pr, xstring updateItem, xaserverarg arg)
+ int ViewUpdate(LPARAM pr, xstring updateItem, xaserverarg arg)
{
if (updateItem == L"del")
{
@@ -162,13 +162,13 @@
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);
arg.AddArg(L"APType", apType);
- OpenWindow(L"dev:xpage[maint.ap.vx]", pa);
+ OpenWindow(L"dev:xpage[maint.ap.vx]", arg);
return 1;
}
if (comdid.find(L"action:", 0) >= 0)
@@ -188,10 +188,10 @@
{
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 = (string)xcombobox::GetLBText(evt->command.hCtrl, h);
apType = L"---";
if (txt == L"已付货款")
{
@@ -289,6 +289,7 @@
AttachEvent(L"dw_list", L"DWV_DOUBLECLICKED", (FEvent)&ListAP::OnDoubleClicked);//行双击
AttachEvent(L"cbx_state", L"CBN_SELCHANGE", (FEvent)&ListAP::OnDatePicker);
AttachEvent(L"dw_list", L"DWV_ITEMCHANGED", (FEvent)&ListAP::OnItemChanged);
+ return 1;
}
int OnDatePicker(TEvent* evt, int lParam)
@@ -296,10 +297,10 @@
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 = (string)xcombobox::GetLBText(evt->command.hCtrl, h);
if (txt == L"出运日期")
{
apType = L"000";
@@ -322,10 +323,10 @@
}
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 = (string)xcombobox::GetLBText(evt->command.hCtrl, h1);
if (txt1 == L"出运日期")
{
apType = L"001";
@@ -348,10 +349,10 @@
}
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 = (string)xcombobox::GetLBText(evt->command.hCtrl, h2);
if (txt2 == L"出运日期")
{
apType = L"001";
@@ -409,7 +410,7 @@
xaserverarg arg;
- arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText());
+ arg.AddArg(L"QueryTxt", xcontrol(GetControl(L"sle_search")).GetText());
arg.AddArg(L"APType", APType);
arg.AddArg(L"QueryArg", GetQueryArg());
arg.AddArg(L"DatePicker", DatePickerOne);
@@ -445,8 +446,8 @@
xml x ;
xaserverarg arg;
-
- arg.AddArg(L"QueryTxt", GetControl(L"sle_search").GetText());
+ xstring queryText = xcontrol(GetControl(L"sle_search")).GetText();
+ arg.AddArg(L"QueryTxt", queryText);
arg.AddArg(L"APType", APType);
arg.AddArg(L"QueryArg", GetQueryArg());
arg.AddArg(L"DatePicker", DatePicker);
@@ -475,8 +476,7 @@
xaserverarg arg;
arg.AddArg(L"html", str);
- int obj = cast(dw_list as int);
- arg.AddArg(L"obj", obj.toString());
+ arg.SetParam(L"obj", &dw_list);
OpenWindow(L"dev:xpage[data.vanalysis.vx]", arg);
xutil::RestoreCursor(hCursor);
return 1;
--
Gitblit v1.9.3