リビジョン 173
請求入力(一括か出来高かを画面左上に表示する)
請求書印刷(請求書印刷の際に進捗状況の変更はなくす。一括請求は、完了とする。「保存のみ」ボタンは、CEOと社長のみ。請求書のフォーマットを見積書に合わせる。URLをDBから取得。)
資材管理(権限が無い場合、資材数変更ボタンは非表示)
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelOrderer.Designer.cs | ||
---|---|---|
104 | 104 |
this.dgv1.Size = new System.Drawing.Size(661, 272); |
105 | 105 |
this.dgv1.TabIndex = 2; |
106 | 106 |
this.dgv1.SelectionChanged += new System.EventHandler(this.dgv1_SelectionChanged); |
107 |
this.dgv1.DoubleClick += new System.EventHandler(this.dgvMaster_DoubleClick); |
|
107 | 108 |
// |
108 | 109 |
// col1 |
109 | 110 |
// |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelOrderer.cs | ||
---|---|---|
172 | 172 |
// 請求月の取得 |
173 | 173 |
GetRequestMonth(ref lstReqMonth); |
174 | 174 |
|
175 |
if (lstReqMonth[0] != int.Parse(DateTime.Now.ToString("yyyyMM"))) |
|
176 |
{ |
|
177 |
lstReqMonth.Insert(0, int.Parse(DateTime.Now.ToString("yyyyMM"))); |
|
178 |
} |
|
179 |
|
|
175 | 180 |
List<KeyValuePair<int, string>> lstKeyVal = new List<KeyValuePair<int, string>>(); |
176 | 181 |
|
177 | 182 |
foreach (int nMonth in lstReqMonth) |
... | ... | |
324 | 329 |
} |
325 | 330 |
#endregion |
326 | 331 |
|
332 |
#region ダブルクリック |
|
333 |
private void dgvMaster_DoubleClick(object sender, EventArgs e) |
|
334 |
{ |
|
335 |
btnSelRequest_Click(sender, e); |
|
336 |
} |
|
337 |
#endregion |
|
338 |
|
|
327 | 339 |
#region 請求月の取得 |
328 | 340 |
/// <summary> |
329 | 341 |
/// 請求月の取得 |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelRequest.cs | ||
---|---|---|
146 | 146 |
btnAllSelect.Enabled = false; |
147 | 147 |
btnAllUnselect.Enabled = false; |
148 | 148 |
} |
149 |
UpdateCheckValue(0);
|
|
149 |
UpdateCheckValue(); |
|
150 | 150 |
|
151 | 151 |
dgv1.Rows[0].Visible = false; |
152 | 152 |
|
... | ... | |
182 | 182 |
} |
183 | 183 |
|
184 | 184 |
// 選択数、選択金額の更新 |
185 |
UpdateCheckValue(0);
|
|
185 |
UpdateCheckValue(); |
|
186 | 186 |
|
187 | 187 |
dgv1.CellContentClick += dgv1_CellContentClick; |
188 | 188 |
dgv1.CellContentDoubleClick += dgv1_CellContentDoubleClick; |
... | ... | |
215 | 215 |
} |
216 | 216 |
} |
217 | 217 |
// 選択数、選択金額の更新 |
218 |
UpdateCheckValue(0);
|
|
218 |
UpdateCheckValue(); |
|
219 | 219 |
} |
220 | 220 |
#endregion |
221 | 221 |
|
... | ... | |
397 | 397 |
} |
398 | 398 |
} |
399 | 399 |
// 選択数、選択金額の更新 |
400 |
UpdateCheckValue(0);
|
|
400 |
UpdateCheckValue(); |
|
401 | 401 |
} |
402 | 402 |
|
403 | 403 |
#endregion |
... | ... | |
405 | 405 |
#region セル内容のクリック |
406 | 406 |
private void dgv1_CellContentClick(object sender, DataGridViewCellEventArgs e) |
407 | 407 |
{ |
408 |
UpdateCheckValue(e.ColumnIndex);
|
|
408 |
dgv1_CellContentDoubleClick(sender, e);
|
|
409 | 409 |
} |
410 | 410 |
#endregion |
411 | 411 |
|
412 | 412 |
#region セル内容のWクリック |
413 | 413 |
private void dgv1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) |
414 | 414 |
{ |
415 |
UpdateCheckValue(e.ColumnIndex); |
|
415 |
DataGridViewRow dgvRow = dgv1.CurrentRow; |
|
416 |
if (dgvRow.Cells[0].EditedFormattedValue.Equals(true) == true) |
|
417 |
{ |
|
418 |
dgvRow.Cells[0].Value = false; |
|
419 |
} |
|
420 |
else |
|
421 |
{ |
|
422 |
dgvRow.Cells[0].Value = true; |
|
423 |
} |
|
424 |
|
|
425 |
UpdateCheckValue(); |
|
416 | 426 |
} |
417 | 427 |
#endregion |
418 | 428 |
|
419 | 429 |
#region 選択数、選択金額の更新 |
420 |
void UpdateCheckValue(int tcol)
|
|
430 |
void UpdateCheckValue() |
|
421 | 431 |
{ |
422 | 432 |
int cnt = 0; |
423 | 433 |
long val; |
... | ... | |
425 | 435 |
|
426 | 436 |
for (int i = 1; i < dgv1.Rows.Count; i++) |
427 | 437 |
{ |
428 |
if (dgv1[tcol, i].EditedFormattedValue.Equals(true) == true)
|
|
438 |
if (dgv1[0, i].EditedFormattedValue.Equals(true) == true)
|
|
429 | 439 |
{ |
430 | 440 |
cnt++; |
431 | 441 |
|
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.Designer.cs | ||
---|---|---|
28 | 28 |
/// </summary> |
29 | 29 |
private void InitializeComponent() |
30 | 30 |
{ |
31 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
32 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
40 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
41 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
42 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
43 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
44 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
45 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
46 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
47 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
48 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
49 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
50 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
51 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
31 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
32 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
40 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
41 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
42 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
43 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
44 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
45 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
46 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
47 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
48 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
49 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
50 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
51 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
52 | 52 |
this.label3 = new System.Windows.Forms.Label(); |
53 | 53 |
this.dgv1 = new System.Windows.Forms.DataGridView(); |
54 | 54 |
this.col001 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
... | ... | |
94 | 94 |
this.btnDeny = new System.Windows.Forms.Button(); |
95 | 95 |
this.btnPend = new System.Windows.Forms.Button(); |
96 | 96 |
this.btnAgree = new System.Windows.Forms.Button(); |
97 |
this.SeparateBillingLabel = new System.Windows.Forms.Label(); |
|
98 |
this.CombinedOrderLabel = new System.Windows.Forms.Label(); |
|
97 | 99 |
((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit(); |
98 | 100 |
this.pnlNormal.SuspendLayout(); |
99 | 101 |
this.pnlApproval.SuspendLayout(); |
... | ... | |
179 | 181 |
// col004 |
180 | 182 |
// |
181 | 183 |
this.col004.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; |
182 |
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
183 |
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
|
184 |
this.col004.DefaultCellStyle = dataGridViewCellStyle1;
|
|
184 |
dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
185 |
dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control;
|
|
186 |
this.col004.DefaultCellStyle = dataGridViewCellStyle22;
|
|
185 | 187 |
this.col004.Frozen = true; |
186 | 188 |
this.col004.HeaderText = ""; |
187 | 189 |
this.col004.Name = "col004"; |
... | ... | |
192 | 194 |
// |
193 | 195 |
// col005 |
194 | 196 |
// |
195 |
dataGridViewCellStyle2.BackColor = System.Drawing.Color.White; |
|
196 |
this.col005.DefaultCellStyle = dataGridViewCellStyle2; |
|
197 |
dataGridViewCellStyle23.BackColor = System.Drawing.Color.White;
|
|
198 |
this.col005.DefaultCellStyle = dataGridViewCellStyle23;
|
|
197 | 199 |
this.col005.Frozen = true; |
198 | 200 |
this.col005.HeaderText = ""; |
199 | 201 |
this.col005.Name = "col005"; |
... | ... | |
204 | 206 |
// |
205 | 207 |
// col006 |
206 | 208 |
// |
207 |
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
208 |
dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
|
|
209 |
this.col006.DefaultCellStyle = dataGridViewCellStyle3;
|
|
209 |
dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
210 |
dataGridViewCellStyle24.BackColor = System.Drawing.Color.White;
|
|
211 |
this.col006.DefaultCellStyle = dataGridViewCellStyle24;
|
|
210 | 212 |
this.col006.Frozen = true; |
211 | 213 |
this.col006.HeaderText = "受注金額"; |
212 | 214 |
this.col006.Name = "col006"; |
... | ... | |
216 | 218 |
// |
217 | 219 |
// col007 |
218 | 220 |
// |
219 |
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
220 |
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
|
221 |
this.col007.DefaultCellStyle = dataGridViewCellStyle4;
|
|
221 |
dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
222 |
dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control;
|
|
223 |
this.col007.DefaultCellStyle = dataGridViewCellStyle25;
|
|
222 | 224 |
this.col007.Frozen = true; |
223 | 225 |
this.col007.HeaderText = ""; |
224 | 226 |
this.col007.Name = "col007"; |
... | ... | |
228 | 230 |
// |
229 | 231 |
// col008 |
230 | 232 |
// |
231 |
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
232 |
this.col008.DefaultCellStyle = dataGridViewCellStyle5;
|
|
233 |
dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
234 |
this.col008.DefaultCellStyle = dataGridViewCellStyle26;
|
|
233 | 235 |
this.col008.FillWeight = 120F; |
234 | 236 |
this.col008.Frozen = true; |
235 | 237 |
this.col008.HeaderText = "合計"; |
... | ... | |
240 | 242 |
// |
241 | 243 |
// col009 |
242 | 244 |
// |
243 |
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
244 |
this.col009.DefaultCellStyle = dataGridViewCellStyle6;
|
|
245 |
dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
246 |
this.col009.DefaultCellStyle = dataGridViewCellStyle27;
|
|
245 | 247 |
this.col009.HeaderText = "1回目"; |
246 | 248 |
this.col009.Name = "col009"; |
247 | 249 |
this.col009.ReadOnly = true; |
... | ... | |
250 | 252 |
// |
251 | 253 |
// col010 |
252 | 254 |
// |
253 |
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
254 |
this.col010.DefaultCellStyle = dataGridViewCellStyle7;
|
|
255 |
dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
256 |
this.col010.DefaultCellStyle = dataGridViewCellStyle28;
|
|
255 | 257 |
this.col010.HeaderText = "2回目"; |
256 | 258 |
this.col010.Name = "col010"; |
257 | 259 |
this.col010.ReadOnly = true; |
... | ... | |
260 | 262 |
// |
261 | 263 |
// col011 |
262 | 264 |
// |
263 |
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
264 |
this.col011.DefaultCellStyle = dataGridViewCellStyle8;
|
|
265 |
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
266 |
this.col011.DefaultCellStyle = dataGridViewCellStyle29;
|
|
265 | 267 |
this.col011.HeaderText = "3回目"; |
266 | 268 |
this.col011.Name = "col011"; |
267 | 269 |
this.col011.ReadOnly = true; |
... | ... | |
270 | 272 |
// |
271 | 273 |
// col12 |
272 | 274 |
// |
273 |
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
274 |
this.col12.DefaultCellStyle = dataGridViewCellStyle9;
|
|
275 |
dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
276 |
this.col12.DefaultCellStyle = dataGridViewCellStyle30;
|
|
275 | 277 |
this.col12.HeaderText = "4回目"; |
276 | 278 |
this.col12.Name = "col12"; |
277 | 279 |
this.col12.ReadOnly = true; |
... | ... | |
281 | 283 |
// |
282 | 284 |
// col13 |
283 | 285 |
// |
284 |
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
285 |
this.col13.DefaultCellStyle = dataGridViewCellStyle10;
|
|
286 |
dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
287 |
this.col13.DefaultCellStyle = dataGridViewCellStyle31;
|
|
286 | 288 |
this.col13.HeaderText = "5回目"; |
287 | 289 |
this.col13.Name = "col13"; |
288 | 290 |
this.col13.ReadOnly = true; |
... | ... | |
292 | 294 |
// |
293 | 295 |
// col14 |
294 | 296 |
// |
295 |
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
296 |
this.col14.DefaultCellStyle = dataGridViewCellStyle11;
|
|
297 |
dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
298 |
this.col14.DefaultCellStyle = dataGridViewCellStyle32;
|
|
297 | 299 |
this.col14.HeaderText = "6回目"; |
298 | 300 |
this.col14.Name = "col14"; |
299 | 301 |
this.col14.ReadOnly = true; |
... | ... | |
303 | 305 |
// |
304 | 306 |
// col15 |
305 | 307 |
// |
306 |
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
307 |
this.col15.DefaultCellStyle = dataGridViewCellStyle12;
|
|
308 |
dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
309 |
this.col15.DefaultCellStyle = dataGridViewCellStyle33;
|
|
308 | 310 |
this.col15.HeaderText = "7回目"; |
309 | 311 |
this.col15.Name = "col15"; |
310 | 312 |
this.col15.ReadOnly = true; |
... | ... | |
314 | 316 |
// |
315 | 317 |
// col16 |
316 | 318 |
// |
317 |
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
318 |
this.col16.DefaultCellStyle = dataGridViewCellStyle13;
|
|
319 |
dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
320 |
this.col16.DefaultCellStyle = dataGridViewCellStyle34;
|
|
319 | 321 |
this.col16.HeaderText = "8回目"; |
320 | 322 |
this.col16.Name = "col16"; |
321 | 323 |
this.col16.ReadOnly = true; |
... | ... | |
325 | 327 |
// |
326 | 328 |
// col17 |
327 | 329 |
// |
328 |
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
329 |
this.col17.DefaultCellStyle = dataGridViewCellStyle14;
|
|
330 |
dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
331 |
this.col17.DefaultCellStyle = dataGridViewCellStyle35;
|
|
330 | 332 |
this.col17.HeaderText = "9回目"; |
331 | 333 |
this.col17.Name = "col17"; |
332 | 334 |
this.col17.ReadOnly = true; |
... | ... | |
336 | 338 |
// |
337 | 339 |
// col18 |
338 | 340 |
// |
339 |
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
340 |
this.col18.DefaultCellStyle = dataGridViewCellStyle15;
|
|
341 |
dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
342 |
this.col18.DefaultCellStyle = dataGridViewCellStyle36;
|
|
341 | 343 |
this.col18.HeaderText = "10回目"; |
342 | 344 |
this.col18.Name = "col18"; |
343 | 345 |
this.col18.ReadOnly = true; |
... | ... | |
347 | 349 |
// |
348 | 350 |
// col19 |
349 | 351 |
// |
350 |
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
351 |
this.col19.DefaultCellStyle = dataGridViewCellStyle16;
|
|
352 |
dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
353 |
this.col19.DefaultCellStyle = dataGridViewCellStyle37;
|
|
352 | 354 |
this.col19.HeaderText = "11回目"; |
353 | 355 |
this.col19.Name = "col19"; |
354 | 356 |
this.col19.ReadOnly = true; |
... | ... | |
358 | 360 |
// |
359 | 361 |
// col20 |
360 | 362 |
// |
361 |
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
362 |
this.col20.DefaultCellStyle = dataGridViewCellStyle17;
|
|
363 |
dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
364 |
this.col20.DefaultCellStyle = dataGridViewCellStyle38;
|
|
363 | 365 |
this.col20.HeaderText = "12回目"; |
364 | 366 |
this.col20.Name = "col20"; |
365 | 367 |
this.col20.ReadOnly = true; |
... | ... | |
369 | 371 |
// |
370 | 372 |
// col21 |
371 | 373 |
// |
372 |
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
373 |
this.col21.DefaultCellStyle = dataGridViewCellStyle18;
|
|
374 |
dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
375 |
this.col21.DefaultCellStyle = dataGridViewCellStyle39;
|
|
374 | 376 |
this.col21.HeaderText = "13回目"; |
375 | 377 |
this.col21.Name = "col21"; |
376 | 378 |
this.col21.ReadOnly = true; |
... | ... | |
380 | 382 |
// |
381 | 383 |
// col22 |
382 | 384 |
// |
383 |
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
384 |
this.col22.DefaultCellStyle = dataGridViewCellStyle19;
|
|
385 |
dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
386 |
this.col22.DefaultCellStyle = dataGridViewCellStyle40;
|
|
385 | 387 |
this.col22.HeaderText = "14回目"; |
386 | 388 |
this.col22.Name = "col22"; |
387 | 389 |
this.col22.ReadOnly = true; |
... | ... | |
391 | 393 |
// |
392 | 394 |
// col23 |
393 | 395 |
// |
394 |
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
395 |
this.col23.DefaultCellStyle = dataGridViewCellStyle20;
|
|
396 |
dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
397 |
this.col23.DefaultCellStyle = dataGridViewCellStyle41;
|
|
396 | 398 |
this.col23.HeaderText = "15回目"; |
397 | 399 |
this.col23.Name = "col23"; |
398 | 400 |
this.col23.ReadOnly = true; |
... | ... | |
402 | 404 |
// |
403 | 405 |
// col098 |
404 | 406 |
// |
405 |
dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
406 |
this.col098.DefaultCellStyle = dataGridViewCellStyle21;
|
|
407 |
dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
408 |
this.col098.DefaultCellStyle = dataGridViewCellStyle42;
|
|
407 | 409 |
this.col098.HeaderText = "残り"; |
408 | 410 |
this.col098.Name = "col098"; |
409 | 411 |
this.col098.ReadOnly = true; |
... | ... | |
489 | 491 |
// |
490 | 492 |
this.lblStatus.BackColor = System.Drawing.Color.GreenYellow; |
491 | 493 |
this.lblStatus.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
492 |
this.lblStatus.Location = new System.Drawing.Point(132, 25);
|
|
494 |
this.lblStatus.Location = new System.Drawing.Point(200, 32);
|
|
493 | 495 |
this.lblStatus.Name = "lblStatus"; |
494 | 496 |
this.lblStatus.Size = new System.Drawing.Size(35, 16); |
495 | 497 |
this.lblStatus.TabIndex = 1; |
... | ... | |
633 | 635 |
this.btnAgree.UseVisualStyleBackColor = false; |
634 | 636 |
this.btnAgree.Click += new System.EventHandler(this.btnAgree_Click); |
635 | 637 |
// |
638 |
// SeparateBillingLabel |
|
639 |
// |
|
640 |
this.SeparateBillingLabel.BackColor = System.Drawing.Color.White; |
|
641 |
this.SeparateBillingLabel.Font = new System.Drawing.Font("MS Pゴシック", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
642 |
this.SeparateBillingLabel.Location = new System.Drawing.Point(13, 32); |
|
643 |
this.SeparateBillingLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|
644 |
this.SeparateBillingLabel.Name = "SeparateBillingLabel"; |
|
645 |
this.SeparateBillingLabel.Size = new System.Drawing.Size(180, 20); |
|
646 |
this.SeparateBillingLabel.TabIndex = 16; |
|
647 |
this.SeparateBillingLabel.Text = "出来高 分割"; |
|
648 |
this.SeparateBillingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
649 |
// |
|
650 |
// CombinedOrderLabel |
|
651 |
// |
|
652 |
this.CombinedOrderLabel.BackColor = System.Drawing.Color.White; |
|
653 |
this.CombinedOrderLabel.Font = new System.Drawing.Font("MS Pゴシック", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
654 |
this.CombinedOrderLabel.Location = new System.Drawing.Point(13, 32); |
|
655 |
this.CombinedOrderLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
|
656 |
this.CombinedOrderLabel.Name = "CombinedOrderLabel"; |
|
657 |
this.CombinedOrderLabel.Size = new System.Drawing.Size(180, 20); |
|
658 |
this.CombinedOrderLabel.TabIndex = 17; |
|
659 |
this.CombinedOrderLabel.Text = "完了後 一括"; |
|
660 |
this.CombinedOrderLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
661 |
// |
|
636 | 662 |
// FrmRequestInput |
637 | 663 |
// |
638 | 664 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; |
639 | 665 |
this.BackColor = System.Drawing.Color.Black; |
640 | 666 |
this.ClientSize = new System.Drawing.Size(1328, 625); |
667 |
this.Controls.Add(this.CombinedOrderLabel); |
|
668 |
this.Controls.Add(this.SeparateBillingLabel); |
|
641 | 669 |
this.Controls.Add(this.pnlNormal); |
642 | 670 |
this.Controls.Add(this.button1); |
643 | 671 |
this.Controls.Add(this.txtOrderer); |
... | ... | |
718 | 746 |
private System.Windows.Forms.DataGridViewTextBoxColumn col23; |
719 | 747 |
private System.Windows.Forms.DataGridViewTextBoxColumn col098; |
720 | 748 |
private System.Windows.Forms.DataGridViewTextBoxColumn col99; |
749 |
private System.Windows.Forms.Label SeparateBillingLabel; |
|
750 |
private System.Windows.Forms.Label CombinedOrderLabel; |
|
721 | 751 |
} |
722 | 752 |
} |
723 | 753 |
|
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.cs | ||
---|---|---|
182 | 182 |
// [回数追加]ボタンの制御 |
183 | 183 |
btnAdd.Enabled = GetbtnAddEnabled(); |
184 | 184 |
|
185 |
|
|
186 |
// 画面左上に分割か一括かを表示 |
|
187 |
if (BillingSplit()) |
|
188 |
{ |
|
189 |
SeparateBillingLabel.Visible = true; |
|
190 |
CombinedOrderLabel.Visible = false; |
|
191 |
} |
|
192 |
else |
|
193 |
{ |
|
194 |
SeparateBillingLabel.Visible = false; |
|
195 |
CombinedOrderLabel.Visible = true; |
|
196 |
} |
|
197 |
|
|
185 | 198 |
if( m_bEdit == false ){ |
186 | 199 |
btnEntry.Enabled = false; |
187 | 200 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.resx | ||
---|---|---|
192 | 192 |
<metadata name="col99.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
193 | 193 |
<value>True</value> |
194 | 194 |
</metadata> |
195 |
<metadata name="col001.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
196 |
<value>True</value> |
|
197 |
</metadata> |
|
198 |
<metadata name="col002.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
199 |
<value>True</value> |
|
200 |
</metadata> |
|
201 |
<metadata name="col003.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
202 |
<value>True</value> |
|
203 |
</metadata> |
|
204 |
<metadata name="col004.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
205 |
<value>True</value> |
|
206 |
</metadata> |
|
207 |
<metadata name="col005.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
208 |
<value>True</value> |
|
209 |
</metadata> |
|
210 |
<metadata name="col006.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
211 |
<value>True</value> |
|
212 |
</metadata> |
|
213 |
<metadata name="col007.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
214 |
<value>True</value> |
|
215 |
</metadata> |
|
216 |
<metadata name="col008.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
217 |
<value>True</value> |
|
218 |
</metadata> |
|
219 |
<metadata name="col009.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
220 |
<value>True</value> |
|
221 |
</metadata> |
|
222 |
<metadata name="col010.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
223 |
<value>True</value> |
|
224 |
</metadata> |
|
225 |
<metadata name="col011.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
226 |
<value>True</value> |
|
227 |
</metadata> |
|
228 |
<metadata name="col12.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
229 |
<value>True</value> |
|
230 |
</metadata> |
|
231 |
<metadata name="col13.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
232 |
<value>True</value> |
|
233 |
</metadata> |
|
234 |
<metadata name="col14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
235 |
<value>True</value> |
|
236 |
</metadata> |
|
237 |
<metadata name="col15.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
238 |
<value>True</value> |
|
239 |
</metadata> |
|
240 |
<metadata name="col16.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
241 |
<value>True</value> |
|
242 |
</metadata> |
|
243 |
<metadata name="col17.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
244 |
<value>True</value> |
|
245 |
</metadata> |
|
246 |
<metadata name="col18.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
247 |
<value>True</value> |
|
248 |
</metadata> |
|
249 |
<metadata name="col19.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
250 |
<value>True</value> |
|
251 |
</metadata> |
|
252 |
<metadata name="col20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
253 |
<value>True</value> |
|
254 |
</metadata> |
|
255 |
<metadata name="col21.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
256 |
<value>True</value> |
|
257 |
</metadata> |
|
258 |
<metadata name="col22.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
259 |
<value>True</value> |
|
260 |
</metadata> |
|
261 |
<metadata name="col23.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
262 |
<value>True</value> |
|
263 |
</metadata> |
|
264 |
<metadata name="col098.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
265 |
<value>True</value> |
|
266 |
</metadata> |
|
267 |
<metadata name="col99.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
268 |
<value>True</value> |
|
269 |
</metadata> |
|
195 | 270 |
</root> |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs | ||
---|---|---|
2202 | 2202 |
} |
2203 | 2203 |
#endregion |
2204 | 2204 |
|
2205 |
#region 一括か分割かの判定 |
|
2206 |
/// <summary> |
|
2207 |
/// 一括か分割かの判定 |
|
2208 |
/// </summary> |
|
2209 |
private bool BillingSplit() |
|
2210 |
{ |
|
2211 |
// 分割払いの場合 |
|
2212 |
if (m_BaseConstructionBaseInfo.BillingSplitFlg == 1) |
|
2213 |
{ |
|
2214 |
return true; |
|
2215 |
} |
|
2216 |
// 一括の場合 |
|
2217 |
else |
|
2218 |
{ |
|
2219 |
return false; |
|
2220 |
} |
|
2221 |
} |
|
2222 |
#endregion |
|
2205 | 2223 |
|
2224 |
|
|
2206 | 2225 |
#endregion |
2207 | 2226 |
|
2208 | 2227 |
#region 請求回数追加関連 |
branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmRequestPrint.Designer.cs | ||
---|---|---|
32 | 32 |
this.btnCancel = new System.Windows.Forms.Button(); |
33 | 33 |
this.btnExecProc2 = new System.Windows.Forms.Button(); |
34 | 34 |
this.panel1 = new System.Windows.Forms.Panel(); |
35 |
this.lblMessageB = new System.Windows.Forms.Label(); |
|
36 | 35 |
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); |
37 |
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
38 |
this.rdNoChange = new System.Windows.Forms.RadioButton(); |
|
39 |
this.rdChange = new System.Windows.Forms.RadioButton(); |
|
40 | 36 |
this.groupBox2 = new System.Windows.Forms.GroupBox(); |
41 | 37 |
this.rdNoPrint = new System.Windows.Forms.RadioButton(); |
42 | 38 |
this.rdPrint = new System.Windows.Forms.RadioButton(); |
... | ... | |
46 | 42 |
this.txtComment3 = new System.Windows.Forms.TextBox(); |
47 | 43 |
this.txtComment2 = new System.Windows.Forms.TextBox(); |
48 | 44 |
this.txtComment1 = new System.Windows.Forms.TextBox(); |
49 |
this.lblNowState = new System.Windows.Forms.Label(); |
|
50 |
this.lblChgState = new System.Windows.Forms.Label(); |
|
51 |
this.lblProgressNameA = new System.Windows.Forms.Label(); |
|
52 |
this.lblProgressNameB = new System.Windows.Forms.Label(); |
|
53 |
this.lblGuide = new System.Windows.Forms.Label(); |
|
54 |
this.lblArrow = new System.Windows.Forms.Label(); |
|
55 | 45 |
this.groupBox4 = new System.Windows.Forms.GroupBox(); |
56 | 46 |
this.lblOrderersName = new System.Windows.Forms.Label(); |
57 | 47 |
this.label1 = new System.Windows.Forms.Label(); |
58 | 48 |
this.panel1.SuspendLayout(); |
59 |
this.groupBox1.SuspendLayout(); |
|
60 | 49 |
this.groupBox2.SuspendLayout(); |
61 | 50 |
this.groupBox3.SuspendLayout(); |
62 | 51 |
this.groupBox4.SuspendLayout(); |
... | ... | |
67 | 56 |
this.btnExecProc1.BackColor = System.Drawing.Color.Green; |
68 | 57 |
this.btnExecProc1.FlatStyle = System.Windows.Forms.FlatStyle.System; |
69 | 58 |
this.btnExecProc1.ForeColor = System.Drawing.Color.White; |
70 |
this.btnExecProc1.Location = new System.Drawing.Point(185, 10);
|
|
59 |
this.btnExecProc1.Location = new System.Drawing.Point(331, 10);
|
|
71 | 60 |
this.btnExecProc1.Name = "btnExecProc1"; |
72 | 61 |
this.btnExecProc1.Size = new System.Drawing.Size(140, 40); |
73 | 62 |
this.btnExecProc1.TabIndex = 0; |
... | ... | |
93 | 82 |
this.btnExecProc2.BackColor = System.Drawing.Color.Green; |
94 | 83 |
this.btnExecProc2.FlatStyle = System.Windows.Forms.FlatStyle.System; |
95 | 84 |
this.btnExecProc2.ForeColor = System.Drawing.Color.White; |
96 |
this.btnExecProc2.Location = new System.Drawing.Point(331, 10);
|
|
85 |
this.btnExecProc2.Location = new System.Drawing.Point(185, 10);
|
|
97 | 86 |
this.btnExecProc2.Name = "btnExecProc2"; |
98 | 87 |
this.btnExecProc2.Size = new System.Drawing.Size(140, 40); |
99 | 88 |
this.btnExecProc2.TabIndex = 1; |
... | ... | |
107 | 96 |
this.panel1.Controls.Add(this.btnCancel); |
108 | 97 |
this.panel1.Controls.Add(this.btnExecProc1); |
109 | 98 |
this.panel1.Controls.Add(this.btnExecProc2); |
110 |
this.panel1.Location = new System.Drawing.Point(20, 629);
|
|
99 |
this.panel1.Location = new System.Drawing.Point(16, 429);
|
|
111 | 100 |
this.panel1.Name = "panel1"; |
112 | 101 |
this.panel1.Size = new System.Drawing.Size(620, 60); |
113 | 102 |
this.panel1.TabIndex = 3; |
114 | 103 |
// |
115 |
// lblMessageB |
|
116 |
// |
|
117 |
this.lblMessageB.AutoSize = true; |
|
118 |
this.lblMessageB.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
119 |
this.lblMessageB.Location = new System.Drawing.Point(121, 602); |
|
120 |
this.lblMessageB.Name = "lblMessageB"; |
|
121 |
this.lblMessageB.Size = new System.Drawing.Size(492, 19); |
|
122 |
this.lblMessageB.TabIndex = 4; |
|
123 |
this.lblMessageB.Text = "【印刷のみ】、【保存のみ】を選択してください。"; |
|
124 |
// |
|
125 | 104 |
// dateTimePicker1 |
126 | 105 |
// |
127 | 106 |
this.dateTimePicker1.Font = new System.Drawing.Font("MS 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
... | ... | |
131 | 110 |
this.dateTimePicker1.TabIndex = 5; |
132 | 111 |
this.dateTimePicker1.TabStop = false; |
133 | 112 |
// |
134 |
// groupBox1 |
|
135 |
// |
|
136 |
this.groupBox1.BackColor = System.Drawing.Color.WhiteSmoke; |
|
137 |
this.groupBox1.Controls.Add(this.lblArrow); |
|
138 |
this.groupBox1.Controls.Add(this.lblGuide); |
|
139 |
this.groupBox1.Controls.Add(this.lblProgressNameB); |
|
140 |
this.groupBox1.Controls.Add(this.lblProgressNameA); |
|
141 |
this.groupBox1.Controls.Add(this.lblChgState); |
|
142 |
this.groupBox1.Controls.Add(this.lblNowState); |
|
143 |
this.groupBox1.Controls.Add(this.rdNoChange); |
|
144 |
this.groupBox1.Controls.Add(this.rdChange); |
|
145 |
this.groupBox1.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
146 |
this.groupBox1.Location = new System.Drawing.Point(17, 179); |
|
147 |
this.groupBox1.Name = "groupBox1"; |
|
148 |
this.groupBox1.Size = new System.Drawing.Size(620, 212); |
|
149 |
this.groupBox1.TabIndex = 6; |
|
150 |
this.groupBox1.TabStop = false; |
|
151 |
this.groupBox1.Text = "工事の進捗状態"; |
|
152 |
// |
|
153 |
// rdNoChange |
|
154 |
// |
|
155 |
this.rdNoChange.AutoSize = true; |
|
156 |
this.rdNoChange.Location = new System.Drawing.Point(175, 29); |
|
157 |
this.rdNoChange.Name = "rdNoChange"; |
|
158 |
this.rdNoChange.Size = new System.Drawing.Size(132, 23); |
|
159 |
this.rdNoChange.TabIndex = 12; |
|
160 |
this.rdNoChange.Text = "変更しない"; |
|
161 |
this.rdNoChange.UseVisualStyleBackColor = true; |
|
162 |
// |
|
163 |
// rdChange |
|
164 |
// |
|
165 |
this.rdChange.AutoSize = true; |
|
166 |
this.rdChange.Checked = true; |
|
167 |
this.rdChange.Location = new System.Drawing.Point(334, 29); |
|
168 |
this.rdChange.Name = "rdChange"; |
|
169 |
this.rdChange.Size = new System.Drawing.Size(111, 23); |
|
170 |
this.rdChange.TabIndex = 13; |
|
171 |
this.rdChange.TabStop = true; |
|
172 |
this.rdChange.Text = "変更する"; |
|
173 |
this.rdChange.UseVisualStyleBackColor = true; |
|
174 |
this.rdChange.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged); |
|
175 |
// |
|
176 | 113 |
// groupBox2 |
177 | 114 |
// |
178 | 115 |
this.groupBox2.BackColor = System.Drawing.Color.WhiteSmoke; |
... | ... | |
217 | 154 |
this.groupBox3.Controls.Add(this.txtComment3); |
218 | 155 |
this.groupBox3.Controls.Add(this.txtComment2); |
219 | 156 |
this.groupBox3.Controls.Add(this.txtComment1); |
220 |
this.groupBox3.Location = new System.Drawing.Point(17, 394);
|
|
157 |
this.groupBox3.Location = new System.Drawing.Point(15, 179);
|
|
221 | 158 |
this.groupBox3.Name = "groupBox3"; |
222 | 159 |
this.groupBox3.Size = new System.Drawing.Size(621, 200); |
223 | 160 |
this.groupBox3.TabIndex = 14; |
... | ... | |
226 | 163 |
// |
227 | 164 |
// txtComment5 |
228 | 165 |
// |
166 |
this.txtComment5.ImeMode = System.Windows.Forms.ImeMode.On; |
|
229 | 167 |
this.txtComment5.Location = new System.Drawing.Point(17, 161); |
230 | 168 |
this.txtComment5.MaxLength = 60; |
231 | 169 |
this.txtComment5.Name = "txtComment5"; |
... | ... | |
234 | 172 |
// |
235 | 173 |
// txtComment4 |
236 | 174 |
// |
175 |
this.txtComment4.ImeMode = System.Windows.Forms.ImeMode.On; |
|
237 | 176 |
this.txtComment4.Location = new System.Drawing.Point(17, 127); |
238 | 177 |
this.txtComment4.MaxLength = 60; |
239 | 178 |
this.txtComment4.Name = "txtComment4"; |
... | ... | |
242 | 181 |
// |
243 | 182 |
// txtComment3 |
244 | 183 |
// |
184 |
this.txtComment3.ImeMode = System.Windows.Forms.ImeMode.On; |
|
245 | 185 |
this.txtComment3.Location = new System.Drawing.Point(17, 94); |
246 | 186 |
this.txtComment3.MaxLength = 60; |
247 | 187 |
this.txtComment3.Name = "txtComment3"; |
... | ... | |
250 | 190 |
// |
251 | 191 |
// txtComment2 |
252 | 192 |
// |
193 |
this.txtComment2.ImeMode = System.Windows.Forms.ImeMode.On; |
|
253 | 194 |
this.txtComment2.Location = new System.Drawing.Point(17, 61); |
254 | 195 |
this.txtComment2.MaxLength = 60; |
255 | 196 |
this.txtComment2.Name = "txtComment2"; |
... | ... | |
258 | 199 |
// |
259 | 200 |
// txtComment1 |
260 | 201 |
// |
202 |
this.txtComment1.ImeMode = System.Windows.Forms.ImeMode.On; |
|
261 | 203 |
this.txtComment1.Location = new System.Drawing.Point(17, 27); |
262 | 204 |
this.txtComment1.MaxLength = 60; |
263 | 205 |
this.txtComment1.Name = "txtComment1"; |
264 | 206 |
this.txtComment1.Size = new System.Drawing.Size(587, 26); |
265 | 207 |
this.txtComment1.TabIndex = 0; |
266 | 208 |
// |
267 |
// lblNowState |
|
268 |
// |
|
269 |
this.lblNowState.AutoSize = true; |
|
270 |
this.lblNowState.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
271 |
this.lblNowState.Location = new System.Drawing.Point(54, 70); |
|
272 |
this.lblNowState.Name = "lblNowState"; |
|
273 |
this.lblNowState.Size = new System.Drawing.Size(135, 19); |
|
274 |
this.lblNowState.TabIndex = 15; |
|
275 |
this.lblNowState.Text = "現在進捗状態"; |
|
276 |
// |
|
277 |
// lblChgState |
|
278 |
// |
|
279 |
this.lblChgState.AutoSize = true; |
|
280 |
this.lblChgState.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
281 |
this.lblChgState.Location = new System.Drawing.Point(33, 140); |
|
282 |
this.lblChgState.Name = "lblChgState"; |
|
283 |
this.lblChgState.Size = new System.Drawing.Size(156, 19); |
|
284 |
this.lblChgState.TabIndex = 16; |
|
285 |
this.lblChgState.Text = "実行後進捗状態"; |
|
286 |
// |
|
287 |
// lblProgressNameA |
|
288 |
// |
|
289 |
this.lblProgressNameA.BackColor = System.Drawing.Color.White; |
|
290 |
this.lblProgressNameA.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
291 |
this.lblProgressNameA.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
|
292 |
this.lblProgressNameA.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
293 |
this.lblProgressNameA.Location = new System.Drawing.Point(195, 64); |
|
294 |
this.lblProgressNameA.Name = "lblProgressNameA"; |
|
295 |
this.lblProgressNameA.Size = new System.Drawing.Size(360, 30); |
|
296 |
this.lblProgressNameA.TabIndex = 17; |
|
297 |
this.lblProgressNameA.Text = "請求準備"; |
|
298 |
this.lblProgressNameA.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
299 |
// |
|
300 |
// lblProgressNameB |
|
301 |
// |
|
302 |
this.lblProgressNameB.BackColor = System.Drawing.Color.White; |
|
303 |
this.lblProgressNameB.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
304 |
this.lblProgressNameB.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
|
305 |
this.lblProgressNameB.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
306 |
this.lblProgressNameB.Location = new System.Drawing.Point(195, 134); |
|
307 |
this.lblProgressNameB.Name = "lblProgressNameB"; |
|
308 |
this.lblProgressNameB.Size = new System.Drawing.Size(360, 30); |
|
309 |
this.lblProgressNameB.TabIndex = 18; |
|
310 |
this.lblProgressNameB.Text = "請求完了"; |
|
311 |
this.lblProgressNameB.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
312 |
// |
|
313 |
// lblGuide |
|
314 |
// |
|
315 |
this.lblGuide.AutoSize = true; |
|
316 |
this.lblGuide.BackColor = System.Drawing.Color.WhiteSmoke; |
|
317 |
this.lblGuide.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
318 |
this.lblGuide.Location = new System.Drawing.Point(59, 181); |
|
319 |
this.lblGuide.Name = "lblGuide"; |
|
320 |
this.lblGuide.Size = new System.Drawing.Size(513, 19); |
|
321 |
this.lblGuide.TabIndex = 19; |
|
322 |
this.lblGuide.Text = "現在、請求準備の一括案件のみ請求完了となります。"; |
|
323 |
// |
|
324 |
// lblArrow |
|
325 |
// |
|
326 |
this.lblArrow.AutoSize = true; |
|
327 |
this.lblArrow.Font = new System.Drawing.Font("MS 明朝", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
328 |
this.lblArrow.Location = new System.Drawing.Point(362, 97); |
|
329 |
this.lblArrow.Name = "lblArrow"; |
|
330 |
this.lblArrow.Size = new System.Drawing.Size(32, 33); |
|
331 |
this.lblArrow.TabIndex = 20; |
|
332 |
this.lblArrow.Text = "⇓"; |
|
333 |
// |
|
334 | 209 |
// groupBox4 |
335 | 210 |
// |
336 | 211 |
this.groupBox4.BackColor = System.Drawing.Color.WhiteSmoke; |
... | ... | |
367 | 242 |
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
368 | 243 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
369 | 244 |
this.BackColor = System.Drawing.Color.White; |
370 |
this.ClientSize = new System.Drawing.Size(652, 698);
|
|
245 |
this.ClientSize = new System.Drawing.Size(652, 502);
|
|
371 | 246 |
this.Controls.Add(this.groupBox4); |
372 | 247 |
this.Controls.Add(this.groupBox3); |
373 | 248 |
this.Controls.Add(this.groupBox2); |
374 |
this.Controls.Add(this.groupBox1); |
|
375 |
this.Controls.Add(this.lblMessageB); |
|
376 | 249 |
this.Controls.Add(this.panel1); |
377 | 250 |
this.Font = new System.Drawing.Font("MS 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
378 | 251 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
... | ... | |
386 | 259 |
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmStatusAndDate_FormClosed); |
387 | 260 |
this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load); |
388 | 261 |
this.panel1.ResumeLayout(false); |
389 |
this.groupBox1.ResumeLayout(false); |
|
390 |
this.groupBox1.PerformLayout(); |
|
391 | 262 |
this.groupBox2.ResumeLayout(false); |
392 | 263 |
this.groupBox2.PerformLayout(); |
393 | 264 |
this.groupBox3.ResumeLayout(false); |
... | ... | |
395 | 266 |
this.groupBox4.ResumeLayout(false); |
396 | 267 |
this.groupBox4.PerformLayout(); |
397 | 268 |
this.ResumeLayout(false); |
398 |
this.PerformLayout(); |
|
399 | 269 |
|
400 | 270 |
} |
401 | 271 |
|
... | ... | |
405 | 275 |
private System.Windows.Forms.Button btnCancel; |
406 | 276 |
private System.Windows.Forms.Button btnExecProc2; |
407 | 277 |
private System.Windows.Forms.Panel panel1; |
408 |
private System.Windows.Forms.Label lblMessageB; |
|
409 | 278 |
private System.Windows.Forms.DateTimePicker dateTimePicker1; |
410 |
private System.Windows.Forms.GroupBox groupBox1; |
|
411 |
private System.Windows.Forms.RadioButton rdNoChange; |
|
412 |
private System.Windows.Forms.RadioButton rdChange; |
|
413 | 279 |
private System.Windows.Forms.GroupBox groupBox2; |
414 | 280 |
private System.Windows.Forms.RadioButton rdNoPrint; |
415 | 281 |
private System.Windows.Forms.RadioButton rdPrint; |
... | ... | |
419 | 285 |
private System.Windows.Forms.TextBox txtComment3; |
420 | 286 |
private System.Windows.Forms.TextBox txtComment2; |
421 | 287 |
private System.Windows.Forms.TextBox txtComment1; |
422 |
private System.Windows.Forms.Label lblGuide; |
|
423 |
private System.Windows.Forms.Label lblProgressNameB; |
|
424 |
private System.Windows.Forms.Label lblProgressNameA; |
|
425 |
private System.Windows.Forms.Label lblChgState; |
|
426 |
private System.Windows.Forms.Label lblNowState; |
|
427 |
private System.Windows.Forms.Label lblArrow; |
|
428 | 288 |
private System.Windows.Forms.GroupBox groupBox4; |
429 | 289 |
private System.Windows.Forms.Label lblOrderersName; |
430 | 290 |
private System.Windows.Forms.Label label1; |
branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmRequestPrint.cs | ||
---|---|---|
1 | 1 |
using System; |
2 |
using System.Collections; |
|
2 | 3 |
using System.Collections.Generic; |
3 | 4 |
using System.ComponentModel; |
4 | 5 |
using System.Data; |
... | ... | |
27 | 28 |
private enum Dispcount |
28 | 29 |
{ |
29 | 30 |
ExeCuteDate = 0, |
30 |
ProgressStatusA, |
|
31 |
ProgressStatusB, |
|
31 |
//ProgressStatusA,
|
|
32 |
//ProgressStatusB,
|
|
32 | 33 |
radioButtonA1, |
33 | 34 |
radioButtonA2, |
34 | 35 |
radioButtonB1, |
... | ... | |
70 | 71 |
|
71 | 72 |
#region 変数 |
72 | 73 |
|
74 |
// ユーザー情報 |
|
75 |
private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo() |
|
76 |
{ |
|
77 |
m_Type = CommonDefine.SecurityRankPos.NormalAuthority, |
|
78 |
m_GeneralAffairsFlg = 0, |
|
79 |
m_SecRange = ClsSecurityPermission.SecRangeType.InCharge |
|
80 |
}; |
|
81 |
|
|
73 | 82 |
/// <summary> |
74 | 83 |
/// 終了状態フラグ |
75 | 84 |
/// </summary> |
... | ... | |
173 | 182 |
private bool m_ParentEnd = false; |
174 | 183 |
// *-----* 共通処理設定 *-----* |
175 | 184 |
|
185 |
/// <summary> |
|
186 |
/// 図形置き場シート |
|
187 |
/// </summary> |
|
188 |
private const string s_shapeSheetName = "図形シート"; |
|
189 |
/// <summary> |
|
190 |
/// 図形名称 |
|
191 |
/// </summary> |
|
192 |
private const string s_shapeName = "EstimateSeal1"; // 積算見積表紙判子 |
|
193 |
/// <summary> |
|
194 |
/// 図形サイズ【縦・横】(図形名称順) |
|
195 |
/// </summary> |
|
196 |
private static float[,] s_ShapeSize = new float[1, 2] { { 25.51f, 25.51f } }; // 積算見積表紙判子 |
|
197 |
/// <summary> |
|
198 |
/// 積算見積表紙判子フォントサイズ |
|
199 |
/// </summary> |
|
200 |
private static float[] s_EstimateSeal1FontSize = { 16f, 8f, 8f, 8f, 6f }; |
|
201 |
/// <summary> |
|
202 |
/// 表紙判子位置(Key:X Value:Y) |
|
203 |
/// </summary> |
|
204 |
private static float[,] s_CoverSealPoint = new float[4, 2] {{592.50f, 555.25f}, // 社長 |
|
205 |
{657.25f, 555.25f}, // 所属長 |
|
206 |
{721.00f, 555.25f}, // 営業 |
|
207 |
{784.00f, 555.25f} }; // 担当 |
|
176 | 208 |
#endregion |
177 | 209 |
|
178 | 210 |
#region プロパティ |
... | ... | |
278 | 310 |
{ |
279 | 311 |
// フォームサイズ固定 |
280 | 312 |
this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height); |
281 |
|
|
313 |
|
|
314 |
// ユーザ権限設定 |
|
315 |
ClsSecurityPermission.SetUserType(m_UserInfo); |
|
316 |
|
|
282 | 317 |
// コントロールのセット |
283 | 318 |
SetDisplayObject(); |
284 | 319 |
|
... | ... | |
320 | 355 |
// 請求書データの反映 |
321 | 356 |
EntryInvoiceData(); |
322 | 357 |
|
323 |
// 工事の進捗状態に「変更する」が選択されている場合 |
|
324 |
if (rdChange.Checked) |
|
325 |
{ |
|
326 |
// 工事基本情報を更新する |
|
327 |
UpdateConstructionBaseInfo(); |
|
328 |
} |
|
358 |
// 工事基本情報を更新する |
|
359 |
UpdateConstructionBaseInfo(); |
|
329 | 360 |
|
330 | 361 |
await Task.Run(() => |
331 | 362 |
{ |
... | ... | |
368 | 399 |
// 請求書データの反映 |
369 | 400 |
EntryInvoiceData(); |
370 | 401 |
|
371 |
// 工事の進捗状態に「変更する」が選択されている場合 |
|
372 |
if (rdChange.Checked) |
|
373 |
{ |
|
374 |
// 工事基本情報を更新する |
|
375 |
UpdateConstructionBaseInfo(); |
|
376 |
} |
|
402 |
// 工事基本情報を更新する |
|
403 |
UpdateConstructionBaseInfo(); |
|
377 | 404 |
|
378 | 405 |
// 非同期で印刷処理を実行する |
379 | 406 |
await Task.Run(() => |
... | ... | |
406 | 433 |
} |
407 | 434 |
#endregion |
408 | 435 |
|
409 |
#region 工事進捗ラジオボタン |
|
410 |
/// <summary> |
|
411 |
/// 工事進捗ラジオボタンの変更 |
|
412 |
/// </summary> |
|
413 |
/// <param name="sender"></param> |
|
414 |
/// <param name="e"></param> |
|
415 |
private void radioButton1_CheckedChanged(object sender, EventArgs e) |
|
416 |
{ |
|
417 |
// 工事進捗変更 |
|
418 |
if (rdChange.Checked) |
|
419 |
{ |
|
420 |
lblNowState.Enabled = true; |
|
421 |
lblChgState.Enabled = true; |
|
422 |
lblProgressNameA.Enabled = true; |
|
423 |
lblProgressNameB.Enabled = true; |
|
424 |
lblGuide.Enabled = true; |
|
425 |
lblArrow.Enabled = true; |
|
426 |
} |
|
427 |
else |
|
428 |
{ |
|
429 |
lblNowState.Enabled = false; |
|
430 |
lblChgState.Enabled = false; |
|
431 |
lblProgressNameA.Enabled = false; |
|
432 |
lblProgressNameB.Enabled = false; |
|
433 |
lblGuide.Enabled = false; |
|
434 |
lblArrow.Enabled = false; |
|
435 |
} |
|
436 |
} |
|
437 |
#endregion |
|
438 |
|
|
439 | 436 |
#region オブジェクトコントロールセット |
440 | 437 |
/// <summary> |
441 | 438 |
/// 表示オブジェクトの取得 |
... | ... | |
443 | 440 |
private void SetDisplayObject() |
444 | 441 |
{ |
445 | 442 |
m_dispControl[(int)Dispcount.ExeCuteDate] = dateTimePicker1; |
446 |
m_dispControl[(int)Dispcount.ProgressStatusA] = lblProgressNameA; |
|
447 |
m_dispControl[(int)Dispcount.ProgressStatusB] = lblProgressNameB; |
|
448 |
m_dispControl[(int)Dispcount.radioButtonA1] = rdChange; |
|
449 |
m_dispControl[(int)Dispcount.radioButtonA2] = rdNoChange; |
|
443 |
//m_dispControl[(int)Dispcount.ProgressStatusA] = lblProgressNameA;
|
|
444 |
//m_dispControl[(int)Dispcount.ProgressStatusB] = lblProgressNameB;
|
|
445 |
//m_dispControl[(int)Dispcount.radioButtonA1] = rdChange;
|
|
446 |
//m_dispControl[(int)Dispcount.radioButtonA2] = rdNoChange;
|
|
450 | 447 |
m_dispControl[(int)Dispcount.radioButtonB1] = rdPrint; |
451 | 448 |
m_dispControl[(int)Dispcount.radioButtonB2] = rdNoPrint; |
449 |
btnExecProc2.Visible = false; |
|
450 |
if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.SpecialAuthority) |
|
451 |
{ |
|
452 |
btnExecProc2.Visible = true; |
|
453 |
} |
|
454 |
if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority) |
|
455 |
{ |
|
456 |
btnExecProc2.Visible = true; |
|
457 |
} |
|
458 |
|
|
452 | 459 |
} |
453 | 460 |
#endregion |
454 | 461 |
|
... | ... | |
461 | 468 |
{ |
462 | 469 |
try |
463 | 470 |
{ |
464 |
if (rdChange.Checked == true) |
|
471 |
if (MessageBox.Show("請求書を出力します、よろしいですか?", |
|
472 |
"出力確認", |
|
473 |
MessageBoxButtons.OKCancel, |
|
474 |
MessageBoxIcon.Question) == DialogResult.Cancel) |
|
465 | 475 |
{ |
466 |
if (MessageBox.Show("工事案件の進捗状態が変わります、よろしいですか?", |
|
467 |
"進捗状態変更確認", |
|
468 |
MessageBoxButtons.OKCancel, |
|
469 |
MessageBoxIcon.Question) == DialogResult.Cancel) |
|
470 |
{ |
|
471 |
return false; |
|
472 |
} |
|
476 |
return false; |
|
473 | 477 |
} |
474 | 478 |
return true; |
475 | 479 |
} |
... | ... | |
572 | 576 |
ToolTip1.SetToolTip(rdPrint, "請求日を請求書へ「印刷する」場合は、こちらを選択してください。"); |
573 | 577 |
ToolTip1.SetToolTip(rdNoPrint, "請求日を請求書へ「印刷せずに空白」で印刷する場合は、こちらを選択してください。"); |
574 | 578 |
|
575 |
ToolTip1.SetToolTip(rdChange, "工事進捗状態を変更して次の処理へ進む場合は、こちらを選択してください。"); |
|
576 |
ToolTip1.SetToolTip(rdNoChange, "工事進捗進捗を現在の状態から変更しない場合は、こちらを選択してください。"); |
|
579 |
//ToolTip1.SetToolTip(rdChange, "工事進捗状態を変更して次の処理へ進む場合は、こちらを選択してください。");
|
|
580 |
//ToolTip1.SetToolTip(rdNoChange, "工事進捗進捗を現在の状態から変更しない場合は、こちらを選択してください。");
|
|
577 | 581 |
} |
578 | 582 |
#endregion |
579 | 583 |
|
... | ... | |
745 | 749 |
m_InvData.Comment4 = txtComment4.Text; |
746 | 750 |
m_InvData.Comment5 = txtComment5.Text; |
747 | 751 |
|
748 |
if (rdChange.Checked == true) |
|
752 |
m_InvData.CompleteFlg = 1; |
|
753 |
|
|
754 |
if (UpdateInvoiceData() == false) |
|
749 | 755 |
{ |
750 |
m_InvData.CompleteFlg = 1; |
|
751 |
|
|
752 |
if (UpdateInvoiceData() == false) |
|
753 |
{ |
|
754 |
return; |
|
755 |
} |
|
756 |
return; |
|
756 | 757 |
} |
757 |
|
|
758 | 758 |
} |
759 | 759 |
#endregion |
760 | 760 |
|
... | ... | |
833 | 833 |
continue; |
834 | 834 |
} |
835 | 835 |
|
836 |
// 工事基本情報で請求一括の場合 |
|
836 | 837 |
// 工事状態フラグを「請求完了」に変更 |
837 |
Info.ConstructionStatusFlg = (int)CommonDefine.StatNumArray.Status10; |
|
838 |
if (Info.BillingSplitFlg == (int)CommonDefine.BaseInfoBillingSplitFlg.AllOnBilling) |
|
839 |
{ |
|
840 |
Info.ConstructionStatusFlg = (int)CommonDefine.StatNumArray.Status10; |
|
841 |
} |
|
838 | 842 |
|
839 | 843 |
// 工事基本情報を更新 |
840 | 844 |
sql = ioInfo.CreatePrimarykeyString(nConstructionCode); |
... | ... | |
1306 | 1310 |
|
1307 | 1311 |
//private Dictionary<int, List<RequestData>> m_dicReqData = new Dictionary<int, List<RequestData>>(); |
1308 | 1312 |
|
1309 |
|
|
1313 |
int no = 1; |
|
1310 | 1314 |
foreach (RequestHead ReqHead in m_lstReqHead) |
1311 | 1315 |
{ |
1312 | 1316 |
List<RequestData> lstReqData = null; |
... | ... | |
1338 | 1342 |
continue; |
1339 | 1343 |
} |
1340 | 1344 |
|
1341 |
rtAns = PrintDetail( ReqHead, ReqData, Info ); |
|
1345 |
rtAns = PrintDetail( no, ReqHead, ReqData, Info );
|
|
1342 | 1346 |
if (rtAns != CommonDefine.RetunAnswer.Answer0) |
1343 | 1347 |
{ |
1344 | 1348 |
return; |
... | ... | |
1417 | 1421 |
} |
1418 | 1422 |
#endregion |
1419 | 1423 |
|
1424 |
#region エリアスを付けた担当者マスタのフィールド文を作成する |
|
1425 |
/// <summary> |
|
1426 |
/// エリアスを付けた担当者マスタのフィールド文を作成する |
|
1427 |
/// </summary> |
|
1428 |
/// <param name="Alias"></param> |
|
1429 |
/// <param name="strSQL"></param> |
|
1430 |
private string CreatePersonSQL(string Alias) |
|
1431 |
{ |
|
1432 |
try |
|
1433 |
{ |
|
1434 |
StringBuilder strcmd = new StringBuilder(); |
|
1435 |
|
|
1436 |
strcmd.AppendFormat(" {0}PersonCode", Alias); |
|
1437 |
strcmd.AppendFormat(" ,{0}DisplayOrder", Alias); |
|
1438 |
strcmd.AppendFormat(" ,{0}PersonName", Alias); |
|
1439 |
|
|
1440 |
strcmd.AppendFormat(" ,DATE_FORMAT({0}StartDate, '%Y/%m/%d')", Alias); |
|
1441 |
strcmd.AppendFormat(" ,DATE_FORMAT({0}EndDate, '%Y/%m/%d')", Alias); |
|
1442 |
strcmd.AppendFormat(" ,{0}PassWord", Alias); |
|
1443 |
strcmd.AppendFormat(" ,{0}SecurityManagement", Alias); |
|
1444 |
strcmd.AppendFormat(" ,{0}SecCode", Alias); |
|
1445 |
strcmd.AppendFormat(" ,{0}MsgBackColor", Alias); |
|
1446 |
strcmd.AppendFormat(" ,{0}DisplayString", Alias); |
|
1447 |
strcmd.AppendFormat(" ,{0}DepartmentCode", Alias); |
|
1448 |
strcmd.AppendFormat(" ,{0}MonthlySalary", Alias); |
|
1449 |
strcmd.AppendFormat(" ,{0}YearSalary", Alias); |
|
1450 |
strcmd.AppendFormat(" ,{0}Qualification", Alias); |
|
1451 |
strcmd.AppendFormat(" ,{0}SealPrintName", Alias); |
|
1452 |
strcmd.AppendFormat(" ,{0}EmployeeClassFlg", Alias); |
|
1453 |
strcmd.AppendFormat(" ,{0}LedgerFlg", Alias); |
|
1454 |
|
|
1455 |
strcmd.AppendFormat(" ,{0}DeleteFlg", Alias); |
|
1456 |
strcmd.AppendFormat(", DATE_FORMAT({0}EntryDate, '%Y/%m/%d %H:%i:%s')", Alias); |
|
1457 |
strcmd.AppendFormat(", DATE_FORMAT({0}UpdateDate, '%Y/%m/%d %H:%i:%s')", Alias); |
|
1458 |
|
|
1459 |
return strcmd.ToString(); |
|
1460 |
} |
|
1461 |
catch (Exception ex) |
|
1462 |
{ |
|
1463 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1464 |
return string.Empty; |
|
1465 |
} |
|
1466 |
} |
|
1467 |
#endregion |
|
1468 |
|
|
1469 |
#region 表紙印鑑表示 |
|
1470 |
/// <summary> |
|
1471 |
/// 表紙印鑑表示 |
|
1472 |
/// </summary> |
|
1473 |
private void PrintCoverSeal(int PersonCode) |
|
1474 |
{ |
|
1475 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
|
1476 |
IOProcessApproval paDB = new IOProcessApproval(); |
|
1477 |
try |
|
1478 |
{ |
|
1479 |
ArrayList arlist = new ArrayList(); |
|
1480 |
|
|
1481 |
// 承認データ読込 |
|
1482 |
string strSQLSeal = "SELECT"; |
|
1483 |
strSQLSeal += CreatePersonSQL("B."); |
|
1484 |
// 新セキュリティデータ対応済みかを確認する |
|
1485 |
if (CommonMotions.LoginUserData.SecCode == 0) |
|
1486 |
{ |
|
1487 |
|
|
1488 |
strSQLSeal += " FROM PROCESSAPPROVAL A, PERSONINCHARGEMASTER B"; |
|
1489 |
} |
|
1490 |
else |
|
1491 |
{ |
|
1492 |
strSQLSeal += ", C.SECRANK FROM PROCESSAPPROVAL A, PERSONINCHARGEMASTER B, SECURITYMASTER C"; |
|
1493 |
} |
|
1494 |
strSQLSeal += paDB.CreatePrimarykeyString(m_lstReqHead[0].ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderBillingApproval, m_lstReqHead[0].OrderNo); |
|
1495 |
strSQLSeal += " AND A.PERSONCODE = B.PERSONCODE"; |
|
1496 |
if (CommonMotions.LoginUserData.SecCode != 0) strSQLSeal += " AND C.SECCODE = B.SECCODE"; |
|
1497 |
strSQLSeal += " Order By B.SECURITYMANAGEMENT ASC"; |
|
1498 |
if (!paDB.ExecuteReader(strSQLSeal, ref arlist)) return; |
|
1499 |
|
|
1500 |
// 印刷テーブル作成 |
|
1501 |
int[] PorsonCode = new int[4] { 0, 0, 0, 0 }; |
|
1502 |
List<string> NameTable = new List<string>(); |
|
1503 |
for (int i = 0; i < PorsonCode.Length; i++) NameTable.Add(""); |
|
1504 |
string[] OrderOfPrecedenceTable = new string[4]; |
|
1505 |
|
|
1506 |
int PersonDataCnt = Enum.GetNames(typeof(IOMPersonInCharge.ColumnCnt)).Length; |
|
1507 |
// 承認データより担当者その他を取得する |
|
1508 |
for (int i = 0; i < arlist.Count; i++) |
|
1509 |
{ |
|
1510 |
// エクセルの枠より多い場合は処理を抜ける |
|
1511 |
if (i > 3) break; |
|
1512 |
|
|
1513 |
object[] readObj = (object[])arlist[i]; |
|
1514 |
PersonInChargeMaster PersonRec = new PersonInChargeMaster(); |
|
1515 |
picDB.Reader2Struct(readObj, ref PersonRec); |
|
1516 |
|
|
1517 |
bool SelData = false; |
|
1518 |
// 新セキュリティデータ対応済みかを確認する |
|
1519 |
if (CommonMotions.LoginUserData.SecCode == 0) |
|
1520 |
{ |
|
1521 |
// 最高責任者・統括責任者・所属長かどうかを調べる |
|
1522 |
if (PersonRec.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key || |
|
1523 |
PersonRec.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key || |
|
1524 |
PersonRec.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key) |
|
1525 |
{ |
|
1526 |
SelData = true; |
|
1527 |
} |
|
1528 |
} |
|
1529 |
else |
|
1530 |
{ |
|
1531 |
int SecRank = CommonMotions.cnvInt(readObj[PersonDataCnt]); |
|
1532 |
int SRank = (int)CommonDefine.SecurityRankPos.SpecialAuthority; // 特別権限 |
|
1533 |
int FRank = (int)CommonDefine.SecurityRankPos.FreeAuthority; // 統括者権限 |
|
1534 |
int LRank = (int)CommonDefine.SecurityRankPos.LimitedAuthority; // 所属長権限 |
|
1535 |
|
|
1536 |
// 最高責任者・統括責任者・所属長かどうかを調べる |
|
1537 |
if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode |
|
1538 |
|| SecRank == CommonDefine.SecurityRankList[SRank].Key |
|
1539 |
|| SecRank == CommonDefine.SecurityRankList[FRank].Key |
|
1540 |
|| SecRank == CommonDefine.SecurityRankList[LRank].Key) |
|
1541 |
{ |
|
1542 |
SelData = true; |
|
1543 |
} |
|
1544 |
} |
|
1545 |
if (SelData) |
|
1546 |
{ |
|
1547 |
// コードと名前と役職を取得する |
|
1548 |
PorsonCode[i] = PersonRec.PersonCode; |
|
1549 |
NameTable[i] = PersonRec.SealPrintName; |
|
1550 |
OrderOfPrecedenceTable[i] = PersonRec.DisplayString; |
|
1551 |
// 7文字以上は文字が見えないので省略 |
|
1552 |
if (OrderOfPrecedenceTable[i].Length > 7) OrderOfPrecedenceTable[i] = OrderOfPrecedenceTable[i].Substring(0, 7); |
|
1553 |
} |
|
1554 |
else |
|
1555 |
{ // 担当者 |
|
1556 |
// コードと名前を取得する |
|
1557 |
PorsonCode[3] = PersonRec.PersonCode; |
|
1558 |
NameTable[3] = PersonRec.SealPrintName; |
|
1559 |
OrderOfPrecedenceTable[3] = "担 当"; |
|
1560 |
} |
|
1561 |
} |
|
1562 |
// テーブル内に同じコードが無いか後から調べる |
|
1563 |
for (int i = 0; i < PorsonCode.Length - 1; i++) |
|
1564 |
{ |
|
1565 |
if (PorsonCode[i] == 0) continue; |
|
1566 |
for (int ii = 0; ii < PorsonCode.Length; ii++) |
|
1567 |
{ |
|
1568 |
if (i == ii) continue; |
|
1569 |
if (PorsonCode[i] != PorsonCode[ii]) continue; |
|
1570 |
|
|
1571 |
PorsonCode[ii] = 0; |
|
1572 |
NameTable[ii] = string.Empty; |
|
1573 |
OrderOfPrecedenceTable[ii] = string.Empty; |
|
1574 |
break; |
|
1575 |
} |
|
1576 |
} |
|
1577 |
|
|
1578 |
// 印鑑を描画する |
|
1579 |
OfficeShapeDefine shapedef = new OfficeShapeDefine(); |
|
1580 |
shapedef.ShapeSheetName = s_shapeSheetName; // 図形シート名称 |
|
1581 |
shapedef.ShapeName = s_shapeName; // 図形名称 |
|
1582 |
shapedef.ShapeWidth = s_ShapeSize[0, 0]; // 図形描画サイズ Width |
|
1583 |
shapedef.ShapeHeight = s_ShapeSize[0, 1]; // 図形描画サイズ Height |
|
1584 |
|
|
1585 |
for (int i = 0; i < 4; i++) |
|
1586 |
{ |
|
1587 |
// |
|
1588 |
if (PorsonCode[i] != 0) |
|
1589 |
{ |
|
1590 |
shapedef.ShapeDrowPointX = s_CoverSealPoint[i, 0]; // 図形描画位置 X |
|
1591 |
shapedef.ShapeDrowPointY = s_CoverSealPoint[i, 1]; // 図形描画位置 Y |
|
1592 |
shapedef.DrowText = NameTable[i]; // 描画文字列 |
|
1593 |
int ifontSize = NameTable[i].Length - 1; |
|
1594 |
if (ifontSize > 4) ifontSize = 4; |
|
1595 |
shapedef.FontSize = s_EstimateSeal1FontSize[ifontSize]; // フォントサイズ |
|
1596 |
// 図形描画 |
|
1597 |
m_UsedExcel.ExcelCopyShape(shapedef); |
|
1598 |
} |
|
1599 |
// 役職を印字する(M~) |
|
1600 |
int orgNumber = 11 + i; |
|
1601 |
string strAlpha = CommonMotions.cnvNumberToAlphaCharacter(orgNumber); |
|
1602 |
m_UsedExcel.ExcelCellSet(string.Format("{0}24", strAlpha), OrderOfPrecedenceTable[i]); |
|
1603 |
} |
|
1604 |
|
|
1605 |
//// 所属長の役職を印字する |
|
1606 |
//m_UsedExcel.ExcelCellSet("M24", OrderOfPrecedenceTable); |
|
1607 |
} |
|
1608 |
catch (Exception ex) |
|
1609 |
{ |
|
1610 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1611 |
} |
|
1612 |
finally |
|
1613 |
{ |
|
1614 |
paDB.close(); paDB = null; |
|
1615 |
picDB.close(); picDB = null; |
|
1616 |
} |
|
1617 |
} |
|
1618 |
#endregion |
|
1619 |
|
|
1420 | 1620 |
#region 請求書(表紙)作成 |
1421 | 1621 |
/// <summary> |
1422 | 1622 |
/// 請求書(表紙)作成 |
... | ... | |
1429 | 1629 |
//// 請求書表紙シートの取得 |
1430 | 1630 |
m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.Cover]); |
1431 | 1631 |
|
1432 |
//// ③ 請求日(4行目 K列) |
|
1632 |
//// 請求書No(4行目 N列) |
|
1633 |
string strInvNo = (m_InvData.InvoiceNo / 1000).ToString(); |
|
1634 |
strInvNo += "-"; |
|
1635 |
strInvNo += (m_InvData.InvoiceNo % 1000).ToString("00"); |
|
1636 |
|
|
1637 |
ExcelPrintData InvNoData = new ExcelPrintData(); |
|
1638 |
InvNoData.AddPrintData("N", 3, strInvNo).ExcelCellSet(m_UsedExcel); |
|
1639 |
|
|
1640 |
|
|
1641 |
//// ③ 請求日(5行目 M列) |
|
1433 | 1642 |
if (m_bDatePrintFlg == true) |
1434 | 1643 |
{ |
1435 | 1644 |
ExcelPrintData reqDate = new ExcelPrintData(); |
1436 |
reqDate.AddPrintData("K", 3, dateTimePicker1.Value.ToString("yyyy年MM月dd日")).ExcelCellSet(m_UsedExcel);
|
|
1645 |
reqDate.AddPrintData("M", 4, dateTimePicker1.Value.ToString("yyyy/MM/dd")).ExcelCellSet(m_UsedExcel);
|
|
1437 | 1646 |
} |
1438 | 1647 |
else |
1439 | 1648 |
{ |
1440 | 1649 |
ExcelPrintData reqDate = new ExcelPrintData(); |
1441 |
reqDate.AddPrintData("K", 3, " 年 月 日").ExcelCellSet(m_UsedExcel);
|
|
1650 |
reqDate.AddPrintData("M", 4, " 年 月 日").ExcelCellSet(m_UsedExcel);
|
|
1442 | 1651 |
} |
1443 | 1652 |
|
1444 |
//// ④ 請求先名称(6行目 D列)
|
|
1653 |
//// ④ 請求先名称(9行目 C列)
|
|
1445 | 1654 |
ExcelPrintData nameData = new ExcelPrintData(); |
1446 |
nameData.AddPrintData("D", 5, m_InvData.RequestName).ExcelCellSet(m_UsedExcel); |
|
1655 |
string str = m_InvData.RequestName + " 様"; |
|
1656 |
nameData.AddPrintData("C", 8, str).ExcelCellSet(m_UsedExcel); |
|
1447 | 1657 |
|
1448 |
//// ⑤ 請求金額(11行目 G列)
|
|
1658 |
//// ⑤ 請求金額(13行目 C列)
|
|
1449 | 1659 |
ExcelPrintData priceData = new ExcelPrintData(); |
1450 |
priceData.AddPrintData("G", 10, m_InvData.TotalAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
|
|
1660 |
priceData.AddPrintData("C", 12, m_InvData.TotalAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
|
|
1451 | 1661 |
|
1452 |
//// ⑥ 消費税(12行目 J列)
|
|
1662 |
//// ⑥ 消費税(14行目 C列)
|
|
1453 | 1663 |
ExcelPrintData taxData = new ExcelPrintData(); |
1454 |
taxData.AddPrintData("I", 11, m_InvData.TaxAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
|
|
1664 |
taxData.AddPrintData("C", 13, m_InvData.TaxAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
|
|
1455 | 1665 |
|
1456 |
string[] comment = new string[]{ m_InvData.Comment1, m_InvData.Comment2, m_InvData.Comment3, m_InvData.Comment4, m_InvData.Comment5 }; |
|
1666 |
//// 工事名(16行目 D列) |
|
1667 |
// ExcelPrintData cnstnameData = new ExcelPrintData(); |
|
1668 |
// cnstnameData.AddPrintData("D", 15, m_lstReqHead[0].ReqConstructionName).ExcelCellSet(m_UsedExcel); |
|
1457 | 1669 |
|
1458 |
for( int i=0; i<5; i++ ) |
|
1670 |
//// 会社名 |
|
1671 |
string strCompany = CommonMotions.SystemMasterData.CompanyName1; |
|
1672 |
if( CommonMotions.SystemMasterData.CompanyName2 != string.Empty ) |
|
1459 | 1673 |
{ |
1460 |
//// ⑦ コメント1(14行目 G列) |
|
1461 |
ExcelPrintData constNameData = new ExcelPrintData(); |
|
1462 |
constNameData.AddPrintData("G", 13+i, comment[i]).ExcelCellSet(m_UsedExcel); |
|
1674 |
strCompany += " " + CommonMotions.SystemMasterData.CompanyName2; |
|
1675 |
} |
|
1463 | 1676 |
|
1677 |
//// 郵便番号 |
|
1678 |
string strZip = "〒" + CommonMotions.SystemMasterData.ZipCode; |
|
1679 |
|
|
1680 |
//// 住所 |
|
1681 |
string strAddr = CommonMotions.SystemMasterData.Address1; |
|
1682 |
if( CommonMotions.SystemMasterData.Address2 != string.Empty) |
|
1683 |
{ |
|
1684 |
strAddr += CommonMotions.SystemMasterData.Address2; |
|
1464 | 1685 |
} |
1686 |
if( CommonMotions.SystemMasterData.Address3 != string.Empty){ |
|
1687 |
strAddr += CommonMotions.SystemMasterData.Address3; |
|
1688 |
} |
|
1465 | 1689 |
|
1690 |
//// TEL/FAX |
|
1691 |
|
|
1692 |
string strTelFax = ""; |
|
1693 |
|
|
1694 |
if( CommonMotions.SystemMasterData.PhoneNumber != string.Empty ) |
|
1695 |
{ |
|
1696 |
strTelFax = "TEL " + CommonMotions.SystemMasterData.PhoneNumber + "(代)"; |
|
1697 |
} |
|
1698 |
if( CommonMotions.SystemMasterData.FaxNumber != string.Empty ) |
|
1699 |
{ |
|
1700 |
if( strTelFax.Length > 0 ) |
|
1701 |
{ |
|
1702 |
strTelFax += " "; |
|
1703 |
} |
|
1704 |
strTelFax += "FAX " + CommonMotions.SystemMasterData.FaxNumber; |
|
1705 |
} |
|
1706 |
//// URL |
|
1707 |
string strUrl = CommonMotions.SystemMasterData.HomePageURL; |
|
1708 |
|
|
1709 |
ExcelPrintData companyData = new ExcelPrintData(); |
|
1710 |
companyData.AddPrintData("L", 17, strCompany); // 会社名(18行目 L列) |
|
1711 |
companyData.AddPrintData("L", 18, strZip); // 郵便番号(19行目 L列) |
|
1712 |
companyData.AddPrintData("L", 19, strAddr); // 住所(20行目 L列) |
|
1713 |
companyData.AddPrintData("L", 20, strTelFax); // TEL/FAX(21行目 L列) |
|
1714 |
companyData.AddPrintData("L", 21, strUrl); // URL(22行目 L列) |
|
1715 |
companyData.ExcelCellSet(m_UsedExcel); |
|
1716 |
|
|
1717 |
ExcelPrintData commentData = new ExcelPrintData(); |
|
1718 |
commentData.AddPrintData("C", 17, m_InvData.Comment1); // コメント1(18行目 C列) |
|
1719 |
commentData.AddPrintData("C", 18, m_InvData.Comment2); // コメント2(19行目 C列) |
|
1720 |
commentData.AddPrintData("C", 19, m_InvData.Comment3); // コメント3(20行目 C列) |
|
1721 |
commentData.AddPrintData("C", 20, m_InvData.Comment4); // コメント4(21行目 C列) |
|
1722 |
commentData.AddPrintData("C", 21, m_InvData.Comment5); // コメント5(22行目 C列) |
|
1723 |
commentData.ExcelCellSet(m_UsedExcel); |
|
1724 |
|
|
1725 |
ConstructionBaseInfo Info = null; |
|
1726 |
m_dicConstructionBaseInfo.TryGetValue(m_lstReqHead[0].ReqConstructionCode, out Info); |
|
1727 |
|
|
1728 |
// 印鑑描画 |
|
1729 |
PrintCoverSeal(Info.ConstructionPersonCode); |
|
1730 |
|
|
1466 | 1731 |
return CommonDefine.RetunAnswer.Answer0; |
他の形式にエクスポート: Unified diff