Exemplo n.º 1
0
        private void menuItemSettings_Click(object sender, EventArgs e)
        {
            FormEhrSettings FormES = new FormEhrSettings();

            FormES.ShowDialog();
        }
Exemplo n.º 2
0
		private void butChangeDefault_Click(object sender,EventArgs e) {
			if(butChangeDefault.Text=="Go to Problem") {//text is "To Problem" only when vital sign has a valid PregDiseaseNum and the preg box is checked
				Disease disCur=Diseases.GetOne(VitalsignCur.PregDiseaseNum);
				if(disCur==null) {//should never happen, the only way the button will say "To Problem" is if this exam is pointing to a valid problem
					butChangeDefault.Text="Change Default";
					labelPregNotice.Visible=false;
					textPregCode.Clear();
					textPregCodeDescript.Clear();
					VitalsignCur.PregDiseaseNum=0;
					checkPregnant.Checked=false;
					return;
				}
				FormDiseaseEdit FormDis=new FormDiseaseEdit(disCur);
				FormDis.IsNew=false;
				FormDis.ShowDialog();
				if(FormDis.DialogResult==DialogResult.OK) {
					VitalsignCur.PregDiseaseNum=Vitalsigns.GetOne(VitalsignCur.VitalsignNum).PregDiseaseNum;//if unlinked in FormDiseaseEdit, refresh PregDiseaseNum from db
					if(VitalsignCur.PregDiseaseNum==0) {
						butChangeDefault.Text="Change Default";
						labelPregNotice.Visible=false;
						textPregCode.Clear();
						textPregCodeDescript.Clear();
						checkPregnant.Checked=false;
						return;
					}
					SetPregCodeAndDescript();
					if(pregDisDefNumCur==0) {
						labelPregNotice.Visible=false;
						butChangeDefault.Text="Change Default";
					}
				}
			}
			else {
				if(!Security.IsAuthorized(Permissions.SecurityAdmin,false)) {
					return;
				}
				FormEhrSettings FormEhr=new FormEhrSettings();
				FormEhr.ShowDialog();
				if(FormEhr.DialogResult!=DialogResult.OK || checkPregnant.Checked==false) {
					return;
				}
				labelPregNotice.Visible=false;
				SetPregCodeAndDescript();
				if(pregDisDefNumCur>0) {
					labelPregNotice.Visible=true;
				}
			}
		}
Exemplo n.º 3
0
		private void menuItemSettings_Click(object sender,EventArgs e) {
			FormEhrSettings FormES=new FormEhrSettings();
			FormES.ShowDialog();
		}