This commit is contained in:
2022-07-09 19:24:29 +00:00
parent 38e52c9c6b
commit e4e40a6913
3 changed files with 39 additions and 11 deletions

View File

@@ -48,11 +48,13 @@
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.grid = new System.Windows.Forms.DataGridView(); this.grid = new System.Windows.Forms.DataGridView();
this.lblStatus = new System.Windows.Forms.Label(); this.lblStatus = new System.Windows.Forms.Label();
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.customer = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.customer = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.wonumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.wonumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ProjectName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ProjectName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ServiceDate = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ServiceDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.status = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.status = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Linked = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.statuscolor = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.statuscolor = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.customerid = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.customerid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
@@ -69,7 +71,7 @@
this.exitToolStripMenuItem}); this.exitToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(945, 24); this.menuStrip1.Size = new System.Drawing.Size(917, 24);
this.menuStrip1.TabIndex = 0; this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@@ -208,11 +210,13 @@
this.grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.grid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.id,
this.customer, this.customer,
this.wonumber, this.wonumber,
this.ProjectName, this.ProjectName,
this.ServiceDate, this.ServiceDate,
this.status, this.status,
this.Linked,
this.statuscolor, this.statuscolor,
this.customerid}); this.customerid});
this.grid.Dock = System.Windows.Forms.DockStyle.Fill; this.grid.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -221,7 +225,7 @@
this.grid.Name = "grid"; this.grid.Name = "grid";
this.grid.ReadOnly = true; this.grid.ReadOnly = true;
this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.grid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.grid.Size = new System.Drawing.Size(945, 450); this.grid.Size = new System.Drawing.Size(917, 450);
this.grid.TabIndex = 3; this.grid.TabIndex = 3;
this.grid.Visible = false; this.grid.Visible = false;
this.grid.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grid_CellFormatting); this.grid.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grid_CellFormatting);
@@ -234,9 +238,16 @@
this.lblStatus.ForeColor = System.Drawing.SystemColors.WindowText; this.lblStatus.ForeColor = System.Drawing.SystemColors.WindowText;
this.lblStatus.Location = new System.Drawing.Point(0, 0); this.lblStatus.Location = new System.Drawing.Point(0, 0);
this.lblStatus.Name = "lblStatus"; this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(945, 474); this.lblStatus.Size = new System.Drawing.Size(917, 474);
this.lblStatus.TabIndex = 4; this.lblStatus.TabIndex = 4;
// //
// id
//
this.id.HeaderText = "id";
this.id.Name = "id";
this.id.ReadOnly = true;
this.id.Visible = false;
//
// customer // customer
// //
this.customer.DataPropertyName = "CustomerName"; this.customer.DataPropertyName = "CustomerName";
@@ -267,14 +278,23 @@
// //
// status // status
// //
this.status.DataPropertyName = "Status"; this.status.DataPropertyName = "WorkorderStatusName";
this.status.HeaderText = "Status"; this.status.HeaderText = "Status";
this.status.Name = "status"; this.status.Name = "status";
this.status.ReadOnly = true; this.status.ReadOnly = true;
// //
// Linked
//
this.Linked.DataPropertyName = "Linked";
this.Linked.HeaderText = "Linked";
this.Linked.Name = "Linked";
this.Linked.ReadOnly = true;
this.Linked.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Linked.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// statuscolor // statuscolor
// //
this.statuscolor.DataPropertyName = "StatusColor"; this.statuscolor.DataPropertyName = "Color";
this.statuscolor.HeaderText = "statuscolor"; this.statuscolor.HeaderText = "statuscolor";
this.statuscolor.Name = "statuscolor"; this.statuscolor.Name = "statuscolor";
this.statuscolor.ReadOnly = true; this.statuscolor.ReadOnly = true;
@@ -294,7 +314,7 @@
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(945, 474); this.ClientSize = new System.Drawing.Size(917, 474);
this.Controls.Add(this.grid); this.Controls.Add(this.grid);
this.Controls.Add(this.menuStrip1); this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.lblStatus); this.Controls.Add(this.lblStatus);
@@ -331,11 +351,13 @@
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.DataGridView grid; private System.Windows.Forms.DataGridView grid;
private System.Windows.Forms.Label lblStatus; private System.Windows.Forms.Label lblStatus;
private System.Windows.Forms.DataGridViewTextBoxColumn id;
private System.Windows.Forms.DataGridViewTextBoxColumn customer; private System.Windows.Forms.DataGridViewTextBoxColumn customer;
private System.Windows.Forms.DataGridViewTextBoxColumn wonumber; private System.Windows.Forms.DataGridViewTextBoxColumn wonumber;
private System.Windows.Forms.DataGridViewTextBoxColumn ProjectName; private System.Windows.Forms.DataGridViewTextBoxColumn ProjectName;
private System.Windows.Forms.DataGridViewTextBoxColumn ServiceDate; private System.Windows.Forms.DataGridViewTextBoxColumn ServiceDate;
private System.Windows.Forms.DataGridViewTextBoxColumn status; private System.Windows.Forms.DataGridViewTextBoxColumn status;
private System.Windows.Forms.DataGridViewCheckBoxColumn Linked;
private System.Windows.Forms.DataGridViewTextBoxColumn statuscolor; private System.Windows.Forms.DataGridViewTextBoxColumn statuscolor;
private System.Windows.Forms.DataGridViewTextBoxColumn customerid; private System.Windows.Forms.DataGridViewTextBoxColumn customerid;
} }

