/// <summary>
        /// 返回list对象
        /// </summary>
        /// <param name="dt"></param>
        /// <returns></returns>
        public static List <Base_PlanParam> ListValue(DataTable dt)
        {
            List <Base_PlanParam> planparamList = new List <Base_PlanParam>();
            Base_PlanParam        planparam;

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    planparam = new Base_PlanParam();
                    planparam = SetValue(planparam, dt.Rows[i]);
                    planparamList.Add(planparam);
                }
            }
            return(planparamList);
        }
 public static Base_PlanParam SetValue(Base_PlanParam PlanParam, DataRow dr)
 {
     if (dr != null)
     {
         PlanParam.nID               = PageBase.static_ext_int(dr["nID"]);
         PlanParam.dtAutoSaveTime1   = PageBase.static_ext_date(dr["dtAutoSaveTime1"]);
         PlanParam.dtAutoSaveTime2   = PageBase.static_ext_date(dr["dtAutoSaveTime2"]);
         PlanParam.dtPlanBeginTime   = PageBase.static_ext_date(dr["dtPlanBeginTime"]);
         PlanParam.dtPlanEndTime     = PageBase.static_ext_date(dr["dtPlanEndTime"]);
         PlanParam.dtKeepSleepTime   = PageBase.static_ext_date(dr["dtKeepSleepTime"]);
         PlanParam.strWorkShopGUID   = dr["strWorkShopGUID"].ToString();
         PlanParam.strWorkShopName   = dr["strWorkShopName"].ToString();
         PlanParam.strWebHost        = dr["strWebHost"].ToString();
         PlanParam.bEnableSleepCheck = dr["bEnableSleepCheck"].ToString() == "True"?1:0;
     }
     return(PlanParam);
 }