if (PlanClass.Attributes.Contains("new_excelcolor_avg"))
                                    {
                                        ClassColorNum = ((AliasedValue)PlanClass["new_excelcolor_avg"]).Value.ToString();
                                    }
 
 
 
  private EntityCollection GetPlanClassesCollection(OrganizationServiceProxy organizationServiceProxy, string CenterGuid, DateTime RetrieveDate)
        {
            //返回值
            EntityCollection PlanClassCollection = null;
            try
            {
                string PlanClassQuery = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>" +
                                                      "<entity name='new_planclass'>" +
                                                        "<attribute name='new_name' />" +
                                                        "<attribute name='new_planclassid' />" +
                                                        "<attribute name='new_course' />" +
                                                        "<attribute name='new_begintime' />" +
                                                        "<attribute name='new_classroom' />" +
                                                        "<attribute name='new_endtime' />" +
                                                        "<attribute name='createdon' />" +
                                                        "<attribute name='statecode' />" +
                                                        "<attribute name='new_subject' />" +
                                                        "<attribute name='new_maxnum' />" +
                                                        "<attribute name='new_coursetype' />" +
                                                        "<attribute name='new_chineseteacher' />" +
                                                        "<attribute name='ownerid' />" +
                                                        "<attribute name='new_ordernum' />" +
                                                        "<attribute name='new_ordermember' />" +
                                                        "<order attribute='new_name' descending='false' />" +
                                                        "<filter type='and'>" +
                                                          "<condition attribute='new_center' operator='eq' value='" + CenterGuid + "' />" +
                                                          "<condition attribute='new_begintime' operator='on' value='" + RetrieveDate.ToString() + "' />" +
                                                        "</filter>" +
                                                        "<link-entity name='new_kidsclassroom' from='new_kidsclassroomid' to='new_classroom' visible='false' link-type='outer'>" +
                                                          "<attribute name='new_shortname' alias='new_shortname_avg'/>" +
                                                        "</link-entity>" +
                                                        "<link-entity name='new_course' from='new_courseid' to='new_course' visible='false' link-type='outer'>" +
                                                          "<attribute name='new_excelcolor' alias='new_excelcolor_avg'/>" +
                                                          "<attribute name='new_courseshortname' alias='new_courseshortname_avg'/>" +
                                                        "</link-entity>" +
                                                      "</entity>" +
                                                    "</fetch>";
                PlanClassCollection = organizationServiceProxy.RetrieveMultiple(new FetchExpression(PlanClassQuery));
            }
            catch (Exception ex)
            {
                PlanClassCollection = null;
            }
            return PlanClassCollection;
        }

