销售信息自定义页面

1. 脉络整理

- opportunity 销售信息
    - 取 new_account_id 字段
- new_delaymanagement 逾期催收管理
    - 取 new_account_id 字段
    - new_name 单号
    - new_overdate 逾期时间
    - new_delaytimes 逾期期数
    - new_overamount 逾期金额
    - new_overduetype 逾期分类
- new_srv_disputes 客户服务纠纷单
    - 取 new_account_id 字段
    - new_name 单号
    - new_requirements 用户要求
    - new_dealtype 处理类型
    - new_consensus 达成共识

2. hiddenApi

- 空工作流,plugin触发,plugin根据请求寻找对应controller
- broker ——> Dapper

3. 脚本

1
2
3
4
5
//徐庶 销售信息
rtcrm("#new_account_id").val()[0].id.replace("{","").replace("}","");
var paramList = {accountId:"F8B6B7CB-D3D6-EA11-8ABD-005056AF9937"};
rtcrm.invokeHiddenApi("new_Sales", "Opportunity/GetDelaymanagementDetailList", paramList)
rtcrm.invokeHiddenApi("new_Sales", "Opportunity/GetDisputesDetailModelData", paramList)
1
2
3
4
5
6
7
8
//找到表单上一个对象
Xrm.Page.ui.controls.get("new_account_id");
//获取属性
Xrm.Page.ui.controls.get("new_account_id").getAttribute();
//获取值
Xrm.Page.ui.controls.get("new_account_id").getAttribute().getValue();
//直接获取字段
Xrm.Page.getAttribute("new_account_id").getValue()


4. sql语法

1
2
3
4
5
6
7
Convert(decimal(18,2),new_overamount) new_overamount, --保留小数位2位

测试数据:
销售信息 NOS202008050001
服务纠纷单 CSN202008130002
逾期催收管理 BET202009290029
new_account_id F8B6B7CB-D3D6-EA11-8ABD-005056AF9937
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2020 李明华
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信