コード例 #1
0
        protected override void AfterAdd(DataRow row)
        {
            SST.SSTRequestRow dr         = (SST.SSTRequestRow)row;
            string            ObjectName = this.mySSTRequestDT.TableName;

            dr.SSTReqId  = myA.AtMng.PKIDGet(ObjectName, 10);
            dr.FileId    = dr.SSTCaseRow.FileId;
            dr.Abandoned = false;
        }
コード例 #2
0
 protected override void BeforeUpdate(DataRow dr)
 {
     SST.SSTRequestRow sr = (SST.SSTRequestRow)dr;
     if (sr.RowState != DataRowState.Deleted)
     {
         if (sr.GetSSTReqRecipientRows().Length == 0)
         {
             throw new AtriumException("You must have at least one recipient");
         }
     }
 }
コード例 #3
0
        protected override void AfterChange(DataColumn dc, DataRow row)
        {
            SST.SSTRequestRow dr = (SST.SSTRequestRow)row;

            switch (dc.ColumnName)
            {
            case "DueDate":
                myA.FM.GetActivityBF().MaintainBFDate(dr.SSTReqId, myDT.TableName, dc.ColumnName, dr.DueDate);
                break;

            case "RefreshRecips":
                if (dr.RefreshRecips)
                {
                    foreach (SST.SSTReqRecipientRow rrr in dr.GetSSTReqRecipientRows())
                    {
                        rrr.Delete();
                    }
                    foreach (SST.FilePartyRow fpr in myA.DB.FileParty)
                    {
                        if (fpr.SendTo)
                        {
                            SST.SSTReqRecipientRow    reqrow = (SST.SSTReqRecipientRow)myA.GetSSTReqRecipient().Add(dr);
                            atriumDB.FileContactRow[] fcr    = (atriumDB.FileContactRow[])myA.FM.DB.FileContact.Select("FileContactid=" + fpr.FileContactId, "");
                            if (fcr.Length == 1)
                            {
                                reqrow.SentToContactId = fcr[0].ContactId;
                            }
                            else
                            {
                                throw new Exception("Could not set ContactID for Party: " + fpr.DisplayName);
                            }
                        }
                    }
                }
                break;
            }
        }
コード例 #4
0
 protected override void AfterUpdate(DataRow row)
 {
     SST.SSTRequestRow dr = (SST.SSTRequestRow)row;
     EFileBE.XmlAddToc(myA.FM.CurrentFile, "sstrequest", "Correspondence Requests", "Demandes de correspondances", 111);
 }
コード例 #5
0
 public override void ApplySecurity(DataRow dr)
 {
     SST.SSTRequestRow cbr = (SST.SSTRequestRow)dr;
     UIHelper.EnableControls(sSTRequestBindingSource, SSTM.GetSSTRequest().CanEdit(cbr));
     UIHelper.EnableCommandBarCommand(tsDelete, SSTM.GetSSTRequest().CanDelete(cbr));
 }