Fetch 别名查找的更多相关文章

  1. 3.linux 别名 查找 压缩与解压缩

    1.别名     alias  别名=‘定义命令内容’     alias grep=‘grep --color’       vim  ~/.bashrc     关掉终端再开一次!!!!才能生效 ...

  2. linux 查找

    linux下的查找命令有很多,常用的有which.whereis.locate.find.平时在网上搜索一些教程的时候,经常会有让使用这四条命令中的一条去查找一些东西,但是经常这次说用which,下次 ...

  3. Elasticsearch基础但非常有用的功能之一:别名

    文章转载自: https://mp.weixin.qq.com/s?__biz=MzI2NDY1MTA3OQ==&mid=2247484454&idx=1&sn=43e95a2 ...

  4. 浅析Yii2的view层设计

    Yii2.0的view层提供了若干重要的功能:assets资源管理,widgets小组件,layouts布局... 下面将通过对Yii2.0代码直接进行分析,看一下上述功能都是如何实现的,当然细枝末节 ...

  5. Python学习day3作业

    days3作业 作业需求 HAproxy配置文件操作 根据用户输入,输出对应的backend下的server信息 可添加backend 和sever信息 可修改backend 和sever信息 可删除 ...

  6. MySQL临时表

    当你创建临时表的时候,你可以使用temporary关键字.如: create temporary table tmp_table(name varchar(10) not null,passwd ch ...

  7. [转载]mysql创建临时表,将查询结果插入已有表中

    今天遇到一个很棘手的问题,想临时存起来一部分数据,然后再读取.我记得学数据库理论课老师说可以创建临时表,不知道mysql有没有这样的功能呢?临时表在内存之中,读取速度应该比视图快一些.然后还需要将查询 ...

  8. SpringMVC,MyBatis项目中兼容Oracle和MySql的解决方案及其项目环境搭建配置、web项目中的单元测试写法、HttpClient调用post请求等案例

     要搭建的项目的项目结构如下(使用的框架为:Spring.SpingMVC.MyBatis): 2.pom.xml中的配置如下(注意,本工程分为几个小的子工程,另外两个工程最终是jar包): 其中 ...

  9. 修改haproxy配置文件

    需求: 1.查 输入:www.oldboy.org 获取当前backend下的所有记录 2.新建 输入: arg = { 'bakend': 'www.oldboy.org', 'record':{ ...

  10. Python3学习之路~2.10 修改haproxy配置文件

    需求: .查 输入:www.oldboy.org 获取当前backend下的所有记录 .新建 输入: arg = { 'bakend': 'www.oldboy.org', 'record':{ 's ...

随机推荐

  1. Solution -「ROI 2018」「LOJ #2850」无进位加法

    \(\mathscr{Description}\)   Link.   给定 \(\{a_n\}\),每次令某个 \(a_i\leftarrow a_i+1\),最终得到 \(\{b_n\}\),求 ...

  2. CDS标准视图:维修工单实际成本数据 I_MaintOrderActualCostDataCube

    视图名称:维修工单实际成本数据 I_MaintOrderActualCostDataCube 视图类型:基础 视图代码: 点击查看代码 @VDM.viewType: #COMPOSITE @AbapC ...

  3. struts2和Springmvc原理及比较

    一.拦截机制的不同 Struts2是类级别的拦截,每次请求就会创建一个Action,和Spring整合时Struts2的ActionBean注入作用域是原型模式prototype,然后通过setter ...

  4. C#定点执行任务测试案例

    定时方法实现类 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text ...

  5. 原生JS实现一个日期选择器(DatePicker)组件

    这是通过原生HTML/CSS/JavaScript完成一个日期选择器(datepicker)组件,一个纯手搓的组件的开发.主要包括datepicker静态结构的编写.日历数据的计划获取.组件的渲染以及 ...

  6. Spring常用注解介绍

    在Spring中,有许多高效的注解,其简化了开发并提高代码可读性,这样我们就不用再去spring.xml文件中写标签了非常方便 创建对象的注解 在Spring,有用于识别不同类型的Bean,使得Spr ...

  7. react父传子(以及默认值)

    子组件 import React, { Component } from "react"; import "./base.css" // 父组件 export ...

  8. JMeter中的JavaScript加密实战

    JMeter中的JavaScript加密实战 在性能测试领域,Apache JMeter 作为一款强大的开源工具,广泛应用于模拟多用户并发请求以评估应用程序的性能.然而,在实际的测试场景中,直接传输明 ...

  9. datawhale-大模型攻防比赛实践-第一次行动

    最近刚好是在写智能信息安全的教程,最后一章准备讲内容安全,里面有一节探讨大模型安全的内容,刚好可以拿比赛的内容当案例. 首先,可以通过modelscope平台获得GPU使用权限.然后你就可以跑base ...

  10. Python 潮流周刊#89:Python 3.14 的新型解释器!(摘要)

    本周刊由 Python猫 出品,精心筛选国内外的 250+ 信息源,为你挑选最值得分享的文章.教程.开源项目.软件工具.播客和视频.热门话题等内容.愿景:帮助所有读者精进 Python 技术,并增长职 ...