Beispiel #1
0
 protected override bool page(ref AutoCSer.WebView.Response _html_)
 {
     byte[][] htmls;
     htmls = loadHtml(@"WebViewAsynchronous.html", 2);
     if (htmls != null)
     {
         _html_.WriteNotNull(htmls[0]);
         _html_.Write(Return);
         _html_.WriteNotNull(htmls[1]);
         return(true);
     }
     return(false);
 }
 protected override bool page(ref AutoCSer.WebView.Response _html_)
 {
     byte[][] htmls;
     htmls = loadHtml(@"WebView\Template.html", 5);
     if (htmls != null)
     {
         _html_.WriteNotNull(htmls[0]);
         _html_.Write(At);
         _html_.WriteNotNull(htmls[1]);
         _html_.Write(At);
         _html_.WriteNotNull(htmls[2]);
         _html_.Write(At);
         _html_.WriteNotNull(htmls[3]);
         _html_.Write(At);
         _html_.WriteNotNull(htmls[4]);
         return(true);
     }
     return(false);
 }
 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 bool page(ref AutoCSer.WebView.Response _html_)
 {
     byte[][] htmls;
     htmls = loadHtml(@"Search.html", 15);
     if (htmls != null)
     {
         _html_.WriteNotNull(htmls[0]);
         _html_.Write(Key);
         _html_.WriteNotNull(htmls[1]);
         {
             AutoCSer.Web.SearchServer.SearchItem[] _value1_;
             _value1_ = Items;
             if (_value1_ != null)
             {
                 int _loopIndex1_ = _loopIndex_, _loopCount1_ = _loopCount_;
                 _loopIndex_ = 0;
                 _loopCount_ = _value1_.Length;
                 foreach (AutoCSer.Web.SearchServer.SearchItem _value2_ in _value1_)
                 {
                     _html_.WriteNotNull(htmls[2]);
                     _if_ = false;
                     {
                         AutoCSer.Web.SearchServer.DataKey _value3_ = _value2_.DataKey;
                         {
                             if (_value3_.Type.ToString() == @"HtmlTitle")
                             {
                                 _if_ = true;
                             }
                         }
                     }
                     if (_if_)
                     {
                         _html_.WriteNotNull(htmls[3]);
                         {
                             AutoCSer.Web.SearchServer.Html _value3_ = _value2_.Html;
                             if (_value3_ != null)
                             {
                                 _html_.WriteHtml(_value3_.Url);
                             }
                         }
                         _html_.WriteNotNull(htmls[4]);
                         _html_.WriteNotNull(htmls[5]);
                     }
                     _html_.WriteNotNull(htmls[6]);
                     _if_ = false;
                     {
                         AutoCSer.Web.SearchServer.DataKey _value3_ = _value2_.DataKey;
                         {
                             if (_value3_.Type.ToString() == @"HtmlBodyText")
                             {
                                 _if_ = true;
                             }
                         }
                     }
                     if (_if_)
                     {
                         _html_.WriteNotNull(htmls[3]);
                         {
                             AutoCSer.Web.SearchServer.Html _value3_ = _value2_.Html;
                             if (_value3_ != null)
                             {
                                 _html_.WriteHtml(_value3_.Url);
                             }
                         }
                         _html_.WriteNotNull(htmls[4]);
                         {
                             AutoCSer.Web.SearchServer.Html _value3_ = _value2_.Html;
                             if (_value3_ != null)
                             {
                                 _html_.WriteHtml(_value3_.Title);
                             }
                         }
                         _html_.WriteNotNull(htmls[7]);
                         _html_.WriteNotNull(htmls[6]);
                     }
                     _html_.WriteNotNull(htmls[6]);
                     _if_ = false;
                     {
                         AutoCSer.Web.SearchServer.DataKey _value3_ = _value2_.DataKey;
                         {
                             if (_value3_.Type.ToString() == @"HtmlImage")
                             {
                                 _if_ = true;
                             }
                         }
                     }
                     if (_if_)
                     {
                         _html_.WriteNotNull(htmls[3]);
                         {
                             AutoCSer.Web.SearchServer.Html _value3_ = _value2_.Html;
                             if (_value3_ != null)
                             {
                                 _html_.WriteHtml(_value3_.Url);
                             }
                         }
                         _html_.WriteNotNull(htmls[4]);
                         {
                             AutoCSer.Web.SearchServer.Html _value3_ = _value2_.Html;
                             if (_value3_ != null)
                             {
                                 _html_.WriteHtml(_value3_.Title);
                             }
                         }
                         _html_.WriteNotNull(htmls[7]);
                         _html_.WriteNotNull(htmls[8]);
                         {
                             AutoCSer.Web.SearchServer.SearchItem.RemoteExtension _value3_ = _value2_.Remote;
                             {
                                 _html_.WriteHtml(_value3_.ImageUrl);
                             }
                         }
                         _html_.WriteNotNull(htmls[9]);
                     }
                     _html_.WriteNotNull(htmls[10]);
                     {
                         AutoCSer.KeyValue <int, int>[] _value3_;
                         _value3_ = _value2_.Indexs;
                         if (_value3_ != null)
                         {
                             int _loopIndex3_ = _loopIndex_, _loopCount3_ = _loopCount_;
                             _loopIndex_ = 0;
                             _loopCount_ = _value3_.Length;
                             foreach (AutoCSer.KeyValue <int, int> _value4_ in _value3_)
                             {
                                 _html_.WriteNotNull(htmls[6]);
                                 _html_.WriteNotNull(htmls[6]);
                                 _html_.WriteNotNull(htmls[6]);
                                 ++_loopIndex_;
                             }
                             _loopIndex_ = _loopIndex3_;
                             _loopCount_ = _loopCount3_;
                         }
                     }
                     _html_.WriteNotNull(htmls[11]);
                     ++_loopIndex_;
                 }
                 _loopIndex_ = _loopIndex1_;
                 _loopCount_ = _loopCount1_;
             }
         }
         _html_.WriteNotNull(htmls[12]);
         _if_ = false;
         {
             AutoCSer.Web.SearchServer.SearchItem[] _value1_ = Items;
             if (_value1_ != null)
             {
                 if (_value1_.Length != 0)
                 {
                     _if_ = true;
                 }
             }
         }
         if (!_if_)
         {
             _html_.WriteNotNull(htmls[13]);
         }
         _html_.WriteNotNull(htmls[14]);
         return(true);
     }
     return(false);
 }