移动BOS
  • 移动BOS说明
  • 移动表单
    • 移动表单设计
    • 移动表单插件
    • 移动BOS开发技巧
    • 自定义基础资料
    • 移动特性接口
    • 底部菜单插件开发
  • 移动单据
    • 移动单据设计
    • 移动单据列表插件
    • 移动单据插件
    • 单据列表过滤
    • 单据附件
  • 移动单据分录
    • 标准分录详情
    • 自定义分录详情
  • 移动报表
    • 表格式报表
    • 图表式报表
  • 移动打印
    • 云之家打印
    • Android App标签打印
  • 业务审批
    • 移动平台单据启用设置
    • 移动单据编辑
  • 移动开发调试
    • 移动开发如何本地调试
  • 集成
    • 云之家集成
    • 微信集成
    • 第三方平台集成
Powered by GitBook
On this page
  • 【二维码、条码扫描】
  • 【移动客户端地图定位】
  • 【发短信和打电话】
  • 1 、首先我们来看看如何打电话
  • 2 、再来看看如何发短信
  • 4、发起云之家沟通

Was this helpful?

  1. 移动表单

移动特性接口

扫码、地图、短信、电话等移动特性接口

【二维码、条码扫描】

//点击扫描二维码
public override void AfterButtonClick(AfterButtonClickEventArgs e)
{
    this.View.CodeScan(); //调用二维码、条码扫描
}        
//扫描结果返回,参数e为二维码、条码结果字符串
public override void AfterCodeScan(string e)
{
    this.Model.SetValue("FCode", e);
}

【移动客户端地图定位】

public override void AfterButtonClick(AfterButtonClickEventArgs e)
{
    this.View.LocateMobileClient(LocationProvider.LBS_PROVIDER, true); //调用定位服务
}
//定位结果返回,参数e为位置信息
public override void AfterMobileClientLocated(MobileClientLocatedEventArgs e)
{
    //PlunInHelper.SaveSignInInfo(this.Context, e.Latitude, e.Longitude, e.Desc);
}

【发短信和打电话】

1 、首先我们来看看如何打电话

JSONArray jsonArray = new JSONArray(); jsonArray.Add("13900000000"); //电话号码 
this.View.AddAction(JSAction.SendCall, jsonArray);

2 、再来看看如何发短信

JSONArray jsonArray = new JSONArray(); jsonArray.Add("13900000000"); 
this.View.AddAction(JSAction.SendSMS, jsonArray);

4、发起云之家沟通

//单个用户发起沟通
JSONObject config = new JSONObject();
config.Put("openId", openIds[0]);
this.View.AddAction("chatWithXT", config);
//发起群聊
JSONObject config = new JSONObject();
config.Put("shareType", "1");
config.Put("text", "采购xxxxxx");
config.Put("appId", "10037");
config.Put("appName", "业务审批";
config.Put("ignore", new List<string>());
config.Put("selected", openIds);
this.View.AddAction("shareWithXT", config);
//获取openId接口:
UserXunTongServiceHelper.GetXunTongOpenIds(Context ctx, List<string> userIds);
Previous自定义基础资料Next底部菜单插件开发

Last updated 6 years ago

Was this helpful?