Beispiel #1
0
 private void ExecutePostEntityCreate(LocalPluginContext localContext)
 {
     using (AutoNumberLogic logic = new AutoNumberLogic(localContext.OrganizationService, localContext.TracingService))
     {
         logic.CreateEntityLogic(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId, licenseMode);
     }
 }
Beispiel #2
0
 private void ExecutePostAutoNumberPublish(LocalPluginContext localContext)
 {
     if (licenseMode != LicenseMode.Unavailable)
     {
         using (AutoNumberLogic logic = new AutoNumberLogic(localContext.OrganizationService, localContext.TracingService))
             logic.AutoNumberPublishLogic(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId);
     }
 }
Beispiel #3
0
        protected void ExecutePostAutoNumberFill(LocalPluginContext localContext)
        {
            if (localContext == null)
            {
                throw new ArgumentNullException("localContext");
            }

            string errMessage = "";
            bool   isLicensed = Helper.ValidateLicense(out errMessage);

            if (isLicensed)
            {
                AutoNumberLogic logic = new AutoNumberLogic(localContext.OrganizationService);
                logic.FillAutoNumber(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId);
            }
        }