protected void OnRunReferenceItemDialog(object sender, Reference.RunReferenceItemDlgEventArgs e) { ResponseType Result; switch (e.TableName) { case "doc_types": DocsType DocTypeEdit = new DocsType(); if (e.NewItem) { DocTypeEdit.NewDocsType = true; } else { DocTypeEdit.Fill(e.ItemId); } DocTypeEdit.Show(); Result = (ResponseType)DocTypeEdit.Run(); DocTypeEdit.Destroy(); break; default: Result = ResponseType.None; break; } e.Result = Result; }
protected void OnRunReferenceItemDialog(object sender, Reference.RunReferenceItemDlgEventArgs e) { ResponseType Result; switch (e.TableName) { case "doc_types": DocsType DocTypeEdit = new DocsType(); if(e.NewItem) DocTypeEdit.NewDocsType = true; else DocTypeEdit.Fill(e.ItemId); DocTypeEdit.Show(); Result = (ResponseType)DocTypeEdit.Run(); DocTypeEdit.Destroy(); break; default: Result = ResponseType.None; break; } e.Result = Result; }