コード例 #1
0
ファイル: RelativesBLL.cs プロジェクト: ahmgeek/crm
        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
ファイル: ClientCaseBLL.cs プロジェクト: ahmgeek/crm
        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
ファイル: ClientCaseBLL.cs プロジェクト: ahmgeek/crm
        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);
        }