private void butAdd_Click(object sender, EventArgs e) { FormEhrLabResultEdit2014 FormLRE = new FormEhrLabResultEdit2014(); FormLRE.EhrLabResultCur = new EhrLabResult(); FormLRE.EhrLabResultCur.IsNew = true; FormLRE.ShowDialog(); if (FormLRE.DialogResult != DialogResult.OK) { return; } EhrLabCur.ListEhrLabResults.Add(FormLRE.EhrLabResultCur); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormEhrLabResultEdit2014 FormLRE = new FormEhrLabResultEdit2014(); FormLRE.EhrLabResultCur = EhrLabCur.ListEhrLabResults[e.Row]; FormLRE.IsImport = IsImport; FormLRE.IsViewOnly = IsViewOnly; FormLRE.ShowDialog(); if (IsImport || IsViewOnly || FormLRE.DialogResult != DialogResult.OK) { return; } EhrLabCur.ListEhrLabResults[e.Row] = FormLRE.EhrLabResultCur; FillGrid(); }
private void butAdd_Click(object sender,EventArgs e) { FormEhrLabResultEdit2014 FormLRE=new FormEhrLabResultEdit2014(); FormLRE.EhrLabResultCur=new EhrLabResult(); FormLRE.EhrLabResultCur.IsNew=true; FormLRE.ShowDialog(); if(FormLRE.DialogResult!=DialogResult.OK) { return; } EhrLabCur.ListEhrLabResults.Add(FormLRE.EhrLabResultCur); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEhrLabResultEdit2014 FormLRE=new FormEhrLabResultEdit2014(); FormLRE.EhrLabResultCur=EhrLabCur.ListEhrLabResults[e.Row]; FormLRE.IsImport=IsImport; FormLRE.IsViewOnly=IsViewOnly; FormLRE.ShowDialog(); if(IsImport || IsViewOnly || FormLRE.DialogResult!=DialogResult.OK) { return; } EhrLabCur.ListEhrLabResults[e.Row]=FormLRE.EhrLabResultCur; FillGrid(); }