View File

@@ -412,13 +412,13 @@ namespace AyaNovaQBI
_GridTable = new DataTable(); _GridTable = new DataTable();
_GridTable.Columns.Add(new DataColumn("CustomerName")); _GridTable.Columns.Add(new DataColumn("CustomerName"));
_GridTable.Columns.Add(new DataColumn("Serial")); _GridTable.Columns.Add(new DataColumn("Serial"));
_GridTable.Columns.Add(new DataColumn("ServiceDate")); _GridTable.Columns.Add(new DataColumn("ServiceDate", typeof(DateTime)));
_GridTable.Columns.Add(new DataColumn("WorkorderStatusName")); _GridTable.Columns.Add(new DataColumn("WorkorderStatusName"));
_GridTable.Columns.Add(new DataColumn("ProjectName")); _GridTable.Columns.Add(new DataColumn("ProjectName"));
_GridTable.Columns.Add(new DataColumn("Color")); _GridTable.Columns.Add(new DataColumn("Color"));
_GridTable.Columns.Add(new DataColumn("CustomerId")); _GridTable.Columns.Add(new DataColumn("CustomerId"));
_GridTable.Columns.Add(new DataColumn("Id")); _GridTable.Columns.Add(new DataColumn("Id"));
_GridTable.Columns.Add(new DataColumn("Linked")); _GridTable.Columns.Add(new DataColumn("Linked", typeof(bool)));
} }
_MisMatches.Clear(); _MisMatches.Clear();
@@ -443,7 +443,7 @@ namespace AyaNovaQBI
_GridTable.Rows.Add(row); _GridTable.Rows.Add(row);
} }
grid.DataSource = _GridTable;
//foreach (WorkOrderAccountingListItem z in v) //foreach (WorkOrderAccountingListItem z in v)
//{ //{
@@ -548,7 +548,7 @@ namespace AyaNovaQBI
private void InitializeGrid() private void InitializeGrid()
{ {
grid.DataSource = _GridTable; //grid.DataSource = _GridTable;
//grid.Columns["WorkingID"].Visible = false; //grid.Columns["WorkingID"].Visible = false;
//grid.Columns["ClientID"].Visible = false; //grid.Columns["ClientID"].Visible = false;
//grid.Columns["Linked"].Visible = false; //grid.Columns["Linked"].Visible = false;

View File

@@ -120,6 +120,9 @@
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="customer.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="customer.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
@@ -132,6 +135,9 @@
<metadata name="status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="Linked.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statuscolor.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="statuscolor.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>