Exemplo n.º 1
0
        protected override void AfterChange(DataColumn dc, DataRow ddr)
        {
            atriumDB.RiskAssessmentRow sur = (atriumDB.RiskAssessmentRow)ddr;
            switch (dc.ColumnName)
            {
            case RiskAssessmentFields.Likelihood:
            case RiskAssessmentFields.Impact:

                sur.RiskLevel = rl[sur.Likelihood, sur.Impact];;
                sur.EndEdit();
                break;

            case "SubjectToContingentLiability":
                if (sur.SubjectToContingentLiability)
                {
                    sur.CLRStartDate = DateTime.Now;
                    if (!sur.IsCLREndDateNull())
                    {
                        sur.SetCLREndDateNull();
                    }
                }
                else
                {
                    sur.CLREndDate = DateTime.Now;
                }
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
 protected override void BeforeChange(DataColumn dc, DataRow ddr)
 {
     atriumDB.RiskAssessmentRow sur = (atriumDB.RiskAssessmentRow)ddr;
     switch (dc.ColumnName)
     {
     default:
         break;
     }
 }
Exemplo n.º 3
0
 private void riskAssessmentBindingSource_CurrentChanged(object sender, EventArgs e)
 {
     try
     {
         atriumDB.RiskAssessmentRow dr = CurrentRow();
         ApplySecurity(dr);
     }
     catch (Exception x)
     {
         UIHelper.HandleUIException(x);
     }
 }
Exemplo n.º 4
0
        protected override void AfterAdd(DataRow row)
        {
            atriumDB.RiskAssessmentRow dr = (atriumDB.RiskAssessmentRow)row;
            string ObjectName             = this.myRiskAssessmentDT.TableName;

            dr.RiskAssessId            = this.myA.AtMng.PKIDGet(ObjectName, 10);
            dr.RiskLevel               = 0;
            dr.PossibilityOfSettlement = 0;
            dr.Impact         = 0;
            dr.Likelihood     = 0;
            dr.Complexity     = 0;
            dr.Status         = "PS";
            dr.AssessedById   = myA.AtMng.WorkingAsOfficer.OfficerId;
            dr.AssessmentDate = DateTime.Today;
            dr.SubjectToContingentLiability = false;
        }
Exemplo n.º 5
0
 protected override void AfterUpdate(DataRow row)
 {
     atriumDB.RiskAssessmentRow dr = (atriumDB.RiskAssessmentRow)row;
     EFileBE.XmlAddToc(dr.EFileRow, "riskassessment", "Legal Risk Management", "Gestion du risque juridique", 140);
 }
Exemplo n.º 6
0
 public override void ApplySecurity(DataRow dr)
 {
     atriumDB.RiskAssessmentRow cbr = (atriumDB.RiskAssessmentRow)dr;
     UIHelper.EnableControls(riskAssessmentBindingSource, FM.GetRiskAssessment().CanEdit(cbr));
     UIHelper.EnableCommandBarCommand(tsDelete, FM.GetRiskAssessment().CanDelete(cbr));
 }