public override void EndOperationTransaction(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);

            List <AbsSynchroDataInfo> temp = new List <AbsSynchroDataInfo>();

            if (e.DataEntitys == null)
            {
                return;
            }
            List <DynamicObject> dataEntitys = e.DataEntitys.ToList();
            HttpResponseResult   result      = new HttpResponseResult();

            if (dataEntitys == null || dataEntitys.Count <= 0)
            {
                return;
            }

            List <AbsSynchroDataInfo> datas = GetK3Datas(this.Context, dataEntitys, ref result).ToList();

            if (datas != null && datas.Count > 0)
            {
                if (temp.All(a => datas.Any(b => a.Equals(b))))
                {
                    temp = temp.Concat(datas).ToList();

                    if (IsConnectSuccess(this.Context))
                    {
                        this.DyamicObjects = e.DataEntitys.ToList();
                        SynchroK3DataToWebSite(this.Context);
                        LogHelper.WriteSynSalOrderStatus(this.Context, temp.Select(o => (K3SalOrderStatusInfo)o).ToList());
                    }
                }
            }
        }
Beispiel #2
0
        public override void EndOperationTransaction(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);

            //string docmentStatus = null;
            //List<string> numbers = null;

            //if (e.DataEntitys == null)
            //{
            //    return;
            //}

            //List<DynamicObject> dataEntitys = e.DataEntitys.ToList();

            //if (dataEntitys == null || dataEntitys.Count <= 0)
            //{
            //    return;
            //}

            //if (dataEntitys != null && dataEntitys.Count > 0)
            //{
            //    numbers = new List<string>();

            //    foreach (var item in dataEntitys)
            //    {
            //        docmentStatus = SQLUtils.GetFieldValue(item, "DocumentStatus");
            //        numbers.Add(SQLUtils.GetFieldValue(item, "BillNo"));
            //    }
            //}

            //this.DyamicObjects = e.DataEntitys.ToList();
            //SynchroK3DataToWebSite(this.Context);
        }
Beispiel #3
0
        public override void EndOperationTransaction(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);


            if (e.DataEntitys == null || e.DataEntitys.Count() < 0)
            {
                return;
            }

            List <DynamicObject>  dataEntitys = e.DataEntitys.ToList();
            List <DeliveryNotice> notices     = GetDeliveryNotices(dataEntitys);
        }
Beispiel #4
0
        public override void EndOperationTransaction(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EndOperationTransactionArgs e)
        {
            //oTime.Start();
            //base.EndOperationTransaction(e);

            //if (e.DataEntitys == null) return;
            //List<DynamicObject> dataEntitys = e.DataEntitys.ToList();

            //if (dataEntitys == null || dataEntitys.Count <= 0)
            //{
            //    return;
            //}

            //this.DyamicObjects = e.DataEntitys.ToList();
            //SynchroK3DataToWebSite(this.Context);
        }
        public override void EndOperationTransaction(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);

            if (e.DataEntitys == null)
            {
                return;
            }
            List <DynamicObject> dataEntitys = e.DataEntitys.ToList();

            if (dataEntitys == null || dataEntitys.Count <= 0)
            {
                return;
            }

            int count = StatisticsOrderCount(this.Context, dataEntitys);
        }
        public override void EndOperationTransaction(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EndOperationTransactionArgs e)
        {
            base.EndOperationTransaction(e);

            //if (e.DataEntitys == null) return;
            //List<DynamicObject> dataEntitys = e.DataEntitys.ToList();

            //if (dataEntitys == null || dataEntitys.Count <= 0)
            //{
            //    return;
            //}

            //this.DyamicObjects = e.DataEntitys.ToList();
            //SynchroK3DataToWebSite(this.Context);
            //IEnumerable<AbsSynchroDataInfo> datas = GetK3Datas(this.Context, this.DyamicObjects);

            //if (datas != null && datas.Count() > 0)
            //{
            //    SynchroDataHelper.WriteSynSalOrderStatus(this.Context, datas.Select(o => (K3SalOrderStatusInfo)o).ToList());
            //}
        }