示例#1
0
        public int getLatestMiNumber()
        {
            _q = new QueryExecutor();

            return(Convert.ToInt32(_q.Aggregate
                                       ("select max(mi_number) from material_inword")));
        }
示例#2
0
        public bool check(string CardNumber)
        {
            _q = new QueryExecutor();

            return(Convert.ToBoolean(_q.Aggregate(
                                         string.Format("select count(*) from cardregistration where cardnumber='{0}'", CardNumber))));
        }
示例#3
0
        public int getCount(string PolicyNumber)
        {
            _q = new QueryExecutor();

            return(Convert.ToInt32(_q.Aggregate(
                                       string.Format("select count(*) from cardregistration where policynumber='{0}'", PolicyNumber))));
        }
示例#4
0
        public bool ShopAuth()
        {
            _qe = new QueryExecutor();

            return(Convert.ToBoolean(_qe
                                     .Aggregate(string
                                                .Format("select count(*) from shopdetails where (email='{0}' or mobilenumber='{0}') and password='******'",
                                                        this.UserName, this.Password))));
        }
示例#5
0
        public int GetLastId(string comapny)
        {
            _q = new QueryExecutor();

            return(Convert
                   .ToInt32(_q
                            .Aggregate(string
                                       .Format("select count(*) from policies where company='{0}'", comapny))));
        }
示例#6
0
        internal bool UserAuth()
        {
            _qe = new QueryExecutor();

            return(Convert.ToBoolean(_qe
                                     .Aggregate(string
                                                .Format("select count(*) from cardregistration where cardnumber='{0}' and pin='{1}' and " +
                                                        " isactive='true' and isblocked='false'",
                                                        this.UserName, this.Password))));
        }