123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- using System;
- using System.Collections.Generic;
- using System.Data.Entity;
- using System.Linq;
- using System.Net;
- using System.Transactions;
- using System.Web;
- using System.Web.Http;
- using System.Web.Http.Description;
- using iBemsDataService.Model;
- using iBemsDataService.Util;
- using System.Diagnostics;
- namespace iBemsDataService.Controllers.Fms.CheckSchedule
- {
-
- public class FmsWorkOrderController : ApiController
- {
- private iBemsEntities db = new iBemsEntities();
- private const int WORK_ORDER = 3;
- private const int WORK_STANDBY = 4;
- private const int EMERGENCY_B = 1;
-
- [ActionName( "GenerateWorkRequestOrder" )]
- [ResponseType( typeof ( void ) )]
- public IHttpActionResult PostGenerateWorkRequestOrder( List<CheckScheduleToGenerate> checkSchedules )
- {
- if ( !ModelState.IsValid )
- {
- return BadRequest( ModelState );
- }
-
- return StatusCode( HttpStatusCode.NoContent );
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- db.Dispose();
- }
- base.Dispose(disposing);
- }
- }
- public class SeniorForOrder
- {
- public int SiteId { get; set; }
- public int SeniorId { get; set; }
- public string SeniorUserName { get; set; }
- public string SeniorItemName { get; set; }
- }
- public class FacilityScheduleForOrder
- {
- public int SiteId { get; set;}
- public int ScheduleId { get; set;}
- public Nullable<int> BusinessFieldId { get; set;}
- public string ScheduleName { get; set;}
- public Nullable<int> CheckGroupId { get; set; }
- public Nullable<int> WorkTypeId { get; set; }
- public string UserId { get; set;}
- public string UserName { get; set;}
- public Nullable<int> SeniorId { get; set;}
- public string WorkerName { get; set; }
- }
- public class CheckScheduleToGenerate
- {
- public int SiteId { get; set; }
- public int ScheduleId { get; set; }
- };
- }
|