ATT.Forms/ATT.Forms/FormAttestationQueryAnswer.cs
Decompiler Source FileATT.Forms.FormAttestationQueryAnswerDecompiled Source
Interpretation
- Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.
Relations
- CallMethod: AnswerFromPerson at line 79
Typed Edges
- No typed edges extracted for this source.
References
- No direct source references extracted.
Referenced By
- No direct source references extracted.
C# source-derived context
Generated by pattern extraction from the decompiled C# source and decompile index. This is factual source evidence, not inferred behavior.
references DB/Dialog objects
Summary: classes FormAttestationQueryAnswer; methods OnInit, InitializeComponent, OnFormLoad, MainActivator_OnActivating, ButtonAnswer_Click; references AttestationCase, AttestationHelper, Person, PWODecisionRule; markers references DB/Dialog objects
Classes
FormAttestationQueryAnswerDB/Dialog object references
OIM key/entity markers
UID_PWODecisionRule UID_AttestationCaseAPI/entity calls
Source AndRelation UserRegistrations / handlers
None extracted.
Complete Source
1using System;2using VI.Base;3using VI.Controls;4using VI.Controls.Interfaces;5using VI.DB;6using VI.DB.Entities;7using VI.DB.Sync;8using VI.FormBase;9using VI.FormCustomizers;10using VI.FormTools;1112namespace ATT.Forms;1314public class FormAttestationQueryAnswer : BaseCustomizer15{16 private IActivatorComponent m_MainActivator;1718 private IButton m_ButtonAnswer;1920 private IEdit m_EditAnwser;2122 private IEdit m_EditQuery;2324 private IHorizFormBar m_FormHeader;2526 private ILinkComboBox m_FKLinkUIDPersonHead;2728 private IVIPanel m_MainPanel;2930 protected override void OnInit()31 {32 base.OnInit();33 try34 {35 m_ButtonAnswer = base.Form.GetControl<IButton>("ButtonAnswer");36 m_EditAnwser = base.Form.GetControl<IEdit>("EditAnwser");37 m_EditQuery = base.Form.GetControl<IEdit>("EditQuery");38 m_FKLinkUIDPersonHead = base.Form.GetControl<ILinkComboBox>("FKLinkUIDPersonHead");39 m_FormHeader = base.Form.GetControl<IHorizFormBar>("FormHeader");40 m_MainActivator = base.Form.GetComponent<IActivatorComponent>("MainActivator");41 m_MainPanel = base.Form.GetControl<IVIPanel>("MainPanel");42 }43 catch (System.Exception innerException)44 {45 throw new FormCustomizerException(874825, innerException, ((object)this).ToString());46 }47 }4849 private void InitializeComponent()50 {51 }5253 protected override void OnFormLoad()54 {55 m_EditAnwser.Text = "";56 m_EditQuery.Text = "";57 }5859 private void MainActivator_OnActivating(object sender, EventArgs e)60 {61 m_EditQuery.Text = "";62 m_EditAnwser.Text = "";63 m_ButtonAnswer.Enabled = true;64 ISingleDbObject dbObject = m_MainActivator.DbObject;65 if (dbObject != null)66 {67 ISqlFormatter sqlFormatter = base.SqlFormatter;68 m_EditQuery.Text = base.Session.Source().GetSingleValue<string>("AttestationHelper", "ReasonHead", base.SqlFormatter.AndRelation("UID_PWODecisionRule IN (SELECT UID_PWODecisionRule FROM PWODecisionRule WHERE " + sqlFormatter.Comparison("DecisionRule", "QP", ValType.String) + " )", sqlFormatter.UidComparison("UID_AttestationCase", dbObject.GetValueSafe("UID_AttestationCase", "---"))));69 }70 }7172 private void ButtonAnswer_Click(object sender, EventArgs e)73 {74 try75 {76 ISingleDbObject dbObject = m_MainActivator.DbObject;77 if (dbObject != null)78 {79 dbObject.Custom.CallMethod("AnswerFromPerson", base.Session.User().Uid, m_EditAnwser.Text);80 dbObject.Save();81 dbObject.Load();82 if (AppData.Instance.AppType == AppType.Web)83 {84 FormTool.ShowMessage("ATT_FormAttestationQueryAnswer_Message_AnswerSent");85 m_ButtonAnswer.Enabled = false;86 }87 CloseForm();88 }89 }90 catch (System.Exception exception)91 {92 ExceptionMgr.Instance.HandleException(exception, this);93 }94 }95}96