Ejemplo n.º 1
0
 public void Person_View()
 {
     _bdmSvc = new BDMService();
     var list = _bdmSvc.GetViewOfAllPersons("QST");
 }
Ejemplo n.º 2
0
        public void Person_CRUD()
        {
            _bdmSvc = new BDMService();

            Person p = new Person();
            //p.SiteCode = "QST";
            //p.EntityName = "Imran";
            //p.EntityTypeCode = "DNR";

            //var mod = _bdmSvc.AddPerson(p);

            var list = _bdmSvc.GetViewOfAllPersons("QST");
            if (list != null && list.Count > 0)
            {
                PersonView pv = list[0];
                //p = pv.ToPerson();
                //p.EntityName = "Imran ...";
                //p.Signature = "imran@123";
                //if (_bdmSvc.ModifyPerson(p))
                //{

                //}
                p = _bdmSvc.GetPersonById(pv.SiteCode, pv.EntityTypeCode, pv.ID);
            }
        }