zoukankan      html  css  js  c++  java
  • 金蝶cloud api开发调用

    using Kingdee.BOS.WebApi.Client;                    //引用k3dll
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                ApiClient client = new ApiClient("http://127.0.0.1/K3Cloud/");          //登陆验证的类
    
    
                bool bLogin = client.Login("5e82aa62366f89", "张三", "123456", 2052);         //账套 账号 密码 语言
    
                if (bLogin)
                {
                    //todo:登陆成功处理业务 
                    string sJson = "{"Number":"CGDD000021"}";               //读取采购订单的单号
                    var result = client.Execute<string>("Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.View",
                    new object[] { "PUR_PurchaseOrder", sJson });           //获取采购订单信息
    
                }
            }
        }
    }

  • 相关阅读:
    【转载】Dom篇
    【转载】Eclipse自动编译问题
    RabbitMQ
    分布式消息中间件
    分布式限流算法
    分布式限流和熔断
    数据库中间件
    redis 集群原理
    redis 哨兵模式(读写分离)
    redis 和memcache 区别
  • 原文地址:https://www.cnblogs.com/erph/p/13161200.html
Copyright © 2011-2022 走看看