• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GetViewByName函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GetViewByName函数的典型用法代码示例。如果您正苦于以下问题:C++ GetViewByName函数的具体用法?C++ GetViewByName怎么用?C++ GetViewByName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GetViewByName函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: zwTZCMRPTD_RefreshAllComponents

zOPER_EXPORT zSHORT OPERATION
zwTZCMRPTD_RefreshAllComponents( zVIEW vSubtask )
{
   zVIEW    vTZCMLPLO;
   zVIEW    vTZCMRPTO;
   zVIEW    vCompList;
   zCHAR    szName[ 33 ];
   zCHAR    szERR_Msg[ 254 ];

   if ( GetViewByName( &vTZCMRPTO, "TZCMRPTO", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vTZCMRPTO );

   if ( zwTZCMLPLD_OptionRefreshFromRepo( vSubtask, &vTZCMLPLO,
                                          szName, zRefreshLPLR ) < 0 )
   {
      return( -1 );
   }

   zstrcpy( szERR_Msg, "Project '" );
   GetStringFromAttribute( &szERR_Msg[ zstrlen( szERR_Msg ) ], vTZCMLPLO,
                           "LPLR", "Name" );
   zstrcat( szERR_Msg, "' has been successfully refreshed." );
   MessageSend( vSubtask, "CM00279", "Configuration Management",
                szERR_Msg,
                zMSGQ_OBJECT_CONSTRAINT_INFORMATION, zBEEP );

   if ( GetViewByName( &vCompList, "CompList", vSubtask, zLEVEL_TASK ) >= 0 )
      RefreshWindow( vCompList );

   return( 0 );
} // zwTZCMRPTD_RefreshAllComponents
开发者ID:arksoftgit,项目名称:10c,代码行数:31,代码来源:tzcmrptd.c


示例2: zwTZERRORD_WriteErrorMsg

/////////////////////////////////////////////////////////////////////////////
//
//    OPERATION: zwTZERRORD_WriteErrorMsg
//
//
/////////////////////////////////////////////////////////////////////////////
zOPER_EXPORT zSHORT /*LOCAL */  OPERATION
zwTZERRORD_WriteErrorMsg( zVIEW  vSubtask,
                          zVIEW  vMetaView,
                          zPCHAR szMetaEntity,
                          zPCHAR szMetaAttribute,
                          zPCHAR szErrorMsg,
                          zSHORT nError )
{
   zVIEW  vTZERROR;
   zCHAR  szMsg[ 255 ];

   if ( GetViewByName( &vTZERROR, "TZERROR", vSubtask, zLEVEL_TASK ) < 0 )
   {
      zwTZERRORD_LoadErrorList( vSubtask );
      GetViewByName( &vTZERROR, "TZERROR", vSubtask, zLEVEL_TASK );
   }

   CreateEntity( vTZERROR, "ErrorMsg", zPOS_LAST );
   SetAttributeFromAttribute( vTZERROR, "ErrorMsg", "Name",
                              vMetaView, szMetaEntity, szMetaAttribute );

   if ( nError == 1 )
      zstrcpy( szMsg, "Error:   " );
   else
   if ( nError == 0 )
      zstrcpy( szMsg, "Warning:   " );

   zstrcat( szMsg, szErrorMsg );

   SetAttributeFromString( vTZERROR, "ErrorMsg", "ErrorText", szMsg );
   SetAttributeFromInteger( vTZERROR, "ErrorMsg", "Error", nError );
   return( 0 );

} // zwTZERRORD_WriteErrorMsg
开发者ID:arksoftgit,项目名称:10c,代码行数:40,代码来源:tzerrord.c


示例3: zwTZVSDBAD_StepOnce

zOPER_EXPORT zSHORT OPERATION
zwTZVSDBAD_StepOnce( zVIEW    vSubtask )
{
   zVIEW    XPG;
   zVIEW    lpZeidonVML;
   zVIEW    vStatementView;
   zLONG    lStepCode;
   zSHORT   nZRetCode;
   zSHORT   RESULT;
   zLONG    lTempInteger_0;

   lStepCode = Exec_StepOnce( vSubtask );
   if ( lStepCode == zXC_OPERATION_EXECUTED )
   {
      nZRetCode = zwTZVSDBAD_Resume( vSubtask );
      nZRetCode = SetWindowActionBehavior( vSubtask, zWAB_ReturnToParentWithRefresh, "", "" );
      return( -1 );
   }

   nZRetCode = GetViewByName( &lpZeidonVML, "ZeidonVML", vSubtask, zLEVEL_TASK );
   nZRetCode = GetViewByName( &XPG, "XPG", lpZeidonVML, zLEVEL_SUBTASK );
   nZRetCode = SetNameForView( XPG, "XPG", vSubtask, zLEVEL_SUBTASK );
   nZRetCode = GetViewByName( &vStatementView, "StatementView", lpZeidonVML, zLEVEL_SUBTASK );
   nZRetCode = GetIntegerFromAttribute( &lTempInteger_0, vStatementView, "Statement", "RelativeLineNumber" );
   RESULT = SetCursorFirstEntityByInteger( XPG, "OperationText", "RelativeLineNumber", lTempInteger_0, "" );
   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:27,代码来源:tzvsdbad.c


示例4: zwTZVSDBAD_Update

zOPER_EXPORT zSHORT OPERATION
zwTZVSDBAD_Update( zVIEW    vSubtask )
{
   zVIEW    StackObject;
   zVIEW    XPG;
   zVIEW    lpZeidonVML;
   zSHORT   nZRetCode;
   zSHORT   RESULT;
   zLONG    lTempInteger_0;

   nZRetCode = GetViewByName( &lpZeidonVML, "ZeidonVML", vSubtask, zLEVEL_TASK );
   nZRetCode = GetViewByName( &XPG, "XPG", lpZeidonVML, zLEVEL_SUBTASK );
   nZRetCode = GetViewByName( &StackObject, "StackObject", vSubtask, zLEVEL_SUBTASK );
   nZRetCode = GetIntegerFromAttribute( &lTempInteger_0, StackObject, "Variable", "ID" );
   RESULT = SetCursorFirstEntityByInteger( XPG, "Variable", "ID", lTempInteger_0, "" );
   if ( CompareAttributeToInteger ( XPG, "Variable", "DataType", 1045 ) != 0 )
   {
      nZRetCode = SetWindowActionBehavior( vSubtask, zWAB_StartModalSubwindow, "TZVSDBAD", "UPDATEVAR" );
   }
   else
   {
      zwTZVSDBAD_SpawnObjectBrowser( vSubtask );
   }

   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:26,代码来源:tzvsdbad.c


示例5: zwTZVSDBAD_SpawnObjectBrowser

zOPER_EXPORT zSHORT OPERATION
zwTZVSDBAD_SpawnObjectBrowser( zVIEW    vSubtask )
{
   zVIEW    StackObject;
   zVIEW    lpZeidonVML;
   zVIEW    v;
   zLONG    lDataLth;
   zSHORT   nZRetCode;

   nZRetCode = GetViewByName( &lpZeidonVML, "ZeidonVML", vSubtask, zLEVEL_TASK );
   nZRetCode = GetViewByName( &StackObject, "StackObject", lpZeidonVML, zLEVEL_SUBTASK );
   lDataLth = 4;
   GetBlobFromAttribute( &v, &lDataLth,
                         StackObject, "Variable", "Value" );
   if ( v != 0 )
   {
      nZRetCode = StageBrowser( vSubtask, v );
   }
   if ( nZRetCode == -1 )
   {
      MessageSend( vSubtask, "VS00201", "Launcher",
                   "View is not yet valid",
                   zMSGQ_OBJECT_CONSTRAINT_ERROR, zBEEP );
   }
   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:26,代码来源:tzvsdbad.c


示例6: InitInterp

//
// OPERATION:   InitializeInterpretor
//
// DESCRIPTION: InitializeInterpretor does all of the set up for the VML
//    interpretor. Loads the XPG File. Next be sure that we have access to
//   the global as well as Zeidon operation lists. Also Init two Globals.
//
zOPER_EXPORT zSHORT OPERATION
InitInterp( zVIEW  lpInterpSubtask,
            zVIEW  lpAppSubtask,
            zPCHAR szSrcDLLName )
{
   zVIEW  vStackObject;
// zVIEW  vViewObject;
   zVIEW  vTZOPGRPO;
   zCHAR  szExecDir[ zMAX_FILESPEC_LTH + 1 ];                   // dir string
   zSHORT nRC;

   nRC = LoadXPG( lpInterpSubtask, lpAppSubtask, szSrcDLLName, "C" );
   if ( nRC != 0 ) //  failed
      return( -1 );

   if ( GetViewByName( &vStackObject, "StackObject", lpInterpSubtask, zLEVEL_SUBTASK ) != zLEVEL_SUBTASK )
   {
      // activate an empty stack object.
      ActivateEmptyObjectInstance( &vStackObject, "TZVSRTOO", lpInterpSubtask, zSINGLE );

      // create the root of the stack object.
      CreateEntity( vStackObject, "StackObject", zPOS_AFTER );

      // Name the Stack Object
      SetNameForView( vStackObject, "StackObject", lpInterpSubtask, zLEVEL_SUBTASK );
   }

#if 0 // DGC  The following to OIs do not appear to be used anywhere so I'm
      // removing them so that we don't need an LPLR to be active.
   // get access to the global operation list and the Zeidon operation list
   nRC = RetrieveViewForMetaList( vSubtask, &lpGOListView, zREFER_GO_META );
   if ( nRC < 0 ) //  failed
      lpGOListView = 0;

   // get a view to the Task LPLR
   if ( GetViewByName( &vViewObject, "TaskLPLR", vSubtask, zLEVEL_TASK ) != zLEVEL_TASK )
      return( -1 );
#endif

   if ( GetViewByName( &vTZOPGRPO, "TZOPSIGK.Interp", lpInterpSubtask, zLEVEL_TASK ) != zLEVEL_TASK )
   {
      // get the exec directory
      zgGetZeidonToolsDir( lpAppSubtask, szExecDir, zAPPL_DIR_OBJECT );

      // concat the name. and the .XGO extention
      strcat_s( szExecDir, zsizeof( szExecDir ), "TZOPSIGK.XGO" );

      nRC = ActivateOI_FromFile( &vTZOPGRPO, "TZOPGRPO", lpInterpSubtask, szExecDir, zSINGLE );

      if ( nRC < 0 ) //  failed
         vTZOPGRPO = 0;
      else
         SetNameForView( vTZOPGRPO, "TZOPSIGK.Interp", lpInterpSubtask, zLEVEL_TASK );
   }

   g_nStackPtr = 0;
   g_nCallStack[ 0 ] = 1;
   return( 0 );
}
开发者ID:DeegC,项目名称:10d,代码行数:66,代码来源:tzvminaa.c


示例7: zwTZCMRPTD_RefreshSelComponents

zOPER_EXPORT zSHORT OPERATION
zwTZCMRPTD_RefreshSelComponents( zVIEW vSubtask )
{
   zVIEW    vTZCMLPLO;
   zVIEW    vTZCMRPTO;
   zVIEW    vCompList;
   zVIEW    vTZCMRPTO_New;
   zCHAR    szName[ 33 ];
   zCHAR    szERR_Msg[ 254 ];

   SetNameForView( vSubtask,"TZCM_ChkInWindow", vSubtask, zLEVEL_TASK );
   GetViewByName( &vTZCMRPTO, "TZCMRPTO", vSubtask, zLEVEL_TASK );

   if ( SetCursorFirstSelectedEntity( vTZCMRPTO, "ReportLine",
                                      "" ) < zCURSOR_SET )
   {
      zstrcpy( szERR_Msg, "No Component selected to Refresh." );
      MessageSend( vSubtask, "CM00241", "Configuration Management",
                   szERR_Msg, zMSGQ_OBJECT_CONSTRAINT_WARNING, zBEEP );
      return( 0 );
   }

   if ( zwTZCMLPLD_OptionRefreshFromRepo( vSubtask, &vTZCMLPLO,
                                          szName, zRefreshUserDefined ) < 0 )
   {
      return( -1 );
   }

   GetViewByName( &vTZCMRPTO_New, "TZCMRPTO_New", vSubtask, zLEVEL_TASK );

   // if component refreshed?
   if ( CompareAttributeToInteger( vTZCMRPTO_New, "CPLR",
                                   "ComponentRefreshed", 1 ) == 0 )
   {
      zstrcpy( szERR_Msg, "Project '" );
      GetStringFromAttribute( &szERR_Msg[ zstrlen( szERR_Msg ) ], vTZCMLPLO,
                              "LPLR", "Name" );
      zstrcat( szERR_Msg, "' has been successfully refreshed \nfrom CPLR '" );
      zstrcat( szERR_Msg, szName );
      zstrcat( szERR_Msg, "'." );
      MessageSend( vSubtask, "CM00279", "Configuration Management",
                   szERR_Msg,
                   zMSGQ_OBJECT_CONSTRAINT_INFORMATION, zBEEP );
   }

   if ( GetViewByName( &vTZCMRPTO, "TZCMRPTO", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vTZCMRPTO );

   // Build new Refresh List
   if ( zwTZCMLPLD_RefreshUserDefined( vSubtask ) < 1 )
      return( -1 );

   RefreshWindow( vSubtask );

   if ( GetViewByName( &vCompList, "CompList", vSubtask, zLEVEL_TASK ) >= 0 )
      RefreshWindow( vCompList );

   return( 0 );
} // zwTZCMRPTD_RefreshSelComponents
开发者ID:arksoftgit,项目名称:10c,代码行数:59,代码来源:tzcmrptd.c


示例8: zwTZVSDBAD_Resume

zOPER_EXPORT zSHORT OPERATION
zwTZVSDBAD_Resume( zVIEW    vSubtask )
{
   zVIEW    vAppSubtask;
   zVIEW    lpZeidonVML;
   zSHORT   nZRetCode;

   nZRetCode = GetViewByName( &lpZeidonVML, "ZeidonVML", vSubtask, zLEVEL_TASK );
   nZRetCode = GetViewByName( &vAppSubtask, "ApplicationView", lpZeidonVML, zLEVEL_SUBTASK );
   nZRetCode = Exec_ResumeFromDebugger( vSubtask, "", vAppSubtask );
   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:12,代码来源:tzvsdbad.c


示例9: GetExecModeByZKey

zOPER_EXPORT zLONG OPERATION
GetExecModeByZKey( zVIEW  lpInterpSubtask,
                   zVIEW  lpAppSubtask,
                   zLONG  lZKey )

{
   zVIEW  vXChecker;
   zVIEW  CM_List;
   zCHAR  szExecDir[ zMAX_FILESPEC_LTH + 1 ];
   zSHORT nRC;

   nRC = GetViewByName( &vXChecker, "TZVSXCOO", lpInterpSubtask, zLEVEL_APPLICATION );

   if ( nRC != zLEVEL_APPLICATION )
   {
      nRC = GetViewByName( &CM_List, "TZCMWKSO", lpInterpSubtask, zLEVEL_APPLICATION );

      nRC = GetStringFromAttribute( szExecDir, zsizeof( szExecDir ), CM_List, "LPLR", "ExecDir" );

      ZeidonStringConcat( szExecDir, 1, 0, "\\TZVSXC01.POR", 1, 0, zMAX_FILESPEC_LTH + 1 );
      nRC = ActivateOI_FromFile( &vXChecker, "TZVSXCOO", lpAppSubtask, szExecDir, zSINGLE | zIGNORE_ATTRIB_ERRORS );
      if ( nRC != 0 )
         return( -1 );
   }

   nRC = SetCursorFirstEntityByInteger( vXChecker, "DialogOperation", "ZKey", lZKey, "APPLICATION" );
#if 0
   if ( nRC != zCURSOR_SET )
      return( -1 );
#else

   if ( nRC < zCURSOR_SET )
      nRC = SetCursorFirstEntityByInteger( vXChecker, "LOD_Operation", "ZKey", lZKey, "APPLICATION" );
   if ( nRC < zCURSOR_SET )
      nRC = SetCursorFirstEntityByInteger( vXChecker, "Operation", "ZKey", lZKey, "APPLICATION" );

   // why do this???
   if ( nRC < zCURSOR_SET )
      return( -1 );
#endif

   if ( nRC >= zCURSOR_SET )
   {
      nRC = SetAttributeFromInteger( vXChecker, "APPLICATION", "CurrentMode", zXC_SETUP_DEBUGGER );
      return( zXC_SETUP_DEBUGGER );
   }
   else
   {
      nRC = SetAttributeFromInteger( vXChecker, "APPLICATION", "CurrentMode", 1 );
      return( zXC_OPERATION_STAGED );
   }
}
开发者ID:DeegC,项目名称:10d,代码行数:52,代码来源:tzvminaa.c


示例10: fnMapCtrlsFromOI

void
fnMapCtrlsFromOI( ZMapAct *pzma,
                  WPARAM  wParam,
                  LPARAM  lParam )
{
#ifdef DEBUG_ALL
   TraceLineS( "MapCtrlsFromOI: ", *(pzma->m_pzsTag) );
   if ( zstrcmp( *(pzma->m_pzsTag), "Text42" ) == 0 )
      TraceLineS( "Before MapCtrlsFromOI: ", *(pzma->m_pzsTag) );
#endif

   // Map all except the one(s) specified (if any).
   if ( pzma &&
        (lParam == 0 || fnFindCtrlInList( pzma, (zCPCHAR) lParam ) == FALSE) )
   {
#ifdef DEBUG_ALL
      if ( zstrcmp( *(pzma->m_pZSubtask->m_pzsWndTag), "Invoice" ) == 0 &&
           pzma->m_pzsAName && pzma->m_pzsEName )
      {
         zVIEW vApp;

         GetViewByName( &vApp, "mInvO",
                        pzma->m_pZSubtask->m_vDialog, zLEVEL_ANY );
      // GetViewByName( &vApp, *(pzma->m_pzsVName),
      //                pzma->m_pZSubtask->m_vDialog, zLEVEL_ANY );
         if ( vApp )
         {
            DisplayEntityInstance( vApp, "ReceiptApplied" );
         // DisplayEntityInstance( vApp, *(pzma->m_pzsEName) );
         }
      }
#endif

      pzma->MapFromOI( wParam );

#ifdef DEBUG_ALL
   // if ( zstrcmp( *(pzma->m_pzsTag), "Text42" ) == 0 ||
   //      zstrcmp( *(pzma->m_pzsTag), "Text44" ) == 0 )
      if ( zstrcmp( *(pzma->m_pZSubtask->m_pzsWndTag), "Invoice" ) == 0 &&
           pzma->m_pzsAName && pzma->m_pzsEName )
      {
         zVIEW vApp;

         TraceLineS( "After MapCtrlsFromOI: ", *(pzma->m_pzsTag) );
         GetViewByName( &vApp, "mInvO",
                        pzma->m_pZSubtask->m_vDialog, zLEVEL_ANY );
         if ( vApp )
            DisplayEntityInstance( vApp, "ReceiptApplied" );
      }
#endif
   }
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:52,代码来源:ZDrVCtrl.cpp


示例11: zwTZCMRPTD_CloseRefresh

zOPER_EXPORT zSHORT OPERATION
zwTZCMRPTD_CloseRefresh( zVIEW vSubtask )
{
   zVIEW  vView;

   if ( GetViewByName( &vView, "TZCMRPTO", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vView );

   if ( GetViewByName( &vView, "TZCMRPTO_New", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vView );

   return( 0 );
} // zwTZCMRPTD_CloseRefresh
开发者ID:arksoftgit,项目名称:10c,代码行数:13,代码来源:tzcmrptd.c


示例12: zwTZVSDBAD_BuildVar

zOPER_EXPORT zSHORT OPERATION
zwTZVSDBAD_BuildVar( zVIEW    vSubtask )
{
   zVIEW    vStackObject;
   zVIEW    lpZeidonVML;
   zSHORT   nZRetCode;

   nZRetCode = GetViewByName( &lpZeidonVML, "ZeidonVML", vSubtask, zLEVEL_TASK );
   nZRetCode = GetViewByName( &vStackObject, "StackObject", lpZeidonVML, zLEVEL_SUBTASK );
   nZRetCode = SetNameForView( vStackObject, "StackObject", vSubtask, zLEVEL_SUBTASK );
   nZRetCode = CreateTemporalSubobjectVersion( vStackObject, "Variable" );
   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:13,代码来源:tzvsdbad.c


示例13: zwTZVSDBAD_PostInitDebugger

zOPER_EXPORT zSHORT OPERATION
zwTZVSDBAD_PostInitDebugger( zVIEW    vSubtask )
{
   zVIEW    XPG;
   zVIEW    vStatementView;
   zSHORT   nZRetCode;
   zSHORT   RESULT;
   zLONG    lTempInteger_0;

   nZRetCode = GetViewByName( &XPG, "XPG", vSubtask, zLEVEL_SUBTASK );
   nZRetCode = GetViewByName( &vStatementView, "StatementView", vSubtask, zLEVEL_SUBTASK );
   nZRetCode = GetIntegerFromAttribute( &lTempInteger_0, vStatementView, "Statement", "RelativeLineNumber" );
   RESULT = SetCursorFirstEntityByInteger( XPG, "OperationText", "RelativeLineNumber", lTempInteger_0, "" );
   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:15,代码来源:tzvsdbad.c


示例14: zwTZCMRPTD_DropViewForAudittrail

/////////////////////////////////////////////////////////////////////////////
//
//    OPERATION: zwTZCMRPTD_DropViewForAudittrail
//
//
/////////////////////////////////////////////////////////////////////////////
zOPER_EXPORT zSHORT /*DIALOG */  OPERATION
zwTZCMRPTD_DropViewForAudittrail( zVIEW vSubtask )
{
   zVIEW vTZBRAUDO;

   if ( GetViewByName( &vTZBRAUDO, "TZBRAUDO", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vTZBRAUDO );

   if ( GetViewByName( &vTZBRAUDO, "TZBRAU2O", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vTZBRAUDO );

   if ( GetViewByName( &vTZBRAUDO, "TZBRAU3O", vSubtask, zLEVEL_TASK ) > 0 )
      DropObjectInstance( vTZBRAUDO );

   return( 0 );
} // zwTZCMRPTD_DropViewForAudittrail
开发者ID:arksoftgit,项目名称:10c,代码行数:22,代码来源:tzcmrptd.c


示例15: SironCreateDataModel

/////////////////////////////////////////////////////////////////////////////
//
//    OPERATION: SironCreateDataModel
//
//
/////////////////////////////////////////////////////////////////////////////
zOPER_EXPORT zSHORT /*GLOBAL */  OPERATION
SironCreateDataModel( zVIEW vSubtask,
                      zPVIEW pvERD )
{
   zVIEW  vERD_Window;
   zVIEW  vTaskLPLR;

   GetViewByName( &vTaskLPLR, "TaskLPLR", vSubtask, zLEVEL_TASK );

   ActivateEmptyMetaOI( vSubtask, pvERD, zSOURCE_ERD_META,
                        zSINGLE | zLEVEL_APPLICATION );

   // Build Root Instance
   CreateMetaEntity( vSubtask, *pvERD, "EntpER_Model", zPOS_AFTER );
   SetAttributeFromAttribute( *pvERD, "EntpER_Model", "Name", vTaskLPLR, "LPLR", "Name" );
   SetAttributeFromString( *pvERD, "EntpER_Model", "Desc", "Siron Catalogs DataModel" );
   SetNameForView( *pvERD, "TZEREMDO", vSubtask, zLEVEL_TASK );

   // Data Model exists, enable ERD Control
   GetParentWindow( &vERD_Window, vSubtask );
   SetCtrlState( vERD_Window, "ERD", zCONTROL_STATUS_ENABLED, TRUE );

   // Set window Title with check out state
   SetTitleWithCheckOutState( vERD_Window, "Data Model", "TZEREMDO", *pvERD,
                              "EntpER_Model", zSOURCE_ERD_META );
   return( 0 );
} // SironCreateDataModel
开发者ID:arksoftgit,项目名称:10c,代码行数:33,代码来源:tzsioprs.c


示例16: oTZCMQSYO_ActivateREPO_Enqueue

//./ ADD NAME=oTZCMQSYO_ActivateREPO_Enqueue
// Source Module=tzcmrepo.c
////////////////////////////////////////////////
//
//  OPERATION:  oTZCMQSYO_ActivateREPO_Enqueue
//
//  PURPOSE:    Checks for REPOS_Enqueue via the SystemAdmin.
//
//  PARAMETERS: vTZCMREPO - A pointer to the return Repository Enqueue view
//              vSubtask  - A qualifying view for the Activation
//
//  RETURNS:   >= 0  - TZCMREPO activated successfully
//               -1  - Error encountered during activation
//
////////////////////////////////////////////////
//./ END + 2
zOPER_EXPORT zSHORT OPERATION
oTZCMQSYO_ActivateREPO_Enqueue( zPVIEW vTZCMQSYO,
                                zVIEW  vSubtask )
{
   zVIEW  vKZDBHQUA;
   zSHORT nRC;

   if ( GetViewByName( &vKZDBHQUA, "KZDBHQUA", vSubtask, zLEVEL_TASK ) < 0 )
   {
      if ( ActivateEmptyObjectInstance( &vKZDBHQUA, "KZDBHQUA",
                                        vSubtask, zSINGLE ) >= 0 )
      {
         SetNameForView( vKZDBHQUA, "KZDBHQUA", vSubtask, zLEVEL_TASK );
         CreateEntity( vKZDBHQUA, "EntitySpec", zPOS_AFTER );
         CreateEntity( vKZDBHQUA, "QualAttrib", zPOS_AFTER );
      }
      else
         return( -1 );
   }

   SetAttributeFromString( vKZDBHQUA, "EntitySpec", "EntityName",
                           "SysEnqueue" );
   SetAttributeFromString( vKZDBHQUA, "QualAttrib", "EntityName",
                           "SysEnqueue" );
   SetAttributeFromString( vKZDBHQUA, "QualAttrib", "AttributeName",
                           "TimeStamp" );
   SetAttributeFromString( vKZDBHQUA, "QualAttrib", "Oper", ">" );
   SetAttributeFromString( vKZDBHQUA, "QualAttrib", "Value",
                           "19000101000000000" );
   nRC = ActivateObjectInstance( vTZCMQSYO, "TZCMQSYO", vSubtask,
                                 vKZDBHQUA, zLEVEL_TASK | zMULTIPLE );
   DropObjectInstance( vKZDBHQUA );
   return( nRC );
}
开发者ID:DeegC,项目名称:10d,代码行数:50,代码来源:tzcmqsyo.c


示例17: ObjList_AddObjOpersToWorkList

/*

   The user selected a LOD in the Object list.  Load the LOD meta and copy
   all object operations to the editor work object.

*/
zOPER_EXPORT zSHORT OPERATION
ObjList_AddObjOpersToWorkList( zVIEW vSubtask )
{
   zVIEW  vObjList;
   zVIEW  vLOD;
   zVIEW  vEdWrk;
   zSHORT nRC;
   zSHORT nLth;
   zCHAR  szOpName[ 255 ];

   GetWorkView( &vEdWrk );

   GetViewByName( &vObjList, "TZEDCWZD_TZCMLPLO_List", vSubtask, zLEVEL_TASK );
   ActivateMetaOI( vSubtask, &vLOD, vObjList, zREFER_LOD_META, 0 );
   GetStringFromAttribute( szOpName, vObjList, "W_MetaDef", "Name" );
   zstrcat( szOpName, "." );
   nLth = zstrlen( szOpName );

   for ( nRC = SetCursorFirstEntity( vLOD, "OperationList", 0 );
         nRC == zCURSOR_SET;
         nRC = SetCursorNextEntity( vLOD, "OperationList", 0 ) )
   {
      GetStringFromAttribute( &szOpName[ nLth ],
                              vLOD, "OperationList", "Name" );

      CreateEntity( vEdWrk, "Oper", zPOS_LAST );
      SetAttributeFromString( vEdWrk, "Oper", "Name", szOpName );
   }

   DropMetaOI( vSubtask, vLOD );
   DropView( vObjList );

   return( 0 );

} // ObjList_AddObjOpersToWorkList
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:41,代码来源:tzedcwzd.c


示例18: CopyEntityGroupMappingStart

//:   VIEW TZZOLODO REGISTERED AS TZZOLODO
zOPER_EXPORT zSHORT OPERATION
CopyEntityGroupMappingStart( zVIEW     vSubtask )
{
   zVIEW     TZZOLODO = 0; 
   zSHORT    RESULT; 
   //:STRING ( 100 ) MappingName
   zCHAR     MappingName[ 101 ] = { 0 }; 
   zSHORT    lTempInteger_0; 
   zCHAR     szTempString_0[ 33 ]; 

   RESULT = GetViewByName( &TZZOLODO, "TZZOLODO", vSubtask, zLEVEL_TASK );

   //:// Copy the mapping name of the attribute to the clip board.
   //:IF TZZOLODO.LOD_Entity EXISTS
   lTempInteger_0 = CheckExistenceOfEntity( TZZOLODO, "LOD_Entity" );
   if ( lTempInteger_0 == 0 )
   { 
      //:MappingName = "[Z:#S:" +
      //:              TZZOLODO.LOD_Entity.Name + "]"
      GetVariableFromAttribute( szTempString_0, 0, 'S', 33, TZZOLODO, "LOD_Entity", "Name", "", 0 );
      ZeidonStringCopy( MappingName, 1, 0, "[Z:#S:", 1, 0, 101 );
      ZeidonStringConcat( MappingName, 1, 0, szTempString_0, 1, 0, 101 );
      ZeidonStringConcat( MappingName, 1, 0, "]", 1, 0, 101 );
      //:SetClipboardBlob( MappingName, 0, 0 )
      SetClipboardBlob( MappingName, 0, 0 );
   } 

   //:END
   return( 0 );
// END
} 
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:32,代码来源:tzzoloq2.c


示例19: PostBSetVKey

/////////////////////////////////////////////////////////////////////////////
//
// ENTRY:
//
// PURPOSE:    Set the VKey Ctrl/Alt/Shift check boxes
//
/////////////////////////////////////////////////////////////////////////////
zOPER_EXPORT zSHORT OPERATION
PostBSetVKey( zVIEW vSubtask )
{
   zULONG ulLth = sizeof( zACCEL_DEF );
   zVIEW  vHotkey;
   zACCEL_DEF ac;

   GetViewByName( &vHotkey, "KZHKEYSO", vSubtask, zLEVEL_ANY );
   if ( vHotkey &&
        CheckExistenceOfEntity( vHotkey, "Hotkey" ) > zCURSOR_UNCHANGED )
   {
      GetBlobFromAttribute( &ac, &ulLth, vHotkey, "Hotkey", "KeyCombo" );
      SetCtrlState( vSubtask, "Ctrl", zCONTROL_STATUS_CHECKED, ac.fCtrl );
      SetCtrlState( vSubtask, "Alt", zCONTROL_STATUS_CHECKED, ac.fAlt );
      SetCtrlState( vSubtask, "Shift", zCONTROL_STATUS_CHECKED, ac.fShift );
//    if ( CheckExistenceOfEntity( vHotkey, "Operation" ) > zCURSOR_UNCHANGED )
//    {
//       zPCHAR pch;
//
//       GetAddrForAttribute( &pch, vHotkey, "Operation", "DLL_Name" );
//       SetCtrlText( vSubtask, "DLL_Name", pch );
//    }
   }

   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:33,代码来源:tzhkeyad.c


示例20: zwTZHKEYAD_ExitAppl

/////////////////////////////////////////////////////////////////////////////
//
// ENTRY:
//
// PURPOSE:
//
/////////////////////////////////////////////////////////////////////////////
zOPER_EXPORT zSHORT OPERATION
zwTZHKEYAD_ExitAppl( zVIEW vSubtask )
{
   zVIEW  vKZHKEYSO;
   zSHORT nRC;

   // Get Access to current HK Object and prompt for Save.
   nRC = GetViewByName( &vKZHKEYSO, "KZHKEYSO", vSubtask, zLEVEL_ANY );
   if ( nRC > 0 && ObjectInstanceUpdatedFromFile( vKZHKEYSO ) == 1 )
   {
      zCHAR  szMsg[ 300 ];

      zstrcpy( szMsg, "Do you wish to save current Application Hotkeys?" );
      nRC = MessagePrompt( vSubtask, "HK00104",
                           "Hot Keys",
                            szMsg,
                            zBEEP, zBUTTONS_YESNOCANCEL,
                            zRESPONSE_NO,  0 );
      if ( nRC == zRESPONSE_CANCEL )
      {
         SetWindowActionBehavior( vSubtask, zWAB_ReturnToTopWindow,
                                  "TZHKEYAD", "Application" );
         return( 0 );
      }
      else
      {
         if ( nRC == zRESPONSE_YES )
            zwTZHKEYAD_SaveHK_ForLPLR( vSubtask );
      }
   }

//xTerminateLPLR( vSubtask );
   return( 0 );
}
开发者ID:DeegC,项目名称:ZeidonTools,代码行数:41,代码来源:tzhkeyad.c



注:本文中的GetViewByName函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetVirtualMapForMapAndZone函数代码示例发布时间:2022-05-30
下一篇:
C++ GetView函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap