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.保存文件并在管理中心导入






  • 相关阅读:
    Ubuntu11.04中如何将pycharm添加到系统的“应用程序”菜单里 (pycharm已成功安装)
    Office 365 离线安装
    关于wxpy,使用Python玩转微信的问题
    python3安装scrapy问题解决
    python打包exe文件-ImportError: No module named 'queue'
    Linux TOP命令按内存占用排序和按CPU占用排序
    设置iptables允许ssh、http、ftp服务
    重置linux mysql root密码
    linux.go
    return_fun.go 源码阅读
  • 原文地址:https://www.cnblogs.com/ruijian/p/3461235.html
Copyright © 2011-2022 走看看