Esempio n. 1
0
 public void GetListSim(List <SimpleParameter> list, MemberInfo m)
 {
     if (ToolHelp.ToInt(m.Id) > 0)
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "id";
         s.Value = m.Id;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.Company))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "Company";
         s.Value = m.Company;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.Email))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "Email";
         s.Value = m.Email;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.EnPassWord))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "EnPassWord";
         s.Value = m.EnPassWord;
         list.Add(s);
     }
     if (ToolHelp.ToInt(m.IsActive) >= 0)
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "IsActive";
         s.Value = m.IsActive;
         list.Add(s);
     }
     if (ToolHelp.ToDateTime(m.LastLoginTime) != null)
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "LastLoginTime";
         s.Value = m.LastLoginTime;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.Mobile))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "Mobile";
         s.Value = m.Mobile;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.NickName))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "NickName";
         s.Value = m.NickName;
         list.Add(s);
     }
     if (ToolHelp.ToDateTime(m.RegTime) != null)
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "RegTime";
         s.Value = m.RegTime;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.Tel))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "Tel";
         s.Value = m.Tel;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.ThirdId))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "ThirdId";
         s.Value = m.ThirdId;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.ThirdParty))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "ThirdParty";
         s.Value = m.ThirdParty;
         list.Add(s);
     }
     if (!string.IsNullOrEmpty(m.TrueName))
     {
         SimpleParameter s = new SimpleParameter();
         s.Name  = "TrueName";
         s.Value = m.TrueName;
         list.Add(s);
     }
 }