예제 #1
0
 public void AddToDatabase()
 {
     Program.DatabaseManager.GetClient().ExecuteQuery(
         "INSERT INTO Masters (CharID,MasterID,MemberName,Level,RegisterDate,isMaster) VALUES ('" +
         MasterID + "','" + CharID + "','" + pMemberName + "','" + Level + "','" +
         RegisterDate.ToString("yyyy-MM-dd hh:mm") + "','" + Convert.ToByte(IsMaster) + "')");
 }
예제 #2
0
 public override string GetData()
 {
     return(string.Format("{0}{1}{2}{3}", CardType, EmplayeeCode, RegisterDate.ToString("yyyyMMddhhmmss"), EffectionDate.ToString("yyyyMMddhhmmss")));
 }
예제 #3
0
        public override string ToString()
        {
            string expire;

            if (PremiumExpireDate == null)
            {
                expire = "null";
            }
            else
            {
                expire = PremiumExpireDate.ToString("yyyy.MM.dd");
            }
            return(Name + " " + Surname + " " + Email + " " + Height + " " + Weight + " " + RegisterDate.ToString("yyyy.MM.dd") + " " + expire);
        }