Example #1
0
        public List <ListValue> getList(string MonthType)
        {
            List <ListValue>         list  = new List <ListValue>();
            KidsTcmhmThreeToSixModel model = this.getModel(MonthType);

            if (model == null)
            {
                return(null);
            }
            list.Add(new ListValue
            {
                strMark = "$" + MonthType + "sfrq",
                strVal  = DrawItems.strToDate(model.FollowupDate)
            });
            list.Add(new ListValue
            {
                strMark = "$" + MonthType + "sfys",
                strVal  = DrawItems.objToStr(model.FollowUpDoctor)
            });
            list.Add(new ListValue
            {
                strMark = "$" + MonthType + "xcsf",
                strVal  = DrawItems.strToDate(model.NextFollowupDate)
            });
            list.Add(new ListValue
            {
                strMark = "$" + MonthType + "qt",
                strVal  = DrawItems.objToStr(model.TcmhmOther)
            });
            list.AddRange(DrawItems.lsCheck(model.Tcmhm, MonthType, "zd", 4));
            return(list);
        }
Example #2
0
        public List <KidsTcmhmThreeToSixModel> DataTableToList(DataTable dt)
        {
            List <KidsTcmhmThreeToSixModel> list = new List <KidsTcmhmThreeToSixModel>();
            int count = dt.Rows.Count;

            if (count > 0)
            {
                for (int i = 0; i < count; i++)
                {
                    KidsTcmhmThreeToSixModel item = this.dal.DataRowToModel(dt.Rows[i]);
                    if (item != null)
                    {
                        list.Add(item);
                    }
                }
            }
            return(list);
        }
Example #3
0
 public FixedDocumentSequence getReport()
 {
     if (!string.IsNullOrEmpty(this.CardID))
     {
         RecordsBaseInfoModel model = new RecordsBaseInfoBLL().GetModel(this.CardID);
         List <ListValue>     list  = new List <ListValue>
         {
             new ListValue
             {
                 strMark = "$archiveid",
                 strVal  = model.RecordID
             },
             new ListValue
             {
                 strMark = "$name",
                 strVal  = model.CustomerName
             }
         };
         KidsTcmhmOneToThreeModel modelTwo2 = this.getModel("3");
         if (modelTwo2 != null)
         {
             list.Add(new ListValue
             {
                 strMark = "$1sfrq",
                 strVal  = DrawItems.strToDate(modelTwo2.FollowupDate)
             });
             list.Add(new ListValue
             {
                 strMark = "$1xcsf",
                 strVal  = DrawItems.strToDate(modelTwo2.NextFollowupDate)
             });
             list.Add(new ListValue
             {
                 strMark = "$1qt",
                 strVal  = DrawItems.objToStr(modelTwo2.TcmhmOther)
             });
             list.Add(new ListValue
             {
                 strMark = "&1sfys",
                 strVal  = string.Format("{0}{1}_Mec24_Doc.png", SignPath, this.CardID)
             });
             list.Add(new ListValue
             {
                 strMark = "&1jz",
                 strVal  = string.Format("{0}{1}_Mec24.png", SignPath, this.CardID)
             });
             list.AddRange(DrawItems.lsCheck(modelTwo2.Tcmhm, "1zd", 4));
         }
         KidsTcmhmOneToThreeModel modelTwo3 = this.getModel("4");
         if (modelTwo3 != null)
         {
             list.Add(new ListValue
             {
                 strMark = "$2sfrq",
                 strVal  = DrawItems.strToDate(modelTwo3.FollowupDate)
             });
             list.Add(new ListValue
             {
                 strMark = "$2xcsf",
                 strVal  = DrawItems.strToDate(modelTwo3.NextFollowupDate)
             });
             list.Add(new ListValue
             {
                 strMark = "$2qt",
                 strVal  = DrawItems.objToStr(modelTwo3.TcmhmOther)
             });
             list.Add(new ListValue
             {
                 strMark = "&2sfys",
                 strVal  = string.Format("{0}{1}_Mec30_Doc.png", SignPath, this.CardID)
             });
             list.Add(new ListValue
             {
                 strMark = "&2jz",
                 strVal  = string.Format("{0}{1}_Mec30.png", SignPath, this.CardID)
             });
             list.AddRange(DrawItems.lsCheck(modelTwo3.Tcmhm, "2zd", 4));
         }
         KidsTcmhmThreeToSixModel modelThree = this.getModelThree("1");
         if (modelThree != null)
         {
             list.Add(new ListValue
             {
                 strMark = "$3sfrq",
                 strVal  = DrawItems.strToDate(modelThree.FollowupDate)
             });
             list.Add(new ListValue
             {
                 strMark = "$3xcsf",
                 strVal  = DrawItems.strToDate(modelThree.NextFollowupDate)
             });
             list.Add(new ListValue
             {
                 strMark = "$3qt",
                 strVal  = DrawItems.objToStr(modelThree.TcmhmOther)
             });
             list.Add(new ListValue
             {
                 strMark = "&3sfys",
                 strVal  = string.Format("{0}{1}_Mec36_Doc.png", SignPath, this.CardID)
             });
             list.Add(new ListValue
             {
                 strMark = "&3jz",
                 strVal  = string.Format("{0}{1}_Mec36.png", SignPath, this.CardID)
             });
             list.AddRange(DrawItems.lsCheck(modelThree.Tcmhm, "3zd", 4));
         }
         //for (int i = 1; i < 5; i++)
         //{
         //    List<ListValue> list2 = this.getList(i.ToString());
         //    if (list2 != null)
         //    {
         //        list.AddRange(list2);
         //    }
         //}
         return(DrawItems.setPage("printXps\\24-36月龄儿童中医药健康管理.xps", list));
     }
     return(null);
 }
Example #4
0
 public int AddServer(KidsTcmhmThreeToSixModel model)
 {
     return(this.dal.AddServer(model));
 }
Example #5
0
 public bool UpdateServer(KidsTcmhmThreeToSixModel model)
 {
     return(this.dal.UpdateServer(model));
 }