Пример #1
0
        public void Put(int id, [FromBody] Status value)
        {
            ManageStatus mngItem = new ManageStatus();

            mngItem.Update(id, value);
        }
Пример #2
0
 /// <summary>
 ///     设置管理状态
 /// </summary>
 /// <param name="status">管理状态</param>
 public void SetManageStatus(ManageStatus status)
 {
     switch (status)
     {
         case ManageStatus.预备:
             Status = ManageStatus.预备;
             break;
         case ManageStatus.计划:
             Status = ManageStatus.计划;
             break;
         case ManageStatus.申请:
             Status = ManageStatus.申请;
             break;
         case ManageStatus.批文:
             Status = ManageStatus.批文;
             break;
         case ManageStatus.签约:
             Status = ManageStatus.签约;
             break;
         case ManageStatus.技术接收:
             Status = ManageStatus.技术接收;
             break;
         case ManageStatus.接收:
             Status = ManageStatus.接收;
             break;
         case ManageStatus.运营:
             Status = ManageStatus.运营;
             break;
         case ManageStatus.停场待退:
             Status = ManageStatus.停场待退;
             break;
         case ManageStatus.技术交付:
             Status = ManageStatus.技术交付;
             break;
         case ManageStatus.退役:
             Status = ManageStatus.退役;
             break;
         default:
             throw new ArgumentOutOfRangeException("status");
     }
 }