xj qian
2025-02-11 6fb710f1b24021ca5e95a00706ced3ba581c1c8d
jrj/project/business/BasicCode/ShipcompanyMaint.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) ShipcompanyMaint : public xframe
class __declspec(dllexport) ShipcompanyMaint : public maint
{
public:
   KXMLDOMDocument m_configDoc;
@@ -19,19 +21,14 @@
   xstring m_EntityID = L"";
   xcell dw_cell;
public:
   ShipcompanyMaint(void* implPtr, HWND hWnd) :xframe(implPtr, hWnd) {}
   ShipcompanyMaint(void* implPtr, HWND hWnd) :maint(implPtr, hWnd) {}
public:
   static ShipcompanyMaint* CreateInstance(void* implPtr, void* hWnd)
   {
      ShipcompanyMaint* pWin = new ShipcompanyMaint(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;
@@ -69,6 +66,7 @@
         dw_base.SetItemString(1, L"EnterName", m_userid);
         dw_base.SetItemDisplayString(1, L"EnterName", m_username);
         dw_base.SetItemString(1, L"CreateDate", publiccode::GetCurrentDate());
         return 0;
      }
      else
      {
@@ -309,13 +307,19 @@
   int onload()
   {
      SetArg();
      OnAttachEvent();
      //if(!m_configDoc) return -1;
      maint::onload();
      OnClear();
      return 1;
   }
   int onloaded()
   {
      return maint::onloaded();
   }
};