FilmCastingProfileServiceClient.cs 2.21 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
using FLY.Thick.FilmCasting.Common;
using FLY.Thick.FilmCasting.IService;
using FObjBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.Thick.FilmCasting.Client
{
    public class FilmCastingProfileServiceClient : FObjBase.Reflect.Reflect_SeviceClient, IFilmCastingProfileService
    {
        protected override Type InterfaceType => typeof(IFilmCastingProfileService);

        public FilmCastingProfileParam Param { get; private set; } = new FilmCastingProfileParam();

18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
        /// <summary>
        /// 自动下辊条件 平均值变化 10um
        /// </summary>
        public double RollDown_AvgChanged { get; set; }
        /// <summary>
        /// 自动下辊条件 膜宽度变化 100mm
        /// </summary>
        public double RollDown_FilmWidthChanged { get; set; }
        /// <summary>
        /// 自动下辊条件 生产长度 大于 10000m
        /// </summary>
        public double RollDown_FilmLength { get; set; }
        /// <summary>
        /// 自动下辊条件 生产时间 2小时
        /// </summary>
        public double RollDown_TimeoutHour { get; set; }
        /// <summary>
        /// 自动下辊条件 停止时间 大于 10min
        /// </summary>
        public double RollDown_StopTimeMin { get; set; }


40 41 42
        public FilmCastingProfileServiceClient(UInt32 serviceId) : base(serviceId) { }
        public FilmCastingProfileServiceClient(UInt32 serviceId, string connName) : base(serviceId, connName) { }

43 44 45 46 47 48 49
        public void Apply()
        {
            Call(nameof(Apply));

        }

        public void ApplyParam(FilmCastingProfileParam param)
50
        {
51
            Call(nameof(ApplyParam), new { param });
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

        }

        public void Del(string productname)
        {
            Call(nameof(Del), new { productname });
        }

        public void GetList(AsyncCBHandler asyncDelegate, object asyncContext)
        {
            Call(nameof(GetList), null, asyncDelegate, asyncContext);
        }

        public void Read(string productname, AsyncCBHandler asyncDelegate, object asyncContext)
        {
            Call(nameof(Read), new { productname }, asyncDelegate, asyncContext);
        }
    }
}