1
This commit is contained in:
93
Gatedge.K3Cloud.Utils/Common/FilterItem.cs
Normal file
93
Gatedge.K3Cloud.Utils/Common/FilterItem.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 过滤条件项
|
||||
/// </summary>
|
||||
public class FilterItem
|
||||
{
|
||||
|
||||
|
||||
//{"Left":"(","FieldName":"Field1","Compare":"67","Value":"111","Right":")","Logic":"0"}
|
||||
/// <summary>
|
||||
/// 左连接符
|
||||
/// </summary>
|
||||
public string Left { get; set; }
|
||||
/// <summary>
|
||||
/// 字段名
|
||||
/// </summary>
|
||||
public string FieldName { get; set; }
|
||||
/// <summary>
|
||||
/// 比较符
|
||||
/// </summary>
|
||||
public string Compare { get; set; }
|
||||
/// <summary>
|
||||
/// 值
|
||||
/// </summary>
|
||||
public string Value { get; set; }
|
||||
/// <summary>
|
||||
/// 右连接符
|
||||
/// </summary>
|
||||
public string Right { get; set; }
|
||||
/// <summary>
|
||||
/// 逻辑控制符
|
||||
/// </summary>
|
||||
public string Logic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public FilterItem()
|
||||
{
|
||||
Left = "";
|
||||
Right = "";
|
||||
Logic = "0";
|
||||
FieldName = "";
|
||||
Compare = "";
|
||||
Value = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生成并且的条件
|
||||
/// </summary>
|
||||
/// <param name="fieldName"></param>
|
||||
/// <param name="compare"></param>
|
||||
/// <param name="value"></param>
|
||||
public FilterItem(string fieldName, string compare, string value)
|
||||
{
|
||||
Left = "";
|
||||
Right = "";
|
||||
Logic = "0";
|
||||
FieldName = fieldName;
|
||||
Compare = compare;
|
||||
Value = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// 构造无左右连接符的过滤条件
|
||||
/// </summary>
|
||||
/// <param name="fieldName"></param>
|
||||
/// <param name="compare"></param>
|
||||
/// <param name="value"></param>
|
||||
/// <param name="logic"></param>
|
||||
public FilterItem(string fieldName, string compare, string value, string logic)
|
||||
{
|
||||
Left = "";
|
||||
Right = "";
|
||||
FieldName = fieldName;
|
||||
Compare = compare;
|
||||
Value = value;
|
||||
Logic = logic;
|
||||
}
|
||||
/// <summary>
|
||||
/// 构造全属性过滤条件
|
||||
/// </summary>
|
||||
public FilterItem(string left, string fieldName, string compare, string value, string right, string logic)
|
||||
{
|
||||
Left = left;
|
||||
FieldName = fieldName;
|
||||
Compare = compare;
|
||||
Value = value;
|
||||
Right = right;
|
||||
Logic = logic;
|
||||
}
|
||||
}
|
||||
}
|
||||
82
Gatedge.K3Cloud.Utils/Common/FilterList.cs
Normal file
82
Gatedge.K3Cloud.Utils/Common/FilterList.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 过滤条件实体类
|
||||
/// </summary>
|
||||
public class FilterList
|
||||
{
|
||||
private List<FilterItem> Items;
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数,初始化过滤子项
|
||||
/// </summary>
|
||||
public FilterList()
|
||||
{
|
||||
Items = new List<FilterItem>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加已审核过滤
|
||||
/// </summary>
|
||||
/// <param name="AuditFieldKey"></param>
|
||||
/// <returns></returns>
|
||||
public FilterList AddAuditedItems(string AuditFieldKey = "FDocumentStatus")
|
||||
{
|
||||
FilterItem DocumentStatusItem = new FilterItem()
|
||||
{
|
||||
Left = "",
|
||||
FieldName = AuditFieldKey,
|
||||
Compare = "105",
|
||||
Value = "C",
|
||||
Right = "",
|
||||
Logic = "0",
|
||||
};
|
||||
|
||||
Items.Add(DocumentStatusItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加未禁用过滤
|
||||
/// </summary>
|
||||
/// <param name="CancelFieldKey"></param>
|
||||
/// <returns></returns>
|
||||
public FilterList AddNotCancelItems(string CancelFieldKey = "FCancelStatus")
|
||||
{
|
||||
FilterItem DocumentStatusItem = new FilterItem()
|
||||
{
|
||||
Left = "",
|
||||
FieldName = CancelFieldKey,
|
||||
Compare = "105",
|
||||
Value = "A",
|
||||
Right = "",
|
||||
Logic = "0",
|
||||
};
|
||||
|
||||
Items.Add(DocumentStatusItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加过滤字段
|
||||
/// </summary>
|
||||
/// <param name="filterItem"></param>
|
||||
/// <returns></returns>
|
||||
public FilterList AddFilterItem(FilterItem filterItem)
|
||||
{
|
||||
Items.Add(filterItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取过滤字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public List<FilterItem> GetFilterString()
|
||||
{
|
||||
|
||||
return Items;
|
||||
}
|
||||
}
|
||||
}
|
||||
26
Gatedge.K3Cloud.Utils/Exceptions/K3CloudException.cs
Normal file
26
Gatedge.K3Cloud.Utils/Exceptions/K3CloudException.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
using Gatedge.K3Cloud.Utils.Model.K3Result.Model;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 金蝶云星空查看单据异常类
|
||||
/// </summary>
|
||||
public class K3CloudException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// 错误信息列表
|
||||
/// </summary>
|
||||
public K3CloudResponseStatus responseStatus { get; set; }
|
||||
/// <summary>
|
||||
/// 构造一个新的异常
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="responseStatus"></param>
|
||||
public K3CloudException(string message, K3CloudResponseStatus responseStatus) : base(message)
|
||||
{
|
||||
this.responseStatus = responseStatus;
|
||||
}
|
||||
}
|
||||
}
|
||||
19
Gatedge.K3Cloud.Utils/Gatedge.K3Cloud.Utils.csproj
Normal file
19
Gatedge.K3Cloud.Utils/Gatedge.K3Cloud.Utils.csproj
Normal file
@@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Kingdee.CDP.WebApi.SDK">
|
||||
<HintPath>..\Library\Kingdee.CDP.WebApi.SDK.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
363
Gatedge.K3Cloud.Utils/K3CloudApiUtils.cs
Normal file
363
Gatedge.K3Cloud.Utils/K3CloudApiUtils.cs
Normal file
@@ -0,0 +1,363 @@
|
||||
using Gatedge.K3Cloud.Utils.Exceptions;
|
||||
using Gatedge.K3Cloud.Utils.Model.K3Request;
|
||||
using Gatedge.K3Cloud.Utils.Model.K3Result;
|
||||
using Gatedge.K3Cloud.Utils.Model.K3Result.Model;
|
||||
using Gatedge.K3Cloud.Utils.Option;
|
||||
using Kingdee.CDP.WebApi.SDK;
|
||||
using Kingdee.CDP.WebApi.SDK.DataEntity;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils
|
||||
{
|
||||
/// <summary>
|
||||
/// K3CloudApi帮助类
|
||||
/// </summary>
|
||||
public class K3CloudApiUtils
|
||||
{
|
||||
private List<K3CloudOption> _options;
|
||||
private K3CloudApi _cloudApi;
|
||||
private LoginInfo _userInfo;
|
||||
|
||||
/// <summary>
|
||||
/// 构造K3CloudApiUtils,option、env是从ICO容器中拿到的对象
|
||||
/// </summary>
|
||||
/// <param name="option">金蝶配置</param>
|
||||
public K3CloudApiUtils(List<K3CloudOption> option)
|
||||
{
|
||||
_options = option;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取Kingdee配置信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public List<K3CloudOption> GetKingdeeOptions()
|
||||
{
|
||||
return _options;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据Token中的信息创建K3CloudApi对象
|
||||
/// </summary>
|
||||
/// <param name="User"></param>
|
||||
/// <returns></returns>
|
||||
public void InitCloudApi(LoginInfo User)
|
||||
{
|
||||
var userName = User.UserName;
|
||||
var lcId = User.LCId;
|
||||
var orgNum = User.OrgNum;
|
||||
var DBID = User.DBID;
|
||||
var serverUrl = User.ServerUrl;
|
||||
K3CloudOption? kingdeeOption = _options
|
||||
.Where(n => n.AcctID == DBID && n.ServerUrl.ToUpperInvariant() == serverUrl.ToUpperInvariant())
|
||||
.FirstOrDefault();
|
||||
if (kingdeeOption == null)
|
||||
{
|
||||
throw new Exception("配置文件没有对应的第三方授权登录信息!");
|
||||
}
|
||||
_cloudApi = new K3CloudApi(serverUrl);
|
||||
|
||||
_cloudApi.InitClient(
|
||||
acctID: DBID,
|
||||
appID: kingdeeOption?.AppID,
|
||||
appSec: kingdeeOption?.AppSec,
|
||||
serverUrl: serverUrl,
|
||||
userName: userName,
|
||||
lcid: lcId,
|
||||
orgNum: orgNum
|
||||
);
|
||||
this._userInfo = User;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取默认用户的api
|
||||
/// </summary>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudApi CreateDefaultK3CloudApi(LoginInfo loginInfo)
|
||||
{
|
||||
K3CloudOption? kingdeeOption = _options
|
||||
.Where(n => n.AcctID == loginInfo.DBID && n.ServerUrl.ToUpperInvariant() == loginInfo.ServerUrl.ToUpperInvariant())
|
||||
.FirstOrDefault();
|
||||
if (kingdeeOption == null)
|
||||
{
|
||||
throw new Exception("配置文件没有对应的第三方授权登录信息!");
|
||||
}
|
||||
// 默认登录信息从配置文件appsetting.json获取AppID、AppSec,其余从前端传参
|
||||
ThirdPassPortInfo thirdPassPortInfo = new ThirdPassPortInfo();
|
||||
thirdPassPortInfo.CloudDbId = loginInfo.DBID;
|
||||
thirdPassPortInfo.ApiAppId = kingdeeOption?.AppID;
|
||||
thirdPassPortInfo.AppSec = kingdeeOption?.AppSec;
|
||||
thirdPassPortInfo.CloudUrl = loginInfo.ServerUrl;
|
||||
thirdPassPortInfo.Language = loginInfo.LCId.ToString();
|
||||
thirdPassPortInfo.CloudUser = loginInfo.UserName;
|
||||
_cloudApi = new K3CloudApi(thirdPassPortInfo, 30);
|
||||
return _cloudApi;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建金蝶云API SDK
|
||||
/// </summary>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudApiUtils GetDefaultK3CloudApiUtil(LoginInfo loginInfo)
|
||||
{
|
||||
K3CloudOption? kingdeeOption = _options
|
||||
.Where(n => n.AcctID == loginInfo.DBID && n.ServerUrl.ToUpperInvariant() == loginInfo.ServerUrl.ToUpperInvariant())
|
||||
.FirstOrDefault();
|
||||
if (kingdeeOption == null)
|
||||
{
|
||||
throw new Exception("配置文件没有对应的第三方授权登录信息!");
|
||||
}
|
||||
// 默认登录信息从配置文件appsetting.json获取AppID、AppSec,其余从前端传参
|
||||
var logInfo = new LoginInfo()
|
||||
{
|
||||
UserName = kingdeeOption.UserName,
|
||||
LCId = kingdeeOption.LCID,
|
||||
OrgNum = kingdeeOption.OrgNumber,
|
||||
DBID = kingdeeOption.AcctID,
|
||||
ServerUrl = kingdeeOption.ServerUrl,
|
||||
};
|
||||
var k3CloudApiUtil = new K3CloudApiUtils(_options);
|
||||
k3CloudApiUtil.InitCloudApi(logInfo);
|
||||
return k3CloudApiUtil;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建金蝶云API SDK
|
||||
/// </summary>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudApiUtils GetDefaultK3CloudApiUtil()
|
||||
{
|
||||
|
||||
if (this._userInfo == null)
|
||||
{
|
||||
throw new Exception("当前工具类没有,初始化用户信息");
|
||||
}
|
||||
return GetDefaultK3CloudApiUtil(_userInfo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取金蝶云星空SDK实例
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public K3CloudApi GetApiClient()
|
||||
{
|
||||
return _cloudApi;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询列表
|
||||
/// </summary>
|
||||
/// <param name="queryParam"></param>
|
||||
/// <returns></returns>
|
||||
public ListResult QueryList(Query queryParam)
|
||||
{
|
||||
var datastr = queryParam.ToString();
|
||||
var resultString = _cloudApi.BillQuery(datastr);
|
||||
// 包含ErrorCode认定为失败
|
||||
if (resultString.Contains("ErrorCode"))
|
||||
{
|
||||
var errorResult = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
var responseStatus = errorResult?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("查看单据列表出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
List<Dictionary<string, object>>? result = JsonSerializer.Deserialize<List<Dictionary<string, object>>>(resultString);
|
||||
return new ListResult(result);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询单据
|
||||
/// </summary>
|
||||
/// <param name="formId">表单ID</param>
|
||||
/// <param name="viewBill">参数</param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
public object Query(string formId, View viewBill)
|
||||
{
|
||||
var jsonData = viewBill.ToString();
|
||||
var resultString = _cloudApi.View(formId, jsonData);
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
if (result?.Result?.ResponseStatus?.IsSuccess != true)
|
||||
{
|
||||
var responseStatus = result?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("查看单据出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
var data = result?.Result?.Result;
|
||||
return data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询单据
|
||||
/// </summary>
|
||||
/// <param name="formId">表单ID</param>
|
||||
/// <param name="viewBill">参数</param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
public T Query<T>(string formId, View viewBill)
|
||||
{
|
||||
var jsonData = viewBill.ToString();
|
||||
var resultString = _cloudApi.View(formId, jsonData);
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
if (result?.Result?.ResponseStatus?.IsSuccess != true)
|
||||
{
|
||||
var responseStatus = result?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("查看单据出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
var data = result?.Result?.Result;
|
||||
var dataString = JsonSerializer.Serialize(data);
|
||||
return JsonSerializer.Deserialize<T>(dataString);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下推接口
|
||||
/// </summary>
|
||||
/// <param name="formId">表单ID</param>
|
||||
/// <param name="billPush">参数</param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus Push(string formId, Push billPush)
|
||||
{
|
||||
var pushString = billPush.ToString();
|
||||
var resultString = _cloudApi.Push(formId, pushString);
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 保存接口
|
||||
/// </summary>
|
||||
/// <param name="formId"></param>
|
||||
/// <param name="billSave"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus Save<T>(string formId, Save<T> billSave)
|
||||
{
|
||||
var requestString = billSave.ToString();
|
||||
var resultString = _cloudApi.Save(formId, requestString);
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
if (result?.Result?.ResponseStatus?.IsSuccess != true)
|
||||
{
|
||||
var responseStatus = result?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("单据保存出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量保存接口
|
||||
/// </summary>
|
||||
/// <param name="formId"></param>
|
||||
/// <param name="patchSave"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus BatchSave<T>(string formId, PatchSave<T> patchSave)
|
||||
{
|
||||
var requestString = patchSave.ToString();
|
||||
var resultString = _cloudApi.BatchSave(formId, requestString);
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
if (result?.Result?.ResponseStatus?.IsSuccess != true)
|
||||
{
|
||||
var responseStatus = result?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("单据批量保存出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除接口
|
||||
/// </summary>
|
||||
/// <param name="formId"></param>
|
||||
/// <param name="billdelete"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus Delete(string formId, Delete billdelete)
|
||||
{
|
||||
var paramStr = billdelete.ToString();
|
||||
var resultString = _cloudApi.Delete(formId, paramStr);
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
if (result?.Result?.ResponseStatus?.IsSuccess != true)
|
||||
{
|
||||
var responseStatus = result?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("单据删除出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 提交接口
|
||||
/// </summary>
|
||||
/// <param name="formId"></param>
|
||||
/// <param name="billSubmit"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus Submit(string formId, Submit billSubmit)
|
||||
{
|
||||
var resultString = _cloudApi.Submit(formId, billSubmit.ToString());
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提交接口
|
||||
/// </summary>
|
||||
/// <param name="formId"></param>
|
||||
/// <param name="billSubmit"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus CancelAssign(string formId, CancelAssign billSubmit)
|
||||
{
|
||||
var resultString = _cloudApi.CancelAssign(formId, billSubmit.ToString());
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 审核接口
|
||||
/// </summary>
|
||||
/// <param name="formId"></param>
|
||||
/// <param name="billAudit"></param>
|
||||
/// <returns></returns>
|
||||
public K3CloudResponseStatus Audit(string formId, Audit billAudit)
|
||||
{
|
||||
var resultString = _cloudApi.Audit(formId, billAudit.ToString());
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
var data = result?.Result?.ResponseStatus;
|
||||
return data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 文件系统
|
||||
/// </summary>
|
||||
/// <param name="fileParam"></param>
|
||||
/// <returns></returns>
|
||||
public Model.K3Result.Model.K3CloudResult FileDonwload(FileParam fileParam)
|
||||
{
|
||||
var resultString = _cloudApi.AttachmentDownLoad(fileParam.ToString());
|
||||
|
||||
var result = JsonSerializer.Deserialize<KingdeeResult>(resultString);
|
||||
if (result?.Result?.ResponseStatus?.IsSuccess != true)
|
||||
{
|
||||
var responseStatus = result?.Result?.ResponseStatus;
|
||||
Exception error = new K3CloudException("附件下载出错", responseStatus);
|
||||
throw error;
|
||||
}
|
||||
return result?.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
64
Gatedge.K3Cloud.Utils/Model/K3Request/Audit.cs
Normal file
64
Gatedge.K3Cloud.Utils/Model/K3Request/Audit.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据审核
|
||||
/// </summary>
|
||||
public class Audit
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据内码
|
||||
/// </summary>
|
||||
public string? Ids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public int CreateOrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public string[]? Numbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用网控,布尔类型,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? NetworkCtrl { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 交互标志集合,字符串类型,分号分隔,格式:"flag1;flag2;..."(非必录) 例如(允许负库存标识:STK_InvCheckResult)
|
||||
/// </summary>
|
||||
public string? InterationFlags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许忽略交互,布尔类型,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? IgnoreInterationFlag { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否检验单据关联运行中的工作流实例,布尔类型,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? IsVerifyProcInst { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否应用单据参数设置分批处理,默认false
|
||||
/// </summary>
|
||||
public bool? UseBatControlTimes { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 重写
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
46
Gatedge.K3Cloud.Utils/Model/K3Request/CancelAssign.cs
Normal file
46
Gatedge.K3Cloud.Utils/Model/K3Request/CancelAssign.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
public class CancelAssign
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据内码
|
||||
/// </summary>
|
||||
public string? Ids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public int CreateOrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public string[]? Numbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用网控,布尔类型,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? NetworkCtrl { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取参数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Gatedge.K3Cloud.Utils/Model/K3Request/Delete.cs
Normal file
42
Gatedge.K3Cloud.Utils/Model/K3Request/Delete.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据删除参数类
|
||||
/// </summary>
|
||||
public class Delete
|
||||
{ /// <summary>
|
||||
/// 单据内码
|
||||
/// </summary>
|
||||
public string? Ids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public long CreateOrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public string? Numbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用网控
|
||||
/// </summary>
|
||||
public bool NetworkCtrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
32
Gatedge.K3Cloud.Utils/Model/K3Request/FileParam.cs
Normal file
32
Gatedge.K3Cloud.Utils/Model/K3Request/FileParam.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件系统参数
|
||||
/// </summary>
|
||||
public class FileParam
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件Id
|
||||
/// </summary>
|
||||
public string FileId { get; set; }
|
||||
/// <summary>
|
||||
/// 开始索引
|
||||
/// </summary>
|
||||
public long StartIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
38
Gatedge.K3Cloud.Utils/Model/K3Request/LoginInfo.cs
Normal file
38
Gatedge.K3Cloud.Utils/Model/K3Request/LoginInfo.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录信息参数类
|
||||
/// </summary>
|
||||
public class LoginInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户名
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密码
|
||||
/// </summary>
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 语言Id
|
||||
/// </summary>
|
||||
public int LCId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 金蝶URL
|
||||
/// </summary>
|
||||
public string ServerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据中心DBID
|
||||
/// </summary>
|
||||
public string DBID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织编码
|
||||
/// </summary>
|
||||
public string OrgNum { get; set; }
|
||||
}
|
||||
}
|
||||
87
Gatedge.K3Cloud.Utils/Model/K3Request/PatchSave.cs
Normal file
87
Gatedge.K3Cloud.Utils/Model/K3Request/PatchSave.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 批量保存
|
||||
/// </summary>
|
||||
public class PatchSave<T>
|
||||
{ /// <summary>
|
||||
/// 是否用编码搜索基础资料,布尔类型,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? NumberSearch { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否验证数据合法性标志,布尔类型,默认true(非必录)注(设为false时不对数据合法性进行校验)
|
||||
/// </summary>
|
||||
public bool? ValidateFlag { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否删除已存在的分录,布尔类型,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? IsDeleteEntry { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否批量填充分录,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? IsEntryBatchFill { get; set; } = true;
|
||||
/// <summary>
|
||||
/// 需要更新的字段,数组类型,格式:[key1,key2,...] (非必录)注(更新字段时Model数据包中必须设置内码,若更新单据体字段还需设置分录内码)
|
||||
/// </summary>
|
||||
public string? NeedUpDateFields { get; set; }
|
||||
/// <summary>
|
||||
/// 需返回结果的字段集合,数组类型,格式:[key,entitykey.key,...](非必录) 注(返回单据体字段格式:entitykey.key)
|
||||
/// </summary>
|
||||
public string NeedReturnFields { get; set; }
|
||||
/// <summary>
|
||||
/// 表单所在的子系统内码,字符串类型(非必录)
|
||||
/// </summary>
|
||||
public string? SubSystemId { get; set; }
|
||||
/// <summary>
|
||||
/// 交互标志集合,字符串类型,分号分隔,格式:"flag1;flag2;..."(非必录) 例如(允许负库存标识:STK_InvCheckResult)
|
||||
/// </summary>
|
||||
public string? InterationFlags { get; set; }
|
||||
/// <summary>
|
||||
/// 服务端开启的线程数,整型(非必录) 注(数据包数应大于此值,否则无效)
|
||||
/// </summary>
|
||||
public int? BatchCount { get; set; }
|
||||
/// <summary>
|
||||
/// 是否验证所有的基础资料有效性,布尔类,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? IsVerifyBaseDataField { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否自动调整JSON字段顺序,布尔类型,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? IsAutoAdjustField { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 是否允许忽略交互,布尔类型,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? IgnoreInterationFlag { get; set; } = true;
|
||||
/// <summary>
|
||||
/// 是否控制精度,为true时对金额、单价和数量字段进行精度验证,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? IsControlPrecision { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 校验Json数据包是否重复传入,一旦重复传入,接口调用失败,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? ValidateRepeatJson { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 表单数据包,数组类型(必录)
|
||||
/// </summary>
|
||||
public IEnumerable<T> Model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
69
Gatedge.K3Cloud.Utils/Model/K3Request/Push.cs
Normal file
69
Gatedge.K3Cloud.Utils/Model/K3Request/Push.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 下推参数
|
||||
/// </summary>
|
||||
public class Push
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据内码
|
||||
/// </summary>
|
||||
public string? Ids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public long? TargetOrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public string? Numbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分录行内码
|
||||
/// </summary>
|
||||
public string? EntryIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用默认转换规则
|
||||
/// </summary>
|
||||
public bool IsEnableDefaultRule { get; set; }
|
||||
/// <summary>
|
||||
/// 保存失败自动暂存单据
|
||||
/// </summary>
|
||||
public bool IsDraftWhenSaveFail { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 转换规则ID
|
||||
/// </summary>
|
||||
public string? RuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 目标单据ID
|
||||
/// </summary>
|
||||
public string? TargetFormId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自定义参数
|
||||
/// </summary>
|
||||
public Dictionary<string, object>? CustomParams { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写ToString
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
88
Gatedge.K3Cloud.Utils/Model/K3Request/Query.cs
Normal file
88
Gatedge.K3Cloud.Utils/Model/K3Request/Query.cs
Normal file
@@ -0,0 +1,88 @@
|
||||
using Gatedge.K3Cloud.Utils.Common;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 金蝶云星空单据列表查询参数类
|
||||
/// </summary>
|
||||
public class Query
|
||||
{
|
||||
/// <summary>
|
||||
/// 业务对象表单Id(必录)
|
||||
/// </summary>
|
||||
public string FormId { get; set; }
|
||||
/// <summary>
|
||||
/// 需查询的字段key集合
|
||||
/// </summary>
|
||||
public string? FieldKeys { get; set; }
|
||||
/// <summary>
|
||||
/// 过滤条件
|
||||
/// </summary>
|
||||
public List<FilterItem>? FilterString { get; set; }
|
||||
/// <summary>
|
||||
/// 排序字段
|
||||
/// </summary>
|
||||
public string? OrderString { get; set; }
|
||||
/// <summary>
|
||||
/// 返回总行数
|
||||
/// </summary>
|
||||
public int? TopRowCount { get; set; }
|
||||
/// <summary>
|
||||
/// 开始行索引
|
||||
/// </summary>
|
||||
public int? StartRow { get; set; }
|
||||
/// <summary>
|
||||
/// 最大行数
|
||||
/// </summary>
|
||||
public int? Limit { get; set; }
|
||||
/// <summary>
|
||||
/// 表单所在的子系统内码
|
||||
/// </summary>
|
||||
public string? SubSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取查询信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string GetInfo()
|
||||
{
|
||||
var filterString = JsonConvert.SerializeObject(FilterString);
|
||||
var info = string.Format(@"
|
||||
业务对象表单Id(必录):{0}
|
||||
需查询的字段key集合:{1}
|
||||
过滤条件:{2}
|
||||
排序字段:{3}
|
||||
返回总行数:{4}
|
||||
开始行索引:{5}
|
||||
最大行数:{6}
|
||||
表单所在的子系统内码:{7}
|
||||
",
|
||||
FormId,
|
||||
FieldKeys,
|
||||
filterString,
|
||||
OrderString,
|
||||
TopRowCount,
|
||||
StartRow,
|
||||
Limit,
|
||||
SubSystemId
|
||||
);
|
||||
return info;
|
||||
}
|
||||
}
|
||||
}
|
||||
49
Gatedge.K3Cloud.Utils/Model/K3Request/Save.cs
Normal file
49
Gatedge.K3Cloud.Utils/Model/K3Request/Save.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据保存
|
||||
/// </summary>
|
||||
public class Save<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 更新字段
|
||||
/// </summary>
|
||||
public string? NeedUpDateFields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回字段
|
||||
/// </summary>
|
||||
public string? NeedReturnFields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 清空分录
|
||||
/// </summary>
|
||||
public bool IsDeleteEntry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 自动提交审核
|
||||
/// </summary>
|
||||
public bool IsAutoSubmitAndAudit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单数据包,JSON类型(必录)
|
||||
/// </summary>
|
||||
public T Model { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
48
Gatedge.K3Cloud.Utils/Model/K3Request/Submit.cs
Normal file
48
Gatedge.K3Cloud.Utils/Model/K3Request/Submit.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 提交参数
|
||||
/// </summary>
|
||||
public class Submit
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据内码
|
||||
/// </summary>
|
||||
public string? Ids { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public int CreateOrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public string[]? Numbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用网控,布尔类型,默认false(非必录)
|
||||
/// </summary>
|
||||
public bool? NetworkCtrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许忽略交互,布尔类型,默认true(非必录)
|
||||
/// </summary>
|
||||
public bool? IgnoreInterationFlag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取参数
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
45
Gatedge.K3Cloud.Utils/Model/K3Request/View.cs
Normal file
45
Gatedge.K3Cloud.Utils/Model/K3Request/View.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Request
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据查询条件类
|
||||
/// </summary>
|
||||
public class View
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据内码
|
||||
/// </summary>
|
||||
public string? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public long? CreateOrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public string? Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据体是否按序号排序
|
||||
/// </summary>
|
||||
public bool IsSortBySeq { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 重写ToString方法
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
var settings = new JsonSerializerSettings
|
||||
{
|
||||
NullValueHandling = NullValueHandling.Ignore
|
||||
};
|
||||
return JsonConvert.SerializeObject(this, settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
15
Gatedge.K3Cloud.Utils/Model/K3Result/KingdeeResult.cs
Normal file
15
Gatedge.K3Cloud.Utils/Model/K3Result/KingdeeResult.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Gatedge.K3Cloud.Utils.Model.K3Result.Model;
|
||||
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Result
|
||||
{
|
||||
/// <summary>
|
||||
/// 金蝶云星空返回类
|
||||
/// </summary>
|
||||
public class KingdeeResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回对象
|
||||
/// </summary>
|
||||
public K3CloudResult? Result { get; set; }
|
||||
}
|
||||
}
|
||||
23
Gatedge.K3Cloud.Utils/Model/K3Result/ListResult.cs
Normal file
23
Gatedge.K3Cloud.Utils/Model/K3Result/ListResult.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Result
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表查询输出类
|
||||
/// </summary>
|
||||
public class ListResult
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
public List<Dictionary<string, object>> List { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="list"></param>
|
||||
public ListResult(List<Dictionary<string, object>> list)
|
||||
{
|
||||
this.List = list;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Result.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 响应对象
|
||||
/// </summary>
|
||||
public class K3CloudResponseStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 错误代码
|
||||
/// </summary>
|
||||
public int ErrorCode { get; set; }
|
||||
/// <summary>
|
||||
/// 是否成功
|
||||
/// </summary>
|
||||
public bool IsSuccess { get; set; }
|
||||
/// <summary>
|
||||
/// 错误信息列表
|
||||
/// </summary>
|
||||
public List<K3CloudResultInfo>? Errors { get; set; }
|
||||
/// <summary>
|
||||
/// 成功实体
|
||||
/// </summary>
|
||||
public List<K3CloudSuccessEntity>? SuccessEntitys { get; set; }
|
||||
/// <summary>
|
||||
/// 成功消息
|
||||
/// </summary>
|
||||
public List<K3CloudResultInfo>? SuccessMessages { get; set; }
|
||||
/// <summary>
|
||||
/// 消息代码
|
||||
/// </summary>
|
||||
public int MsgCode { get; set; }
|
||||
}
|
||||
}
|
||||
44
Gatedge.K3Cloud.Utils/Model/K3Result/Model/K3CloudResult.cs
Normal file
44
Gatedge.K3Cloud.Utils/Model/K3Result/Model/K3CloudResult.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Result.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回类
|
||||
/// </summary>
|
||||
public class K3CloudResult
|
||||
{
|
||||
/// <summary>
|
||||
/// 响应对象
|
||||
/// </summary>
|
||||
public K3CloudResponseStatus? ResponseStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 转换响应对象
|
||||
/// </summary>
|
||||
public K3CloudResponseStatus? ConvertResponseStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回结果,用于查看单据
|
||||
/// </summary>
|
||||
public object? Result { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始索引
|
||||
/// </summary>
|
||||
public long? StartIndex { get; set; }
|
||||
/// <summary>
|
||||
/// 是否最后
|
||||
/// </summary>
|
||||
public bool? IsLast { get; set; }
|
||||
/// <summary>
|
||||
/// 文件大小
|
||||
/// </summary>
|
||||
public long? FileSize { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名称
|
||||
/// </summary>
|
||||
public string? FileName { get; set; }
|
||||
/// <summary>
|
||||
/// 文件内容(Base64)
|
||||
/// </summary>
|
||||
public string? FilePart { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Result.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 金蝶云星空查看错误信息类
|
||||
/// </summary>
|
||||
public class K3CloudResultInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 字段名称
|
||||
/// </summary>
|
||||
public string? FieldName { get; set; }
|
||||
/// <summary>
|
||||
/// 错误信息
|
||||
/// </summary>
|
||||
public string? Message { get; set; }
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
public int DIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Model.K3Result.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 成功实体
|
||||
/// </summary>
|
||||
public class K3CloudSuccessEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据Id
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 单据编号
|
||||
/// </summary>
|
||||
public string Number { get; set; }
|
||||
/// <summary>
|
||||
/// 实体索引
|
||||
/// </summary>
|
||||
public int DIndex { get; set; }
|
||||
/// <summary>
|
||||
/// 分录Id
|
||||
/// </summary>
|
||||
public object EntryIds { get; set; }
|
||||
}
|
||||
}
|
||||
41
Gatedge.K3Cloud.Utils/Option/K3CloudOption.cs
Normal file
41
Gatedge.K3Cloud.Utils/Option/K3CloudOption.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
namespace Gatedge.K3Cloud.Utils.Option
|
||||
{
|
||||
/// <summary>
|
||||
/// 金蝶配置帮助类
|
||||
/// </summary>
|
||||
public class K3CloudOption
|
||||
{
|
||||
/// <summary>
|
||||
/// DBID
|
||||
/// </summary>
|
||||
public string AcctID { get; set; }
|
||||
/// <summary>
|
||||
/// 应用ID
|
||||
/// </summary>
|
||||
public string AppID { get; set; }
|
||||
/// <summary>
|
||||
/// 应用密钥
|
||||
/// </summary>
|
||||
public string AppSec { get; set; }
|
||||
/// <summary>
|
||||
/// 服务器地址
|
||||
/// </summary>
|
||||
public string ServerUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 时间
|
||||
/// </summary>
|
||||
public int Timestamp { get; set; }
|
||||
/// <summary>
|
||||
/// 默认语言ID
|
||||
/// </summary>
|
||||
public int LCID { get; set; }
|
||||
/// <summary>
|
||||
/// 默认用户名称
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
/// <summary>
|
||||
/// 默认组织ID
|
||||
/// </summary>
|
||||
public string OrgNumber { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
||||
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Gatedge.K3Cloud.Utils")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Gatedge.K3Cloud.Utils")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Gatedge.K3Cloud.Utils")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// 由 MSBuild WriteCodeFragment 类生成。
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
165ea657890767af593db8502b07268a6eb443998ec6ccaed530b9b98ffa5127
|
||||
@@ -0,0 +1,15 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net6.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Gatedge.K3Cloud.Utils
|
||||
build_property.ProjectDir = D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 6.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
3270acc3fb76962103a967574cd19f6ece0700a9a54f63abf421e87e5aaff3e2
|
||||
@@ -0,0 +1,14 @@
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\bin\Debug\net6.0\Gatedge.K3Cloud.Utils.deps.json
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\bin\Debug\net6.0\Gatedge.K3Cloud.Utils.dll
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\bin\Debug\net6.0\Gatedge.K3Cloud.Utils.pdb
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\bin\Debug\net6.0\Kingdee.CDP.WebApi.SDK.dll
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.csproj.AssemblyReference.cache
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.GeneratedMSBuildEditorConfig.editorconfig
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.AssemblyInfoInputs.cache
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.AssemblyInfo.cs
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.csproj.CoreCompileInputs.cache
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge..A76F8AED.Up2Date
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.dll
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\refint\Gatedge.K3Cloud.Utils.dll
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\Gatedge.K3Cloud.Utils.pdb
|
||||
D:\格致金蝶\澳门新东方置地\Gatedge.NewOrientLandMark.BOS\Gatedge.K3Cloud.Utils\obj\Debug\net6.0\ref\Gatedge.K3Cloud.Utils.dll
|
||||
BIN
Gatedge.K3Cloud.Utils/obj/Debug/net6.0/Gatedge.K3Cloud.Utils.dll
Normal file
BIN
Gatedge.K3Cloud.Utils/obj/Debug/net6.0/Gatedge.K3Cloud.Utils.dll
Normal file
Binary file not shown.
BIN
Gatedge.K3Cloud.Utils/obj/Debug/net6.0/Gatedge.K3Cloud.Utils.pdb
Normal file
BIN
Gatedge.K3Cloud.Utils/obj/Debug/net6.0/Gatedge.K3Cloud.Utils.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj",
|
||||
"projectName": "Gatedge.K3Cloud.Utils",
|
||||
"projectPath": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj",
|
||||
"packagesPath": "C:\\Users\\海\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"D:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
|
||||
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\海\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "all"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"dependencies": {
|
||||
"Newtonsoft.Json": {
|
||||
"target": "Package",
|
||||
"version": "[13.0.3, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[6.0.36, 6.0.36]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[6.0.36, 6.0.36]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App.Ref",
|
||||
"version": "[6.0.36, 6.0.36]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\海\.nuget\packages\;D:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages;C:\Program Files (x86)\Microsoft\Xamarin\NuGet\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.1</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\海\.nuget\packages\" />
|
||||
<SourceRoot Include="D:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft\Xamarin\NuGet\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
149
Gatedge.K3Cloud.Utils/obj/project.assets.json
Normal file
149
Gatedge.K3Cloud.Utils/obj/project.assets.json
Normal file
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net6.0": {
|
||||
"Newtonsoft.Json/13.0.3": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net6.0/Newtonsoft.Json.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Newtonsoft.Json.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Newtonsoft.Json/13.0.3": {
|
||||
"sha512": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
|
||||
"type": "package",
|
||||
"path": "newtonsoft.json/13.0.3",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"LICENSE.md",
|
||||
"README.md",
|
||||
"lib/net20/Newtonsoft.Json.dll",
|
||||
"lib/net20/Newtonsoft.Json.xml",
|
||||
"lib/net35/Newtonsoft.Json.dll",
|
||||
"lib/net35/Newtonsoft.Json.xml",
|
||||
"lib/net40/Newtonsoft.Json.dll",
|
||||
"lib/net40/Newtonsoft.Json.xml",
|
||||
"lib/net45/Newtonsoft.Json.dll",
|
||||
"lib/net45/Newtonsoft.Json.xml",
|
||||
"lib/net6.0/Newtonsoft.Json.dll",
|
||||
"lib/net6.0/Newtonsoft.Json.xml",
|
||||
"lib/netstandard1.0/Newtonsoft.Json.dll",
|
||||
"lib/netstandard1.0/Newtonsoft.Json.xml",
|
||||
"lib/netstandard1.3/Newtonsoft.Json.dll",
|
||||
"lib/netstandard1.3/Newtonsoft.Json.xml",
|
||||
"lib/netstandard2.0/Newtonsoft.Json.dll",
|
||||
"lib/netstandard2.0/Newtonsoft.Json.xml",
|
||||
"newtonsoft.json.13.0.3.nupkg.sha512",
|
||||
"newtonsoft.json.nuspec",
|
||||
"packageIcon.png"
|
||||
]
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net6.0": [
|
||||
"Newtonsoft.Json >= 13.0.3"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\海\\.nuget\\packages\\": {},
|
||||
"D:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {},
|
||||
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj",
|
||||
"projectName": "Gatedge.K3Cloud.Utils",
|
||||
"projectPath": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj",
|
||||
"packagesPath": "C:\\Users\\海\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"fallbackFolders": [
|
||||
"D:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages",
|
||||
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\"
|
||||
],
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\海\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Xamarin.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net6.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "all"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net6.0": {
|
||||
"targetAlias": "net6.0",
|
||||
"dependencies": {
|
||||
"Newtonsoft.Json": {
|
||||
"target": "Package",
|
||||
"version": "[13.0.3, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[6.0.36, 6.0.36]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.NETCore.App.Ref",
|
||||
"version": "[6.0.36, 6.0.36]"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App.Ref",
|
||||
"version": "[6.0.36, 6.0.36]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100\\RuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Gatedge.K3Cloud.Utils/obj/project.nuget.cache
Normal file
13
Gatedge.K3Cloud.Utils/obj/project.nuget.cache
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "Zsi42lfljO8=",
|
||||
"success": true,
|
||||
"projectFilePath": "D:\\格致金蝶\\澳门新东方置地\\Gatedge.NewOrientLandMark.BOS\\Gatedge.K3Cloud.Utils\\Gatedge.K3Cloud.Utils.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\海\\.nuget\\packages\\newtonsoft.json\\13.0.3\\newtonsoft.json.13.0.3.nupkg.sha512",
|
||||
"C:\\Users\\海\\.nuget\\packages\\microsoft.windowsdesktop.app.ref\\6.0.36\\microsoft.windowsdesktop.app.ref.6.0.36.nupkg.sha512",
|
||||
"C:\\Users\\海\\.nuget\\packages\\microsoft.netcore.app.ref\\6.0.36\\microsoft.netcore.app.ref.6.0.36.nupkg.sha512",
|
||||
"C:\\Users\\海\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\6.0.36\\microsoft.aspnetcore.app.ref.6.0.36.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
Reference in New Issue
Block a user