Ejemplo n.º 1
0
        public static ArrayList QueryPlanList(string sid, string emcode, string ptype)
        {
            ArrayList           r  = new ArrayList();
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                r.Add(iv.badstr);
                List <B_MzDesignPlan> lbp = bmdpb.QueryList(" and sid='" + sid + "' and ptype='" + ptype + "'");
                if (lbp != null)
                {
                    foreach (B_MzDesignPlan b in lbp)
                    {
                        string    cz = bebb.ItemsBtnList(sid, b.id.ToString(), emcode, iv.u.rcode);
                        ArrayList al = new ArrayList();
                        al.Add(b.place);
                        al.Add(b.pname);
                        al.Add(b.pnum);
                        al.Add(cz);
                        r.Add(al);
                    }
                }
            }
            else
            {
                r.Add(iv.badstr);
            }
            return(r);
        }
Ejemplo n.º 2
0
        public static ArrayList QueryMeasureList(string sid, string emcode)
        {
            ArrayList           r  = new ArrayList();
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                r.Add(iv.badstr);
                List <B_MzMeasureFile> lbp = bmmfb.QueryList(" and sid='" + sid + "'");
                if (lbp != null)
                {
                    foreach (B_MzMeasureFile b in lbp)
                    {
                        string    cz = bebb.ItemsBtnList(sid, b.id.ToString(), emcode, iv.u.rcode);
                        ArrayList al = new ArrayList();
                        al.Add(b.mname);
                        al.Add(CommonBll.GetBdate(b.cdate));
                        al.Add(cz);
                        r.Add(al);
                    }
                }
            }
            else
            {
                r.Add(iv.badstr);
            }
            return(r);
        }