public Action(int pClientID, int pCubeID) { this.Entitykey = pCubeID; this.ClientID = pClientID; this.ActionID = -1; dAction = new TechSharpy.Entitifier.Data.Action(); }
public Action(int pClientID, int pCubeID, string pActionName, string pActionSchema, int pActionOrder, Action.ActionType pActionType, bool pIsInclude) { this.Entitykey = pCubeID; this.ClientID = pClientID; this.ActionID = -1; this.ActionName = pActionName; this.ActionSchema = pActionSchema; this.ActionOrder = pActionOrder; this.Type = pActionType; this.IsInclude = pIsInclude; dAction = new TechSharpy.Entitifier.Data.Action(); }
public Action() { Type = ActionType.NONE; ActionName = ""; ActionSchema = ""; ActionCreatedOn = DateTime.Now; IsInclude = true; ActionID = -1; Entitykey = -1; //UserID = -1; ClientID = -1; dAction = new TechSharpy.Entitifier.Data.Action(); }
public bool SaveAction() { dAction = new TechSharpy.Entitifier.Data.Action(); // SMRHRT.Services.Collections.ErrorCollection.ErrorInfo err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo(); try { if (this.ActionID > 0) { //if (dAction.UpdateAction(this.Entitykey, this.ActionID, this.ActionSchema, this.IsInclude)) //{ // //err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Action Saved", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.NO_ERROR); // //audit = new Bix360.Global.Audit(this.ClientID, this.Entitykey, "Action Updated- " + this.ActionName, this.ActionSchema, Global.Audit.ActionCategory.CUBE, Global.Audit.ActionType.UPDATE, this.UserID); // //audit.Save(); //} // else // err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Unable to update action", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.ERR_CRITICAL); } else { this.ActionID = dAction.SaveAction(this.Entitykey, (int)Type, this.IsInclude, this.ActionName, this.ActionSchema); if (this.ActionID > 0) { //err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Action Saved", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.NO_ERROR); //audit = new Bix360.Global.Audit(this.ClientID, this.Entitykey, "Action Created-" + this.ActionName, this.ActionSchema, Global.Audit.ActionCategory.CUBE, Global.Audit.ActionType.INSERT, this.UserID); //audit.Save(); } // else // err = new SMRHRT.Services.Collections.ErrorCollection.ErrorInfo("Unable to save action", SMRHRT.Services.Collections.ErrorCollection.ErrorInfo.ErrorType.ERR_CRITICAL); } } catch (Exception ex) { throw ex; } return(true); //return err; }