示例#1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormPopupEdit FormPE = new FormPopupEdit();

            FormPE.PopupCur = PopupList[e.Row];
            FormPE.ShowDialog();
            FillGrid();
        }
		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();
			}
		}
		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();
		}
示例#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();
 }
示例#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();
        }
示例#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();
        }
示例#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();
         }
     }
 }