Exemple #1
0
        public object Exec <T>(PatOpType type, T obj)
        {
            try
            {
                PatBaseExecInteraface jk = new PatBaseExecInteraface();
                switch (type)
                {
                case PatOpType.None:
                    break;

                case PatOpType.Pat_GetPatList:
                    break;

                case PatOpType.Pat_Bind:
                    break;

                default:
                    break;
                }
                return(DataParserManager.ToObject(DataParserManager.ToJson(jk.Exec <T>(obj, type))));
            }
            catch (Exception ex)
            {
                LogManager.Error(ex.Message, ex);
                throw;
            }
        }
 public object Exec <T>(DocOpType type, T obj)
 {
     try
     {
         DocBaseExecInteraface jk = new DocBaseExecInteraface();
         return(DataParserManager.ToObject(DataParserManager.ToJson(jk.Exec <T>(obj, type))));
     }
     catch (Exception ex)
     {
         LogManager.Error(ex.Message, ex);
         throw;
     }
 }