コード例 #1
0
        public void Save(string SystemNo, DateTime ValidDate, string MD5Onlie)
        {
            now            = new RegisterInfoModel();
            now.system_no  = SystemNo;
            now.valid_date = ValidDate;
            now.md5        = MD5Onlie;

            DB.Deleteable <RegisterInfoModel>().ExecuteCommand();
            DB.Insertable <RegisterInfoModel>(now).ExecuteCommand();
        }
コード例 #2
0
        public bool IsValidClient(DateTime AskClientDate)
        {
            bool       result = false;
            ClientInfo cInfo  = GetClientInfo();

            if (cInfo == null)
            {
                return(false);
            }

            RegisterInfoModel rInfo = Get(AskClientDate);

            if (rInfo == null)
            {
                result = false;
            }


            _IsValidClient     = result;
            _IsValidClientDate = rInfo.valid_date;
            return(result);
        }