xj qian
2025-01-10 a3cdef2143f6bb7499bb365ccd46a033b4a2c272
jrj/project/business/BasicCode/TestingCompanyMaint.cpp
@@ -3,12 +3,14 @@
#include <xcontrol/xdwgrid.hpp>
#include <wobject/xdouble.hpp>
#include <xcontrol/xlayersheet.hpp>
#include <xcontrol/xcell.hpp>
#include "vbusiness/vframe/listwin.vframe.vbusiness.hpp"
#include "vbusiness/vframe/maint.vframe.vbusiness.hpp"
#include "viewobject/view.base.hpp"
using xml = KXMLDOMDocument;
class __declspec(dllexport) TestingCompanyMaint : public xframe
class __declspec(dllexport) TestingCompanyMaint : public maint
{
public:
   KXMLDOMDocument m_configDoc;
@@ -17,20 +19,16 @@
   xstring ContactID;
   xdwtable dw_base;
   xcell dw_cell;
   xstring m_EntityID = L"";
public:
   TestingCompanyMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
   TestingCompanyMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {}
public:
   static TestingCompanyMaint* CreateInstance(void* implPtr, void* hWnd)
   {
      TestingCompanyMaint* pWin = new TestingCompanyMaint(implPtr, (HWND)hWnd);
      return pWin;
   }
   int alert(xstring str)
   {
      //win::MessageBox(GetHWND(),str,L"提示22:",0);
      TApp::alert(this, str);
      return 0;
   }
   int setCellReadOnly()
   {
      dw_base = new xdwtable;
@@ -287,7 +285,7 @@
         args.AddArg(L"CSpec", cspec);
         args.AddArg(L"SpecRule", SpecRule);
         xml  x = new xml;
         xml  x;
         getUrl(L"/sale/data/LogisticsCode/pref/forwarderno/check", args.GetString(), x);
         if (x.selectSingleNode(L"root/spec"))
@@ -309,13 +307,19 @@
   int onload()
   {
      SetArg();
      OnAttachEvent();
      //if(!m_configDoc) return -1;
      maint::onload();
      OnClear();
      return 1;
   }
   int onloaded()
   {
      return maint::onloaded();
   }
};