リビジョン 387
請求書発送状況入力(単体テスト完了)
請求承認状況閲覧(実装完了):ClsExcute.cs、FrmMenuEvent.csに起動プロセス設定
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
91 | 91 |
ReqSumTotalList = 44, // 44:手間・通常業者一覧 |
92 | 92 |
RequestPrintList = 45, // 45:請求書印刷一覧 |
93 | 93 |
DepartmentCost = 46, // 46:部署出納帳 |
94 |
ReqApprovalStatus = 47, // 47:請求承認状況閲覧 add suzuki 2018/08/08 |
|
94 | 95 |
} |
95 | 96 |
#endregion |
96 | 97 |
|
... | ... | |
206 | 207 |
{ (int)ProcessExecuteNo.ReqSumTotalList, "手間・通常業者一覧-表示"}, |
207 | 208 |
{ (int)ProcessExecuteNo.RequestPrintList, "請求書印刷一覧-表示"}, |
208 | 209 |
{ (int)ProcessExecuteNo.DepartmentCost, "部署出納帳-入力" }, |
210 |
{ (int)ProcessExecuteNo.ReqApprovalStatus, "請求承認状況閲覧-表示"}, // add suzuki 2018/08/08 |
|
209 | 211 |
}; |
210 | 212 |
|
211 | 213 |
#endregion |
... | ... | |
622 | 624 |
case (int)ProcessExecuteNo.DepartmentCost: // 46:部署出納帳 |
623 | 625 |
ProcessExecuteNo_DepartmentCost(m_ProcControlPara[NowPoint]); |
624 | 626 |
break; |
625 |
#endregion |
|
626 | 627 |
|
628 |
case (int)ProcessExecuteNo.ReqApprovalStatus: // 47:請求承認状況閲覧 add suzuki 2018/08/08 |
|
629 |
ProcessExecuteNo_ReqApprovalStatus(m_ProcControlPara[NowPoint]); |
|
630 |
break; |
|
631 |
#endregion |
|
632 |
|
|
627 | 633 |
#region マスタメンテ |
628 | 634 |
// ----- マスタメンテ |
629 | 635 |
case (int)MaintenanceExecuteNo.System: // 1011:システム管理 |
... | ... | |
2538 | 2544 |
} |
2539 | 2545 |
#endregion |
2540 | 2546 |
|
2541 |
#region 請求状況一覧 |
|
2547 |
#region 請求書状況一覧
|
|
2542 | 2548 |
/// <summary> |
2543 | 2549 |
/// 請求書状況一覧 |
2544 | 2550 |
/// </summary> |
... | ... | |
2702 | 2708 |
} |
2703 | 2709 |
} |
2704 | 2710 |
#endregion |
2711 |
|
|
2712 |
#region 請求承認状況閲覧 |
|
2713 |
/// <summary> |
|
2714 |
/// 請求承認状況閲覧 |
|
2715 |
/// </summary> |
|
2716 |
/// <param name="CurrentPara"></param> |
|
2717 |
public static void ProcessExecuteNo_ReqApprovalStatus(ProcessParameter CurrentPara) |
|
2718 |
{ |
|
2719 |
// 請求承認状況閲覧 add suzuki 2018/08/08 |
|
2720 |
FrmReqApprovalStatus frm = new FrmReqApprovalStatus(); |
|
2721 |
try |
|
2722 |
{ |
|
2723 |
// フォーム表示 |
|
2724 |
frm.ShowDialog(); |
|
2725 |
} |
|
2726 |
catch (Exception ex) |
|
2727 |
{ |
|
2728 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2729 |
BackProcess(); |
|
2730 |
} |
|
2731 |
finally |
|
2732 |
{ |
|
2733 |
frm.Dispose(); frm = null; |
|
2734 |
} |
|
2735 |
} |
|
2705 | 2736 |
#endregion |
2706 | 2737 |
|
2738 |
#endregion |
|
2739 |
|
|
2707 | 2740 |
#region マスタメンテナンス |
2708 | 2741 |
// ----------------- メンテナンス起動 |
2709 | 2742 |
#region 管理マスタ |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqApprovalStatus/FrmReqApprovalStatus.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.ComponentModel; |
|
4 |
using System.Data; |
|
5 |
using System.Drawing; |
|
6 |
using System.Text; |
|
7 |
using System.Windows.Forms; |
|
8 |
using System.Collections; |
|
9 |
|
|
10 |
using log4net; |
|
11 |
using log4net.Appender; |
|
12 |
using log4net.Repository.Hierarchy; |
|
13 |
|
|
14 |
using ProcessManagement.Common; |
|
15 |
using ProcessManagement.DB.IOAccess; |
|
16 |
using ProcessManagement.DataModel; |
|
17 |
using ProcessManagement.DB.Core; |
|
18 |
using ProcessManagement.Forms.CustomControls; |
|
19 |
using ProcessManagement.Forms.ControlsAction; |
|
20 |
//*---------------------------- ???????? ----------------------------------* |
|
21 |
// 2017/06/07 Ver1.0.0.0 Create Source |
|
22 |
// |
|
23 |
// |
|
24 |
// |
|
25 |
//*----------------------------------------------------------------------------* |
|
26 |
namespace ProcessManagement.Forms.DataEntry |
|
27 |
{ |
|
28 |
public partial class FrmReqApprovalStatus : Form |
|
29 |
{ |
|
30 |
#region ?g?p??` |
|
31 |
//log4net???O???g?p???? |
|
32 |
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
33 |
#endregion |
|
34 |
|
|
35 |
#region ?? |
|
36 |
#region ?\???J???? |
|
37 |
/// <summary> |
|
38 |
/// ?\???J???? |
|
39 |
/// </summary> |
|
40 |
private enum DispColumn |
|
41 |
{ |
|
42 |
No = 0, |
|
43 |
ConstructionDepartment, |
|
44 |
ConstructionPerson, |
|
45 |
OrdersName, |
|
46 |
RequestValue, |
|
47 |
ConstructionName, |
|
48 |
ConstructionCode, |
|
49 |
ApprovalDate, |
|
50 |
PrintOutDate, |
|
51 |
MailingDate, |
|
52 |
OrderNo, |
|
53 |
InvoiceNo, |
|
54 |
} |
|
55 |
#endregion |
|
56 |
|
|
57 |
#region ?s?I??F |
|
58 |
/// <summary> |
|
59 |
/// ?s?I??F |
|
60 |
/// </summary> |
|
61 |
private static Color s_RowSelectBackColor = Color.Blue; |
|
62 |
private static Color s_RowSelectForeColor = Color.White; |
|
63 |
#endregion |
|
64 |
|
|
65 |
#endregion |
|
66 |
|
|
67 |
#region ??? |
|
68 |
|
|
69 |
/// <summary> |
|
70 |
/// ?N???t???O |
|
71 |
/// </summary> |
|
72 |
private int m_ExecuteFlg = 0; |
|
73 |
|
|
74 |
/// <summary> |
|
75 |
/// ?f?[?^????{?^???\???t???O |
|
76 |
/// </summary> |
|
77 |
private bool m_DataAddtionButton = false; |
|
78 |
|
|
79 |
/// <summary> |
|
80 |
/// ?x????t???O |
|
81 |
/// </summary> |
|
82 |
private int m_BillingSplitFlg = -1; |
|
83 |
|
|
84 |
/// <summary> |
|
85 |
/// ?I???{?^???????t???O |
|
86 |
/// </summary> |
|
87 |
private bool m_CloseingProcessOff = false; |
|
88 |
|
|
89 |
/// <summary> |
|
90 |
/// Cell???T?C?Y |
|
91 |
/// </summary> |
|
92 |
private int[] m_CellSize; |
|
93 |
|
|
94 |
#region ?t?H?[???? |
|
95 |
/// <summary> |
|
96 |
/// ?t?H?[???? |
|
97 |
/// </summary> |
|
98 |
private int m_FormWidthSize = 0; |
|
99 |
#endregion |
|
100 |
|
|
101 |
#region ?O???b?h???T?C?Y |
|
102 |
/// <summary> |
|
103 |
/// ?O???b?h???T?C?Y |
|
104 |
/// </summary> |
|
105 |
private int m_GridWidthSize = 0; |
|
106 |
#endregion |
|
107 |
#endregion |
|
108 |
|
|
109 |
#region ?v???p?e?B |
|
110 |
/// <summary> |
|
111 |
/// ?N???t???O |
|
112 |
/// </summary> |
|
113 |
public int ExecuteFlg |
|
114 |
{ |
|
115 |
get { return m_ExecuteFlg; } |
|
116 |
set { m_ExecuteFlg = value; } |
|
117 |
} |
|
118 |
|
|
119 |
/// <summary> |
|
120 |
/// ?f?[?^????{?^???\?? |
|
121 |
/// </summary> |
|
122 |
public bool DataAddtionButton |
|
123 |
{ |
|
124 |
get { return m_DataAddtionButton; } |
|
125 |
set { m_DataAddtionButton = value; } |
|
126 |
} |
|
127 |
|
|
128 |
/// <summary> |
|
129 |
/// ?x????t???O |
|
130 |
/// </summary> |
|
131 |
public int BillingSplitFlg |
|
132 |
{ |
|
133 |
get { return m_BillingSplitFlg; } |
|
134 |
set { m_BillingSplitFlg = value; } |
|
135 |
} |
|
136 |
|
|
137 |
#endregion |
|
138 |
|
|
139 |
#region ?R???X?g???N?^ |
|
140 |
public FrmReqApprovalStatus() |
|
141 |
{ |
|
142 |
InitializeComponent(); |
|
143 |
} |
|
144 |
#endregion |
|
145 |
#region ?f?X?g???N?^ |
|
146 |
~FrmReqApprovalStatus() |
|
147 |
{ |
|
148 |
try |
|
149 |
{ |
|
150 |
GC.Collect(); |
|
151 |
} |
|
152 |
catch (Exception ex) |
|
153 |
{ |
|
154 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
155 |
} |
|
156 |
} |
|
157 |
#endregion |
|
158 |
|
|
159 |
#region ?~?{?^?? |
|
160 |
/// <summary> |
|
161 |
/// ?~?{?^?????????? |
|
162 |
/// </summary> |
|
163 |
/// <param name="sender"></param> |
|
164 |
/// <param name="e"></param> |
|
165 |
private void FrmReqPayStatus_FormClosing(object sender, FormClosingEventArgs e) |
|
166 |
{ |
|
167 |
if (m_CloseingProcessOff) return; |
|
168 |
|
|
169 |
// ?O?v???Z?X???? |
|
170 |
ClsExcute.BackProcess(); |
|
171 |
} |
|
172 |
#endregion |
|
173 |
|
|
174 |
#region ?I???{?^?? |
|
175 |
/// <summary> |
|
176 |
/// ?I???{?^???N???b?N |
|
177 |
/// </summary> |
|
178 |
/// <param name="sender"></param> |
|
179 |
/// <param name="e"></param> |
|
180 |
private void btnEnd_Click(object sender, EventArgs e) |
|
181 |
{ |
|
182 |
m_CloseingProcessOff = false; |
|
183 |
|
|
184 |
this.Close(); |
|
185 |
} |
|
186 |
#endregion |
|
187 |
|
|
188 |
#region ?X?V?{?^?? |
|
189 |
/// <summary> |
|
190 |
/// ?f?[?^?X?V?{?^?????? |
|
191 |
/// </summary> |
|
192 |
/// <param name="sender"></param> |
|
193 |
/// <param name="e"></param> |
|
194 |
private void btnDataUpDate_Click(object sender, EventArgs e) |
|
195 |
{ |
|
196 |
// ?\???f?[?^?X?V |
|
197 |
DataDisplay(); |
|
198 |
} |
|
199 |
#endregion |
|
200 |
|
|
201 |
#region ?t?H?[?????[?h |
|
202 |
/// <summary> |
|
203 |
/// ?????t?H?[?????[?h |
|
204 |
/// </summary> |
|
205 |
/// <param name="sender"></param> |
|
206 |
/// <param name="e"></param> |
|
207 |
private void FrmConstructionBaseInfoList_Load(object sender, EventArgs e) |
|
208 |
{ |
|
209 |
SetInitnumUDConstPro(); |
|
210 |
// ?R???{?{?b?N?X?Z?b?g |
|
211 |
SetcmbDepartment(); |
|
212 |
SetcmbPersons(); |
|
213 |
|
|
214 |
// ?R???{?{?b?N?X?????\?? |
|
215 |
InitCombBox(); |
|
216 |
|
|
217 |
// ?\???X?^?C?????X |
|
218 |
InitDisplayStyle(); |
|
219 |
|
|
220 |
// ???O?C?????Z?b?g |
|
221 |
InitDepPersonCode(); |
|
222 |
|
|
223 |
// ?????\?? |
|
224 |
InitDataLoad(); |
|
225 |
|
|
226 |
// ?C?x???g?Z?b?g |
|
227 |
SetControlEvent(); |
|
228 |
} |
|
229 |
#endregion |
|
230 |
|
|
231 |
#region ?t?H?[??KeyDown |
|
232 |
/// <summary> |
|
233 |
/// Entry?L?[????????? |
|
234 |
/// </summary> |
|
235 |
/// <param name="sender"></param> |
|
236 |
/// <param name="e"></param> |
|
237 |
private void FrmConstructionBaseInfoList_KeyDown(object sender, KeyEventArgs e) |
|
238 |
{ |
|
239 |
//Enter?L?[?????????????m?F |
|
240 |
//Alt??Ctrl?L?[????????????????????? |
|
241 |
if ((e.KeyCode == Keys.Enter) && !e.Alt && !e.Control) |
|
242 |
{ |
|
243 |
//????????Tab?L?[?????????????????? |
|
244 |
//Shift??????????????O??R???g???[????t?H?[?J?X????? |
|
245 |
this.ProcessTabKey(!e.Shift); |
|
246 |
|
|
247 |
e.Handled = true; |
|
248 |
//.NET Framework 2.0??~ |
|
249 |
e.SuppressKeyPress = true; |
|
250 |
} |
|
251 |
} |
|
252 |
#endregion |
|
253 |
|
|
254 |
// ?Z???I???s |
|
255 |
int m_BeforeGridRow = -1; |
|
256 |
#region ?Z???I???X |
|
257 |
/// <summary> |
|
258 |
/// ?Z????X???s??F?????? |
|
259 |
/// </summary> |
|
260 |
/// <param name="sender"></param> |
|
261 |
/// <param name="e"></param> |
|
262 |
private void dgvMaster_SelectionChanged(object sender, EventArgs e) |
|
263 |
{ |
|
264 |
DataGridViewEX dgv = dgvMaster; |
|
265 |
DataGridViewRow CurRow = dgv.CurrentRow; |
|
266 |
|
|
267 |
// ?s?I??F???????? |
|
268 |
if (m_BeforeGridRow >= 0) DefaultRowChangeColor(m_BeforeGridRow); |
|
269 |
|
|
270 |
// ?I???s?????? |
|
271 |
m_BeforeGridRow = dgv.CurrentRow.Index; |
|
272 |
// ?s?I??F???? |
|
273 |
SelectRowChangeColor(m_BeforeGridRow); |
|
274 |
} |
|
275 |
#endregion |
|
276 |
|
|
277 |
#region ?c????R???{?{?b?N?X??X |
|
278 |
/// <summary> |
|
279 |
/// ?c?????X |
|
280 |
/// </summary> |
|
281 |
/// <param name="sender"></param> |
|
282 |
/// <param name="e"></param> |
|
283 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
|
284 |
{ |
|
285 |
try |
|
286 |
{ |
|
287 |
// ?C?x???g?N???A |
|
288 |
SubControlEvent(); |
|
289 |
|
|
290 |
// ?????R???{?{?b?N?X??X |
|
291 |
SetcmbDepartment(); |
|
292 |
|
|
293 |
// ?S????R???{?{?b?N?X??X |
|
294 |
SetcmbPersons(); |
|
295 |
|
|
296 |
// ?f?[?^?\?? |
|
297 |
DataDisplay(); |
|
298 |
} |
|
299 |
finally |
|
300 |
{ |
|
301 |
// ?C?x???g?Z?b?g |
|
302 |
SetControlEvent(); |
|
303 |
} |
|
304 |
} |
|
305 |
#endregion |
|
306 |
|
|
307 |
#region ?????R???{?{?b?N?X??X |
|
308 |
/// <summary> |
|
309 |
/// ?????R???{?{?b?N?X??X |
|
310 |
/// </summary> |
|
311 |
/// <param name="sender"></param> |
|
312 |
/// <param name="e"></param> |
|
313 |
private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e) |
|
314 |
{ |
|
315 |
// ?C?x???g?N???A |
|
316 |
SubControlEvent(); |
|
317 |
|
|
318 |
// ?S????R???{?{?b?N?X??X |
|
319 |
SetcmbPersons(); |
|
320 |
|
|
321 |
// ?f?[?^?\?? |
|
322 |
DataDisplay(); |
|
323 |
|
|
324 |
// ?C?x???g?Z?b?g |
|
325 |
SetControlEvent(); |
|
326 |
} |
|
327 |
#endregion |
|
328 |
|
|
329 |
#region ?S????R???{?{?b?N?X??X |
|
330 |
/// <summary> |
|
331 |
/// ?S?????X |
|
332 |
/// </summary> |
|
333 |
/// <param name="sender"></param> |
|
334 |
/// <param name="e"></param> |
|
335 |
private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e) |
|
336 |
{ |
|
337 |
try |
|
338 |
{ |
|
339 |
// ?C?x???g?N???A |
|
340 |
SubControlEvent(); |
|
341 |
|
|
342 |
// ?S????I?????????I???????? |
|
343 |
if (!SetPerosonToDepartment()) return; |
|
344 |
|
|
345 |
// ?f?[?^?\?? |
|
346 |
DataDisplay(); |
|
347 |
} |
|
348 |
finally |
|
349 |
{ |
|
350 |
// ?C?x???g?Z?b?g |
|
351 |
SetControlEvent(); |
|
352 |
} |
|
353 |
} |
|
354 |
#endregion |
|
355 |
|
|
356 |
#region ?c??E?H???S???????? |
|
357 |
/// <summary> |
|
358 |
/// ?c??E?H???S???????? |
|
359 |
/// </summary> |
|
360 |
/// <param name="sender"></param> |
|
361 |
/// <param name="e"></param> |
|
362 |
private void radioButton_CheckedChanged(object sender, EventArgs e) |
|
363 |
{ |
|
364 |
// ?C?x???g?N???A |
|
365 |
SubControlEvent(); |
|
366 |
|
|
367 |
// ?f?[?^?\?? |
|
368 |
DataDisplay(); |
|
369 |
|
|
370 |
// ?C?x???g?Z?b?g |
|
371 |
SetControlEvent(); |
|
372 |
} |
|
373 |
#endregion |
|
374 |
|
|
375 |
#region ?t?H?[???T?C?Y??X |
|
376 |
/// <summary> |
|
377 |
/// ?t?H?[???T?C?Y??X |
|
378 |
/// </summary> |
|
379 |
/// <param name="sender"></param> |
|
380 |
/// <param name="e"></param> |
|
381 |
private void FrmReqPayStatus_SizeChanged(object sender, EventArgs e) |
|
382 |
{ |
|
383 |
if (this.WindowState == FormWindowState.Minimized) |
|
384 |
{ |
|
385 |
// ????? |
|
386 |
} |
|
387 |
else if (this.WindowState == FormWindowState.Maximized) |
|
388 |
{ |
|
389 |
// ??? |
|
390 |
CellSizeChangesWhenChangingScreenSize(false); |
|
391 |
} |
|
392 |
else if (this.WindowState == FormWindowState.Normal) |
|
393 |
{ |
|
394 |
// ?W???? |
|
395 |
CellSizeChangesWhenChangingScreenSize(true); |
|
396 |
} |
|
397 |
} |
|
398 |
#endregion |
|
399 |
|
|
400 |
#region ?O???b?h?}?E?X?W?v???? |
|
401 |
/// <summary> |
|
402 |
/// ?O???b?h?}?E?X?W?v???? |
|
403 |
/// </summary> |
|
404 |
/// <param name="sender"></param> |
|
405 |
/// <param name="e"></param> |
|
406 |
private void dgvMaster_MouseUp(object sender, MouseEventArgs e) |
|
407 |
{ |
|
408 |
try |
|
409 |
{ |
|
410 |
DataGridViewEX dgv = (DataGridViewEX)sender; |
|
411 |
|
|
412 |
lblCellTotal.Text = string.Empty; |
|
413 |
|
|
414 |
double dTotal = 0; |
|
415 |
int DataCnt = 0; |
|
416 |
int NumericCnt = 0; |
|
417 |
foreach (DataGridViewCell c in dgv.SelectedCells) |
|
418 |
{ |
|
419 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
|
420 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
|
421 |
|
|
422 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
423 |
DataCnt++; |
|
424 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
|
425 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
|
426 |
} |
|
427 |
if (DataCnt <= 1 || dTotal == 0 || NumericCnt == 0) return; |
|
428 |
string strTotal = CommonMotions.cnvTruncate(dTotal).ToString("#,#"); |
|
429 |
if (dTotal - System.Math.Floor(dTotal) != 0) strTotal = dTotal.ToString("#,#.00"); |
|
430 |
|
|
431 |
string strwrkData = string.Format(CommonDefine.s_CalculateCellFormat, |
|
432 |
CommonMotions.cnvTruncate(dTotal / (double)NumericCnt).ToString("#,#"), |
|
433 |
DataCnt.ToString("#,#"), |
|
434 |
strTotal); |
|
435 |
lblCellTotal.Text = strwrkData; |
|
436 |
} |
|
437 |
catch (Exception ex) |
|
438 |
{ |
|
439 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
440 |
} |
|
441 |
} |
|
442 |
#endregion |
|
443 |
|
|
444 |
} |
|
445 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqApprovalStatus/FrmReqApprovalStatus.designer.cs | ||
---|---|---|
1 |
namespace ProcessManagement.Forms.DataEntry |
|
2 |
{ |
|
3 |
partial class FrmReqApprovalStatus |
|
4 |
{ |
|
5 |
/// <summary> |
|
6 |
/// 必要なデザイナ変数です。 |
|
7 |
/// </summary> |
|
8 |
private System.ComponentModel.IContainer components = null; |
|
9 |
|
|
10 |
/// <summary> |
|
11 |
/// 使用中のリソースをすべてクリーンアップします。 |
|
12 |
/// </summary> |
|
13 |
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param> |
|
14 |
protected override void Dispose(bool disposing) |
|
15 |
{ |
|
16 |
if (disposing && (components != null)) |
|
17 |
{ |
|
18 |
components.Dispose(); |
|
19 |
} |
|
20 |
base.Dispose(disposing); |
|
21 |
} |
|
22 |
|
|
23 |
#region Windows フォーム デザイナで生成されたコード |
|
24 |
|
|
25 |
/// <summary> |
|
26 |
/// デザイナ サポートに必要なメソッドです。このメソッドの内容を |
|
27 |
/// コード エディタで変更しないでください。 |
|
28 |
/// </summary> |
|
29 |
private void InitializeComponent() |
|
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 dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
40 |
this.btnEnd = new System.Windows.Forms.Button(); |
|
41 |
this.label1 = new System.Windows.Forms.Label(); |
|
42 |
this.btnDataUpDate = new System.Windows.Forms.Button(); |
|
43 |
this.lblCellTotal = new System.Windows.Forms.Label(); |
|
44 |
this.groupBox1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx(); |
|
45 |
this.label3 = new System.Windows.Forms.Label(); |
|
46 |
this.radioButton2 = new System.Windows.Forms.RadioButton(); |
|
47 |
this.radioButton1 = new System.Windows.Forms.RadioButton(); |
|
48 |
this.label4 = new System.Windows.Forms.Label(); |
|
49 |
this.numUDConstPro = new System.Windows.Forms.NumericUpDown(); |
|
50 |
this.label5 = new System.Windows.Forms.Label(); |
|
51 |
this.label7 = new System.Windows.Forms.Label(); |
|
52 |
this.cmbConstructionPerson = new System.Windows.Forms.ComboBox(); |
|
53 |
this.cmbDepartment = new System.Windows.Forms.ComboBox(); |
|
54 |
this.label2 = new System.Windows.Forms.Label(); |
|
55 |
this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX(); |
|
56 |
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
57 |
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
58 |
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
59 |
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
60 |
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
61 |
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
62 |
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
63 |
this.groupBox1.SuspendLayout(); |
|
64 |
((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit(); |
|
65 |
((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit(); |
|
66 |
this.SuspendLayout(); |
|
67 |
// |
|
68 |
// btnEnd |
|
69 |
// |
|
70 |
this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
71 |
this.btnEnd.BackColor = System.Drawing.Color.Blue; |
|
72 |
this.btnEnd.ForeColor = System.Drawing.Color.White; |
|
73 |
this.btnEnd.Location = new System.Drawing.Point(1150, 619); |
|
74 |
this.btnEnd.Name = "btnEnd"; |
|
75 |
this.btnEnd.Size = new System.Drawing.Size(120, 30); |
|
76 |
this.btnEnd.TabIndex = 8; |
|
77 |
this.btnEnd.Text = "終 了"; |
|
78 |
this.btnEnd.UseVisualStyleBackColor = false; |
|
79 |
this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click); |
|
80 |
// |
|
81 |
// label1 |
|
82 |
// |
|
83 |
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
84 |
this.label1.BackColor = System.Drawing.Color.White; |
|
85 |
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
86 |
this.label1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
87 |
this.label1.ForeColor = System.Drawing.Color.Black; |
|
88 |
this.label1.Location = new System.Drawing.Point(440, 10); |
|
89 |
this.label1.Name = "label1"; |
|
90 |
this.label1.Size = new System.Drawing.Size(400, 20); |
|
91 |
this.label1.TabIndex = 6; |
|
92 |
this.label1.Text = "請 求 承 認 状 況"; |
|
93 |
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
94 |
// |
|
95 |
// btnDataUpDate |
|
96 |
// |
|
97 |
this.btnDataUpDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
98 |
this.btnDataUpDate.BackColor = System.Drawing.Color.Aquamarine; |
|
99 |
this.btnDataUpDate.Font = new System.Drawing.Font("MS 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
100 |
this.btnDataUpDate.ForeColor = System.Drawing.Color.Black; |
|
101 |
this.btnDataUpDate.Location = new System.Drawing.Point(1150, 4); |
|
102 |
this.btnDataUpDate.Name = "btnDataUpDate"; |
|
103 |
this.btnDataUpDate.Size = new System.Drawing.Size(120, 30); |
|
104 |
this.btnDataUpDate.TabIndex = 7; |
|
105 |
this.btnDataUpDate.Text = "最新状態に更新"; |
|
106 |
this.btnDataUpDate.UseVisualStyleBackColor = false; |
|
107 |
this.btnDataUpDate.Click += new System.EventHandler(this.btnDataUpDate_Click); |
|
108 |
// |
|
109 |
// lblCellTotal |
|
110 |
// |
|
111 |
this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
112 |
this.lblCellTotal.AutoSize = true; |
|
113 |
this.lblCellTotal.BackColor = System.Drawing.Color.Black; |
|
114 |
this.lblCellTotal.Font = new System.Drawing.Font("MS 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
115 |
this.lblCellTotal.ForeColor = System.Drawing.Color.White; |
|
116 |
this.lblCellTotal.Location = new System.Drawing.Point(200, 628); |
|
117 |
this.lblCellTotal.Name = "lblCellTotal"; |
|
118 |
this.lblCellTotal.Size = new System.Drawing.Size(0, 13); |
|
119 |
this.lblCellTotal.TabIndex = 30; |
|
120 |
// |
|
121 |
// groupBox1 |
|
122 |
// |
|
123 |
this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
124 |
this.groupBox1.BackColor = System.Drawing.Color.Aquamarine; |
|
125 |
this.groupBox1.BorderColor = System.Drawing.Color.White; |
|
126 |
this.groupBox1.Controls.Add(this.label3); |
|
127 |
this.groupBox1.Controls.Add(this.radioButton2); |
|
128 |
this.groupBox1.Controls.Add(this.radioButton1); |
|
129 |
this.groupBox1.Controls.Add(this.label4); |
|
130 |
this.groupBox1.Controls.Add(this.numUDConstPro); |
|
131 |
this.groupBox1.Controls.Add(this.label5); |
|
132 |
this.groupBox1.Controls.Add(this.label7); |
|
133 |
this.groupBox1.Controls.Add(this.cmbConstructionPerson); |
|
134 |
this.groupBox1.Controls.Add(this.cmbDepartment); |
|
135 |
this.groupBox1.Controls.Add(this.label2); |
|
136 |
this.groupBox1.ForeColor = System.Drawing.Color.White; |
|
137 |
this.groupBox1.Location = new System.Drawing.Point(10, 40); |
|
138 |
this.groupBox1.Name = "groupBox1"; |
|
139 |
this.groupBox1.Size = new System.Drawing.Size(1260, 55); |
|
140 |
this.groupBox1.TabIndex = 0; |
|
141 |
this.groupBox1.TabStop = false; |
|
142 |
// |
|
143 |
// label3 |
|
144 |
// |
|
145 |
this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
146 |
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
147 |
this.label3.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
148 |
this.label3.ForeColor = System.Drawing.Color.Black; |
|
149 |
this.label3.Location = new System.Drawing.Point(747, 19); |
|
150 |
this.label3.Name = "label3"; |
|
151 |
this.label3.Size = new System.Drawing.Size(120, 25); |
|
152 |
this.label3.TabIndex = 4; |
|
153 |
this.label3.Text = "担 当 者"; |
|
154 |
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
155 |
// |
|
156 |
// radioButton2 |
|
157 |
// |
|
158 |
this.radioButton2.AutoSize = true; |
|
159 |
this.radioButton2.BackColor = System.Drawing.Color.Transparent; |
|
160 |
this.radioButton2.Checked = true; |
|
161 |
this.radioButton2.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
162 |
this.radioButton2.ForeColor = System.Drawing.Color.Black; |
|
163 |
this.radioButton2.Location = new System.Drawing.Point(662, 32); |
|
164 |
this.radioButton2.Name = "radioButton2"; |
|
165 |
this.radioButton2.Size = new System.Drawing.Size(77, 20); |
|
166 |
this.radioButton2.TabIndex = 44; |
|
167 |
this.radioButton2.TabStop = true; |
|
168 |
this.radioButton2.Text = "工 事"; |
|
169 |
this.radioButton2.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
|
170 |
this.radioButton2.UseVisualStyleBackColor = false; |
|
171 |
// |
|
172 |
// radioButton1 |
|
173 |
// |
|
174 |
this.radioButton1.AutoSize = true; |
|
175 |
this.radioButton1.BackColor = System.Drawing.Color.Transparent; |
|
176 |
this.radioButton1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
177 |
this.radioButton1.ForeColor = System.Drawing.Color.Black; |
|
178 |
this.radioButton1.Location = new System.Drawing.Point(662, 12); |
|
179 |
this.radioButton1.Name = "radioButton1"; |
|
180 |
this.radioButton1.Size = new System.Drawing.Size(77, 20); |
|
181 |
this.radioButton1.TabIndex = 43; |
|
182 |
this.radioButton1.Text = "営 業"; |
|
183 |
this.radioButton1.TextAlign = System.Drawing.ContentAlignment.TopCenter; |
|
184 |
this.radioButton1.UseVisualStyleBackColor = false; |
|
185 |
// |
|
186 |
// label4 |
|
187 |
// |
|
188 |
this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
189 |
this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
190 |
this.label4.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
191 |
this.label4.ForeColor = System.Drawing.Color.Black; |
|
192 |
this.label4.Location = new System.Drawing.Point(20, 19); |
|
193 |
this.label4.Name = "label4"; |
|
194 |
this.label4.Size = new System.Drawing.Size(120, 25); |
|
195 |
this.label4.TabIndex = 42; |
|
196 |
this.label4.Text = "営業期"; |
|
197 |
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
198 |
// |
|
199 |
// numUDConstPro |
|
200 |
// |
|
201 |
this.numUDConstPro.BackColor = System.Drawing.Color.White; |
|
202 |
this.numUDConstPro.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
203 |
this.numUDConstPro.ForeColor = System.Drawing.Color.Black; |
|
204 |
this.numUDConstPro.Location = new System.Drawing.Point(173, 20); |
|
205 |
this.numUDConstPro.Name = "numUDConstPro"; |
|
206 |
this.numUDConstPro.ReadOnly = true; |
|
207 |
this.numUDConstPro.Size = new System.Drawing.Size(80, 23); |
|
208 |
this.numUDConstPro.TabIndex = 0; |
|
209 |
this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
|
210 |
// |
|
211 |
// label5 |
|
212 |
// |
|
213 |
this.label5.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
214 |
this.label5.ForeColor = System.Drawing.Color.Black; |
|
215 |
this.label5.Location = new System.Drawing.Point(253, 23); |
|
216 |
this.label5.Name = "label5"; |
|
217 |
this.label5.Size = new System.Drawing.Size(25, 16); |
|
218 |
this.label5.TabIndex = 39; |
|
219 |
this.label5.Text = "期"; |
|
220 |
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
221 |
// |
|
222 |
// label7 |
|
223 |
// |
|
224 |
this.label7.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
225 |
this.label7.ForeColor = System.Drawing.Color.Black; |
|
226 |
this.label7.Location = new System.Drawing.Point(148, 23); |
|
227 |
this.label7.Name = "label7"; |
|
228 |
this.label7.Size = new System.Drawing.Size(25, 16); |
|
229 |
this.label7.TabIndex = 40; |
|
230 |
this.label7.Text = "第"; |
|
231 |
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
232 |
// |
|
233 |
// cmbConstructionPerson |
|
234 |
// |
|
235 |
this.cmbConstructionPerson.BackColor = System.Drawing.Color.White; |
|
236 |
this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|
237 |
this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
|
238 |
this.cmbConstructionPerson.FormattingEnabled = true; |
|
239 |
this.cmbConstructionPerson.Location = new System.Drawing.Point(875, 20); |
|
240 |
this.cmbConstructionPerson.Name = "cmbConstructionPerson"; |
|
241 |
this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 23); |
|
242 |
this.cmbConstructionPerson.TabIndex = 2; |
|
243 |
// |
|
244 |
// cmbDepartment |
|
245 |
// |
|
246 |
this.cmbDepartment.BackColor = System.Drawing.Color.White; |
|
247 |
this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|
248 |
this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
|
249 |
this.cmbDepartment.FormattingEnabled = true; |
|
250 |
this.cmbDepartment.Location = new System.Drawing.Point(422, 20); |
|
251 |
this.cmbDepartment.Name = "cmbDepartment"; |
|
252 |
this.cmbDepartment.Size = new System.Drawing.Size(200, 23); |
|
253 |
this.cmbDepartment.TabIndex = 1; |
|
254 |
// |
|
255 |
// label2 |
|
256 |
// |
|
257 |
this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
258 |
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
259 |
this.label2.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
260 |
this.label2.ForeColor = System.Drawing.Color.Black; |
|
261 |
this.label2.Location = new System.Drawing.Point(294, 19); |
|
262 |
this.label2.Name = "label2"; |
|
263 |
this.label2.Size = new System.Drawing.Size(120, 25); |
|
264 |
this.label2.TabIndex = 4; |
|
265 |
this.label2.Text = "部 署"; |
|
266 |
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
267 |
// |
|
268 |
// dgvMaster |
|
269 |
// |
|
270 |
this.dgvMaster.AllowUserToAddRows = false; |
|
271 |
this.dgvMaster.AllowUserToDeleteRows = false; |
|
272 |
this.dgvMaster.AllowUserToResizeColumns = false; |
|
273 |
this.dgvMaster.AllowUserToResizeRows = false; |
|
274 |
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
275 |
this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|
276 |
this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
277 |
| System.Windows.Forms.AnchorStyles.Left) |
|
278 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
279 |
this.dgvMaster.BackgroundColor = System.Drawing.Color.White; |
|
280 |
this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
281 |
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
282 |
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; |
|
283 |
dataGridViewCellStyle2.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
284 |
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; |
|
285 |
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
286 |
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
287 |
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|
288 |
this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|
289 |
this.dgvMaster.ColumnHeadersHeight = 24; |
|
290 |
this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|
291 |
this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|
292 |
this.Column1, |
|
293 |
this.Column4, |
|
294 |
this.Column7, |
|
295 |
this.Column3, |
|
296 |
this.Column9, |
|
297 |
this.Column8, |
|
298 |
this.Column5}); |
|
299 |
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|
300 |
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window; |
|
301 |
dataGridViewCellStyle9.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
302 |
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText; |
|
303 |
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.LightSeaGreen; |
|
304 |
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
305 |
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|
306 |
this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle9; |
|
307 |
this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; |
|
308 |
this.dgvMaster.EnableHeadersVisualStyles = false; |
|
309 |
this.dgvMaster.Location = new System.Drawing.Point(10, 103); |
|
310 |
this.dgvMaster.Name = "dgvMaster"; |
|
311 |
this.dgvMaster.RowHeadersVisible = false; |
|
312 |
this.dgvMaster.RowHeadersWidth = 20; |
|
313 |
this.dgvMaster.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; |
|
314 |
this.dgvMaster.RowTemplate.Height = 24; |
|
315 |
this.dgvMaster.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; |
|
316 |
this.dgvMaster.Size = new System.Drawing.Size(1260, 506); |
|
317 |
this.dgvMaster.TabIndex = 5; |
|
318 |
this.dgvMaster.SelectionChanged += new System.EventHandler(this.dgvMaster_SelectionChanged); |
|
319 |
this.dgvMaster.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMaster_MouseUp); |
|
320 |
// |
|
321 |
// Column1 |
|
322 |
// |
|
323 |
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
324 |
this.Column1.DefaultCellStyle = dataGridViewCellStyle3; |
|
325 |
this.Column1.Frozen = true; |
|
326 |
this.Column1.HeaderText = "№"; |
|
327 |
this.Column1.Name = "Column1"; |
|
328 |
this.Column1.ReadOnly = true; |
|
329 |
this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
330 |
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
331 |
this.Column1.Width = 50; |
|
332 |
// |
|
333 |
// Column4 |
|
334 |
// |
|
335 |
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|
336 |
this.Column4.DefaultCellStyle = dataGridViewCellStyle4; |
|
337 |
this.Column4.Frozen = true; |
|
338 |
this.Column4.HeaderText = "工事担当者"; |
|
339 |
this.Column4.Name = "Column4"; |
|
340 |
this.Column4.ReadOnly = true; |
|
341 |
this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
342 |
this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
343 |
this.Column4.Width = 140; |
|
344 |
// |
|
345 |
// Column7 |
|
346 |
// |
|
347 |
this.Column7.Frozen = true; |
|
348 |
this.Column7.HeaderText = "工 事 名 称"; |
|
349 |
this.Column7.Name = "Column7"; |
|
350 |
this.Column7.ReadOnly = true; |
|
351 |
this.Column7.Width = 550; |
|
352 |
// |
|
353 |
// Column3 |
|
354 |
// |
|
355 |
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
356 |
dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
357 |
this.Column3.DefaultCellStyle = dataGridViewCellStyle5; |
|
358 |
this.Column3.HeaderText = "受注金額"; |
|
359 |
this.Column3.Name = "Column3"; |
|
360 |
this.Column3.ReadOnly = true; |
|
361 |
this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
362 |
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
363 |
this.Column3.Width = 150; |
|
364 |
// |
|
365 |
// Column9 |
|
366 |
// |
|
367 |
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
368 |
dataGridViewCellStyle6.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
369 |
this.Column9.DefaultCellStyle = dataGridViewCellStyle6; |
|
370 |
this.Column9.HeaderText = "請求金額"; |
|
371 |
this.Column9.Name = "Column9"; |
|
372 |
this.Column9.ReadOnly = true; |
|
373 |
this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
374 |
this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
375 |
this.Column9.Width = 150; |
|
376 |
// |
|
377 |
// Column8 |
|
378 |
// |
|
379 |
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
380 |
dataGridViewCellStyle7.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
381 |
this.Column8.DefaultCellStyle = dataGridViewCellStyle7; |
|
382 |
this.Column8.HeaderText = "未請求金額"; |
|
383 |
this.Column8.Name = "Column8"; |
|
384 |
this.Column8.ReadOnly = true; |
|
385 |
this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
386 |
this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
387 |
this.Column8.Width = 150; |
|
388 |
// |
|
389 |
// Column5 |
|
390 |
// |
|
391 |
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
392 |
dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
393 |
this.Column5.DefaultCellStyle = dataGridViewCellStyle8; |
|
394 |
this.Column5.HeaderText = "申請"; |
|
395 |
this.Column5.Name = "Column5"; |
|
396 |
this.Column5.ReadOnly = true; |
|
397 |
this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
398 |
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
399 |
this.Column5.Width = 50; |
|
400 |
// |
|
401 |
// FrmReqApprovalStatus |
|
402 |
// |
|
403 |
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
|
404 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
|
405 |
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
|
406 |
this.BackColor = System.Drawing.Color.Black; |
|
407 |
this.ClientSize = new System.Drawing.Size(1280, 657); |
|
408 |
this.Controls.Add(this.lblCellTotal); |
|
409 |
this.Controls.Add(this.groupBox1); |
|
410 |
this.Controls.Add(this.label1); |
|
411 |
this.Controls.Add(this.btnDataUpDate); |
|
412 |
this.Controls.Add(this.btnEnd); |
|
413 |
this.Controls.Add(this.dgvMaster); |
|
414 |
this.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
415 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
|
416 |
this.KeyPreview = true; |
|
417 |
this.MinimizeBox = false; |
|
418 |
this.Name = "FrmReqApprovalStatus"; |
|
419 |
this.ShowIcon = false; |
|
420 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
421 |
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmReqPayStatus_FormClosing); |
|
422 |
this.Load += new System.EventHandler(this.FrmConstructionBaseInfoList_Load); |
|
423 |
this.SizeChanged += new System.EventHandler(this.FrmReqPayStatus_SizeChanged); |
|
424 |
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionBaseInfoList_KeyDown); |
|
425 |
this.groupBox1.ResumeLayout(false); |
|
426 |
this.groupBox1.PerformLayout(); |
|
427 |
((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).EndInit(); |
|
428 |
((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).EndInit(); |
|
429 |
this.ResumeLayout(false); |
|
430 |
this.PerformLayout(); |
|
431 |
|
|
432 |
} |
|
433 |
|
|
434 |
#endregion |
|
435 |
|
|
436 |
private System.Windows.Forms.Button btnEnd; |
|
437 |
private System.Windows.Forms.Label label1; |
|
438 |
private ProcessManagement.Forms.CustomControls.GroupBoxEx groupBox1; |
|
439 |
private System.Windows.Forms.Label label2; |
|
440 |
private System.Windows.Forms.ComboBox cmbDepartment; |
|
441 |
private ProcessManagement.Forms.CustomControls.DataGridViewEX dgvMaster; |
|
442 |
private System.Windows.Forms.ComboBox cmbConstructionPerson; |
|
443 |
private System.Windows.Forms.Label label3; |
|
444 |
private System.Windows.Forms.Button btnDataUpDate; |
|
445 |
private System.Windows.Forms.Label label4; |
|
446 |
private System.Windows.Forms.NumericUpDown numUDConstPro; |
|
447 |
private System.Windows.Forms.Label label5; |
|
448 |
private System.Windows.Forms.Label label7; |
|
449 |
private System.Windows.Forms.RadioButton radioButton2; |
|
450 |
private System.Windows.Forms.RadioButton radioButton1; |
|
451 |
private System.Windows.Forms.Label lblCellTotal; |
|
452 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|
453 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|
454 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column7; |
|
455 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|
456 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column9; |
|
457 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column8; |
|
458 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|
459 |
} |
|
460 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqApprovalStatus/FrmReqApprovalStatus.resx | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<root> |
|
3 |
<!-- |
|
4 |
Microsoft ResX Schema |
|
5 |
|
|
6 |
Version 2.0 |
|
7 |
|
|
8 |
The primary goals of this format is to allow a simple XML format |
|
9 |
that is mostly human readable. The generation and parsing of the |
|
10 |
various data types are done through the TypeConverter classes |
|
11 |
associated with the data types. |
|
12 |
|
|
13 |
Example: |
|
14 |
|
|
15 |
... ado.net/XML headers & schema ... |
|
16 |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|
17 |
<resheader name="version">2.0</resheader> |
|
18 |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|
19 |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|
20 |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|
21 |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|
22 |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|
23 |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|
24 |
</data> |
|
25 |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
26 |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|
27 |
<comment>This is a comment</comment> |
|
28 |
</data> |
|
29 |
|
|
30 |
There are any number of "resheader" rows that contain simple |
|
31 |
name/value pairs. |
|
32 |
|
|
33 |
Each data row contains a name, and value. The row also contains a |
|
34 |
type or mimetype. Type corresponds to a .NET class that support |
|
35 |
text/value conversion through the TypeConverter architecture. |
|
36 |
Classes that don't support this are serialized and stored with the |
|
37 |
mimetype set. |
|
38 |
|
|
39 |
The mimetype is used for serialized objects, and tells the |
|
40 |
ResXResourceReader how to depersist the object. This is currently not |
|
41 |
extensible. For a given mimetype the value must be set accordingly: |
|
42 |
|
|
43 |
Note - application/x-microsoft.net.object.binary.base64 is the format |
|
44 |
that the ResXResourceWriter will generate, however the reader can |
|
45 |
read any of the formats listed below. |
|
46 |
|
|
47 |
mimetype: application/x-microsoft.net.object.binary.base64 |
|
48 |
value : The object must be serialized with |
|
49 |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|
50 |
: and then encoded with base64 encoding. |
|
51 |
|
|
52 |
mimetype: application/x-microsoft.net.object.soap.base64 |
|
53 |
value : The object must be serialized with |
|
54 |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|
55 |
: and then encoded with base64 encoding. |
|
56 |
|
|
57 |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|
58 |
value : The object must be serialized into a byte array |
|
59 |
: using a System.ComponentModel.TypeConverter |
|
60 |
: and then encoded with base64 encoding. |
|
61 |
--> |
|
62 |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|
63 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|
64 |
<xsd:element name="root" msdata:IsDataSet="true"> |
|
65 |
<xsd:complexType> |
|
66 |
<xsd:choice maxOccurs="unbounded"> |
|
67 |
<xsd:element name="metadata"> |
|
68 |
<xsd:complexType> |
|
69 |
<xsd:sequence> |
|
70 |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|
71 |
</xsd:sequence> |
|
72 |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|
73 |
<xsd:attribute name="type" type="xsd:string" /> |
|
74 |
<xsd:attribute name="mimetype" type="xsd:string" /> |
|
75 |
<xsd:attribute ref="xml:space" /> |
|
76 |
</xsd:complexType> |
|
77 |
</xsd:element> |
|
78 |
<xsd:element name="assembly"> |
|
79 |
<xsd:complexType> |
|
80 |
<xsd:attribute name="alias" type="xsd:string" /> |
|
81 |
<xsd:attribute name="name" type="xsd:string" /> |
|
82 |
</xsd:complexType> |
|
83 |
</xsd:element> |
|
84 |
<xsd:element name="data"> |
|
85 |
<xsd:complexType> |
|
86 |
<xsd:sequence> |
|
87 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
88 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|
89 |
</xsd:sequence> |
|
90 |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|
91 |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|
92 |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|
93 |
<xsd:attribute ref="xml:space" /> |
|
94 |
</xsd:complexType> |
|
95 |
</xsd:element> |
|
96 |
<xsd:element name="resheader"> |
|
97 |
<xsd:complexType> |
|
98 |
<xsd:sequence> |
|
99 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
100 |
</xsd:sequence> |
|
101 |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|
102 |
</xsd:complexType> |
|
103 |
</xsd:element> |
|
104 |
</xsd:choice> |
|
105 |
</xsd:complexType> |
|
106 |
</xsd:element> |
|
107 |
</xsd:schema> |
|
108 |
<resheader name="resmimetype"> |
|
109 |
<value>text/microsoft-resx</value> |
|
110 |
</resheader> |
|
111 |
<resheader name="version"> |
|
112 |
<value>2.0</value> |
|
113 |
</resheader> |
|
114 |
<resheader name="reader"> |
|
115 |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
116 |
</resheader> |
|
117 |
<resheader name="writer"> |
|
118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
119 |
</resheader> |
|
120 |
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
121 |
<value>True</value> |
|
122 |
</metadata> |
|
123 |
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
124 |
<value>True</value> |
|
125 |
</metadata> |
|
126 |
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
127 |
<value>True</value> |
|
128 |
</metadata> |
|
129 |
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
130 |
<value>True</value> |
|
131 |
</metadata> |
|
132 |
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
133 |
<value>True</value> |
|
134 |
</metadata> |
|
135 |
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
136 |
<value>True</value> |
|
137 |
</metadata> |
|
138 |
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
139 |
<value>True</value> |
|
140 |
</metadata> |
|
141 |
</root> |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqApprovalStatus/FrmReqApprovalStatusAuxiliary.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.ComponentModel; |
|
4 |
using System.Data; |
|
5 |
using System.Drawing; |
|
6 |
using System.Linq; |
|
7 |
using System.Text; |
|
8 |
using System.Windows.Forms; |
|
9 |
using System.Collections; |
|
10 |
using System.Diagnostics; |
|
11 |
using System.Threading; |
|
12 |
|
|
13 |
using log4net; |
|
14 |
using log4net.Appender; |
|
15 |
using log4net.Repository.Hierarchy; |
|
16 |
|
|
17 |
using ProcessManagement.Common; |
|
18 |
using ProcessManagement.DB.IOAccess; |
|
19 |
using ProcessManagement.DataModel; |
|
20 |
using ProcessManagement.DB.Core; |
|
21 |
using ProcessManagement.Forms.CustomControls; |
|
22 |
using ProcessManagement.Forms.ControlsAction; |
|
23 |
|
|
24 |
namespace ProcessManagement.Forms.DataEntry |
|
25 |
{ |
|
26 |
partial class FrmReqApprovalStatus |
|
27 |
{ |
|
28 |
#region ?? |
|
29 |
#region ??SQL |
|
30 |
#endregion |
|
31 |
|
|
32 |
#endregion |
|
33 |
|
|
34 |
#region ??? |
|
35 |
#endregion |
|
36 |
|
|
37 |
#region ?v???p?e?B |
|
38 |
#endregion |
|
39 |
|
|
40 |
#region ?R???g???[???C?x???g??????? |
|
41 |
/// <summary> |
|
42 |
/// ?R???g???[???C?x???g??????? |
|
43 |
/// </summary> |
|
44 |
/// <param name="EventCon"></param> |
|
45 |
private void SetControlEvent() |
|
46 |
{ |
|
47 |
try |
|
48 |
{ |
|
49 |
numUDConstPro.ValueChanged += new EventHandler(numUDConstPro_ValueChanged); |
|
50 |
cmbDepartment.SelectedIndexChanged += new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
51 |
radioButton1.CheckedChanged += new EventHandler(radioButton_CheckedChanged); |
|
52 |
cmbConstructionPerson.SelectedIndexChanged += new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
53 |
} |
|
54 |
catch (Exception ex) |
|
55 |
{ |
|
56 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
57 |
} |
|
58 |
} |
|
59 |
#endregion |
|
60 |
|
|
61 |
#region ?R???g???[???C?x???g?????? |
|
62 |
/// <summary> |
|
63 |
/// ?R???g???[???C?x???g?????? |
|
64 |
/// </summary> |
|
65 |
/// <param name="EventCon"></param> |
|
66 |
private void SubControlEvent() |
|
67 |
{ |
|
68 |
try |
|
69 |
{ |
|
70 |
numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged); |
|
71 |
cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged); |
|
72 |
radioButton1.CheckedChanged -= new EventHandler(radioButton_CheckedChanged); |
|
73 |
cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged); |
|
74 |
} |
|
75 |
catch (Exception ex) |
|
76 |
{ |
|
77 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
78 |
} |
|
79 |
} |
|
80 |
#endregion |
|
81 |
|
|
82 |
#region ???v???Z?X?N?? |
|
83 |
/// <summary> |
|
84 |
/// ?????N??????v???Z?X?I?????? |
|
85 |
/// </summary> |
|
86 |
/// <param name="para_ConstructionCode"></param> |
|
87 |
private void SubProcessExecute(int InvoiceNo = 0) |
|
88 |
{ |
|
89 |
IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo(); |
|
90 |
try |
|
91 |
{ |
|
92 |
if (InvoiceNo == 0) return; |
|
93 |
|
|
94 |
DataGridViewEX dgv = dgvMaster; |
|
95 |
|
|
96 |
int NowPoint = ClsExcute.GetNowProcessPoint(); |
|
97 |
// ??????l?N???A |
|
98 |
ClsExcute.ClearSaveParameter(NowPoint); |
|
99 |
// ----- ??????? |
|
100 |
// ?????N |
|
101 |
ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Add(numUDConstPro.Value.ToString()); |
|
102 |
// ?S????I??????? |
|
103 |
if (radioButton2.Checked) ClsExcute.ProcControlPara[NowPoint].BoolSaveParameter.Add(true); |
|
104 |
// ???????? |
|
105 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(CommonMotions.cnvInt(cmbDepartment.SelectedValue)); |
|
106 |
// ?????S???? |
|
107 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue)); |
|
108 |
|
|
109 |
// ?\?????s |
|
110 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(dgv.FirstDisplayedScrollingRowIndex); |
|
111 |
|
|
112 |
// ????I???s |
|
113 |
int CurrentIndex = dgv.CurrentRow.Index; |
|
114 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(CurrentIndex); |
|
115 |
|
|
116 |
// ?\?[?g??? |
|
117 |
if (dgv.SortedColumn != null) |
|
118 |
{ |
|
119 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgv.SortedColumn.Index); |
|
120 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgv.SortOrder); |
|
121 |
} |
|
122 |
|
|
123 |
// ???N???v???Z?X?Z?b?g |
|
124 |
NowPoint = ClsExcute.NextProcess(m_ExecuteFlg); |
|
125 |
// ?I???H??????Z?b?g |
|
126 |
ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(InvoiceNo); |
|
127 |
// ????t???O |
|
128 |
ClsExcute.ProcControlPara[NowPoint].BoolExecParameter.Add(true); |
|
129 |
|
|
130 |
} |
|
131 |
catch (Exception ex) |
|
132 |
{ |
|
133 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
134 |
} |
|
135 |
finally |
|
136 |
{ |
|
137 |
cbiDB.close(); cbiDB = null; |
|
138 |
// ?N???[?Y??????OFF?????B |
|
139 |
m_CloseingProcessOff = true; |
|
140 |
// ???N???[?Y |
|
141 |
this.Close(); |
|
142 |
} |
|
143 |
} |
|
144 |
#endregion |
|
145 |
|
|
146 |
#region ????SQL??Z?L?????e?B?????????????? |
|
147 |
/// <summary> |
|
148 |
/// ????SQL??Z?L?????e?B?????????????? |
|
149 |
/// </summary> |
|
150 |
/// <param name="strSQL"></param> |
|
151 |
private void CreateSecuritySQL(ref StringBuilder strSQL) |
|
152 |
{ |
|
153 |
try |
|
154 |
{ |
|
155 |
// ?L?[?l?? |
|
156 |
int AllPath = (int)CommonDefine.SecurityRangePos.AllPath; // ?S???? |
|
157 |
int Multiple = (int)CommonDefine.SecurityRangePos.Multiple; // ???????? |
|
158 |
int Only = (int)CommonDefine.SecurityRangePos.Only; // ????????? |
|
159 |
int None = (int)CommonDefine.SecurityRangePos.None; // ???S?????? |
|
160 |
|
|
161 |
int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?????o")).Key; |
|
162 |
int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("???????p")).Key; |
|
163 |
|
|
164 |
// ?f?[?^?A?N?Z?X????????????????? |
|
165 |
if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode |
|
166 |
|| CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[AllPath].Key) |
|
167 |
{ |
|
168 |
// ???????i????SQL???j |
|
169 |
} |
|
170 |
else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[Multiple].Key |
|
171 |
|| CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[Only].Key) |
|
172 |
{ |
|
173 |
// ???????L |
|
174 |
// ?@???????i?????????j |
|
175 |
|
|
176 |
strSQL.Append(" And ("); |
|
177 |
|
|
178 |
strSQL.AppendFormat("(B.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode); |
|
179 |
strSQL.Append(" Or B.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1"); |
|
180 |
strSQL.AppendFormat(" WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode); |
|
181 |
|
|
182 |
strSQL.AppendFormat(" Or (B.ConstructionStatusFlg >= {0}", iStatus); |
|
183 |
|
|
184 |
strSQL.Append(" And ("); |
|
185 |
strSQL.AppendFormat("(B.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode); |
|
186 |
strSQL.Append(" Or B.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2"); |
|
187 |
strSQL.AppendFormat(" WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode); |
|
188 |
|
|
189 |
strSQL.AppendFormat(" Or (B.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode); |
|
190 |
strSQL.Append(" Or B.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3"); |
|
191 |
strSQL.AppendFormat(" WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode); |
|
192 |
|
|
193 |
strSQL.AppendFormat(" Or (B.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode); |
|
194 |
strSQL.Append(" Or B.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4"); |
|
195 |
strSQL.AppendFormat(" WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode); |
|
196 |
strSQL.Append("))"); |
|
197 |
|
|
198 |
strSQL.AppendFormat(" Or (B.ConstructionStatusFlg >= {0} And B.ConstructionPersonCode = 0)", iStatus); // ????????????o???H???S??????????????????\?? |
|
199 |
strSQL.AppendFormat(" Or (B.ConstructionStatusFlg = {0}", iStatus2); // ???????p??????p??????????????? |
|
200 |
strSQL.AppendFormat(" And B.TransferConstruction = {0}))", CommonMotions.LoginUserData.DepartmentCode); |
|
201 |
} |
|
202 |
else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[None].Key) |
|
203 |
{ |
|
204 |
// ???g?p?? |
|
205 |
strSQL.AppendFormat(" And (B.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode); |
|
206 |
|
|
207 |
strSQL.AppendFormat(" Or (B.ConstructionStatusFlg > {0}", iStatus); |
|
208 |
|
|
209 |
strSQL.AppendFormat(" And (B.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode); |
|
210 |
|
|
211 |
strSQL.AppendFormat(" Or B.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode); |
|
212 |
|
|
213 |
strSQL.AppendFormat(" Or B.ConstructionInstructor = {0})))", CommonMotions.LoginUserData.PersonCode); |
|
214 |
} |
|
215 |
} |
|
216 |
catch (Exception ex) |
|
217 |
{ |
|
218 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", ex.Message, strSQL); |
|
219 |
} |
|
220 |
} |
|
221 |
#endregion |
|
222 |
|
|
223 |
#region ?S??????I??????????? |
|
224 |
/// <summary> |
|
225 |
/// ?S??????I??????????? |
|
226 |
/// </summary> |
|
227 |
/// <returns></returns> |
|
228 |
private string GetPersonString() |
|
229 |
{ |
|
230 |
try |
|
231 |
{ |
|
232 |
StringBuilder strRet = new StringBuilder(); |
|
233 |
|
|
234 |
// ?c??S??????I??????????? |
|
235 |
int PersonCode = GetConstructionPersonCode(); |
|
236 |
if (PersonCode == 0) return strRet.ToString(); |
|
237 |
|
|
238 |
if (radioButton1.Visible) |
|
239 |
{ |
|
240 |
if (radioButton1.Checked) |
|
241 |
strRet.AppendFormat(" AND B.SalesPersonCode = {0}", PersonCode); |
|
242 |
else |
|
243 |
strRet.AppendFormat(" AND (B.ConstructionPersonCode = {0} OR B.ConstrSubPersonCode = {0} OR B.ConstructionInstructor = {0})", PersonCode); |
|
244 |
} |
|
245 |
return strRet.ToString(); |
|
246 |
} |
|
247 |
catch (Exception ex) |
|
248 |
{ |
|
249 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
250 |
return string.Empty; |
|
251 |
} |
|
252 |
} |
|
253 |
#endregion |
|
254 |
|
|
255 |
#region ???????I??????????? |
|
256 |
/// <summary> |
|
257 |
/// ???????I???????????. |
|
258 |
/// </summary> |
|
259 |
/// <returns></returns> |
|
260 |
private string GetDepartmentString() |
|
261 |
{ |
|
262 |
try |
|
263 |
{ |
|
264 |
StringBuilder strRet = new StringBuilder(); |
|
265 |
|
|
266 |
int DepartmentCode = GetDepartmentCode(); |
|
267 |
if (DepartmentCode == 0) return strRet.ToString(); |
|
268 |
string DepartmentName = cmbDepartment.Text; |
|
269 |
|
|
270 |
// ?c??S??????I??????????? |
|
271 |
int PersonCode = GetConstructionPersonCode(); |
|
272 |
bool bSelPerson = false; |
|
273 |
if (PersonCode != 0) bSelPerson = true; |
|
274 |
|
|
275 |
if (bSelPerson && cmbDepartment.Visible) |
|
276 |
{ |
|
277 |
if (radioButton1.Checked) |
|
278 |
{ |
|
279 |
// ?c???I?? |
|
280 |
strRet.AppendFormat(" AND (D.DEPARTMENTCODE = {0} And D.DEPARTMENTNAME = '{1}')", DepartmentCode, DepartmentName); |
|
281 |
} |
|
282 |
else |
|
283 |
{ |
|
284 |
// ?H????I?? |
|
285 |
strRet.AppendFormat(" AND (E.DEPARTMENTCODE = {0} And E.DEPARTMENTNAME = '{1}')", DepartmentCode, DepartmentName); |
|
286 |
} |
|
287 |
} |
|
288 |
else |
|
289 |
{ |
|
290 |
strRet.AppendFormat(" AND ((D.DEPARTMENTCODE = {0} And D.DEPARTMENTNAME = '{1}')", DepartmentCode, DepartmentName); |
|
291 |
strRet.AppendFormat(" OR (E.DEPARTMENTCODE = {0} And E.DEPARTMENTNAME = '{1}'))", DepartmentCode, DepartmentName); |
|
292 |
} |
|
293 |
|
|
294 |
return strRet.ToString(); |
|
295 |
} |
|
296 |
catch (Exception ex) |
|
297 |
{ |
|
298 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
299 |
return string.Empty; |
|
300 |
} |
|
301 |
} |
|
302 |
#endregion |
|
303 |
|
|
304 |
#region ?????` |
|
305 |
/// <summary> |
|
306 |
/// ?????` |
|
307 |
/// </summary> |
|
308 |
private enum GetData |
|
309 |
{ |
|
310 |
CONSTRUCTIONCODE, |
|
311 |
DEPARTMENTCODE, |
|
312 |
DEPARTMENTNAME, |
|
313 |
PERSONCODE, |
|
314 |
PERSONNAME, |
|
315 |
CONSTRUCTIONNAME, |
|
316 |
TOTALAMOUNT, |
|
317 |
REQUESTAMOUNT, |
|
318 |
UNPAIDAMOUNT, |
|
319 |
REQUESTCNT, |
|
320 |
MAINCONSTRUCTIONCODE, |
|
321 |
} |
|
322 |
#endregion |
|
323 |
|
|
324 |
#region ?f?[?^??SQL?? |
|
325 |
/// <summary> |
|
326 |
/// ?\???p?f?[?^??SQL?? |
|
327 |
/// </summary> |
|
328 |
private void CreateInitSQL(ref StringBuilder strSQL) |
|
329 |
{ |
|
330 |
string strSubSQL = ""; |
|
331 |
try |
|
332 |
{ |
|
333 |
//int nStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("????????")).Key; |
|
334 |
int nNotStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?? ?? ??")).Key; |
|
335 |
// ?????????F??????????? |
|
336 |
int ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("???????F")).Key; |
|
337 |
|
|
338 |
// ?Z?L?????e?B??????? |
|
339 |
StringBuilder wrkBuff = new StringBuilder(); |
|
340 |
CreateSecuritySQL(ref wrkBuff); |
|
341 |
|
|
342 |
strSQL.Append("select"); |
|
343 |
strSQL.Append(" B.ConstructionCode"); |
|
344 |
strSQL.Append(", E.DepartmentCode"); |
|
345 |
strSQL.Append(", E.DEPARTMENTNAME"); |
|
346 |
strSQL.Append(", E.PersonCode"); |
|
347 |
strSQL.Append(", E.PersonName"); |
|
348 |
strSQL.Append(", J.DetailString"); |
|
349 |
strSQL.Append(", B.OrdersDecisionPrice"); |
|
350 |
strSQL.Append(", A.REQUESTAMOUNT"); |
|
351 |
strSQL.Append(", (B.OrdersDecisionPrice - A.REQUESTAMOUNT)"); |
|
352 |
strSQL.Append(", A.REQUESTCNT"); |
|
353 |
strSQL.Append(", A.MAINCONSTRUCTIONCODE"); |
他の形式にエクスポート: Unified diff