|
using iWareCC.BLL;
|
using iWareCC.Common.Helper;
|
using iWareCC.SrmService;
|
using iWareCC.StationService;
|
using iWareCommon.Utils;
|
using iWareModel;
|
using iWareModel.Entity;
|
using iWareModel.Entity.Device;
|
using iWareSql.DataAccess;
|
using iWareSql.DBModel;
|
using Newtonsoft.Json;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Runtime.Serialization;
|
using System.ServiceModel;
|
using System.Text;
|
using XiGang.Core.Model;
|
using XiGang.Core.Model.PostParamModels;
|
using XiGang.Core.Model.PostParamModels.Task;
|
|
namespace iWareCC.WCF
|
{
|
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的类名“CCWcfService”。
|
public class CCWcfService : ICCWcfService
|
{
|
|
/// <summary>
|
/// 模式是否正在运行
|
/// </summary>
|
/// <returns></returns>
|
public bool IsStartedModel()
|
{
|
return SystemValue.isStartedModel;
|
}
|
|
/// <summary>
|
/// 补板工位允许进板
|
/// </summary>
|
/// <returns></returns>
|
public FunRetEntity WriteStation_AllowIn()
|
{
|
try
|
{
|
using (StationServiceClient client = new StationServiceClient())
|
{
|
var res = client.WriteStation_AllowIn((int)EDevice.Station, true, StationLocationEnum.BZ39.ToString());
|
if (!res.result)
|
{
|
return FunRetEntity.Fail(res.resMsg);
|
}
|
}
|
|
return FunRetEntity.Success("成功", "");
|
}
|
catch (Exception ex)
|
{
|
return FunRetEntity.Fail("异常:" + ex.Message);
|
}
|
}
|
|
|
|
}
|
}
|