コード例 #1
0
ファイル: FormOpenDental.cs プロジェクト: nampn/ODental
 /*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,"");
 }
コード例 #2
0
ファイル: FormOpenDental.cs プロジェクト: mnisl/OD
		/*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();
		}