public SupplementaryExam(AircrewEntity aircrewEntity, int year) : this() { this.aircrewEntity = aircrewEntity; this.DataContext = this; this.physicalExamMaxFacade = new PhysicalExamMaxFacade(this); this.InitData(year); }
public OralCavity(AircrewEntity aircrewEntity, int year) : this() { this.aircrewEntity = aircrewEntity; this.physicalExamMaxFacade = new PhysicalExamMaxFacade(this); this.DataContext = this; this.InitData(year); }
public Neuropsychiatry(AircrewEntity aircrewEntity, int year) : this() { this.aircrewEntity = aircrewEntity; this.DataContext = this; this.aviationMedicineFacade = new AviationMedicineFacade(this); this.physicalExamMaxFacade = new PhysicalExamMaxFacade(this); this.InitData(year); }
public MedicalIdentification(AircrewEntity aircrewEntity, int year) : this() { this.aircrewEntity = aircrewEntity; this.DataContext = this; this.facade = new MedicalIdentificationFacade(this); this.aviationMedicineFacade = new AviationMedicineFacade(this); this.InitData(year); }
private void ShowDetail(object obj) { AircrewEntity entity = obj as AircrewEntity; if (new AircrewUpdate(entity).ShowDialog().GetValueOrDefault(false)) { this.SearchAircrewList(); } }
public AircrewUpdate(AircrewEntity aircrewEntity) : this() { this.facade = new AircrewFacade(this); this.aircrewEntity = aircrewEntity; this.DataContext = this; this.InitData(); this.InitTriggerAction(); }
public PhysicalExamMain(AircrewEntity aircrewEntity) : this() { currentAircrew = aircrewEntity; this.DataContext = this; this.Year = DateTime.Now.Year; this.physicalExamMaxFacade = new PhysicalExamMaxFacade(this); this.medicalIdentificationFacade = new MedicalIdentificationFacade(this); this.PropertyChanged += PhysicalExamMain_PropertyChanged; }
public ConclusionsPhysical(AircrewEntity aircrewEntity, int year) : this() { this.aircrewEntity = aircrewEntity; this.physicalExamMaxFacade = new PhysicalExamMaxFacade(this); this.commonDiseaseFacade = new CommonDiseaseFacade(this); this.InitData(year); this.DataContext = this; this.PropertyChanged += ConclusionsPhysical_PropertyChanged; }
public AviationAccident(AircrewEntity entity) : this() { this.AviationAccidentModel = new AviationAccidentModel(); this.DataContext = this; this.aviationAccidentFacade = new AviationAccidentFacade(this); this.aviationMedicineFacade = new AviationMedicineFacade(this); this.InitAviationMedicine(); this.InitData(); this.PropertyChanged += AviationAccident_PropertyChanged; }
private async void CreatePhoto() { var openDialog = new OpenFileDialog { Filter = "All Image Files|*.bmp;*.gif;*.jpeg;*.jpg;*.png;*.tif", FilterIndex = 0 }; if (openDialog.ShowDialog().GetValueOrDefault(false)) { string filePath = openDialog.FileName; try { MemoryStream m = new MemoryStream(); Bitmap bp = new Bitmap(filePath); bp.Save(m, bp.RawFormat); byte[] b = m.GetBuffer(); if (b.Length > 1024 * 1024 * MAXPHOTODSIZE) { this.ShowMessage(string.Format(CommonMsgResource.Msg_ImageOverSize, MAXPHOTODSIZE)); return; } string base64string = Convert.ToBase64String(b); var request = new AircrewPhotoRequest { TransactionNumber = this.AircrewModel.TransactionNumber, ActionUserID = CPApplication.CurrentUser.UserName, PhotoBinary = base64string }; await this.facade.UpdateAircrewPhoto(request); this.ShowMessage(CommonMsgResource.Msg_SetSucess); this.aircrewEntity = await this.facade.GetAircrewByKey(this.AircrewModel.TransactionNumber); this.AircrewModel = AutoMapper.Mapper.Map <AircrewEntity, AircrewModel>(aircrewEntity); this.ConvertPhotoToShow(); } catch { this.ShowMessage(CommonMsgResource.Msg_FileException); } } }
public PhysicalExamMin(AircrewEntity aircrewEntity) : this() { this.currentAircrew = aircrewEntity; }
public MedicalTreatment(AircrewEntity aircrewEntity) : this() { this.aircrewEntity = aircrewEntity; }
public FlightDiscomfortLevel(AircrewEntity entity) : this() { this.entity = entity; this.InitData(); }