예제 #1
0
        private void butEditTypes_Click(object sender, System.EventArgs e)
        {
            FormDefinitions FormD = new FormDefinitions(DefCat.BlockoutTypes);

            FormD.ShowDialog();
            FillGrid();
        }
예제 #2
0
        private void butEditFeeSched_Click(object sender, System.EventArgs e)
        {
            //won't even be visible if no permission
            int selectedSched = 0;

            if (listFeeSched.SelectedIndex != -1)
            {
                selectedSched = DefB.Short[(int)DefCat.FeeSchedNames][listFeeSched.SelectedIndex].DefNum;
            }
            FormDefinitions FormD = new FormDefinitions(DefCat.FeeSchedNames);

            FormD.ShowDialog();
            DataValid.SetInvalid(InvalidTypes.Defs | InvalidTypes.Fees);
            Fees.Refresh();
            ProcedureCodes.Refresh();
            changed = true;
            FillFeeSchedules();
            for (int i = 0; i < DefB.Short[(int)DefCat.FeeSchedNames].Length; i++)
            {
                if (DefB.Short[(int)DefCat.FeeSchedNames][i].DefNum == selectedSched)
                {
                    listFeeSched.SelectedIndex = i;
                }
            }
            FillGrid();
            SecurityLogs.MakeLogEntry(Permissions.Setup, 0, "Definitions");
            //FillGrid();//will be done automatically because of lines above
        }
예제 #3
0
        private void butEditCategories_Click(object sender, EventArgs e)
        {
            //won't even be visible if no permission
            ArrayList selected = new ArrayList();

            for (int i = 0; i < listCategories.SelectedIndices.Count; i++)
            {
                selected.Add(CatList[listCategories.SelectedIndices[i]].DefNum);
            }
            FormDefinitions FormD = new FormDefinitions(DefCat.ProcCodeCats);

            FormD.ShowDialog();
            DataValid.SetInvalid(InvalidTypes.Defs);
            changed = true;
            FillCats();
            for (int i = 0; i < CatList.Length; i++)
            {
                if (selected.Contains(CatList[i].DefNum))
                {
                    listCategories.SetSelected(i, true);
                }
            }
            //we need to move security log to within the definition window for more complete tracking
            SecurityLogs.MakeLogEntry(Permissions.Setup, 0, "Definitions");
            FillGrid();
        }
		private void menuItemCategories_Click(object sender,EventArgs e) {
			if(!Security.IsAuthorized(Permissions.Setup)) {
				return;
			}
			FormDefinitions FormD=new FormDefinitions(DefCat.SupplyCats);
			FormD.ShowDialog();
			SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Definitions.");
		}
예제 #5
0
        private void butEdit_Click(object sender, EventArgs e)
        {
            FormDefinitions FormD = new FormDefinitions(DefCat.ProcButtonCats);

            FormD.ShowDialog();
            FillCategories();
            FillButtons();
        }
예제 #6
0
        private void butEditCats_Click(object sender, System.EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.Setup))
            {
                return;
            }
            FormDefinitions FormD = new FormDefinitions(DefCat.LetterMergeCats);

            FormD.ShowDialog();
            FillCats();
        }
예제 #7
0
        private void menuItemCategories_Click(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.Setup))
            {
                return;
            }
            FormDefinitions FormD = new FormDefinitions(DefCat.SupplyCats);

            FormD.ShowDialog();
            SecurityLogs.MakeLogEntry(Permissions.Setup, 0, "Definitions.");
        }
예제 #8
0
        private void butEdit_Click(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.Setup))
            {
                return;
            }
            FormDefinitions FormD = new FormDefinitions(DefCat.ProcButtonCats);

            FormD.ShowDialog();
            FillCategories();
            FillButtons();
        }
예제 #9
0
        private void menuItemImageCats_Click(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.Setup))
            {
                return;
            }
            FormDefinitions formD = new FormDefinitions(DefCat.ImageCats);

            formD.ShowDialog();
            SecurityLogs.MakeLogEntry(Permissions.Setup, 0, "Defs");
            FillGrid();
        }
예제 #10
0
        private void gridWSNPAReasons_DoubleClick(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.Setup))
            {
                return;
            }
            FormDefinitions FormD = new FormDefinitions(DefCat.WebSchedNewPatApptTypes);

            FormD.ShowDialog();
            FillGridWSNPAReasons();
            FillGridWebSchedNewPatApptTimeSlotsThreaded();
        }
예제 #11
0
 private void menuItemDefinitions_Click(object sender, System.EventArgs e)
 {
     if(!Security.IsAuthorized(Permissions.Setup)){
         return;
     }
     FormDefinitions FormD=new FormDefinitions(DefCat.AccountColors);//just the first cat.
     FormD.ShowDialog();
     RefreshCurrentModule();
     SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Definitions");
 }
예제 #12
0
 private void butEditCats_Click(object sender, System.EventArgs e)
 {
     if(!Security.IsAuthorized(Permissions.Setup)){
         return;
     }
     FormDefinitions FormD=new FormDefinitions(DefCat.LetterMergeCats);
     FormD.ShowDialog();
     FillCats();
 }
예제 #13
0
		private void butEditCategories_Click(object sender,EventArgs e) {
			//won't even be visible if no permission
			ArrayList selected=new ArrayList();
			for(int i=0;i<listCategories.SelectedIndices.Count;i++) {
				selected.Add(CatList[listCategories.SelectedIndices[i]].DefNum);
			}
			FormDefinitions FormD=new FormDefinitions(DefCat.ProcCodeCats);
			FormD.ShowDialog();
			DataValid.SetInvalid(InvalidType.Defs);
			changed=true;
			FillCats();
			for(int i=0;i<CatList.Length;i++) {
				if(selected.Contains(CatList[i].DefNum)) {
					listCategories.SetSelected(i,true);
				}
			}
			//we need to move security log to within the definition window for more complete tracking
			SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Definitions");
			FillGrid();
		}
예제 #14
0
		private void OnBlockTypes_Click() {
			if(!Security.IsAuthorized(Permissions.Setup)) {
				return;
			}
			FormDefinitions FormD=new FormDefinitions(DefCat.BlockoutTypes);
			FormD.ShowDialog();
			SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Definitions.");
			RefreshPeriod();
		}
예제 #15
0
		private void butEdit_Click(object sender,EventArgs e) {
			if(!Security.IsAuthorized(Permissions.Setup)) {
				return;
			}
			FormDefinitions FormD=new FormDefinitions(DefCat.ProcButtonCats);
			FormD.ShowDialog();
			FillCategories();
			FillButtons();
		}
예제 #16
0
		private void menuItemImageCats_Click(object sender,EventArgs e) {
			if(!Security.IsAuthorized(Permissions.Setup)) {
				return;
			}
			FormDefinitions formD=new FormDefinitions(DefCat.ImageCats);
			formD.ShowDialog();
			SecurityLogs.MakeLogEntry(Permissions.Setup,0,"Defs");
			FillGrid();
		}