Beispiel #1
0
 /*private void menuItemBlockoutDefault_Click(object sender,System.EventArgs e) {
     if(!Security.IsAuthorized(Permissions.Blockouts)) {
         return;
     }
     FormSchedDefault FormSD=new FormSchedDefault(ScheduleType.Blockout);
     FormSD.ShowDialog();
     SecurityLogs.MakeLogEntry(Permissions.Blockouts,0,"Default");
 }*/
 private void menuItemSecurity_Click(object sender, System.EventArgs e)
 {
     if(!Security.IsAuthorized(Permissions.SecurityAdmin)){
         return;
     }
     FormSecurity FormS=new FormSecurity();
     FormS.ShowDialog();
     SecurityLogs.MakeLogEntry(Permissions.SecurityAdmin,0,"");
 }
Beispiel #2
0
		/*private void menuItemBlockoutDefault_Click(object sender,System.EventArgs e) {
			if(!Security.IsAuthorized(Permissions.Blockouts)) {
				return;
			}
			FormSchedDefault FormSD=new FormSchedDefault(ScheduleType.Blockout);
			FormSD.ShowDialog();
			SecurityLogs.MakeLogEntry(Permissions.Blockouts,0,"Default");
		}*/

		private void menuItemSecurity_Click(object sender, System.EventArgs e) {
			if(!Security.IsAuthorized(Permissions.SecurityAdmin)){
				return;
			}
			FormSecurity FormS=new FormSecurity(); 
			FormS.ShowDialog();
			SecurityLogs.MakeLogEntry(Permissions.SecurityAdmin,0,"");
			if(!PrefC.GetBool(PrefName.EasyNoClinics)) {
				if(Security.CurUser.ClinicIsRestricted) {
					ClinicNum=Security.CurUser.ClinicNum;
				}
				Text=PatientL.GetMainTitle(Patients.GetPat(CurPatNum),ClinicNum);
				RefreshMenuClinics();
			}
			RefreshCurrentModule();
		}