Example #1
0
        public List <Impa1> Get_Impa1_List(Impa request)
        {
            List <Impa1> Result = null;

            try
            {
                using (var db = DbConnectionFactory.OpenDbConnection())
                {
                    string strSQL = "Select IsNull(AppHideStoreNoFlag,'') AS AppHideStoreNoFlag from Impa1";
                    Result = db.Select <Impa1>(strSQL);
                }
            }
            catch { throw; }
            return(Result);
        }
Example #2
0
 public void TS_Impa1(Auth auth, Impa request, Impa_Logic impa1_Logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         if (uri.IndexOf("/wms/impa1") > 0)
         {
             ecr.data.results = impa1_Logic.Get_Impa1_List();
         }
         ecr.meta.code    = 200;
         ecr.meta.message = "OK";
     }
     else
     {
         ecr.meta.code    = 401;
         ecr.meta.message = "Unauthorized";
     }
 }