Ejemplo n.º 1
0
        public static ArrayList QueryAllList()
        {
            ArrayList              r    = new ArrayList();
            Sys_ProcessFlowBll     snsb = new Sys_ProcessFlowBll();
            List <Sys_ProcessFlow> lsf  = new List <Sys_ProcessFlow>();
            SessionUserValidate    iv   = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                r.Add(iv.badstr);
                StringBuilder where = new StringBuilder();
                lsf = snsb.QueryList(" and pstate='true'");
                if (lsf != null)
                {
                    foreach (Sys_ProcessFlow s in lsf)
                    {
                        ArrayList al = new ArrayList();
                        al.Add(s.pcode);
                        al.Add(s.pname);
                        al.Add(s.pstate);
                        r.Add(al);
                    }
                }
            }
            else
            {
                r.Add(iv.badstr);
            }
            return(r);
        }
Ejemplo n.º 2
0
        public static ArrayList CustQueryAllList()
        {
            ArrayList              r    = new ArrayList();
            Sys_ProcessFlowBll     snsb = new Sys_ProcessFlowBll();
            List <Sys_ProcessFlow> lsf  = new List <Sys_ProcessFlow>();
            SessionUserValidate    iv   = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                r.Add(iv.badstr);
                string where = "";
                if (iv.u.rcode == "xtgl")
                {
                }
                else
                {
                    where = " and dcode='" + iv.u.dcode.Substring(0, 8) + "'";
                }
                lsf = snsb.QueryList(" and pstate='true'" + where);
                if (lsf != null)
                {
                    foreach (Sys_ProcessFlow s in lsf)
                    {
                        ArrayList al = new ArrayList();
                        al.Add(s.pcode);
                        al.Add(s.pname);
                        al.Add(s.pstate);
                        r.Add(al);
                    }
                }
            }
            else
            {
                r.Add(iv.badstr);
            }
            return(r);
        }