リビジョン 211
請求まとめ(手間・業者)画面サイズ変更、個人承認ボタン追加(承認申請ロジック実装途中)
請求状況日付入力追加
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
86 | 86 |
BillingEntrylList = 39, // 39:請求選択一覧 |
87 | 87 |
PurchaseStatusInput = 40, // 40:注文書状況入力 |
88 | 88 |
ReqBillingStatus = 41, // 41:請求書発給一覧 |
89 |
ReqBillingStatInput = 42, // 42:請求書状況入力 |
|
89 | 90 |
} |
90 | 91 |
#endregion |
91 | 92 |
|
... | ... | |
192 | 193 |
{ (int)ProcessExecuteNo.BillingEntrylList, "請求データ一覧-表示"}, |
193 | 194 |
{ (int)ProcessExecuteNo.PurchaseStatusInput, "注文書状況-入力"}, |
194 | 195 |
{ (int)ProcessExecuteNo.ReqBillingStatus, "請求書発給一覧-表示"}, |
196 |
{ (int)ProcessExecuteNo.ReqBillingStatInput, "請求書状況-入力"}, |
|
195 | 197 |
}; |
196 | 198 |
|
197 | 199 |
#endregion |
... | ... | |
336 | 338 |
// }; |
337 | 339 |
#endregion |
338 | 340 |
public static Dictionary<int, string> AppovalList = new Dictionary<int, string>() { |
339 |
{1, "積算見積書承認"}, |
|
340 |
{2, "積算予算書承認"}, |
|
341 |
{3, "工事予算書承認"}, |
|
342 |
{4, "注文書承認"}, |
|
343 |
{5, "請求書承認"},
|
|
344 |
{6, "工事日報承認"}, |
|
345 |
{7, "議事録承認"}, |
|
346 |
{8, "出勤管理承認"}, |
|
347 |
{9, "発注者登録承認"}, |
|
341 |
{1, "積算見積書承認"},
|
|
342 |
{2, "積算予算書承認"},
|
|
343 |
{3, "工事予算書承認"},
|
|
344 |
{4, "注文書承認"},
|
|
345 |
{5, "請求承認"},
|
|
346 |
{6, "工事日報承認"},
|
|
347 |
{7, "議事録承認"},
|
|
348 |
{8, "出勤管理承認"},
|
|
349 |
{9, "発注者登録承認"},
|
|
348 | 350 |
{10, "協力会社登録承認"}, |
349 | 351 |
{11, "手間支払確認承認"}, |
350 | 352 |
{12, "業社支払確認承認"}, |
... | ... | |
642 | 644 |
ProcessExecuteNo_PurchaseStatusInput(m_ProcControlPara[NowPoint]); |
643 | 645 |
break; |
644 | 646 |
|
645 |
case (int)ProcessExecuteNo.ReqBillingStatus: // 41:請求書状況入力 |
|
647 |
case (int)ProcessExecuteNo.ReqBillingStatus: // 41:請求書状況入力
|
|
646 | 648 |
ProcessExecuteNo_ReqBillingStatus(m_ProcControlPara[NowPoint]); |
647 | 649 |
break; |
648 | 650 |
|
651 |
case (int)ProcessExecuteNo.ReqBillingStatInput: // 42:請求書状況入力 |
|
652 |
ProcessExecuteNo_ReqBillingStatInput(m_ProcControlPara[NowPoint]); |
|
653 |
break; |
|
654 |
|
|
649 | 655 |
#endregion |
650 | 656 |
|
651 | 657 |
#region マスタメンテ |
... | ... | |
2491 | 2497 |
} |
2492 | 2498 |
#endregion |
2493 | 2499 |
|
2494 |
#region 請求書状況入力
|
|
2500 |
#region 請求状況一覧
|
|
2495 | 2501 |
/// <summary> |
2496 |
/// 請求書状況入力
|
|
2502 |
/// 請求書状況一覧
|
|
2497 | 2503 |
/// </summary> |
2498 | 2504 |
/// <param name="CurrentPara"></param> |
2499 | 2505 |
public static void ProcessExecuteNo_ReqBillingStatus(ProcessParameter CurrentPara) |
... | ... | |
2502 | 2508 |
FrmReqBillingStatus frm = new FrmReqBillingStatus(); |
2503 | 2509 |
try |
2504 | 2510 |
{ |
2511 |
// フォーム表示 |
|
2512 |
frm.ShowDialog(); |
|
2513 |
} |
|
2514 |
catch (Exception ex) |
|
2515 |
{ |
|
2516 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2517 |
BackProcess(); |
|
2518 |
} |
|
2519 |
finally |
|
2520 |
{ |
|
2521 |
frm.Dispose(); frm = null; |
|
2522 |
} |
|
2523 |
} |
|
2524 |
#endregion |
|
2525 |
|
|
2526 |
#region 請求書状況入力 |
|
2527 |
/// <summary> |
|
2528 |
/// 請求書状況入力 |
|
2529 |
/// </summary> |
|
2530 |
/// <returns></returns> |
|
2531 |
public static void ProcessExecuteNo_ReqBillingStatInput(ProcessParameter CurrentPara) |
|
2532 |
{ |
|
2533 |
// 請求選択一覧 |
|
2534 |
FrmBillingStatInput frm = new FrmBillingStatInput(); |
|
2535 |
try |
|
2536 |
{ |
|
2505 | 2537 |
// パラメータセット |
2506 |
//frm.ExecuteFlg = CurrentPara.IntExecParameter[0]; |
|
2538 |
frm.ConstructionCode = CurrentPara.IntExecParameter[0]; |
|
2539 |
if (CurrentPara.IntExecParameter.Count > 1) frm.OrderNo = CurrentPara.IntExecParameter[1]; |
|
2507 | 2540 |
|
2508 | 2541 |
// フォーム表示 |
2509 | 2542 |
frm.ShowDialog(); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseStatusInput/FrmPurchaseStatusInput.designer.cs | ||
---|---|---|
227 | 227 |
this.btnDataEntry.BackColor = System.Drawing.Color.Green; |
228 | 228 |
this.btnDataEntry.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
229 | 229 |
this.btnDataEntry.ForeColor = System.Drawing.Color.White; |
230 |
this.btnDataEntry.Location = new System.Drawing.Point(878, 525);
|
|
230 |
this.btnDataEntry.Location = new System.Drawing.Point(1002, 525);
|
|
231 | 231 |
this.btnDataEntry.Name = "btnDataEntry"; |
232 | 232 |
this.btnDataEntry.Size = new System.Drawing.Size(120, 30); |
233 | 233 |
this.btnDataEntry.TabIndex = 14; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.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 |
namespace ProcessManagement.Forms.DataEntry |
|
22 |
{ |
|
23 |
public partial class FrmBillingStatInput : Form |
|
24 |
{ |
|
25 |
#region ?g?p??` |
|
26 |
//log4net???O???g?p???? |
|
27 |
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
28 |
#endregion |
|
29 |
|
|
30 |
#region ?? |
|
31 |
/// <summary> |
|
32 |
/// ?\???J???? |
|
33 |
/// </summary> |
|
34 |
private enum DispColumn |
|
35 |
{ |
|
36 |
No = 0, |
|
37 |
SeqNo, |
|
38 |
CompanyCode, |
|
39 |
CompanyName, |
|
40 |
OrderPrice, |
|
41 |
PrintOutDate, |
|
42 |
MailingDate, |
|
43 |
ReturnDate, |
|
44 |
ReturnCheckDate, |
|
45 |
DataChangeFlg, |
|
46 |
} |
|
47 |
|
|
48 |
#endregion |
|
49 |
|
|
50 |
#region ??? |
|
51 |
#region Cell???T?C?Y |
|
52 |
/// <summary> |
|
53 |
/// Cell???T?C?Y |
|
54 |
/// </summary> |
|
55 |
private int[] m_CellSize; |
|
56 |
#endregion |
|
57 |
|
|
58 |
#region ?f?[?^??X?t???O |
|
59 |
/// <summary> |
|
60 |
/// ?f?[?^??X?t???O |
|
61 |
/// </summary> |
|
62 |
private bool m_DataChangeFlg = false; |
|
63 |
|
|
64 |
#endregion |
|
65 |
|
|
66 |
#region ?Y???H????{??? |
|
67 |
/// <summary> |
|
68 |
/// ?Y???H????{??? |
|
69 |
/// </summary> |
|
70 |
private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo(); |
|
71 |
#endregion |
|
72 |
|
|
73 |
#region ?H???R?[?h |
|
74 |
/// <summary> |
|
75 |
/// ?H???R?[?h |
|
76 |
/// </summary> |
|
77 |
private int m_ConstructionCode = 0; |
|
78 |
#endregion |
|
79 |
|
|
80 |
#region ??t??? |
|
81 |
/// <summary> |
|
82 |
/// ??t??? |
|
83 |
/// </summary> |
|
84 |
private int m_OrderNo = 0; |
|
85 |
#endregion |
|
86 |
|
|
87 |
#endregion |
|
88 |
|
|
89 |
#region ?v???p?e?B |
|
90 |
/// <summary> |
|
91 |
/// ?H???R?[?h |
|
92 |
/// </summary> |
|
93 |
public int ConstructionCode |
|
94 |
{ |
|
95 |
get { return m_ConstructionCode; } |
|
96 |
set { m_ConstructionCode = value; } |
|
97 |
} |
|
98 |
/// <summary> |
|
99 |
/// ??t??? |
|
100 |
/// </summary> |
|
101 |
public int OrderNo |
|
102 |
{ |
|
103 |
get { return m_OrderNo; } |
|
104 |
set { m_OrderNo = value; } |
|
105 |
} |
|
106 |
#endregion |
|
107 |
|
|
108 |
#region ?R???X?g???N?^ |
|
109 |
public FrmBillingStatInput() |
|
110 |
{ |
|
111 |
InitializeComponent(); |
|
112 |
} |
|
113 |
#endregion |
|
114 |
#region ?f?X?g???N?^ |
|
115 |
~FrmBillingStatInput() |
|
116 |
{ |
|
117 |
try |
|
118 |
{ |
|
119 |
GC.Collect(); |
|
120 |
} |
|
121 |
catch (Exception ex) |
|
122 |
{ |
|
123 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
124 |
} |
|
125 |
} |
|
126 |
#endregion |
|
127 |
|
|
128 |
#region ?~?{?^?? |
|
129 |
/// <summary> |
|
130 |
/// ?~?{?^?????????? |
|
131 |
/// </summary> |
|
132 |
/// <param name="sender"></param> |
|
133 |
/// <param name="e"></param> |
|
134 |
private void FrmBillingStatInput_FormClosing(object sender, FormClosingEventArgs e) |
|
135 |
{ |
|
136 |
if (m_DataChangeFlg) |
|
137 |
{ |
|
138 |
if (MessageBox.Show("?f?[?^???X?????????A?o?^??????I????????????????H?B", "?I???m?F" |
|
139 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) |
|
140 |
{ |
|
141 |
e.Cancel = true; |
|
142 |
return; |
|
143 |
} |
|
144 |
} |
|
145 |
|
|
146 |
// ?O?v???Z?X???? |
|
147 |
ClsExcute.BackProcess(); |
|
148 |
} |
|
149 |
#endregion |
|
150 |
|
|
151 |
#region ?o?^?{?^?? |
|
152 |
/// <summary> |
|
153 |
/// ?o?^?{?^?????? |
|
154 |
/// </summary> |
|
155 |
/// <param name="sender"></param> |
|
156 |
/// <param name="e"></param> |
|
157 |
private void btnDataEntry_Click(object sender, EventArgs e) |
|
158 |
{ |
|
159 |
//?f?[?^?`?F?b?N |
|
160 |
if (!DispFeildCheck()) return; |
|
161 |
|
|
162 |
// ?f?[?^?o?^ |
|
163 |
if (!DataEntryProcess()) return; |
|
164 |
|
|
165 |
CommonMotions.EntryEndMessage("????????f?[?^"); |
|
166 |
|
|
167 |
m_DataChangeFlg = false; |
|
168 |
|
|
169 |
// ?I?? |
|
170 |
this.Close(); |
|
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 |
this.Close(); |
|
183 |
} |
|
184 |
#endregion |
|
185 |
|
|
186 |
#region ?t?H?[?????[?h |
|
187 |
/// <summary> |
|
188 |
/// ?????t?H?[?????[?h |
|
189 |
/// </summary> |
|
190 |
/// <param name="sender"></param> |
|
191 |
/// <param name="e"></param> |
|
192 |
private void FrmConstructionBaseInfoList_Load(object sender, EventArgs e) |
|
193 |
{ |
|
194 |
// ?H?????? |
|
195 |
if (!GetBaseInfoData()) |
|
196 |
{ |
|
197 |
MessageBox.Show("?H????{????????????", "?G???[?\??", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
198 |
this.Close(); |
|
199 |
return; |
|
200 |
} |
|
201 |
|
|
202 |
// ??????? |
|
203 |
InitSettingLoad(); |
|
204 |
|
|
205 |
// ?????\?? |
|
206 |
InitDataLoad(); |
|
207 |
} |
|
208 |
#endregion |
|
209 |
|
|
210 |
#region ?t?H?[??KeyDown |
|
211 |
/// <summary> |
|
212 |
/// Entry?L?[????????? |
|
213 |
/// </summary> |
|
214 |
/// <param name="sender"></param> |
|
215 |
/// <param name="e"></param> |
|
216 |
private void FrmConstructionBaseInfoList_KeyDown(object sender, KeyEventArgs e) |
|
217 |
{ |
|
218 |
//Enter?L?[?????????????m?F |
|
219 |
//Alt??Ctrl?L?[????????????????????? |
|
220 |
if ((e.KeyCode == Keys.Enter) && !e.Alt && !e.Control) |
|
221 |
{ |
|
222 |
//????????Tab?L?[?????????????????? |
|
223 |
//Shift??????????????O??R???g???[????t?H?[?J?X????? |
|
224 |
this.ProcessTabKey(!e.Shift); |
|
225 |
|
|
226 |
e.Handled = true; |
|
227 |
//.NET Framework 2.0??~ |
|
228 |
e.SuppressKeyPress = true; |
|
229 |
} |
|
230 |
} |
|
231 |
#endregion |
|
232 |
|
|
233 |
#region ?t?H?[???T?C?Y??X |
|
234 |
/// <summary> |
|
235 |
/// ?t?H?[???T?C?Y??X |
|
236 |
/// </summary> |
|
237 |
/// <param name="sender"></param> |
|
238 |
/// <param name="e"></param> |
|
239 |
private void FrmBillingStatInput_SizeChanged(object sender, EventArgs e) |
|
240 |
{ |
|
241 |
if (this.WindowState == FormWindowState.Minimized) |
|
242 |
{ |
|
243 |
// ????? |
|
244 |
} |
|
245 |
else if (this.WindowState == FormWindowState.Maximized) |
|
246 |
{ |
|
247 |
// ??? |
|
248 |
CellSizeChangesWhenChangingScreenSize(false); |
|
249 |
} |
|
250 |
else if (this.WindowState == FormWindowState.Normal) |
|
251 |
{ |
|
252 |
// ?W???? |
|
253 |
CellSizeChangesWhenChangingScreenSize(true); |
|
254 |
} |
|
255 |
} |
|
256 |
#endregion |
|
257 |
|
|
258 |
#region ?Z???l???X |
|
259 |
/// <summary> |
|
260 |
/// ?Z???l???X |
|
261 |
/// </summary> |
|
262 |
/// <param name="sender"></param> |
|
263 |
/// <param name="e"></param> |
|
264 |
private void dgvMaster_CellValueChanged(object sender, DataGridViewCellEventArgs e) |
|
265 |
{ |
|
266 |
try |
|
267 |
{ |
|
268 |
// ??X?t???OON |
|
269 |
m_DataChangeFlg = true; |
|
270 |
|
|
271 |
// ??X?t???OON |
|
272 |
DataGridView dgv = (DataGridView)sender; |
|
273 |
DataGridViewRow dgvRow = dgv.CurrentRow; |
|
274 |
DataGridViewCell dgvCell = dgv.CurrentCell; |
|
275 |
|
|
276 |
dgvRow.Cells[(int)DispColumn.DataChangeFlg].Value = 1; |
|
277 |
|
|
278 |
// ???t??W |
|
279 |
txtInputDate_TextChanged(dgvCell); |
|
280 |
} |
|
281 |
catch (Exception ex) |
|
282 |
{ |
|
283 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
284 |
} |
|
285 |
} |
|
286 |
#endregion |
|
287 |
} |
|
288 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.designer.cs | ||
---|---|---|
1 |
namespace ProcessManagement.Forms.DataEntry |
|
2 |
{ |
|
3 |
partial class FrmBillingStatInput |
|
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 dataGridViewCellStyle10 = 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 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
41 |
this.btnEnd = new System.Windows.Forms.Button(); |
|
42 |
this.label1 = new System.Windows.Forms.Label(); |
|
43 |
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
44 |
this.label2 = new System.Windows.Forms.Label(); |
|
45 |
this.lblLabel03 = new System.Windows.Forms.Label(); |
|
46 |
this.label5 = new System.Windows.Forms.Label(); |
|
47 |
this.lblLabel05 = new System.Windows.Forms.Label(); |
|
48 |
this.label4 = new System.Windows.Forms.Label(); |
|
49 |
this.lblConstructionCodelabel = new System.Windows.Forms.Label(); |
|
50 |
this.lblLabel02 = new System.Windows.Forms.Label(); |
|
51 |
this.lblLabel04 = new System.Windows.Forms.Label(); |
|
52 |
this.lblLabel01 = new System.Windows.Forms.Label(); |
|
53 |
this.btnDataEntry = new System.Windows.Forms.Button(); |
|
54 |
this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX(); |
|
55 |
this.label3 = new System.Windows.Forms.Label(); |
|
56 |
this.label6 = new System.Windows.Forms.Label(); |
|
57 |
this.label7 = new System.Windows.Forms.Label(); |
|
58 |
this.textBox1 = new System.Windows.Forms.TextBox(); |
|
59 |
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
60 |
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
61 |
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
62 |
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
63 |
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
64 |
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
65 |
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
66 |
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
67 |
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
68 |
this.groupBox1.SuspendLayout(); |
|
69 |
((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit(); |
|
70 |
this.SuspendLayout(); |
|
71 |
// |
|
72 |
// btnEnd |
|
73 |
// |
|
74 |
this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
75 |
this.btnEnd.BackColor = System.Drawing.Color.Blue; |
|
76 |
this.btnEnd.ForeColor = System.Drawing.Color.White; |
|
77 |
this.btnEnd.Location = new System.Drawing.Point(1130, 550); |
|
78 |
this.btnEnd.Name = "btnEnd"; |
|
79 |
this.btnEnd.Size = new System.Drawing.Size(120, 30); |
|
80 |
this.btnEnd.TabIndex = 8; |
|
81 |
this.btnEnd.Text = "終 了"; |
|
82 |
this.btnEnd.UseVisualStyleBackColor = false; |
|
83 |
this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click); |
|
84 |
// |
|
85 |
// label1 |
|
86 |
// |
|
87 |
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
88 |
this.label1.BackColor = System.Drawing.Color.White; |
|
89 |
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
90 |
this.label1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
91 |
this.label1.ForeColor = System.Drawing.Color.Black; |
|
92 |
this.label1.Location = new System.Drawing.Point(430, 10); |
|
93 |
this.label1.Name = "label1"; |
|
94 |
this.label1.Size = new System.Drawing.Size(400, 20); |
|
95 |
this.label1.TabIndex = 6; |
|
96 |
this.label1.Text = "請 求 書 状 況 入 力"; |
|
97 |
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
98 |
// |
|
99 |
// groupBox1 |
|
100 |
// |
|
101 |
this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
102 |
this.groupBox1.BackColor = System.Drawing.Color.Linen; |
|
103 |
this.groupBox1.Controls.Add(this.textBox1); |
|
104 |
this.groupBox1.Controls.Add(this.label7); |
|
105 |
this.groupBox1.Controls.Add(this.label2); |
|
106 |
this.groupBox1.Controls.Add(this.lblLabel03); |
|
107 |
this.groupBox1.Controls.Add(this.label5); |
|
108 |
this.groupBox1.Controls.Add(this.lblLabel05); |
|
109 |
this.groupBox1.Controls.Add(this.label4); |
|
110 |
this.groupBox1.Controls.Add(this.label6); |
|
111 |
this.groupBox1.Controls.Add(this.lblConstructionCodelabel); |
|
112 |
this.groupBox1.Controls.Add(this.lblLabel02); |
|
113 |
this.groupBox1.Controls.Add(this.lblLabel04); |
|
114 |
this.groupBox1.Controls.Add(this.label3); |
|
115 |
this.groupBox1.Controls.Add(this.lblLabel01); |
|
116 |
this.groupBox1.ForeColor = System.Drawing.Color.White; |
|
117 |
this.groupBox1.Location = new System.Drawing.Point(10, 40); |
|
118 |
this.groupBox1.Name = "groupBox1"; |
|
119 |
this.groupBox1.Size = new System.Drawing.Size(1240, 110); |
|
120 |
this.groupBox1.TabIndex = 0; |
|
121 |
this.groupBox1.TabStop = false; |
|
122 |
// |
|
123 |
// label2 |
|
124 |
// |
|
125 |
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
126 |
this.label2.BackColor = System.Drawing.Color.PeachPuff; |
|
127 |
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
128 |
this.label2.ForeColor = System.Drawing.Color.Black; |
|
129 |
this.label2.Location = new System.Drawing.Point(8, 48); |
|
130 |
this.label2.Name = "label2"; |
|
131 |
this.label2.Size = new System.Drawing.Size(114, 25); |
|
132 |
this.label2.TabIndex = 39; |
|
133 |
this.label2.Text = "請 求 月"; |
|
134 |
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
135 |
// |
|
136 |
// lblLabel03 |
|
137 |
// |
|
138 |
this.lblLabel03.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
139 |
this.lblLabel03.BackColor = System.Drawing.Color.White; |
|
140 |
this.lblLabel03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
141 |
this.lblLabel03.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
142 |
this.lblLabel03.ForeColor = System.Drawing.Color.Black; |
|
143 |
this.lblLabel03.Location = new System.Drawing.Point(130, 48); |
|
144 |
this.lblLabel03.Name = "lblLabel03"; |
|
145 |
this.lblLabel03.Size = new System.Drawing.Size(120, 25); |
|
146 |
this.lblLabel03.TabIndex = 40; |
|
147 |
this.lblLabel03.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
148 |
// |
|
149 |
// label5 |
|
150 |
// |
|
151 |
this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
152 |
this.label5.BackColor = System.Drawing.Color.PeachPuff; |
|
153 |
this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
154 |
this.label5.ForeColor = System.Drawing.Color.Black; |
|
155 |
this.label5.Location = new System.Drawing.Point(258, 48); |
|
156 |
this.label5.Name = "label5"; |
|
157 |
this.label5.Size = new System.Drawing.Size(114, 25); |
|
158 |
this.label5.TabIndex = 37; |
|
159 |
this.label5.Text = "作 成 日"; |
|
160 |
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
161 |
// |
|
162 |
// lblLabel05 |
|
163 |
// |
|
164 |
this.lblLabel05.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
165 |
this.lblLabel05.BackColor = System.Drawing.Color.White; |
|
166 |
this.lblLabel05.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
167 |
this.lblLabel05.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
168 |
this.lblLabel05.ForeColor = System.Drawing.Color.Black; |
|
169 |
this.lblLabel05.Location = new System.Drawing.Point(380, 48); |
|
170 |
this.lblLabel05.Name = "lblLabel05"; |
|
171 |
this.lblLabel05.Size = new System.Drawing.Size(120, 25); |
|
172 |
this.lblLabel05.TabIndex = 38; |
|
173 |
this.lblLabel05.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|
174 |
// |
|
175 |
// label4 |
|
176 |
// |
|
177 |
this.label4.BackColor = System.Drawing.Color.PeachPuff; |
|
178 |
this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
179 |
this.label4.ForeColor = System.Drawing.Color.Black; |
|
180 |
this.label4.Location = new System.Drawing.Point(516, 48); |
|
181 |
this.label4.Name = "label4"; |
|
182 |
this.label4.Size = new System.Drawing.Size(114, 25); |
|
183 |
this.label4.TabIndex = 18; |
|
184 |
this.label4.Text = "請 求 日"; |
|
185 |
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
186 |
// |
|
187 |
// lblConstructionCodelabel |
|
188 |
// |
|
189 |
this.lblConstructionCodelabel.BackColor = System.Drawing.Color.PeachPuff; |
|
190 |
this.lblConstructionCodelabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
191 |
this.lblConstructionCodelabel.ForeColor = System.Drawing.Color.Black; |
|
192 |
this.lblConstructionCodelabel.Location = new System.Drawing.Point(8, 15); |
|
193 |
this.lblConstructionCodelabel.Name = "lblConstructionCodelabel"; |
|
194 |
this.lblConstructionCodelabel.Size = new System.Drawing.Size(114, 25); |
|
195 |
this.lblConstructionCodelabel.TabIndex = 18; |
|
196 |
this.lblConstructionCodelabel.Text = "請求先名"; |
|
197 |
this.lblConstructionCodelabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
198 |
// |
|
199 |
// lblLabel02 |
|
200 |
// |
|
201 |
this.lblLabel02.BackColor = System.Drawing.Color.White; |
|
202 |
this.lblLabel02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
203 |
this.lblLabel02.ForeColor = System.Drawing.Color.Black; |
|
204 |
this.lblLabel02.Location = new System.Drawing.Point(258, 15); |
|
205 |
this.lblLabel02.Name = "lblLabel02"; |
|
206 |
this.lblLabel02.Size = new System.Drawing.Size(720, 25); |
|
207 |
this.lblLabel02.TabIndex = 17; |
|
208 |
this.lblLabel02.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
|
209 |
// |
|
210 |
// lblLabel04 |
|
211 |
// |
|
212 |
this.lblLabel04.BackColor = System.Drawing.Color.White; |
|
213 |
this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
214 |
this.lblLabel04.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
215 |
this.lblLabel04.ForeColor = System.Drawing.Color.Black; |
|
216 |
this.lblLabel04.Location = new System.Drawing.Point(638, 48); |
|
217 |
this.lblLabel04.Name = "lblLabel04"; |
|
218 |
this.lblLabel04.Size = new System.Drawing.Size(120, 25); |
|
219 |
this.lblLabel04.TabIndex = 16; |
|
220 |
this.lblLabel04.TextAlign = System.Drawing.ContentAlignment.MiddleRight; |
|
221 |
// |
|
222 |
// lblLabel01 |
|
223 |
// |
|
224 |
this.lblLabel01.BackColor = System.Drawing.Color.White; |
|
225 |
this.lblLabel01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
226 |
this.lblLabel01.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
227 |
this.lblLabel01.ForeColor = System.Drawing.Color.Black; |
|
228 |
this.lblLabel01.Location = new System.Drawing.Point(130, 15); |
|
229 |
this.lblLabel01.Name = "lblLabel01"; |
|
230 |
this.lblLabel01.Size = new System.Drawing.Size(120, 25); |
|
231 |
this.lblLabel01.TabIndex = 16; |
|
232 |
this.lblLabel01.TextAlign = System.Drawing.ContentAlignment.MiddleRight; |
|
233 |
// |
|
234 |
// btnDataEntry |
|
235 |
// |
|
236 |
this.btnDataEntry.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
237 |
this.btnDataEntry.BackColor = System.Drawing.Color.Green; |
|
238 |
this.btnDataEntry.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
239 |
this.btnDataEntry.ForeColor = System.Drawing.Color.White; |
|
240 |
this.btnDataEntry.Location = new System.Drawing.Point(1002, 550); |
|
241 |
this.btnDataEntry.Name = "btnDataEntry"; |
|
242 |
this.btnDataEntry.Size = new System.Drawing.Size(120, 30); |
|
243 |
this.btnDataEntry.TabIndex = 14; |
|
244 |
this.btnDataEntry.Text = "登 録"; |
|
245 |
this.btnDataEntry.UseVisualStyleBackColor = false; |
|
246 |
this.btnDataEntry.Click += new System.EventHandler(this.btnDataEntry_Click); |
|
247 |
// |
|
248 |
// dgvMaster |
|
249 |
// |
|
250 |
this.dgvMaster.AllowUserToAddRows = false; |
|
251 |
this.dgvMaster.AllowUserToDeleteRows = false; |
|
252 |
this.dgvMaster.AllowUserToResizeColumns = false; |
|
253 |
this.dgvMaster.AllowUserToResizeRows = false; |
|
254 |
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
255 |
this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
|
256 |
this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
257 |
| System.Windows.Forms.AnchorStyles.Left) |
|
258 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
259 |
this.dgvMaster.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |
|
260 |
this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
261 |
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
262 |
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; |
|
263 |
dataGridViewCellStyle2.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
264 |
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; |
|
265 |
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
266 |
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
267 |
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|
268 |
this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|
269 |
this.dgvMaster.ColumnHeadersHeight = 24; |
|
270 |
this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|
271 |
this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|
272 |
this.Column1, |
|
273 |
this.Column3, |
|
274 |
this.Column4, |
|
275 |
this.Column2, |
|
276 |
this.Column8, |
|
277 |
this.Column5, |
|
278 |
this.Column9, |
|
279 |
this.Column11, |
|
280 |
this.Column12}); |
|
281 |
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|
282 |
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Window; |
|
283 |
dataGridViewCellStyle10.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
284 |
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.ControlText; |
|
285 |
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.LightSeaGreen; |
|
286 |
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
287 |
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|
288 |
this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle10; |
|
289 |
this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; |
|
290 |
this.dgvMaster.Location = new System.Drawing.Point(10, 158); |
|
291 |
this.dgvMaster.MultiSelect = false; |
|
292 |
this.dgvMaster.Name = "dgvMaster"; |
|
293 |
this.dgvMaster.RowHeadersVisible = false; |
|
294 |
this.dgvMaster.RowHeadersWidth = 20; |
|
295 |
this.dgvMaster.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; |
|
296 |
this.dgvMaster.RowTemplate.Height = 24; |
|
297 |
this.dgvMaster.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|
298 |
this.dgvMaster.Size = new System.Drawing.Size(1240, 386); |
|
299 |
this.dgvMaster.TabIndex = 5; |
|
300 |
this.dgvMaster.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMaster_CellValueChanged); |
|
301 |
// |
|
302 |
// label3 |
|
303 |
// |
|
304 |
this.label3.BackColor = System.Drawing.Color.White; |
|
305 |
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
306 |
this.label3.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
307 |
this.label3.ForeColor = System.Drawing.Color.Black; |
|
308 |
this.label3.Location = new System.Drawing.Point(896, 48); |
|
309 |
this.label3.Name = "label3"; |
|
310 |
this.label3.Size = new System.Drawing.Size(160, 25); |
|
311 |
this.label3.TabIndex = 16; |
|
312 |
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; |
|
313 |
// |
|
314 |
// label6 |
|
315 |
// |
|
316 |
this.label6.BackColor = System.Drawing.Color.PeachPuff; |
|
317 |
this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
318 |
this.label6.ForeColor = System.Drawing.Color.Black; |
|
319 |
this.label6.Location = new System.Drawing.Point(774, 48); |
|
320 |
this.label6.Name = "label6"; |
|
321 |
this.label6.Size = new System.Drawing.Size(114, 25); |
|
322 |
this.label6.TabIndex = 18; |
|
323 |
this.label6.Text = "請求金額"; |
|
324 |
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
325 |
// |
|
326 |
// label7 |
|
327 |
// |
|
328 |
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
329 |
this.label7.BackColor = System.Drawing.Color.Black; |
|
330 |
this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
331 |
this.label7.ForeColor = System.Drawing.Color.PeachPuff; |
|
332 |
this.label7.Location = new System.Drawing.Point(8, 81); |
|
333 |
this.label7.Name = "label7"; |
|
334 |
this.label7.Size = new System.Drawing.Size(114, 25); |
|
335 |
this.label7.TabIndex = 39; |
|
336 |
this.label7.Text = "郵 送 日"; |
|
337 |
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
338 |
// |
|
339 |
// textBox1 |
|
340 |
// |
|
341 |
this.textBox1.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
342 |
this.textBox1.Location = new System.Drawing.Point(130, 80); |
|
343 |
this.textBox1.Name = "textBox1"; |
|
344 |
this.textBox1.Size = new System.Drawing.Size(120, 26); |
|
345 |
this.textBox1.TabIndex = 41; |
|
346 |
// |
|
347 |
// Column1 |
|
348 |
// |
|
349 |
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
350 |
this.Column1.DefaultCellStyle = dataGridViewCellStyle3; |
|
351 |
this.Column1.Frozen = true; |
|
352 |
this.Column1.HeaderText = "№"; |
|
353 |
this.Column1.Name = "Column1"; |
|
354 |
this.Column1.ReadOnly = true; |
|
355 |
this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
356 |
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
357 |
this.Column1.Width = 40; |
|
358 |
// |
|
359 |
// Column3 |
|
360 |
// |
|
361 |
this.Column3.Frozen = true; |
|
362 |
this.Column3.HeaderText = "請求№"; |
|
363 |
this.Column3.Name = "Column3"; |
|
364 |
this.Column3.ReadOnly = true; |
|
365 |
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
366 |
this.Column3.Visible = false; |
|
367 |
this.Column3.Width = 5; |
|
368 |
// |
|
369 |
// Column4 |
|
370 |
// |
|
371 |
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|
372 |
this.Column4.DefaultCellStyle = dataGridViewCellStyle4; |
|
373 |
this.Column4.Frozen = true; |
|
374 |
this.Column4.HeaderText = "工 事 名"; |
|
375 |
this.Column4.Name = "Column4"; |
|
376 |
this.Column4.ReadOnly = true; |
|
377 |
this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
378 |
this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
379 |
this.Column4.Width = 540; |
|
380 |
// |
|
381 |
// Column2 |
|
382 |
// |
|
383 |
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; |
|
384 |
this.Column2.DefaultCellStyle = dataGridViewCellStyle5; |
|
385 |
this.Column2.Frozen = true; |
|
386 |
this.Column2.HeaderText = "請求金額"; |
|
387 |
this.Column2.Name = "Column2"; |
|
388 |
this.Column2.ReadOnly = true; |
|
389 |
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
390 |
this.Column2.Width = 160; |
|
391 |
// |
|
392 |
// Column8 |
|
393 |
// |
|
394 |
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
395 |
this.Column8.DefaultCellStyle = dataGridViewCellStyle6; |
|
396 |
this.Column8.Frozen = true; |
|
397 |
this.Column8.HeaderText = "承 認 日"; |
|
398 |
this.Column8.Name = "Column8"; |
|
399 |
this.Column8.ReadOnly = true; |
|
400 |
this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
401 |
this.Column8.Width = 120; |
|
402 |
// |
|
403 |
// Column5 |
|
404 |
// |
|
405 |
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
406 |
this.Column5.DefaultCellStyle = dataGridViewCellStyle7; |
|
407 |
this.Column5.Frozen = true; |
|
408 |
this.Column5.HeaderText = "郵送日"; |
|
409 |
this.Column5.Name = "Column5"; |
|
410 |
this.Column5.ReadOnly = true; |
|
411 |
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
412 |
this.Column5.Width = 120; |
|
413 |
// |
|
414 |
// Column9 |
|
415 |
// |
|
416 |
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
417 |
this.Column9.DefaultCellStyle = dataGridViewCellStyle8; |
|
418 |
this.Column9.Frozen = true; |
|
419 |
this.Column9.HeaderText = "返送日"; |
|
420 |
this.Column9.Name = "Column9"; |
|
421 |
this.Column9.ReadOnly = true; |
|
422 |
this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
423 |
this.Column9.Width = 120; |
|
424 |
// |
|
425 |
// Column11 |
|
426 |
// |
|
427 |
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
428 |
this.Column11.DefaultCellStyle = dataGridViewCellStyle9; |
|
429 |
this.Column11.Frozen = true; |
|
430 |
this.Column11.HeaderText = "返送確認日"; |
|
431 |
this.Column11.Name = "Column11"; |
|
432 |
this.Column11.ReadOnly = true; |
|
433 |
this.Column11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
434 |
this.Column11.Width = 120; |
|
435 |
// |
|
436 |
// Column12 |
|
437 |
// |
|
438 |
this.Column12.Frozen = true; |
|
439 |
this.Column12.HeaderText = "変更フラグ"; |
|
440 |
this.Column12.Name = "Column12"; |
|
441 |
this.Column12.ReadOnly = true; |
|
442 |
this.Column12.Visible = false; |
|
443 |
this.Column12.Width = 5; |
|
444 |
// |
|
445 |
// FrmBillingStatInput |
|
446 |
// |
|
447 |
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
|
448 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
|
449 |
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
|
450 |
this.BackColor = System.Drawing.Color.Black; |
|
451 |
this.ClientSize = new System.Drawing.Size(1260, 582); |
|
452 |
this.Controls.Add(this.btnDataEntry); |
|
453 |
this.Controls.Add(this.groupBox1); |
|
454 |
this.Controls.Add(this.label1); |
|
455 |
this.Controls.Add(this.btnEnd); |
|
456 |
this.Controls.Add(this.dgvMaster); |
|
457 |
this.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
458 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
|
459 |
this.KeyPreview = true; |
|
460 |
this.MinimizeBox = false; |
|
461 |
this.Name = "FrmBillingStatInput"; |
|
462 |
this.ShowIcon = false; |
|
463 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
464 |
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmBillingStatInput_FormClosing); |
|
465 |
this.Load += new System.EventHandler(this.FrmConstructionBaseInfoList_Load); |
|
466 |
this.SizeChanged += new System.EventHandler(this.FrmBillingStatInput_SizeChanged); |
|
467 |
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionBaseInfoList_KeyDown); |
|
468 |
this.groupBox1.ResumeLayout(false); |
|
469 |
this.groupBox1.PerformLayout(); |
|
470 |
((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).EndInit(); |
|
471 |
this.ResumeLayout(false); |
|
472 |
|
|
473 |
} |
|
474 |
|
|
475 |
#endregion |
|
476 |
|
|
477 |
private System.Windows.Forms.Button btnEnd; |
|
478 |
private System.Windows.Forms.Label label1; |
|
479 |
private System.Windows.Forms.GroupBox groupBox1; |
|
480 |
private CustomControls.DataGridViewEX dgvMaster; |
|
481 |
private System.Windows.Forms.Label lblConstructionCodelabel; |
|
482 |
private System.Windows.Forms.Label lblLabel02; |
|
483 |
private System.Windows.Forms.Label lblLabel01; |
|
484 |
private System.Windows.Forms.Label label5; |
|
485 |
private System.Windows.Forms.Label lblLabel05; |
|
486 |
private System.Windows.Forms.Label label2; |
|
487 |
private System.Windows.Forms.Label lblLabel03; |
|
488 |
private System.Windows.Forms.Label label4; |
|
489 |
private System.Windows.Forms.Label lblLabel04; |
|
490 |
private System.Windows.Forms.Button btnDataEntry; |
|
491 |
private System.Windows.Forms.TextBox textBox1; |
|
492 |
private System.Windows.Forms.Label label7; |
|
493 |
private System.Windows.Forms.Label label6; |
|
494 |
private System.Windows.Forms.Label label3; |
|
495 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|
496 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|
497 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|
498 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|
499 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column8; |
|
500 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|
501 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column9; |
|
502 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column11; |
|
503 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column12; |
|
504 |
} |
|
505 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.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="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
124 |
<value>True</value> |
|
125 |
</metadata> |
|
126 |
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
127 |
<value>True</value> |
|
128 |
</metadata> |
|
129 |
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
130 |
<value>True</value> |
|
131 |
</metadata> |
|
132 |
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
133 |
<value>True</value> |
|
134 |
</metadata> |
|
135 |
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
136 |
<value>True</value> |
|
137 |
</metadata> |
|
138 |
<metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
139 |
<value>True</value> |
|
140 |
</metadata> |
|
141 |
<metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
142 |
<value>True</value> |
|
143 |
</metadata> |
|
144 |
<metadata name="Column12.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
145 |
<value>True</value> |
|
146 |
</metadata> |
|
147 |
</root> |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInputAuxiliary.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 FrmBillingStatInput |
|
27 |
{ |
|
28 |
#region ?? |
|
29 |
#region ??SQL |
|
30 |
/// <summary> |
|
31 |
/// ??SQL??? |
|
32 |
/// </summary> |
|
33 |
private static string[] s_SQLPart4Tying = new string[] { " WHERE A.CONSTRUCTIONPERIOD = {0}", |
|
34 |
string.Format(" AND A.TyingFlg != {0}", (int)CommonDefine.BaseInfoTyingFlg.Tying), |
|
35 |
" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE", |
|
36 |
" AND B.DETAILNO = {1}" }; |
|
37 |
|
|
38 |
private static string[] s_SQLPart5 = new string[] { " ORDER BY A.CONSTRUCTIONSTATUSFLG ASC,", |
|
39 |
" D.DEPDISPORDER ASC, D.MANDISPORDER ASC, A.CONSTRUCTIONCODE DESC" }; |
|
40 |
#endregion |
|
41 |
|
|
42 |
#endregion |
|
43 |
|
|
44 |
#region ??? |
|
45 |
#endregion |
|
46 |
|
|
47 |
#region ?v???p?e?B |
|
48 |
#endregion |
|
49 |
|
|
50 |
#region ??????? |
|
51 |
/// <summary> |
|
52 |
/// ??????? |
|
53 |
/// </summary> |
|
54 |
private void InitSettingLoad() |
|
55 |
{ |
|
56 |
try |
|
57 |
{ |
|
58 |
DataGridView dgv = dgvMaster; |
|
59 |
// ?O???b?h??????????? |
|
60 |
int CellCount = Enum.GetNames(typeof(DispColumn)).Length; |
|
61 |
m_CellSize = new int[CellCount]; |
|
62 |
foreach (DataGridViewColumn col in dgv.Columns) |
|
63 |
{ |
|
64 |
m_CellSize[col.Index] = col.Width; |
|
65 |
} |
|
66 |
} |
|
67 |
catch (Exception ex) |
|
68 |
{ |
|
69 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
70 |
} |
|
71 |
} |
|
72 |
#endregion |
|
73 |
|
|
74 |
#region ???T?C?Y??X????Z???T?C?Y??X |
|
75 |
/// <summary> |
|
76 |
/// ???T?C?Y??X????Z???T?C?Y??X |
|
77 |
/// </summary> |
|
78 |
private void CellSizeChangesWhenChangingScreenSize(bool bNormal) |
|
79 |
{ |
|
80 |
try |
|
81 |
{ |
|
82 |
DataGridView dgv = dgvMaster; |
|
83 |
int idifference = 0; |
|
84 |
|
|
85 |
int CellCount = Enum.GetNames(typeof(DispColumn)).Length; |
|
86 |
int[] CellWidth = new int[CellCount]; |
|
87 |
Array.Clear(CellWidth, 0, CellWidth.Length); |
|
88 |
|
|
89 |
// ?????? |
|
90 |
if (!bNormal) |
|
91 |
{ |
|
92 |
int allWidth = 0; |
|
93 |
for (int i = 0; i < dgv.ColumnCount; i++) |
|
94 |
{ |
|
95 |
if (!dgv.Columns[i].Visible) continue; |
|
96 |
allWidth += m_CellSize[i]; |
|
97 |
} |
|
98 |
// ?Z??????v?T?C?Y?????????????????? |
|
99 |
if (allWidth > dgv.Width) return; |
|
100 |
|
|
101 |
idifference = (dgv.Width - (allWidth + dgv.RowHeadersWidth)) / 7; |
|
102 |
} |
|
103 |
|
|
104 |
// ?J?????T?C?Y?Z?b?g |
|
105 |
for (int i = 0; i < dgv.ColumnCount; i++) |
|
106 |
{ |
|
107 |
if (!dgv.Columns[i].Visible) continue; |
|
108 |
dgv.Columns[i].Width = m_CellSize[i] + idifference; |
|
109 |
} |
|
110 |
} |
|
111 |
catch (Exception ex) |
|
112 |
{ |
|
113 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
114 |
} |
|
115 |
} |
|
116 |
#endregion |
|
117 |
|
|
118 |
#region ?H?????????? |
|
119 |
/// <summary> |
|
120 |
/// ?H?????? |
|
121 |
/// </summary> |
|
122 |
/// <returns></returns> |
|
123 |
private bool GetBaseInfoData() |
|
124 |
{ |
|
125 |
IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo(); |
|
126 |
try |
|
127 |
{ |
|
128 |
string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode); |
|
129 |
if (!cbDB.SelectAction(strSQL, ref m_ConstructionBaseInfo)) return false; |
|
130 |
|
|
131 |
return true; |
|
132 |
} |
|
133 |
catch (Exception ex) |
|
134 |
{ |
|
135 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
136 |
return false; |
|
137 |
} |
|
138 |
finally |
|
139 |
{ |
|
140 |
cbDB.close(); cbDB = null; |
|
141 |
} |
|
142 |
} |
|
143 |
#endregion |
|
144 |
|
|
145 |
#region ?f?[?^?\?????? |
|
146 |
/// <summary> |
|
147 |
/// ???????f?[?^?? |
|
148 |
/// </summary> |
|
149 |
private void InitDataLoad() |
|
150 |
{ |
|
151 |
try |
|
152 |
{ |
|
153 |
// ?w?b?_?[?\?? |
|
154 |
DispHeader(); |
|
155 |
// ?f?[?^?\?? |
|
156 |
DispDetail(); |
|
157 |
|
|
158 |
m_DataChangeFlg = false; |
|
159 |
} |
|
160 |
catch (Exception ex) |
|
161 |
{ |
|
162 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
163 |
} |
|
164 |
} |
|
165 |
#endregion |
|
166 |
|
|
167 |
#region ?w?b?_?[?\?? |
|
168 |
/// <summary> |
|
169 |
/// ?w?b?_?[?\?? |
|
170 |
/// </summary> |
|
171 |
private void DispHeader() |
|
172 |
{ |
|
173 |
IOConstructionBaseInfoDetail DetailDB = new IOConstructionBaseInfoDetail(); |
|
174 |
IOMPersonInCharge PersonDB = new IOMPersonInCharge(); |
|
175 |
try |
|
176 |
{ |
|
177 |
string strSQL = DetailDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName); |
|
178 |
ConstructionBaseInfoDetail DetailRec = new ConstructionBaseInfoDetail(); |
|
179 |
DetailDB.SelectAction(strSQL, ref DetailRec); |
|
180 |
|
|
181 |
strSQL = PersonDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionPersonCode); |
|
182 |
PersonInChargeMaster PersonRec = new PersonInChargeMaster(); |
|
183 |
PersonDB.SelectAction(strSQL, ref PersonRec); |
|
184 |
|
|
185 |
lblLabel01.Text = CommonMotions.cnvStringCodeFromInt(m_ConstructionCode, "-", 8); |
|
186 |
lblLabel02.Text = DetailRec.DetailString; |
|
187 |
lblLabel03.Text = CommonDefine.ProjectsStatus[m_ConstructionBaseInfo.ConstructionStatusFlg]; |
|
188 |
lblLabel04.Text = string.Format("{0}???", m_OrderNo); |
|
189 |
lblLabel05.Text = PersonRec.PersonName; |
|
190 |
|
|
191 |
} |
|
192 |
catch (Exception ex) |
|
193 |
{ |
|
194 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
195 |
} |
|
196 |
finally |
|
197 |
{ |
|
198 |
DetailDB.close(); DetailDB = null; |
|
199 |
} |
|
200 |
} |
|
201 |
#endregion |
|
202 |
|
|
203 |
#region ?f?[?^?\?? |
|
204 |
/// <summary> |
|
205 |
/// ?f?[?^?\?? |
|
206 |
/// </summary> |
|
207 |
private void DispDetail() |
|
208 |
{ |
|
209 |
IOPurchaseOrder OrderDB = new IOPurchaseOrder(); |
|
210 |
DataGridView dgv = dgvMaster; |
|
211 |
try |
|
212 |
{ |
|
213 |
string strSQL = "select"; |
|
214 |
strSQL += " A.SeqNo,"; |
|
215 |
strSQL += " A.CompanyCode,"; |
|
216 |
strSQL += " C.CompanyName,"; |
|
217 |
strSQL += " A.OrderPrice,"; |
|
218 |
strSQL += " DATE_FORMAT(A.PrintoutDate,'%Y/%m/%d') AS PDate,"; |
|
219 |
strSQL += " DATE_FORMAT(B.SendDate,'%Y/%m/%d') AS SDate,"; |
|
220 |
strSQL += " DATE_FORMAT(B.ReturnDate,'%Y/%m/%d') AS RDate,"; |
|
221 |
strSQL += " DATE_FORMAT(B.ReturnCheckDate,'%Y/%m/%d') AS RCDate"; |
|
222 |
strSQL += " from purchaseorder AS A"; |
|
223 |
strSQL += " LEFT JOIN purchaseorderdate AS B ON B.ConstructionCode = A.ConstructionCode AND B.CompanyCode = A.CompanyCode,"; |
|
224 |
strSQL += " subcontractormaster AS C"; |
|
225 |
strSQL += string.Format(" where A.ConstructionCode = {0}", m_ConstructionCode); |
|
226 |
strSQL += " and A.SeqNo in (select A1.LinkCode From processapprovaldetail A1"; |
|
227 |
strSQL += string.Format(" WHERE A1.ConstructionCode = {0} AND A1.ApprovalCode = {1} AND A1.OrderNo = {2})", |
|
228 |
m_ConstructionCode, |
|
229 |
(int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval, |
|
230 |
m_OrderNo); |
|
231 |
strSQL += " AND C.CompanyCode = A.CompanyCode"; |
|
232 |
strSQL += " order by A.SeqNo ASC"; |
|
233 |
|
|
234 |
ArrayList ArList = new ArrayList(); |
|
235 |
OrderDB.ExecuteReader(strSQL, ref ArList); |
|
236 |
|
|
237 |
int no = 1; |
|
238 |
string[] DateArray = new string[4]; |
|
239 |
|
|
240 |
foreach (object[] objRec in ArList) |
|
241 |
{ |
|
242 |
Array.Clear(DateArray, 0, DateArray.Length); |
|
243 |
if (CommonMotions.cnvDate(objRec[4]) != DateTime.MinValue) DateArray[0] = CommonMotions.cnvDate(objRec[4]).ToShortDateString(); |
|
244 |
if (CommonMotions.cnvDate(objRec[5]) != DateTime.MinValue) DateArray[1] = CommonMotions.cnvDate(objRec[5]).ToShortDateString(); |
|
245 |
if (CommonMotions.cnvDate(objRec[6]) != DateTime.MinValue) DateArray[2] = CommonMotions.cnvDate(objRec[6]).ToShortDateString(); |
|
246 |
if (CommonMotions.cnvDate(objRec[7]) != DateTime.MinValue) DateArray[3] = CommonMotions.cnvDate(objRec[7]).ToShortDateString(); |
|
247 |
|
|
248 |
int CreateRow = dgv.Rows.Add(no++, |
|
249 |
objRec[0], |
|
250 |
objRec[1], |
|
251 |
CommonMotions.cnvString(objRec[2]), |
|
252 |
CommonMotions.cnvInt(objRec[3]).ToString("#,0"), |
|
253 |
DateArray[0], |
|
254 |
DateArray[1], |
|
255 |
DateArray[2], |
|
256 |
DateArray[3], |
|
257 |
0 |
|
258 |
); |
|
259 |
} |
|
260 |
} |
|
261 |
catch (Exception ex) |
|
262 |
{ |
|
263 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
264 |
} |
|
265 |
finally |
|
266 |
{ |
|
267 |
OrderDB.close(); OrderDB = null; |
|
268 |
if (dgv.RowCount < 35) dgv.RowCount += 35 - dgv.RowCount; |
|
269 |
foreach (DataGridViewRow CurRow in dgv.Rows) |
|
270 |
{ |
|
271 |
if (CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.CompanyName].Value).Length != 0) |
|
272 |
{ |
|
273 |
CurRow.Cells[(int)DispColumn.MailingDate].ReadOnly = false; |
|
274 |
CurRow.Cells[(int)DispColumn.ReturnDate].ReadOnly = false; |
|
275 |
CurRow.Cells[(int)DispColumn.ReturnCheckDate].ReadOnly = false; |
|
276 |
} |
|
277 |
} |
|
278 |
} |
|
279 |
} |
|
280 |
#endregion |
|
281 |
|
|
282 |
#region ?o?^?{?^?????????o?^???? |
|
283 |
/// <summary> |
|
284 |
/// ?o?^?{?^?????????o?^???? |
|
285 |
/// </summary> |
|
286 |
/// <returns></returns> |
|
287 |
private bool DataEntryProcess() |
|
288 |
{ |
|
289 |
IOPurchaseOrderDate OrderDateDB = new IOPurchaseOrderDate(); |
|
290 |
try |
|
291 |
{ |
|
292 |
OrderDateDB.connect(); OrderDateDB.beginTran(); |
|
293 |
DataGridView dgv = dgvMaster; |
|
294 |
|
|
295 |
foreach (DataGridViewRow wrkRow in dgv.Rows) |
|
296 |
{ |
|
297 |
// ????`?F?b?N |
|
298 |
if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispColumn.CompanyName].Value)) continue; |
|
299 |
if (CommonMotions.cnvString(wrkRow.Cells[(int)DispColumn.CompanyName].Value).Length == 0) continue; |
|
300 |
|
|
301 |
// ??X????????????? |
|
302 |
if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispColumn.DataChangeFlg].Value) == 0) continue; |
|
303 |
|
|
304 |
PurchaseOrderDate OrderDateRec = new PurchaseOrderDate(); |
|
305 |
OrderDateRec.ConstructionCode = m_ConstructionCode; |
|
306 |
OrderDateRec.SeqNo = CommonMotions.cnvInt(wrkRow.Cells[(int)DispColumn.SeqNo].Value); |
|
307 |
|
|
308 |
// ?f?[?^????m?F |
|
309 |
bool bUpdate = false; |
|
310 |
string strSQL = OrderDateDB.CreatePrimarykeyString(OrderDateRec.ConstructionCode, OrderDateRec.SeqNo); |
|
311 |
if (OrderDateDB.SelectAction(strSQL, ref OrderDateRec)) bUpdate = true; |
|
312 |
else bUpdate = false; |
|
313 |
|
|
314 |
// ?f?[?^?Z?b?g |
|
315 |
OrderDateRec.CompanyCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispColumn.CompanyCode].Value); |
|
316 |
if (CommonMotions.cnvDate(wrkRow.Cells[(int)DispColumn.MailingDate].Value) != DateTime.MinValue) |
|
317 |
{ |
|
318 |
OrderDateRec.SendDate = CommonMotions.cnvDate(wrkRow.Cells[(int)DispColumn.MailingDate].Value); |
|
319 |
} |
|
320 |
if (CommonMotions.cnvDate(wrkRow.Cells[(int)DispColumn.ReturnDate].Value) != DateTime.MinValue) |
|
321 |
{ |
|
322 |
OrderDateRec.ReturnDate = CommonMotions.cnvDate(wrkRow.Cells[(int)DispColumn.ReturnDate].Value); |
|
323 |
} |
|
324 |
if (CommonMotions.cnvDate(wrkRow.Cells[(int)DispColumn.ReturnCheckDate].Value) != DateTime.MinValue) |
|
325 |
{ |
|
326 |
OrderDateRec.ReturnCheckDate = CommonMotions.cnvDate(wrkRow.Cells[(int)DispColumn.ReturnCheckDate].Value); |
|
327 |
} |
|
328 |
|
|
329 |
if (bUpdate) |
|
330 |
{ |
|
331 |
if (!OrderDateDB.UpdateAction(strSQL, OrderDateRec)) |
|
332 |
{ |
|
333 |
MessageBox.Show("?H???????f?[?^?F?X?V????s????????B", "?o?^?G???[", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
334 |
OrderDateDB.rollback(); |
|
335 |
return false; |
|
336 |
} |
|
337 |
} |
|
338 |
else |
|
339 |
{ |
|
340 |
if (!OrderDateDB.InsertAction(OrderDateRec)) |
|
341 |
{ |
|
342 |
MessageBox.Show("?H???????f?[?^?F?o?^????s????????B", "?o?^?G???[", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
343 |
OrderDateDB.rollback(); |
|
344 |
return false; |
|
345 |
} |
|
346 |
} |
|
347 |
} |
|
348 |
|
|
349 |
OrderDateDB.commit(); |
|
350 |
return true; |
|
351 |
} |
|
352 |
catch (Exception ex) |
|
353 |
{ |
|
354 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
355 |
return false; |
|
356 |
} |
|
357 |
finally |
|
358 |
{ |
|
359 |
OrderDateDB.close(); OrderDateDB = null; |
|
360 |
} |
|
361 |
} |
|
362 |
#endregion |
|
363 |
|
|
364 |
#region ???????`?F?b?N |
|
365 |
/// <summary> |
|
366 |
/// ???????`?F?b?N |
|
367 |
/// </summary> |
|
368 |
/// <returns></returns> |
|
369 |
private bool DispFeildCheck() |
|
370 |
{ |
|
371 |
try |
|
372 |
{ |
|
373 |
DataGridView dgv = dgvMaster; |
|
374 |
|
|
375 |
bool bRet = true; |
|
376 |
bool bAns = true; |
|
377 |
int ErrorRowl = 0; |
|
378 |
|
|
379 |
// ????`?F?b?N |
|
380 |
string workCell = string.Empty; |
|
381 |
foreach (DataGridViewRow wrkRow in dgv.Rows) |
|
382 |
{ |
|
383 |
// ????`?F?b?N |
|
384 |
if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispColumn.CompanyName].Value)) continue; |
|
385 |
if (CommonMotions.cnvString(wrkRow.Cells[(int)DispColumn.CompanyName].Value).Length == 0) continue; |
|
386 |
|
|
387 |
// ?X?????`?F?b?N |
|
388 |
bAns = true; ; |
|
389 |
workCell = CommonMotions.cnvString(wrkRow.Cells[(int)DispColumn.MailingDate].Value); |
|
390 |
if (workCell.Length != 0) |
|
391 |
{ |
|
392 |
bAns = CommonMotions.chkDate(workCell); // ???t?`?F?b?N |
|
393 |
CommonMotions.chgBackColor(workCell, bAns); // ?w?i?F??X |
|
394 |
if (!bAns) ErrorRowl = wrkRow.Index; |
|
395 |
} |
|
396 |
bRet &= bAns; |
|
397 |
|
|
398 |
// ??????`?F?b?N |
|
399 |
bAns = true; ; |
|
400 |
workCell = CommonMotions.cnvString(wrkRow.Cells[(int)DispColumn.ReturnDate].Value); |
|
401 |
if (workCell.Length != 0) |
|
402 |
{ |
|
403 |
bAns = CommonMotions.chkDate(workCell); // ???t?`?F?b?N |
|
404 |
CommonMotions.chgBackColor(workCell, bAns); // ?w?i?F??X |
|
405 |
if (!bAns) ErrorRowl = wrkRow.Index; |
|
406 |
} |
|
407 |
bRet &= bAns; |
|
408 |
|
|
409 |
// ????m?F???`?F?b?N |
|
410 |
bAns = true; ; |
|
411 |
workCell = CommonMotions.cnvString(wrkRow.Cells[(int)DispColumn.ReturnCheckDate].Value); |
|
412 |
if (workCell.Length != 0) |
|
413 |
{ |
|
414 |
bAns = CommonMotions.chkDate(workCell); // ???t?`?F?b?N |
|
415 |
CommonMotions.chgBackColor(workCell, bAns); // ?w?i?F??X |
他の形式にエクスポート: Unified diff