示例#1
0
        public List <Models.AreaPreventa> getareassubareasppl(int t001_idficepi)
        {
            OpenDbConn();

            DAL.AreaPreventa cAreaPreventa = new DAL.AreaPreventa(cDblib);

            List <Models.AreaPreventa> lstDatos        = cAreaPreventa.getareassubareasppl(t001_idficepi);
            List <Models.AreaPreventa> lstPosibleLider = cAreaPreventa.getpplporsubareaparaficepi(t001_idficepi);

            foreach (Models.AreaPreventa item in lstDatos)
            {
                for (int i = 0; i < lstPosibleLider.Count; i++)
                {
                    if (item.ta201_idsubareapreventa == lstPosibleLider[i].ta201_idsubareapreventa)
                    {
                        item.profesional += lstPosibleLider[i].t001_idficepi + "@#@" + lstPosibleLider[i].profesional + "|";
                    }
                }


                //var lstPosibleLiderSubArea = (from p in lstPosibleLider
                //                                       where p.ta201_idsubareapreventa == item.ta201_idsubareapreventa
                //                                       //select new { p.profesional, p.t001_idficepi }).ToList();

                //                                       select p.profesional).ToList<String>();



                //item.profesional = string.Join("|", lstPosibleLiderSubArea.ToArray());
            }

            return(lstDatos);
        }
示例#2
0
        public List <Models.AreaPreventa> getpplporsubareaparaficepi(int t001_idficepi)
        {
            OpenDbConn();

            DAL.AreaPreventa cAreaPreventa = new DAL.AreaPreventa(cDblib);
            return(cAreaPreventa.getpplporsubareaparaficepi(t001_idficepi));
        }