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/SO/delivery.base.maint.so.cpp | 29 ++++++++++++++---------------
1 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/jrj/project/business/SO/delivery.base.maint.so.cpp b/jrj/project/business/SO/delivery.base.maint.so.cpp
index 3b27971..8edfda2 100644
--- a/jrj/project/business/SO/delivery.base.maint.so.cpp
+++ b/jrj/project/business/SO/delivery.base.maint.so.cpp
@@ -1,20 +1,17 @@
-#include <wobject/xstring.hpp>
+锘�#include <wobject/xstring.hpp>
#include <xcontrol/xtreeview.hpp>
#include <xcontrol/xdwgrid.hpp>
#include <xcontrol/xcell.hpp>
-
#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
#include "viewobject/view.base.hpp"
-
+using xml = KXMLDOMDocument;
class __declspec(dllexport) DeliveryEdit : public xframe
{
public:
xdwtable dw_1;
-
- vcontrol vc;
xcell dw_cell;
public:
@@ -28,7 +25,7 @@
xstring OnCreateTxt()
{
- //dw_1.AcceptText(); //不能加会报错
+ //dw_1.AcceptText(); //涓嶈兘鍔犱細鎶ラ敊
xstring sType;
xstring sDeliveryRule;
xstring sDeliveryDays;
@@ -74,8 +71,11 @@
int OnOk()
{
+ xml x;
dw_1.AcceptText();
-
+ dw_1.DwUpdateAllTo(x);
+ GetArg().SetArg(L"content", x.xml());
+ GetArg().SetArg(L"process",L"ok");
CloseWindow();
return 1;
@@ -89,7 +89,7 @@
if (colname == L"DeliveryRule")
{
- xstring sP = L"<cellprop searchcolumn='' celltype='' cellformatex='' cellformat='' cellprotectex='' cellprotect='保护' cellvisibleex='' cellvisible='' cellneeddata='' cellvalid='' cellinitial=''><edit edittype=''/></cellprop>";
+ xstring sP = L"<cellprop searchcolumn='' celltype='' cellformatex='' cellformat='' cellprotectex='' cellprotect='淇濇姢' cellvisibleex='' cellvisible='' cellneeddata='' cellvalid='' cellinitial=''><edit edittype=''/></cellprop>";
xstring sUp = L"<cellprop searchcolumn='' celltype='' cellformatex='' cellformat='' cellprotectex='' cellprotect='' cellvisibleex='' cellvisible='' cellneeddata='' cellvalid='' cellinitial=''><edit edittype=''/></cellprop>";
if (value == L"1" || value == L"2" || value == L"3")
@@ -111,7 +111,7 @@
}
- //生成交货期
+ //鐢熸垚浜よ揣鏈�
if (colname == L"DeliveryRule" || colname == L"DeliveryDays" || colname == L"ScheduleShipDate")
{
xstring sTxt = OnCreateTxt();
@@ -145,6 +145,7 @@
int OnInit()
{
+ /*
int iArgs = GetArg();
XXmlContentSvr xdoc = new XXmlContentSvr;
@@ -154,16 +155,14 @@
vbind bind = new vbind;
bind.bind(dw_1, vc);
-
+ */
xml x;
- x ;
-
- x.LoadXml(vc.GetContent());
-
+ xstring xs = GetArg().GetArgString(L"content");
+ x.loadXML(xs.c_str());
dw_1.Retrieve(x);
xstring sDeliveryRule = dw_1.GetItemString(1, L"DeliveryRule");
- xstring sP = L"<cellprop searchcolumn='' celltype='' cellformatex='' cellformat='' cellprotectex='' cellprotect='保护' cellvisibleex='' cellvisible='' cellneeddata='' cellvalid='' cellinitial=''><edit edittype=''/></cellprop>";
+ xstring sP = L"<cellprop searchcolumn='' celltype='' cellformatex='' cellformat='' cellprotectex='' cellprotect='淇濇姢' cellvisibleex='' cellvisible='' cellneeddata='' cellvalid='' cellinitial=''><edit edittype=''/></cellprop>";
if (sDeliveryRule != L"1" && sDeliveryRule != L"2" && sDeliveryRule != L"3")
dw_cell.SetCellProps(3, 3, sP);
if (sDeliveryRule != L"5")
--
Gitblit v1.9.3