示例#1
0
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="CountdownVM"></param>
        /// <param name="callback"></param>
        public void Create(CountdownInfoVM CountdownVM, EventHandler <RestClientEventArgs <CountdownInfo> > callback)
        {
            var data = CountdownVM.ConvertVM <CountdownInfoVM, CountdownInfo>((v, en) =>
            {
            });

            string relativeUrl = "/MKTService/Countdown/Create";

            restClient.Create <CountdownInfo>(relativeUrl, data, callback);
        }
示例#2
0
        /// <summary>
        /// 加载分仓数量列表
        /// </summary>
        public void GetGrossMargin(CountdownInfoVM CountdownVM, EventHandler <RestClientEventArgs <GrossMarginMsg> > callback)
        {
            var data = CountdownVM.ConvertVM <CountdownInfoVM, CountdownInfo>((v, en) =>
            {
                en.WebChannel = new BizEntity.Common.WebChannel()
                {
                    ChannelID = v.ChannelID
                };
            });
            string relativeUrl = "/MKTService/Countdown/GetGrossMargin";

            restClient.Query <GrossMarginMsg>(relativeUrl, data, callback);
        }
示例#3
0
        /// <summary>
        /// 批量作废
        /// </summary>
        /// <param name="sysNoList"></param>
        /// <param name="callback"></param>
        public void Void(CountdownInfoVM CountdownVM, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var data = CountdownVM.ConvertVM <CountdownInfoVM, CountdownInfo>((v, en) =>
            {
                en.WebChannel = new BizEntity.Common.WebChannel()
                {
                    ChannelID = v.ChannelID
                };
            });

            string relativeUrl = "/MKTService/Countdown/Abandon";

            restClient.Update(relativeUrl, data, callback);
        }
示例#4
0
        public void CheckOptionalAccessoriesInfoMsg(CountdownInfoVM CountdownVM, EventHandler <RestClientEventArgs <string> > callback)
        {
            var data = CountdownVM.ConvertVM <CountdownInfoVM, CountdownInfo>((v, en) =>
            {
                en.WebChannel = new BizEntity.Common.WebChannel()
                {
                    ChannelID = v.ChannelID
                };
            });

            string relativeUrl = "/MKTService/Countdown/CheckOptionalAccessoriesInfoMsg";

            restClient.Update <string>(relativeUrl, data, callback);
        }