Exemplo n.º 1
0
        protected override void AfterAdd(DataRow row)
        {
            officeDB.OfficerRoleRow dr = (officeDB.OfficerRoleRow)row;
            string ObjectName          = this.myDT.TableName;

            dr.OfficerRoleID = this.myA.AtMng.PKIDGet(ObjectName, 1);
            dr.Mod           = 1;
            dr.ModResult     = 0;
        }
Exemplo n.º 2
0
 protected override void BeforeChange(DataColumn dc, DataRow ddr)
 {
     officeDB.OfficerRoleRow dr = (officeDB.OfficerRoleRow)ddr;
     switch (dc.ColumnName)
     {
     case "RoleCode":
         if (!dr.RoleCode.StartsWith("G"))
         {
             throw new AtriumException(atriumBE.Properties.Resources.BadDomainValue, dc.ColumnName, dr.Table.TableName, "Role Code");
         }
         break;
     }
 }