Exemplo n.º 1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormPopupEdit FormPE = new FormPopupEdit();

            FormPE.PopupCur = PopupList[e.Row];
            FormPE.ShowDialog();
            FillGrid();
        }
Exemplo n.º 2
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormPopupEdit FormPE=new FormPopupEdit();
			FormPE.PopupCur=PopupList[e.Row];
			FormPE.ShowDialog();
			if(FormPE.DialogResult==DialogResult.OK) {
				FillGrid();
			}
		}
Exemplo n.º 3
0
		private void gridPopupAudit_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormPopupEdit FormPE=new FormPopupEdit();
			FormPE.PopupAudit=PopupCur;
			DateTime dateLastEdit=DateTime.MinValue;
			if(e.Row > 0 && ListPopupAud[e.Row-1].DateTimeEntry.Year > 1880) {
				FormPE.DateLastEdit=ListPopupAud[e.Row-1].DateTimeEntry;
			}
			FormPE.PopupCur=ListPopupAud[e.Row];
			FormPE.ShowDialog();
		}
Exemplo n.º 4
0
 private void butAdd_Click(object sender,EventArgs e)
 {
     FormPopupEdit FormPE=new FormPopupEdit();
     Popup popup=new Popup();
     popup.PatNum=PatCur.PatNum;
     popup.PopupLevel=EnumPopupLevel.Patient;
     popup.IsNew=true;
     FormPE.PopupCur=popup;
     FormPE.ShowDialog();
     FillGrid();
 }
Exemplo n.º 5
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            FormPopupEdit FormPE = new FormPopupEdit();
            Popup         popup  = new Popup();

            popup.PatNum     = PatCur.PatNum;
            popup.PopupLevel = EnumPopupLevel.Patient;
            popup.IsNew      = true;
            FormPE.PopupCur  = popup;
            FormPE.ShowDialog();
            FillGrid();
        }
Exemplo n.º 6
0
        private void gridPopupAudit_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormPopupEdit FormPE = new FormPopupEdit();

            FormPE.PopupAudit = PopupCur;
            DateTime dateLastEdit = DateTime.MinValue;

            if (e.Row > 0 && ListPopupAud[e.Row - 1].DateTimeEntry.Year > 1880)
            {
                FormPE.DateLastEdit = ListPopupAud[e.Row - 1].DateTimeEntry;
            }
            FormPE.PopupCur = ListPopupAud[e.Row];
            FormPE.ShowDialog();
        }
Exemplo n.º 7
0
 private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
 {
     if (((Popup)gridMain.ListGridRows[e.Row].Tag).PopupLevel == EnumPopupLevel.Automation)
     {
         MsgBox.Show(this, "To edit automations go to Setup | Automation");
     }
     else
     {
         FormPopupEdit FormPE = new FormPopupEdit();
         FormPE.PopupCur = (Popup)gridMain.ListGridRows[e.Row].Tag;
         FormPE.ShowDialog();
         if (FormPE.DialogResult == DialogResult.OK)
         {
             FillGrid();
         }
     }
 }