예제 #1
0
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            订单Model 订单Model = this.model.build订单Model();

            new OrderRedisService().saveOrder(
                订单Model
                , TaskService.getUserTasksByOrderId(订单Model.ORDER_ID)
                );
            print条码();
            //TaskService.SaveFileToErp(this.TaskDTOS);
            OrderService.UpdataOrderPrintFlag(this.ORDER_ID, true);//更改订单打印状态
        }
예제 #2
0
        private const String TASK = "_TASK";    //任务后缀
        public bool saveOrder(订单Model model, List <UserTaskDTO> userTaskDTOs)
        {
            //  生成订单kv
            bool orderNoCached = new RedisCacheHelper().StringSet(Convert.ToString(model.ORDER_INFO.ORDER_NUMBER), model.ORDER_ID);
            //  订单数据
            bool orderInfoCached = new RedisCacheHelper().StringSet(model.ORDER_ID, model.JsonSerialization());

            foreach (UserTaskDTO userTaskDTO in userTaskDTOs)
            {
                this.saveTask(model.ORDER_ID, userTaskDTO);
            }

            return(orderNoCached && orderInfoCached);
        }