protected override bool HandleExecuteACMethod(out object result, AsyncMethodInvocationMode invocationMode, string acMethodName, gip.core.datamodel.ACClassMethod acClassMethod, params object[] acParameter)
 {
     //result = null;
     //switch (acMethodName)
     //{
     //}
     return(base.HandleExecuteACMethod(out result, invocationMode, acMethodName, acClassMethod, acParameter));
 }
 protected override bool HandleExecuteACMethod(out object result, AsyncMethodInvocationMode invocationMode, string acMethodName, gip.core.datamodel.ACClassMethod acClassMethod, params object[] acParameter)
 {
     result = null;
     switch (acMethodName)
     {
     case "SumLinesByID":
         result = SumLinesByID((Guid)acParameter[0]);
         return(true);
     }
     return(base.HandleExecuteACMethod(out result, invocationMode, acMethodName, acClassMethod, acParameter));
 }
예제 #3
0
        protected override bool HandleExecuteACMethod(out object result, AsyncMethodInvocationMode invocationMode, string acMethodName, ACClassMethod acClassMethod, params object[] acParameter)
        {
            result = null;
            switch (acMethodName)
            {
            case "Save":
                Save();
                return(true);

            case "IsEnabledSave":
                result = IsEnabledSave();
                return(true);

            case "UndoSave":
                UndoSave();
                return(true);

            case "IsEnabledUndoSave":
                result = IsEnabledUndoSave();
                return(true);

            case "Load":
                Load(acParameter.Count() == 1 ? (Boolean)acParameter[0] : false);
                return(true);

            case "IsEnabledLoad":
                result = IsEnabledLoad();
                return(true);

            case "New":
                New();
                return(true);

            case "IsEnabledNew":
                result = IsEnabledNew();
                return(true);

            case "Delete":
                Delete();
                return(true);

            case "IsEnabledDelete":
                result = IsEnabledDelete();
                return(true);

            case "Search":
                Search();
                return(true);
            }
            return(base.HandleExecuteACMethod(out result, invocationMode, acMethodName, acClassMethod, acParameter));
        }