提交 99065f93 authored 作者: 李德成's avatar 李德成

西部人力插件

上级 ef55ce0d
......@@ -15,6 +15,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LQKJ.K3.PeiXunSystem.WebApi
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LQKJ.K3.FileSystem.WebApi", "LQKJ.K3.FileSystem.WebApi\LQKJ.K3.FileSystem.WebApi.csproj", "{5ED42E4E-D7F6-4B6A-B791-272564793E3A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LQKJ.K3.FileSystem.BlacklistTimingPlugIN", "LQKJ.K3.FileSystem.BlacklistTimingPlugIN\LQKJ.K3.FileSystem.BlacklistTimingPlugIN.csproj", "{4DE84980-9355-4DB2-A30F-CDD2A0385077}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LQKJ.K3.WebsiteAndSignUpSystem.WebApi", "LQKJ.K3.WebsiteAndSignUpSystem.WebApi\LQKJ.K3.WebsiteAndSignUpSystem.WebApi.csproj", "{B377E997-1F5D-4567-951D-49936773E93B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -45,6 +49,14 @@ Global
{5ED42E4E-D7F6-4B6A-B791-272564793E3A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5ED42E4E-D7F6-4B6A-B791-272564793E3A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5ED42E4E-D7F6-4B6A-B791-272564793E3A}.Release|Any CPU.Build.0 = Release|Any CPU
{4DE84980-9355-4DB2-A30F-CDD2A0385077}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4DE84980-9355-4DB2-A30F-CDD2A0385077}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4DE84980-9355-4DB2-A30F-CDD2A0385077}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4DE84980-9355-4DB2-A30F-CDD2A0385077}.Release|Any CPU.Build.0 = Release|Any CPU
{B377E997-1F5D-4567-951D-49936773E93B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B377E997-1F5D-4567-951D-49936773E93B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B377E997-1F5D-4567-951D-49936773E93B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B377E997-1F5D-4567-951D-49936773E93B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using Kingdee.BOS.Contracts;
using Kingdee.BOS;
using Kingdee.BOS.Core;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using System.Data;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using Kingdee.BOS.WebApi.Client;
namespace LQKJ.K3.FileSystem.BlacklistTimingPlugIN
{
public class BlacklistTimingPlugIN : IScheduleService
{
public void Run(Context ctx, Schedule schedule)
{
string dbid = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["Dbid"].Value;
string username = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["username"].Value;
string password = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["password"].Value;
string url = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["url"].Value;
K3CloudApiClient Client = new K3CloudApiClient(url);
var loginResult = Client.ValidateLogin(dbid, username, password, 2052);
var resultType = JObject.Parse(loginResult)["LoginResultType"].Value<int>();
if (resultType != 1)
{
throw new Exception("登陆失败");
}
DateTime Date;
//Date = new DateTime(2023, 09, 12);
Date = DateTime.Now;
string sql = $"/*dialect*/ select DISTINCT FTRANSFERREDBY,FIDCARD from T_DA_ArchiveTransfer where LEFT(FDATETIME1,10)<='{Date.AddDays(-1).ToString("yyyy-MM-dd")}'and LEFT(FDATETIME1,10)>='{Date.AddDays(-8).ToString("yyyy-MM-dd")}' and FHANDLESTATES='N'and FForbidStatus='A'" ;
//查询逾期今日所有逾期的数量预约
DataTable TodayLateData = DBServiceHelper.ExecuteDataSet(ctx, sql).Tables[0];
if (TodayLateData.Rows.Count <= 0)
return;
foreach (DataRow item in TodayLateData.Rows)
{
var FTRANSFERREDBY = item["FTRANSFERREDBY"].ToString();
var FIDCARD = item["FIDCARD"].ToString();
var UserId = ctx.UserId;
string HmdYzSql = $"exec BlacklistVerification @FIDCARD='{FIDCARD}'";
DataTable HmdYzData = DBServiceHelper.ExecuteDataSet(ctx, HmdYzSql).Tables[0];
if(HmdYzData!=null&& HmdYzData.Rows!=null&& HmdYzData.Rows.Count > 0)
{
if (HmdYzData.Rows[0][0].ToString() == "2")
{
//string json = $@"{{ ""NeedUpDateFields"": [],""NeedReturnFields"": [],""IsDeleteEntry"": ""true"",""SubSystemId"": """",""IsVerifyBaseDataField"": ""false"",""IsEntryBatchFill"": ""true"", ""ValidateFlag"": ""true"",""NumberSearch"": ""true"",""IsAutoAdjustField"": ""false"",""InterationFlags"": """",""IgnoreInterationFlag"": """",""IsControlPrecision"": ""false"",""ValidateRepeatJson"": ""false"",""Model"": {{""FBeOverdue"": {YuQiCountSum},""FRemarks"": """",""FCreatorId"": {{ ""FUserID"": ""{UserId.ToString()}""}},""FCreateDate"": ""{DateTime.Now.ToString("yyyy-MM-dd")}"",""FModifierId"": {{""FUserID"": """"}},""FModifyDate"": """",""FForbidderId"": {{""FUserID"": """"}},""FForbidDate"": """",""FNAME"": ""{FTRANSFERREDBY}"",""F_LQKJ_Combo"": ""2"",""F_LQKJ_Integer"": 0,""F_LQKJ_Text"": ""{FIDCARD}""}}}}";
string json = $@"{{ ""Model"": {{""FBeOverdue"": {HmdYzData.Rows[0][1].ToString()},""FRemarks"": """",""FCreatorId"": {{ ""FUserID"": ""{UserId.ToString()}""}},""FCreateDate"": ""{DateTime.Now.ToString("yyyy-MM-dd")}"",""FModifierId"": {{""FUserID"": """"}},""FModifyDate"": """",""FForbidderId"": {{""FUserID"": """"}},""FForbidDate"": """",""FNAME"": ""{FTRANSFERREDBY}"",""F_LQKJ_Combo"": ""2"",""F_LQKJ_Integer"": 0,""F_LQKJ_Text"": ""{FIDCARD}""}}}}";
var unAuditret = Client.Save("LQKJ_Blacklist", json.ToString());
//JObject jobject = JObject.Parse(JsonConvert.SerializeObject(unAuditret));
bool IsunAudiSuccess = (bool)JObject.Parse(unAuditret)["Result"]["ResponseStatus"]["IsSuccess"];
if (!IsunAudiSuccess)
{
continue;
}
}
}
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using Kingdee.BOS.Contracts;
using Kingdee.BOS;
using Kingdee.BOS.Core;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using System.Data;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using Kingdee.BOS.WebApi.Client;
namespace LQKJ.K3.FileSystem.BlacklistTimingPlugIN
{
/// <summary>
/// 定制结算清单
/// </summary>
class CustomSettlementTimingPlugIN: IScheduleService
{
public void Run(Context ctx, Schedule schedule)
{
string dbid = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["Dbid"].Value;
string username = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["username"].Value;
string password = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["password"].Value;
string url = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["url"].Value;
K3CloudApiClient Client = new K3CloudApiClient(url);
var loginResult = Client.ValidateLogin(dbid, username, password, 2052);
var resultType = JObject.Parse(loginResult)["LoginResultType"].Value<int>();
if (resultType != 1)
{
throw new Exception("登陆失败");
}
//所有查询街道
string sttJd = "select DISTINCT FSTREET from T_LQKJ_FilesManage WHERE FINVALIDATEDSTATUS='A'";
DataTable TodayLateData = DBServiceHelper.ExecuteDataSet(ctx, sttJd).Tables[0];
if (TodayLateData == null || TodayLateData.Rows.Count < 1)
{
return;
}
foreach (DataRow item in TodayLateData.Rows)
{
string selectstr = $"EXEC CustomSettlement @JD='{item[0].ToString()}'";
DataSet datas = DBServiceHelper.ExecuteDataSet(ctx, selectstr);
if (datas.Tables == null || datas.Tables.Count < 1)
continue;
//获取原有数
int YyCount = int.Parse(datas.Tables[0].Rows[0][0].ToString());
//计算原有费用
double Fy1 = YyCount * 150;
//获取新增人数
int XzCount = int.Parse(datas.Tables[1].Rows[0][0].ToString());
//计算总人数
int SumR = YyCount + XzCount;
//新增总月数
int SumYue = 0;
//获取每月人数统计
DataTable Dt01 = datas.Tables[2];
//统计每月新增月数
DataTable Dt02 = datas.Tables[3];
DateTime EndDate = new DateTime(2023, 11, 1);
DateTime StartDate = EndDate.AddMonths(-12);
StringBuilder stringBuilder = new StringBuilder();
string header = "{\"IsDeleteEntry\": \"false\",\"Model\": {\"FEntity\": [";
stringBuilder.Append(header);
string context = "";
for (; StartDate < EndDate; StartDate = StartDate.AddMonths(1))
{
var query = from row in Dt01.AsEnumerable()
where row.Field<string>("Date").Contains(StartDate.ToString("yyyy-MM"))
select row;
var query2 = from row in Dt02.AsEnumerable()
where row.Field<string>("Date").Contains(StartDate.ToString("yyyy-MM"))
select row;
int YRCount = 0;//月新增人数
int YueyCount = 0;//月新增月数
if (query.Any())
{
YRCount = query.FirstOrDefault().Field<int>("Count");
}
if (query2.Any())
{
YueyCount = query2.FirstOrDefault().Field<int>("YueCount");
SumYue += YueyCount;
}
context = "{\"FDateAcceptance\": \"" + StartDate.ToString("yyyy-MM-dd") + "\",\"FMonthlyAdditions\": " + YRCount + ",\"FMonthlyIncrease\": " + YueyCount + ",\"FSummaryExpenses\": " + (YueyCount * 12.5) + "},";
stringBuilder.Append(context);
}
//新增总费用
double XzSumFy = SumYue * 12.5;
//总费用
double ZFeiYon = Fy1 + XzSumFy;
string last = "],\"FStreet\":\"" + item[0] + "\",\"FOriginalPeople\":" + YyCount + ",\"FOriginalCost\":" + Fy1 + ",\"FDangAnSum \":" + (YyCount + XzCount) + ",\"FTotalPeople\":" + ZFeiYon + ",\"FNumberAdded\":" + XzCount + ",\"FNumberMonthsAdded\":" + SumYue + ",\"FNewTotalExpenses\":" + XzSumFy + "}}";
stringBuilder.Append(last);
var unAuditret = Client.Save("LQKJ_T_SettlementForm", stringBuilder.ToString());
//JObject jobject = JObject.Parse(JsonConvert.SerializeObject(unAuditret));
bool IsunAudiSuccess = (bool)JObject.Parse(unAuditret)["Result"]["ResponseStatus"]["IsSuccess"];
if (!IsunAudiSuccess)
{
continue;
}
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4DE84980-9355-4DB2-A30F-CDD2A0385077}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>LQKJ.K3.FileSystem.BlacklistTimingPlugIN</RootNamespace>
<AssemblyName>LQKJ.K3.FileSystem.BlacklistTimingPlugIN</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>D:\西部培训\website\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Kingdee.BOS, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.App, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.App.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.Contracts, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.Contracts.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.Core, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.Core.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.ServiceHelper, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.ServiceHelper.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.WebApi.Client, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.WebApi.Client.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.WebApi.FormService, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.WebApi.FormService.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BlacklistTimingPlugIN.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("LQKJ.K3.FileSystem.BlacklistTimingPlugIN")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LQKJ.K3.FileSystem.BlacklistTimingPlugIN")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("4de84980-9355-4db2-a30f-cdd2a0385077")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
......@@ -67,6 +67,7 @@
<HintPath>D:\西部培训\WebSite\bin\NPOI.OpenXmlFormats.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
......
6327782363b420b0b6d059b6430d64c6ad2b1882
29c7d708b8b4574ed03334625742432b951f6da8
......@@ -5,3 +5,13 @@ C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.FileSystem
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.CopyComplete
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.dll
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.pdb
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.CopyComplete
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.dll
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.pdb
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.csproj.CopyComplete
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.dll
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.FileSystem.WebApi\obj\Debug\LQKJ.K3.FileSystem.WebApi.pdb
......@@ -5,3 +5,8 @@ C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.Busine
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.csproj.CopyComplete
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.dll
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.pdb
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.csproj.CopyComplete
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.dll
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.MES.BusinessPlugIn\obj\Debug\LQKJ.K3.MES.BusinessPlugIn.pdb
2711b496b56c31fb16c4ca8f3a319de5d68af525
1aa97981a2c7facf69c3000ea10ba73157f11570
......@@ -5,3 +5,8 @@ C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.Servic
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.dll
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.pdb
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.csproj.CopyComplete
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.dll
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.MES.ServicePlugIn\obj\Debug\LQKJ.K3.MES.ServicePlugIn.pdb
......@@ -27,5 +27,6 @@ namespace LQKJ.K3.PeiXunSystem.WebApi.Models
public string fisFillCohabItant { get; set; }//是否需填同住人
public string classNumber { get; set; }//班级编码
public string itemNumber { get; set; }
public string require { get; set; }
}
}
......@@ -12,5 +12,6 @@ namespace LQKJ.K3.PeiXunSystem.WebApi.Models
public int lack { get; set; } = 0;//缺勤
public int leave { get; set; } = 0;//请假
public int repair { get; set; } = 0;//补签
}
}
......@@ -6,3 +6,13 @@ C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.PeiXunSyst
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.CopyComplete
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.dll
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.pdb
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.CopyComplete
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.dll
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.pdb
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.csproj.CopyComplete
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.dll
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.K3.PeiXunSystem.WebApi\obj\Debug\LQKJ.K3.PeiXunSystem.WebApi.pdb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LQKJ.K3.WebsiteAndSignUpSystem.WebApi
{
public class ApiResult
{
public int code { get; set; }
public string msg { get; set; }
public dynamic data { get; set; }
public bool success { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LQKJ.K3.WebsiteAndSignUpSystem.WebApi
{
public static class ApiResultHelper
{
//成功返回结果
public static ApiResult Success(dynamic data,string msg)
{
ApiResult result = new ApiResult
{
code = 200,
data = data,
msg = msg,
success = true
};
return result;
}
//失败返回结果
public static ApiResult Error(string msg)
{
ApiResult result = new ApiResult
{
code = 500,
msg = msg,
success = false
};
return result;
}
public static ApiResult Error400(string msg)
{
ApiResult result = new ApiResult
{
code = 400,
msg = msg,
success = false
};
return result;
}
public static ApiResult Error402(string msg)
{
ApiResult result = new ApiResult
{
code = 402,
msg = msg,
success = false
};
return result;
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B377E997-1F5D-4567-951D-49936773E93B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>LQKJ.K3.WebsiteAndSignUpSystem.WebApi</RootNamespace>
<AssemblyName>LQKJ.K3.WebsiteAndSignUpSystem.WebApi</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>D:\西部培训\website\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Aspose.Words, Version=18.7.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Aspose.Words.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS, Version=8.1.620.16, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.DataEntity">
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.DataEntity.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.ServiceFacade.KDServiceFx">
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.ServiceFacade.KDServiceFx.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.ServiceHelper">
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.ServiceHelper.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.WebApi.Client">
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.WebApi.Client.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.WebApi.FormService">
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.WebApi.FormService.dll</HintPath>
</Reference>
<Reference Include="Kingdee.BOS.WebApi.ServicesStub">
<HintPath>D:\西部培训\website\bin\Kingdee.BOS.WebApi.ServicesStub.dll</HintPath>
</Reference>
<Reference Include="LQKJ.WebApi.Stub">
<HintPath>D:\西部培训\website\bin\LQKJ.WebApi.Stub.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Build.Utilities.v4.0" />
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\西部培训\website\bin\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="NPOI">
<HintPath>D:\西部培训\website\bin\NPOI.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net.Http">
<HintPath>D:\西部培训\website\bin\System.Net.Http.dll</HintPath>
</Reference>
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ApiResult.cs" />
<Compile Include="ApiResultHelper.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Token.cs" />
<Compile Include="Utility.cs" />
<Compile Include="WebApiService.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("LQKJ.K3.WebsiteAndSignUpSystem.WebApi")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LQKJ.K3.WebsiteAndSignUpSystem.WebApi")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("b377e997-1f5d-4567-951d-49936773e93b")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LQKJ.K3.WebsiteAndSignUpSystem.WebApi
{
public class Token
{
public Token() { }
public Token(string fID, string fNumber, string fUserPhone, DateTime datetime)
{
FID = fID;
FNumber = fNumber;
FUserPhone = fUserPhone;
this.datetime = datetime;
}
public string FID { get; set; }
public string FNumber { get; set; }
public string FUserPhone { get; set; }
public DateTime datetime { get; set; }
}
}
using LQKJ.WebApi.Stub;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace LQKJ.K3.WebsiteAndSignUpSystem.WebApi
{
public class Utility
{
//token过期时间(分)
private static int OverdueSum=120;
public static string CreateToken(string FID,string FNumber,string FUserPhone)
{
string Str = "LQKJ"+","+FID + "," + FNumber + ","+ FUserPhone+"," + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
return Encrypt(Str);
}
public static ApiResult DecryptToken(string TokenStr)
{
ApiResult apiResult = new ApiResult();
try
{
if (string.IsNullOrWhiteSpace(TokenStr))
{
apiResult.code = 501; ;//Token错误
apiResult.msg = "未登陆,请登陆后操作";
}
string TokenDec = Decrypt(TokenStr);
if (TokenDec.Substring(0, 4) != "LQKJ")
{
apiResult.code = 501; ;//Token错误
apiResult.msg = "身份验证失败,请重新登陆";
}
string[] Tokenstrs = TokenDec.Split(',');
if (Tokenstrs.Length != 5)
{
apiResult.code = 501;//Token错误
apiResult.msg = "身份验证失败,请重新登陆";
}
Token token = new Token { FID = Tokenstrs[1], FNumber = Tokenstrs[2], FUserPhone = Tokenstrs[3], datetime = DateTime.Parse(Tokenstrs[4]) };
if (token.datetime.AddMinutes(OverdueSum) < DateTime.Now)
{
apiResult.code = 501;
apiResult.msg = "登陆身份过期,请重新登陆";
}
else
{
apiResult.code = 200;
apiResult.msg = "成功";
apiResult.data = token;
}
}
catch (Exception)
{
apiResult.code = 501; ;//Token错误
apiResult.msg = "身份验证失败,请重新登陆";
}
return apiResult;
}
/// <summary>
/// 查
/// </summary>
/// <param name="TokenStr"></param>
/// <returns></returns>
public static SQLResult DecryptTokens(string TokenStr)
{
SQLResult sqlResult = new SQLResult();
try
{
if (string.IsNullOrWhiteSpace(TokenStr))
{
sqlResult.code = "501"; ;//Token错误
sqlResult.msg = "未登陆,请登陆后操作";
}
string TokenDec = Decrypt(TokenStr);
if (TokenDec.Substring(0, 4) != "LQKJ")
{
sqlResult.code = "501"; ;//Token错误
sqlResult.msg = "身份验证失败,请重新登陆";
}
string[] Tokenstrs = TokenDec.Split(',');
if (Tokenstrs.Length != 5)
{
sqlResult.code = "501";//Token错误
sqlResult.msg = "身份验证失败,请重新登陆";
}
Token token = new Token { FID = Tokenstrs[1], FNumber = Tokenstrs[2], FUserPhone = Tokenstrs[3], datetime = DateTime.Parse(Tokenstrs[4]) };
if (token.datetime.AddMinutes(OverdueSum) < DateTime.Now)
{
sqlResult.code = "501";
sqlResult.msg = "登陆身份过期,请重新登陆";
}
else
{
sqlResult.code = "200";
sqlResult.msg = "成功";
sqlResult.data = token;
}
}
catch (Exception)
{
sqlResult.code = "500"; ;//Token错误
sqlResult.msg = "身份验证失败,请重新登陆";
}
return sqlResult;
}
// 常量16字节密钥(128位)
private static readonly byte[] ConstantKey = Encoding.UTF8.GetBytes("lqkj456789A10086");
// 常量16字节初始化向量(128位)
private static readonly byte[] ConstantIV = Encoding.UTF8.GetBytes("lqkj456789A10087");
public static string Encrypt(string plainText)
{
using (Aes aes = Aes.Create())
{
aes.Key = ConstantKey;
aes.IV = ConstantIV;
using (MemoryStream memoryStream = new MemoryStream())
{
using (CryptoStream cryptoStream = new CryptoStream(memoryStream, aes.CreateEncryptor(), CryptoStreamMode.Write))
{
byte[] plainBytes = Encoding.UTF8.GetBytes(plainText);
cryptoStream.Write(plainBytes, 0, plainBytes.Length);
cryptoStream.FlushFinalBlock();
return Convert.ToBase64String(memoryStream.ToArray());
}
}
}
}
public static string Decrypt(string encryptedText)
{
using (Aes aes = Aes.Create())
{
aes.Key = ConstantKey;
aes.IV = ConstantIV;
using (MemoryStream memoryStream = new MemoryStream())
{
using (CryptoStream cryptoStream = new CryptoStream(memoryStream, aes.CreateDecryptor(), CryptoStreamMode.Write))
{
byte[] encryptedBytes = Convert.FromBase64String(encryptedText);
cryptoStream.Write(encryptedBytes, 0, encryptedBytes.Length);
cryptoStream.FlushFinalBlock();
return Encoding.UTF8.GetString(memoryStream.ToArray());
}
}
}
}
}
}
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
......@@ -5,3 +5,8 @@ C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Core\o
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.dll
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.pdb
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.csproj.CopyComplete
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.dll
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Core\obj\Debug\LQKJ.WebApi.Core.pdb
......@@ -53,12 +53,13 @@ namespace LQKJ.WebApi.Stub
public string username = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["username"].Value;
public string password = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["password"].Value;
public string url = Kingdee.BOS.KDConfiguration.Current.CommonConfiguration.AppSettings.Settings["url"].Value;
public CustomWebApiService(KDServiceContext context)
: base(context)
{
//
}
//执行sql并返回查询结果 sql脚本
public SQLResult ExecutDataSet(string sql)
{
......@@ -193,6 +194,33 @@ namespace LQKJ.WebApi.Stub
}
return listPath;
}
public string[] GetFilename(string FileId)
{
string sql = $"select FFILENAME from T_BAS_FILESERVERFILEINFO where FFILEID = '{FileId}'";
DataTable dt = ExecuteDataTable(sql);
string[] strs = new string[2];
Context context = this.KDContext.Session.AppContext;
if (dt != null && dt.Rows.Count > 0)
{
if (context == null && !string.IsNullOrWhiteSpace(dbid))
{
if (context == null && !string.IsNullOrWhiteSpace(dbid))
{
context = Login();
}
}
strs[0] = dt.Rows[0][0].ToString();//文件名
strs[1] = string.Format("FileUpLoadServices/download.aspx?fileId={0}&token={1}", FileId, context.UserToken);//文件就算一样路径不可能一样
return strs;
}
else
{
strs[0] = "";
strs[1] = "";
return strs;
}
}
/// <summary>
/// 执行批量Sql语句
/// </summary>
......@@ -1015,9 +1043,42 @@ namespace LQKJ.WebApi.Stub
}
return imagePath;
}
/// <summary>
/// 上传单个文件
/// </summary>
/// <param name="listPath"></param>
/// <returns></returns>
public JObject FilePath(string Base64string, string FileName)
{
K3CloudApiClient Client = apiClient();
Context context = this.KDContext.Session.AppContext;
if (context == null && !string.IsNullOrWhiteSpace(dbid))
{
context = Login();
}
//string url = FileServerHelper.GetAppSiteOuterNetUrl(context, HttpContext.Current.Request);
var data = "{ \"FileName\": \""+FileName+"\",\"IsLast\": true,\"SendByte\": \"" + Base64string + "\"}";
var result = JObject.Parse(Client.UploadFile(data));
var Sueccess = result["Result"]["ResponseStatus"]["IsSuccess"];
JObject Json = new JObject();
if ((bool)Sueccess)
{
var File = result["Result"]["FileId"].ToString();//图片上传后的FileId
string fileUrl = string.Format("FileUpLoadServices/download.aspx?fileId={0}&token={1}", File, context.UserToken);//文件就算一样路径不可能一样
Json.Add("FileId", File);
Json.Add("Url", fileUrl);
return Json;
}
else
{
return null;
}
}
public string UserToken()
{
Context context = this.KDContext.Session.AppContext;
if (context == null && !string.IsNullOrWhiteSpace(dbid))
{
context = Login();
......
32b58aba298115417c6adef9c8bab78ae217cbfc
11df85b71fa0ce55dd54b813bd10058f07889763
......@@ -5,3 +5,13 @@ C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Stub\o
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.dll
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.pdb
C:\Users\zcb27\Desktop\WebApi\kingdeeIntegrationFlagship\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.CopyComplete
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.dll
C:\Users\Administrator\Desktop\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.pdb
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.csproj.CopyComplete
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.dll
C:\Users\Administrator\Desktop\培训+档案\danganOrRenli\Code\LQKJ.WebApi.Stub\obj\Debug\LQKJ.WebApi.Stub.pdb
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论