private void treeView_Layer_AfterSelect(object sender, TreeViewEventArgs e) { string vLyaerName = e.Node.Name; ILayer layer = VMainForm.GetLayerFromName(vLyaerName); IFeatureLayer vFeatureLayer = layer as IFeatureLayer; DataTable vTable = CommonUnit.CreateFeaturesTableStruct(vFeatureLayer.FeatureClass); int vFeatureCount = vFeatureLayer.FeatureClass.FeatureCount(null); IFeatureCursor vFeatureCursor = vFeatureLayer.FeatureClass.Search(null, true); IFeature vFeature = vFeatureCursor.NextFeature(); while (vFeature != null) { DataRow vNewRow = vTable.NewRow(); for (int j = 0; j < vTable.Columns.Count; j++) { if (vFeatureLayer.FeatureClass.Fields.Field[j].Name != "Shape") { object vFieldValue = vFeature.get_Value(j); vNewRow[vFeatureLayer.FeatureClass.Fields.Field[j].Name] = vFieldValue; } } vTable.Rows.Add(vNewRow); vFeature = vFeatureCursor.NextFeature(); } vTable.AcceptChanges(); dataGridView_Data.DataSource = vTable; }
void initTreeView() { if (Layers != null) { treeView_Layers.Nodes.Clear(); foreach (LayerStruct vTempLayer in Layers) { TreeNode vNewNode = new TreeNode(); string vType = CommonUnit.ConvertLayerType(vTempLayer.Type.Value); vNewNode.SelectedImageIndex = vTempLayer.Type ?? 0; vNewNode.ImageIndex = vTempLayer.Type ?? 0; vNewNode.Text = vTempLayer.Expository + "(" + vType + ")"; vNewNode.Tag = vTempLayer.ID; vNewNode.Name = vTempLayer.ID.ToString(); vNewNode.Checked = vTempLayer.IsView; if (vTempLayer.Color != -1) { vNewNode.ForeColor = Color.FromArgb(vTempLayer.Color); } treeView_Layers.Nodes.Add(vNewNode); } if (treeView_Layers.Nodes.Count > 0) { treeView_Layers.SelectedNode = treeView_Layers.Nodes[0]; } } }
public override void OnCollisionEnter2D(Collision2D collision) { if (CommonUnit.LayerCheck(collision.gameObject, "Wall", "Obstacle")) { float x = collision.GetContact(0).normal.x; /* 当一次性接触到2个或以上的碰撞体时,会多次触发该方法,导致direction多次在原direction上更新。 * 这里引入oldDirection,direction更新时不在原direction上改动,而是在oldDirection上。 * oldDirection在碰撞结束后的下一帧再随direction跟新。这样即使多次调用也能得到同样的结果。 */ //碰撞点为左右 if (Mathf.Abs(x) > 0.9f) { direction.Value = new Vector2(-oldDirection.x, oldDirection.y); } //上下 else if (Mathf.Abs(x) < 0.1f) { direction.Value = new Vector2(oldDirection.x, -oldDirection.y); } //其他 else { direction.Value = -oldDirection; } } }
private void OnTriggerEnter2D(Collider2D collision) { //接触后消除眼泪,不触发其他方法 if (CommonUnit.TagCheck(collision.gameObject, player.TagThatDefaultByBullet) || CommonUnit.ComponentCheck(collision.gameObject, player.TypeThatDefaultByBullet)) { Destroy(); } if (CommonUnit.TagCheck(collision.gameObject, new string[] { })) { } //接触后消除眼泪并触发对象的受击方法 else if (CommonUnit.ComponentCheck(collision.gameObject, player.TypeThatCanBeAttackedByBullet)) { Vector3 force = Vector3.Normalize(collision.transform.position - transform.position) * playerKnockback; IAttackable iAttackable = collision.GetComponent <IAttackable>(); iAttackable.BeAttacked(damage, force); if (player.penetrating == false) { Destroy(); } } //接触后消除眼泪并触发对象的销毁方法 else if (CommonUnit.ComponentCheck(collision.gameObject, player.TypeThatCanBeDestroyedByBullet)) { IDestructible destructible = collision.GetComponent <IDestructible>(); destructible.DestorySelf(); if (player.penetrating == false) { Destroy(); } } //其他的接触后无反应 }
public static string SqlExecute(string strexec) { if (!CheckQueryString(ref strexec)) { return("SqlException. Possible SQL injection."); } SqlCommand cmdToExecute = new SqlCommand(); cmdToExecute.CommandText = strexec; if (_mainConnection == null) { CommonUnit cu = new CommonUnit(); } _mainConnection.Open(); cmdToExecute.Connection = _mainConnection; try { // if (_mainConnection != null) // { object obj = cmdToExecute.ExecuteScalar(); if (obj == null) { return(""); } else { return(obj.ToString()); } // } // else //return ""; } catch (SqlException ex) { //if (ex.Message.Contains("CHECK constraint")) { //if (ex.Message.Contains("_notempty_")) { // return "error_" + "ct_notempty_"; return("SqlException. " + ex.Message); } } //else { // throw new Exception("CommonUnit : SqlExecute(" + strexec + ") : Error occured : " + ex.Message, ex); } } finally { if (_mainConnection != null) { _mainConnection.Close(); } cmdToExecute.Dispose(); } }
void GetData() { string sqlexec = "spGetCateg " + parent.ToString(); DV = CommonUnit.Select(sqlexec).DefaultView; gvTbl.DataBind(); lblTitle.Text = CommonUnit.SqlExecute("spGetCategName " + parent); }
void SetPaging() { hlPrevPage.NavigateUrl = string.Format("tbl.aspx?categ={0}&page={1}", categ, page - 1); hlPrevPage.Visible = page != 1; hlNextPage.NavigateUrl = string.Format("tbl.aspx?categ={0}&page={1}", categ, page + 1); string sqlexec = string.Format("spPageExist {0}, {1}, {2}", categ, page + 1, pagesize); string pageexists = CommonUnit.SqlExecute(sqlexec); hlNextPage.Visible = pageexists == "1"; }
void GetData() { string sqlexec = string.Format("spGetPage {0}, {1}, {2}", categ, page, pagesize); DV = CommonUnit.Select(sqlexec).DefaultView; gvTbl.DataBind(); hlUpper.Text = CommonUnit.SqlExecute("spGetCategParentName " + categ); hlUpper.NavigateUrl = "categ.aspx?parent=" + CommonUnit.SqlExecute("spGetCategParent " + categ); lblTitle.Text = CommonUnit.SqlExecute("spGetCategName " + categ); }
void GetData() { //if (PreviousPage == null) return; //if (PreviousPage.FindControl("txtsearch") == null) return; //string searchstring = ((TextBox)PreviousPage.FindControl("txtsearch")).Text; string searchstring = txtsearch.Text; string sqlexec = string.Format("spSearch '{0}'", searchstring); DV = CommonUnit.Select(sqlexec).DefaultView; if (DV.Count > 0) { gvTbl.DataBind(); } }
private void button_Apply_Click(object sender, EventArgs e) { int vID = int.Parse(treeView_Layers.SelectedNode.Name); LayerStruct vLayer = Layers.Where(m => m.ID == vID).FirstOrDefault(); string vLayerName = vLayer.Name; int vLayerColor = label_Color.Tag == null ? 0 : (int)label_Color.Tag; if (vLayerColor != 0) { VMainForm.ChangeLayerColor(vLayerName, vLayerColor); vLayer.Color = vLayerColor; treeView_Layers.SelectedNode.ForeColor = Color.FromArgb(vLayerColor); label_Color.BackColor = treeView_Layers.SelectedNode.ForeColor; } vLayer.ShowAnnotation = checkBox_Annotation.Checked; // string vAnnotationField = comboBox_Label.Text; string vAnnotationField = textBox_Express.Text; vLayer.AnnotationField = vAnnotationField; //改变颜色 int vAnnotationColor = label_AnnotationColor.Tag == null ? -1 : (int)label_AnnotationColor.Tag; vLayer.AnnotationFontColor = vAnnotationColor; IRgbColor vRgbColor = vAnnotationColor == -1 ? null : CommonUnit.ColorToIRgbColor(Color.FromArgb(vAnnotationColor)); int vFontSize = int.Parse(comboBox_FontSize.Text); vLayer.AnnotationFontSize = vFontSize; if (vLayer.ShowAnnotation) { VMainForm.EnableFeatureLayerLabel(vLayerName, vAnnotationField, vRgbColor, vFontSize); } else { VMainForm.DisableFeatureLayerLabel(vLayerName); } //改变图层透明度 short vTransparency = Convert.ToInt16(trackBar_Transparency.Value); vLayer.Transparency = vTransparency; VMainForm.ChangeLayerTransparency(vLayerName, vTransparency); button_Apply.Enabled = false; }
void showLayerData(TreeNode node) { BufferConfig vBufferConfig = getBufferConfig(node.Name); string vLayerName = string.Format("{0}_Buffer", node.Name); textBox_Name.Text = vBufferConfig.LayerName; textBox_Type.Text = CommonUnit.ConvertLayerType(getLayerType(vBufferConfig.LayerName)); numericUpDown_Distance.Value = vBufferConfig.Distance; listView_Layers.Items.Clear(); listView_Layers.Items.AddRange(vBufferConfig.SelectedLayers.ToArray()); listView_Buffer.Items.Clear(); listView_Buffer.Items.AddRange(vBufferConfig.AnalyzeLayers.ToArray()); //listBox_Buffer.Items.AddRange(vBufferConfig.AnalyzeLayers.ToArray()); dataGridView_Analyze.DataSource = null; }
/// <summary> /// 获取有笔记的分类编号 /// </summary> /// <returns></returns> public List <ShowNoteClassifyInfo> GetClassifyIdList() { var classifyGroupList = Context.NoteData.Where(p => p.IsBlog == 0).GroupBy(p => p.ClassifyId); var showNoteClassifyInfos = new List <ShowNoteClassifyInfo>(); foreach (var classifyGroupItem in classifyGroupList) { var classifyId = classifyGroupItem.Key; showNoteClassifyInfos.Add(new ShowNoteClassifyInfo { ClassifyId = classifyId, NoteCount = classifyGroupItem.Count(), ClassifyName = CommonUnit.GetClassifyName(classifyId) }); } return(showNoteClassifyInfos.OrderByDescending(p => p.NoteCount).ToList()); }
private void SendToLogger(CommonUnit.LogType type, Int32 userId, String sessionId, String trace, String route, params Object[] data) { try { using (menuzRusDataContext db = new menuzRusDataContext(base.connectionString)) { Log log = new Log(); log.IP = CommonUnit.GetIP(); log.LogType = (Int32)type; log.UserId = userId; log.SessionId = sessionId != null ? sessionId : "N/A"; log.Trace = String.Format("{0}{1}", trace, BuildParameters(data)); log.Route = route; db.Logs.InsertOnSubmit(log); db.SubmitChanges(); } } catch (Exception ex) { throw ex; } }
void GetData() { string sqlexec = string.Format("spGetFile {0}", Request["id"]); body.Text = CommonUnit.SqlExecute(sqlexec); string sqlexec2 = string.Format("spGetFileTitle {0}", Request["id"]); this.Title = CommonUnit.SqlExecute(sqlexec2); HtmlMeta keywords = new HtmlMeta(); keywords.Name = "description"; keywords.Content = this.Title; this.Header.Controls.Add(keywords); lblTitle.Text = CommonUnit.SqlExecute("spGetFileTitle " + Request["id"]); hlUpper.Text = CommonUnit.SqlExecute("spGetCategName NULL, " + Request["id"]); hlUpper.NavigateUrl = "tbl.aspx?categ=" + CommonUnit.SqlExecute("spGetCategId NULL, " + Request["id"]); }
public static DataTable Select(string strexec) { if (!CheckQueryString(ref strexec)) { throw new Exception("SqlException. Possible SQL injection."); } SqlCommand cmdToExecute = new SqlCommand(); cmdToExecute.CommandText = strexec; cmdToExecute.CommandTimeout = 60; DataTable toReturn = new DataTable("dt"); SqlDataAdapter adapter = new SqlDataAdapter(cmdToExecute); if (_mainConnection == null) { CommonUnit cu = new CommonUnit(); //throw new Exception("Error. _mainConnection is NULL "); } cmdToExecute.Connection = _mainConnection; try { _mainConnection.Open(); adapter.Fill(toReturn); return(toReturn); } catch (Exception ex) { throw new Exception("Error. CommonUnit > Select > " + strexec, ex); } finally { _mainConnection.Close(); cmdToExecute.Dispose(); adapter.Dispose(); } }
private void treeView_Layer_AfterSelect(object sender, TreeViewEventArgs e) { string vKey = e.Node.Name; if (SelectFeatures[vKey].Count > 0) { DataTable vTable = CommonUnit.CreateFeaturesTableStruct(SelectFeatures[vKey][0]); for (int i = 0; i < SelectFeatures[vKey].Count; i++) { DataRow vNewRow = vTable.NewRow(); for (int j = 0; j < vTable.Columns.Count; j++) { if (SelectFeatures[vKey][i].Fields.Field[j].Name != "Shape") { object vFieldValue = SelectFeatures[vKey][i].get_Value(j); vNewRow[j] = vFieldValue; } } vTable.Rows.Add(vNewRow); } vTable.AcceptChanges(); dataGridView_Data.DataSource = vTable; } }
/// <summary> /// 分页加载笔记 /// </summary> /// <param name="pageSum"></param> /// <param name="type"></param> /// <param name="pageIndexOut"></param> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <param name="classifyId"></param> /// <param name="searchText"></param> /// <param name="createTime"></param> /// <returns></returns> public List <NoteInfo> GetNoteInfoByPage(out int pageSum, out int pageIndexOut, string type = "", int pageIndex = 1, int pageSize = 8, int classifyId = 0, string searchText = "", long createTime = 0) { var dbData = Context.NoteData.OrderByDescending(p => p.UpdateTime).Where(p => p.IsBlog == 0); if (classifyId > 0) { dbData = dbData.Where(p => p.ClassifyId == classifyId); } if (createTime > 0) { dbData = dbData.Where(p => CommonUnit.IsEqualDay(p.CreateTime, createTime)); } if (!string.IsNullOrWhiteSpace(searchText)) { dbData = dbData.Where(p => p.Title.Contains(searchText)); } var count = dbData.Count(); pageSum = (int)Math.Ceiling(count / (double)pageSize); switch (type) { case "first": pageIndex = 1; break; case "end": pageIndex = pageSum; break; case "last": pageIndex--; pageIndex = pageIndex <= 0 ? 1 : pageIndex; break; case "next": pageIndex++; if (pageSum > 0) { pageIndex = pageIndex > pageSum ? pageSum : pageIndex; } else { pageIndex = 1; } break; case "skip": if (pageSum > 0) { pageIndex = pageIndex > pageSum ? pageSum : pageIndex <= 0 ? 1 : pageIndex; } else { pageIndex = 1; } break; case "search": if (string.IsNullOrWhiteSpace(searchText)) { pageIndex = 1; } break; default: pageIndex = 1; break; } var noteData = dbData.Skip((pageIndex - 1) * pageSize).Take(pageSize).ToList(); pageIndexOut = pageIndex; return(noteData); }
public void InitFeatureLayers() { treeView_Layer.Nodes.Clear(); foreach (var TempDict in SelectFeatures) { LayerStruct vLayer = m_Layers.Where(m => m.Name == TempDict.Key).FirstOrDefault(); if (vLayer != null) { string vNodeName = string.Format("图层:【{0}】 要素类型:【{1}】", vLayer.Expository, CommonUnit.ConvertLayerType(vLayer.Type ?? 0)); treeView_Layer.Nodes.Add(TempDict.Key, vNodeName, vLayer.Type ?? 0); } } }
public void initTreeView() { treeView_FeatureLayers.Nodes.Clear(); foreach (var vTempDict in BufferLayers) { TreeNode vNewNode = new TreeNode() { Checked = vTempDict.Value.IsSelect, Name = vTempDict.Key, ImageIndex = getLayerType(vTempDict.Key), Text = string.Format("{0}({1})", getLayerAliasName(vTempDict.Key), CommonUnit.ConvertLayerType(getLayerType(vTempDict.Key))), SelectedImageIndex = getLayerType(vTempDict.Key) }; vTempDict.Value.Expository = vNewNode.Text; treeView_FeatureLayers.Nodes.Add(vNewNode); } if (treeView_FeatureLayers.Nodes.Count > 0) { treeView_FeatureLayers.SelectedNode = treeView_FeatureLayers.Nodes[0]; } }
void initcomboBox_Layers() { m_ComboBoxLayerItmes = new ComboBoxListItem[VMainForm.m_Layers.Count]; for (int i = 0; i < VMainForm.m_Layers.Count; i++) { ComboBoxListItem vNewItme = new ComboBoxListItem() { Name = string.Format("{0}({1})", VMainForm.m_Layers[i].Expository, CommonUnit.ConvertLayerType(VMainForm.m_Layers[i].Type ?? 0)), Value = VMainForm.m_Layers[i].Name }; m_ComboBoxLayerItmes[i] = vNewItme; } comboBox_Layers.Items.AddRange(m_ComboBoxLayerItmes); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 2 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" //Layout = null; #line default #line hidden BeginContext(60, 4, true); WriteLiteral("\r\n\r\n"); EndContext(); #line 8 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" if (ViewBag.BannerNoteInfo != null && ViewBag.BannerNoteInfo.Count > 0) { #line default #line hidden BeginContext(141, 318, true); WriteLiteral(@" <!--================Home Banner Area =================--> <section class=""home_banner_area""> <div class=""container""> <div class=""row""> <div class=""col-lg-5""></div> <div class=""col-lg-7""> <div class=""blog_text_slider owl-carousel""> "); EndContext(); #line 17 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" foreach (var noteInfoItem in ViewBag.BannerNoteInfo) { #line default #line hidden BeginContext(565, 218, true); WriteLiteral(" <div class=\"item\">\r\n <div class=\"blog_text\">\r\n <div class=\"cat\">\r\n <a class=\"cat_btn\""); EndContext(); BeginWriteAttribute("onclick", " onclick=\"", 783, "\"", 841, 3); WriteAttributeValue("", 793, "SearchNoteByClassifyId(", 793, 23, true); #line 22 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteAttributeValue("", 816, noteInfoItem.ClassifyId, 816, 24, false); #line default #line hidden WriteAttributeValue("", 840, ")", 840, 1, true); EndWriteAttribute(); BeginContext(842, 1, true); WriteLiteral(">"); EndContext(); BeginContext(844, 51, false); #line 22 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(CommonUnit.GetClassifyName(noteInfoItem.ClassifyId)); #line default #line hidden EndContext(); BeginContext(895, 48, true); WriteLiteral("</a>\r\n <a"); EndContext(); BeginWriteAttribute("onclick", " onclick=\"", 943, "\"", 1001, 3); WriteAttributeValue("", 953, "SearchNoteByCreateTime(", 953, 23, true); #line 23 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteAttributeValue("", 976, noteInfoItem.CreateTime, 976, 24, false); #line default #line hidden WriteAttributeValue("", 1000, ")", 1000, 1, true); EndWriteAttribute(); BeginContext(1002, 51, true); WriteLiteral("><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i> "); EndContext(); BeginContext(1054, 46, false); #line 23 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(CommonUnit.FormatTime(noteInfoItem.CreateTime)); #line default #line hidden EndContext(); BeginContext(1100, 86, true); WriteLiteral("</a>\r\n </div>\r\n "); EndContext(); BeginContext(1186, 122, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485710875", async() => { BeginContext(1276, 4, true); WriteLiteral("<h4>"); EndContext(); BeginContext(1281, 18, false); #line 25 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(noteInfoItem.Title); #line default #line hidden EndContext(); BeginContext(1299, 5, true); WriteLiteral("</h4>"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-guid", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 25 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteLiteral(noteInfoItem.NoteGuid); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-guid", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1308, 69, true); WriteLiteral("\r\n <p style=\"overflow-x: hidden;\">"); EndContext(); BeginContext(1378, 27, false); #line 26 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(noteInfoItem.ContentSnippet); #line default #line hidden EndContext(); BeginContext(1405, 42, true); WriteLiteral("</p>\r\n "); EndContext(); BeginContext(1447, 120, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485714564", async() => { BeginContext(1554, 9, true); WriteLiteral("Read More"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-guid", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 27 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteLiteral(noteInfoItem.NoteGuid); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-guid", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1567, 78, true); WriteLiteral("\r\n </div>\r\n </div>\r\n"); EndContext(); #line 30 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" } #line default #line hidden BeginContext(1672, 171, true); WriteLiteral(" </div>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n <!--================End Home Banner Area =================-->\r\n"); EndContext(); #line 37 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" } #line default #line hidden BeginContext(1846, 230, true); WriteLiteral("\r\n<!--================Blog Area =================-->\r\n<section class=\"blog_area p_120\">\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-lg-8\">\r\n <div class=\"blog_left_sidebar\">\r\n"); EndContext(); #line 45 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" foreach (var noteInfoItem in ViewBag.NoteInfo) { #line default #line hidden BeginContext(2168, 161, true); WriteLiteral(" <article class=\"blog_style1\">\r\n <div class=\"blog_img\">\r\n <img class=\"img-fluid\""); EndContext(); BeginWriteAttribute("src", " src=\"", 2329, "\"", 2364, 1); #line 49 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteAttributeValue("", 2335, CommonUnit.GetBlogImageStr(), 2335, 29, false); #line default #line hidden EndWriteAttribute(); BeginContext(2365, 275, true); WriteLiteral(@" alt=""""> </div> <div class=""blog_text""> <div class=""blog_text_inner""> <div class=""cat""> <a class=""cat_btn"""); EndContext(); BeginWriteAttribute("onclick", " onclick=\"", 2640, "\"", 2698, 3); WriteAttributeValue("", 2650, "SearchNoteByClassifyId(", 2650, 23, true); #line 54 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteAttributeValue("", 2673, noteInfoItem.ClassifyId, 2673, 24, false); #line default #line hidden WriteAttributeValue("", 2697, ")", 2697, 1, true); EndWriteAttribute(); BeginContext(2699, 1, true); WriteLiteral(">"); EndContext(); BeginContext(2701, 51, false); #line 54 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(CommonUnit.GetClassifyName(noteInfoItem.ClassifyId)); #line default #line hidden EndContext(); BeginContext(2752, 48, true); WriteLiteral("</a>\r\n <a"); EndContext(); BeginWriteAttribute("onclick", " onclick=\"", 2800, "\"", 2858, 3); WriteAttributeValue("", 2810, "SearchNoteByCreateTime(", 2810, 23, true); #line 55 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteAttributeValue("", 2833, noteInfoItem.CreateTime, 2833, 24, false); #line default #line hidden WriteAttributeValue("", 2857, ")", 2857, 1, true); EndWriteAttribute(); BeginContext(2859, 51, true); WriteLiteral("><i class=\"fa fa-calendar\" aria-hidden=\"true\"></i> "); EndContext(); BeginContext(2911, 46, false); #line 55 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(CommonUnit.FormatTime(noteInfoItem.CreateTime)); #line default #line hidden EndContext(); BeginContext(2957, 6, true); WriteLiteral("</a>\r\n"); EndContext(); BeginContext(3079, 80, true); WriteLiteral(" </div>\r\n "); EndContext(); BeginContext(3159, 122, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485722155", async() => { BeginContext(3249, 4, true); WriteLiteral("<h4>"); EndContext(); BeginContext(3254, 18, false); #line 58 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(noteInfoItem.Title); #line default #line hidden EndContext(); BeginContext(3272, 5, true); WriteLiteral("</h4>"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-guid", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 58 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteLiteral(noteInfoItem.NoteGuid); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-guid", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3281, 69, true); WriteLiteral("\r\n <p style=\"overflow-x: hidden;\">"); EndContext(); BeginContext(3351, 27, false); #line 59 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(noteInfoItem.ContentSnippet); #line default #line hidden EndContext(); BeginContext(3378, 42, true); WriteLiteral("</p>\r\n "); EndContext(); BeginContext(3420, 120, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485725844", async() => { BeginContext(3527, 9, true); WriteLiteral("Read More"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-guid", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 60 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteLiteral(noteInfoItem.NoteGuid); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-guid", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["guid"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3540, 114, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </article>\r\n"); EndContext(); #line 64 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" } #line default #line hidden BeginContext(3677, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(3707, 219, true); WriteLiteral(" <nav class=\"blog-pagination justify-content-center d-flex page\">\r\n <ul class=\"pagination\">\r\n <li class=\"page-item\">\r\n "); EndContext(); BeginContext(3926, 542, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485729327", async() => { BeginContext(4011, 453, true); WriteLiteral(@" <span aria-hidden=""true"" style=""position: relative;""> <span class=""lnr lnr-chevron-left"" style=""position: absolute; left: -5px; top: -1px;""></span> <span class=""lnr lnr-chevron-left"" style=""position: absolute; left: 5px; top: -1px;""></span> </span> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-type", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["type"] = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(4468, 121, true); WriteLiteral("\r\n </li>\r\n <li class=\"page-item\">\r\n "); EndContext(); BeginContext(4589, 314, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485731970", async() => { BeginContext(4673, 226, true); WriteLiteral("\r\n <span aria-hidden=\"true\">\r\n <span class=\"lnr lnr-chevron-left\"></span>\r\n </span>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-type", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["type"] = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(4903, 39, true); WriteLiteral("\r\n </li>\r\n\r\n"); EndContext(); #line 85 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" foreach (var pageStr in ViewBag.PageStrList) { if (pageStr.ToString() == ViewBag.PageIndex.ToString()) { #line default #line hidden BeginContext(5172, 107, true); WriteLiteral(" <li class=\"page-item active\">\r\n "); EndContext(); BeginContext(5279, 105, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485734900", async() => { BeginContext(5373, 7, false); #line 90 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(pageStr); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-type", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["type"] = (string)__tagHelperAttribute_7.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-pageIndex", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 90 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteLiteral(pageStr); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["pageIndex"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-pageIndex", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["pageIndex"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5384, 45, true); WriteLiteral("\r\n </li>\r\n"); EndContext(); #line 92 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" } else { #line default #line hidden BeginContext(5537, 100, true); WriteLiteral(" <li class=\"page-item\">\r\n "); EndContext(); BeginContext(5637, 105, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485738722", async() => { BeginContext(5731, 7, false); #line 96 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(pageStr); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-type", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["type"] = (string)__tagHelperAttribute_7.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-pageIndex", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 96 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" WriteLiteral(pageStr); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["pageIndex"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-pageIndex", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["pageIndex"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5742, 45, true); WriteLiteral("\r\n </li>\r\n"); EndContext(); #line 98 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" } } #line default #line hidden BeginContext(5853, 88, true); WriteLiteral("\r\n\r\n <li class=\"page-item\">\r\n "); EndContext(); BeginContext(5941, 311, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485742493", async() => { BeginContext(6021, 227, true); WriteLiteral("\r\n <span aria-hidden=\"true\">\r\n <span class=\"lnr lnr-chevron-right\"></span>\r\n </span>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-type", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["type"] = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6252, 121, true); WriteLiteral("\r\n </li>\r\n <li class=\"page-item\">\r\n "); EndContext(); BeginContext(6373, 538, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2ea92106aa883d8f250d2e28fc189757e15c485744909", async() => { BeginContext(6452, 455, true); WriteLiteral(@" <span aria-hidden=""true"" style=""position: relative;""> <span class=""lnr lnr-chevron-right"" style=""position: absolute; left: -5px; top: -1px;""></span> <span class=""lnr lnr-chevron-right"" style=""position: absolute; left: 5px; top: -1px;""></span> </span> "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-type", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["type"] = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6911, 857, true); WriteLiteral(@" </li> </ul> <div class=""input-group"" style=""width: 80px; position: relative; display: none;""> <input type=""text"" id=""inputGoToPage"" class=""form-control"" placeholder="""" oninput=""value=value.replace(/[^\d]/g,'')"" style=""padding-right: 33px; border-top-right-radius: .25rem; border-bottom-right-radius: .25rem;""> <span class=""input-group-btn"" style=""line-height: 42px; text-align: center; position: absolute; right: 5px; z-index: 20;""> <a id=""inputGoToPageAction"" href="""" onclick=""goToPage()""><i class=""lnr lnr-arrow-right""></i></a> </span> </div> </nav> </div> </div> "); EndContext(); BeginContext(7769, 101, false); #line 128 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteInfoes\Index.cshtml" Write(await Html.PartialAsync("_BlogUserSection", (List <ShowNoteClassifyInfo>)ViewBag.ShowNoteClassifyInfo)); #line default #line hidden EndContext(); BeginContext(7870, 297, true); WriteLiteral(@" </div> </div> </section> <!--================Blog Area =================--> <script> //跳转回车事件 $('#inputGoToPage').bind('keyup', function (event) { if (event.keyCode == ""13"") { $('#inputGoToPageAction').click(); } }); </script>"); EndContext(); }
void init() { treeView_Layer.Nodes.Clear(); foreach (LayerStruct vTempLayer in VMainForm.m_Layers) { string vNodeName = string.Format("图层:【{0}】 要素类型:【{1}】", vTempLayer.Expository, CommonUnit.ConvertLayerType(vTempLayer.Type ?? 0)); treeView_Layer.Nodes.Add(vTempLayer.Name, vNodeName, vTempLayer.Type ?? 0); } }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(36, 407, true); WriteLiteral(@"<!--================Home Banner Area =================--> <section class=""banner_area""> <div class=""container""> <div class=""row banner_inner""> <div class=""col-lg-5""></div> <div class=""col-lg-7""> <div class=""banner_content text-center""> <h2>BLOG CONTENT</h2> <div class=""page_link""> "); EndContext(); BeginContext(443, 58, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1e304d350f90bc196225ad789e0cf75bee67acd54519", async() => { BeginContext(493, 4, true); WriteLiteral("Blog"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(501, 586, true); WriteLiteral(@" <a>Blog Content</a> </div> </div> </div> </div> </div> </section> <!--================End Home Banner Area =================--> <!--================Blog Area =================--> <section class=""blog_area p_120 single-post-area""> <div class=""container""> <div class=""row""> <div class=""col-lg-8""> <div class=""main_blog_details""> <img class=""img-fluid"" src=""img/blog/news-blog.jpg"" alt=""""> <a href=""#""><h4>"); EndContext(); BeginContext(1088, 22, false); #line 30 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteDetail\Index.cshtml" Write(ViewBag.NoteInfo.Title); #line default #line hidden EndContext(); BeginContext(1110, 155, true); WriteLiteral("</h4></a>\r\n <div class=\"user_details\">\r\n <div class=\"float-left\">\r\n <a class=\"cat_btn\""); EndContext(); BeginWriteAttribute("onclick", " onclick=\"", 1265, "\"", 1327, 3); WriteAttributeValue("", 1275, "SearchNoteByClassifyId(", 1275, 23, true); #line 33 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteDetail\Index.cshtml" WriteAttributeValue("", 1298, ViewBag.NoteInfo.ClassifyId, 1298, 28, false); #line default #line hidden WriteAttributeValue("", 1326, ")", 1326, 1, true); EndWriteAttribute(); BeginContext(1328, 1, true); WriteLiteral(">"); EndContext(); BeginContext(1330, 55, false); #line 33 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteDetail\Index.cshtml" Write(CommonUnit.GetClassifyName(ViewBag.NoteInfo.ClassifyId)); #line default #line hidden EndContext(); BeginContext(1385, 38, true); WriteLiteral("</a>\r\n </div>\r\n"); EndContext(); BeginContext(2028, 48, true); WriteLiteral(" </div>\r\n "); EndContext(); BeginContext(2077, 95, false); #line 47 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteDetail\Index.cshtml" Write(Html.Raw(System.Net.WebUtility.UrlDecode(@CommonUnit.GetNoteContent(ViewBag.NoteInfo.Content)))); #line default #line hidden EndContext(); BeginContext(2172, 4, true); WriteLiteral("\r\n\r\n"); EndContext(); BeginContext(2995, 58, true); WriteLiteral(" </div>\r\n </div>\r\n\r\n "); EndContext(); BeginContext(3054, 101, false); #line 63 "D:\My\Code\application\asp.net core mvc python evernote\evernote_blog\evernote_blog\Views\NoteDetail\Index.cshtml" Write(await Html.PartialAsync("_BlogUserSection", (List <ShowNoteClassifyInfo>)ViewBag.ShowNoteClassifyInfo)); #line default #line hidden EndContext(); BeginContext(3155, 1041, true); WriteLiteral(@" </div> </div> </section> <!--================Blog Area =================--> <div id=""outerdiv"" style=""position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:2;width:100%;height:100%;display:none;""> <div id=""innerdiv"" style=""display: flex;justify-content: center;align-items: center; height: 100%;""> <img id=""bigimg"" style=""border:5px solid #fff; max-width: 100%;"" src="""" /> </div> </div> <script type=""text/javascript""> $(function () { $("".main_blog_details img"").click(function () { var _this = $(this);//将当前的pimg元素作为_this传入函数 imgShow(""#outerdiv"", ""#innerdiv"", ""#bigimg"", _this); }); }); function imgShow(outerdiv, innerdiv, bigimg, _this) { var src = _this.attr(""src"");//获取当前点击的pimg元素中的src属性 $(bigimg).attr(""src"", src);//设置#bigimg元素的src属性 $(outerdiv).css(""display"", ""block""); $(innerdiv).click(function () { $(outerdiv).css(""display"", ""none""); }); "); WriteLiteral(" }\r\n\r\n</script>"); EndContext(); }
private void treeView_Layers_AfterSelect(object sender, TreeViewEventArgs e) { int vID = (int)e.Node.Tag; LayerStruct vLayer = Layers.Where(m => m.ID == vID).FirstOrDefault(); if (vLayer.Type == 3 || vLayer.Type == 5) { label_Color.Enabled = false; button_MapColor.Enabled = false; trackBar_Transparency.Enabled = true; checkBox_Annotation.Enabled = false; comboBox_Label.Enabled = false; button_Add.Enabled = false; label_AnnotationColor.Enabled = false; button_Color.Enabled = false; comboBox_FontSize.Enabled = false; textBox_Express.Enabled = false; if (dataGridView_Data.DataSource != null) { ((DataTable)dataGridView_Data.DataSource).Rows.Clear(); } dataGridView_Data.Enabled = false; } else { label_Color.Enabled = true; button_MapColor.Enabled = true; trackBar_Transparency.Enabled = true; checkBox_Annotation.Enabled = true; comboBox_Label.Enabled = true; button_Add.Enabled = true; label_AnnotationColor.Enabled = true; button_Color.Enabled = true; comboBox_FontSize.Enabled = true; textBox_Express.Enabled = true; dataGridView_Data.Enabled = true; } if (vLayer != null) { textBox_Name.Text = vLayer.Name; textBox_Expository.Text = vLayer.Expository; textBox_Type.Text = CommonUnit.ConvertLayerType(vLayer.Type.Value); if (vLayer.Color != -1) { label_Color.BackColor = Color.FromArgb(vLayer.Color); } else { label_Color.BackColor = Color.White; } checkBox_Annotation.Checked = vLayer.ShowAnnotation; string[] vColumnArray = VMainForm.GetColumns(vLayer.Name); comboBox_Label.DataSource = vColumnArray; //comboBox_Label.Text = vLayer.AnnotationField; textBox_Express.Text = vLayer.AnnotationField; if (vLayer.AnnotationFontColor != -1) { label_AnnotationColor.BackColor = Color.FromArgb(vLayer.AnnotationFontColor); } else { label_AnnotationColor.BackColor = Color.White; } comboBox_FontSize.Text = vLayer.AnnotationFontSize.ToString(); //层透明度 trackBar_Transparency.Value = vLayer.Transparency; label_Transparency.Text = string.Format("{0}%", vLayer.Transparency); //表数据 if (vLayer.Type != 3 && vLayer.Type != 5) { ILayer layer = VMainForm.GetLayerFromName(vLayer.Name); IFeatureLayer vFeatureLayer = layer as IFeatureLayer; DataTable vTable = CommonUnit.CreateFeaturesTableStruct(vFeatureLayer.FeatureClass); int vFeatureCount = vFeatureLayer.FeatureClass.FeatureCount(null); IFeatureCursor vFeatureCursor = vFeatureLayer.FeatureClass.Search(null, true); IFeature vFeature = vFeatureCursor.NextFeature(); while (vFeature != null) { DataRow vNewRow = vTable.NewRow(); for (int j = 0; j < vTable.Columns.Count; j++) { if (vFeatureLayer.FeatureClass.Fields.Field[j].Name != "Shape") { object vFieldValue = vFeature.get_Value(j); vNewRow[vFeatureLayer.FeatureClass.Fields.Field[j].Name] = vFieldValue; } } vTable.Rows.Add(vNewRow); vFeature = vFeatureCursor.NextFeature(); } vTable.AcceptChanges(); dataGridView_Data.DataSource = vTable; } button_Apply.Enabled = true; } }