protected override void ajax(CharStream _js_)
 {
     _js_.WriteNotNull(@"{Classes:");
     {
         AutoCSer.TestCase.SqlTableCacheServer.Class[] _value1_ = Classes;
         if (_value1_ == null)
         {
             _js_.WriteJsonNull();
         }
         else
         {
             _js_.WriteNotNull(@"[");
             {
                 int _loopIndex1_ = _loopIndex_;
                 _loopIndex_ = 0;
                 foreach (AutoCSer.TestCase.SqlTableCacheServer.Class _value2_ in _value1_)
                 {
                     if (_loopIndex_ == 0)
                     {
                         _js_.Write('"');
                         _js_.WriteNotNull("@.Demo.Class,,DateRange[Start[DateTime,Value]]Discipline,Id,Name,Remote[StudentCount,Students[[@.Demo.Student,,Id,Name]]]");
                         _js_.Write('"');
                     }
                     _js_.Write(',');
                     if (_value2_ == null)
                     {
                         _js_.WriteJsonNull();
                     }
                     else
                     {
                         _js_.WriteNotNull(@"[");
                         {
                             AutoCSer.TestCase.SqlModel.Member.DateRange _value3_ = _value2_.DateRange;
                             _js_.WriteNotNull(@"[");
                             {
                                 AutoCSer.Sql.Member.IntDate _value4_ = _value3_.Start;
                                 _js_.WriteNotNull(@"[");
                                 {
                                     System.DateTime _value5_ = _value4_.DateTime;
                                     _js_.WriteJson((System.DateTime)_value5_);
                                 }
                                 _js_.WriteNotNull(@",");
                                 {
                                     int _value5_ = _value4_.Value;
                                     _js_.WriteJson((int)_value5_);
                                 }
                                 _js_.WriteNotNull(@"]");
                             }
                             _js_.WriteNotNull(@"]");
                         }
                         _js_.WriteNotNull(@",");
                         {
                             AutoCSer.TestCase.SqlModel.Member.Discipline _value3_ = _value2_.Discipline;
                             _js_.CopyJsonNotNull(_value3_.ToString());
                         }
                         _js_.WriteNotNull(@",");
                         {
                             int _value3_ = _value2_.Id;
                             _js_.WriteJson((int)_value3_);
                         }
                         _js_.WriteNotNull(@",");
                         {
                             string _value3_ = _value2_.Name;
                             if (_value3_ == null)
                             {
                                 _js_.WriteJsonNull();
                             }
                             else
                             {
                                 _js_.WriteJson(_value3_);
                             }
                         }
                         _js_.WriteNotNull(@",");
                         {
                             AutoCSer.TestCase.SqlTableCacheServer.Class.RemoteExtension _value3_ = _value2_.Remote;
                             _js_.WriteNotNull(@"[");
                             {
                                 int _value4_ = _value3_.StudentCount;
                                 _js_.WriteJson((int)_value4_);
                             }
                             _js_.WriteNotNull(@",");
                             {
                                 AutoCSer.TestCase.SqlTableCacheServer.Student[] _value4_ = _value3_.Students;
                                 if (_value4_ == null)
                                 {
                                     _js_.WriteJsonNull();
                                 }
                                 else
                                 {
                                     _js_.WriteNotNull(@"[[");
                                     {
                                         int _loopIndex4_ = _loopIndex_;
                                         _loopIndex_ = 0;
                                         foreach (AutoCSer.TestCase.SqlTableCacheServer.Student _value5_ in _value4_)
                                         {
                                             if (_loopIndex_ != 0)
                                             {
                                                 _js_.Write(',');
                                             }
                                             if (_value5_ == null)
                                             {
                                                 _js_.WriteJsonNull();
                                             }
                                             else
                                             {
                                                 _js_.Write('[');
                                                 _js_.WriteNotNull(@"");
                                                 {
                                                     int _value6_ = _value5_.Id;
                                                     _js_.WriteJson((int)_value6_);
                                                 }
                                                 _js_.WriteNotNull(@",");
                                                 {
                                                     string _value6_ = _value5_.Name;
                                                     if (_value6_ == null)
                                                     {
                                                         _js_.WriteJsonNull();
                                                     }
                                                     else
                                                     {
                                                         _js_.WriteJson(_value6_);
                                                     }
                                                 }
                                                 _js_.WriteNotNull(@"]");
                                             }
                                             ++_loopIndex_;
                                         }
                                         _loopIndex_ = _loopIndex4_;
                                     }
                                     _js_.WriteNotNull(@"]]");
                                 }
                             }
                             _js_.WriteNotNull(@"]");
                         }
                         _js_.WriteNotNull(@"]");
                     }
                     ++_loopIndex_;
                 }
                 _loopIndex_ = _loopIndex1_;
             }
             _js_.WriteNotNull(@"].FormatView()");
         }
     }
     _js_.WriteNotNull(@",IsClassList:");
     {
         bool _value1_ = IsClassList;
         _js_.WriteJson((bool)_value1_);
     }
     _js_.WriteNotNull(@",PubPath:");
     {
         AutoCSer.TestCase.SqlModel.WebPath.Pub _value1_ = PubPath;
         _js_.WriteNotNull(@"new AutoCSerPath.Pub({})");
     }
     _js_.WriteNotNull(@"}");
 }
 protected override bool page(ref AutoCSer.WebView.Response _html_)
 {
     byte[][] htmls;
     htmls = loadHtml(@"Class.html", 21);
     if (htmls != null)
     {
         _html_.WriteNotNull(htmls[0]);
         _html_.WriteNotNull(htmls[2]);
         {
             AutoCSer.TestCase.SqlTableCacheServer.Class _value1_ = ClassInfo;
             if (_value1_ != null)
             {
                 _html_.WriteHtml(_value1_.Name);
             }
         }
         _html_.WriteNotNull(htmls[3]);
         _html_.Write(ViewMetaKeywords);
         _html_.WriteNotNull(htmls[4]);
         _html_.Write(ViewMetaDescription);
         _html_.WriteNotNull(htmls[5]);
         _if_ = false;
         if (!(bool)FalseFlag)
         {
             _if_ = true;
         }
         if (_if_)
         {
             _html_.WriteNotNull(htmls[6]);
             {
                 AutoCSer.TestCase.SqlModel.WebPath.Pub _value1_ = PubPath;
                 {
                     _html_.Write(_value1_.ClassList);
                 }
             }
             _html_.WriteNotNull(htmls[7]);
         }
         _html_.WriteNotNull(htmls[8]);
         {
             AutoCSer.TestCase.SqlTableCacheServer.Class _value1_ = default(AutoCSer.TestCase.SqlTableCacheServer.Class);
             _value1_ = ClassInfo;
             _if_     = false;
             if (_value1_ != null)
             {
                 _if_ = true;
             }
             if (_if_)
             {
                 _html_.WriteNotNull(htmls[9]);
                 _html_.WriteHtml(_value1_.Name);
                 _html_.WriteNotNull(htmls[10]);
                 _html_.Write(_value1_.Discipline.ToString());
                 _html_.WriteNotNull(htmls[11]);
                 {
                     AutoCSer.TestCase.SqlTableCacheServer.Class.RemoteExtension _value2_ = _value1_.Remote;
                     {
                         _html_.Write(_value2_.StudentCount);
                     }
                 }
                 _html_.WriteNotNull(htmls[12]);
                 _html_.WriteNotNull(htmls[13]);
                 {
                     AutoCSer.TestCase.SqlTableCacheServer.Student[] _value2_ = default(AutoCSer.TestCase.SqlTableCacheServer.Student[]);
                     {
                         AutoCSer.TestCase.SqlTableCacheServer.Class.RemoteExtension _value3_ = _value1_.Remote;
                         {
                             _value2_ = _value3_.Students;
                         }
                     }
                     if (_value2_ != null)
                     {
                         int _loopIndex2_ = _loopIndex_, _loopCount2_ = _loopCount_;
                         _loopIndex_ = 0;
                         _loopCount_ = _value2_.Length;
                         foreach (AutoCSer.TestCase.SqlTableCacheServer.Student _value3_ in _value2_)
                         {
                             _html_.WriteNotNull(htmls[14]);
                             {
                                 AutoCSer.TestCase.SqlModel.WebPath.Student _value4_ = _value3_.Path;
                                 {
                                     _html_.WriteHtml(_value4_.Index);
                                 }
                             }
                             _html_.WriteNotNull(htmls[15]);
                             _html_.WriteHtml(_value3_.Name);
                             _html_.WriteNotNull(htmls[16]);
                             _html_.WriteHtml(_value3_.Email);
                             _html_.WriteNotNull(htmls[17]);
                             _html_.WriteHtml(_value3_.Gender.ToString());
                             _html_.WriteNotNull(htmls[18]);
                             _html_.WriteNotNull(htmls[13]);
                             ++_loopIndex_;
                         }
                         _loopIndex_ = _loopIndex2_;
                         _loopCount_ = _loopCount2_;
                     }
                 }
                 _html_.WriteNotNull(htmls[19]);
             }
         }
         _html_.WriteNotNull(htmls[20]);
         return(true);
     }
     return(false);
 }
 protected override void ajax(CharStream _js_)
 {
     _js_.WriteNotNull(@"{ClassInfo:");
     {
         AutoCSer.TestCase.SqlTableCacheServer.Class _value1_ = ClassInfo;
         if (_value1_ == null)
         {
             _js_.WriteJsonNull();
         }
         else
         {
             _js_.WriteNotNull(@"Demo.Class.Get({DateRange:");
             {
                 AutoCSer.TestCase.SqlModel.Member.DateRange _value2_ = _value1_.DateRange;
                 _js_.WriteNotNull(@"{Start:");
                 {
                     AutoCSer.Sql.Member.IntDate _value3_ = _value2_.Start;
                     _js_.WriteNotNull(@"{DateTime:");
                     {
                         System.DateTime _value4_ = _value3_.DateTime;
                         _js_.WriteJson((System.DateTime)_value4_);
                     }
                     _js_.WriteNotNull(@",Value:");
                     {
                         int _value4_ = _value3_.Value;
                         _js_.WriteJson((int)_value4_);
                     }
                     _js_.WriteNotNull(@"}");
                 }
                 _js_.WriteNotNull(@"}");
             }
             _js_.WriteNotNull(@",Discipline:");
             {
                 AutoCSer.TestCase.SqlModel.Member.Discipline _value2_ = _value1_.Discipline;
                 _js_.CopyJsonNotNull(_value2_.ToString());
             }
             _js_.WriteNotNull(@",Id:");
             {
                 int _value2_ = _value1_.Id;
                 _js_.WriteJson((int)_value2_);
             }
             _js_.WriteNotNull(@",Name:");
             {
                 string _value2_ = _value1_.Name;
                 if (_value2_ == null)
                 {
                     _js_.WriteJsonNull();
                 }
                 else
                 {
                     _js_.WriteJson(_value2_);
                 }
             }
             _js_.WriteNotNull(@",Remote:");
             {
                 AutoCSer.TestCase.SqlTableCacheServer.Class.RemoteExtension _value2_ = _value1_.Remote;
                 _js_.WriteNotNull(@"{StudentCount:");
                 {
                     int _value3_ = _value2_.StudentCount;
                     _js_.WriteJson((int)_value3_);
                 }
                 _js_.WriteNotNull(@",Students:");
                 {
                     AutoCSer.TestCase.SqlTableCacheServer.Student[] _value3_ = _value2_.Students;
                     if (_value3_ == null)
                     {
                         _js_.WriteJsonNull();
                     }
                     else
                     {
                         _js_.WriteNotNull(@"[");
                         {
                             int _loopIndex3_ = _loopIndex_;
                             _loopIndex_ = 0;
                             foreach (AutoCSer.TestCase.SqlTableCacheServer.Student _value4_ in _value3_)
                             {
                                 if (_loopIndex_ == 0)
                                 {
                                     _js_.Write('"');
                                     _js_.WriteNotNull("@.Demo.Student,,Birthday[DateTime,Value]Email,Gender,Id,Name");
                                     _js_.Write('"');
                                 }
                                 _js_.Write(',');
                                 if (_value4_ == null)
                                 {
                                     _js_.WriteJsonNull();
                                 }
                                 else
                                 {
                                     _js_.WriteNotNull(@"[");
                                     {
                                         AutoCSer.Sql.Member.IntDate _value5_ = _value4_.Birthday;
                                         _js_.WriteNotNull(@"[");
                                         {
                                             System.DateTime _value6_ = _value5_.DateTime;
                                             _js_.WriteJson((System.DateTime)_value6_);
                                         }
                                         _js_.WriteNotNull(@",");
                                         {
                                             int _value6_ = _value5_.Value;
                                             _js_.WriteJson((int)_value6_);
                                         }
                                         _js_.WriteNotNull(@"]");
                                     }
                                     _js_.WriteNotNull(@",");
                                     {
                                         string _value5_ = _value4_.Email;
                                         if (_value5_ == null)
                                         {
                                             _js_.WriteJsonNull();
                                         }
                                         else
                                         {
                                             _js_.WriteJson(_value5_);
                                         }
                                     }
                                     _js_.WriteNotNull(@",");
                                     {
                                         AutoCSer.TestCase.SqlModel.Member.Gender _value5_ = _value4_.Gender;
                                         _js_.CopyJsonNotNull(_value5_.ToString());
                                     }
                                     _js_.WriteNotNull(@",");
                                     {
                                         int _value5_ = _value4_.Id;
                                         _js_.WriteJson((int)_value5_);
                                     }
                                     _js_.WriteNotNull(@",");
                                     {
                                         string _value5_ = _value4_.Name;
                                         if (_value5_ == null)
                                         {
                                             _js_.WriteJsonNull();
                                         }
                                         else
                                         {
                                             _js_.WriteJson(_value5_);
                                         }
                                     }
                                     _js_.WriteNotNull(@"]");
                                 }
                                 ++_loopIndex_;
                             }
                             _loopIndex_ = _loopIndex3_;
                         }
                         _js_.WriteNotNull(@"].FormatView()");
                     }
                 }
                 _js_.WriteNotNull(@"}");
             }
             _js_.WriteNotNull(@"})");
         }
     }
     _js_.WriteNotNull(@",PubPath:");
     {
         AutoCSer.TestCase.SqlModel.WebPath.Pub _value1_ = PubPath;
         _js_.WriteNotNull(@"new AutoCSerPath.Pub({})");
     }
     _js_.WriteNotNull(@"}");
 }