zoukankan      html  css  js  c++  java
  • BCS datetime 时间区间问题

    BCS 整合sql表时发现以下问题:
    datetime字段在列表中带了时区,比如插入12-6号的数据,在sql中显示的是12-5

    date类型字段无法正确识别,插入成功但报错

    LobSystem (外部系统)为实体(外部内容类型)“BDI,http://10.136.240.66/kpi”的“创建”创建方法返回的标识符为 Null。


    解决:
    1.SPD导出BDC模型,并从SPD中删除
    2.VS打开编辑

    3.修改以下内容
    本地时区:<NormalizeDateTime LobDateTimeMode="UTC" /> 为    <NormalizeDateTime LobDateTimeMode="Local" /> 
    只显示日期部分:<Property Name="Format" Type="System.String">DateOnly</Property>
    显示两位小数:<Property Name="Decimal Digits" Type="System.Int32">4</Property>修改为<Property Name="Decimal Digits" Type="System.Int32">2</Property>

                    <Parameter Direction="In" Name="@PublicDate">
                      <TypeDescriptor TypeName="System.DateTime" CreatorField="true" IdentifierName="PublicDate" Name="PublicDate" DefaultDisplayName="日期">
                        <Interpretation>
                          <NormalizeDateTime LobDateTimeMode="UTC" />
                        </Interpretation>
                      </TypeDescriptor>
                    </Parameter>
    改为
                    <Parameter Direction="In" Name="@PublicDate">
                      <TypeDescriptor TypeName="System.DateTime" CreatorField="true" IdentifierName="PublicDate" Name="PublicDate" DefaultDisplayName="日期">
                        <Properties>
                          <Property Name="Format" Type="System.String">DateOnly</Property>
                        </Properties>
                        <Interpretation>
                          <NormalizeDateTime LobDateTimeMode="Local" />
                        </Interpretation>
                      </TypeDescriptor>
                    </Parameter>
    4.保存文件并在管理中心导入






  • 相关阅读:
    webkit浏览器常见开发问题
    解密H264、AAC硬件解码的关键扩展数据处理
    Bitmap那些事之内存占用计算和加载注意事项
    android apk 防止反编译技术第三篇-加密
    linux设备驱动第五篇:驱动中的并发与竟态
    如何简单快速调试高大上的谷歌浏览器
    Asp.net Mvc对比Php的4大误解
    Python初学记录
    SQL循环+游标
    Nico Game Studio 3.地图纹理编辑 物体皮肤编辑
  • 原文地址:https://www.cnblogs.com/ruijian/p/3461235.html
Copyright © 2011-2022 走看看