プロジェクト

全般

プロフィール

リビジョン 169

山内7年以上前に追加

資材管理修正
資材選択時 クリック・ダブルクリックでチェックボックスにチェックが入るように修正

差分を表示:

branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialSelect.cs
183 183
        /// </summary>
184 184
        /// <param name="sender"></param>
185 185
        /// <param name="e"></param>
186
        private void dgvMaster_CellClick(object sender, DataGridViewCellEventArgs e)
186
        private void dgvMaster_Click(object sender, EventArgs e)
187 187
        {
188
            dgvMaster_CellDoubleClick(sender, e);
188
            dgvMaster_DoubleClick(sender, e);
189 189
        }
190

  
191 190
        /// <summary>
192 191
        /// セルダブルクリック
193 192
        /// </summary>
194 193
        /// <param name="sender"></param>
195 194
        /// <param name="e"></param>
196
        private void dgvMaster_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
195
        private void dgvMaster_DoubleClick(object sender, EventArgs e)
197 196
        {
198

  
197
            DataGridViewRow dgvRow = dgvMaster.CurrentRow;
198
            dgvRow.Cells[(int)DispGridColumn.SelectCheck].Value = true;
199 199
        }
200 200

  
201 201
        
branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialSelect.designer.cs
43 43
            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
44 44
            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
45 45
            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
46
            this.Column4 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
46
            this.MaterialSelectCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
47 47
            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
48 48
            this.SuspendLayout();
49 49
            // 
......
130 130
            this.Column1,
131 131
            this.Column3,
132 132
            this.Column2,
133
            this.Column4});
133
            this.MaterialSelectCheck});
134 134
            this.dgvMaster.Location = new System.Drawing.Point(8, 80);
135 135
            this.dgvMaster.Margin = new System.Windows.Forms.Padding(4);
136 136
            this.dgvMaster.Name = "dgvMaster";
......
141 141
            this.dgvMaster.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
142 142
            this.dgvMaster.Size = new System.Drawing.Size(485, 340);
143 143
            this.dgvMaster.TabIndex = 3;
144
            this.dgvMaster.Click += new System.EventHandler(this.dgvMaster_Click);
145
            this.dgvMaster.DoubleClick += new System.EventHandler(this.dgvMaster_DoubleClick);
144 146
            // 
145 147
            // Column1
146 148
            // 
......
174 176
            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
175 177
            this.Column2.Width = 355;
176 178
            // 
177
            // Column4
179
            // MaterialSelectCheck
178 180
            // 
179
            this.Column4.HeaderText = "選択";
180
            this.Column4.Name = "Column4";
181
            this.Column4.Width = 70;
181
            this.MaterialSelectCheck.HeaderText = "選択";
182
            this.MaterialSelectCheck.Name = "MaterialSelectCheck";
183
            this.MaterialSelectCheck.Width = 70;
182 184
            // 
183 185
            // FrmMaterialSelect
184 186
            // 
......
217 219
        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
218 220
        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
219 221
        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
220
        private System.Windows.Forms.DataGridViewCheckBoxColumn Column4;
222
        private System.Windows.Forms.DataGridViewCheckBoxColumn MaterialSelectCheck;
221 223
    }
222 224
}
branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialSelect.resx
126 126
  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
127 127
    <value>True</value>
128 128
  </metadata>
129
  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
129
  <metadata name="MaterialSelectCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
130 130
    <value>True</value>
131 131
  </metadata>
132 132
</root>

他の形式にエクスポート: Unified diff