示例#1
0
        public override clsMsg exec(clsCmd cmd)
        {
            var msg = validate(cmd);

            if (msg.Validated == false)
            {
                return(msg);
            }

            if (!func.isEmpty())
            {
                NTier.Request.iRequest oReq = _assembly.createInstance(this.AssemblyName, this.classPath) as iRequest;
                oReq.setTier(_tier);
                object[] objParams = new object[] { cmd };
                var      m         = oReq.GetType().GetMethod(func);
                msg = (clsMsg)m.Invoke(oReq, objParams);
                return(msg);
            }
            else
            {
                NTier.Request.iCommand oCmd = _assembly.createInstance(this.AssemblyName, this.classPath) as iCommand;
                oCmd.setTier(_tier);
                return(oCmd.exec(cmd));
            }
        }
示例#2
0
        public override clsMsg getData(clsCmd cmd)
        {
            var obj = new NTier.Request.clsGetDataView(_adapter);



            if (this.func.isEmpty() == false)
            {
                NTier.Request.iRequest iCmd = AppDomain.CurrentDomain.CreateInstance(this.assemblyName, this.classPath).Unwrap() as iRequest;
                iCmd.setTier(this._tier);
                object[] objParams = new object[] { cmd };
                var      m         = iCmd.GetType().GetMethod(this.func);
                clsMsg   msg       = (clsMsg)m.Invoke(iCmd, objParams);

                return(msg);
            }
            else
            {
                NTier.Request.iGetData iCmd = AppDomain.CurrentDomain.CreateInstance(this.assemblyName, this.classPath).Unwrap() as iGetData;
                iCmd.setTier(this._tier);
                return(iCmd.getData(cmd));
            }

            return(g.msg("", obj.getData(cmd)));
        }
示例#3
0
        public override clsMsg getFileData(clsCmd cmd)
        {
            NTier.Request.iRequest oReq = _Assembly.createInstance(this.assemblyName, this.classPath) as iRequest;
            oReq.setTier(this._tier);

            object[] objParams = new object[] { cmd };
            var      m         = oReq.GetType().GetMethod(this.func);
            clsMsg   msg       = (clsMsg)m.Invoke(oReq, objParams);

            return(msg);
        }
            public clsMsg getFileData(clsCmd cmd
                                      , iBussinessTier oTier)
            {
                NTier.Request.iRequest oReq = _oAssembly.createInstance(this.AssemblyName, this.classPath) as iRequest;
                oReq.setTier(oTier);

                object[] objParams = new object[] { cmd };
                var      m         = oReq.GetType().GetMethod(this.functionName);
                clsMsg   msg       = (clsMsg)m.Invoke(oReq, objParams);

                return(msg);
            }