/// <summary> /// 习练者到老师 添加级别订单 /// </summary> private void AddLevelOrder() { DateTime now = DateTime.Now; using (LevelOrderServiceClient loClient = new LevelOrderServiceClient()) { ViewLevelOrder viewLO = new ViewLevelOrder(); viewLO.LevelOrderID = now.ToString("yyMMddHHmmssfff"); viewLO.UID = user.Uid; viewLO.Name = user.NickName; viewLO.OrderType = LevelOrderType.习练者到老师.ToString(); viewLO.OrderState = LevelOrderState.申请中.ToString(); viewLO.OrderScore = "-0"; viewLO.OrderDel = 0; viewLO.OriginalLevel = CommonInfo.GetCurrentLevel(user);//当前用户level viewLO.TargetLevel = TeacherLevel.初级老师.ToString(); viewLO.CreateTime = viewLO.UpdateTime = now; loClient.Add(viewLO); } }