Пример #1
0
        public static Relatives GetItem(int id)
        {
            Relatives rel = RelativesDAL.GetByClient(id);
            Client    cl  = ClientBLL.GetItem(rel.CLientRelId);

            rel.ClientRelName = cl.FullName;
            rel.CLientRelId   = cl.CLientId;
            return(rel);
        }
Пример #2
0
        public static List <ClientCase> GetListView()
        {
            List <ClientCase> clientCases = ClientCaseDAL.GetList();

            for (int i = 0; i < clientCases.Count; i++)
            {
                Client       client       = ClientBLL.GetItem(clientCases[i].ClientId);
                Prescription prescription = PrescriptionBLL.GetByCase(clientCases[i].CaseId);
                clientCases[i].FullName = client.FullName;
                clientCases[i].Mob      = client.Mob;
                clientCases[i].Gender   = client.Gender;
                //Prescription
                clientCases[i].PrescriptionId     = prescription.PrescriptionId;
                clientCases[i].PrescriptionStatus = prescription.Status;
                clientCases[i].ConfermedComment   = prescription.ConfermedComment;
            }


            return(clientCases);
        }
Пример #3
0
        public static ClientCase GetItem(int id)
        {
            ClientCase   clientCase = ClientCaseDAL.GetItem(id);
            Client       client     = ClientBLL.GetItem(clientCase.ClientId);
            Prescription presc      = PrescriptionBLL.GetByCase(clientCase.CaseId);

            try
            {
                Relatives rel = RelativesBLL.GetItem(clientCase.ClientId);
                clientCase.ClientRelName = rel.ClientRelName;
            }
            catch (Exception)
            {
            }
            clientCase.FullName           = client.FullName;
            clientCase.Mob                = client.Mob;
            clientCase.Gender             = client.Gender;
            clientCase.PrescriptionStatus = presc.Status;

            //Prescription

            return(clientCase);
        }