コード例 #1
0
        public bool NextWorkFlowStep(ref string mensaje, int WorkFlowId, int InvoiceId, string userName, bool refuse)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>();

            parameters.Add("_WorkFlowId", WorkFlowId);
            parameters.Add("_InvoiceId", InvoiceId);
            parameters.Add("_userName", userName);
            parameters.Add("_refuse", refuse);


            //filasAfectadas = _database.ExecuteSP("spu_updateWorkFlowNextStep", parameters);
            var  rows = _database.QuerySP("spu_updateWorkFlowNextStep", parameters);
            bool bOk  = false;

            bOk = rows[0]["MESSAGE"].Equals("");


            mensaje = rows[0]["MESSAGE"];



            return(bOk);
        }