This commit is contained in:
owenchen committed 2026-05-26 14:03:34 +08:00
1 parent 293a11d863
commit e60118eb53
7 files changed
+421 -191

No files matched your search

+58 -58
View File
@@ -61,6 +61,9 @@ namespace CloudBuilder.AI.Gui
contentCol = new DataGridViewTextBoxColumn();
statusCol = new DataGridViewTextBoxColumn();
tabPage2 = new TabPage();
tableLayoutPanel7 = new TableLayoutPanel();
kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
kryptonDataGridView2 = new Krypton.Toolkit.KryptonDataGridView();
tableLayoutPanel2 = new TableLayoutPanel();
statusCombo = new Krypton.Toolkit.KryptonComboBox();
guidLabel = new Krypton.Toolkit.KryptonLabel();
@@ -98,9 +101,6 @@ namespace CloudBuilder.AI.Gui
operationPanel = new TableLayoutPanel();
deleteBut = new Krypton.Toolkit.KryptonButton();
amendBut = new Krypton.Toolkit.KryptonButton();
tableLayoutPanel7 = new TableLayoutPanel();
kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
kryptonDataGridView2 = new Krypton.Toolkit.KryptonDataGridView();
contentPanel.SuspendLayout();
tableLayoutPanel3.SuspendLayout();
tableLayoutPanel4.SuspendLayout();
@@ -112,6 +112,9 @@ namespace CloudBuilder.AI.Gui
((System.ComponentModel.ISupportInitialize)sentenceGv).BeginInit();
((System.ComponentModel.ISupportInitialize)dataGv).BeginInit();
tabPage2.SuspendLayout();
tableLayoutPanel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)kryptonDataGridView1).BeginInit();
((System.ComponentModel.ISupportInitialize)kryptonDataGridView2).BeginInit();
tableLayoutPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)statusCombo).BeginInit();
processPanel.SuspendLayout();
@@ -123,9 +126,6 @@ namespace CloudBuilder.AI.Gui
bottomPanel.SuspendLayout();
savePanel.SuspendLayout();
operationPanel.SuspendLayout();
tableLayoutPanel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)kryptonDataGridView1).BeginInit();
((System.ComponentModel.ISupportInitialize)kryptonDataGridView2).BeginInit();
SuspendLayout();
//
// contentPanel
@@ -266,8 +266,8 @@ namespace CloudBuilder.AI.Gui
// tableLayoutPanel6
//
tableLayoutPanel6.ColumnCount = 2;
tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 30F));
tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 70F));
tableLayoutPanel6.Controls.Add(gridViewPagination, 0, 1);
tableLayoutPanel6.Controls.Add(sentenceGv, 1, 0);
tableLayoutPanel6.Controls.Add(dataGv, 0, 0);
@@ -290,7 +290,7 @@ namespace CloudBuilder.AI.Gui
gridViewPagination.Margin = new Padding(0);
gridViewPagination.Name = "gridViewPagination";
gridViewPagination.Page = 0;
gridViewPagination.Size = new Size(496, 30);
gridViewPagination.Size = new Size(297, 30);
gridViewPagination.TabIndex = 1000;
gridViewPagination.Total = 0;
//
@@ -301,11 +301,11 @@ namespace CloudBuilder.AI.Gui
sentenceGv.BorderStyle = BorderStyle.None;
sentenceGv.Columns.AddRange(new DataGridViewColumn[] { sentenceIndexCol, dialogueIndcCol, personNameCol, sentenceContentCol, genderCol, sentimentCol, sentenceStatusCol });
sentenceGv.Dock = DockStyle.Fill;
sentenceGv.Location = new Point(504, 0);
sentenceGv.Location = new Point(305, 0);
sentenceGv.Margin = new Padding(8, 0, 0, 0);
sentenceGv.Name = "sentenceGv";
tableLayoutPanel6.SetRowSpan(sentenceGv, 2);
sentenceGv.Size = new Size(488, 349);
sentenceGv.Size = new Size(687, 349);
sentenceGv.TabIndex = 4;
//
// sentenceIndexCol
@@ -376,7 +376,7 @@ namespace CloudBuilder.AI.Gui
dataGv.Location = new Point(0, 0);
dataGv.Margin = new Padding(0);
dataGv.Name = "dataGv";
dataGv.Size = new Size(496, 319);
dataGv.Size = new Size(297, 319);
dataGv.TabIndex = 3;
dataGv.CellClick += dataGv_CellClick;
//
@@ -419,6 +419,37 @@ namespace CloudBuilder.AI.Gui
tabPage2.Text = "人物角色表";
tabPage2.UseVisualStyleBackColor = true;
//
// tableLayoutPanel7
//
tableLayoutPanel7.ColumnCount = 2;
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
tableLayoutPanel7.Controls.Add(kryptonDataGridView1, 0, 0);
tableLayoutPanel7.Controls.Add(kryptonDataGridView2, 1, 0);
tableLayoutPanel7.Location = new Point(76, 31);
tableLayoutPanel7.Name = "tableLayoutPanel7";
tableLayoutPanel7.RowCount = 2;
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 69.93671F));
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 30.0632915F));
tableLayoutPanel7.Size = new Size(622, 316);
tableLayoutPanel7.TabIndex = 0;
//
// kryptonDataGridView1
//
kryptonDataGridView1.BorderStyle = BorderStyle.None;
kryptonDataGridView1.Location = new Point(3, 3);
kryptonDataGridView1.Name = "kryptonDataGridView1";
kryptonDataGridView1.Size = new Size(209, 173);
kryptonDataGridView1.TabIndex = 0;
//
// kryptonDataGridView2
//
kryptonDataGridView2.BorderStyle = BorderStyle.None;
kryptonDataGridView2.Location = new Point(314, 3);
kryptonDataGridView2.Name = "kryptonDataGridView2";
kryptonDataGridView2.Size = new Size(209, 173);
kryptonDataGridView2.TabIndex = 0;
//
// tableLayoutPanel2
//
tableLayoutPanel2.AutoSize = true;
@@ -847,37 +878,6 @@ namespace CloudBuilder.AI.Gui
amendBut.Values.Text = "修改(&M)";
amendBut.Click += amendBut_Click;
//
// tableLayoutPanel7
//
tableLayoutPanel7.ColumnCount = 2;
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
tableLayoutPanel7.Controls.Add(kryptonDataGridView1, 0, 0);
tableLayoutPanel7.Controls.Add(kryptonDataGridView2, 1, 0);
tableLayoutPanel7.Location = new Point(76, 31);
tableLayoutPanel7.Name = "tableLayoutPanel7";
tableLayoutPanel7.RowCount = 2;
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 69.93671F));
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 30.0632915F));
tableLayoutPanel7.Size = new Size(622, 316);
tableLayoutPanel7.TabIndex = 0;
//
// kryptonDataGridView1
//
kryptonDataGridView1.BorderStyle = BorderStyle.None;
kryptonDataGridView1.Location = new Point(3, 3);
kryptonDataGridView1.Name = "kryptonDataGridView1";
kryptonDataGridView1.Size = new Size(209, 173);
kryptonDataGridView1.TabIndex = 0;
//
// kryptonDataGridView2
//
kryptonDataGridView2.BorderStyle = BorderStyle.None;
kryptonDataGridView2.Location = new Point(314, 3);
kryptonDataGridView2.Name = "kryptonDataGridView2";
kryptonDataGridView2.Size = new Size(209, 173);
kryptonDataGridView2.TabIndex = 0;
//
// AiBookOperationPage
//
AutoScaleDimensions = new SizeF(7F, 15F);
@@ -898,6 +898,9 @@ namespace CloudBuilder.AI.Gui
((System.ComponentModel.ISupportInitialize)sentenceGv).EndInit();
((System.ComponentModel.ISupportInitialize)dataGv).EndInit();
tabPage2.ResumeLayout(false);
tableLayoutPanel7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)kryptonDataGridView1).EndInit();
((System.ComponentModel.ISupportInitialize)kryptonDataGridView2).EndInit();
tableLayoutPanel2.ResumeLayout(false);
tableLayoutPanel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)statusCombo).EndInit();
@@ -913,9 +916,6 @@ namespace CloudBuilder.AI.Gui
bottomPanel.PerformLayout();
savePanel.ResumeLayout(false);
operationPanel.ResumeLayout(false);
tableLayoutPanel7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)kryptonDataGridView1).EndInit();
((System.ComponentModel.ISupportInitialize)kryptonDataGridView2).EndInit();
ResumeLayout(false);
}
@@ -966,15 +966,15 @@ namespace CloudBuilder.AI.Gui
private TableLayoutPanel tableLayoutPanel5;
private TabPage tabPage2;
private Krypton.Toolkit.KryptonButton processBut;
private Krypton.Toolkit.KryptonDataGridView dataGv;
private TableLayoutPanel tableLayoutPanel6;
private Krypton.Toolkit.KryptonDataGridView sentenceGv;
private Krypton.Toolkit.KryptonTextBox bookTypeTxt;
private DataGridViewTextBoxColumn chapterIndexCol;
private DataGridViewTextBoxColumn titleCol;
private DataGridViewTextBoxColumn contentCol;
private DataGridViewTextBoxColumn statusCol;
private TableLayoutPanel processPanel;
private Krypton.Toolkit.KryptonButton extractNamesBut;
private TableLayoutPanel tableLayoutPanel7;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2;
private TableLayoutPanel tableLayoutPanel6;
private CloudBuilder.Gui.GridViewPagination gridViewPagination;
private Krypton.Toolkit.KryptonDataGridView sentenceGv;
private DataGridViewTextBoxColumn sentenceIndexCol;
private Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn dialogueIndcCol;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn personNameCol;
@@ -982,10 +982,10 @@ namespace CloudBuilder.AI.Gui
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn genderCol;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn sentimentCol;
private Krypton.Toolkit.KryptonDataGridViewComboBoxColumn sentenceStatusCol;
private TableLayoutPanel processPanel;
private Krypton.Toolkit.KryptonButton extractNamesBut;
private TableLayoutPanel tableLayoutPanel7;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2;
private Krypton.Toolkit.KryptonDataGridView dataGv;
private DataGridViewTextBoxColumn chapterIndexCol;
private DataGridViewTextBoxColumn titleCol;
private DataGridViewTextBoxColumn contentCol;
private DataGridViewTextBoxColumn statusCol;
}
}
+11 -2
View File
@@ -106,7 +106,7 @@ namespace CloudBuilder.AI.Gui
private void InitGridViewPagination()
{
searchCriteria = new AiChapterSearchCriteria();
gridViewPagination.SetLimit(searchCriteria.limit);
gridViewPagination.SetLimit(searchCriteria.limit);
gridViewPagination.OnPaginationChanged += SearchChapter;
}
@@ -269,8 +269,9 @@ namespace CloudBuilder.AI.Gui
savePanel.Visible = true;
operationPanel.Visible = false;
guiOperateHelper.EnableControls(false, topPanel, processPanel, gridViewPagination);
guiOperateHelper.EnableControls(true, bottomPanel, contentPanel);
guiOperateHelper.EnableControls(false, topPanel, processPanel, gridViewPagination);
if (this.DisplayMode == GuiDisplayMode.Amend) guiOperateHelper.EnableControls(false, guidTxt);
}
@@ -684,6 +685,9 @@ namespace CloudBuilder.AI.Gui
aiBookRequest.Update(data);
ShowMessageBox.ShowInfo(securityMessagePolicy.ComposeMessage(SecurityMessagePolicy.GUI_SUCCEED_UPDATED_NULL));
guidSearchTxt.Text = aiBookEntity.Guid;
Search();
}
catch (ValidatedException ex)
{
@@ -779,6 +783,11 @@ namespace CloudBuilder.AI.Gui
AiSentenceViewEntity[] aiSentences = aiSentenceRequest.FindByChapterGuid(chapter.Guid);
sentenceGv.SetDataSource(aiSentences);
ShowMessageBox.ShowInfo(securityMessagePolicy.ComposeMessage(SecurityMessagePolicy.GUI_SUCCEED_UPDATED_NULL));
guidSearchTxt.Text = data.AiBook.Guid;
Search();
}
catch (ValidatedException ex)
{