You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
348 lines
11 KiB
C#
348 lines
11 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace XGL.Thrift
|
|
{
|
|
public class ThriftServiceImp : ThriftService.Iface
|
|
{
|
|
|
|
public delegate string deleteGetLocatorInfoList();
|
|
/// <summary>
|
|
/// 获取库存信息
|
|
/// </summary>
|
|
public deleteGetLocatorInfoList GetLocatorInfoListEvent;
|
|
|
|
public string GetLocatorInfoList()
|
|
{
|
|
if (GetLocatorInfoListEvent != null)
|
|
{
|
|
return GetLocatorInfoListEvent();
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetOutLocatorList();
|
|
/// <summary>
|
|
/// 获取出库信息
|
|
/// </summary>
|
|
public deleteGetOutLocatorList GetOutLocatorListEvent;
|
|
public string GetOutLocatorList()
|
|
{
|
|
if (GetLocatorInfoListEvent != null)
|
|
{
|
|
return GetLocatorInfoListEvent();
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteGetReceiveCarNo(string carno);
|
|
/// <summary>
|
|
/// 获取到位小车号小车号
|
|
/// </summary>
|
|
public deleteGetReceiveCarNo GetReceiveCarNoEvent;
|
|
public string GetReceiveCarNo(string carno)
|
|
{
|
|
if (GetReceiveCarNoEvent != null)
|
|
{
|
|
return GetReceiveCarNoEvent(carno);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deletesendCarMaterialList(List<string> CarNosOrMater,string order_code);
|
|
/// <summary>
|
|
/// 上件小车发车
|
|
/// </summary>
|
|
public deletesendCarMaterialList sendCarMaterialListEvent;
|
|
public string sendCarMaterialList(List<string> CarNosOrMater,string order_code)
|
|
{
|
|
if (sendCarMaterialListEvent != null)
|
|
{
|
|
return sendCarMaterialListEvent(CarNosOrMater, order_code);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deletesendCheckBarcode(string barcode);
|
|
/// <summary>
|
|
/// 检测门体条码准确性
|
|
/// </summary>
|
|
public deletesendCheckBarcode sendCheckBarcodeEvent;
|
|
public string sendCheckBarcode(string barcode)
|
|
{
|
|
if (sendCheckBarcodeEvent != null)
|
|
{
|
|
return sendCheckBarcodeEvent(barcode);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteSendCheckServerState();
|
|
/// <summary>
|
|
/// 获取服务器状态
|
|
/// </summary>
|
|
public deleteSendCheckServerState SendCheckServerStateEvent;
|
|
public string SendCheckServerState()
|
|
{
|
|
if (SendCheckServerStateEvent != null)
|
|
{
|
|
return SendCheckServerStateEvent();
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteSendOutLocatorBarcode(string barcode);
|
|
/// <summary>
|
|
/// 发送出库条码
|
|
/// </summary>
|
|
public deleteSendOutLocatorBarcode SendOutLocatorBarcodeEvent;
|
|
public string SendOutLocatorBarcode(string barcode)
|
|
{
|
|
if (SendOutLocatorBarcodeEvent != null)
|
|
{
|
|
return SendOutLocatorBarcodeEvent(barcode);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteSendSetCarInfo(string carno, string materialno, string materialdesc, string locatorid, string outlocatorstate, string optdt);
|
|
/// <summary>
|
|
/// 设置小车信息
|
|
/// </summary>
|
|
public deleteSendSetCarInfo SendSetCarInfoEvent;
|
|
public string SendSetCarInfo(string carno, string materialno, string materialdesc, string locatorid, string outlocatorstate, string optdt)
|
|
{
|
|
if (SendSetCarInfoEvent != null)
|
|
{
|
|
return SendSetCarInfoEvent(carno, materialno, materialdesc, locatorid, outlocatorstate, optdt);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deletesendMaterialList(List<string> materialnos);
|
|
public deletesendMaterialList sendMaterialListEvent;
|
|
|
|
public string sendMaterialList(List<string> MaterialNos)
|
|
{
|
|
if (sendMaterialListEvent != null)
|
|
{
|
|
return sendMaterialListEvent(MaterialNos);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteGetLineAreaList(List<LineArea> linearea);
|
|
public deleteGetLineAreaList GetLineAreaListEvent;
|
|
|
|
public string GetLineAreaList(List<LineArea> linearea)
|
|
{
|
|
if (GetLineAreaListEvent != null)
|
|
{
|
|
return GetLineAreaListEvent(linearea);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteGetCarAreaList(List<CarArea> cararea);
|
|
public deleteGetCarAreaList GetCarAreaListEvent;
|
|
|
|
public string GetCarAreaList(List<CarArea> cararea)
|
|
{
|
|
if (GetCarAreaListEvent != null)
|
|
{
|
|
return GetCarAreaListEvent(cararea);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteGetOrdelist(List<Order> orderlist);
|
|
public deleteGetOrdelist GetOrderListEvent;
|
|
|
|
public string GetOrderList(List<Order> orderlist)
|
|
{
|
|
if (GetOrderListEvent != null)
|
|
{
|
|
return GetOrderListEvent(orderlist);
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetOutCarLineList(List<OutCarLine> outcarlinelist);
|
|
public deleteGetOutCarLineList GetOutCarLineListEvent;
|
|
|
|
public string GetOutCarLineList(List<OutCarLine> outcarlinelist)
|
|
{
|
|
if (GetOutCarLineListEvent != null)
|
|
{
|
|
return GetOutCarLineListEvent(outcarlinelist);
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetMaterialList(List<string> MaterialNos);
|
|
public deleteGetMaterialList GetMaterialListEvent;
|
|
|
|
public string GetMaterialList(List<string> materiallist)
|
|
{
|
|
if (GetMaterialListEvent != null)
|
|
{
|
|
return GetMaterialListEvent(materiallist);
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetUpDownMaterielNum(string siteno);
|
|
/// <summary>
|
|
/// 获取物料以及上件数量信息
|
|
/// </summary>
|
|
public deleteGetUpDownMaterielNum GetUpDownMaterielNumEvent;
|
|
public string GetUpDownMaterielNum(string siteno)
|
|
{
|
|
if (GetUpDownMaterielNumEvent != null)
|
|
{
|
|
return GetUpDownMaterielNumEvent(siteno);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteSendDeleteRelief();
|
|
public deleteSendDeleteRelief SendDeleteReliefEvent;
|
|
|
|
public string SendDeleteRelief()
|
|
{
|
|
if (SendDeleteReliefEvent != null)
|
|
{
|
|
return SendDeleteReliefEvent();
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteSendUpdateDownNum();
|
|
public deleteSendDeleteRelief SendUpdateDownNumEvent;
|
|
|
|
public string SendUpdateDownNum()
|
|
{
|
|
if (SendUpdateDownNumEvent != null)
|
|
{
|
|
return SendUpdateDownNumEvent();
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetDownLineNum(string siteno);
|
|
/// <summary>
|
|
/// 获取下件队列数量信息
|
|
/// </summary>
|
|
public deleteGetUpDownMaterielNum GetDownLineNumEvent;
|
|
public string GetDownLineNum(string siteno)
|
|
{
|
|
if (GetDownLineNumEvent != null)
|
|
{
|
|
return GetDownLineNumEvent(siteno);
|
|
}
|
|
return "";
|
|
}
|
|
|
|
public delegate string deleteGetMaterielNumByKBList(List<MaterielNumKB> materielnumkb);
|
|
public deleteGetMaterielNumByKBList GetMaterielNumByKBListEvent;
|
|
|
|
public string GetMaterielNumByKBList(List<MaterielNumKB> materielnumkb)
|
|
{
|
|
if (GetMaterielNumByKBListEvent != null)
|
|
{
|
|
return GetMaterielNumByKBListEvent(materielnumkb);
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetFaultList(List<Fault> Faults);
|
|
public deleteGetFaultList GetFaultListEvent;
|
|
|
|
public string GetFaultList(List<Fault> faultlist)
|
|
{
|
|
if (GetFaultListEvent != null)
|
|
{
|
|
return GetFaultListEvent(faultlist);
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteGetAreaPlcList(List<AreaPlc> AreaPlcs);
|
|
public deleteGetAreaPlcList GetAreaPlcListEvent;
|
|
|
|
public string GetAreaPlcList(List<AreaPlc> areaplclist)
|
|
{
|
|
if (GetAreaPlcListEvent != null)
|
|
{
|
|
return GetAreaPlcListEvent(areaplclist);
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteSendInsertFault();
|
|
public deleteSendDeleteRelief SendInsertFaultEvent;
|
|
/// <summary>
|
|
/// 插入故障数据
|
|
/// </summary>
|
|
public string SendInsertFault()
|
|
{
|
|
if (SendInsertFaultEvent != null)
|
|
{
|
|
return SendInsertFaultEvent();
|
|
}
|
|
return "";
|
|
}
|
|
public delegate string deleteSendUpdateFault();
|
|
public deleteSendDeleteRelief SendUpdateFaultEvent;
|
|
/// <summary>
|
|
/// 插入故障数据
|
|
/// </summary>
|
|
public string SendUpdateFault()
|
|
{
|
|
if (SendUpdateFaultEvent != null)
|
|
{
|
|
return SendUpdateFaultEvent();
|
|
}
|
|
return "";
|
|
}
|
|
/// <summary>
|
|
/// 上件条码显示
|
|
/// </summary>
|
|
/// <param name="barcode"></param>
|
|
/// <returns></returns>
|
|
public delegate string deleteShowUpBarcode(string barcode, string materialno, string message, int status);
|
|
public deleteShowUpBarcode ShowUpBarcodeEvent;
|
|
public string ShowUpBarcode(string barcode, string materialno, string message, int status)
|
|
{
|
|
if (ShowUpBarcodeEvent != null)
|
|
{
|
|
return ShowUpBarcodeEvent(barcode, materialno, message, status);
|
|
}
|
|
return "";
|
|
}
|
|
/// <summary>
|
|
/// cs重启拉取数据
|
|
/// </summary>
|
|
/// <param name="barcode"></param>
|
|
/// <param name="status"></param>
|
|
/// <returns></returns>
|
|
public delegate string deleteDataForRestart();
|
|
public deleteDataForRestart DataForRestartEvent;
|
|
public string DataForRestart()
|
|
{
|
|
if (DataForRestartEvent != null)
|
|
{
|
|
return DataForRestart();
|
|
}
|
|
return "";
|
|
}
|
|
/// <summary>
|
|
/// 下料改变物料状态
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public delegate string deleMaterialRemove(string barcode);
|
|
public deleMaterialRemove MaterialRemoveEvent;
|
|
public string MaterialRemove(string barcode)
|
|
{
|
|
if (MaterialRemoveEvent != null)
|
|
{
|
|
return MaterialRemoveEvent(barcode);
|
|
}
|
|
return "";
|
|
}
|
|
}
|
|
}
|