Пример #1
0
        private void UpdateChart()
        {
            CommClient.PatientCardManage           manage = new CommClient.PatientCardManage();
            List <CommContracts.PatientCardManage> list   = manage.GetAllPatientCardManage();

            var queryAdd = from u in list
                           where u.CardManageEnum == CommContracts.CardManageEnum.新建卡
                           select u;

            var queryLost = from u in list
                            where u.CardManageEnum == CommContracts.CardManageEnum.挂失卡
                            select u;

            var queryReNew = from u in list
                             where u.CardManageEnum == CommContracts.CardManageEnum.补办卡
                             select u;

            CommClient.PatientCardPrePay           preClient = new CommClient.PatientCardPrePay();
            List <CommContracts.PatientCardPrePay> list1     = preClient.GetAllPrePay(0);

            var queryAddFee = from p in list1
                              where p.PrePayType == CommContracts.PrePayTypeEnum.缴款
                              select p;

            var queryReturnFee = from p in list1
                                 where p.PrePayType == CommContracts.PrePayTypeEnum.退款
                                 select p;


            values.Add(new Value()
            {
                Label = "办理新卡", YValue = queryAdd.Count()
            });
            values.Add(new Value()
            {
                Label = "挂失", YValue = queryLost.Count()
            });
            values.Add(new Value()
            {
                Label = "补办", YValue = queryReNew.Count()
            });
            values.Add(new Value()
            {
                Label = "缴款", YValue = queryAddFee.Count()
            });
            values.Add(new Value()
            {
                Label = "退款", YValue = queryReturnFee.Count()
            });

            MyChart.Series[0].DataSource = values;
        }
Пример #2
0
 /// <summary>
 /// 保存就诊卡办理
 /// </summary>
 public bool SavePatientCardManage(CommContracts.PatientCardManage patientCardManage, ref string ErrorMsg)
 {
     CommClient.PatientCardManage manage = new CommClient.PatientCardManage();
     return(manage.SavePatientCardManage(patientCardManage, ref ErrorMsg));
 }
Пример #3
0
 private List <CommContracts.PatientCardManage> GetAllPatientCardRecords(string strName)
 {
     CommClient.PatientCardManage manage = new CommClient.PatientCardManage();
     return(manage.GetAllPatientCardManage(strName));
 }