using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace SYNC_SAP_MES
{
public class PP
{
///
///
///
public static string ConnectionString = "";
///
///
///
public static string SyncTimePoin_TomorrowPlan = "";
///
///
///
public static string AppServerHost = "";
///
///
///
public static string SystemNumber = "";
///
///
///
public static string User = "";
///
///
///
public static string Password = "";
///
///
///
public static string Client = "";
///
///
///
public static string Language = "";
///
///
///
public static string PoolSize = "";
///
///
///
public static string IdleTimeout = "";
///
///
///
public static string Name = "";
///
///
///
public static string IsDemo = "";
///
///
///
public static int ReachSyncCount = 1;
///
///
///
public static string LineCode = "";
///
///
///
public static bool OnLine_Sql = false;
///
///
///
public static bool OnLine_SAP = false;
///
///
///
public static FormSAP main = null;
}
//入参:
//{
//lineId:"200000502",
//startDate:"2022-06-28",
//isLocked: "3"
//}
public class SyncPlan_WebAPI_RequestBody
{
public string lineId
{
get;
set;
} = "";
public string startDate
{
get;
set;
} = "";
public string isLocked
{
get;
set;
} = "";
}
/*
{
"code": 200,
"message": "操作成功",
"data":
[
{
"productCode": "9922G000244",
"itemCode": "B-DHT14Q0008*01",
"itemId": "-801513",
"productType": "WP14T610E62",
"wipEntityId": "1004124840",
"wipEntityName": "5221052206000018",
"bomHeaderId": "11000656073",
"mesPlanOrder": "282",
"erpStartDate": "2022-06-28 00:00:00.0",
"mesStartDate": null,
"isLocked": "3"
},
{
"productCode": "9922G000243",
"itemCode": "B-DHT14Q0008*01",
"itemId": "-801513",
"productType": "WP14T610E62",
"wipEntityId": "1004124840",
"wipEntityName": "5221052206000018",
"bomHeaderId": "11000656073",
"mesPlanOrder": "283",
"erpStartDate": "2022-06-28 00:00:00.0",
"mesStartDate": null,
"isLocked": "3"
},
]
}
*/
//入参:
// lineId,计划产线id,string,必填,二号厂总装1线:120000004
// startDate,总装上线扫描时间段的开始时间,string,必填,格式yyyy-mm-dd
// endDate,总装上线扫描时间段的结束时间,string,必填,格式yyyy-mm-dd
//{
// "lineId": "120000007",
// "startDate": "2022-06-29 00:00:00",
// "endDate": "2022-06-30 00:00:00"
//}
public class SyncBarCodePlan_WebAPI_RequestBody
{
public string lineId
{
get;
set;
} = "";
public string startDate
{
get;
set;
} = "";
public string endDate
{
get;
set;
} = "";
}
/*
{
"code": 200,
"message": "操作成功",
"data": [
{
"productCode": "1422G024877",
"itemCode": "B-DHP12Q3807*01",
"itemId": "-775264",
"productType": "WP12.460E62",
"wipEntityId": "1004119083",
"wipEntityName": "5222012206061324",
"bomHeaderId": "11000656454",
"mesPlanOrder": "6",
"erpStartDate": "2022-06-29 00:00:00.0",
"mesStartDate": "2022-06-29 07:52:43.0",
"isLocked": null
},
{
"productCode": "1422G024878",
"itemCode": "B-DHP12Q3807*01",
"itemId": "-775264",
"productType": "WP12.460E62",
"wipEntityId": "1004119083",
"wipEntityName": "5222012206061324",
"bomHeaderId": "11000656454",
"mesPlanOrder": "7",
"erpStartDate": "2022-06-29 00:00:00.0",
"mesStartDate": "2022-06-29 07:54:00.0",
"isLocked": null
},
]
}
*/
public class SyncPlan_WebAPI_ResponseBody
{
public string code
{
get;
set;
} = "";
public string message
{
get;
set;
} = "";
public List Data
{
get;
set;
}
}
public class SyncPlan_WebAPI_DataParts
{
//"productCode": "9922G000243",
//"itemCode": "B-DHT14Q0008*01",
//"itemId": "-801513",
//"productType": "WP14T610E62",
//"wipEntityId": "1004124840",
//"wipEntityName": "5221052206000018",
//"bomHeaderId": "11000656073",
//"mesPlanOrder": "283",
//"erpStartDate": "2022-06-28 00:00:00.0",
//"mesStartDate": null,
//"isLocked": "3"
public string productCode
{
get;
set;
}
public string itemCode
{
get;
set;
}
public string itemId
{
get;
set;
}
public string productType
{
get;
set;
}
public string wipEntityId
{
get;
set;
}
public string wipEntityName
{
get;
set;
}
public string bomHeaderId
{
get;
set;
}
public string mesPlanOrder
{
get;
set;
}
public string erpStartDate
{
get;
set;
}
public string mesStartDate
{
get;
set;
}
public string isLocked
{
get;
set;
}
}
public class RequestBody_WebAPI_Boms
{
public string lineId
{
get;
set;
}
public string productCode
{
get;
set;
}
}
public class ResponseBody_WebAPI_Boms
{
public string code
{
get;
set;
} = "";
public string message
{
get;
set;
} = "";
public List Data
{
get;
set;
}
}
public class DataBody_WebApi_MisFun
{
public string type
{
get;
set;
}
public string opName
{
get;
set;
}
public string value
{
get;
set;
}
}
public class DataBody_WebAPI_Boms
{
/*
(name="bomHeaderId",value="bom头id")
(name ="materialId",value ="物料id")
(name="materialCode".value="物料编码")
(name="materialName" value="物料名称"
(name="quanity",value="量”
(name="keyFlag",value="是否关键件,1是,0否")
(name ="operationId",value="工位id")
(name=operationCode,value="工位编码")
(name="assginedSupplierId",value="指定供应商id")
(name="assginedSupplierCode".value="指定供应商code")
*/
public string bomHeaderId
{
get;
set;
}
public string materialId
{
get;
set;
}
public string materialCode
{
get;
set;
}
public string materialName
{
get;
set;
}
public string quanity
{
get;
set;
}
public string keyFlag
{
get;
set;
}
public string operationId
{
get;
set;
}
public string operationCode
{
get;
set;
}
public string assginedSupplierId
{
get;
set;
}
public string assginedSupplierCode
{
get;
set;
}
}
}