リビジョン 22
MySQL化対応
branches/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Diagnostics; |
|
6 |
using System.Windows.Forms; |
|
7 |
using System.Drawing; |
|
8 |
using System.IO; |
|
9 |
using System.Text.RegularExpressions; |
|
10 |
using System.Data; |
|
11 |
using System.Security.Cryptography; |
|
12 |
using System.Globalization; |
|
13 |
|
|
14 |
namespace ProcessManagement.Common |
|
15 |
{ |
|
16 |
/// <summary> |
|
17 |
/// 全体共通定義 |
|
18 |
/// </summary> |
|
19 |
public static class CommonDefine |
|
20 |
{ |
|
21 |
#region テスト起動フラグ定義 |
|
22 |
// false時システム更新・起動チェックが起動されない |
|
23 |
/// <summary> |
|
24 |
/// テスト実行フラグ |
|
25 |
/// </summary> |
|
26 |
public static bool m_ProductionExecution = true; |
|
27 |
#endregion |
|
28 |
|
|
29 |
#region システム更新対象名称 |
|
30 |
/// <summary> |
|
31 |
/// 監視対象プロセス名 |
|
32 |
/// </summary> |
|
33 |
public const string s_TargetProcess = "現場監督秘書"; |
|
34 |
#endregion |
|
35 |
|
|
36 |
#region システム更新処理使用定義 |
|
37 |
/// <summary> |
|
38 |
/// パスを定数で定義する |
|
39 |
/// </summary> |
|
40 |
public const string s_UPDATE_FILE_PATH = @"Z:\52GenbaKantokuHisyo"; |
|
41 |
//public const string s_UPDATE_FILE_PATH = @"Z:\5-2現場監督秘書"; |
|
42 |
//private const string s_UPDATE_FILE_PATH = @"Z:\⑤IT事業部用\Debug"; |
|
43 |
public const string s_UPDATECOPY_NAME = "UpDateCopy.exe"; |
|
44 |
#endregion |
|
45 |
|
|
46 |
#region システム定義ファイルパス |
|
47 |
/// <summary> |
|
48 |
/// 工事管理システム定義ファイル名 |
|
49 |
/// </summary> |
|
50 |
public static readonly string s_DefinitionFileName = @".\ProcessManagement.xml"; |
|
51 |
#endregion |
|
52 |
|
|
53 |
#region 住所検索ファイルパス |
|
54 |
/// <summary> |
|
55 |
/// 住所ファイル |
|
56 |
/// </summary> |
|
57 |
public static string s_AddressFilePath = System.Environment.CurrentDirectory + @".\KEN_ALL.CSV"; |
|
58 |
public static string s_AddressWorkInput = @"D:\Temp\_KEN_ALL.CSV"; |
|
59 |
public static string s_AddressWorkOutput = @"D:\Temp\KEN_ALL.CSV"; |
|
60 |
//public static string s_AddressFilePath = "C:\\temp\\KEN_ALL.CSV"; |
|
61 |
#endregion |
|
62 |
|
|
63 |
#region システムセキュリティ定義 |
|
64 |
/// <summary> |
|
65 |
/// システム管理者パスワード |
|
66 |
/// </summary> |
|
67 |
public static int AdminCode = 88889988; |
|
68 |
public static string AdminUser = "Admin"; |
|
69 |
public static string AdminPass = "Admin"; |
|
70 |
public static int AdminSecurityManagement = -1; |
|
71 |
|
|
72 |
/// <summary> |
|
73 |
/// 機密管理番号 |
|
74 |
/// </summary> |
|
75 |
public enum SysManaDivNo |
|
76 |
{ |
|
77 |
/// <summary> |
|
78 |
/// 最高責任者 |
|
79 |
/// </summary> |
|
80 |
PresidentAuthority = 0, |
|
81 |
/// <summary> |
|
82 |
/// 統括責任者 |
|
83 |
/// </summary> |
|
84 |
SupervisorAuthority, |
|
85 |
/// <summary> |
|
86 |
/// 所 属 長 |
|
87 |
/// </summary> |
|
88 |
SuperiorAuthority, |
|
89 |
/// <summary> |
|
90 |
/// 一般使用者 |
|
91 |
/// </summary> |
|
92 |
UserAuthority, |
|
93 |
} |
|
94 |
/// <summary> |
|
95 |
/// 機密管理区分 |
|
96 |
/// </summary> |
|
97 |
public static List<KeyValuePair<int, string>> SystemManageDiv = new List<KeyValuePair<int, string>>{ |
|
98 |
new KeyValuePair<int,string>(1,"最高責任者"), |
|
99 |
new KeyValuePair<int,string>(2,"統括責任者"), |
|
100 |
new KeyValuePair<int,string>(3,"所 属 長"), |
|
101 |
new KeyValuePair<int,string>(4,"一般使用者")}; |
|
102 |
#region 旧機密区分名称 |
|
103 |
//public static List<KeyValuePair<int, string>> SecurityManagementDivision = new List<KeyValuePair<int, string>>{ |
|
104 |
// new KeyValuePair<int,string>(1,"最高機密管理者"), |
|
105 |
// new KeyValuePair<int,string>(2,"統括機密管理者"), |
|
106 |
// new KeyValuePair<int,string>(3,"機密管理者"), |
|
107 |
// new KeyValuePair<int,string>(4,"一般使用者")}; |
|
108 |
#endregion |
|
109 |
#endregion |
|
110 |
|
|
111 |
#region エクセル使用時パス |
|
112 |
/// <summary> |
|
113 |
/// EXCELテンプレートファイル名 |
|
114 |
/// </summary> |
|
115 |
public static string s_ExcelOriginalFileName = @"\ProcessManage.xlsx"; |
|
116 |
/// <summary> |
|
117 |
/// エクセルフォルダ名 |
|
118 |
/// </summary> |
|
119 |
public static string s_ExecCurrentDirName = @"C:\Users\Default\Desktop\"; |
|
120 |
public static string s_SaveExecl = @"SaveExcel"; |
|
121 |
public static string s_ExecExcelDirName = @"見積もりエクセルデータ"; |
|
122 |
#endregion |
|
123 |
|
|
124 |
#region ワード使用時パス |
|
125 |
/// <summary> |
|
126 |
/// ワードフォルダ名 |
|
127 |
/// </summary> |
|
128 |
public static string s_SaveWord = @"SaveWord"; |
|
129 |
public static string s_ExecWordDirName = @"ワードデータ"; |
|
130 |
#endregion |
|
131 |
|
|
132 |
#region 保存ファイルタイプ |
|
133 |
/// <summary> |
|
134 |
/// 保存ファイルタイプ |
|
135 |
/// </summary> |
|
136 |
public enum SaveFileType |
|
137 |
{ |
|
138 |
/// <summary> |
|
139 |
/// EXCELファイル |
|
140 |
/// </summary> |
|
141 |
ExcelFile = 0, |
|
142 |
/// <summary> |
|
143 |
/// WORDファイル |
|
144 |
/// </summary> |
|
145 |
WordFile, |
|
146 |
} |
|
147 |
#endregion |
|
148 |
|
|
149 |
#region エラー・正常時の背景色定義 |
|
150 |
/// <summary> |
|
151 |
/// フィールドカラー |
|
152 |
/// </summary> |
|
153 |
/// <summary> |
|
154 |
/// エラー時色 |
|
155 |
/// </summary> |
|
156 |
public static Color s_clrError = Color.Red; |
|
157 |
/// <summary> |
|
158 |
/// 正常時色 |
|
159 |
/// </summary> |
|
160 |
public static Color s_clrNormal = Color.White; |
|
161 |
#endregion |
|
162 |
|
|
163 |
#region 掲示板:関連定義 |
|
164 |
/// <summary> |
|
165 |
/// 掲示板グリッド返信文字 |
|
166 |
/// </summary> |
|
167 |
public static string[] s_PageType1GridResString = new string[] { "返信あり", "Re:" }; |
|
168 |
|
|
169 |
/// <summary> |
|
170 |
/// 掲示板 システムメッセージ名称・コード |
|
171 |
/// </summary> |
|
172 |
public static int s_MsgBoardSystemCode = 99999998; |
|
173 |
public static string s_MsgBoardSystemNameFormat = "{0}からの連絡"; |
|
174 |
|
|
175 |
/// <summary> |
|
176 |
/// メッセージ全員対象 |
|
177 |
/// </summary> |
|
178 |
public static string s_AllMembersString = "全 員"; |
|
179 |
public static int s_AllMembersCode = 99999999; |
|
180 |
|
|
181 |
/// <summary> |
|
182 |
/// 社長室コード(部署コード) |
|
183 |
/// </summary> |
|
184 |
public static int s_PresidentsOffice = 7; |
|
185 |
|
|
186 |
/// <summary> |
|
187 |
/// 総務部コード(部署コード) |
|
188 |
/// </summary> |
|
189 |
public static int s_GeneralAffairsDevision = 4; |
|
190 |
|
|
191 |
/// <summary> |
|
192 |
/// メッセージリンク区分 |
|
193 |
/// </summary> |
|
194 |
public enum LinkType |
|
195 |
{ |
|
196 |
/// <summary> |
|
197 |
/// リンク無 |
|
198 |
/// </summary> |
|
199 |
Nothing = 0, |
|
200 |
/// <summary> |
|
201 |
/// 工事情報 |
|
202 |
/// </summary> |
|
203 |
ConstructionInfo, |
|
204 |
} |
|
205 |
|
|
206 |
/// <summary> |
|
207 |
/// メッセージフラグ区分 |
|
208 |
/// </summary> |
|
209 |
public enum MessageFlg |
|
210 |
{ |
|
211 |
/// <summary> |
|
212 |
/// 通常メッセージ |
|
213 |
/// </summary> |
|
214 |
Normal = 0, |
|
215 |
/// <summary> |
|
216 |
/// 秘書からの連絡メッセージ |
|
217 |
/// </summary> |
|
218 |
Secretary, |
|
219 |
} |
|
220 |
#endregion |
|
221 |
|
|
222 |
#region 行動予定 会社行事名称・コード |
|
223 |
/// <summary> |
|
224 |
/// 行動予定 会社行事名称・コード |
|
225 |
/// </summary> |
|
226 |
public static int s_CompanyActionCode = 99999999; |
|
227 |
public static string s_CompanyActionName = " 会 社 行 事 "; |
|
228 |
#endregion |
|
229 |
|
|
230 |
#region 行動予定 部署行事名称・コード |
|
231 |
/// <summary> |
|
232 |
/// 行動予定 部署行事名称・コード |
|
233 |
/// </summary> |
|
234 |
public static int s_DivisionActionCode = 99999998; |
|
235 |
public static string s_DivisionActionName = "検査・安全パトロール"; |
|
236 |
#endregion |
|
237 |
|
|
238 |
#region 印刷処理:戻り値定義 |
|
239 |
/// <summary> |
|
240 |
/// 返答値番号 |
|
241 |
/// </summary> |
|
242 |
public enum RetunAnswer |
|
243 |
{ |
|
244 |
Answer0 = 0, |
|
245 |
Answer1, |
|
246 |
Answer2, |
|
247 |
Answer3, |
|
248 |
Answer4, |
|
249 |
Answer5, |
|
250 |
Answer6, |
|
251 |
Answer7, |
|
252 |
Answer8, |
|
253 |
Answer9, |
|
254 |
AnswerA, |
|
255 |
AnswerB, |
|
256 |
AnswerC, |
|
257 |
AnswerE, |
|
258 |
AnswerF, |
|
259 |
} |
|
260 |
#endregion |
|
261 |
|
|
262 |
#region 担当者マスタ:社員区分 |
|
263 |
/// <summary> |
|
264 |
/// 社員区分 |
|
265 |
/// </summary> |
|
266 |
public enum EmployeeClassFlg |
|
267 |
{ |
|
268 |
/// <summary> |
|
269 |
/// 不定 |
|
270 |
/// </summary> |
|
271 |
None = 0, |
|
272 |
/// <summary> |
|
273 |
/// 正社員 |
|
274 |
/// </summary> |
|
275 |
Regular, |
|
276 |
/// <summary> |
|
277 |
/// 外注者 |
|
278 |
/// </summary> |
|
279 |
OutSource, |
|
280 |
} |
|
281 |
#endregion |
|
282 |
|
|
283 |
#region 法人格マスタ:法人格名称位置定義 |
|
284 |
/// <summary> |
|
285 |
/// 法人格名称位置 |
|
286 |
/// </summary> |
|
287 |
public enum StatusNamePoint |
|
288 |
{ |
|
289 |
None = 0, |
|
290 |
Forword, |
|
291 |
Back, |
|
292 |
} |
|
293 |
#endregion |
|
294 |
|
|
295 |
#region 区分マスタ:データ分け区分 |
|
296 |
/// <summary> |
|
297 |
/// 区分マスタ区分 |
|
298 |
/// </summary> |
|
299 |
public enum DivisionMasterCodeDefine |
|
300 |
{ |
|
301 |
/// <summary> |
|
302 |
/// 発注者区分登録 |
|
303 |
/// </summary> |
|
304 |
OrderDivision = 1, |
|
305 |
/// <summary> |
|
306 |
/// 工事種別登録 |
|
307 |
/// </summary> |
|
308 |
ConstructionClass = 2, |
|
309 |
/// <summary> |
|
310 |
/// 工事経費名称登録 |
|
311 |
/// </summary> |
|
312 |
ConstructionExpenses = 3, |
|
313 |
} |
|
314 |
/// <summary> |
|
315 |
/// 区分マスタ区分キー |
|
316 |
/// </summary> |
|
317 |
public static Dictionary<int, string> DivisionMasterCode = new Dictionary<int, string>(){ |
|
318 |
{1, "発注者区分登録"}, |
|
319 |
{2, "工事種別登録"}, |
|
320 |
{3, "工事経費名称登録"}, |
|
321 |
}; |
|
322 |
#endregion |
|
323 |
|
|
324 |
#region 期限マスタ:日付チェックタイミング |
|
325 |
/// <summary> |
|
326 |
/// 期限マスタ:日付チェックタイミング |
|
327 |
/// </summary> |
|
328 |
public enum TermDateCheckTiming |
|
329 |
{ |
|
330 |
/// <summary> |
|
331 |
/// 0:前日以前 |
|
332 |
/// </summary> |
|
333 |
CheckSchdule0 = 0, |
|
334 |
/// <summary> |
|
335 |
/// 1:当日 |
|
336 |
/// </summary> |
|
337 |
CheckSchdule1, |
|
338 |
/// <summary> |
|
339 |
/// 2:後日以降 |
|
340 |
/// </summary> |
|
341 |
CheckSchdule2, |
|
342 |
/// <summary> |
|
343 |
/// 3:後日以降継続 |
|
344 |
/// </summary> |
|
345 |
CheckSchdule3, |
|
346 |
} |
|
347 |
#endregion |
|
348 |
|
|
349 |
#region 期限マスタ:背景・文字色指定定義 |
|
350 |
/// <summary> |
|
351 |
/// 色の使用場所指定 |
|
352 |
/// </summary> |
|
353 |
public enum PalceOfColor |
|
354 |
{ |
|
355 |
BackColor = 0, // 背景色 |
|
356 |
ForeColor, // 文字色 |
|
357 |
OtherColor, // その他色 |
|
358 |
} |
|
359 |
#endregion |
|
360 |
|
|
361 |
#region 工事種別マスタ:公共工事種別 |
|
362 |
/// <summary> |
|
363 |
/// 工事種別マスタ:公共工事種別 |
|
364 |
/// </summary> |
|
365 |
public enum ConstructionType |
|
366 |
{ |
|
367 |
/// <summary> |
|
368 |
/// 0:その他 |
|
369 |
/// </summary> |
|
370 |
Other = 0, |
|
371 |
/// <summary> |
|
372 |
/// 1:公共 |
|
373 |
/// </summary> |
|
374 |
Community, |
|
375 |
/// <summary> |
|
376 |
/// 2:民間 |
|
377 |
/// </summary> |
|
378 |
Popular, |
|
379 |
} |
|
380 |
#endregion |
|
381 |
|
|
382 |
#region 承認処理:承認状態 |
|
383 |
/// <summary> |
|
384 |
/// 承認状態 |
|
385 |
/// </summary> |
|
386 |
public enum ApprovalStatus |
|
387 |
{ |
|
388 |
/// <summary> |
|
389 |
/// 申請中 |
|
390 |
/// </summary> |
|
391 |
Petition = 0, |
|
392 |
/// <summary> |
|
393 |
/// 保 留 |
|
394 |
/// </summary> |
|
395 |
Pending, |
|
396 |
/// <summary> |
|
397 |
/// 承 認 |
|
398 |
/// </summary> |
|
399 |
Approval, |
|
400 |
/// <summary> |
|
401 |
/// 不承認 |
|
402 |
/// </summary> |
|
403 |
NotApproval, |
|
404 |
/// <summary> |
|
405 |
/// 未 定 |
|
406 |
/// </summary> |
|
407 |
Undecided, |
|
408 |
/// <summary> |
|
409 |
/// 未申請 |
|
410 |
/// </summary> |
|
411 |
Unclaimed, |
|
412 |
} |
|
413 |
/// <summary> |
|
414 |
/// 申請状態色 |
|
415 |
/// </summary> |
|
416 |
public static Color[] ApprovalBackColorStatusColor = new Color[] { Color.Blue, Color.Yellow, Color.MediumSpringGreen, Color.Red, Color.LightSkyBlue, Color.LightBlue }; |
|
417 |
public static Color[] ApprovalForeColorStatusColor = new Color[] { Color.White, Color.Black, Color.Black, Color.Black, Color.Black, Color.Black }; |
|
418 |
|
|
419 |
/// <summary> |
|
420 |
/// 承認状態文字 |
|
421 |
/// </summary> |
|
422 |
public static readonly string[] ApprovalStatusString = new string[] { "申請中", "保 留", "承 認", "不承認", "未 定", "未申請" }; |
|
423 |
/// <summary> |
|
424 |
/// 申請ボタン表示文字 |
|
425 |
/// </summary> |
|
426 |
public static readonly string[] PetitionButtonString = new string[] { "未申請", "申請済" }; |
|
427 |
/// <summary> |
|
428 |
/// 承認ボタン表示文字 |
|
429 |
/// </summary> |
|
430 |
public static readonly string[] ApprovalButtonString = new string[] { "未承認", "承認済", "不承認" }; |
|
431 |
#endregion |
|
432 |
|
|
433 |
#region 起動時チェック:関連定義 |
|
434 |
/// <summary> |
|
435 |
/// 起動時日付チェックを必要とする処理のキー |
|
436 |
/// </summary> |
|
437 |
public static Dictionary<int, string> ExePrimaryCode = new Dictionary<int, string>() { { 1, "初回起動日付" } }; |
|
438 |
#endregion |
|
439 |
|
|
440 |
#region 管理マスタ:工事番号基準値 |
|
441 |
/// <summary> |
|
442 |
/// 工事番号基準値 0:営業期数 1:工事年度 |
|
443 |
/// </summary> |
|
444 |
public enum SystemConstructionNoBase |
|
445 |
{ |
|
446 |
/// <summary> |
|
447 |
/// 0:営業期数 |
|
448 |
/// </summary> |
|
449 |
BusinessPeriod = 0, |
|
450 |
/// <summary> |
|
451 |
/// 1:工事年度 |
|
452 |
/// </summary> |
|
453 |
ConstructionYear, |
|
454 |
} |
|
455 |
#endregion |
|
456 |
|
|
457 |
#region 工事基本情報:施工案件状態定義 |
|
458 |
#region 施工案件状態キー定義配列 |
|
459 |
/// <summary> |
|
460 |
/// 施工案件状態キー定義配列 |
|
461 |
/// </summary> |
|
462 |
public enum StatNumArray |
|
463 |
{ |
|
464 |
/// <summary> |
|
465 |
/// 依頼受け中 |
|
466 |
/// </summary> |
|
467 |
Status0 = 0, |
|
468 |
/// <summary> |
|
469 |
/// 見積提出 |
|
470 |
/// </summary> |
|
471 |
Status1, |
|
472 |
/// <summary> |
|
473 |
/// 一般補修工事 |
|
474 |
/// </summary> |
|
475 |
Status2, |
|
476 |
/// <summary> |
|
477 |
/// 仮 受 注 |
|
478 |
/// </summary> |
|
479 |
Status3, |
|
480 |
/// <summary> |
|
481 |
/// 受 注 |
|
482 |
/// </summary> |
|
483 |
Status4, |
|
484 |
/// <summary> |
|
485 |
/// 部署引継 |
|
486 |
/// </summary> |
|
487 |
Status5, |
|
488 |
/// <summary> |
|
489 |
/// 施工準備 |
|
490 |
/// </summary> |
|
491 |
Status6, |
|
492 |
/// <summary> |
|
493 |
/// 施工開始 |
|
494 |
/// </summary> |
|
495 |
Status7, |
|
496 |
/// <summary> |
|
497 |
/// 施工完了 |
|
498 |
/// </summary> |
|
499 |
Status8, |
|
500 |
/// <summary> |
|
501 |
/// 請求準備 |
|
502 |
/// </summary> |
|
503 |
Status9, |
|
504 |
/// <summary> |
|
505 |
/// 請求完了 |
|
506 |
/// </summary> |
|
507 |
Status10, |
|
508 |
/// <summary> |
|
509 |
/// 非 受 注 |
|
510 |
/// </summary> |
|
511 |
Status11, |
|
512 |
/// <summary> |
|
513 |
/// 総務入金確認 |
|
514 |
/// </summary> |
|
515 |
Status12, |
|
516 |
/// <summary> |
|
517 |
/// 担当者入金確認完了 |
|
518 |
/// </summary> |
|
519 |
Status13, |
|
520 |
/// <summary> |
|
521 |
/// リザーブ |
|
522 |
/// </summary> |
|
523 |
Status14, |
|
524 |
/// <summary> |
|
525 |
/// リザーブ |
|
526 |
/// </summary> |
|
527 |
Status15, |
|
528 |
/// <summary> |
|
529 |
/// 空家補修工事 |
|
530 |
/// </summary> |
|
531 |
Status16, |
|
532 |
/// <summary> |
|
533 |
/// Hit'sV工事 |
|
534 |
/// </summary> |
|
535 |
Status17, |
|
536 |
}; |
|
537 |
#endregion |
|
538 |
|
|
539 |
#region 施工案件状態Dictionary |
|
540 |
/// <summary> |
|
541 |
/// 施工案件状態Dictionary |
|
542 |
/// </summary> |
|
543 |
#region 旧施工案件状態 |
|
544 |
//public static Dictionary<int, string> ConstructionProjectsStatus_OLD = new Dictionary<int, string>() |
|
545 |
// { |
|
546 |
// {0, "依頼受"}, |
|
547 |
// {1, "見積提出"}, |
|
548 |
// {2, "受注"}, |
|
549 |
// {3, "非受注"}, |
|
550 |
// {4, "施工開始"}, |
|
551 |
// {5, "施工完了"}, |
|
552 |
// {6, "入札物件"}, |
|
553 |
// {7, "営繕部継続工事"}, |
|
554 |
// }; |
|
555 |
//public static Dictionary<int, string> ConstructionProjectsStatus = new Dictionary<int, string>() 入札物件追加 |
|
556 |
// { |
|
557 |
// {0, "依頼受"}, |
|
558 |
// {1, "入札物件"}, |
|
559 |
// {2, "見積提出"}, |
|
560 |
// {3, "受注"}, |
|
561 |
// {4, "営繕部継続工事"}, |
|
562 |
// {5, "施工開始"}, |
|
563 |
// {6, "施工完了"}, |
|
564 |
// {7, "非受注"}, |
|
565 |
// }; |
|
566 |
//public static Dictionary<int, string> ConstructionProjectsStatus = new Dictionary<int, string>() 12/02 入札物件見積種別へ移動 |
|
567 |
// { |
|
568 |
// {0, "依頼受"}, |
|
569 |
// {1, "入札物件"}, |
|
570 |
// {2, "見積提出"}, |
|
571 |
// {3, "受注"}, |
|
572 |
// {4, "受注-部署引継中"}, |
|
573 |
// {5, "施工開始"}, |
|
574 |
// {6, "施工完了"}, |
|
575 |
// {7, "非受注"}, |
|
576 |
// {8, "営繕部継続工事"}, |
|
577 |
// }; |
|
578 |
//public static Dictionary<int, string> ConstructionProjectsStatus = new Dictionary<int, string>() 12/11 施工準備・請求準備追加 |
|
579 |
// { |
|
580 |
// {0, "依頼受け中"}, // 1 |
|
581 |
// {1, "見積提出"}, // 2 |
|
582 |
// {2, "受注-部署引継中"}, // 3 |
|
583 |
// {3, "受 注"}, // 4 |
|
584 |
// {4, "施工開始"}, // 6 |
|
585 |
// {5, "施工完了"}, // 7 |
|
586 |
// {6, "営繕部継続工事"}, // 8 |
|
587 |
// {7, "非 受 注"}, // 5 |
|
588 |
// {8, "請求完了"}, // 9 |
|
589 |
// }; |
|
590 |
//public static Dictionary<int, string> ConstructionProjectsStatus = new Dictionary<int, string>(){ 12/16 仮受注追加 |
|
591 |
// {0, "依頼受け中"}, // 0 |
|
592 |
// {1, "見積提出"}, // 1 |
|
593 |
// {2, "営繕部継続工事"}, // 8 |
|
594 |
// {3, "受 注"}, // 2 |
|
595 |
// {4, "部署引継"}, // 4 |
|
596 |
// {5, "施工準備"}, // 5 |
|
597 |
// {6, "施工開始"}, // 6 |
|
598 |
// {7, "施工完了"}, // 7 |
|
599 |
// {8, "請求準備"}, // 9 |
|
600 |
// {9, "請求完了"}, // 10 |
|
601 |
// {10, "非 受 注"}, // 3 |
|
602 |
// }; |
|
603 |
//public static readonly Dictionary<int, string> ProjectsStatus = new Dictionary<int, string>(){ |
|
604 |
// {0, "依頼受け中"}, // 工事基本情報ラジオボタン:0 |
|
605 |
// {1, "見積提出"}, // 工事基本情報ラジオボタン:1 |
|
606 |
// {2, "営繕部継続工事"}, // 工事基本情報ラジオボタン:8 |
|
607 |
// {3, "仮 受 注"}, // 工事基本情報ラジオボタン:11 |
|
608 |
// {4, "受 注"}, // 工事基本情報ラジオボタン:2 |
|
609 |
// {5, "部署引継"}, // 工事基本情報ラジオボタン:4 |
|
610 |
// {6, "施工準備"}, // 工事基本情報ラジオボタン:5 |
|
611 |
// {7, "施工開始"}, // 工事基本情報ラジオボタン:6 |
|
612 |
// {8, "施工完了"}, // 工事基本情報ラジオボタン:7 |
|
613 |
// {9, "請求準備"}, // 工事基本情報ラジオボタン:9 |
|
614 |
// {10, "請求完了"}, // 工事基本情報ラジオボタン:10 |
|
615 |
// {11, "非 受 注"}, // 工事基本情報ラジオボタン:3 |
|
616 |
// {12, "総務入金確認"}, // 工事基本情報ラジオボタン:12 |
|
617 |
// {13, "担当者入金確認完了"}, // 工事基本情報ラジオボタン:13 |
|
618 |
// }; |
|
619 |
#endregion |
|
620 |
public static readonly Dictionary<int, string> ProjectsStatus = new Dictionary<int, string>(){ |
|
621 |
{0, "依頼受け中"}, // 工事基本情報ラジオボタン:0 |
|
622 |
{1, "見積提出"}, // 工事基本情報ラジオボタン:1 |
|
623 |
{2, "一般補修工事"}, // 工事基本情報ラジオボタン:8 |
|
624 |
{3, "仮 受 注"}, // 工事基本情報ラジオボタン:11 |
|
625 |
{4, "受 注"}, // 工事基本情報ラジオボタン:2 |
|
626 |
{5, "部署引継"}, // 工事基本情報ラジオボタン:4 |
|
627 |
{6, "施工準備"}, // 工事基本情報ラジオボタン:5 |
|
628 |
{7, "施工開始"}, // 工事基本情報ラジオボタン:6 |
|
629 |
{8, "施工完了"}, // 工事基本情報ラジオボタン:7 |
|
630 |
{9, "請求準備"}, // 工事基本情報ラジオボタン:9 |
|
631 |
{10, "請求完了"}, // 工事基本情報ラジオボタン:10 |
|
632 |
{11, "非 受 注"}, // 工事基本情報ラジオボタン:3 |
|
633 |
{12, "総務入金確認"}, // 工事基本情報ラジオボタン:12 |
|
634 |
{13, "担当者入金確認完了"}, // 工事基本情報ラジオボタン:13 |
|
635 |
//{14, ""}, // 工事基本情報ラジオボタン:14 |
|
636 |
//{15, ""}, // 工事基本情報ラジオボタン:15 |
|
637 |
{16, "空家補修工事"}, // 工事基本情報ラジオボタン:16 |
|
638 |
{17, "Hit'sV工事"}, // 工事基本情報ラジオボタン:17 |
|
639 |
}; |
|
640 |
#endregion |
|
641 |
#endregion |
|
642 |
|
|
643 |
#region 工事基本情報:日付項目テーブル |
|
644 |
#region 旧データ |
|
645 |
//public static Dictionary<int, string> BaseInfoDateNameNo = new Dictionary<int, string>(){ 2016/01/05 14:開始予定日追加->5:へ移動 |
|
646 |
// {1,"RequestedDate"}, |
|
647 |
// {2,"EstimatesSubmitDeadline"}, |
|
648 |
// {3,"EstimatesSubmittedDate"}, |
|
649 |
// {4,"OrderDate"}, |
|
650 |
// {5,"OrderCompletionDate"}, |
|
651 |
// {6,"ConstructionStartingDate"}, |
|
652 |
// {7,"ConstructionCompletionDate"}, |
|
653 |
// {8,"TransferConstructionDate"}, |
|
654 |
// {9,"EstimatesExpirationDate"}, |
|
655 |
// {10,"ConstructionPeriodStart"}, |
|
656 |
// {11,"ConstructionPeriodEnd"}, |
|
657 |
// {12,"BillingStartDate"}, |
|
658 |
// {13,"BillingDate"}, |
|
659 |
// {14, "OrderStartingDate"}, |
|
660 |
// }; |
|
661 |
//public static Dictionary<string, int> BaseInfoDateNoName = new Dictionary<string, int>(){ |
|
662 |
// {"RequestedDate", 1}, |
|
663 |
// {"EstimatesSubmitDeadline", 2}, |
|
664 |
// {"EstimatesSubmittedDate", 3}, |
|
665 |
// {"OrderDate", 4}, |
|
666 |
// {"OrderCompletionDate", 5}, |
|
667 |
// {"ConstructionStartingDate", 6}, |
|
668 |
// {"ConstructionCompletionDate", 7}, |
|
669 |
// {"TransferConstructionDate", 8}, |
|
670 |
// {"EstimatesExpirationDate", 9}, |
|
671 |
// {"ConstructionPeriodStart",10}, |
|
672 |
// {"ConstructionPeriodEnd", 11}, |
|
673 |
// {"BillingStartDate",12}, |
|
674 |
// {"BillingDate", 13}, |
|
675 |
// {"OrderStartingDate", 14}, |
|
676 |
// }; |
|
677 |
///// <summary> |
|
678 |
///// 工事基本情報日付項目名称テーブル |
|
679 |
///// </summary> |
|
680 |
//public static Dictionary<string, string> BaseInfoDateName = new Dictionary<string, string>(){ |
|
681 |
// {"RequestedDate","依頼受け日"}, |
|
682 |
// {"EstimatesSubmitDeadline","見積提出期限"}, |
|
683 |
// {"EstimatesSubmittedDate","見積提出日"}, |
|
684 |
// {"OrderDate","受注日"}, |
|
685 |
// {"OrderCompletionDate","完了予定日"}, |
|
686 |
// {"ConstructionStartingDate","施工開始日"}, |
|
687 |
// {"ConstructionCompletionDate","施工完了日"}, |
|
688 |
// {"TransferConstructionDate","工事移管日"}, |
|
689 |
// {"EstimatesExpirationDate","見積有効期限"}, |
|
690 |
// {"ConstructionPeriodStart","契約工期開始"}, |
|
691 |
// {"ConstructionPeriodEnd","契約工期完了"}, |
|
692 |
// {"BillingStartDate","請求準備開始日"}, |
|
693 |
// {"BillingDate", "請求日"}, |
|
694 |
// {"OrderStartingDate","開始予定日"}, |
|
695 |
// }; |
|
696 |
#endregion |
|
697 |
/// <summary> |
|
698 |
/// 工事基本情報日付項目テーブル |
|
699 |
/// </summary> |
|
700 |
public static Dictionary<int, string> BaseInfoDateNameNo = new Dictionary<int, string>(){ |
|
701 |
{1,"RequestedDate"}, |
|
702 |
{2,"EstimatesSubmitDeadline"}, |
|
703 |
{3,"EstimatesSubmittedDate"}, |
|
704 |
{4,"OrderDate"}, |
|
705 |
{5, "OrderStartingDate"}, |
|
706 |
{6,"OrderCompletionDate"}, |
|
707 |
{7,"ConstructionStartingDate"}, |
|
708 |
{8,"ConstructionCompletionDate"}, |
|
709 |
{9,"TransferConstructionDate"}, |
|
710 |
{10,"EstimatesExpirationDate"}, |
|
711 |
{11,"ConstructionPeriodStart"}, |
|
712 |
{12,"ConstructionPeriodEnd"}, |
|
713 |
{13,"BillingStartDate"}, |
|
714 |
{14,"BillingDate"}, |
|
715 |
{15,"ConstrPreparationDate"}, // 2016/10/07 追加 |
|
716 |
}; |
|
717 |
/// <summary> |
|
718 |
/// 工事基本情報日付項目名称テーブル |
|
719 |
/// </summary> |
|
720 |
public static Dictionary<string, string> BaseInfoDateName = new Dictionary<string, string>(){ |
|
721 |
{"RequestedDate","依頼受け日"}, |
|
722 |
{"EstimatesSubmitDeadline","見積提出期限"}, |
|
723 |
{"EstimatesSubmittedDate","見積提出日"}, |
|
724 |
{"OrderDate","受注日"}, |
|
725 |
{"OrderStartingDate","開始予定日"}, |
|
726 |
{"OrderCompletionDate","完了予定日"}, |
|
727 |
{"ConstrPreparationDate","施工開始準備日"}, |
|
728 |
{"ConstructionStartingDate","施工開始日"}, |
|
729 |
{"ConstructionCompletionDate","施工完了日"}, |
|
730 |
{"TransferConstructionDate","工事移管日"}, |
|
731 |
{"EstimatesExpirationDate","見積有効期限"}, |
|
732 |
{"ConstructionPeriodStart","契約工期開始"}, |
|
733 |
{"ConstructionPeriodEnd","契約工期完了"}, |
|
734 |
{"BillingStartDate","請求準備開始日"}, |
|
735 |
{"BillingDate", "請求日"}, |
|
736 |
}; |
|
737 |
/// <summary> |
|
738 |
/// 工事基本情報データチェック対象日付テーブル |
|
739 |
/// </summary> |
|
740 |
public enum ConstructionBaseInfo_DateNo |
|
741 |
{ |
|
742 |
/// <summary> |
|
743 |
/// 1:依頼受け日 |
|
744 |
/// </summary> |
|
745 |
RequestedDate = 1, |
|
746 |
/// <summary> |
|
747 |
/// 2:見積提出期限 |
|
748 |
/// </summary> |
|
749 |
EstimatesSubmitDeadline, |
|
750 |
/// <summary> |
|
751 |
/// 3:見積提出日 |
|
752 |
/// </summary> |
|
753 |
EstimatesSubmittedDate, |
|
754 |
/// <summary> |
|
755 |
/// 4:受注日 |
|
756 |
/// </summary> |
|
757 |
OrderDate, |
|
758 |
/// <summary> |
|
759 |
/// 5:開始予定日 |
|
760 |
/// </summary> |
|
761 |
OrderStartingDate, |
|
762 |
/// <summary> |
|
763 |
/// 6:完了予定日 |
|
764 |
/// </summary> |
|
765 |
OrderCompletionDate, |
|
766 |
/// <summary> |
|
767 |
/// 7:施工開始日 |
|
768 |
/// </summary> |
|
769 |
ConstructionStartingDate, |
|
770 |
/// <summary> |
|
771 |
/// 8:施工完了日 |
|
772 |
/// </summary> |
|
773 |
ConstructionCompletionDate, |
|
774 |
/// <summary> |
|
775 |
/// 9:工事移管日 |
|
776 |
/// </summary> |
|
777 |
TransferConstructionDate, |
|
778 |
/// <summary> |
|
779 |
/// 10:見積有効期限 |
|
780 |
/// </summary> |
|
781 |
EstimatesExpirationDate, |
|
782 |
/// <summary> |
|
783 |
/// 11:契約工期開始 |
|
784 |
/// </summary> |
|
785 |
ConstructionPeriodStart, |
|
786 |
/// <summary> |
|
787 |
/// 12:契約工期完了 |
|
788 |
/// </summary> |
|
789 |
ConstructionPeriodEnd, |
|
790 |
/// <summary> |
|
791 |
/// 13:請求準備開始日 |
|
792 |
/// </summary> |
|
793 |
BillingStartDate, |
|
794 |
/// <summary> |
|
795 |
/// 14:請求日 |
|
796 |
/// </summary> |
|
797 |
BillingDate, |
|
798 |
/// <summary> |
|
799 |
/// 15:施工開始準備日 |
|
800 |
/// </summary> |
|
801 |
ConstrPreparationDate, |
|
802 |
} |
|
803 |
#endregion |
|
804 |
|
|
805 |
#region 工事基本情報:消費税フラグ |
|
806 |
/// <summary> |
|
807 |
/// 消費税フラグ 0:含まない 1:含む |
|
808 |
/// </summary> |
|
809 |
public enum BaseInfoConsumptionTaxFlg |
|
810 |
{ |
|
811 |
/// <summary> |
|
812 |
/// 0:含まない |
|
813 |
/// </summary> |
|
814 |
NotInclue = 0, |
|
815 |
/// <summary> |
|
816 |
/// 1:含む |
|
817 |
/// </summary> |
|
818 |
Include, |
|
819 |
} |
|
820 |
#endregion |
|
821 |
|
|
822 |
#region 工事基本情報:営業経費発生フラグ |
|
823 |
/// <summary> |
|
824 |
/// 営業経費発生フラグ 0:発生しない 1:発生する |
|
825 |
/// </summary> |
|
826 |
public enum BaseInfoSalesCostFlg |
|
827 |
{ |
|
828 |
/// <summary> |
|
829 |
/// 0:発生しない |
|
830 |
/// </summary> |
|
831 |
NotOn = 0, |
|
832 |
/// <summary> |
|
833 |
/// 1:発生する |
|
834 |
/// </summary> |
|
835 |
On, |
|
836 |
} |
|
837 |
#endregion |
|
838 |
|
|
839 |
#region 工事基本情報:見積種別 |
|
840 |
/// <summary> |
|
841 |
/// 見積種別 0:通常見積 1:入札物件 2:予算取り見積 |
|
842 |
/// </summary> |
|
843 |
public enum BaseInfoEstimateType |
|
844 |
{ |
|
845 |
/// <summary> |
|
846 |
/// 0:通常見積 |
|
847 |
/// </summary> |
|
848 |
Normal = 0, |
|
849 |
/// <summary> |
|
850 |
/// 1:入札物件 |
|
851 |
/// </summary> |
|
852 |
Didding, |
|
853 |
/// <summary> |
|
854 |
/// 2:予算取り見積 |
|
855 |
/// </summary> |
|
856 |
GetBudget, |
|
857 |
} |
|
858 |
#endregion |
|
859 |
|
|
860 |
#region 工事基本情報:請求回数フラグ |
|
861 |
/// <summary> |
|
862 |
/// 請求回数フラグ 0:分割請求 1:一括請求 |
|
863 |
/// </summary> |
|
864 |
public enum BaseInfoBillingSplitFlg |
|
865 |
{ |
|
866 |
/// <summary> |
|
867 |
/// 0:一括請求 |
|
868 |
/// </summary> |
|
869 |
AllOnBilling = 0, |
|
870 |
/// <summary> |
|
871 |
/// 1:分割請求 |
|
872 |
/// </summary> |
|
873 |
SplitBilling, |
|
874 |
} |
|
875 |
#endregion |
|
876 |
|
|
877 |
#region 工事基本情報:見積有効期限(月) |
|
878 |
/// <summary> |
|
879 |
/// 見積有効期限(月) |
|
880 |
/// </summary> |
|
881 |
public static int s_EstimatesExpirationDeadline = 3; |
|
882 |
#endregion |
|
883 |
|
|
884 |
#region 見積書入力:タブカテゴリ定義値 |
|
885 |
/// <summary> |
|
886 |
/// 見積入力:大項目・中項目・小項目 |
|
887 |
/// </summary> |
|
888 |
public enum TabCotegory |
|
889 |
{ |
|
890 |
Total = 0, |
|
891 |
Component, |
|
892 |
Item, |
|
893 |
Spec, |
|
894 |
} |
|
895 |
#endregion |
|
896 |
|
|
897 |
#region 見積書入力:経費フラグ |
|
898 |
/// <summary> |
|
899 |
/// 見積書入力:Other:経費外 Expenses:経費対象 |
|
900 |
/// </summary> |
|
901 |
public enum MyExpenses |
|
902 |
{ |
|
903 |
/// <summary> |
|
904 |
/// 0:経費外 |
|
905 |
/// </summary> |
|
906 |
Other = 0, |
|
907 |
/// <summary> |
|
908 |
/// 1:自社経費 |
|
909 |
/// </summary> |
|
910 |
Expenses, |
|
911 |
} |
|
912 |
#endregion |
|
913 |
|
|
914 |
#region 見積書入力:入力フラグ |
|
915 |
/// <summary> |
|
916 |
/// 見積書入力:Protect:入力不可 Input:入力可 |
|
917 |
/// </summary> |
|
918 |
public enum DirectInput |
|
919 |
{ |
|
920 |
/// <summary> |
|
921 |
/// 0:入力不可 |
|
922 |
/// </summary> |
|
923 |
Protect = 0, |
|
924 |
/// <summary> |
|
925 |
/// 1:入力可 |
|
926 |
/// </summary> |
|
927 |
Input, |
|
928 |
} |
|
929 |
#endregion |
|
930 |
|
|
931 |
#region 見積書入力:下位項目フラグ |
|
932 |
/// <summary> |
|
933 |
/// 見積書入力:0:下位項目なし 1:下位項目有 |
|
934 |
/// </summary> |
|
935 |
public enum SubItems |
|
936 |
{ |
|
937 |
/// <summary> |
|
938 |
/// 0:下位項目なし |
|
939 |
/// </summary> |
|
940 |
NoItem = 0, |
|
941 |
/// <summary> |
|
942 |
/// 1:下位項目有 |
|
943 |
/// </summary> |
|
944 |
ExistItem, |
|
945 |
} |
|
946 |
#endregion |
|
947 |
|
|
948 |
#region 協力業者サブフォーム等:自社施工・自社経費使用定義 |
|
949 |
/// <summary> |
|
950 |
/// 自社系定義番号 |
|
951 |
/// </summary> |
|
952 |
public enum AmountMoneyNo |
|
953 |
{ |
|
954 |
/// <summary> |
|
955 |
/// 未割当 |
|
956 |
/// </summary> |
|
957 |
NonAssign = 0, |
|
958 |
/// <summary> |
|
959 |
/// 自社施工 |
|
960 |
/// </summary> |
|
961 |
MyCosts, |
|
962 |
/// <summary> |
|
963 |
/// 自社経費 |
|
964 |
/// </summary> |
|
965 |
MyExpense, |
|
966 |
/// <summary> |
|
967 |
/// 業者未定 |
|
968 |
/// </summary> |
|
969 |
UnDecided, |
|
970 |
} |
|
971 |
/// <summary> |
|
972 |
/// 自社系定義リスト |
|
973 |
/// </summary> |
|
974 |
public static List<KeyValuePair<int, string>> s_AmountMoney = new List<KeyValuePair<int, string>>(){ |
|
975 |
new KeyValuePair<int,string>(0,"未 割 当"), |
|
976 |
new KeyValuePair<int,string>(-1,"自社施工費"), |
|
977 |
new KeyValuePair<int,string>(-2,"自 社 経 費"), |
|
978 |
new KeyValuePair<int,string>(-3,"業 者 未 定")}; |
|
979 |
#endregion |
|
980 |
|
|
981 |
#region 注文書入力:注文書種別 |
|
982 |
/// <summary> |
|
983 |
/// 注文書種別タイプ |
|
984 |
/// </summary> |
|
985 |
public enum OrderSheetType |
|
986 |
{ |
|
987 |
/// <summary> |
|
988 |
/// 簡易版 |
|
989 |
/// </summary> |
|
990 |
SimpleType = 0, |
|
991 |
/// <summary> |
|
992 |
/// 正規版 |
|
993 |
/// </summary> |
|
994 |
RegularType, |
|
995 |
} |
|
996 |
#endregion |
|
997 |
|
|
998 |
#region 注文書入力:発注条件固定文字 |
|
999 |
/// <summary> |
|
1000 |
/// 発注条件固定文字 |
|
1001 |
/// </summary> |
|
1002 |
public static string[] Group4GridStaticString = new string[]{"貴社の責による工期の増減は認められません。", |
|
1003 |
"駐車場は貴社にて確保願います。", |
|
1004 |
"乗り合うなどの車両台数も極力減らすこと。", |
|
1005 |
"安全衛生書類を工事着手までに提出すること。", |
|
1006 |
"公共工事標準仕様書(最新版)に則り施工のこと。"}; |
|
1007 |
#endregion |
|
1008 |
|
|
1009 |
#region 交通費及び購入品等入力:データ種別 |
|
1010 |
/// <summary> |
|
1011 |
/// 交通費及び購入品等入力:データ種別 |
|
1012 |
/// </summary> |
|
1013 |
public enum CostDataNo |
|
1014 |
{ |
|
1015 |
/// <summary> |
|
1016 |
/// 交通費 |
|
1017 |
/// </summary> |
|
1018 |
Transport = 1, |
|
1019 |
/// <summary> |
|
1020 |
/// 購入品費 |
|
1021 |
/// </summary> |
|
1022 |
Purchase, |
|
1023 |
/// <summary> |
|
1024 |
/// 車両リース代 |
|
1025 |
/// </summary> |
|
1026 |
Lease, |
|
1027 |
/// <summary> |
|
1028 |
/// 駐車場・資材置き場代 |
|
1029 |
/// </summary> |
|
1030 |
StoragePlace, |
|
1031 |
/// <summary> |
|
1032 |
/// 宿泊費 |
|
1033 |
/// </summary> |
|
1034 |
Lodging, |
|
1035 |
} |
|
1036 |
|
|
1037 |
/// <summary> |
|
1038 |
/// データ種別 |
|
1039 |
/// </summary> |
|
1040 |
public static readonly string[] CostDataNoString = new string[] { "", "交 通 費", "購入品費", "車両リース代", "駐車場・資材置き場代", "宿泊費" }; |
|
1041 |
#endregion |
|
1042 |
|
|
1043 |
#region 入力履歴等:データ種別 |
|
1044 |
/// <summary> |
|
1045 |
/// 入力履歴等:データ種別 |
|
1046 |
/// </summary> |
|
1047 |
public enum SearchLogDataType |
|
1048 |
{ |
|
1049 |
/// <summary> |
|
1050 |
/// 固定コード |
|
1051 |
/// </summary> |
|
1052 |
FixCode = 0, |
|
1053 |
/// <summary> |
|
1054 |
/// 協力会社コード |
|
1055 |
/// </summary> |
|
1056 |
Subconstractor, |
|
1057 |
/// <summary> |
|
1058 |
/// 担当者コード |
|
1059 |
/// </summary> |
|
1060 |
Person, |
|
1061 |
} |
|
1062 |
#endregion |
|
1063 |
|
|
1064 |
#region 工数単位日数 |
|
1065 |
/// <summary> |
|
1066 |
/// 工数単位日数 |
|
1067 |
/// </summary> |
|
1068 |
public static double s_ManHourUnitDays = 3.0; |
|
1069 |
/// <summary> |
|
1070 |
/// 月工数単位日数 |
|
1071 |
/// </summary> |
|
1072 |
public static double s_ManHourUnitMonth = 30.0; |
|
1073 |
#endregion |
|
1074 |
|
|
1075 |
#region 1カ月の稼働日 |
|
1076 |
/// <summary> |
|
1077 |
/// 1カ月の稼働日 |
|
1078 |
/// </summary> |
|
1079 |
public static int s_WorkingDaysOfMonth = 25; |
|
1080 |
#endregion |
|
1081 |
|
|
1082 |
#region 出勤補正値係数 |
|
1083 |
/// <summary> |
|
1084 |
/// 出勤補正値係数 |
|
1085 |
/// </summary> |
|
1086 |
public static double s_SalaryCorrection = 1.1; |
|
1087 |
#endregion |
|
1088 |
|
|
1089 |
#region 工事予算書:日付選択 |
|
1090 |
/// <summary> |
|
1091 |
/// 工事予算書:日付選択 |
|
1092 |
/// </summary> |
|
1093 |
public enum SelectConstructioDate |
|
1094 |
{ |
|
1095 |
/// <summary> |
|
1096 |
/// 契約日付 |
|
1097 |
/// </summary> |
|
1098 |
Agreement = 0, |
|
1099 |
/// <summary> |
|
1100 |
/// 見積日付 |
|
1101 |
/// </summary> |
|
1102 |
Estimates, |
|
1103 |
/// <summary> |
|
1104 |
/// 入力日付 |
|
1105 |
/// </summary> |
|
1106 |
InputDate, |
|
1107 |
} |
|
1108 |
#endregion |
|
1109 |
|
|
1110 |
#region 工事予算書:給与振分区分 |
|
1111 |
/// <summary> |
|
1112 |
/// 給与振分区分 |
|
1113 |
/// </summary> |
|
1114 |
public enum SalaryDevision |
|
1115 |
{ |
|
1116 |
/// <summary> |
|
1117 |
/// 全日振分 |
|
1118 |
/// </summary> |
|
1119 |
All = 0, |
|
1120 |
/// <summary> |
|
1121 |
/// 振分無 |
|
1122 |
/// </summary> |
|
1123 |
Noting, |
|
1124 |
/// <summary> |
|
1125 |
/// 日数入力 |
|
1126 |
/// </summary> |
|
1127 |
DaysInput, |
|
1128 |
} |
|
1129 |
#endregion |
|
1130 |
|
|
1131 |
#region 工事予算書:工事担当者給与月表示フォーマット(工事内容) |
|
1132 |
/// <summary> |
|
1133 |
/// 工事担当者給与月表示フォーマット(工事内容) |
|
1134 |
/// </summary> |
|
1135 |
public static string s_SalaryCostMonthlyFormat = "{0}ヶ月×¥{1}円"; |
|
1136 |
#endregion |
|
1137 |
|
|
1138 |
#region 工事予算書:工事担当者給与日表示フォーマット(工事内容) |
|
1139 |
/// <summary> |
|
1140 |
/// 工事担当者給与日表示フォーマット(工事内容) |
|
1141 |
/// </summary> |
|
1142 |
public static string s_SalaryCostDaylyFormat = "{0}日×¥{1}円"; |
|
1143 |
#endregion |
|
1144 |
|
|
1145 |
#region 日報入力:データ区分 |
|
1146 |
/// <summary> |
|
1147 |
/// 日報入力:データ区分 |
|
1148 |
/// </summary> |
|
1149 |
public enum DailyInputFlg |
|
1150 |
{ |
|
1151 |
/// <summary> |
|
1152 |
/// 公共 |
|
1153 |
/// </summary> |
|
1154 |
Communal = 0, |
|
1155 |
/// <summary> |
|
1156 |
/// 民間 |
|
1157 |
/// </summary> |
|
1158 |
Popular, |
|
1159 |
/// <summary> |
|
1160 |
/// 巡回 |
|
1161 |
/// </summary> |
|
1162 |
Route, |
|
1163 |
} |
|
1164 |
#endregion |
|
1165 |
|
|
1166 |
#region プロセス起動カウント |
|
1167 |
/// <summary> |
|
1168 |
/// プロセス起動カウント |
|
1169 |
/// </summary> |
|
1170 |
public static int s_NumberOfProcess = 8; |
|
1171 |
#endregion |
|
1172 |
|
|
1173 |
#region セル計算結果表示フォーマット |
|
1174 |
/// <summary> |
|
1175 |
/// セル計算結果表示フォーマット |
|
1176 |
/// </summary> |
|
1177 |
public static string s_CalculateCellFormat = "平均:{0} データ個数:{1} 合計:{2}"; |
|
1178 |
#endregion |
|
1179 |
|
|
1180 |
#region 修正モード名称 |
|
1181 |
/// <summary> |
|
1182 |
/// 修正モード名称 |
|
1183 |
/// </summary> |
|
1184 |
public static string EditModeStringNew = "新規"; |
|
1185 |
public static string EditModeStringEdit = "修正"; |
|
1186 |
#endregion |
|
1187 |
|
|
1188 |
#region 1ページ初期行数 |
|
1189 |
/// <summary> |
|
1190 |
/// 1ページ初期行数 |
|
1191 |
/// </summary> |
|
1192 |
public static int s_MaxInitLineCount = 40; |
|
1193 |
public static int s_MaxInitLineCountMastamente = 60; |
|
1194 |
#endregion |
|
1195 |
|
|
1196 |
#region 未定時文字 |
|
1197 |
/// <summary> |
|
1198 |
/// 未定時文字 |
|
1199 |
/// </summary> |
|
1200 |
public static string s_UndecidedString = "未定"; |
|
1201 |
#endregion |
|
1202 |
|
|
1203 |
#region 指導員月金額 |
|
1204 |
/// <summary> |
|
1205 |
/// 指導員月金額 |
|
1206 |
/// </summary> |
|
1207 |
public static int InstructorMonthryCost = 100000; |
|
1208 |
#endregion |
|
1209 |
|
|
1210 |
#region 副担当月金額 |
|
1211 |
/// <summary> |
|
1212 |
/// 副担当月金額 |
|
1213 |
/// </summary> |
|
1214 |
public static int AssistantMonthryCost = 100000; |
|
1215 |
#endregion |
|
1216 |
|
|
1217 |
#region 協力会社マスタ:協力業者支払区分 |
|
1218 |
/// <summary> |
|
1219 |
/// 協力業者支払区分 |
|
1220 |
/// </summary> |
|
1221 |
public enum SubContractorPaymentKind |
|
1222 |
{ |
|
1223 |
/// <summary> |
|
1224 |
/// 0:通常払い |
|
1225 |
/// </summary> |
|
1226 |
Normal = 0, |
|
1227 |
/// <summary> |
|
1228 |
/// 1:手間払い |
|
1229 |
/// </summary> |
|
1230 |
Labor, |
|
1231 |
} |
|
1232 |
/// <summary> |
|
1233 |
/// 協力業者支払区分 |
|
1234 |
/// </summary> |
|
1235 |
public static List<KeyValuePair<int, string>> s_SubContractorKind = new List<KeyValuePair<int, string>>(){ |
|
1236 |
new KeyValuePair<int,string>(0,"通 常 業 者"), |
|
1237 |
new KeyValuePair<int,string>(1,"手 間 業 者")}; |
|
1238 |
#endregion |
|
1239 |
|
|
1240 |
#region 工事詳細台帳:集計フラグ |
|
1241 |
/// <summary> |
|
1242 |
/// 工事詳細台帳:集計フラグ |
|
1243 |
/// </summary> |
|
1244 |
public enum LedgerIntegration |
|
1245 |
{ |
|
1246 |
/// <summary> |
|
1247 |
/// 通常(無) |
|
1248 |
/// </summary> |
|
1249 |
Normal = 0, |
|
1250 |
/// <summary> |
|
1251 |
/// 積算見積書データより集計 |
|
1252 |
/// </summary> |
|
1253 |
Integration, |
|
1254 |
} |
|
1255 |
#endregion |
|
1256 |
|
|
1257 |
#region 15期以前の経費 |
|
1258 |
public static List<KeyValuePair<string, double>> BeforeExpenses = new List<KeyValuePair<string, double>>{ |
|
1259 |
new KeyValuePair<string, double>("会社経費", 8.0), |
|
1260 |
new KeyValuePair<string, double>("営業経費", 5.0), |
|
1261 |
new KeyValuePair<string, double>("各部署経費", 7.0)}; |
|
1262 |
|
|
1263 |
///// <summary> |
|
1264 |
///// 各所属部経費(7%) |
|
1265 |
///// </summary> |
|
1266 |
//public static const double PartExpenses = 7.0; |
|
1267 |
///// <summary> |
|
1268 |
///// 事務所経費(8%) |
|
1269 |
///// </summary> |
|
1270 |
//public static const double OfficeExpenes = 8.0; |
|
1271 |
///// <summary> |
|
1272 |
///// 営業経費(5%) |
|
1273 |
///// </summary> |
|
1274 |
//public static const double SaleseExpenes = 5.0; |
|
1275 |
#endregion |
|
1276 |
|
|
1277 |
#region 担当者選択区分 |
|
1278 |
/// <summary> |
|
1279 |
/// 担当者選択区分 |
|
1280 |
/// </summary> |
|
1281 |
public enum PersonSelectFlg |
|
1282 |
{ |
|
1283 |
/// <summary> |
|
1284 |
/// 無 |
|
1285 |
/// </summary> |
|
1286 |
None = 0, |
|
1287 |
/// <summary> |
|
1288 |
/// 工事担当者 |
|
1289 |
/// </summary> |
|
1290 |
Creator, |
|
1291 |
/// <summary> |
|
1292 |
/// 副担当者 |
|
1293 |
/// </summary> |
|
1294 |
Assistant, |
|
1295 |
/// <summary> |
|
1296 |
/// 指導員 |
|
1297 |
/// </summary> |
|
1298 |
Instructor, |
|
1299 |
} |
|
1300 |
#endregion |
|
1301 |
|
|
1302 |
#region 工事基本情報:紐付データフラグ |
|
1303 |
public enum BaseInfoTyingFlg |
|
1304 |
{ |
|
1305 |
/// <summary> |
|
1306 |
/// 0:独立データ |
|
1307 |
/// </summary> |
|
1308 |
Standard = 0, |
|
1309 |
/// <summary> |
|
1310 |
/// 1:親データ |
|
1311 |
/// </summary> |
|
1312 |
Pearent, |
|
1313 |
/// <summary> |
|
1314 |
/// 2:紐付きデータ |
|
1315 |
/// </summary> |
|
1316 |
Tying, |
|
1317 |
} |
|
1318 |
#endregion |
|
1319 |
|
|
1320 |
#region 工事詳細台帳:担当中フラグ |
|
1321 |
/// <summary> |
|
1322 |
/// 担当中フラグ |
|
1323 |
/// </summary> |
|
1324 |
public enum SalaryOperateKind |
|
1325 |
{ |
|
1326 |
/// <summary> |
|
1327 |
/// 担当終了 |
|
1328 |
/// </summary> |
|
1329 |
Complate = 0, |
|
1330 |
/// <summary> |
|
1331 |
/// 担当中 |
|
1332 |
/// </summary> |
|
1333 |
Oparateing, |
|
1334 |
} |
|
1335 |
#endregion |
|
1336 |
|
|
1337 |
#region 工事詳細台帳:台帳入力完了フラグ |
|
1338 |
/// <summary> |
|
1339 |
/// 工事詳細台帳:台帳入力完了フラグ |
|
1340 |
/// </summary> |
|
1341 |
public enum ComplateTitleNo |
|
1342 |
{ |
|
1343 |
/// <summary> |
|
1344 |
/// 台 帳 入 力 中 |
|
1345 |
/// </summary> |
|
1346 |
Operateing = 0, |
|
1347 |
/// <summary> |
|
1348 |
/// 完 了 済 台 帳 |
|
1349 |
/// </summary> |
|
1350 |
Complated, |
|
1351 |
} |
|
1352 |
#endregion |
|
1353 |
|
|
1354 |
#region 工事詳細台帳:増減工事フラグ |
|
1355 |
/// <summary> |
|
1356 |
/// 工事詳細台帳:増減工事フラグ |
|
1357 |
/// </summary> |
|
1358 |
public enum FluctuatesFlg |
|
1359 |
{ |
|
1360 |
/// <summary> |
|
1361 |
/// 0:通常データ |
|
1362 |
/// </summary> |
|
1363 |
Normal =0, |
|
1364 |
/// <summary> |
|
1365 |
/// 1:増減データ |
|
1366 |
/// </summary> |
|
1367 |
Fluctuates, |
|
1368 |
} |
|
1369 |
#endregion |
|
1370 |
|
|
1371 |
#region 担当者マスタ:工事詳細台帳計算対象フラグ |
|
1372 |
/// <summary> |
|
1373 |
/// 担当者マスタ:工事詳細台帳計算対象フラグ |
|
1374 |
/// </summary> |
|
1375 |
public enum PersonLedgerDivNo |
|
1376 |
{ |
|
1377 |
/// <summary> |
|
1378 |
/// 対象外 |
|
1379 |
/// </summary> |
|
1380 |
CalcOuter = 0, |
|
1381 |
/// <summary> |
|
1382 |
/// 対象 |
|
1383 |
/// </summary> |
|
1384 |
CalcTarget, |
|
1385 |
} |
|
1386 |
#endregion |
|
1387 |
} |
|
1388 |
} |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.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 |
|
|
12 |
using log4net; |
|
13 |
using log4net.Appender; |
|
14 |
using log4net.Repository.Hierarchy; |
|
15 |
|
|
16 |
using ProcessManagement.Common; |
|
17 |
using ProcessManagement.DB.IOAccess; |
|
18 |
using ProcessManagement.DataModel; |
|
19 |
using ProcessManagement.Forms.Master; |
|
20 |
using ProcessManagement.Forms.DataEntry; |
|
21 |
using ProcessManagement.Forms.ControlsAction; |
|
22 |
using ProcessManagement.Forms.SubForms; |
|
23 |
|
|
24 |
//*----------------------- 工事詳細台帳データ変更クラス -----------------------* |
|
25 |
// 2016/05/31 Ver1.0.0.0 Create Source |
|
26 |
// |
|
27 |
// |
|
28 |
// |
|
29 |
//*----------------------------------------------------------------------------* |
|
30 |
namespace ProcessManagement.Common |
|
31 |
{ |
|
32 |
/// <summary> |
|
33 |
/// 工事詳細台帳データ変更クラス |
|
34 |
/// </summary> |
|
35 |
public static class ClsChangeLedgerData |
|
36 |
{ |
|
37 |
#region ログ定義 |
|
38 |
/// <summary> |
|
39 |
/// log4netログを使用する |
|
40 |
/// </summary> |
|
41 |
private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
42 |
#endregion |
|
43 |
|
|
44 |
#region 定数 |
|
45 |
|
|
46 |
#endregion |
|
47 |
|
|
48 |
#region 変数 |
|
49 |
/// <summary> |
|
50 |
/// 工事施工台帳支払い実績先頭カラム数 |
|
51 |
/// </summary> |
|
52 |
private static int m_LedgerColumnCount = 0; |
|
53 |
#endregion |
|
54 |
|
|
55 |
#region 対象月の工事詳細台帳実行データを作成する(交通費・購入品等のみ) |
|
56 |
/// <summary> |
|
57 |
/// 対象月の工事詳細台帳実行データを作成する(交通費・購入品等のみ) |
|
58 |
/// </summary> |
|
59 |
/// <param name="PersonCode">担当者コード</param> |
|
60 |
/// <param name="TargetMonth">対象年月</param> |
|
61 |
/// <returns></returns> |
|
62 |
public static bool MakeLedgerData(int PersonCode, string TargetMonth) |
|
63 |
{ |
|
64 |
IOCostDataOfPerson CostDB = new IOCostDataOfPerson(); |
|
65 |
IOConstructionLedger LedgerDB = new IOConstructionLedger(); |
|
66 |
IOConstructionLedgerDetail LedgerDetailDB = new IOConstructionLedgerDetail(); |
|
67 |
IOConstructionLedgerExcute LedgerExcuteDB = new IOConstructionLedgerExcute(); |
|
68 |
try |
|
69 |
{ |
|
70 |
// 一括処理で登録を行う |
|
71 |
CostDB.connect(); |
|
72 |
LedgerDB.connect(); |
|
73 |
LedgerDetailDB.connect(); |
|
74 |
LedgerExcuteDB.connect(); LedgerExcuteDB.beginTran(); |
|
75 |
|
|
76 |
// 詳細台帳よりグリッドのカラムを取得する |
|
77 |
GetLedgerColumnCount(); |
|
78 |
|
|
79 |
// 対象をまず削除する(対象月で削除する) |
|
80 |
string strDelSQL = "DELETE CONSTRUCTIONLEDGEREXCUTE"; |
|
81 |
strDelSQL += " WHERE CONSTRUCTIONCODE IN"; |
|
82 |
strDelSQL += " (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO"; |
|
83 |
strDelSQL += string.Format(" WHERE (SALESPERSONCODE = {0} OR CONSTRUCTIONPERSONCODE = {0} OR CONSTRSUBPERSONCODE = {0} OR CONSTRUCTIONINSTRUCTOR = {0}))", PersonCode); |
|
84 |
strDelSQL += string.Format(" AND GROUPCOUNT IN ({0}, {1}, {2}, {3}, {4})" |
|
85 |
, GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Transport) |
|
86 |
, GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Purchase) |
|
87 |
, GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lease) |
|
88 |
, GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.StoragePlace) |
|
89 |
, GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lodging)); |
|
90 |
strDelSQL += string.Format(" AND TARGETMONTH = TO_DATE('{0}','YYYY/MM/DD')", (TargetMonth + "/01")); |
|
91 |
LedgerExcuteDB.ExecuteNonQuery(strDelSQL, false); |
|
92 |
|
|
93 |
for (int i = (int)CommonDefine.CostDataNo.Transport; i <= (int)CommonDefine.CostDataNo.Lodging; i++) |
|
94 |
{ |
|
95 |
string strSQL = "SELECT CONSTRUCTIONCODE, DATATYPE, TO_CHAR(ACTIONDATE,'YYYY/MM'), SUM(ENTRYPRICE) FROM COSTDATAOFPERSON"; |
|
96 |
strSQL += String.Format(" WHERE TO_CHAR(ACTIONDATE,'YYYY/MM') = '{0}'", TargetMonth); |
|
97 |
strSQL += String.Format(" AND DATATYPE = {0}", i); |
|
98 |
strSQL += " AND CONSTRUCTIONCODE IN (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO"; |
|
99 |
strSQL += string.Format(" WHERE (SALESPERSONCODE = {0} OR CONSTRUCTIONPERSONCODE = {0} OR CONSTRSUBPERSONCODE = {0} OR CONSTRUCTIONINSTRUCTOR = {0}))", PersonCode); |
|
100 |
strSQL += " GROUP BY CONSTRUCTIONCODE, DATATYPE, TO_CHAR(ACTIONDATE,'YYYY/MM')"; |
|
101 |
strSQL += " ORDER BY CONSTRUCTIONCODE, DATATYPE"; |
|
102 |
ArrayList arList = new ArrayList(); |
|
103 |
if (!CostDB.ExecuteReader(strSQL, ref arList, false)) continue; |
他の形式にエクスポート: Unified diff