예제 #1
0
        public static List <HandleStep> ListValue(DataTable dt)
        {
            List <HandleStep> list = new List <HandleStep>();
            HandleStep        handlestep;

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    handlestep             = new HandleStep();
                    handlestep.strID       = dt.Rows[i]["stepID"].ToString();
                    handlestep.strStepName = dt.Rows[i]["strStepName"].ToString();
                    list.Add(handlestep);
                }
            }
            return(list);
        }
예제 #2
0
 public static HandleStep SetValue(HandleStep handlestep, DataRow dr)
 {
     if (dr != null)
     {
         handlestep.strStepName     = dr["strStepName"].ToString();
         handlestep.strCaseID       = dr["strCaseID"].ToString();
         handlestep.GroupsId        = PageBase.static_ext_int(dr["GroupsId"].ToString());
         handlestep.UnitID          = PageBase.static_ext_int(dr["UnitID"].ToString());
         handlestep.DepartmentId    = PageBase.static_ext_int(dr["DepartmentId"].ToString());
         handlestep.strStandardText = dr["strStandardText"].ToString();
         handlestep.strNeedStepID   = dr["strNeedStepID"].ToString();
         handlestep.nStepType       = PageBase.static_ext_int(dr["nStepType"].ToString());
         handlestep.dtPostTime      = dr["dtPostTime"].ToString();
         handlestep.X          = PageBase.static_ext_int(dr["X"].ToString());
         handlestep.Y          = PageBase.static_ext_int(dr["Y"].ToString());
         handlestep.nEnabled   = PageBase.static_ext_int(dr["nEnabled"].ToString());
         handlestep.nRecVoice  = PageBase.static_ext_int(dr["nRecVoice"].ToString());
         handlestep.nPostType  = dr["nPostType"].ToString();
         handlestep.nPostOrder = PageBase.static_ext_int(dr["nPostOrder"].ToString());
     }
     return(handlestep);
 }