Example #1
0
 /// <summary>
 /// 实例化病人随访记录
 /// </summary>
 /// <param name="T"></param>
 /// <returns></returns>
 public Class_Follow_Patient[] GetRecords(DataTable T)
 {
     if (T != null)
     {
         if (T.Rows.Count != 0)
         {
             Class_Follow_Patient[] Rec = new Class_Follow_Patient[T.Rows.Count];
             for (int i = 0; i < T.Rows.Count; i++)
             {
                 Rec[i]                = new Class_Follow_Patient();
                 Rec[i].Id             = T.Rows[i]["id"].ToString();
                 Rec[i].Patient_Id     = T.Rows[i]["patient_id"].ToString();
                 Rec[i].Solution_Id    = T.Rows[i]["solution_id"].ToString();
                 Rec[i].Actual_time    = T.Rows[i]["Actual_time"].ToString();
                 Rec[i].Requested_time = T.Rows[i]["Requested_time"].ToString();
                 Rec[i].Next_time      = T.Rows[i]["next_time"].ToString();
                 Rec[i].Is_timeset     = T.Rows[i]["is_timeset"].ToString();
             }
             return(Rec);
         }
         else
         {
             return(null);
         }
     }
     else
     {
         return(null);
     }
 }
Example #2
0
        /// <summary>
        /// 实例化该随访记录
        /// </summary>
        /// <param name="id"></param>
        public void GetPatient(string id)
        {
            string temp = "";

            temp = "select * from T_FOLLOW_RECORD where id=" + id + "";
            DataTable tempTb = App.GetDataSet(temp).Tables[0];

            if (tempTb != null)
            {
                if (tempTb.Rows.Count != 0)
                {
                    myRecord                = new Class_Follow_Patient();
                    myRecord.Id             = tempTb.Rows[0]["id"].ToString();
                    myRecord.Patient_Id     = tempTb.Rows[0]["patient_id"].ToString();
                    myRecord.Solution_Id    = tempTb.Rows[0]["solution_id"].ToString();
                    myRecord.Creator_ID     = tempTb.Rows[0]["creator_id"].ToString();
                    myRecord.State_id       = tempTb.Rows[0]["state_id"].ToString();
                    myRecord.Isfinished     = tempTb.Rows[0]["isfinished"].ToString();
                    myRecord.Actual_time    = tempTb.Rows[0]["actual_time"].ToString();
                    myRecord.Requested_time = tempTb.Rows[0]["requested_time"].ToString();
                }
            }
        }