개정판 9828d2ce
issue #0000
조회 카운드 추가
filter / search / total
Change-Id: I931d0fa94feec3cb399888e269f370c9b9a8f5d4
ID2.Manager/ID2.Manager/Main.Designer.cs | ||
---|---|---|
1169 | 1169 |
this.radGridViewDocuments.MasterTemplate.ChildViewTabsPosition = Telerik.WinControls.UI.TabPositions.Bottom; |
1170 | 1170 |
gridViewCheckBoxColumn1.CheckFilteredRows = false; |
1171 | 1171 |
gridViewCheckBoxColumn1.EnableHeaderCheckBox = true; |
1172 |
gridViewCheckBoxColumn1.FieldName = "Checked"; |
|
1173 | 1172 |
gridViewCheckBoxColumn1.HeaderText = ""; |
1174 | 1173 |
gridViewCheckBoxColumn1.Name = "Checked"; |
1175 | 1174 |
gridViewCommandColumn1.EnableExpressionEditor = false; |
... | ... | |
1675 | 1674 |
this.lbSelectAndTotal.Name = "lbSelectAndTotal"; |
1676 | 1675 |
this.lbSelectAndTotal.Size = new System.Drawing.Size(102, 36); |
1677 | 1676 |
this.lbSelectAndTotal.TabIndex = 2; |
1678 |
this.lbSelectAndTotal.Text = "(Selected / Total)";
|
|
1677 |
this.lbSelectAndTotal.Text = "(Filter / Search / Total)";
|
|
1679 | 1678 |
this.lbSelectAndTotal.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
1680 | 1679 |
// |
1681 | 1680 |
// radPageViewViewer |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
52 | 52 | |
53 | 53 |
List<Documents> orgDocuments = null; |
54 | 54 |
int TotalCount = 0; |
55 |
int SearchCount = 0; |
|
55 | 56 | |
56 | 57 |
BriefAndImages briefAndImagesReview = new BriefAndImages { Dock = DockStyle.Fill }; |
57 | 58 |
IssueImagesAndAnswer issueImagesAndAnswerWork = new IssueImagesAndAnswer { Dock = DockStyle.Fill }; |
... | ... | |
128 | 129 |
#endregion |
129 | 130 | |
130 | 131 |
//this.radGridViewDocuments.DefaultValuesNeeded += RadGridViewDocuments_DefaultValuesNeeded; |
131 |
//this.radGridViewDocuments.UserAddedRow += RadGridViewDocuments_UserAddedRow;
|
|
132 |
this.radGridViewDocuments.UserAddedRow += RadGridViewDocuments_UserAddedRow; |
|
132 | 133 |
this.radGridViewDocuments.SelectionChanged += RadGridViewDocuments_SelectionChanged; |
133 | 134 |
this.radGridViewDocuments.ViewCellFormatting += RadGridViewDocuments_ViewCellFormatting; |
134 | 135 |
this.radGridViewDocuments.CreateRowInfo += RadGridViewDocuments_CreateRowInfo; |
... | ... | |
138 | 139 |
this.radGridViewDocuments.MasterView.TableSearchRow.SearchProgressChanged += TableSearchRow_SearchProgressChanged; |
139 | 140 |
//this.radGridViewDocuments.FilterChanging += RadGridViewDocuments_FilterChanging; |
140 | 141 |
this.radGridViewDocuments.FilterChanged += RadGridViewDocuments_FilterChanged; |
141 |
this.radGridViewDocuments.CellValidated += RadGridViewDocuments_CellValidated; |
|
142 |
//this.radGridViewDocuments.CellValidated += RadGridViewDocuments_CellValidated;
|
|
142 | 143 |
this.radGridViewDocuments.ValueChanged += RadGridViewDocuments_ValueChanged; |
143 | 144 |
this.radGridViewDocuments.ValueChanging += RadGridViewDocuments_ValueChanging; |
144 | 145 |
this.radGridViewDocuments.MultiSelect = true; |
... | ... | |
564 | 565 | |
565 | 566 |
private void RadGridViewDocuments_DefaultValuesNeeded(object sender, GridViewRowEventArgs e) |
566 | 567 |
{ |
567 |
if (e.Row is GridViewNewRowInfo) |
|
568 |
{ |
|
569 |
e.Row.Cells["Team"].ReadOnly = false; |
|
570 |
} |
|
568 |
//if (e.Row is GridViewNewRowInfo) |
|
569 |
//{ |
|
570 |
// e.Row.Cells["RefProjectCode"].ReadOnly = false; |
|
571 |
// e.Row.Cells["DocumentNo"].ReadOnly = false; |
|
572 |
//} |
|
571 | 573 | |
572 |
BindingDocumentToDetailEditor(new Documents()); |
|
574 |
//BindingDocumentToDetailEditor(new Documents());
|
|
573 | 575 |
} |
574 | 576 | |
575 | 577 |
private void RadGridViewDocuments_UserAddedRow(object sender, GridViewRowEventArgs e) |
576 | 578 |
{ |
577 | 579 |
if (e.Row.DataBoundItem is Documents doc) |
578 | 580 |
{ |
579 |
this.documents.Add(doc);
|
|
581 |
this.lbSelectAndTotal.Text = $"{this.radGridViewDocuments.MasterTemplate.DataView.Count} / {this.SearchCount} / {this.TotalCount} (Filter / Search / Total)";
|
|
580 | 582 |
} |
581 | 583 |
} |
582 | 584 | |
... | ... | |
1216 | 1218 |
this.documents = docData.Dwgs; |
1217 | 1219 |
this.orgDocuments = JsonConvert.DeserializeObject<List<Documents>>(JsonConvert.SerializeObject(docData.Dwgs)); |
1218 | 1220 |
this.TotalCount = docData.TotalCount; |
1221 |
this.SearchCount = docData.Dwgs.Count; |
|
1219 | 1222 | |
1220 | 1223 |
List<string> projectCodes = new List<string>(); |
1221 | 1224 | |
... | ... | |
1324 | 1327 |
if (isFilterClear) |
1325 | 1328 |
this.radGridViewDocuments.FilterDescriptors.Clear(); |
1326 | 1329 |
this.radGridViewDocuments.DataSource = new BindingList<Documents>(this.documents); |
1327 |
this.lbSelectAndTotal.Text = $"{this.radGridViewDocuments.MasterTemplate.DataView.Count} / {this.TotalCount} (Selected / Total)";
|
|
1330 |
this.lbSelectAndTotal.Text = $"{this.radGridViewDocuments.MasterTemplate.DataView.Count} / {this.SearchCount} / {this.TotalCount} (Filter / Search / Total)";
|
|
1328 | 1331 | |
1329 | 1332 |
var verification = this.LayoutValidation.Controls[0] as Verification; |
1330 | 1333 |
verification.DocumentListBinding(this.documents); |
... | ... | |
1805 | 1808 | |
1806 | 1809 |
private void RadGridViewDocuments_FilterChanged(object sender, GridViewCollectionChangedEventArgs e) |
1807 | 1810 |
{ |
1808 |
this.lbSelectAndTotal.Text = $"{e.GridViewTemplate.DataView.Count} / {this.TotalCount} (Selected / Total)";
|
|
1811 |
this.lbSelectAndTotal.Text = $"{e.GridViewTemplate.DataView.Count} / {this.SearchCount} / {this.TotalCount} (Filter / Search / Total)";
|
|
1809 | 1812 |
} |
1810 | 1813 | |
1811 | 1814 |
private void RadGridViewDocuments_CellValidated(object sender, CellValidatedEventArgs e) |
내보내기 Unified diff