当前位置: 首页>>代码示例>>C#>>正文


C# IUServiceContext.GetInputFieldValue方法代码示例

本文整理汇总了C#中IUServiceContext.GetInputFieldValue方法的典型用法代码示例。如果您正苦于以下问题:C# IUServiceContext.GetInputFieldValue方法的具体用法?C# IUServiceContext.GetInputFieldValue怎么用?C# IUServiceContext.GetInputFieldValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IUServiceContext的用法示例。


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

示例1: ExecuteValidateValue

 /// <summary>
 /// Solves the validation of inbound arguments of 'edit_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteValidateValue(IUServiceContext context)
 {
     switch (context.SelectedInputField)
     {
         case "p_thisPasajero":
             ExecuteValidateValuep_thisPasajero(context.Agent, context.GetInputFieldValue("p_thisPasajero") as List<Oid>);
             break;
         default:
             break;
     }
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:15,代码来源:edit_instanceLogic.cs

示例2: ExecuteLoadFromContext

        /// <summary>
        /// Initialize the inbound arguments based in the context information.
        /// </summary>
        /// <param name="context">Current service context.</param>
        public static void ExecuteLoadFromContext(IUServiceContext context)
        {
            int depRulesCounter  = Properties.Settings.Default.DependencyRulesCounter;
            DependencyRulesCache depRulesCache = new DependencyRulesCache();

            // If Exchange information does not exist, none initialization can be done.
            if (context == null || context.ExchangeInformation == null)
            {
                return;
            }

            // Argument previous value. Common for all of them.
            object previousValue;

            #region 'this' initialization
            // Argument 'this' initialization: 'p_thisPasajero'.
            List<Oid> lSelectedOids = null;
            ExchangeInfoAction lInfoAction = context.ExchangeInformation as ExchangeInfoAction;
            if (lInfoAction != null)
            {
                lSelectedOids = lInfoAction.SelectedOids;
            }

            // Check if the selected Oid is an Oid of the 'this' argument class.
            if (UtilFunctions.OidsBelongToClass(lSelectedOids, "Pasajero"))
            {
                if (!context.GetInputFieldMultiSelectionAllowed("p_thisPasajero") && lSelectedOids.Count > 1)
                {
                    lSelectedOids.RemoveRange(1, lSelectedOids.Count - 1);
                }
                previousValue = context.GetInputFieldValue("p_thisPasajero");
                context.SetInputFieldValue("p_thisPasajero", lSelectedOids);
                // Check SetValue dependency rules.
                context.SelectedInputField = "p_thisPasajero";
                ExecuteDependencyRules(context, previousValue, DependencyRulesEventLogic.SetValue, DependencyRulesAgentLogic.Internal, ref depRulesCounter, depRulesCache);
                // Check SetEnabled dependency rules.
                context.SetInputFieldEnabled("p_thisPasajero", false);
                context.SelectedInputField = "p_thisPasajero";
                ExecuteDependencyRules(context, true, DependencyRulesEventLogic.SetActive, DependencyRulesAgentLogic.Internal, ref depRulesCounter, depRulesCache);
                context.SelectedInputField = string.Empty;
            }
            #endregion 'this' initialization

            #region Aggregation relationships initializations
            // Obtain data from the last navigation, in order to initialize object-valued arguments that represent aggregation relationships.
            string lLastNavigationRole = context.ExchangeInformation.GetLastNavigationRole();

            if (lLastNavigationRole != "")
            {

            }
            #endregion Aggregation relationships initializations

            #region Manual initializations
            // Search in context for initializations done by programmers, in order to achieve special behaviours.
            foreach(KeyValuePair<string,object> argument in context.ExchangeInformation.CustomData)
            {
                previousValue = context.GetInputFieldValue(argument.Key);

                object lCustomArgumentValue = argument.Value;

                context.SetInputFieldValue(argument.Key, lCustomArgumentValue);
                // Check SetValue dependency rules
                context.SelectedInputField = argument.Key;
                ExecuteDependencyRules(context, previousValue, DependencyRulesEventLogic.SetValue, DependencyRulesAgentLogic.Internal, ref depRulesCounter, depRulesCache);
                context.SelectedInputField = string.Empty;
            }
            #endregion Manual initializations

            #region Arguments initializations taking into account context information
            // Initialize object-valued arguments using information in the context stack, only if the argument has not value.
            List<Oid> lArgumentValue = null;
            // 'p_thisPasajero' argument.
            previousValue = context.GetInputFieldValue("p_thisPasajero");
            if (previousValue == null)
            {
                // Search an Oid of the argument class: 'Pasajero'.
                lArgumentValue = context.ExchangeInformation.GetOidsOfClass("Pasajero");
                if (lArgumentValue != null)
                {
                    context.SetInputFieldValue("p_thisPasajero", lArgumentValue);
                    // Check SetValue dependency rules.
                    context.SelectedInputField = "p_thisPasajero";
                    ExecuteDependencyRules(context, null, DependencyRulesEventLogic.SetValue, DependencyRulesAgentLogic.Internal, ref depRulesCounter, depRulesCache);
                    context.SelectedInputField = string.Empty;
                }
            }

            #endregion Arguments initializations taking into account context information
        }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:94,代码来源:edit_instanceLogic.cs

示例3: ExecuteValidateValue

 /// <summary>
 /// Solves the validation of inbound arguments of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteValidateValue(IUServiceContext context)
 {
     switch (context.SelectedInputField)
     {
         case "p_agrPasajeroAeronave":
             ExecuteValidateValuep_agrPasajeroAeronave(context.Agent, context.GetInputFieldValue("p_agrPasajeroAeronave") as List<Oid>);
             break;
         case "p_atrid_Aeronave":
             ExecuteValidateValuep_atrid_Aeronave(context.Agent, context.GetInputFieldValue("p_atrid_Aeronave") as int?);
             break;
         case "p_atrNombre":
             ExecuteValidateValuep_atrNombre(context.Agent, context.GetInputFieldValue("p_atrNombre") as string);
             break;
         case "p_atrMaximoPasajeros":
             ExecuteValidateValuep_atrMaximoPasajeros(context.Agent, context.GetInputFieldValue("p_atrMaximoPasajeros") as int?);
             break;
         case "p_atrOrigen":
             ExecuteValidateValuep_atrOrigen(context.Agent, context.GetInputFieldValue("p_atrOrigen") as string);
             break;
         case "p_atrDestino":
             ExecuteValidateValuep_atrDestino(context.Agent, context.GetInputFieldValue("p_atrDestino") as string);
             break;
         default:
             break;
     }
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:30,代码来源:create_instanceLogic.cs

示例4: ExecuteService

 /// <summary>
 /// Method that solves the execution of 'edit_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteService(IUServiceContext context)
 {
     context.OutputFields = ExecuteService(context.Agent, context.GetInputFieldValue("p_thisPasajero") as List<Oid>);
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:8,代码来源:edit_instanceLogic.cs

示例5: ExecuteLoadFromContext

        /// <summary>
        /// Initialize the inbound arguments based in the context information.
        /// </summary>
        /// <param name="context">Current service context.</param>
        public static void ExecuteLoadFromContext(IUServiceContext context)
        {
            int depRulesCounter  = Properties.Settings.Default.DependencyRulesCounter;
            DependencyRulesCache depRulesCache = new DependencyRulesCache();

            // If Exchange information does not exist, none initialization can be done.
            if (context == null || context.ExchangeInformation == null)
            {
                return;
            }

            // Argument previous value. Common for all of them.
            object previousValue;

            #region Aggregation relationships initializations
            // Obtain data from the last navigation, in order to initialize object-valued arguments that represent aggregation relationships.
            string lLastNavigationRole = context.ExchangeInformation.GetLastNavigationRole();

            if (lLastNavigationRole != "")
            {

            }
            #endregion Aggregation relationships initializations

            #region Manual initializations
            // Search in context for initializations done by programmers, in order to achieve special behaviours.
            foreach(KeyValuePair<string,object> argument in context.ExchangeInformation.CustomData)
            {
                previousValue = context.GetInputFieldValue(argument.Key);

                object lCustomArgumentValue = argument.Value;

                context.SetInputFieldValue(argument.Key, lCustomArgumentValue);
                // Check SetValue dependency rules
                context.SelectedInputField = argument.Key;
                ExecuteDependencyRules(context, previousValue, DependencyRulesEventLogic.SetValue, DependencyRulesAgentLogic.Internal, ref depRulesCounter, depRulesCache);
                context.SelectedInputField = string.Empty;
            }
            #endregion Manual initializations

            #region Arguments initializations taking into account context information
            #endregion Arguments initializations taking into account context information
        }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:47,代码来源:create_instanceLogic.cs

示例6: ExecuteService

 /// <summary>
 /// Method that solves the execution of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteService(IUServiceContext context)
 {
     context.OutputFields = ExecuteService(context.Agent, context.GetInputFieldValue("p_agrPasajeroAeronave") as List<Oid>, context.GetInputFieldValue("p_atrid_Aeronave") as int?, context.GetInputFieldValue("p_atrNombre") as string, context.GetInputFieldValue("p_atrMaximoPasajeros") as int?, context.GetInputFieldValue("p_atrOrigen") as string, context.GetInputFieldValue("p_atrDestino") as string);
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:8,代码来源:create_instanceLogic.cs

示例7: ExecuteService

 /// <summary>
 /// Method that solves the execution of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteService(IUServiceContext context)
 {
     context.OutputFields = ExecuteService(context.Agent, context.GetInputFieldValue("p_atrid_RevisarAeronave") as int?, context.GetInputFieldValue("p_atrFechaRevision") as DateTime?, context.GetInputFieldValue("p_atrNombreRevisor") as string, context.GetInputFieldValue("p_atrId_Aeronave") as string);
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:8,代码来源:create_instanceLogic.cs

示例8: ExecuteValidateValue

 /// <summary>
 /// Solves the validation of inbound arguments of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteValidateValue(IUServiceContext context)
 {
     switch (context.SelectedInputField)
     {
         case "p_atrid_RevisarAeronave":
             ExecuteValidateValuep_atrid_RevisarAeronave(context.Agent, context.GetInputFieldValue("p_atrid_RevisarAeronave") as int?);
             break;
         case "p_atrFechaRevision":
             ExecuteValidateValuep_atrFechaRevision(context.Agent, context.GetInputFieldValue("p_atrFechaRevision") as DateTime?);
             break;
         case "p_atrNombreRevisor":
             ExecuteValidateValuep_atrNombreRevisor(context.Agent, context.GetInputFieldValue("p_atrNombreRevisor") as string);
             break;
         case "p_atrId_Aeronave":
             ExecuteValidateValuep_atrId_Aeronave(context.Agent, context.GetInputFieldValue("p_atrId_Aeronave") as string);
             break;
         default:
             break;
     }
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:24,代码来源:create_instanceLogic.cs

示例9: ExecuteValidateValue

 /// <summary>
 /// Solves the validation of inbound arguments of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteValidateValue(IUServiceContext context)
 {
     switch (context.SelectedInputField)
     {
         case "p_agrPasajeroAeronave":
             ExecuteValidateValuep_agrPasajeroAeronave(context.Agent, context.GetInputFieldValue("p_agrPasajeroAeronave") as List<Oid>);
             break;
         case "p_agrRevision":
             ExecuteValidateValuep_agrRevision(context.Agent, context.GetInputFieldValue("p_agrRevision") as List<Oid>);
             break;
         case "p_atrid_RevisionPasajero":
             ExecuteValidateValuep_atrid_RevisionPasajero(context.Agent, context.GetInputFieldValue("p_atrid_RevisionPasajero") as int?);
             break;
         default:
             break;
     }
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:21,代码来源:create_instanceLogic.cs

示例10: ExecuteService

 /// <summary>
 /// Method that solves the execution of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteService(IUServiceContext context)
 {
     context.OutputFields = ExecuteService(context.Agent, context.GetInputFieldValue("p_agrPasajeroAeronave") as List<Oid>, context.GetInputFieldValue("p_agrRevision") as List<Oid>, context.GetInputFieldValue("p_atrid_RevisionPasajero") as int?);
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:8,代码来源:create_instanceLogic.cs

示例11: ExecuteService

 /// <summary>
 /// Method that solves the execution of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteService(IUServiceContext context)
 {
     context.OutputFields = ExecuteService(context.Agent, context.GetInputFieldValue("p_agrAeronave") as List<Oid>, context.GetInputFieldValue("p_agrPasajero") as List<Oid>, context.GetInputFieldValue("p_atrid_PasajeroAeronave") as int?, context.GetInputFieldValue("p_atrNombreAeronave") as string, context.GetInputFieldValue("p_atrNombrePasajero") as string);
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:8,代码来源:create_instanceLogic.cs

示例12: ExecuteValidateValue

 /// <summary>
 /// Solves the validation of inbound arguments of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteValidateValue(IUServiceContext context)
 {
     switch (context.SelectedInputField)
     {
         case "p_atrid_NaveNodriza":
             ExecuteValidateValuep_atrid_NaveNodriza(context.Agent, context.GetInputFieldValue("p_atrid_NaveNodriza") as int?);
             break;
         case "p_atrNombre_NaveNodriza":
             ExecuteValidateValuep_atrNombre_NaveNodriza(context.Agent, context.GetInputFieldValue("p_atrNombre_NaveNodriza") as string);
             break;
         default:
             break;
     }
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:18,代码来源:create_instanceLogic.cs

示例13: ExecuteService

 /// <summary>
 /// Method that solves the execution of 'create_instance' service.
 /// </summary>
 /// <param name="context">Current context.</param>
 public static void ExecuteService(IUServiceContext context)
 {
     context.OutputFields = ExecuteService(context.Agent, context.GetInputFieldValue("p_atrid_NaveNodriza") as int?, context.GetInputFieldValue("p_atrNombre_NaveNodriza") as string);
 }
开发者ID:sgon1853,项目名称:UPM_MDD_Thesis,代码行数:8,代码来源:create_instanceLogic.cs


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