baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
BIN
Binary file not shown.
+548
@@ -0,0 +1,548 @@
|
||||
using GuangFu.StringTracing.Common;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GuangFu.StringTracing.Models
|
||||
{
|
||||
#region 订单相关响应模型
|
||||
/// <summary>
|
||||
/// 分贝通订单列表响应
|
||||
/// </summary>
|
||||
public class FbtOrderListResponse
|
||||
{
|
||||
public string trace_id { get; set; }
|
||||
public int code { get; set; }
|
||||
public string msg { get; set; }
|
||||
public FbtOrderListData data { get; set; }
|
||||
public string request_id { get; set; }
|
||||
}
|
||||
|
||||
public class FbtOrderListData
|
||||
{
|
||||
public List<FbtOrder> orders { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分贝通订单基础信息
|
||||
/// </summary>
|
||||
public class FbtOrder
|
||||
{
|
||||
public string id { get; set; }
|
||||
public string ticket_id { get; set; }
|
||||
public int state { get; set; }
|
||||
public bool international_air { get; set; }
|
||||
public int? train_status { get; set; }
|
||||
public int? hotel_type { get; set; }
|
||||
public FbtTrip trip { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 行程信息
|
||||
/// </summary>
|
||||
public class FbtTrip
|
||||
{
|
||||
public string start_city_id { get; set; }
|
||||
public string end_city_id { get; set; }
|
||||
public string start_time { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 机票订单详情响应
|
||||
/// </summary>
|
||||
public class FbtAirOrderDetailResponse
|
||||
{
|
||||
public int code { get; set; }
|
||||
public FbtAirOrderDetailData data { get; set; }
|
||||
}
|
||||
|
||||
public class FbtAirOrderDetailData
|
||||
{
|
||||
public FbtPrice price { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 酒店订单详情响应
|
||||
/// </summary>
|
||||
public class FbtHotelOrderDetailResponse
|
||||
{
|
||||
public int code { get; set; }
|
||||
public FbtHotelOrderDetailData data { get; set; }
|
||||
}
|
||||
|
||||
public class FbtHotelOrderDetailData
|
||||
{
|
||||
public FbtPrice price { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 火车订单详情响应
|
||||
/// </summary>
|
||||
public class FbtTrainOrderDetailResponse
|
||||
{
|
||||
public int code { get; set; }
|
||||
public FbtTrainOrderDetailData data { get; set; }
|
||||
}
|
||||
|
||||
public class FbtTrainOrderDetailData
|
||||
{
|
||||
public FbtTrainPrice price { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用车订单详情响应
|
||||
/// </summary>
|
||||
public class FbtTaxiOrderDetailResponse
|
||||
{
|
||||
public int code { get; set; }
|
||||
public FbtTaxiOrderDetailData data { get; set; }
|
||||
}
|
||||
|
||||
public class FbtTaxiOrderDetailData
|
||||
{
|
||||
public FbtPrice price { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 价格信息(机票、酒店、用车)
|
||||
/// </summary>
|
||||
public class FbtPrice
|
||||
{
|
||||
public string corporate_surplus { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 火车价格信息
|
||||
/// </summary>
|
||||
public class FbtTrainPrice
|
||||
{
|
||||
public string amount_company { get; set; }
|
||||
public string red_envelope { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// API响应包装类
|
||||
/// </summary>
|
||||
public class FbtOrderAmountResponse
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string Message { get; set; }
|
||||
public decimal TotalAmount { get; set; }
|
||||
public Dictionary<string, decimal> AmountByType { get; set; }
|
||||
|
||||
public FbtOrderAmountResponse()
|
||||
{
|
||||
AmountByType = new Dictionary<string, decimal>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分贝通变更申请单审批状态请求根对象
|
||||
/// </summary>
|
||||
public class FbtApplyStatusUpdateRequest
|
||||
{
|
||||
[JsonProperty("employee_id_info")]
|
||||
public FbtEmployeeIdInfo employee_id_info { get; set; }
|
||||
|
||||
[JsonProperty("apply_id_info")]
|
||||
public FbtApplyIdInfo apply_id_info { get; set; }
|
||||
|
||||
[JsonProperty("apply_category")]
|
||||
public string apply_category { get; set; }
|
||||
|
||||
[JsonProperty("available_state")]
|
||||
public string available_state { get; set; }
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分贝通变更申请单审批状态响应根对象
|
||||
/// </summary>
|
||||
public class FbtApplyStatusUpdateResponse
|
||||
{
|
||||
[JsonProperty("request_id")]
|
||||
public string request_id { get; set; }
|
||||
|
||||
[JsonProperty("trace_id")]
|
||||
public string trace_id { get; set; }
|
||||
|
||||
[JsonProperty("code")]
|
||||
public string code { get; set; }
|
||||
|
||||
[JsonProperty("msg")]
|
||||
public string msg { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分贝通员工ID信息
|
||||
/// </summary>
|
||||
public class FbtEmployeeIdInfo
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string id { get; set; }
|
||||
|
||||
[JsonProperty("id_type")]
|
||||
public string id_type { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 分贝通申请单 ID 信息
|
||||
/// </summary>
|
||||
public class FbtApplyIdInfo
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string id { get; set; }
|
||||
|
||||
[JsonProperty("id_type")]
|
||||
public string id_type { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分贝通创建自定义差旅申请单请求根对象
|
||||
/// </summary>
|
||||
public class FbtApplyCreateRequest
|
||||
{
|
||||
[JsonProperty("apply")]
|
||||
public FbtApply Apply { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分贝通申请单对象
|
||||
/// </summary>
|
||||
public class FbtApply
|
||||
{
|
||||
[JsonProperty("form_id")]
|
||||
public string form_id { get; set; }
|
||||
|
||||
[JsonProperty("third_id")]
|
||||
public string third_id { get; set; }
|
||||
|
||||
[JsonProperty("third_proposer_id")]
|
||||
public string third_proposer_id { get; set; }
|
||||
|
||||
[JsonProperty("third_proposer_id_type")]
|
||||
public int? third_proposer_id_type { get; set; }
|
||||
|
||||
[JsonProperty("reason")]
|
||||
public string reason { get; set; }
|
||||
[JsonProperty("remark")]
|
||||
public string remark { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("data_title")]
|
||||
public string data_title { get; set; }
|
||||
|
||||
[JsonProperty("users")]
|
||||
public List<FbtUser> users { get; set; }
|
||||
|
||||
[JsonProperty("trip_time")]
|
||||
public FbtTripTime trip_time { get; set; }
|
||||
|
||||
[JsonProperty("cost_attributions")]
|
||||
public List<FbtCostAttribution> cost_attributions { get; set; }
|
||||
|
||||
[JsonProperty("airs")]
|
||||
public List<FbtAir> airs { get; set; }
|
||||
|
||||
[JsonProperty("hotels")]
|
||||
public List<FbtHotel> hotels { get; set; }
|
||||
|
||||
[JsonProperty("trains")]
|
||||
public List<FbtTrain> trains { get; set; }
|
||||
|
||||
[JsonProperty("cars")]
|
||||
public List<FbtCar> cars { get; set; }
|
||||
|
||||
[JsonProperty("reimbursement")]
|
||||
public List<FbtReimbursement> reimbursement { get; set; }
|
||||
|
||||
[JsonProperty("allowance_mileage")]
|
||||
public List<FbtAllowanceMileage> allowance_mileage { get; set; }
|
||||
|
||||
[JsonProperty("dinners")]
|
||||
public List<FbtDinner> dinners { get; set; }
|
||||
|
||||
[JsonProperty("takeaways")]
|
||||
public List<FbtTakeaway> takeaways { get; set; }
|
||||
|
||||
[JsonProperty("multi_trips")]
|
||||
public List<FbtMultiTrip> multi_trips { get; set; }
|
||||
|
||||
[JsonProperty("attachments")]
|
||||
public List<FbtAttachment> attachments { get; set; }
|
||||
|
||||
[JsonProperty("base_controls")]
|
||||
public List<object> base_controls { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 出行人信息
|
||||
/// </summary>
|
||||
public class FbtUser
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string name { get; set; }
|
||||
|
||||
[JsonProperty("number")]
|
||||
public string number { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 出差时间
|
||||
/// </summary>
|
||||
public class FbtTripTime
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("duration")]
|
||||
public string duration { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 费用归属
|
||||
/// </summary>
|
||||
public class FbtCostAttribution
|
||||
{
|
||||
[JsonProperty("type")]
|
||||
public int type { get; set; }
|
||||
|
||||
[JsonProperty("details")]
|
||||
public List<FbtCostAttributionDetail> details { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 费用归属明细
|
||||
/// </summary>
|
||||
public class FbtCostAttributionDetail
|
||||
{
|
||||
[JsonProperty("third_id")]
|
||||
public string third_id { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 机票行程
|
||||
/// </summary>
|
||||
public class FbtAir
|
||||
{
|
||||
[JsonProperty("type")]
|
||||
public int type { get; set; }
|
||||
|
||||
[JsonProperty("trip_type")]
|
||||
public int trip_type { get; set; }
|
||||
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("back_start_time")]
|
||||
public string back_start_time { get; set; }
|
||||
|
||||
[JsonProperty("back_end_time")]
|
||||
public string back_end_time { get; set; }
|
||||
|
||||
[JsonProperty("start_city_id")]
|
||||
public string start_city_id { get; set; }
|
||||
|
||||
[JsonProperty("end_city_id")]
|
||||
public string end_city_id { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("trip_third_id")]
|
||||
public string trip_third_id { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 酒店行程
|
||||
/// </summary>
|
||||
public class FbtHotel
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("city_id")]
|
||||
public string city_id { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("trip_third_id")]
|
||||
public string trip_third_id { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 火车行程
|
||||
/// </summary>
|
||||
public class FbtTrain
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("start_city_id")]
|
||||
public string start_city_id { get; set; }
|
||||
|
||||
[JsonProperty("end_city_id")]
|
||||
public string end_city_id { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("trip_third_id")]
|
||||
public string trip_third_id { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用车行程
|
||||
/// </summary>
|
||||
public class FbtCar
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("city_ids")]
|
||||
public List<string> city_ids { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("trip_third_id")]
|
||||
public string trip_third_id { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 报销明细(暂未使用)
|
||||
/// </summary>
|
||||
public class FbtReimbursement
|
||||
{
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 补助里程(暂未使用)
|
||||
/// </summary>
|
||||
public class FbtAllowanceMileage
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用餐(暂未使用)
|
||||
/// </summary>
|
||||
public class FbtDinner
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("during_start_time")]
|
||||
public string during_start_time { get; set; }
|
||||
|
||||
[JsonProperty("during_end_time")]
|
||||
public string during_end_time { get; set; }
|
||||
|
||||
[JsonProperty("city_id")]
|
||||
public string city_id { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 外卖(暂未使用)
|
||||
/// </summary>
|
||||
public class FbtTakeaway
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("during_start_time")]
|
||||
public string during_start_time { get; set; }
|
||||
|
||||
[JsonProperty("during_end_time")]
|
||||
public string during_end_time { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("user_city_code")]
|
||||
public string user_city_code { get; set; }
|
||||
|
||||
[JsonProperty("user_address_id")]
|
||||
public string user_address_id { get; set; }
|
||||
|
||||
[JsonProperty("user_address_name")]
|
||||
public string user_address_name { get; set; }
|
||||
|
||||
[JsonProperty("user_address_lat")]
|
||||
public string user_address_lat { get; set; }
|
||||
|
||||
[JsonProperty("user_address_lng")]
|
||||
public string user_address_lng { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 多行程(暂未使用)
|
||||
/// </summary>
|
||||
public class FbtMultiTrip
|
||||
{
|
||||
[JsonProperty("start_time")]
|
||||
public string start_time { get; set; }
|
||||
|
||||
[JsonProperty("end_time")]
|
||||
public string end_time { get; set; }
|
||||
|
||||
[JsonProperty("amount")]
|
||||
public string amount { get; set; }
|
||||
|
||||
[JsonProperty("city_ids")]
|
||||
public List<string> city_ids { get; set; }
|
||||
|
||||
[JsonProperty("types")]
|
||||
public List<int> types { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 附件(暂未使用)
|
||||
/// </summary>
|
||||
public class FbtAttachment
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string id { get; set; }
|
||||
|
||||
[JsonProperty("urls")]
|
||||
public List<string> urls { get; set; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
|
||||
namespace GuangFu.StringTracing
|
||||
{
|
||||
public class RouteConfig
|
||||
{
|
||||
public static void RegisterRoutes(RouteCollection routes)
|
||||
{
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
|
||||
routes.MapRoute(
|
||||
name: "Default",
|
||||
url: "{controller}/{action}/{id}",
|
||||
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user