private void DoUploadButton_Click(object sender, EventArgs e) { //Validation String description = this.DescriptionTextBox.Text; if (description.Replace(" ", "").Length == 0) { MessageBox.Show("Upload file", "The job's description must not be empty and must be unique with respect to your currently running jobs."); return; } if (CurrentFile == null || !File.Exists(CurrentFile)) { MessageBox.Show("Upload file", "You either did not provide a file to upload, or the file could not be found on disk. Please try again."); return; } DataModel = new DataUploadModel(description, CurrentFile); this.DialogResult = DialogResult.OK; this.Close(); }
/// <summary> /// 体检问询更新体检 /// </summary> /// <param name="customerBaseInfoModel"></param> /// <param name="deciveModel"></param> /// <param name="MedicationModel"></param> /// <param name="HistoryModel"></param> /// <param name="area"></param> /// <param name="versionNo"></param> /// <returns></returns> public bool Update(RecordsCustomerBaseInfoModel customerBaseInfoModel, DataUploadModel deciveModel, List <RecordsMedicationModel> MedicationModel, List <History> HistoryModel, string area, string versionNo) { return(dal.Update(customerBaseInfoModel, deciveModel, MedicationModel, HistoryModel, area, versionNo)); }