baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+1
@@ -0,0 +1 @@
|
||||
12
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
12
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
+30
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
在下例中,“SetAttributes”转换将更改
|
||||
“connectionString”的值,仅在“Match”定位器
|
||||
查找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
在下例中,“Replace”转换将替换
|
||||
web.config 文件的整个 <customErrors> 节。
|
||||
请注意,由于
|
||||
在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
+9683
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+4
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<repositories>
|
||||
<repository path="..\GuangFu.StringTracing\packages.config" />
|
||||
</repositories>
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
2026-05-14 14:38:48,492 [6] INFO LogHelper - 申请单号CCSQ202605110291构建的请求数据: {"ApprovalNumber":"CCSQ202605110291","Status":1,"EmployeeID":"GS3801","ExpiredTime":"2026-05-18T00:00:00","Remark":"22","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a056df86faab0e4189a1339"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"信息中心"}]}
|
||||
2026-05-14 14:38:48,761 [6] INFO LogHelper - 申请单号CCSQ202605110291携程接口响应: {"SetApprovalResult":{"Status":{"Success":false,"ErrorCode":10302103,"Message":"审批单产品信息不能为空"}}}
|
||||
2026-05-14 14:38:48,873 [6] INFO LogHelper - 申请单号CCSQ202605110291同步失败: 审批单产品信息不能为空,已更新OA表状态为4
|
||||
2026-05-14 14:39:15,737 [24] INFO LogHelper - 申请单号CCSQ202605110291构建的请求数据: {"ApprovalNumber":"CCSQ202605110291","Status":1,"EmployeeID":"GS3801","ExpiredTime":"2026-05-18T00:00:00","Remark":"22","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a056df86faab0e4189a1339"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"信息中心"}]}
|
||||
2026-05-14 14:39:19,342 [24] INFO LogHelper - 申请单号CCSQ202605110291携程接口响应: {"SetApprovalResult":{"Status":{"Success":false,"ErrorCode":10302103,"Message":"审批单产品信息不能为空"}}}
|
||||
2026-05-14 14:40:38,177 [24] INFO LogHelper - 申请单号CCSQ202605110291同步失败: 审批单产品信息不能为空,已更新OA表状态为4
|
||||
2026-05-14 16:03:36,845 [113] INFO LogHelper - 申请单号CCSQ202605110291构建的请求数据: {"ApprovalNumber":"CCSQ202605110291","Status":1,"EmployeeID":"GS3801","ExpiredTime":"2026-05-18T00:00:00","Remark":"22","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a056df86faab0e4189a1339"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"信息中心"}],"FlightEndorsementDetails":[],"HotelEndorsementDetails":[]}
|
||||
2026-05-14 16:03:41,507 [113] INFO LogHelper - 申请单号CCSQ202605110291携程接口响应: {"SetApprovalResult":{"Status":{"Success":false,"ErrorCode":10302103,"Message":"审批单产品信息不能为空"}}}
|
||||
2026-05-14 16:03:41,636 [113] INFO LogHelper - 申请单号CCSQ202605110291同步失败: 审批单产品信息不能为空,已更新OA表状态为4
|
||||
2026-05-14 16:03:54,593 [68] INFO LogHelper - 申请单号CCSQ202605110291构建的请求数据: {"ApprovalNumber":"CCSQ202605110291","Status":1,"EmployeeID":"GS3801","ExpiredTime":"2026-05-18T00:00:00","Remark":"22","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a056df86faab0e4189a1339"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"信息中心"}],"FlightEndorsementDetails":[],"HotelEndorsementDetails":[{"ProductType":"HOTEL","CheckInDateBegin":"2026-05-15T00:00:00","CheckInDateEnd":"2026-05-15T00:00:00","CheckOutDateBegin":"2026-05-15T00:00:00","CheckOutDateEnd":"2026-05-15T00:00:00","CheckInCityCodes":[],"PassengerList":[{"EID":"GS3801","NameEn":null}]}]}
|
||||
2026-05-14 16:04:06,984 [68] INFO LogHelper - 申请单号CCSQ202605110291携程接口响应: {"SetApprovalResult":{"Status":{"Success":false,"ErrorCode":10302323,"Message":"酒店信息参数校验失败,前置开关打开,PreVerifyFields包含入住城市字段,入住城市为必传"}}}
|
||||
2026-05-14 16:04:35,844 [68] INFO LogHelper - 申请单号CCSQ202605110291同步失败: 酒店信息参数校验失败,前置开关打开,PreVerifyFields包含入住城市字段,入住城市为必传,已更新OA表状态为4
|
||||
2026-05-14 16:08:12,935 [95] INFO LogHelper - 申请单号CCSQ202605140461构建的请求数据: {"ApprovalNumber":"CCSQ202605140461","Status":1,"EmployeeID":"GS3516","ExpiredTime":"2026-05-20T00:00:00","Remark":"测试","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a056df86faab0e4189a1339"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"运营中心"},{"FieldName":"CostCenter2","FieldValue":"信息管理部"}],"FlightEndorsementDetails":[],"HotelEndorsementDetails":[{"ProductType":"HOTEL","CheckInDateBegin":"2026-05-15T00:00:00","CheckInDateEnd":"2026-05-15T00:00:00","CheckOutDateBegin":"2026-05-15T00:00:00","CheckOutDateEnd":"2026-05-15T00:00:00","CheckInCityCodes":[],"PassengerList":[{"EID":"GS3516","NameEn":null}]}]}
|
||||
2026-05-14 16:08:14,319 [95] INFO LogHelper - 申请单号CCSQ202605140461携程接口响应: {"SetApprovalResult":{"Status":{"Success":false,"ErrorCode":10302323,"Message":"酒店信息参数校验失败,前置开关打开,PreVerifyFields包含入住城市字段,入住城市为必传"}}}
|
||||
2026-05-14 16:08:17,883 [95] INFO LogHelper - 申请单号CCSQ202605140461同步失败: 酒店信息参数校验失败,前置开关打开,PreVerifyFields包含入住城市字段,入住城市为必传,已更新OA表状态为4
|
||||
2026-05-14 16:09:54,886 [95] INFO LogHelper - 申请单号CCSQ202605140461构建的请求数据: {"ApprovalNumber":"CCSQ202605140461","Status":1,"EmployeeID":"GS3516","ExpiredTime":"2026-05-20T00:00:00","Remark":"测试","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a056df86faab0e4189a1339"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"运营中心"},{"FieldName":"CostCenter2","FieldValue":"信息管理部"}],"FlightEndorsementDetails":[],"HotelEndorsementDetails":[{"ProductType":"HOTEL","CheckInDateBegin":"2026-05-15T00:00:00","CheckInDateEnd":"2026-05-15T00:00:00","CheckOutDateBegin":"2026-05-15T00:00:00","CheckOutDateEnd":"2026-05-15T00:00:00","CheckInCityCodes":[],"PassengerList":[{"EID":"GS3516","NameEn":null}]}]}
|
||||
2026-05-14 16:09:55,360 [95] INFO LogHelper - 申请单号CCSQ202605140461携程接口响应: {"SetApprovalResult":{"Status":{"Success":false,"ErrorCode":10302323,"Message":"酒店信息参数校验失败,前置开关打开,PreVerifyFields包含入住城市字段,入住城市为必传"}}}
|
||||
2026-05-14 16:09:55,406 [95] INFO LogHelper - 申请单号CCSQ202605140461同步失败: 酒店信息参数校验失败,前置开关打开,PreVerifyFields包含入住城市字段,入住城市为必传,已更新OA表状态为4
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
/*! jQuery UI - v1.8.20 - 2012-04-30
|
||||
* https://github.com/jquery/jquery-ui
|
||||
* Includes: jquery.ui.accordion.css
|
||||
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT */
|
||||
.ui-accordion{width:100%}.ui-accordion .ui-accordion-header{cursor:pointer;position:relative;margin-top:1px;zoom:1}.ui-accordion .ui-accordion-li-fix{display:inline}.ui-accordion .ui-accordion-header-active{border-bottom:0!important}.ui-accordion .ui-accordion-header a{display:block;font-size:1em;padding:.5em .5em .5em .7em}.ui-accordion-icons .ui-accordion-header a{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;overflow:auto;display:none;zoom:1}.ui-accordion .ui-accordion-content-active{display:block}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
|
||||
public class K3Response
|
||||
{
|
||||
public K3Result Result { get; set; }
|
||||
}
|
||||
|
||||
public class NeedReturnData
|
||||
{
|
||||
public List<K3FEntity> FEntity { get; set; }
|
||||
}
|
||||
public class K3FEntity
|
||||
{
|
||||
public string FID { get; set; }
|
||||
public int FENTRYID { get; set; }
|
||||
}
|
||||
public class K3Result
|
||||
{
|
||||
public ResponseStatus ResponseStatus { get; set; }
|
||||
public string Id { get; set; }
|
||||
|
||||
public List<NeedReturnData> NeedReturnData { get; set; }
|
||||
}
|
||||
public class ResponseStatus
|
||||
{
|
||||
public string ErrorCode { get; set; }
|
||||
public bool IsSuccess { get; set; }
|
||||
public List<K3Error> Errors { get; set; }
|
||||
|
||||
public List<SuccessEntity> SuccessEntitys { get; set; }
|
||||
|
||||
public List<SuccessMessage> SuccessMessages { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class K3Error
|
||||
{
|
||||
public string FieldName { get; set; }
|
||||
public string Message { get; set; }
|
||||
public int DIndex { get; set; }
|
||||
}
|
||||
|
||||
public class SuccessEntity
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string Number { get; set; }
|
||||
public int DIndex { get; set; }
|
||||
}
|
||||
|
||||
public class SuccessMessage
|
||||
{
|
||||
public string FieldName { get; set; }
|
||||
public string Message { get; set; }
|
||||
public int DIndex { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
+10993
File diff suppressed because it is too large.
Load diff
+5570
File diff suppressed because it is too large.
Load diff
+2624
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
BIN
Binary file not shown.
+478
@@ -0,0 +1,478 @@
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Sockets;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
|
||||
public class CtripApi
|
||||
{
|
||||
#region 获取携程Ticket
|
||||
public string GetCtripTicket()
|
||||
{
|
||||
string path = "https://ct.ctrip.com/SwitchAPI/Order/Ticket";
|
||||
string result = string.Empty;
|
||||
var body = @"{
|
||||
" + "\n" +
|
||||
@" ""appKey"": ""obk_GXHJ"",
|
||||
" + "\n" +
|
||||
@" ""appSecurity"": ""mD2!^w7CCGq)U%c*An*um%^T""
|
||||
" + "\n" +
|
||||
@"}";
|
||||
HttpContent httpContent = new StringContent(body);
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
CtripRoot tokenData = JsonConvert.DeserializeObject<CtripRoot>(result);
|
||||
return tokenData.Ticket;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取携程全量国家数据
|
||||
public string GetXCCountry(string Ticket)
|
||||
{
|
||||
string path = "https://ct.ctrip.com/switchAPI/basedata/v2/getcountry";
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("{\r\n \"Auth\": {\r\n \"AppKey\": \"obk_GXHJ\",\r\n \"Ticket\": \""+ Ticket + "\"\r\n },\r\n \"locale\": \"zh-CN\"\r\n}");
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取携程国内城市数据
|
||||
public string GetXCChinaCity(string Ticket)
|
||||
{
|
||||
string path = "https://ct.ctrip.com/switchapi/basedata/v2/queryAllPOIInfo";
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("{\r\n \"auth\": {\r\n \"AppKey\": \"obk_GXHJ\",\r\n \"Ticket\": \""+ Ticket + "\"\r\n },\r\n \"provinceConditions\": {\r\n \"prefectureLevelCityConditions\": {\r\n \"returnDistrict\": false\r\n }\r\n },\r\n \"countryId\": 1,\r\n \"poiConditions\": {\r\n \"returnAirport\": false,\r\n \"returnTrainStation\": false,\r\n \"returnBusStation\": false\r\n }\r\n}");
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 提前审批接口
|
||||
public static string PostData(string postString)
|
||||
{
|
||||
byte[] postData = Encoding.UTF8.GetBytes(postString);
|
||||
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri("https://ct.ctrip.com/switchapi/approval/save"));
|
||||
|
||||
request.Method = "POST";
|
||||
|
||||
request.ServicePoint.Expect100Continue = false;
|
||||
|
||||
request.ContentType = "application/json";
|
||||
|
||||
request.ContentLength = postData.Length;
|
||||
|
||||
using (Stream requestStream = request.GetRequestStream())
|
||||
{
|
||||
requestStream.Write(postData, 0, postData.Length);
|
||||
}
|
||||
|
||||
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
|
||||
|
||||
StreamReader stream = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
|
||||
|
||||
string srcString = stream.ReadToEnd();
|
||||
|
||||
response.Close();
|
||||
|
||||
stream.Close();
|
||||
|
||||
return srcString;
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 预算数据落地
|
||||
public static string SaveBudget(string postString)
|
||||
{
|
||||
byte[] postData = Encoding.UTF8.GetBytes(postString);
|
||||
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri("https://corpsz.ctrip.com/PreApproval/saveBudget"));
|
||||
|
||||
request.Method = "POST";
|
||||
|
||||
request.ServicePoint.Expect100Continue = false;
|
||||
|
||||
request.ContentType = "application/json";
|
||||
|
||||
request.ContentLength = postData.Length;
|
||||
|
||||
using (Stream requestStream = request.GetRequestStream())
|
||||
{
|
||||
requestStream.Write(postData, 0, postData.Length);
|
||||
}
|
||||
|
||||
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
|
||||
|
||||
StreamReader stream = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
|
||||
|
||||
string srcString = stream.ReadToEnd();
|
||||
|
||||
response.Close();
|
||||
|
||||
stream.Close();
|
||||
|
||||
return srcString;
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 预算落地接口加密方法
|
||||
/// <summary>
|
||||
/// 预算落地接口加密方法
|
||||
/// </summary>
|
||||
/// <param name="approvalNumber">审批单号</param>
|
||||
/// <param name="appSecurity">加密密钥</param>
|
||||
/// <param name="budgetInfoList">预算信息列表</param>
|
||||
/// <returns>加密结果</returns>
|
||||
public string CreateSign(string approvalNumber, string appSecurity, List<BudgetInfo> budgetInfoList)
|
||||
{
|
||||
if (approvalNumber == null || appSecurity == null || budgetInfoList == null || budgetInfoList.Count == 0)
|
||||
{
|
||||
throw new ArgumentException("加密参数异常");
|
||||
}
|
||||
|
||||
// 按 Products 排序
|
||||
budgetInfoList.Sort((o1, o2) => o1.Products.CompareTo(o2.Products));
|
||||
|
||||
// 拼接预算字符串
|
||||
var budgetStr = new StringBuilder();
|
||||
foreach (var budgetInfo in budgetInfoList)
|
||||
{
|
||||
budgetStr.Append(budgetInfo.Products).Append(budgetInfo.BudgetAmount);
|
||||
}
|
||||
|
||||
// 加密
|
||||
string plainText = approvalNumber + budgetStr + Sha1Hex(appSecurity);
|
||||
return Sha1Hex(plainText);
|
||||
}
|
||||
|
||||
private static string Sha1Hex(string input)
|
||||
{
|
||||
using (var sha1 = SHA1.Create())
|
||||
{
|
||||
byte[] bytes = sha1.ComputeHash(Encoding.UTF8.GetBytes(input));
|
||||
return BitConverter.ToString(bytes).Replace("-", "").ToLower();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region 自定义变量
|
||||
public class Status
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public bool Success { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int ErrorCode { get; set; }
|
||||
/// <summary>
|
||||
/// 调用成功。
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
}
|
||||
|
||||
public class CtripRoot
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public Status Status { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Ticket { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 携程接口请求模型
|
||||
/// </summary>
|
||||
public class CtripApprovalRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 申请单号
|
||||
/// </summary>
|
||||
public string ApprovalNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态:固定值1(有效)
|
||||
/// </summary>
|
||||
public int Status { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 员工工号
|
||||
/// </summary>
|
||||
public string EmployeeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过期时间
|
||||
/// </summary>
|
||||
public DateTime ExpiredTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 鉴权对象
|
||||
/// </summary>
|
||||
public CtripAuth Auth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段列表
|
||||
/// </summary>
|
||||
public List<CtripExtendField> ExtendFieldList { get; set; }
|
||||
/// <summary>
|
||||
/// 机票行程明细列表
|
||||
/// </summary>
|
||||
public List<FlightEndorsementDetail> FlightEndorsementDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 酒店行程明细列表
|
||||
/// </summary>
|
||||
public List<HotelEndorsementDetail> HotelEndorsementDetails { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 机票行程明细
|
||||
/// </summary>
|
||||
public class FlightEndorsementDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品类型:固定FLIGHT
|
||||
/// </summary>
|
||||
public string ProductType { get; set; } = "FLIGHT";
|
||||
|
||||
///// <summary>
|
||||
///// 行程类型:1-单程,2-往返
|
||||
///// </summary>
|
||||
//public int FlightWay { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 出发开始日期
|
||||
///// </summary>
|
||||
//public DateTime DepartDateBegin { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 出发结束日期
|
||||
///// </summary>
|
||||
//public DateTime DepartDateEnd { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 返程开始日期
|
||||
///// </summary>
|
||||
//public DateTime? ReturnDateBegin { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 返程结束日期
|
||||
///// </summary>
|
||||
//public DateTime? ReturnDateEnd { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 出发城市编码列表
|
||||
///// </summary>
|
||||
//public List<string> DepartCityIds { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 到达城市编码列表
|
||||
///// </summary>
|
||||
//public List<string> ArrivalCityIds { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 舱位等级:3-经济舱
|
||||
///// </summary>
|
||||
//public int SeatClass { get; set; } = 3;
|
||||
|
||||
/// <summary>
|
||||
/// 出行人列表
|
||||
/// </summary>
|
||||
public List<PassengerInfo> PassengerList { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 酒店行程明细
|
||||
/// </summary>
|
||||
public class HotelEndorsementDetail
|
||||
{
|
||||
/// <summary>
|
||||
/// 产品类型:固定HOTEL
|
||||
/// </summary>
|
||||
public string ProductType { get; set; } = "HOTEL";
|
||||
|
||||
///// <summary>
|
||||
///// 入住开始日期
|
||||
///// </summary>
|
||||
//public DateTime CheckInDateBegin { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 入住结束日期
|
||||
///// </summary>
|
||||
//public DateTime CheckInDateEnd { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 离店开始日期
|
||||
///// </summary>
|
||||
//public DateTime CheckOutDateBegin { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 离店结束日期
|
||||
///// </summary>
|
||||
//public DateTime CheckOutDateEnd { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 入住城市编码列表
|
||||
///// </summary>
|
||||
//public List<string> CheckInCityCodes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出行人列表
|
||||
/// </summary>
|
||||
public List<PassengerInfo> PassengerList { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 出行人信息
|
||||
/// </summary>
|
||||
public class PassengerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 员工工号
|
||||
/// </summary>
|
||||
public string EID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 英文姓名(暂不传)
|
||||
/// </summary>
|
||||
public string NameEn { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 携程鉴权对象
|
||||
/// </summary>
|
||||
public class CtripAuth
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用Key
|
||||
/// </summary>
|
||||
public string AppKey { get; set; } = "obk_GXHJ";
|
||||
|
||||
/// <summary>
|
||||
/// 动态票据
|
||||
/// </summary>
|
||||
public string Ticket { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 携程扩展字段
|
||||
/// </summary>
|
||||
public class CtripExtendField
|
||||
{
|
||||
/// <summary>
|
||||
/// 字段名
|
||||
/// </summary>
|
||||
public string FieldName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段值
|
||||
/// </summary>
|
||||
public string FieldValue { get; set; }
|
||||
}
|
||||
public class CtripBudgetRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 申请单号
|
||||
/// </summary>
|
||||
public string ApprovalNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 签名
|
||||
/// </summary>
|
||||
public string Signature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 鉴权对象
|
||||
/// </summary>
|
||||
public CtripAuth Auth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段列表
|
||||
/// </summary>
|
||||
public List<BudgetInfo> BudgetInfoList { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class BudgetInfo
|
||||
{
|
||||
public decimal BudgetAmount { get; set; }
|
||||
public long Products { get; set; } = 12;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
+10545
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
|
After Width: | Height: | Size: 111 B |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+38
@@ -0,0 +1,38 @@
|
||||
/*!
|
||||
* jQuery UI CSS Framework 1.8.20
|
||||
*
|
||||
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Licensed under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Theming/API
|
||||
*/
|
||||
|
||||
/* Layout helpers
|
||||
----------------------------------*/
|
||||
.ui-helper-hidden { display: none; }
|
||||
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
||||
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
||||
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
|
||||
.ui-helper-clearfix:after { clear: both; }
|
||||
.ui-helper-clearfix { zoom: 1; }
|
||||
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
||||
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-disabled { cursor: default !important; }
|
||||
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
||||
BIN
Binary file not shown.
+90
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "D:\\Code\\WMS\\GuangFu.StringTracing\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|D:\\Code\\WMS\\GuangFu.StringTracing\\guangfu.stringtracing\\controllers\\differentialcontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|solutionrelative:guangfu.stringtracing\\controllers\\differentialcontroller.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|d:\\code\\wms\\guangfu.stringtracing\\guangfu.stringtracing\\common\\fbtapi.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|solutionrelative:guangfu.stringtracing\\common\\fbtapi.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|D:\\Code\\WMS\\GuangFu.StringTracing\\guangfu.stringtracing\\common\\dbhelpe.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|solutionrelative:guangfu.stringtracing\\common\\dbhelpe.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|D:\\Code\\WMS\\GuangFu.StringTracing\\guangfu.stringtracing\\common\\wmscommonfunction.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{96026F2A-5866-4570-B6E5-DDB8E5A1F919}|GuangFu.StringTracing\\GuangFu.StringTracing.csproj|solutionrelative:guangfu.stringtracing\\common\\wmscommonfunction.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 4,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "FbtApi.cs",
|
||||
"DocumentMoniker": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Common\\FbtApi.cs",
|
||||
"RelativeDocumentMoniker": "GuangFu.StringTracing\\Common\\FbtApi.cs",
|
||||
"ToolTip": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Common\\FbtApi.cs",
|
||||
"RelativeToolTip": "GuangFu.StringTracing\\Common\\FbtApi.cs",
|
||||
"ViewState": "AgIAAHIBAAAAAAAAAAAkwJ4BAAABAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2026-07-31T01:35:26.214Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 3,
|
||||
"Title": "WmsCommonFunction.cs",
|
||||
"DocumentMoniker": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Common\\WmsCommonFunction.cs",
|
||||
"RelativeDocumentMoniker": "GuangFu.StringTracing\\Common\\WmsCommonFunction.cs",
|
||||
"ToolTip": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Common\\WmsCommonFunction.cs",
|
||||
"RelativeToolTip": "GuangFu.StringTracing\\Common\\WmsCommonFunction.cs",
|
||||
"ViewState": "AgIAABQAAAAAAAAAAAAtwB4AAAAkAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2026-07-27T08:41:03.274Z"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"Title": "DBHelpe.cs",
|
||||
"DocumentMoniker": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Common\\DBHelpe.cs",
|
||||
"RelativeDocumentMoniker": "GuangFu.StringTracing\\Common\\DBHelpe.cs",
|
||||
"ToolTip": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Common\\DBHelpe.cs",
|
||||
"RelativeToolTip": "GuangFu.StringTracing\\Common\\DBHelpe.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAApwBAAAAAPAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2026-07-09T06:34:38.914Z"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "DifferentialController.cs",
|
||||
"DocumentMoniker": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Controllers\\DifferentialController.cs",
|
||||
"RelativeDocumentMoniker": "GuangFu.StringTracing\\Controllers\\DifferentialController.cs",
|
||||
"ToolTip": "D:\\Code\\WMS\\GuangFu.StringTracing\\GuangFu.StringTracing\\Controllers\\DifferentialController.cs",
|
||||
"RelativeToolTip": "GuangFu.StringTracing\\Controllers\\DifferentialController.cs",
|
||||
"ViewState": "AgIAAFwLAAAAAAAAAAAYwGkLAAA3AAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2026-07-06T06:51:54.025Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
/*! jQuery UI - v1.8.20 - 2012-04-30
|
||||
* https://github.com/jquery/jquery-ui
|
||||
* Includes: jquery.ui.slider.css
|
||||
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT */
|
||||
.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}
|
||||
BIN
Binary file not shown.
+18
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="EntityFramework"
|
||||
culture="neutral"
|
||||
publicKeyToken="b77a5c561934e089" />
|
||||
<bindingRedirect oldVersion="5.0.0.0"
|
||||
newVersion="4.4.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Microsoft.VisualStudio.Shell" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="2.0.0.0-10.0.0.0" newVersion="11.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
2026-05-18 14:30:45,056 [6] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"929f3523599ae3a7f3ef2ceda3a3805eb3c1ee18","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0ab1f0212ab0e495b86765"},"BudgetInfoList":[{"BudgetAmount":3.00,"Products":12}]}
|
||||
2026-05-18 14:31:13,541 [6] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"status":{"errorCode":10308012,"message":"{国内酒店}未启用预算管控设置,请联系客户经理","success":false}}
|
||||
2026-05-18 14:31:13,660 [6] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: {国内酒店}未启用预算管控设置,请联系客户经理,已更新OA表状态为4
|
||||
2026-05-18 14:31:13,707 [6] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: {国内酒店}未启用预算管控设置,请联系客户经理,已更新OA表状态为4
|
||||
BIN
Binary file not shown.
+7470
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
+466
@@ -0,0 +1,466 @@
|
||||
/*! jQuery UI - v1.8.20 - 2012-04-30
|
||||
* https://github.com/jquery/jquery-ui
|
||||
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.tabs.css, jquery.ui.theme.css
|
||||
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT */
|
||||
|
||||
/* Layout helpers
|
||||
----------------------------------*/
|
||||
.ui-helper-hidden { display: none; }
|
||||
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
||||
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
||||
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
|
||||
.ui-helper-clearfix:after { clear: both; }
|
||||
.ui-helper-clearfix { zoom: 1; }
|
||||
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
||||
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-disabled { cursor: default !important; }
|
||||
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
||||
|
||||
/* IE/Win - Fix animation bug - #4615 */
|
||||
.ui-accordion { width: 100%; }
|
||||
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
||||
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
||||
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
||||
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
|
||||
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
|
||||
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
||||
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
|
||||
.ui-accordion .ui-accordion-content-active { display: block; }
|
||||
|
||||
.ui-autocomplete { position: absolute; cursor: default; }
|
||||
|
||||
/* workarounds */
|
||||
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
||||
|
||||
/*
|
||||
* jQuery UI Menu 1.8.20
|
||||
*
|
||||
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Menu#theming
|
||||
*/
|
||||
.ui-menu {
|
||||
list-style:none;
|
||||
padding: 2px;
|
||||
margin: 0;
|
||||
display:block;
|
||||
float: left;
|
||||
}
|
||||
.ui-menu .ui-menu {
|
||||
margin-top: -3px;
|
||||
}
|
||||
.ui-menu .ui-menu-item {
|
||||
margin:0;
|
||||
padding: 0;
|
||||
zoom: 1;
|
||||
float: left;
|
||||
clear: left;
|
||||
width: 100%;
|
||||
}
|
||||
.ui-menu .ui-menu-item a {
|
||||
text-decoration:none;
|
||||
display:block;
|
||||
padding:.2em .4em;
|
||||
line-height:1.5;
|
||||
zoom:1;
|
||||
}
|
||||
.ui-menu .ui-menu-item a.ui-state-hover,
|
||||
.ui-menu .ui-menu-item a.ui-state-active {
|
||||
font-weight: normal;
|
||||
margin: -1px;
|
||||
}
|
||||
|
||||
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
||||
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
||||
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
||||
.ui-button-icons-only { width: 3.4em; }
|
||||
button.ui-button-icons-only { width: 3.7em; }
|
||||
|
||||
/*button text element */
|
||||
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
||||
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
||||
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
||||
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
||||
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
||||
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
||||
/* no icon support for input elements, provide padding by default */
|
||||
input.ui-button { padding: .4em 1em; }
|
||||
|
||||
/*button icon element(s) */
|
||||
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
||||
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
||||
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
||||
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
||||
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
||||
|
||||
/*button sets*/
|
||||
.ui-buttonset { margin-right: 7px; }
|
||||
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
||||
|
||||
/* workarounds */
|
||||
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
||||
|
||||
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
||||
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
||||
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
||||
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
||||
.ui-datepicker .ui-datepicker-next { right:2px; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
||||
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
||||
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
||||
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
||||
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
||||
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
||||
.ui-datepicker select.ui-datepicker-month,
|
||||
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
||||
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
||||
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
||||
.ui-datepicker td { border: 0; padding: 1px; }
|
||||
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
||||
|
||||
/* with multiple calendars */
|
||||
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
||||
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
||||
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
||||
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
||||
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
||||
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
||||
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
||||
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
||||
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
||||
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
||||
|
||||
/* RTL support */
|
||||
.ui-datepicker-rtl { direction: rtl; }
|
||||
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||
|
||||
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
||||
.ui-datepicker-cover {
|
||||
display: none; /*sorry for IE5*/
|
||||
display/**/: block; /*sorry for IE5*/
|
||||
position: absolute; /*must have*/
|
||||
z-index: -1; /*must have*/
|
||||
filter: mask(); /*must have*/
|
||||
top: -4px; /*must have*/
|
||||
left: -4px; /*must have*/
|
||||
width: 200px; /*must have*/
|
||||
height: 200px; /*must have*/
|
||||
}
|
||||
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
||||
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
||||
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
||||
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
||||
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
||||
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
||||
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
||||
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
||||
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
||||
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
||||
|
||||
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
|
||||
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
||||
.ui-resizable { position: relative;}
|
||||
.ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
|
||||
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
||||
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
||||
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
||||
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
||||
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
||||
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
||||
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
||||
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
||||
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}
|
||||
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
||||
|
||||
.ui-slider { position: relative; text-align: left; }
|
||||
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
||||
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
||||
|
||||
.ui-slider-horizontal { height: .8em; }
|
||||
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
||||
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
||||
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
||||
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
||||
|
||||
.ui-slider-vertical { width: .8em; height: 100px; }
|
||||
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
||||
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
||||
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
||||
.ui-slider-vertical .ui-slider-range-max { top: 0; }
|
||||
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
||||
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
||||
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
||||
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
|
||||
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
||||
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
||||
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
||||
.ui-tabs .ui-tabs-hide { display: none !important; }
|
||||
|
||||
/* Component containers
|
||||
----------------------------------*/
|
||||
.ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; }
|
||||
.ui-widget .ui-widget { font-size: 1em; }
|
||||
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; }
|
||||
.ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; color: #222222/*{fcContent}*/; }
|
||||
.ui-widget-content a { color: #222222/*{fcContent}*/; }
|
||||
.ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; color: #222222/*{fcHeader}*/; font-weight: bold; }
|
||||
.ui-widget-header a { color: #222222/*{fcHeader}*/; }
|
||||
|
||||
/* Interaction states
|
||||
----------------------------------*/
|
||||
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; }
|
||||
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; }
|
||||
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999/*{borderColorHover}*/; background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcHover}*/; }
|
||||
.ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; }
|
||||
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; }
|
||||
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; text-decoration: none; }
|
||||
.ui-widget :active { outline: none; }
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/; color: #363636/*{fcHighlight}*/; }
|
||||
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636/*{fcHighlight}*/; }
|
||||
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a/*{borderColorError}*/; background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/; color: #cd0a0a/*{fcError}*/; }
|
||||
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a/*{fcError}*/; }
|
||||
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a/*{fcError}*/; }
|
||||
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
||||
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
||||
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; }
|
||||
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; }
|
||||
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/; }
|
||||
.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/; }
|
||||
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/; }
|
||||
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/; }
|
||||
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/; }
|
||||
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/; }
|
||||
|
||||
/* positioning */
|
||||
.ui-icon-carat-1-n { background-position: 0 0; }
|
||||
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
||||
.ui-icon-carat-1-e { background-position: -32px 0; }
|
||||
.ui-icon-carat-1-se { background-position: -48px 0; }
|
||||
.ui-icon-carat-1-s { background-position: -64px 0; }
|
||||
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
||||
.ui-icon-carat-1-w { background-position: -96px 0; }
|
||||
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
||||
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
||||
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
||||
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
||||
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
||||
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
||||
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
||||
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
||||
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
||||
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
||||
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
||||
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
||||
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
||||
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
||||
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
||||
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
||||
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
||||
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
||||
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
||||
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
||||
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
||||
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
||||
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
||||
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
||||
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
||||
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
||||
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
||||
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
||||
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
||||
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
||||
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
||||
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
||||
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
||||
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
||||
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
||||
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
||||
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
||||
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
||||
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
||||
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
||||
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
||||
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
||||
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
||||
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
||||
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
||||
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
||||
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
||||
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
||||
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
||||
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
||||
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
||||
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
||||
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
||||
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
||||
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
||||
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
||||
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
||||
.ui-icon-extlink { background-position: -32px -80px; }
|
||||
.ui-icon-newwin { background-position: -48px -80px; }
|
||||
.ui-icon-refresh { background-position: -64px -80px; }
|
||||
.ui-icon-shuffle { background-position: -80px -80px; }
|
||||
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
||||
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
||||
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
||||
.ui-icon-folder-open { background-position: -16px -96px; }
|
||||
.ui-icon-document { background-position: -32px -96px; }
|
||||
.ui-icon-document-b { background-position: -48px -96px; }
|
||||
.ui-icon-note { background-position: -64px -96px; }
|
||||
.ui-icon-mail-closed { background-position: -80px -96px; }
|
||||
.ui-icon-mail-open { background-position: -96px -96px; }
|
||||
.ui-icon-suitcase { background-position: -112px -96px; }
|
||||
.ui-icon-comment { background-position: -128px -96px; }
|
||||
.ui-icon-person { background-position: -144px -96px; }
|
||||
.ui-icon-print { background-position: -160px -96px; }
|
||||
.ui-icon-trash { background-position: -176px -96px; }
|
||||
.ui-icon-locked { background-position: -192px -96px; }
|
||||
.ui-icon-unlocked { background-position: -208px -96px; }
|
||||
.ui-icon-bookmark { background-position: -224px -96px; }
|
||||
.ui-icon-tag { background-position: -240px -96px; }
|
||||
.ui-icon-home { background-position: 0 -112px; }
|
||||
.ui-icon-flag { background-position: -16px -112px; }
|
||||
.ui-icon-calendar { background-position: -32px -112px; }
|
||||
.ui-icon-cart { background-position: -48px -112px; }
|
||||
.ui-icon-pencil { background-position: -64px -112px; }
|
||||
.ui-icon-clock { background-position: -80px -112px; }
|
||||
.ui-icon-disk { background-position: -96px -112px; }
|
||||
.ui-icon-calculator { background-position: -112px -112px; }
|
||||
.ui-icon-zoomin { background-position: -128px -112px; }
|
||||
.ui-icon-zoomout { background-position: -144px -112px; }
|
||||
.ui-icon-search { background-position: -160px -112px; }
|
||||
.ui-icon-wrench { background-position: -176px -112px; }
|
||||
.ui-icon-gear { background-position: -192px -112px; }
|
||||
.ui-icon-heart { background-position: -208px -112px; }
|
||||
.ui-icon-star { background-position: -224px -112px; }
|
||||
.ui-icon-link { background-position: -240px -112px; }
|
||||
.ui-icon-cancel { background-position: 0 -128px; }
|
||||
.ui-icon-plus { background-position: -16px -128px; }
|
||||
.ui-icon-plusthick { background-position: -32px -128px; }
|
||||
.ui-icon-minus { background-position: -48px -128px; }
|
||||
.ui-icon-minusthick { background-position: -64px -128px; }
|
||||
.ui-icon-close { background-position: -80px -128px; }
|
||||
.ui-icon-closethick { background-position: -96px -128px; }
|
||||
.ui-icon-key { background-position: -112px -128px; }
|
||||
.ui-icon-lightbulb { background-position: -128px -128px; }
|
||||
.ui-icon-scissors { background-position: -144px -128px; }
|
||||
.ui-icon-clipboard { background-position: -160px -128px; }
|
||||
.ui-icon-copy { background-position: -176px -128px; }
|
||||
.ui-icon-contact { background-position: -192px -128px; }
|
||||
.ui-icon-image { background-position: -208px -128px; }
|
||||
.ui-icon-video { background-position: -224px -128px; }
|
||||
.ui-icon-script { background-position: -240px -128px; }
|
||||
.ui-icon-alert { background-position: 0 -144px; }
|
||||
.ui-icon-info { background-position: -16px -144px; }
|
||||
.ui-icon-notice { background-position: -32px -144px; }
|
||||
.ui-icon-help { background-position: -48px -144px; }
|
||||
.ui-icon-check { background-position: -64px -144px; }
|
||||
.ui-icon-bullet { background-position: -80px -144px; }
|
||||
.ui-icon-radio-off { background-position: -96px -144px; }
|
||||
.ui-icon-radio-on { background-position: -112px -144px; }
|
||||
.ui-icon-pin-w { background-position: -128px -144px; }
|
||||
.ui-icon-pin-s { background-position: -144px -144px; }
|
||||
.ui-icon-play { background-position: 0 -160px; }
|
||||
.ui-icon-pause { background-position: -16px -160px; }
|
||||
.ui-icon-seek-next { background-position: -32px -160px; }
|
||||
.ui-icon-seek-prev { background-position: -48px -160px; }
|
||||
.ui-icon-seek-end { background-position: -64px -160px; }
|
||||
.ui-icon-seek-start { background-position: -80px -160px; }
|
||||
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
||||
.ui-icon-seek-first { background-position: -80px -160px; }
|
||||
.ui-icon-stop { background-position: -96px -160px; }
|
||||
.ui-icon-eject { background-position: -112px -160px; }
|
||||
.ui-icon-volume-off { background-position: -128px -160px; }
|
||||
.ui-icon-volume-on { background-position: -144px -160px; }
|
||||
.ui-icon-power { background-position: 0 -176px; }
|
||||
.ui-icon-signal-diag { background-position: -16px -176px; }
|
||||
.ui-icon-signal { background-position: -32px -176px; }
|
||||
.ui-icon-battery-0 { background-position: -48px -176px; }
|
||||
.ui-icon-battery-1 { background-position: -64px -176px; }
|
||||
.ui-icon-battery-2 { background-position: -80px -176px; }
|
||||
.ui-icon-battery-3 { background-position: -96px -176px; }
|
||||
.ui-icon-circle-plus { background-position: 0 -192px; }
|
||||
.ui-icon-circle-minus { background-position: -16px -192px; }
|
||||
.ui-icon-circle-close { background-position: -32px -192px; }
|
||||
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
||||
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
||||
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
||||
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
||||
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
||||
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
||||
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
||||
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
||||
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
||||
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
||||
.ui-icon-circle-check { background-position: -208px -192px; }
|
||||
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
||||
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
||||
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
||||
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
||||
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
||||
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
||||
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
||||
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
||||
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
||||
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
||||
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
||||
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Corner radius */
|
||||
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; -khtml-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; }
|
||||
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; -khtml-border-top-right-radius: 4px/*{cornerRadius}*/; border-top-right-radius: 4px/*{cornerRadius}*/; }
|
||||
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; -khtml-border-bottom-left-radius: 4px/*{cornerRadius}*/; border-bottom-left-radius: 4px/*{cornerRadius}*/; }
|
||||
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; -khtml-border-bottom-right-radius: 4px/*{cornerRadius}*/; border-bottom-right-radius: 4px/*{cornerRadius}*/; }
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityOverlay}*/; }
|
||||
.ui-widget-shadow { margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; padding: 8px/*{thicknessShadow}*/; background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityShadow}*/; -moz-border-radius: 8px/*{cornerRadiusShadow}*/; -khtml-border-radius: 8px/*{cornerRadiusShadow}*/; -webkit-border-radius: 8px/*{cornerRadiusShadow}*/; border-radius: 8px/*{cornerRadiusShadow}*/; }
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+21
@@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* jQuery UI CSS Framework 1.8.20
|
||||
*
|
||||
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Licensed under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Theming
|
||||
*/
|
||||
@import url("jquery.ui.core.css");
|
||||
|
||||
@import url("jquery.ui.accordion.css");
|
||||
@import url("jquery.ui.autocomplete.css");
|
||||
@import url("jquery.ui.button.css");
|
||||
@import url("jquery.ui.datepicker.css");
|
||||
@import url("jquery.ui.dialog.css");
|
||||
@import url("jquery.ui.progressbar.css");
|
||||
@import url("jquery.ui.resizable.css");
|
||||
@import url("jquery.ui.selectable.css");
|
||||
@import url("jquery.ui.slider.css");
|
||||
@import url("jquery.ui.tabs.css");
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
<%@ Application Codebehind="Global.asax.cs" Inherits="GuangFu.StringTracing.WebApiApplication" Language="C#" %>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+18
@@ -0,0 +1,18 @@
|
||||
2026-05-15 11:20:04,651 [20] INFO LogHelper - 申请单号CCSQ202605140461构建的请求数据: {"ApprovalNumber":"CCSQ202605140461","Status":1,"EmployeeID":"GS3516","ExpiredTime":"2026-05-20T00:00:00","Remark":"测试","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0690ad212ab0e4f9896465"},"ExtendFieldList":[{"FieldName":"CostCenter1","FieldValue":"运营中心"},{"FieldName":"CostCenter2","FieldValue":"信息管理部"}],"FlightEndorsementDetails":[],"HotelEndorsementDetails":[{"ProductType":"HOTEL","PassengerList":[{"EID":"GS3516","NameEn":null}]}]}
|
||||
2026-05-15 11:20:05,694 [20] INFO LogHelper - 申请单号CCSQ202605140461携程接口响应: {"SetApprovalResult":{"Status":{"Success":true,"ErrorCode":0,"Message":""},"approvalNumber":"CCSQ202605140461"}}
|
||||
2026-05-15 11:20:13,090 [20] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"361487b36a06eac189e4e61a83855ff1d28f4b90","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0690ad212ab0e4f9896465"},"ExtendFieldList":[{"BudgetAmount":1.00,"Products":12}]}
|
||||
2026-05-15 11:20:13,461 [20] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"Status":{"ErrorCode":17901007,"Message":"接口权限验证未通过","Success":false,"Result":"Failed"},"Data":null}
|
||||
2026-05-15 11:20:13,571 [20] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 11:20:13,632 [20] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 11:21:27,932 [6] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"361487b36a06eac189e4e61a83855ff1d28f4b90","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0690ad212ab0e4f9896465"},"ExtendFieldList":[{"BudgetAmount":1.00,"Products":12}]}
|
||||
2026-05-15 11:22:00,917 [6] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"Status":{"ErrorCode":17901007,"Message":"接口权限验证未通过","Success":false,"Result":"Failed"},"Data":null}
|
||||
2026-05-15 11:22:51,647 [6] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 11:22:51,706 [6] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:20:50,907 [7] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"929f3523599ae3a7f3ef2ceda3a3805eb3c1ee18","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a06c9419b93b0e42c5eeb81"},"ExtendFieldList":[{"BudgetAmount":3.00,"Products":12}]}
|
||||
2026-05-15 15:20:59,504 [7] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"status":{"errorCode":10308002,"message":"预算列表信息必传","success":false}}
|
||||
2026-05-15 15:20:59,617 [7] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:20:59,695 [7] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:22:01,400 [8] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"929f3523599ae3a7f3ef2ceda3a3805eb3c1ee18","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a06c9419b93b0e42c5eeb81"},"ExtendFieldList":[{"BudgetAmount":3.00,"Products":12}]}
|
||||
2026-05-15 15:22:01,672 [8] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"status":{"errorCode":10308002,"message":"预算列表信息必传","success":false}}
|
||||
2026-05-15 15:22:57,497 [8] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步失败: 未知错误,已更新OA表状态为4
|
||||
2026-05-15 15:22:57,552 [8] INFO LogHelper - 申请单号CCSQ202605140461创建预算数据落地失败: 未知错误,已更新OA表状态为4
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
|
||||
public static class WmsCommonFunction
|
||||
{
|
||||
|
||||
public static T GetBodyData<T>(string jsonData)
|
||||
{
|
||||
T myBodyData = JsonConvert.DeserializeObject<T>(jsonData);
|
||||
return myBodyData;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新或者插入功能使用次数
|
||||
/// </summary>
|
||||
/// <param name="FNumber"></param>
|
||||
/// <param name="FName"></param>
|
||||
public static void UpUserCount(string FNumber, string FName)
|
||||
{
|
||||
DBHelpe db = new DBHelpe();
|
||||
|
||||
DateTime now = DateTime.Now;
|
||||
int year = now.Year;
|
||||
int month = now.Month;
|
||||
|
||||
string SQL = $@"SELECT *
|
||||
from T_Oth_DevelopmentInfo
|
||||
WHERE FYear = {year} and FMonth = {month} and FNumber = '{FNumber}'";
|
||||
string SQL1 = string.Empty;
|
||||
DataTable dt = db.ExecuteTable(SQL);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
SQL1 = $@"UPDATE T_Oth_DevelopmentInfo set FCount = {Convert.ToInt32(dt.Rows[0]["FCount"]) + 1}
|
||||
WHERE FYear = {year} and FMonth = {month} and FNumber = '{FNumber}'";
|
||||
}
|
||||
else
|
||||
{
|
||||
SQL1 = $@"INSERT into T_Oth_DevelopmentInfo(FYear,FMonth,FNumber,FName,FCount)
|
||||
values ({year} ,{month},'{FNumber}','{FName}',1)";
|
||||
}
|
||||
db.ExecuteNonQuery(SQL1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
/*! jQuery UI - v1.8.20 - 2012-04-30
|
||||
* https://github.com/jquery/jquery-ui
|
||||
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js, jquery.effects.blind.js, jquery.effects.bounce.js, jquery.effects.clip.js, jquery.effects.drop.js, jquery.effects.explode.js, jquery.effects.fade.js, jquery.effects.fold.js, jquery.effects.highlight.js, jquery.effects.pulsate.js, jquery.effects.scale.js, jquery.effects.shake.js, jquery.effects.slide.js, jquery.effects.transfer.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.tabs.js
|
||||
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT */
|
||||
(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.20",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode)return;for(var e=0;e<d.length;e++)a.options[d[e][0]]&&d[e][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;var d=c&&c==="left"?"scrollLeft":"scrollTop",e=!1;return b[d]>0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}})})(jQuery),function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)try{a(e).triggerHandler("remove")}catch(f){}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};var g=new c;g.options=a.extend(!0,{},g.options),a[e][b].prototype=a.extend(!0,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=fLine truncated
|
||||
+11115
File diff suppressed because it is too large.
Load diff
+317
@@ -0,0 +1,317 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using MySql.Data.MySqlClient;
|
||||
using GuangFu.StringTracing.Models;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 部门同步统计信息
|
||||
/// </summary>
|
||||
public class DepartmentSyncStats
|
||||
{
|
||||
public int Total { get; set; }
|
||||
public int Updated { get; set; }
|
||||
public int Inserted { get; set; }
|
||||
public List<string> Errors { get; set; }
|
||||
|
||||
public DepartmentSyncStats()
|
||||
{
|
||||
Errors = new List<string>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// OA部门服务类
|
||||
/// </summary>
|
||||
public class OADepartmentService
|
||||
{
|
||||
private readonly string _connectionString;
|
||||
|
||||
public OADepartmentService()
|
||||
{
|
||||
_connectionString = ConfigurationManager.ConnectionStrings["OAConnection"]?.ConnectionString;
|
||||
if (string.IsNullOrEmpty(_connectionString))
|
||||
{
|
||||
throw new Exception("未找到OAConnection数据库连接字符串配置");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据部门名称查询OA部门ID
|
||||
/// </summary>
|
||||
/// <param name="departmentName">部门名称</param>
|
||||
/// <returns>部门ID,如果未找到则返回0</returns>
|
||||
public int GetDepartmentIdByName(string departmentName)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(departmentName))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
string sql = "SELECT id FROM hrmdepartment WHERE CANCELED IS NULL AND DEPARTMENTNAME = @DepartmentName";
|
||||
|
||||
using (var mysqlUtils = new MySqlUtils())
|
||||
{
|
||||
mysqlUtils.ConnectionString = _connectionString;
|
||||
using (var connection = mysqlUtils.GetConnection())
|
||||
using (var command = new MySqlCommand(sql, connection))
|
||||
{
|
||||
command.Parameters.AddWithValue("@DepartmentName", departmentName);
|
||||
|
||||
try
|
||||
{
|
||||
var result = command.ExecuteScalar();
|
||||
|
||||
if (result != null && result != DBNull.Value)
|
||||
{
|
||||
return Convert.ToInt32(result);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog($"查询部门 '{departmentName}' 的ID时发生异常: {ex.Message}");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查hrmdepartmentdefined表中是否存在指定DEPTID的记录
|
||||
/// </summary>
|
||||
/// <param name="deptId">OA部门ID</param>
|
||||
/// <returns>是否存在</returns>
|
||||
public bool CheckDepartmentDefinedExists(int deptId)
|
||||
{
|
||||
if (deptId <= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
string sql = "SELECT COUNT(1) FROM hrmdepartmentdefined WHERE DEPTID = @DeptId";
|
||||
|
||||
using (var mysqlUtils = new MySqlUtils())
|
||||
{
|
||||
mysqlUtils.ConnectionString = _connectionString;
|
||||
using (var connection = mysqlUtils.GetConnection())
|
||||
using (var command = new MySqlCommand(sql, connection))
|
||||
{
|
||||
command.Parameters.AddWithValue("@DeptId", deptId);
|
||||
|
||||
try
|
||||
{
|
||||
var count = Convert.ToInt32(command.ExecuteScalar());
|
||||
return count > 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog($"检查DEPTID={deptId}在hrmdepartmentdefined表中是否存在时发生异常: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新hrmdepartmentdefined表中的ddbmid字段
|
||||
/// </summary>
|
||||
/// <param name="deptId">OA部门ID</param>
|
||||
/// <param name="dingDeptId">钉钉部门ID</param>
|
||||
/// <returns>是否更新成功</returns>
|
||||
public bool UpdateDepartmentDefined(int deptId, long dingDeptId)
|
||||
{
|
||||
if (deptId <= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
string sql = "UPDATE hrmdepartmentdefined SET ddbmid = @Ddbmid WHERE DEPTID = @DeptId";
|
||||
|
||||
using (var mysqlUtils = new MySqlUtils())
|
||||
{
|
||||
mysqlUtils.ConnectionString = _connectionString;
|
||||
|
||||
try
|
||||
{
|
||||
var parameters = new[]
|
||||
{
|
||||
new MySqlParameter("@DeptId", deptId),
|
||||
new MySqlParameter("@Ddbmid", dingDeptId.ToString()) // ddbmid是varchar50
|
||||
};
|
||||
|
||||
int rowsAffected = mysqlUtils.ExecNonQuery(sql, parameters);
|
||||
bool success = rowsAffected > 0;
|
||||
|
||||
if (success)
|
||||
{
|
||||
LogHelper.WriteLog($"更新成功: DEPTID={deptId}, ddbmid={dingDeptId}");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"更新失败: DEPTID={deptId} 的记录不存在");
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog($"更新DEPTID={deptId}的ddbmid字段时发生异常: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 插入hrmdepartmentdefined表记录
|
||||
/// </summary>
|
||||
/// <param name="deptId">OA部门ID</param>
|
||||
/// <param name="dingDeptId">钉钉部门ID</param>
|
||||
/// <returns>是否插入成功</returns>
|
||||
public bool InsertDepartmentDefined(int deptId, long dingDeptId)
|
||||
{
|
||||
if (deptId <= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
string sql = "INSERT INTO hrmdepartmentdefined (DEPTID, ddbmid) VALUES (@DeptId, @Ddbmid)";
|
||||
|
||||
using (var mysqlUtils = new MySqlUtils())
|
||||
{
|
||||
mysqlUtils.ConnectionString = _connectionString;
|
||||
|
||||
try
|
||||
{
|
||||
var parameters = new[]
|
||||
{
|
||||
new MySqlParameter("@DeptId", deptId),
|
||||
new MySqlParameter("@Ddbmid", dingDeptId.ToString()) // ddbmid是varchar50
|
||||
};
|
||||
|
||||
int rowsAffected = mysqlUtils.ExecNonQuery(sql, parameters);
|
||||
bool success = rowsAffected > 0;
|
||||
|
||||
if (success)
|
||||
{
|
||||
LogHelper.WriteLog($"插入成功: DEPTID={deptId}, ddbmid={dingDeptId}");
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLog($"插入hrmdepartmentdefined表记录时发生异常: DEPTID={deptId}, ddbmid={dingDeptId}, 异常: {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 同步单个钉钉部门到OA数据库
|
||||
/// </summary>
|
||||
/// <param name="dingDept">钉钉部门信息</param>
|
||||
/// <returns>同步结果(1:更新成功, 2:插入成功, 0:失败或跳过)</returns>
|
||||
public int SyncSingleDepartment(Models.DepartmentInfo dingDept)
|
||||
{
|
||||
if (dingDept == null || string.IsNullOrWhiteSpace(dingDept.name))
|
||||
{
|
||||
LogHelper.WriteLog($"钉钉部门信息无效,跳过同步");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// 1. 根据部门名称查询OA部门ID
|
||||
int deptId = GetDepartmentIdByName(dingDept.name);
|
||||
|
||||
if (deptId <= 0)
|
||||
{
|
||||
LogHelper.WriteLog($"OA中未找到部门名称 '{dingDept.name}',DEPTID赋值为0,跳过同步");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// 2. 检查hrmdepartmentdefined表中是否存在该DEPTID的记录
|
||||
bool exists = CheckDepartmentDefinedExists(deptId);
|
||||
|
||||
// 3. 根据存在情况执行更新或插入
|
||||
bool success;
|
||||
if (exists)
|
||||
{
|
||||
success = UpdateDepartmentDefined(deptId, dingDept.dept_id);
|
||||
return success ? 1 : 0; // 1表示更新成功
|
||||
}
|
||||
else
|
||||
{
|
||||
success = InsertDepartmentDefined(deptId, dingDept.dept_id);
|
||||
return success ? 2 : 0; // 2表示插入成功
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量同步钉钉部门到OA数据库
|
||||
/// </summary>
|
||||
/// <param name="dingDepartments">钉钉部门列表</param>
|
||||
/// <returns>同步结果统计</returns>
|
||||
public DepartmentSyncStats SyncDepartments(List<Models.DepartmentInfo> dingDepartments)
|
||||
{
|
||||
int total = dingDepartments?.Count ?? 0;
|
||||
int updated = 0;
|
||||
int inserted = 0;
|
||||
var errors = new List<string>();
|
||||
|
||||
if (dingDepartments == null || total == 0)
|
||||
{
|
||||
errors.Add("钉钉部门列表为空");
|
||||
return new DepartmentSyncStats
|
||||
{
|
||||
Total = total,
|
||||
Updated = updated,
|
||||
Inserted = inserted,
|
||||
Errors = errors
|
||||
};
|
||||
}
|
||||
|
||||
LogHelper.WriteLog($"开始同步 {total} 个钉钉部门到OA数据库");
|
||||
|
||||
foreach (var dept in dingDepartments)
|
||||
{
|
||||
try
|
||||
{
|
||||
int result = SyncSingleDepartment(dept);
|
||||
|
||||
switch (result)
|
||||
{
|
||||
case 1:
|
||||
updated++;
|
||||
break;
|
||||
case 2:
|
||||
inserted++;
|
||||
break;
|
||||
case 0:
|
||||
// 记录跳过原因
|
||||
errors.Add($"部门 '{dept.name}' (钉钉ID: {dept.dept_id}) 同步失败或跳过");
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string errorMsg = $"同步部门 '{dept.name}' (钉钉ID: {dept.dept_id}) 时发生异常: {ex.Message}";
|
||||
errors.Add(errorMsg);
|
||||
LogHelper.WriteLog(errorMsg);
|
||||
}
|
||||
}
|
||||
|
||||
LogHelper.WriteLog($"同步完成: 总数={total}, 更新={updated}, 插入={inserted}, 失败/跳过={errors.Count}");
|
||||
return new DepartmentSyncStats
|
||||
{
|
||||
Total = total,
|
||||
Updated = updated,
|
||||
Inserted = inserted,
|
||||
Errors = errors
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+11280
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
</configSections>
|
||||
</configuration>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 733 B |
BIN
Binary file not shown.
+179
@@ -0,0 +1,179 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>System.Web.Http.Cors</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Web.Http.CorsHttpConfigurationExtensions">
|
||||
<summary>CORS-related extension methods for <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.CorsHttpConfigurationExtensions.EnableCors(System.Web.Http.HttpConfiguration)">
|
||||
<summary>Enables the support for CORS.</summary>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.CorsHttpConfigurationExtensions.EnableCors(System.Web.Http.HttpConfiguration,System.Web.Http.Cors.ICorsPolicyProvider)">
|
||||
<summary>Enables the support for CORS.</summary>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
<param name="defaultPolicyProvider">The default <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.CorsHttpConfigurationExtensions.GetCorsEngine(System.Web.Http.HttpConfiguration)">
|
||||
<summary>Gets the <see cref="T:System.Web.Cors.ICorsEngine" /> from the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
|
||||
<returns>The <see cref="T:System.Web.Cors.ICorsEngine" />.</returns>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.CorsHttpConfigurationExtensions.GetCorsPolicyProviderFactory(System.Web.Http.HttpConfiguration)">
|
||||
<summary>Gets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" /> from the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
|
||||
<returns>The <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" />.</returns>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.CorsHttpConfigurationExtensions.SetCorsEngine(System.Web.Http.HttpConfiguration,System.Web.Cors.ICorsEngine)">
|
||||
<summary>Sets the <see cref="T:System.Web.Cors.ICorsEngine" /> on the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
<param name="corsEngine">The <see cref="T:System.Web.Cors.ICorsEngine" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">httpConfiguration or corsEngine</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.CorsHttpConfigurationExtensions.SetCorsPolicyProviderFactory(System.Web.Http.HttpConfiguration,System.Web.Http.Cors.ICorsPolicyProviderFactory)">
|
||||
<summary>Sets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" /> on the <see cref="T:System.Web.Http.HttpConfiguration" />.</summary>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
<param name="corsPolicyProviderFactory">The <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">httpConfiguration or corsPolicyProviderFactory</exception>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory">
|
||||
<summary>An implementation of <see cref="T:System.Web.Http.Cors.ICorsPolicyProviderFactory" /> that returns the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" /> from the controller or action attribute.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory.#ctor">
|
||||
<summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory" /> class.</summary>
|
||||
</member>
|
||||
<member name="P:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory.DefaultPolicyProvider">
|
||||
<summary>Gets or sets the default <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</summary>
|
||||
<returns>The default <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</returns>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.AttributeBasedPolicyProviderFactory.GetCorsPolicyProvider(System.Net.Http.HttpRequestMessage)">
|
||||
<summary>Gets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" /> for the request.</summary>
|
||||
<returns>The <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</returns>
|
||||
<param name="request">The request.</param>
|
||||
<exception cref="T:System.ArgumentNullException">request</exception>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.CorsHttpRequestMessageExtensions">
|
||||
<summary>CORS-related extension methods for <see cref="T:System.Net.Http.HttpRequestMessage" />.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.CorsHttpRequestMessageExtensions.GetCorsRequestContext(System.Net.Http.HttpRequestMessage)">
|
||||
<summary>Gets the <see cref="T:System.Web.Cors.CorsRequestContext" /> for a given request.</summary>
|
||||
<returns>The <see cref="T:System.Web.Cors.CorsRequestContext" />.</returns>
|
||||
<param name="request">The <see cref="T:System.Net.Http.HttpRequestMessage" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">request</exception>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.CorsHttpResponseMessageExtensions">
|
||||
<summary>CORS-related extension methods for <see cref="T:System.Net.Http.HttpResponseMessage" />.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.CorsHttpResponseMessageExtensions.WriteCorsHeaders(System.Net.Http.HttpResponseMessage,System.Web.Cors.CorsResult)">
|
||||
<summary>Writes the CORS headers on the response.</summary>
|
||||
<param name="response">The <see cref="T:System.Net.Http.HttpResponseMessage" />.</param>
|
||||
<param name="corsResult">The <see cref="T:System.Web.Cors.CorsResult" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">response or corsResult</exception>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.CorsMessageHandler">
|
||||
<summary>Custom <see cref="T:System.Net.Http.DelegatingHandler" /> for handling CORS requests.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.CorsMessageHandler.#ctor(System.Web.Http.HttpConfiguration)">
|
||||
<summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.CorsMessageHandler" /> class.</summary>
|
||||
<param name="httpConfiguration">The <see cref="T:System.Web.Http.HttpConfiguration" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">httpConfiguration</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.CorsMessageHandler.HandleCorsPreflightRequestAsync(System.Net.Http.HttpRequestMessage,System.Web.Cors.CorsRequestContext,System.Threading.CancellationToken)">
|
||||
<summary>Handles the preflight request specified by CORS.</summary>
|
||||
<returns>The <see cref="T:System.Threading.Tasks.Task`1" /></returns>
|
||||
<param name="request">The request.</param>
|
||||
<param name="corsRequestContext">The cors request context.</param>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
<exception cref="T:System.ArgumentNullException">request or corsRequestContext</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.CorsMessageHandler.HandleCorsRequestAsync(System.Net.Http.HttpRequestMessage,System.Web.Cors.CorsRequestContext,System.Threading.CancellationToken)">
|
||||
<summary>Handles the actual CORS request.</summary>
|
||||
<returns>The <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
|
||||
<param name="request">The <see cref="T:System.Net.Http.HttpRequestMessage" />.</param>
|
||||
<param name="corsRequestContext">The <see cref="T:System.Web.Cors.CorsRequestContext" />.</param>
|
||||
<param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" />.</param>
|
||||
<exception cref="T:System.ArgumentNullException">request or corsRequestContext</exception>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.CorsMessageHandler.SendAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
|
||||
<summary>Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.</summary>
|
||||
<returns>Returns <see cref="T:System.Threading.Tasks.Task`1" />. The task object representing the asynchronous operation.</returns>
|
||||
<param name="request">The HTTP request message to send to the server.</param>
|
||||
<param name="cancellationToken">A cancellation token to cancel operation.</param>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.DisableCorsAttribute">
|
||||
<summary>This class defines an attribute that can be applied to an action or a controller to disable CORS.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.DisableCorsAttribute.#ctor">
|
||||
<summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.DisableCorsAttribute" /> class.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.DisableCorsAttribute.GetCorsPolicyAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
|
||||
<summary>Gets the CORS policy asynchronously.</summary>
|
||||
<returns>The newly created task for this operation.</returns>
|
||||
<param name="request">The request.</param>
|
||||
<param name="cancellationToken">The cancellation token assigned for this task.</param>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.EnableCorsAttribute">
|
||||
<summary>This class defines an attribute that can be applied to an action or a controller to enable CORS. By default, it allows all origins, methods and headers.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.EnableCorsAttribute.#ctor(System.String,System.String,System.String)">
|
||||
<summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.EnableCorsAttribute" /> class.</summary>
|
||||
<param name="origins">Comma-separated list of origins that are allowed to access the resource. Use "*" to allow all.</param>
|
||||
<param name="headers">Comma-separated list of headers that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
|
||||
<param name="methods">Comma-separated list of methods that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.EnableCorsAttribute.#ctor(System.String,System.String,System.String,System.String)">
|
||||
<summary>Initializes a new instance of the <see cref="T:System.Web.Http.Cors.EnableCorsAttribute" /> class.</summary>
|
||||
<param name="origins">Comma-separated list of origins that are allowed to access the resource. Use "*" to allow all.</param>
|
||||
<param name="headers">Comma-separated list of headers that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
|
||||
<param name="methods">Comma-separated list of methods that are supported by the resource. Use "*" to allow all. Use null or empty string to allow none.</param>
|
||||
<param name="exposedHeaders">Comma-separated list of headers that the resource might use and can be exposed. Use null or empty string to expose none.</param>
|
||||
</member>
|
||||
<member name="P:System.Web.Http.Cors.EnableCorsAttribute.ExposedHeaders">
|
||||
<summary>Gets the headers that the resource might use and can be exposed.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.EnableCorsAttribute.GetCorsPolicyAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)"></member>
|
||||
<member name="P:System.Web.Http.Cors.EnableCorsAttribute.Headers">
|
||||
<summary>Gets the headers that are supported by the resource.</summary>
|
||||
</member>
|
||||
<member name="P:System.Web.Http.Cors.EnableCorsAttribute.Methods">
|
||||
<summary>Gets the methods that are supported by the resource.</summary>
|
||||
</member>
|
||||
<member name="P:System.Web.Http.Cors.EnableCorsAttribute.Origins">
|
||||
<summary>Gets the origins that are allowed to access the resource.</summary>
|
||||
</member>
|
||||
<member name="P:System.Web.Http.Cors.EnableCorsAttribute.PreflightMaxAge">
|
||||
<summary>Gets or sets the number of seconds the results of a preflight request can be cached.</summary>
|
||||
</member>
|
||||
<member name="P:System.Web.Http.Cors.EnableCorsAttribute.SupportsCredentials">
|
||||
<summary>Gets or sets a value indicating whether the resource supports user credentials in the request.</summary>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.ICorsPolicyProvider">
|
||||
<summary>Provides an abstraction for getting the <see cref="T:System.Web.Cors.CorsPolicy" />.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.ICorsPolicyProvider.GetCorsPolicyAsync(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)">
|
||||
<summary>Gets the <see cref="T:System.Web.Cors.CorsPolicy" />.</summary>
|
||||
<returns>The <see cref="T:System.Web.Cors.CorsPolicy" />.</returns>
|
||||
<param name="request">The request.</param>
|
||||
<param name="cancellationToken">The cancellation token.</param>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.ICorsPolicyProviderFactory">
|
||||
<summary>Provides an abstraction for getting the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</summary>
|
||||
</member>
|
||||
<member name="M:System.Web.Http.Cors.ICorsPolicyProviderFactory.GetCorsPolicyProvider(System.Net.Http.HttpRequestMessage)">
|
||||
<summary>Gets the <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" /> for the request.</summary>
|
||||
<returns>The <see cref="T:System.Web.Http.Cors.ICorsPolicyProvider" />.</returns>
|
||||
<param name="request">The request.</param>
|
||||
</member>
|
||||
<member name="T:System.Web.Http.Cors.Tracing.TraceCategories">
|
||||
<summary>Category names traced by the default CORS tracing implementation.</summary>
|
||||
</member>
|
||||
<member name="F:System.Web.Http.Cors.Tracing.TraceCategories.CorsCategory">
|
||||
<summary>The trace category for CORS-related events.</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
+336
@@ -0,0 +1,336 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" 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>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{96026F2A-5866-4570-B6E5-DDB8E5A1F919}</ProjectGuid>
|
||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>GuangFu.StringTracing</RootNamespace>
|
||||
<AssemblyName>GuangFu.StringTracing</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<Use64BitIISExpress />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>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\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Google.Protobuf.3.5.1\lib\net45\Google.Protobuf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Kingdee.BOS.WebApi.Client, Version=8.1.620.12, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>C:\Program Files (x86)\OPSOFT\OPSOFTV60\AP\BIN\Kingdee.BOS.WebApi.Client.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net, Version=2.0.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\log4net.2.0.12\lib\net45\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="MySql.Data, Version=8.0.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.8.0.12\lib\net452\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json.Bson, Version=1.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.Bson.1.0.2\lib\net45\Newtonsoft.Json.Bson.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\netstandard1.1\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ComponentModel" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Data.Entity" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Drawing.Design" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.5\lib\netstandard1.1\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.Formatting, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.6.0.0\lib\net45\System.Net.Http.Formatting.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.3\lib\netstandard1.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Web.Cors, Version=5.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.Cors.5.3.0\lib\net45\System.Web.Cors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Abstractions" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Web.Http, Version=5.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.3.0\lib\net45\System.Web.Http.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Http.Cors, Version=5.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Cors.5.3.0\lib\net45\System.Web.Http.Cors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Http.WebHost, Version=5.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.5.3.0\lib\net45\System.Web.Http.WebHost.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Routing" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="EntityFramework">
|
||||
<HintPath>..\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http">
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http.WebRequest">
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.Helpers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\System.Web.Mvc.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Optimization">
|
||||
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.0.0\lib\net40\System.Web.Optimization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Providers">
|
||||
<HintPath>..\packages\Microsoft.AspNet.Providers.Core.1.1\lib\net40\System.Web.Providers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.Razor.2.0.20710.0\lib\net40\System.Web.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Deployment.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="WebGrease">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\WebGrease.1.1.0\lib\WebGrease.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Antlr3.Runtime">
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\WebGrease.1.1.0\lib\Antlr3.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App_Start\BundleConfig.cs" />
|
||||
<Compile Include="App_Start\FilterConfig.cs" />
|
||||
<Compile Include="App_Start\RouteConfig.cs" />
|
||||
<Compile Include="App_Start\WebApiConfig.cs" />
|
||||
<Compile Include="Common\CrmApi.cs" />
|
||||
<Compile Include="Common\CtripApi.cs" />
|
||||
<Compile Include="Common\DBHelpe.cs" />
|
||||
<Compile Include="Common\DingDingApi.cs" />
|
||||
<Compile Include="Common\DingDingDepartmentService.cs" />
|
||||
<Compile Include="Common\Extensions.cs" />
|
||||
<Compile Include="Common\FbtApi.cs" />
|
||||
<Compile Include="Common\LogHelper.cs" />
|
||||
<Compile Include="Common\MySqlUtils.cs" />
|
||||
<Compile Include="Common\OADepartmentService.cs" />
|
||||
<Compile Include="Common\Other.cs" />
|
||||
<Compile Include="Common\Public.cs" />
|
||||
<Compile Include="Common\ResponseStatus.cs" />
|
||||
<Compile Include="Common\WmsCommonFunction.cs" />
|
||||
<Compile Include="Controllers\DifferentialController.cs" />
|
||||
<Compile Include="Controllers\DingDingDepartmentController.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Controllers\ValuesController.cs" />
|
||||
<Compile Include="Global.asax.cs">
|
||||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Models\DingDingDepartmentModels.cs" />
|
||||
<Compile Include="Models\FbtOrderModels.cs" />
|
||||
<Compile Include="Models\ReturnInfo.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_flat_75_ffffff_40x100.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_glass_55_fbf9ee_1x400.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_glass_65_ffffff_1x400.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_glass_75_dadada_1x400.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_glass_75_e6e6e6_1x400.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_glass_95_fef1ec_1x400.png" />
|
||||
<Content Include="Content\themes\base\images\ui-bg_highlight-soft_75_cccccc_1x100.png" />
|
||||
<Content Include="Content\themes\base\images\ui-icons_222222_256x240.png" />
|
||||
<Content Include="Content\themes\base\images\ui-icons_2e83ff_256x240.png" />
|
||||
<Content Include="Content\themes\base\images\ui-icons_454545_256x240.png" />
|
||||
<Content Include="Content\themes\base\images\ui-icons_888888_256x240.png" />
|
||||
<Content Include="Content\themes\base\images\ui-icons_cd0a0a_256x240.png" />
|
||||
<Content Include="Content\themes\base\jquery-ui.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.accordion.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.all.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.autocomplete.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.base.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.button.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.core.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.datepicker.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.dialog.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.progressbar.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.resizable.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.selectable.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.slider.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.tabs.css" />
|
||||
<Content Include="Content\themes\base\jquery.ui.theme.css" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_flat_0_aaaaaa_40x100.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_flat_75_ffffff_40x100.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_glass_55_fbf9ee_1x400.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_glass_65_ffffff_1x400.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_glass_75_dadada_1x400.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_glass_75_e6e6e6_1x400.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_glass_95_fef1ec_1x400.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-bg_highlight-soft_75_cccccc_1x100.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-icons_222222_256x240.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-icons_2e83ff_256x240.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-icons_454545_256x240.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-icons_888888_256x240.png" />
|
||||
<Content Include="Content\themes\base\minified\images\ui-icons_cd0a0a_256x240.png" />
|
||||
<Content Include="Content\themes\base\minified\jquery-ui.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.accordion.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.autocomplete.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.button.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.core.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.datepicker.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.dialog.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.progressbar.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.resizable.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.selectable.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.slider.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.tabs.min.css" />
|
||||
<Content Include="Content\themes\base\minified\jquery.ui.theme.min.css" />
|
||||
<Content Include="favicon.ico" />
|
||||
<Content Include="Global.asax" />
|
||||
<None Include="Scripts\jquery-1.7.1.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-1.7.1.js" />
|
||||
<Content Include="Scripts\jquery-1.7.1.min.js" />
|
||||
<None Include="Scripts\jquery.validate-vsdoc.js" />
|
||||
<Content Include="Scripts\jquery-ui-1.8.20.js" />
|
||||
<Content Include="Scripts\jquery-ui-1.8.20.min.js" />
|
||||
<Content Include="Scripts\jquery.unobtrusive-ajax.js" />
|
||||
<Content Include="Scripts\jquery.unobtrusive-ajax.min.js" />
|
||||
<Content Include="Scripts\jquery.validate.js" />
|
||||
<Content Include="Scripts\jquery.validate.min.js" />
|
||||
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
|
||||
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
||||
<Content Include="Scripts\knockout-2.1.0.debug.js" />
|
||||
<Content Include="Scripts\knockout-2.1.0.js" />
|
||||
<Content Include="Scripts\modernizr-2.5.3.js" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\Site.css" />
|
||||
<Content Include="Images\accent.png" />
|
||||
<Content Include="Images\bullet.png" />
|
||||
<Content Include="Images\heroAccent.png" />
|
||||
<Content Include="Images\orderedList0.png" />
|
||||
<Content Include="Images\orderedList1.png" />
|
||||
<Content Include="Images\orderedList2.png" />
|
||||
<Content Include="Images\orderedList3.png" />
|
||||
<Content Include="Images\orderedList4.png" />
|
||||
<Content Include="Images\orderedList5.png" />
|
||||
<Content Include="Images\orderedList6.png" />
|
||||
<Content Include="Images\orderedList7.png" />
|
||||
<Content Include="Images\orderedList8.png" />
|
||||
<Content Include="Images\orderedList9.png" />
|
||||
<Content Include="Scripts\_references.js" />
|
||||
<Content Include="Views\Web.config" />
|
||||
<Content Include="Views\_ViewStart.cshtml" />
|
||||
<Content Include="Views\Home\Index.cshtml" />
|
||||
<Content Include="Views\Shared\Error.cshtml" />
|
||||
<Content Include="Views\Shared\_Layout.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
|
||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
|
||||
</Target>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>True</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:14381/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target> -->
|
||||
</Project>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+16192
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+35
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的常规信息通过下列特性集
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("GuangFu.StringTracing")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("GuangFu.StringTracing")]
|
||||
[assembly: AssemblyCopyright("版权所有(C) 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的某个类型,
|
||||
// 请针对该类型将 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("3a59917e-8981-4818-98ba-3a6bc134bf35")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 内部版本号
|
||||
// 修订号
|
||||
//
|
||||
// 可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值,
|
||||
// 方法是按如下所示使用“*”:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
2026-05-19 16:21:58,805 [6] INFO LogHelper - 申请单号CCSQ202605140461构建预算数据落地的请求数据: {"ApprovalNumber":"CCSQ202605140461","Signature":"929f3523599ae3a7f3ef2ceda3a3805eb3c1ee18","Auth":{"AppKey":"obk_GXHJ","Ticket":"6a0c10e49b93b0e434c8ef81"},"BudgetInfoList":[{"BudgetAmount":3.00,"Products":12}]}
|
||||
2026-05-19 16:22:03,083 [6] INFO LogHelper - 申请单号CCSQ202605140461携程预算数据落地接口响应: {"status":{"errorCode":0,"message":"成功","success":true}}
|
||||
2026-05-19 16:22:03,207 [6] INFO LogHelper - 申请单号CCSQ202605140461预算数据落地同步成功,已更新OA表状态为2
|
||||
2026-05-19 16:22:03,267 [6] INFO LogHelper - 申请单号CCSQ202605140461同步成功,已更新OA表状态为2
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 扩展方法类
|
||||
/// </summary>
|
||||
public static class Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全转换为字符串(处理null和DBNull)
|
||||
/// </summary>
|
||||
public static string ToStringEx(this object obj)
|
||||
{
|
||||
if (obj == null || obj == DBNull.Value)
|
||||
return string.Empty;
|
||||
return obj.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 安全转换为整数(处理null和DBNull)
|
||||
/// </summary>
|
||||
public static int ToInt(this object obj)
|
||||
{
|
||||
if (obj == null || obj == DBNull.Value)
|
||||
return 0;
|
||||
|
||||
int result;
|
||||
if (int.TryParse(obj.ToString(), out result))
|
||||
return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 安全转换为可为空的DateTime(处理null和DBNull)
|
||||
/// </summary>
|
||||
public static DateTime? ToDateTimeNullable(this object obj)
|
||||
{
|
||||
if (obj == null || obj == DBNull.Value)
|
||||
return null;
|
||||
|
||||
DateTime result;
|
||||
if (DateTime.TryParse(obj.ToString(), out result))
|
||||
return result;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断字符串是否为空或空白
|
||||
/// </summary>
|
||||
public static bool IsNullOrEmpty(this string str)
|
||||
{
|
||||
return string.IsNullOrEmpty(str);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断字符串是否为空、空白或仅包含空格
|
||||
/// </summary>
|
||||
public static bool IsNullOrWhiteSpace(this string str)
|
||||
{
|
||||
return string.IsNullOrWhiteSpace(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* jQuery UI Slider 1.8.20
|
||||
*
|
||||
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Licensed under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Slider#theming
|
||||
*/
|
||||
.ui-slider { position: relative; text-align: left; }
|
||||
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
||||
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
||||
|
||||
.ui-slider-horizontal { height: .8em; }
|
||||
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
||||
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
||||
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
||||
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
||||
|
||||
.ui-slider-vertical { width: .8em; height: 100px; }
|
||||
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
||||
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
||||
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
||||
.ui-slider-vertical .ui-slider-range-max { top: 0; }
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><doc>
|
||||
<assembly>
|
||||
<name>System.Threading.Tasks.Extensions</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Runtime.CompilerServices.ValueTaskAwaiter`1">
|
||||
<typeparam name="TResult"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.ValueTaskAwaiter`1.IsCompleted">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ValueTaskAwaiter`1.OnCompleted(System.Action)">
|
||||
<param name="continuation"></param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ValueTaskAwaiter`1.UnsafeOnCompleted(System.Action)">
|
||||
<param name="continuation"></param>
|
||||
</member>
|
||||
<member name="T:System.Threading.Tasks.ValueTask`1">
|
||||
<summary>Provides a value type that wraps a <see cref="Task{TResult}"></see> and a <typeparamref name="TResult">TResult</typeparamref>, only one of which is used.</summary>
|
||||
<typeparam name="TResult">The result.</typeparam>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.#ctor(System.Threading.Tasks.Task{`0})">
|
||||
<summary>Initializes a new instance of the <see cref="ValueTask{TResult}"></see> class using the supplied task that represents the operation.</summary>
|
||||
<param name="task">The task.</param>
|
||||
<exception cref="T:System.ArgumentNullException">The <paramref name="task">task</paramref> argument is null.</exception>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.#ctor(`0)">
|
||||
<summary>Initializes a new instance of the <see cref="ValueTask{TResult}"></see> class using the supplied result of a successful operation.</summary>
|
||||
<param name="result">The result.</param>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.AsTask">
|
||||
<summary>Retrieves a <see cref="Task{TResult}"></see> object that represents this <see cref="ValueTask{TResult}"></see>.</summary>
|
||||
<returns>The <see cref="Task{TResult}"></see> object that is wrapped in this <see cref="ValueTask{TResult}"></see> if one exists, or a new <see cref="Task{TResult}"></see> object that represents the result.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.ConfigureAwait(System.Boolean)">
|
||||
<summary>Configures an awaiter for this value.</summary>
|
||||
<param name="continueOnCapturedContext">true to attempt to marshal the continuation back to the captured context; otherwise, false.</param>
|
||||
<returns>The configured awaiter.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.CreateAsyncMethodBuilder">
|
||||
<summary>Creates a method builder for use with an async method.</summary>
|
||||
<returns>The created builder.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.Equals(System.Object)">
|
||||
<summary>Determines whether the specified object is equal to the current object.</summary>
|
||||
<param name="obj">The object to compare with the current object.</param>
|
||||
<returns>true if the specified object is equal to the current object; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.Equals(System.Threading.Tasks.ValueTask{`0})">
|
||||
<summary>Determines whether the specified <see cref="ValueTask{TResult}"></see> object is equal to the current <see cref="ValueTask{TResult}"></see> object.</summary>
|
||||
<param name="other">The object to compare with the current object.</param>
|
||||
<returns>true if the specified object is equal to the current object; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.GetAwaiter">
|
||||
<summary>Creates an awaiter for this value.</summary>
|
||||
<returns>The awaiter.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.GetHashCode">
|
||||
<summary>Returns the hash code for this instance.</summary>
|
||||
<returns>The hash code for the current object.</returns>
|
||||
</member>
|
||||
<member name="P:System.Threading.Tasks.ValueTask`1.IsCanceled">
|
||||
<summary>Gets a value that indicates whether this object represents a canceled operation.</summary>
|
||||
<returns>true if this object represents a canceled operation; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="P:System.Threading.Tasks.ValueTask`1.IsCompleted">
|
||||
<summary>Gets a value that indicates whether this object represents a completed operation.</summary>
|
||||
<returns>true if this object represents a completed operation; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="P:System.Threading.Tasks.ValueTask`1.IsCompletedSuccessfully">
|
||||
<summary>Gets a value that indicates whether this object represents a successfully completed operation.</summary>
|
||||
<returns>true if this object represents a successfully completed operation; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="P:System.Threading.Tasks.ValueTask`1.IsFaulted">
|
||||
<summary>Gets a value that indicates whether this object represents a failed operation.</summary>
|
||||
<returns>true if this object represents a failed operation; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.op_Equality(System.Threading.Tasks.ValueTask{`0},System.Threading.Tasks.ValueTask{`0})">
|
||||
<summary>Compares two values for equality.</summary>
|
||||
<param name="left">The first value to compare.</param>
|
||||
<param name="right">The second value to compare.</param>
|
||||
<returns>true if the two <see cref="ValueTask{TResult}"></see> values are equal; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.op_Inequality(System.Threading.Tasks.ValueTask{`0},System.Threading.Tasks.ValueTask{`0})">
|
||||
<summary>Determines whether two <see cref="ValueTask{TResult}"></see> values are unequal.</summary>
|
||||
<param name="left">The first value to compare.</param>
|
||||
<param name="right">The seconed value to compare.</param>
|
||||
<returns>true if the two <see cref="ValueTask{TResult}"></see> values are not equal; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="P:System.Threading.Tasks.ValueTask`1.Result">
|
||||
<summary>Gets the result.</summary>
|
||||
<returns>The result.</returns>
|
||||
</member>
|
||||
<member name="M:System.Threading.Tasks.ValueTask`1.ToString">
|
||||
<summary>Returns a string that represents the current object.</summary>
|
||||
<returns>A string that represents the current object.</returns>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute">
|
||||
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute.#ctor(System.Type)">
|
||||
<param name="builderType"></param>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute.BuilderType">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1">
|
||||
<typeparam name="TResult"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.AwaitOnCompleted``2(``0@,``1@)">
|
||||
<param name="awaiter"></param>
|
||||
<param name="stateMachine"></param>
|
||||
<typeparam name="TAwaiter"></typeparam>
|
||||
<typeparam name="TStateMachine"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.AwaitUnsafeOnCompleted``2(``0@,``1@)">
|
||||
<param name="awaiter"></param>
|
||||
<param name="stateMachine"></param>
|
||||
<typeparam name="TAwaiter"></typeparam>
|
||||
<typeparam name="TStateMachine"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.Create">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetException(System.Exception)">
|
||||
<param name="exception"></param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetResult(`0)">
|
||||
<param name="result"></param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine)">
|
||||
<param name="stateMachine"></param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.Start``1(``0@)">
|
||||
<param name="stateMachine"></param>
|
||||
<typeparam name="TStateMachine"></typeparam>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1.Task">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter">
|
||||
<typeparam name="TResult"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.IsCompleted">
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.OnCompleted(System.Action)">
|
||||
<param name="continuation"></param>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.UnsafeOnCompleted(System.Action)">
|
||||
<param name="continuation"></param>
|
||||
</member>
|
||||
<member name="T:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1">
|
||||
<typeparam name="TResult"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.GetAwaiter">
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+2094
File diff suppressed because it is too large.
Load diff
+53
@@ -0,0 +1,53 @@
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<div class="float-left">
|
||||
<p class="site-title">
|
||||
<a href="~/">ASP.NET Web API</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div id="body">
|
||||
<section class="featured">
|
||||
<div class="content-wrapper">
|
||||
<hgroup class="title">
|
||||
<h1>欢迎使用 ASP.NET Web API!</h1>
|
||||
<h2>修改此模板中的代码以快速开始您的 ASP.NET Web API 开发。</h2>
|
||||
</hgroup>
|
||||
<p>
|
||||
使用 ASP.NET Web API 可以直接通过 HTTP 向
|
||||
Web 公开你的应用程序、数据和服务。
|
||||
</p>
|
||||
<p>
|
||||
若要了解有关 ASP.NET Web API 的详细信息,请访问
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkID=238195" title="ASP.NET Web API Website">http://asp.net/web-api</a>。
|
||||
该页提供 <mark>视频、教程和示例</mark> 以帮助你充分利用 ASP.NET Web API。
|
||||
如果你对 ASP.NET Web API 有任何疑问,请访问
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkID=238196" title="ASP.NET Web API Forum">我们的论坛</a>。
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="content-wrapper main-content clear-fix">
|
||||
<h3>下面是我们建议的步骤:</h3>
|
||||
<ol class="round">
|
||||
<li class="one">
|
||||
<h5>开始使用</h5>
|
||||
ASP.NET Web API 是一个框架,您可以通过该框架轻松生成可访问
|
||||
多种客户端(包括浏览器和移动设备)的 HTTP 服务。ASP.NET Web API
|
||||
是一个用于在 .NET Framework 之上生成 REST 样式的应用程序的理想平台。
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkId=245160">了解详细信息...</a>
|
||||
</li>
|
||||
|
||||
<li class="two">
|
||||
<h5>添加 NuGet 程序包并快速开始编码</h5>
|
||||
通过 NuGet,可以轻松地安装和更新免费的库和工具。
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkId=245161">了解详细信息...</a>
|
||||
</li>
|
||||
<li class="three">
|
||||
<h5>查找 Web 宿主</h5>
|
||||
你可以轻松找到所提供的功能和价格
|
||||
都适合你应用程序的 Web 宿主公司。
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkId=245164">了解详细信息...</a>
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
</div>
|
||||
+2308
File diff suppressed because it is too large.
Load diff
BIN
Binary file not shown.
+14323
File diff suppressed because it is too large.
Load diff
+11
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
|
||||
<remove name="OPTIONSVerbHandler" />
|
||||
<remove name="TRACEVerbHandler" />
|
||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+11
@@ -0,0 +1,11 @@
|
||||
/*!
|
||||
* jQuery UI Progressbar 1.8.20
|
||||
*
|
||||
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Licensed under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Progressbar#theming
|
||||
*/
|
||||
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
|
||||
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
||||
BIN
Binary file not shown.
+5717
File diff suppressed because it is too large.
Load diff
+681
@@ -0,0 +1,681 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace GuangFu.StringTracing.Common
|
||||
{
|
||||
public class CrmApi
|
||||
{
|
||||
#region 获取CRM系统Token
|
||||
public string GetToken()
|
||||
{
|
||||
string path = "http://esb.gs-robot.com:8800/REST_REST/original/02099000000004/02099";
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
TokenData tokenData = JsonConvert.DeserializeObject<TokenData>(result);
|
||||
return tokenData.token_type + " " + tokenData.access_token;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 创建接口
|
||||
public string CreateApi(string apiKey, string Token, string JsonData)
|
||||
{
|
||||
string path = "http://esb.gs-robot.com:8800/REST_REST/original/02099000000001/02099?apiKey=" + apiKey;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent(JsonData);
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 更新接口
|
||||
|
||||
public string UpdateApi(string apiKey, string Id, string Token, string JsonData)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com//rest/data/v2.0/xobjects/" + apiKey + "/" + Id;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent(JsonData);
|
||||
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), path)
|
||||
{
|
||||
Content = httpContent
|
||||
};
|
||||
HttpResponseMessage response = httpClient.SendAsync(request).Result;
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除接口
|
||||
|
||||
public string DeleteApi(string apiKey, string Id, string Token, string JsonData)
|
||||
{
|
||||
string path = "http://esb.gs-robot.com:8800/REST_REST/original/02099000000003/02099?apiKey=" + apiKey + "&id=" + Id;
|
||||
string result = string.Empty;
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Authorization =
|
||||
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.DeleteAsync(path).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 用SQL查询接口
|
||||
public string SelectSQLApi(string q, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com//rest/data/v2/query?q=" + q;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.GetAsync(path).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取订单头信息
|
||||
public string GetOrderInfoApi(string OrderID, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com//rest/data/v2.0/xobjects/order/" + OrderID;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.GetAsync(path).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 创建订单头
|
||||
public string CreateOrderInfoApi(string JsonData, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com/rest/data/v2.0/xobjects/order";
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent(JsonData);
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取订单明细信息
|
||||
public string GetOrderEntryInfoApi(string OrderID, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com//rest/data/v2.0/xobjects/orderProduct/" + OrderID;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.GetAsync(path).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 创建订单明细
|
||||
public string CreateOrderEntryInfoApi(string JsonData, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com/rest/data/v2.0/xobjects/orderProduct";
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent(JsonData);
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.PostAsync(path, httpContent).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 订单生效
|
||||
public string OrderActivation(string Id, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com//rest/data/v2.0/xobjects/order/actions/activation?recordId=" + Id;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), path)
|
||||
{
|
||||
Content = httpContent
|
||||
};
|
||||
HttpResponseMessage response = httpClient.SendAsync(request).Result;
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取CRM组织内码
|
||||
public string GetCRMOrgID(string OrgNumber, string Token)
|
||||
{
|
||||
string FOrgId = string.Empty;
|
||||
string SelSQL = "select id from salesOrganization__c where code__c = '" + OrgNumber + "'";
|
||||
string SelData = SelectSQLApi(SelSQL, Token);
|
||||
SelSQLData selSQLData1 = JsonConvert.DeserializeObject<SelSQLData>(SelData);
|
||||
int count1 = selSQLData1.result.count;
|
||||
if (count1 > 0)
|
||||
{
|
||||
List<Dictionary<string, object>> keys = selSQLData1.result.records;
|
||||
FOrgId = keys[0]["id"].ToString();
|
||||
}
|
||||
return FOrgId;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取钉钉员工内码
|
||||
public string GetDingDingUserID(string userids, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com/rest/auc/v2.0/third-party/actions/id-mapping?source=dingtalk&userIds=" + userids;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.GetAsync(path).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取CRM交付与发货表头信息
|
||||
public string GetDeliveryApplicationApi(string BillNO, string Token)
|
||||
{
|
||||
string path = "https://api-p05.xiaoshouyi.com/rest/data/v2.0/xobjects/deliveryRecord/" + BillNO;
|
||||
string result = string.Empty;
|
||||
|
||||
HttpContent httpContent = new StringContent("");
|
||||
|
||||
//设置Http的内容标头
|
||||
httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");
|
||||
//设置Http的内容标头的字符
|
||||
httpContent.Headers.ContentType.CharSet = "utf-8";
|
||||
|
||||
using (HttpClient httpClient = new HttpClient())
|
||||
{
|
||||
httpClient.DefaultRequestHeaders.Add("Authorization", Token);
|
||||
|
||||
//异步Post
|
||||
HttpResponseMessage response = httpClient.GetAsync(path).Result;
|
||||
//确保Http响应成功
|
||||
if (response.IsSuccessStatusCode)
|
||||
{
|
||||
//异步读取json
|
||||
result = response.Content.ReadAsStringAsync().Result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 日期转时间戳
|
||||
public long ToUnixTimeMilliseconds(DateTime dateTime)
|
||||
{
|
||||
DateTime UnixEpoch =
|
||||
new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||
DateTime utcTime = dateTime.ToUniversalTime();
|
||||
TimeSpan timeSpan = utcTime - UnixEpoch;
|
||||
return (long)timeSpan.TotalMilliseconds;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 时间戳转日期
|
||||
public string ToMillisecondsUnixTime(long unixTime)
|
||||
{
|
||||
DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
|
||||
dtDateTime = dtDateTime.AddMilliseconds(unixTime).ToLocalTime(); // 转换为本地时间
|
||||
return dtDateTime.ToString("yyyy-MM-dd");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
#region 自定义变量
|
||||
public class TokenData
|
||||
{
|
||||
public string access_token;
|
||||
public string token_type;
|
||||
public string expires_in;
|
||||
public string scope;
|
||||
public string tenant_id;
|
||||
public string login_type;
|
||||
public string encryption_key;
|
||||
public string client_id;
|
||||
public string passport_id;
|
||||
public string mobile_params;
|
||||
public string instance_uri;
|
||||
}
|
||||
|
||||
public class Data
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string id { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string objectApiKey { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string busiType { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
}
|
||||
|
||||
public class CreateReturnData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string code { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string msg { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public Data data { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 自定义变量
|
||||
public class UpData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string customItem168__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string productName { get; set; }
|
||||
/// <summary>
|
||||
/// 测试物料21
|
||||
/// </summary>
|
||||
public string customItem161__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int bomType__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int parentId { get; set; }
|
||||
}
|
||||
|
||||
public class UpdataRoot
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public UpData data { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 查询SQL返回类
|
||||
public class Result
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int totalSize { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int count { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public List<Dictionary<string, object>> records { get; set; }
|
||||
}
|
||||
|
||||
public class SelSQLData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string code { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string msg { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public List<string> ext { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public Result result { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 创建产品目录类
|
||||
public class ProductCategoryData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string entityType { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string code__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string productModel__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string enableStatus { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string parentName { get; set; }
|
||||
}
|
||||
|
||||
public class CProductCategory
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public ProductCategoryData data { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 创建产品类
|
||||
public class ProductData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string entityType { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string customItem168__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string productName { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string customItem161__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string fscProductModel { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string enableStatus { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string defaultTaxRate__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string baseUnitId { get; set; }
|
||||
public bool isActiveBom__c { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string parentId { get; set; }
|
||||
}
|
||||
|
||||
public class ProductRoot
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public ProductData data { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 更新交付与发货状态
|
||||
public class DeliveryRecordRoot
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DeliveryRecordData data { get; set; }
|
||||
}
|
||||
public class DeliveryRecordData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string syncStatus__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string syncMessage__c { get; set; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 创建BOM类
|
||||
|
||||
public class BOMRoot
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public BOMData data { get; set; }
|
||||
}
|
||||
public class BOMData
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string entityType { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string parentProductCode__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string bomType__c { get; set; }
|
||||
public string enableStatus__c { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string bomShortName__c { get; set; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
/*!
|
||||
* jQuery UI Datepicker 1.8.20
|
||||
*
|
||||
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Licensed under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Datepicker#theming
|
||||
*/
|
||||
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
||||
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
||||
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
||||
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
||||
.ui-datepicker .ui-datepicker-next { right:2px; }
|
||||
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
||||
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
||||
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
||||
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
||||
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
||||
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
||||
.ui-datepicker select.ui-datepicker-month,
|
||||
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
||||
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
||||
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
||||
.ui-datepicker td { border: 0; padding: 1px; }
|
||||
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
||||
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
||||
|
||||
/* with multiple calendars */
|
||||
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
||||
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
||||
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
||||
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
||||
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
||||
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
||||
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
||||
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
||||
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
||||
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
||||
|
||||
/* RTL support */
|
||||
.ui-datepicker-rtl { direction: rtl; }
|
||||
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
||||
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
||||
|
||||
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
||||
.ui-datepicker-cover {
|
||||
display: none; /*sorry for IE5*/
|
||||
display/**/: block; /*sorry for IE5*/
|
||||
position: absolute; /*must have*/
|
||||
z-index: -1; /*must have*/
|
||||
filter: mask(); /*must have*/
|
||||
top: -4px; /*must have*/
|
||||
left: -4px; /*must have*/
|
||||
width: 200px; /*must have*/
|
||||
height: 200px; /*must have*/
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace GuangFu.StringTracing.Controllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
Loaded 100 of 6522 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user