リビジョン 51
MySql化対応(テスト中)、資材管理・請求管理(実装済み、テスト中)
branches/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs | ||
---|---|---|
37 | 37 |
/// <summary> |
38 | 38 |
/// パスを定数で定義する |
39 | 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 | 40 |
public const string s_UPDATECOPY_NAME = "UpDateCopy.exe"; |
41 |
// ▼自動更新VPS対応▼ |
|
42 |
// FTPユーザ名 |
|
43 |
public const string s_FTP_USER_NAME = "pmaint"; |
|
44 |
// FTPパスワード |
|
45 |
public const string s_FTP_PASSWORD = "hyou5210"; |
|
46 |
// FTPつなぎ先パス |
|
47 |
public const string s_FTP_SERVER_PATH = "ftp://203.137.92.122:990/HYOU/"; |
|
48 |
// 更新モジュールフォルダ,ファイル名 |
|
49 |
public const string s_UPDATE_MODULE = "UpDateCopy"; |
|
50 |
// UVERSIONキー名 |
|
51 |
public const string s_UVERSION_KEY = "uversion"; |
|
52 |
// MVERSIONキー名 |
|
53 |
public const string s_MVERSION_KEY = "mversion"; |
|
54 |
// VERSIONセクション名 |
|
55 |
public const string s_VERSION_SECTION = "genbaKantokuHisyo"; |
|
56 |
// 起動パラメータ |
|
57 |
public const string s_KIDOU_PARAM = "/NOCHECK"; |
|
58 |
// ▲自動更新VPS対応▲ |
|
44 | 59 |
#endregion |
45 | 60 |
|
46 | 61 |
#region システム定義ファイルパス |
... | ... | |
62 | 77 |
|
63 | 78 |
#region システムセキュリティ定義 |
64 | 79 |
/// <summary> |
65 |
/// システム管理者パスワード
|
|
80 |
/// システム管理者コード
|
|
66 | 81 |
/// </summary> |
67 | 82 |
public static int AdminCode = 88889988; |
83 |
/// <summary> |
|
84 |
/// システム管理者名称 |
|
85 |
/// </summary> |
|
68 | 86 |
public static string AdminUser = "Admin"; |
87 |
/// <summary> |
|
88 |
/// システム管理者パスワード |
|
89 |
/// </summary> |
|
69 | 90 |
public static string AdminPass = "Admin"; |
91 |
/// <summary> |
|
92 |
/// システム管理者旧セキュリティコード |
|
93 |
/// </summary> |
|
70 | 94 |
public static int AdminSecurityManagement = -1; |
71 | 95 |
|
72 | 96 |
/// <summary> |
73 |
/// 機密管理番号 |
|
97 |
/// 旧機密管理番号
|
|
74 | 98 |
/// </summary> |
75 | 99 |
public enum SysManaDivNo |
76 | 100 |
{ |
... | ... | |
92 | 116 |
UserAuthority, |
93 | 117 |
} |
94 | 118 |
/// <summary> |
95 |
/// 機密管理区分 |
|
119 |
/// 旧機密管理区分
|
|
96 | 120 |
/// </summary> |
97 | 121 |
public static List<KeyValuePair<int, string>> SystemManageDiv = new List<KeyValuePair<int, string>>{ |
98 | 122 |
new KeyValuePair<int,string>(1,"最高責任者"), |
99 | 123 |
new KeyValuePair<int,string>(2,"統括責任者"), |
100 | 124 |
new KeyValuePair<int,string>(3,"所 属 長"), |
101 | 125 |
new KeyValuePair<int,string>(4,"一般使用者")}; |
126 |
/// <summary> |
|
127 |
/// 機密管理番号 |
|
128 |
/// </summary> |
|
129 |
public enum SecurityRankPos |
|
130 |
{ |
|
131 |
/// <summary> |
|
132 |
/// 特別権限 |
|
133 |
/// </summary> |
|
134 |
SpecialAuthority = 0, |
|
135 |
/// <summary> |
|
136 |
/// 統括者権限 |
|
137 |
/// </summary> |
|
138 |
FreeAuthority, |
|
139 |
/// <summary> |
|
140 |
/// 所属長権限 |
|
141 |
/// </summary> |
|
142 |
LimitedAuthority, |
|
143 |
/// <summary> |
|
144 |
/// 一般者権限 |
|
145 |
/// </summary> |
|
146 |
NormalAuthority, |
|
147 |
} |
|
148 |
/// <summary> |
|
149 |
/// 機密管理区分 |
|
150 |
/// </summary> |
|
151 |
public static List<KeyValuePair<int, string>> SecurityRankList = new List<KeyValuePair<int, string>>{ |
|
152 |
new KeyValuePair<int,string>(1,"特別権限"), |
|
153 |
new KeyValuePair<int,string>(2,"統括者権限"), |
|
154 |
new KeyValuePair<int,string>(3,"所属長権限"), |
|
155 |
new KeyValuePair<int,string>(4,"一般者権限")}; |
|
102 | 156 |
#region 旧機密区分名称 |
103 | 157 |
//public static List<KeyValuePair<int, string>> SecurityManagementDivision = new List<KeyValuePair<int, string>>{ |
104 | 158 |
// new KeyValuePair<int,string>(1,"最高機密管理者"), |
... | ... | |
106 | 160 |
// new KeyValuePair<int,string>(3,"機密管理者"), |
107 | 161 |
// new KeyValuePair<int,string>(4,"一般使用者")}; |
108 | 162 |
#endregion |
163 |
|
|
164 |
/// <summary> |
|
165 |
/// 機密区分範囲 |
|
166 |
/// </summary> |
|
167 |
public enum SecurityRangePos |
|
168 |
{ |
|
169 |
/// <summary> |
|
170 |
/// 全部署参照 |
|
171 |
/// </summary> |
|
172 |
AllPath = 0, |
|
173 |
/// <summary> |
|
174 |
/// 複数部署参照 |
|
175 |
/// </summary> |
|
176 |
Multiple, |
|
177 |
/// <summary> |
|
178 |
/// 自部署のみ |
|
179 |
/// </summary> |
|
180 |
Only, |
|
181 |
/// <summary> |
|
182 |
/// 自担当者のみ |
|
183 |
/// </summary> |
|
184 |
None, |
|
185 |
} |
|
186 |
public static List<KeyValuePair<int, string>> SecurityRangeList = new List<KeyValuePair<int, string>>{ |
|
187 |
new KeyValuePair<int,string>(1,"全部署対象"), |
|
188 |
new KeyValuePair<int,string>(2,"複数部署対象"), |
|
189 |
new KeyValuePair<int,string>(3,"自部署のみ対象"), |
|
190 |
new KeyValuePair<int,string>(4,"担当分のみ対象")}; |
|
109 | 191 |
#endregion |
110 | 192 |
|
111 | 193 |
#region エクセル使用時パス |
... | ... | |
160 | 242 |
public static Color s_clrNormal = Color.White; |
161 | 243 |
#endregion |
162 | 244 |
|
245 |
#region 曜日文字 |
|
246 |
/// <summary> |
|
247 |
/// 曜日文字 |
|
248 |
/// </summary> |
|
249 |
public static string[] DayOfTheWeekString = new string[] { "日", "月", "火", "水", "木", "金", "土" }; |
|
250 |
#endregion |
|
251 |
|
|
163 | 252 |
#region 掲示板:関連定義 |
253 |
#region 掲示板グリッド返信文字 |
|
164 | 254 |
/// <summary> |
165 | 255 |
/// 掲示板グリッド返信文字 |
166 | 256 |
/// </summary> |
... | ... | |
187 | 277 |
/// 総務部コード(部署コード) |
188 | 278 |
/// </summary> |
189 | 279 |
public static int s_GeneralAffairsDevision = 4; |
280 |
#endregion |
|
190 | 281 |
|
282 |
#region メッセージリンク区分 |
|
191 | 283 |
/// <summary> |
192 | 284 |
/// メッセージリンク区分 |
193 | 285 |
/// </summary> |
... | ... | |
202 | 294 |
/// </summary> |
203 | 295 |
ConstructionInfo, |
204 | 296 |
} |
297 |
#endregion |
|
205 | 298 |
|
299 |
#region メッセージフラグ区分 |
|
206 | 300 |
/// <summary> |
207 | 301 |
/// メッセージフラグ区分 |
208 | 302 |
/// </summary> |
... | ... | |
218 | 312 |
Secretary, |
219 | 313 |
} |
220 | 314 |
#endregion |
315 |
#endregion |
|
221 | 316 |
|
222 | 317 |
#region 行動予定 会社行事名称・コード |
223 | 318 |
/// <summary> |
... | ... | |
430 | 525 |
public static readonly string[] ApprovalButtonString = new string[] { "未承認", "承認済", "不承認" }; |
431 | 526 |
#endregion |
432 | 527 |
|
528 |
#region 承認処理:デフォルト承認受付番号 |
|
529 |
/// <summary> |
|
530 |
/// 承認処理:デフォルト承認受付番号 |
|
531 |
/// </summary> |
|
532 |
public static int s_Default_OrderNo = 1; |
|
533 |
#endregion |
|
534 |
|
|
433 | 535 |
#region 起動時チェック:関連定義 |
434 | 536 |
/// <summary> |
435 | 537 |
/// 起動時日付チェックを必要とする処理のキー |
436 | 538 |
/// </summary> |
437 |
public static Dictionary<int, string> ExePrimaryCode = new Dictionary<int, string>() { { 1, "初回起動日付" } }; |
|
539 |
public static Dictionary<int, string> ExePrimaryCode = new Dictionary<int, string>() { { 1, "初回起動日付" }, |
|
540 |
{ 2, "システムバージョン" }, |
|
541 |
}; |
|
438 | 542 |
#endregion |
439 | 543 |
|
440 | 544 |
#region 管理マスタ:工事番号基準値 |
... | ... | |
881 | 985 |
public static int s_EstimatesExpirationDeadline = 3; |
882 | 986 |
#endregion |
883 | 987 |
|
988 |
#region 見積書入力:固定項目キー |
|
989 |
/// <summary> |
|
990 |
/// 見積書入力:固定項目キー |
|
991 |
/// </summary> |
|
992 |
public enum EstimateTotalSeqNo |
|
993 |
{ |
|
994 |
/// <summary> |
|
995 |
/// 合計:'A' |
|
996 |
/// </summary> |
|
997 |
ToTal1 = 0, |
|
998 |
/// <summary> |
|
999 |
/// 端数処理:'B' |
|
1000 |
/// </summary> |
|
1001 |
ToTal2, |
|
1002 |
/// <summary> |
|
1003 |
/// 改め合計:'C' |
|
1004 |
/// </summary> |
|
1005 |
ToTal3, |
|
1006 |
/// <summary> |
|
1007 |
/// 消費税相当額:'D' |
|
1008 |
/// </summary> |
|
1009 |
ToTal4, |
|
1010 |
/// <summary> |
|
1011 |
/// 総計:'E' |
|
1012 |
/// </summary> |
|
1013 |
ToTal5, |
|
1014 |
} |
|
1015 |
#endregion |
|
1016 |
|
|
1017 |
#region 見積書入力:固定項目キー文字列 |
|
1018 |
/// <summary> |
|
1019 |
/// 見積書入力:固定項目キー文字列 |
|
1020 |
/// </summary> |
|
1021 |
/// <param name="estimatetotalseqNo"></param> |
|
1022 |
/// <returns></returns> |
|
1023 |
public static string GetEstimateTotalSeqNo(this EstimateTotalSeqNo estimatetotalseqNo) |
|
1024 |
{ |
|
1025 |
string[] names = { "A", "B", "C", "D", "E" }; |
|
1026 |
return names[(int)estimatetotalseqNo]; |
|
1027 |
} |
|
1028 |
#endregion |
|
1029 |
|
|
884 | 1030 |
#region 見積書入力:タブカテゴリ定義値 |
885 | 1031 |
/// <summary> |
886 | 1032 |
/// 見積入力:大項目・中項目・小項目 |
... | ... | |
1006 | 1152 |
"公共工事標準仕様書(最新版)に則り施工のこと。"}; |
1007 | 1153 |
#endregion |
1008 | 1154 |
|
1155 |
#region 注文書入力:印刷対象金額 |
|
1156 |
/// <summary> |
|
1157 |
/// 印刷対象金額 |
|
1158 |
/// </summary> |
|
1159 |
public static int s_PrintOutPrice = 300000; |
|
1160 |
#endregion |
|
1161 |
|
|
1009 | 1162 |
#region 交通費及び購入品等入力:データ種別 |
1010 | 1163 |
/// <summary> |
1011 | 1164 |
/// 交通費及び購入品等入力:データ種別 |
... | ... | |
1040 | 1193 |
public static readonly string[] CostDataNoString = new string[] { "", "交 通 費", "購入品費", "車両リース代", "駐車場・資材置き場代", "宿泊費" }; |
1041 | 1194 |
#endregion |
1042 | 1195 |
|
1043 |
#region 入力履歴等:データ種別
|
|
1196 |
#region 汎用データ:コードデータ種別
|
|
1044 | 1197 |
/// <summary> |
1045 |
/// 入力履歴等:データ種別
|
|
1198 |
/// 汎用データ:コードデータ種別
|
|
1046 | 1199 |
/// </summary> |
1047 |
public enum SearchLogDataType
|
|
1200 |
public enum CodeDataType
|
|
1048 | 1201 |
{ |
1049 | 1202 |
/// <summary> |
1050 | 1203 |
/// 固定コード |
... | ... | |
1181 | 1334 |
/// <summary> |
1182 | 1335 |
/// 修正モード名称 |
1183 | 1336 |
/// </summary> |
1184 |
public static string EditModeStringNew = "新規"; |
|
1185 |
public static string EditModeStringEdit = "修正"; |
|
1337 |
public static string EditModeStringNew = "新 規"; |
|
1338 |
public static string EditModeStringEdit = "修 正"; |
|
1339 |
public static string EditModeStringRef = "参 照"; |
|
1186 | 1340 |
#endregion |
1187 | 1341 |
|
1188 | 1342 |
#region 1ページ初期行数 |
... | ... | |
1299 | 1453 |
} |
1300 | 1454 |
#endregion |
1301 | 1455 |
|
1456 |
#region 工事リンク情報:リンク種別 |
|
1457 |
/// <summary> |
|
1458 |
/// 工事リンク情報:リンク種別 |
|
1459 |
/// </summary> |
|
1460 |
public enum LinkDataType |
|
1461 |
{ |
|
1462 |
/// <summary> |
|
1463 |
/// 0:増減工事 |
|
1464 |
/// </summary> |
|
1465 |
FluctuationType = 0, |
|
1466 |
/// <summary> |
|
1467 |
/// 1:結合工事 |
|
1468 |
/// </summary> |
|
1469 |
JoinType, |
|
1470 |
} |
|
1471 |
#endregion |
|
1472 |
|
|
1302 | 1473 |
#region 工事基本情報:紐付データフラグ |
1474 |
/// <summary> |
|
1475 |
/// 工事基本情報:紐付データフラグ |
|
1476 |
/// </summary> |
|
1303 | 1477 |
public enum BaseInfoTyingFlg |
1304 | 1478 |
{ |
1305 | 1479 |
/// <summary> |
... | ... | |
1307 | 1481 |
/// </summary> |
1308 | 1482 |
Standard = 0, |
1309 | 1483 |
/// <summary> |
1310 |
/// 1:親データ |
|
1484 |
/// 1:増減親データ
|
|
1311 | 1485 |
/// </summary> |
1312 |
Pearent,
|
|
1486 |
Parent, |
|
1313 | 1487 |
/// <summary> |
1314 |
/// 2:紐付きデータ
|
|
1488 |
/// 2:増減子データ
|
|
1315 | 1489 |
/// </summary> |
1316 | 1490 |
Tying, |
1317 | 1491 |
} |
1318 | 1492 |
#endregion |
1319 | 1493 |
|
1320 |
#region 工事詳細台帳:担当中フラグ
|
|
1494 |
#region 工事基本情報:結合工事フラグ
|
|
1321 | 1495 |
/// <summary> |
1322 |
/// 担当中フラグ
|
|
1496 |
/// 工事基本情報:結合工事フラグ
|
|
1323 | 1497 |
/// </summary> |
1324 |
public enum SalaryOperateKind
|
|
1498 |
public enum BaseInfoJoinFlg
|
|
1325 | 1499 |
{ |
1326 | 1500 |
/// <summary> |
1327 |
/// 担当終了
|
|
1501 |
/// 0:結合無通常データ
|
|
1328 | 1502 |
/// </summary> |
1329 |
Complate = 0,
|
|
1503 |
Standard = 0,
|
|
1330 | 1504 |
/// <summary> |
1331 |
/// 担当中
|
|
1505 |
/// 1:結合親データ
|
|
1332 | 1506 |
/// </summary> |
1333 |
Oparateing, |
|
1507 |
JoinParent, |
|
1508 |
/// <summary> |
|
1509 |
/// 2:結合子データ |
|
1510 |
/// </summary> |
|
1511 |
JoinChildren, |
|
1334 | 1512 |
} |
1335 | 1513 |
#endregion |
1336 | 1514 |
|
... | ... | |
1351 | 1529 |
} |
1352 | 1530 |
#endregion |
1353 | 1531 |
|
1354 |
#region 工事詳細台帳:増減工事フラグ
|
|
1532 |
#region 工事詳細台帳明細:担当中フラグ
|
|
1355 | 1533 |
/// <summary> |
1534 |
/// 担当中フラグ |
|
1535 |
/// </summary> |
|
1536 |
public enum SalaryOperateKind |
|
1537 |
{ |
|
1538 |
/// <summary> |
|
1539 |
/// 担当終了 |
|
1540 |
/// </summary> |
|
1541 |
Complate = 0, |
|
1542 |
/// <summary> |
|
1543 |
/// 担当中 |
|
1544 |
/// </summary> |
|
1545 |
Oparateing, |
|
1546 |
} |
|
1547 |
#endregion |
|
1548 |
|
|
1549 |
#region 工事詳細台帳明細:増減工事フラグ |
|
1550 |
/// <summary> |
|
1356 | 1551 |
/// 工事詳細台帳:増減工事フラグ |
1357 | 1552 |
/// </summary> |
1358 | 1553 |
public enum FluctuatesFlg |
... | ... | |
1360 | 1555 |
/// <summary> |
1361 | 1556 |
/// 0:通常データ |
1362 | 1557 |
/// </summary> |
1363 |
Normal =0, |
|
1558 |
Normal = 0,
|
|
1364 | 1559 |
/// <summary> |
1365 | 1560 |
/// 1:増減データ |
1366 | 1561 |
/// </summary> |
... | ... | |
1368 | 1563 |
} |
1369 | 1564 |
#endregion |
1370 | 1565 |
|
1566 |
#region 工事詳細台帳明細:注文書発行フラグ |
|
1567 |
/// <summary> |
|
1568 |
/// 工事詳細台帳明細:注文書データ作成フラグ |
|
1569 |
/// </summary> |
|
1570 |
public enum PurchaseOrderFlg |
|
1571 |
{ |
|
1572 |
/// <summary> |
|
1573 |
/// 未作成 |
|
1574 |
/// </summary> |
|
1575 |
NoCreate = 0, |
|
1576 |
/// <summary> |
|
1577 |
/// 作成済 |
|
1578 |
/// </summary> |
|
1579 |
Making = 1, |
|
1580 |
/// <summary> |
|
1581 |
/// 作成しない |
|
1582 |
/// </summary> |
|
1583 |
NotMakingData = 9, |
|
1584 |
} |
|
1585 |
#endregion |
|
1586 |
|
|
1371 | 1587 |
#region 担当者マスタ:工事詳細台帳計算対象フラグ |
1372 | 1588 |
/// <summary> |
1373 | 1589 |
/// 担当者マスタ:工事詳細台帳計算対象フラグ |
... | ... | |
1384 | 1600 |
CalcTarget, |
1385 | 1601 |
} |
1386 | 1602 |
#endregion |
1603 |
|
|
1604 |
#region 担当者対象部署マスタ:所属フラグ |
|
1605 |
/// <summary> |
|
1606 |
/// 担当者対象部署マスタ:所属フラグ |
|
1607 |
/// </summary> |
|
1608 |
public enum AffiliationFlg |
|
1609 |
{ |
|
1610 |
/// <summary> |
|
1611 |
/// 他部署 |
|
1612 |
/// </summary> |
|
1613 |
Ohter = 0, |
|
1614 |
/// <summary> |
|
1615 |
/// 所属部署 |
|
1616 |
/// </summary> |
|
1617 |
Affiliation, |
|
1618 |
} |
|
1619 |
#endregion |
|
1620 |
|
|
1621 |
#region 起動対象マスタ:データ編集フラグ |
|
1622 |
/// <summary> |
|
1623 |
/// 起動対象マスタ:データ編集フラグ |
|
1624 |
/// </summary> |
|
1625 |
public enum ProcessDataEdit |
|
1626 |
{ |
|
1627 |
/// <summary> |
|
1628 |
/// 参照 |
|
1629 |
/// </summary> |
|
1630 |
Reference = 0, |
|
1631 |
/// <summary> |
|
1632 |
/// 対象 |
|
1633 |
/// </summary> |
|
1634 |
Edit, |
|
1635 |
} |
|
1636 |
#endregion |
|
1637 |
|
|
1638 |
#region 保護区分マスタ:総務業務フラグ |
|
1639 |
/// <summary> |
|
1640 |
/// 保護区分マスタ:総務業務フラグ |
|
1641 |
/// </summary> |
|
1642 |
public enum GeneralAffairs |
|
1643 |
{ |
|
1644 |
/// <summary> |
|
1645 |
/// 総務以外 |
|
1646 |
/// </summary> |
|
1647 |
OtherDep = 0, |
|
1648 |
/// <summary> |
|
1649 |
/// 総務業務対象 |
|
1650 |
/// </summary> |
|
1651 |
GeneralDep, |
|
1652 |
} |
|
1653 |
#endregion |
|
1654 |
|
|
1655 |
#region 保護区分マスタ:総務業務名称 |
|
1656 |
/// <summary> |
|
1657 |
/// 保護区分マスタ:総務業務名称 |
|
1658 |
/// </summary> |
|
1659 |
public static List<KeyValuePair<int, string>> GeneralAffairsList = new List<KeyValuePair<int, string>>{ |
|
1660 |
new KeyValuePair<int,string>(0,"総務業務不可"), |
|
1661 |
new KeyValuePair<int,string>(1,"総務業務可能")}; |
|
1662 |
#endregion |
|
1663 |
|
|
1664 |
#region 業者手間区分 |
|
1665 |
/// <summary> |
|
1666 |
/// 業者手間区分 // Add BIT 2017/02/23 |
|
1667 |
/// </summary> |
|
1668 |
public enum LabourKinds |
|
1669 |
{ |
|
1670 |
/// <summary> |
|
1671 |
/// 通常業者 |
|
1672 |
/// </summary> |
|
1673 |
Normal = 0, |
|
1674 |
/// <summary> |
|
1675 |
/// 手間業者 |
|
1676 |
/// </summary> |
|
1677 |
Labor, |
|
1678 |
} |
|
1679 |
#endregion |
|
1680 |
|
|
1387 | 1681 |
} |
1388 | 1682 |
} |
branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs | ||
---|---|---|
50 | 50 |
private static SystemMaster m_systemMaster = new SystemMaster(); |
51 | 51 |
|
52 | 52 |
/// <summary> |
53 |
/// ログインユーザーデータ |
|
53 |
/// ログインユーザー担当者データ
|
|
54 | 54 |
/// </summary> |
55 | 55 |
private static PersonInChargeMaster m_LoginUserData = new PersonInChargeMaster(); |
56 | 56 |
|
57 | 57 |
/// <summary> |
58 |
/// システム起動チェック処理クラス
|
|
58 |
/// ログインユーザー参照部署データ
|
|
59 | 59 |
/// </summary> |
60 |
private static ClsSystemOnceExecute m_CheckProc = null;
|
|
61 |
|
|
60 |
private static List<PersonDepartmentMaster> m_LoginUserDepartment = new List<PersonDepartmentMaster>();
|
|
61 |
|
|
62 | 62 |
/// <summary> |
63 |
/// 建築工事費の構成
|
|
63 |
/// ログインユーザーセキュリティ区分
|
|
64 | 64 |
/// </summary> |
65 |
//private static Dictionary<int, string> m_StructureTypeName = new Dictionary<int, string>();
|
|
65 |
private static SecurityMaster m_LoginUserSecurity = new SecurityMaster();
|
|
66 | 66 |
|
67 | 67 |
/// <summary> |
68 |
/// ログインユーザー処理起動区分 |
|
69 |
/// </summary> |
|
70 |
private static List<ProcessExcute> m_LoginUserProcExe = new List<ProcessExcute>(); |
|
71 |
|
|
72 |
/// <summary> |
|
73 |
/// システム初回起動チェック処理クラス |
|
74 |
/// </summary> |
|
75 |
private static ClsSystemOnceExecute m_CheckProc = null; |
|
76 |
|
|
77 |
/// <summary> |
|
68 | 78 |
/// 製品ファイルバージョン格納エリア |
69 | 79 |
/// </summary> |
70 | 80 |
private static FileVersionInfo m_ProductVersionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location); |
... | ... | |
103 | 113 |
} |
104 | 114 |
|
105 | 115 |
/// <summary> |
106 |
/// ログインユーザーデータ |
|
116 |
/// ログインユーザー担当者データ
|
|
107 | 117 |
/// </summary> |
108 | 118 |
public static PersonInChargeMaster LoginUserData |
109 | 119 |
{ |
... | ... | |
112 | 122 |
} |
113 | 123 |
|
114 | 124 |
/// <summary> |
115 |
/// 構成マスタ(大項目マスタ)
|
|
125 |
/// ログインユーザー参照部署データ
|
|
116 | 126 |
/// </summary> |
117 |
//public static Dictionary<int, string> StructureTypeName
|
|
118 |
//{
|
|
119 |
// get { return m_StructureTypeName; }
|
|
120 |
// set { m_StructureTypeName = value; }
|
|
121 |
//}
|
|
127 |
public static List<PersonDepartmentMaster> LoginUserDepartment
|
|
128 |
{ |
|
129 |
get { return m_LoginUserDepartment; }
|
|
130 |
set { m_LoginUserDepartment = value; }
|
|
131 |
} |
|
122 | 132 |
|
123 | 133 |
/// <summary> |
134 |
/// ログインユーザーセキュリティ区分 |
|
135 |
/// </summary> |
|
136 |
public static SecurityMaster LoginUserSecurity |
|
137 |
{ |
|
138 |
get { return m_LoginUserSecurity; } |
|
139 |
set { m_LoginUserSecurity = value; } |
|
140 |
} |
|
141 |
|
|
142 |
/// <summary> |
|
143 |
/// ログインユーザー処理起動区分 |
|
144 |
/// </summary> |
|
145 |
public static List<ProcessExcute> LoginUserProcExe |
|
146 |
{ |
|
147 |
get { return m_LoginUserProcExe; } |
|
148 |
set { m_LoginUserProcExe = value; } |
|
149 |
} |
|
150 |
|
|
151 |
/// <summary> |
|
124 | 152 |
/// 製品ファイルバージョン格納エリア |
125 | 153 |
/// </summary> |
126 | 154 |
public static FileVersionInfo ProductVersionInfo |
... | ... | |
135 | 163 |
{ |
136 | 164 |
get { return m_CheckProc; } |
137 | 165 |
} |
166 |
|
|
138 | 167 |
#endregion |
139 | 168 |
|
140 | 169 |
#region 初期化 |
141 |
|
|
142 | 170 |
/// <summary> |
143 | 171 |
/// 初期化 |
144 | 172 |
/// </summary> |
... | ... | |
379 | 407 |
} |
380 | 408 |
#endregion |
381 | 409 |
|
410 |
#region 今の年号を取得する |
|
411 |
/// <summary> |
|
412 |
/// 今の年号を取得する |
|
413 |
/// </summary> |
|
414 |
/// <returns></returns> |
|
415 |
public static string GetNameOfAnEra(DateTime TargetDate) |
|
416 |
{ |
|
417 |
try |
|
418 |
{ |
|
419 |
string strRet = string.Empty; |
|
420 |
|
|
421 |
CultureInfo culture = new CultureInfo("ja-JP", true); |
|
422 |
culture.DateTimeFormat.Calendar = new JapaneseCalendar(); |
|
423 |
|
|
424 |
string result = TargetDate.ToString("ggyy年M月d日", culture); |
|
425 |
|
|
426 |
int strLength = 0; |
|
427 |
foreach (char c in result) |
|
428 |
{ |
|
429 |
if (char.IsNumber(c)) break; |
|
430 |
|
|
431 |
strLength++; |
|
432 |
} |
|
433 |
|
|
434 |
strRet = result.Substring(0, strLength); |
|
435 |
|
|
436 |
return strRet; |
|
437 |
} |
|
438 |
catch (Exception ex) |
|
439 |
{ |
|
440 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
441 |
return string.Empty; |
|
442 |
} |
|
443 |
} |
|
444 |
#endregion |
|
445 |
|
|
382 | 446 |
#region Int値より文字列に変化して指定位置に指定文字を入れる。(工事番号編集) |
383 | 447 |
/// <summary> |
384 | 448 |
/// Int値より文字列に変化して指定位置に指定文字を入れる。 |
... | ... | |
778 | 842 |
int CnvCode = Convert.ToInt32("0041", 16); // 'A' |
779 | 843 |
int LastCode = Convert.ToInt32("005A", 16); // 'Z' |
780 | 844 |
|
781 |
// 変換値を加算する |
|
782 |
CnvCode += num; |
|
845 |
// 'Z'を超えたら余剰を使って変換する |
|
846 |
int work = (CnvCode + num); |
|
847 |
if (work <= LastCode) |
|
848 |
{ |
|
849 |
// 変換値を加算する |
|
850 |
CnvCode += num; |
|
851 |
} |
|
852 |
else |
|
853 |
{ |
|
854 |
CnvCode += (work % LastCode); |
|
855 |
} |
|
783 | 856 |
// 'Z'を超えたら採番しない |
784 |
if (CnvCode > LastCode) return string.Empty; |
|
857 |
//if (CnvCode > LastCode) return string.Empty;
|
|
785 | 858 |
|
786 | 859 |
// 数値(文字コード) -> 文字 |
787 | 860 |
char c = Convert.ToChar(CnvCode); |
... | ... | |
945 | 1018 |
} |
946 | 1019 |
} |
947 | 1020 |
#endregion |
1021 |
|
|
1022 |
#region 補色を取得する |
|
1023 |
/// <summary> |
|
1024 |
/// 補色を取得する |
|
1025 |
/// </summary> |
|
1026 |
/// <param name="color"></param> |
|
1027 |
/// <returns></returns> |
|
1028 |
public static Color GetComplementaryColor(Color color) |
|
1029 |
{ |
|
1030 |
try |
|
1031 |
{ |
|
1032 |
byte r = (byte)~color.R; |
|
1033 |
byte g = (byte)~color.G; |
|
1034 |
byte b = (byte)~color.B; |
|
1035 |
|
|
1036 |
return Color.FromArgb(r, g, b); |
|
1037 |
} |
|
1038 |
catch (System.Exception ex) |
|
1039 |
{ |
|
1040 |
logger.ErrorFormat("システムエラー:{0}:{1}", GetMethodName(), ex.Message); |
|
1041 |
return color; |
|
1042 |
} |
|
1043 |
} |
|
948 | 1044 |
#endregion |
949 | 1045 |
|
1046 |
#region 指定桁数の数値最大値を返す |
|
1047 |
/// <summary> |
|
1048 |
/// 指定桁数の数値最大値を返す |
|
1049 |
/// </summary> |
|
1050 |
/// <param name="NumLen"></param> |
|
1051 |
/// <returns></returns> |
|
1052 |
public static int CreateMaxNumeric(int NumLen) |
|
1053 |
{ |
|
1054 |
try |
|
1055 |
{ |
|
1056 |
string strNum = string.Empty; |
|
1057 |
for (int i = 0; i < NumLen; i++) |
|
1058 |
{ |
|
1059 |
strNum += "9"; |
|
1060 |
} |
|
1061 |
|
|
1062 |
return cnvInt(strNum); |
|
1063 |
} |
|
1064 |
catch (System.Exception ex) |
|
1065 |
{ |
|
1066 |
logger.ErrorFormat("システムエラー:{0}:{1}", GetMethodName(), ex.Message); |
|
1067 |
return 0; |
|
1068 |
} |
|
1069 |
} |
|
1070 |
#endregion |
|
1071 |
|
|
1072 |
#endregion |
|
1073 |
|
|
950 | 1074 |
#region データチェックメソッド |
951 | 1075 |
#region ディレクトリの存在チェック |
952 | 1076 |
/// <summary> |
... | ... | |
1236 | 1360 |
} |
1237 | 1361 |
#endregion |
1238 | 1362 |
|
1239 |
#region セルが空かどうかをチェックする
|
|
1363 |
#region 対象が空かどうかをチェックする
|
|
1240 | 1364 |
/// <summary> |
1241 |
/// セルが空かどうかをチェックする
|
|
1365 |
/// 対象が空かどうかをチェックする
|
|
1242 | 1366 |
/// </summary> |
1243 | 1367 |
/// <param name="objCell"></param> |
1244 | 1368 |
/// <param name="iColumn"></param> |
... | ... | |
1943 | 2067 |
} |
1944 | 2068 |
#endregion |
1945 | 2069 |
|
1946 |
#region 経過時間を工数で返す
|
|
2070 |
#region 経過日数を工数で返す
|
|
1947 | 2071 |
/// <summary> |
1948 |
/// 経過時間を工数で返す
|
|
2072 |
/// 経過日数を工数で返す
|
|
1949 | 2073 |
/// </summary> |
1950 | 2074 |
/// <param name="StartDate"></param> |
1951 | 2075 |
/// <param name="CompDate"></param> |
... | ... | |
1954 | 2078 |
{ |
1955 | 2079 |
// 差分計算 |
1956 | 2080 |
TimeSpan DiffDate = CompDate - StartDate; |
2081 |
|
|
1957 | 2082 |
// 当日までなので+1日する |
1958 | 2083 |
TimeSpan wrkts = new TimeSpan(1, 0, 0, 0); |
1959 | 2084 |
DiffDate = DiffDate + wrkts; |
2085 |
|
|
1960 | 2086 |
// 工数の最小単位で割って10分の1にする |
1961 |
return (((double)DiffDate.Days) / CommonDefine.s_ManHourUnitDays) / 10; |
|
2087 |
//return (((double)DiffDate.Days) / CommonDefine.s_ManHourUnitDays) / 10; |
|
2088 |
// 日数から月数へ変換する |
|
2089 |
return ClsCalendar.cnvMonthFromDays(DiffDate.Days); |
|
1962 | 2090 |
} |
1963 | 2091 |
#endregion |
1964 | 2092 |
|
... | ... | |
2152 | 2280 |
} |
2153 | 2281 |
#endregion |
2154 | 2282 |
|
2283 |
#region 予算書・台帳給与金額計算処理 |
|
2284 |
/// <summary> |
|
2285 |
/// 予算書・台帳給与金額計算処理 |
|
2286 |
/// </summary> |
|
2287 |
public static void CalcPayValueData(double MonthryCost, double OrdersPrice, int workingCount, |
|
2288 |
ref double ExecutionAmount, ref double AmountConfigRate, |
|
2289 |
bool bSalaryCorrection = true) |
|
2290 |
{ |
|
2291 |
try |
|
2292 |
{ |
|
2293 |
// 受注金額が0の場合は1として計算する |
|
2294 |
if (OrdersPrice == 0) OrdersPrice = 1; |
|
2295 |
|
|
2296 |
// 日当計算 |
|
2297 |
double DairySalary =0; |
|
2298 |
if (bSalaryCorrection) |
|
2299 |
DairySalary = (MonthryCost * CommonDefine.s_SalaryCorrection) / CommonDefine.s_ManHourUnitMonth; |
|
2300 |
else |
|
2301 |
DairySalary = MonthryCost / CommonDefine.s_ManHourUnitMonth; |
|
2302 |
|
|
2303 |
// 給与支払総額 |
|
2304 |
int iInput = CommonMotions.cnvRound(DairySalary * workingCount); |
|
2305 |
|
|
2306 |
// 実行金額に給与支払総額をセットする |
|
2307 |
ExecutionAmount = iInput; |
|
2308 |
|
|
2309 |
// 金額構成率計算 |
|
2310 |
AmountConfigRate = (iInput / OrdersPrice) * 100.0; |
|
2311 |
|
|
2312 |
// 構成率が範囲外の場合は0にする |
|
2313 |
if (AmountConfigRate < -999.00 || 999.00 < AmountConfigRate) AmountConfigRate = 0; |
|
2314 |
} |
|
2315 |
catch (Exception ex) |
|
2316 |
{ |
|
2317 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2318 |
} |
|
2319 |
} |
|
2155 | 2320 |
#endregion |
2156 | 2321 |
|
2322 |
#region 給与取得SQL作成処理 |
|
2323 |
/// <summary> |
|
2324 |
/// 給与取得SQL作成処理 |
|
2325 |
/// </summary> |
|
2326 |
private static string GetSalaryValue(int PersonCode, DateTime GetData) |
|
2327 |
{ |
|
2328 |
try |
|
2329 |
{ |
|
2330 |
// SQL作成 |
|
2331 |
string strSQL = "SELECT A.MONTHLYSALARY, A.YEARSALARY, A.PERSONCODE, A.STARTDATE FROM PERSONSALARYMASTER A,"; |
|
2332 |
strSQL += " (SELECT PERSONCODE, MAX(STARTDATE) sDate FROM PERSONSALARYMASTER"; |
|
2333 |
strSQL += string.Format(" WHERE PERSONCODE = {0}", PersonCode); |
|
2334 |
strSQL += string.Format(" AND DATE(NOW()) <= STR_TO_DATE('{0}', '%Y/%m/%d)", GetData.ToShortDateString()); |
|
2335 |
strSQL += " GROUP BY PERSONCODE) B"; |
|
2336 |
strSQL += " WHERE A.PERSONCODE = B.PERSONCODE AND A.STARTDATE = B.sDate"; |
|
2337 |
|
|
2338 |
return strSQL; |
|
2339 |
} |
|
2340 |
catch (Exception ex) |
|
2341 |
{ |
|
2342 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2343 |
return string.Empty; |
|
2344 |
} |
|
2345 |
} |
|
2346 |
#endregion |
|
2347 |
|
|
2348 |
#region 担当者給与金額取得処理(単独処理) |
|
2349 |
/// <summary> |
|
2350 |
/// 担当者給与金額取得処理(単独処理) |
|
2351 |
/// </summary> |
|
2352 |
public static bool GetSalaryValue(int PersonCode, ref double MonthryCost, ref double YearsCost, DateTime GetData) |
|
2353 |
{ |
|
2354 |
IOMPersonInCharge PersonDB = new IOMPersonInCharge(); |
|
2355 |
try |
|
2356 |
{ |
|
2357 |
// 初期値セット |
|
2358 |
MonthryCost = 0; |
|
2359 |
YearsCost = 0; |
|
2360 |
|
|
2361 |
// データ取得 |
|
2362 |
string strSQL = GetSalaryValue(PersonCode, GetData); |
|
2363 |
ArrayList arList = new ArrayList(); |
|
2364 |
if (!PersonDB.ExecuteReader(strSQL, ref arList)) return false; |
|
2365 |
object[] objGetData = (object[])arList[0]; |
|
2366 |
|
|
2367 |
// 取得値セット |
|
2368 |
MonthryCost = CommonMotions.cnvDouble(objGetData[0]); |
|
2369 |
YearsCost = CommonMotions.cnvDouble(objGetData[1]); |
|
2370 |
|
|
2371 |
return true; |
|
2372 |
} |
|
2373 |
catch (Exception ex) |
|
2374 |
{ |
|
2375 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2376 |
return false; |
|
2377 |
} |
|
2378 |
finally |
|
2379 |
{ |
|
2380 |
PersonDB.close(); PersonDB = null; |
|
2381 |
} |
|
2382 |
} |
|
2383 |
#endregion |
|
2384 |
|
|
2385 |
#region 担当者給与金額取得処理(セッションコネクト別) |
|
2386 |
/// <summary> |
|
2387 |
/// 担当者給与金額取得処理(セッションコネクト別) |
|
2388 |
/// </summary> |
|
2389 |
public static bool GetSalaryValue(IOMPersonInCharge PersonDB, int PersonCode, |
|
2390 |
ref double MonthryCost, ref double YearsCost, DateTime GetData) |
|
2391 |
{ |
|
2392 |
try |
|
2393 |
{ |
|
2394 |
// 初期値セット |
|
2395 |
MonthryCost = 0; |
|
2396 |
YearsCost = 0; |
|
2397 |
|
|
2398 |
// データ取得 |
|
2399 |
string strSQL = GetSalaryValue(PersonCode, GetData); |
|
2400 |
ArrayList arList = new ArrayList(); |
|
2401 |
if (!PersonDB.ExecuteReader(strSQL, ref arList, false)) return false; |
|
2402 |
object[] objGetData = (object[])arList[0]; |
|
2403 |
|
|
2404 |
// 取得値セット |
|
2405 |
MonthryCost = CommonMotions.cnvDouble(objGetData[0]); |
|
2406 |
YearsCost = CommonMotions.cnvDouble(objGetData[1]); |
|
2407 |
|
|
2408 |
return true; |
|
2409 |
} |
|
2410 |
catch (Exception ex) |
|
2411 |
{ |
|
2412 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2413 |
return false; |
|
2414 |
} |
|
2415 |
} |
|
2416 |
#endregion |
|
2417 |
|
|
2418 |
#region 与えられたキー値より機密管理区分データを取得する |
|
2419 |
/// <summary> |
|
2420 |
/// 与えられたキー値より機密管理区分データを取得する |
|
2421 |
/// </summary> |
|
2422 |
/// <param name="KeyValue"></param> |
|
2423 |
/// <returns></returns> |
|
2424 |
public static KeyValuePair<int, string> SearchSecurityRankList(int KeyValue) |
|
2425 |
{ |
|
2426 |
KeyValuePair<int, string> RetPairvalue = new KeyValuePair<int, string>(0, string.Empty); |
|
2427 |
try |
|
2428 |
{ |
|
2429 |
for (int i = 0; i < CommonDefine.SecurityRankList.Count; i++) |
|
2430 |
{ |
|
2431 |
if (CommonDefine.SecurityRankList[i].Key == KeyValue) |
|
2432 |
{ |
|
2433 |
RetPairvalue = CommonDefine.SecurityRankList[i]; |
|
2434 |
} |
|
2435 |
} |
|
2436 |
|
|
2437 |
return RetPairvalue; |
|
2438 |
} |
|
2439 |
catch (Exception ex) |
|
2440 |
{ |
|
2441 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2442 |
return RetPairvalue; |
|
2443 |
} |
|
2444 |
} |
|
2445 |
#endregion |
|
2446 |
|
|
2447 |
#region 与えられたキー値より機密区分範囲データを取得する |
|
2448 |
/// <summary> |
|
2449 |
/// 与えられたキー値より機密区分範囲データを取得する |
|
2450 |
/// </summary> |
|
2451 |
/// <param name="KeyValue"></param> |
|
2452 |
/// <returns></returns> |
|
2453 |
public static KeyValuePair<int, string> SearchSecurityRangeList(int KeyValue) |
|
2454 |
{ |
|
2455 |
KeyValuePair<int, string> RetPairvalue = new KeyValuePair<int, string>(0, string.Empty); |
|
2456 |
try |
|
2457 |
{ |
|
2458 |
for (int i = 0; i < CommonDefine.SecurityRangeList.Count; i++) |
|
2459 |
{ |
|
2460 |
if (CommonDefine.SecurityRangeList[i].Key == KeyValue) |
|
2461 |
{ |
|
2462 |
RetPairvalue = CommonDefine.SecurityRangeList[i]; |
|
2463 |
} |
|
2464 |
} |
|
2465 |
|
|
2466 |
return RetPairvalue; |
|
2467 |
} |
|
2468 |
catch (Exception ex) |
|
2469 |
{ |
|
2470 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2471 |
return RetPairvalue; |
|
2472 |
} |
|
2473 |
} |
|
2474 |
#endregion |
|
2475 |
|
|
2476 |
#region 登録完了メッセージ表示 |
|
2477 |
/// <summary> |
|
2478 |
/// 登録完了メッセージ表示 |
|
2479 |
/// </summary> |
|
2480 |
/// <param name="strTitle"></param> |
|
2481 |
public static void EntryEndMessage(string strTitle) |
|
2482 |
{ |
|
2483 |
try |
|
2484 |
{ |
|
2485 |
string strMes = string.Format("{0} 登録完了しました。", strTitle); |
|
2486 |
|
|
2487 |
MessageBox.Show(strMes, "登録完了メッセージ", MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
2488 |
} |
|
2489 |
catch (Exception ex) |
|
2490 |
{ |
|
2491 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2492 |
} |
|
2493 |
} |
|
2494 |
public static void EntryEndMessage(string strTitle, string strTitle2) |
|
2495 |
{ |
|
2496 |
try |
|
2497 |
{ |
|
2498 |
string strMes = string.Format("{0} {1}完了しました。", strTitle, strTitle2); |
|
2499 |
string strGuidance = string.Format("{0}完了メッセージ", strTitle2); |
|
2500 |
|
|
2501 |
MessageBox.Show(strMes, strGuidance, MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
2502 |
} |
|
2503 |
catch (Exception ex) |
|
2504 |
{ |
|
2505 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2506 |
} |
|
2507 |
} |
|
2508 |
#endregion |
|
2509 |
|
|
2510 |
#region 削除完了メッセージ表示 |
|
2511 |
/// <summary> |
|
2512 |
/// 削除完了メッセージ表示 |
|
2513 |
/// </summary> |
|
2514 |
/// <param name="strTitle"></param> |
|
2515 |
public static void RemoveEndMessage(string strTitle) |
|
2516 |
{ |
|
2517 |
try |
|
2518 |
{ |
|
2519 |
string strMes = string.Format("{0} 削除完了しました。", strTitle); |
|
2520 |
|
|
2521 |
MessageBox.Show(strMes, "削除完了メッセージ", MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
2522 |
} |
|
2523 |
catch (Exception ex) |
|
2524 |
{ |
|
2525 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2526 |
} |
|
2527 |
} |
|
2528 |
#endregion |
|
2529 |
|
|
2530 |
#endregion |
|
2531 |
|
|
2157 | 2532 |
#region Excel向け操作メソッド |
2158 | 2533 |
#region オブジェクト開放 |
2159 | 2534 |
/// <summary> |
branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
|
|
7 |
namespace ProcessManagement.Common |
|
8 |
{ |
|
9 |
/// <summary> |
|
10 |
/// システムバージョン定義クラス |
|
11 |
/// </summary> |
|
12 |
public static class CommonVersion |
|
13 |
{ |
|
14 |
/// <summary> |
|
15 |
/// 本体バージョン |
|
16 |
/// </summary> |
|
17 |
public static int s_SystemVersion = 3; |
|
18 |
|
|
19 |
/// <summary> |
|
20 |
/// コピー・環境バージョン |
|
21 |
/// </summary> |
|
22 |
public static int s_UpDateCopyVersion = 1; |
|
23 |
} |
|
24 |
} |
branches/src/ProcessManagement/ProcessManagement/Common/Office/UsedExcel.cs | ||
---|---|---|
32 | 32 |
/// <summary> |
33 | 33 |
/// EXCEL拡張子 |
34 | 34 |
/// </summary> |
35 |
private readonly string[] s_ExcelExtension = { ".xls", ".xlsx", ".xlsx", ".xlsx" }; |
|
35 |
private readonly string[] s_ExcelExtension = { ".xls", ".xlsx", ".xlsx", ".xlsx", ".xlsx" };
|
|
36 | 36 |
|
37 | 37 |
/// <summary> |
38 | 38 |
/// エクセルバージョン |
39 | 39 |
/// </summary> |
40 | 40 |
private enum ExcelVersion |
41 | 41 |
{ |
42 |
Excel97_2003, |
|
42 |
Excel97_2003 = 0,
|
|
43 | 43 |
Excel2007, |
44 | 44 |
Excel2010, |
45 | 45 |
Excel2013, |
46 |
Excel2016, |
|
46 | 47 |
} |
47 | 48 |
#endregion |
48 | 49 |
|
... | ... | |
138 | 139 |
// Office2013インストール済みの場合 |
139 | 140 |
m_ExcelVersion = (int)ExcelVersion.Excel2013; |
140 | 141 |
} |
142 |
else if ("16.0".Equals(version)) |
|
143 |
{ |
|
144 |
// Office2016インストール済みの場合 |
|
145 |
m_ExcelVersion = (int)ExcelVersion.Excel2016; |
|
146 |
} |
|
141 | 147 |
} |
142 | 148 |
catch (Exception ex) |
143 | 149 |
{ |
... | ... | |
321 | 327 |
} |
322 | 328 |
catch (Exception ex) |
323 | 329 |
{ |
324 |
logger.ErrorFormat("配列セットシステムエラー:{0}:{1}:{2}", ex.Message, FromColum, ToColum);
|
|
330 |
logger.ErrorFormat("配列セットシステムエラー:{0}:{1}:{2}", ex.Message, FromColum, ToColum);
|
|
325 | 331 |
} |
326 | 332 |
finally |
327 | 333 |
{ |
... | ... | |
359 | 365 |
} |
360 | 366 |
catch (Exception ex) |
361 | 367 |
{ |
362 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}:{3}", ex.Message, FromColum, ToColum, strData);
|
|
368 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}:{3}", ex.Message, FromColum, ToColum, strData);
|
|
363 | 369 |
} |
364 | 370 |
finally |
365 | 371 |
{ |
... | ... | |
475 | 481 |
} |
476 | 482 |
catch (Exception ex) |
477 | 483 |
{ |
478 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", ex.Message, ToColum);
|
|
484 |
logger.ErrorFormat("システムエラー:{0}:{1}", ex.Message, ToColum);
|
|
479 | 485 |
} |
480 | 486 |
finally |
481 | 487 |
{ |
... | ... | |
511 | 517 |
} |
512 | 518 |
catch (Exception ex) |
513 | 519 |
{ |
514 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", ex.Message, ToColum);
|
|
520 |
logger.ErrorFormat("システムエラー:{0}:{1}", ex.Message, ToColum);
|
|
515 | 521 |
} |
516 | 522 |
finally |
517 | 523 |
{ |
branches/src/ProcessManagement/ProcessManagement/Common/Office/UsedWord.cs | ||
---|---|---|
35 | 35 |
/// <summary> |
36 | 36 |
/// WORD拡張子 |
37 | 37 |
/// </summary> |
38 |
private readonly string[] s_WordExtension = { ".doc", ".docx", ".docx", ".docx" }; |
|
38 |
private readonly string[] s_WordExtension = { ".doc", ".docx", ".docx", ".docx", ".docx" };
|
|
39 | 39 |
|
40 | 40 |
/// <summary> |
41 | 41 |
/// ワードバージョン |
42 | 42 |
/// </summary> |
43 | 43 |
private enum WordVersion |
44 | 44 |
{ |
45 |
Word97_2003, |
|
45 |
Word97_2003 = 0,
|
|
46 | 46 |
Word2007, |
47 | 47 |
Word2010, |
48 | 48 |
Word2013, |
49 |
Word2016, |
|
49 | 50 |
} |
50 | 51 |
|
51 | 52 |
/// <summary> |
... | ... | |
175 | 176 |
// Office2013インストール済みの場合 |
176 | 177 |
m_WordVersion = (int)WordVersion.Word2013; |
177 | 178 |
} |
178 |
if (m_WordVersion == 0) return; |
|
179 |
else if ("16.0".Equals(version)) |
|
180 |
{ |
|
181 |
// Office2016インストール済みの場合 |
|
182 |
m_WordVersion = (int)WordVersion.Word2016; |
|
183 |
} |
|
179 | 184 |
} |
180 | 185 |
catch (Exception ex) |
181 | 186 |
{ |
... | ... | |
570 | 575 |
if (!m_SaveSwitch) return; |
571 | 576 |
|
572 | 577 |
// パス作成 |
573 |
//string strFilename = @strFilePath + s_WordExtension[m_WordVersion]; |
|
574 |
string strFilename = @strFilePath + s_WordExtension[0]; |
|
578 |
string strFilename = @strFilePath + s_WordExtension[m_WordVersion]; |
|
575 | 579 |
|
576 | 580 |
object[] Parameters = new object[16]; |
577 | 581 |
Parameters[0] = strFilename; // FileName |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs | ||
---|---|---|
39 | 39 |
IOProcessApproval ApprDB = new IOProcessApproval(); |
40 | 40 |
try |
41 | 41 |
{ |
42 |
string strSQL = ApprDB.CreatePrimarykeyString(Rec.ConstructionCode, Rec.ApprovalCode, Rec.SeqNo); |
|
42 |
string strSQL = ApprDB.CreatePrimarykeyString(Rec.ConstructionCode, Rec.ApprovalCode, Rec.OrderNo, Rec.SeqNo);
|
|
43 | 43 |
List<ProcessApproval> DataList = new List<ProcessApproval>(); |
44 | 44 |
// データがあるかをチェックする |
45 | 45 |
if (!ApprDB.SelectAction(strSQL, ref DataList)) return false; |
... | ... | |
76 | 76 |
/// <param name="ApprovalCode"></param> |
77 | 77 |
/// <param name="Status"></param> |
78 | 78 |
/// <returns></returns> |
79 |
public static bool SetPrimaryRecStatus(int ConstructionCode, int ApprovalCode, int Status) |
|
79 |
public static bool SetPrimaryRecStatus(int ConstructionCode, int ApprovalCode, int OrderNO, int Status)
|
|
80 | 80 |
{ |
81 | 81 |
IOProcessApproval ApprDB = new IOProcessApproval(); |
82 | 82 |
try |
83 | 83 |
{ |
84 | 84 |
// 申請レコードを取得する |
85 |
string strSQL = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, 1);
|
|
86 |
ProcessApproval DataRec = new ProcessApproval(); |
|
87 |
// データがあるかをチェックする |
|
88 |
if (!ApprDB.SelectAction(strSQL, ref DataRec)) return false; |
|
85 |
//string strSQL = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNO, 1);
|
|
86 |
//ProcessApproval DataRec = new ProcessApproval();
|
|
87 |
//// データがあるかをチェックする
|
|
88 |
//if (!ApprDB.SelectAction(strSQL, ref DataRec)) return false;
|
|
89 | 89 |
|
90 | 90 |
// レコードのステータスを変える |
91 |
DataRec.ApprovalStatus = Status; |
|
92 |
if (!ApprDB.UpdateAction(strSQL, DataRec)) return false; |
|
91 |
//DataRec.ApprovalStatus = Status; |
|
92 |
//if (!ApprDB.UpdateAction(strSQL, DataRec)) return false; |
|
93 |
if (!ApprDB.UpdateFeild(ConstructionCode, |
|
94 |
(int)IOProcessApproval.ColumnName.ApprovalStatus, |
|
95 |
Status, |
|
96 |
true, |
|
97 |
ApprovalCode, |
|
98 |
OrderNO, |
|
99 |
1)) return false; |
|
93 | 100 |
|
94 | 101 |
return true; |
95 | 102 |
} |
... | ... | |
112 | 119 |
/// <param name="ConstructionCode"></param> |
113 | 120 |
/// <param name="ApprovalCode"></param> |
114 | 121 |
/// <returns></returns> |
115 |
public static bool CheckPetition(int ConstructionCode, int ApprovalCode) |
|
122 |
public static bool CheckPetition(int ConstructionCode, int ApprovalCode, int ApprovalCount)
|
|
116 | 123 |
{ |
117 | 124 |
IOProcessApproval ApprDB = new IOProcessApproval(); |
118 | 125 |
try |
119 | 126 |
{ |
120 | 127 |
bool bPetition = false; |
121 | 128 |
// 申請データ取得 |
122 |
string strSQL = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, 1); |
|
129 |
string strSQL = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, ApprovalCount, 1);
|
|
123 | 130 |
List<ProcessApproval> PetitionList = new List<ProcessApproval>(); |
124 | 131 |
if (!ApprDB.SelectAction(strSQL, ref PetitionList)) return bPetition; |
125 | 132 |
// 申請データが無い場合 |
... | ... | |
146 | 153 |
/// <param name="ConstructionCode"></param> |
147 | 154 |
/// <param name="ApprovalCode"></param> |
148 | 155 |
/// <returns></returns> |
149 |
public static bool CheckApproval(int ConstructionCode, int ApprovalCode) |
|
156 |
public static bool CheckApproval(int ConstructionCode, int ApprovalCode, int Approvalcount)
|
|
150 | 157 |
{ |
151 | 158 |
IOMApproval mApprDB = new IOMApproval(); |
152 | 159 |
IOProcessApproval ApprDB = new IOProcessApproval(); |
153 | 160 |
try |
154 | 161 |
{ |
155 | 162 |
// 承認データを取得する(申請データを除く) |
156 |
string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, 1); |
|
163 |
string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, Approvalcount, 1);
|
|
157 | 164 |
ProcessApproval DataRec = new ProcessApproval(); |
158 | 165 |
if (!ApprDB.SelectAction(strData, ref DataRec)) return false; |
159 | 166 |
|
... | ... | |
181 | 188 |
/// <param name="ConstructionCode"></param> |
182 | 189 |
/// <param name="ApprovalCode"></param> |
183 | 190 |
/// <returns></returns> |
184 |
public static bool CheckApprovalData(int ConstructionCode, int ApprovalCode) |
|
191 |
public static bool CheckApprovalData(int ConstructionCode, int ApprovalCode, int OrderNo)
|
|
185 | 192 |
{ |
186 | 193 |
IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo(); |
187 | 194 |
IOMApproval mApprDB = new IOMApproval(); |
... | ... | |
193 | 200 |
string strSQL = cbiDB.CreatePrimarykeyString(ConstructionCode); |
194 | 201 |
ConstructionBaseInfo cbiData = new ConstructionBaseInfo(); |
195 | 202 |
if (!cbiDB.SelectAction(strSQL, ref cbiData)) return false; |
196 |
int DepartmentCode = GetFromConstructionAndApprovalTheDepartment(ConstructionCode, ApprovalCode); |
|
203 |
int DepartmentCode = GetFromConstructionAndApprovalTheDepartment(ConstructionCode, ApprovalCode, OrderNo);
|
|
197 | 204 |
|
198 | 205 |
// 承認データを取得する(申請データを除く) |
199 |
string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode); |
|
206 |
string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo);
|
|
200 | 207 |
strData += string.Format(" And SeqNo != 1 And ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval); |
201 | 208 |
List<ProcessApproval> DataList = new List<ProcessApproval>(); |
202 | 209 |
if (!ApprDB.SelectAction(strData, ref DataList)) return false; |
... | ... | |
365 | 372 |
/// </summary> |
366 | 373 |
/// <param name="PersonCode"></param> |
367 | 374 |
/// <returns></returns> |
368 |
public static int GetFromConstructionAndApprovalTheDepartment(int ConstructionCode, int ApprovalCode) |
|
375 |
public static int GetFromConstructionAndApprovalTheDepartment(int ConstructionCode, int ApprovalCode, int OrderNo)
|
|
369 | 376 |
{ |
370 | 377 |
IOMPersonInCharge picDB = new IOMPersonInCharge(); |
371 | 378 |
IOProcessApproval ApprovalDB = new IOProcessApproval(); |
372 | 379 |
try |
373 | 380 |
{ |
374 | 381 |
// 管理担当者コードを取得する |
375 |
string strSQL = ApprovalDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode); |
|
376 |
strSQL += " AND SEQNO = 1"; |
|
382 |
string strSQL = ApprovalDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo, 1); |
|
377 | 383 |
ProcessApproval ApprovalRec = new ProcessApproval(); |
378 | 384 |
int CurrentPersonCode = 0; |
379 | 385 |
if (ApprovalDB.SelectAction(strSQL, ref ApprovalRec)) |
... | ... | |
480 | 486 |
/// 該当工事より承認数取得する |
481 | 487 |
/// </summary> |
482 | 488 |
/// <returns></returns> |
483 |
public static int GetApprovalDataCount(int ConstructionCode, int ApprovalCode) |
|
489 |
public static int GetApprovalDataCount(int ConstructionCode, int ApprovalCode, int ApprovalCount)
|
|
484 | 490 |
{ |
485 | 491 |
IOProcessApproval paDB = new IOProcessApproval(); |
486 | 492 |
try |
487 | 493 |
{ |
488 | 494 |
// 承認データ取得 |
489 |
string strSQL = paDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode); |
|
495 |
string strSQL = paDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, ApprovalCount);
|
|
490 | 496 |
strSQL += " And SeqNo != 1 And ApprovalStatus = 2"; |
491 | 497 |
List<ProcessApproval> ApprovalList = new List<ProcessApproval>(); |
492 | 498 |
if (!paDB.SelectAction(strSQL, ref ApprovalList)) return 0; |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCalendar.cs | ||
---|---|---|
77 | 77 |
int Holidays = 0; |
78 | 78 |
|
79 | 79 |
string strSQL = "SELECT COUNT(*) FROM HOLIDAYCALENDERMASTER"; |
80 |
strSQL += string.Format(" WHERE DATE_FORMAT('{0}','%Y/%m/%d') <= HOLIDAY", Startdate.ToShortDateString());
|
|
81 |
strSQL += string.Format(" AND HOLIDAY <= DATE_FORMAT('{0}','%Y/%m/%d')", Complatedate.ToShortDateString());
|
|
80 |
strSQL += string.Format(" WHERE TO_DATE('{0}','YYYY/MM/DD') <= HOLIDAY", Startdate.ToShortDateString());
|
|
81 |
strSQL += string.Format(" AND HOLIDAY <= TO_DATE('{0}','YYYY/MM/DD')", Complatedate.ToShortDateString());
|
|
82 | 82 |
|
83 | 83 |
ArrayList datalist = new ArrayList(); |
84 | 84 |
if (!calDB.ExecuteReader(strSQL, ref datalist)) return 0; |
... | ... | |
128 | 128 |
} |
129 | 129 |
#endregion |
130 | 130 |
|
131 |
//#region 指定期間内の経過日数を1人月を上限に返す |
|
132 |
///// <summary> |
|
133 |
///// 指定期間内の経過日数を1人月を上限に返す |
|
134 |
///// </summary> |
|
135 |
///// <param name="startdate">開始日</param> |
|
136 |
///// <param name="Complatedate">終了日</param> |
|
137 |
///// <returns></returns> |
|
138 |
//public static int CalcPassedDaysCountToUnit(DateTime Startdate, DateTime Complatedate) |
|
139 |
//{ |
|
140 |
// try |
|
141 |
// { |
|
142 |
// int passDay = CalcPassedDaysCount(Startdate, Complatedate); |
|
143 |
|
|
144 |
// int OneMonth = (int)(CommonDefine.s_ManHourUnitDays * 10.0); |
|
145 |
|
|
146 |
// //if (passDay > OneMonth) passDay = OneMonth; |
|
147 |
|
|
148 |
// return passDay; |
|
149 |
// } |
|
150 |
// catch (Exception ex) |
|
151 |
// { |
|
152 |
// logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
153 |
// return 0; |
|
154 |
// } |
|
155 |
//} |
|
156 |
//#endregion |
|
131 |
#region 日数を月数に変換して返す |
|
132 |
/// <summary> |
|
133 |
/// 日数を月数に変換して返す |
|
134 |
/// </summary> |
|
135 |
/// <param name="DateCount"></param> |
|
136 |
/// <returns></returns> |
|
137 |
public static double cnvMonthFromDays(int DateCount) |
|
138 |
{ |
|
139 |
try |
|
140 |
{ |
|
141 |
return (DateCount / CommonDefine.s_ManHourUnitMonth); |
|
142 |
} |
|
143 |
catch (Exception ex) |
|
144 |
{ |
|
145 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
146 |
return 0; |
|
147 |
} |
|
148 |
} |
|
149 |
#endregion |
|
157 | 150 |
} |
158 | 151 |
} |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeBaseInfoData.cs | ||
---|---|---|
60 | 60 |
try |
61 | 61 |
{ |
62 | 62 |
// 工事詳細台帳入力完了日をセットする |
63 |
if (!BaseDB.UpdateFeild(ConstrCode, (int)IOConstructionBaseInfo.TableColumn.LEDGERCOMPLATEDATE, SetDate)) return false;
|
|
63 |
if (!BaseDB.UpdateFeild(ConstrCode, (int)IOConstructionBaseInfo.TableColumn.LedgerComplateDate, SetDate)) return false;
|
|
64 | 64 |
|
65 | 65 |
return true; |
66 | 66 |
} |
... | ... | |
75 | 75 |
} |
76 | 76 |
} |
77 | 77 |
#endregion |
78 |
|
|
79 |
#region 関連データすべて削除 |
|
80 |
/// <summary> |
|
81 |
/// 関連データすべて削除 |
|
82 |
/// </summary> |
|
83 |
/// <returns></returns> |
|
84 |
public static bool RemoveAllelationData(int RemoveCode) |
|
85 |
{ |
|
86 |
IOConstructionBaseInfo DB01 = new IOConstructionBaseInfo(); // 工事基本情報 |
|
87 |
IOConstructionBaseInfoDetail DB02 = new IOConstructionBaseInfoDetail(); // 工事基本情報明細 |
|
88 |
IOConstructionLink DB03 = new IOConstructionLink(); // 工事増減情報 |
|
89 |
IOProcessApproval DB04 = new IOProcessApproval(); // 承認データ |
|
90 |
IOConstructionProgressDate DB05 = new IOConstructionProgressDate(); // 案件進捗日付データ |
|
91 |
IOEstimateData DB06 = new IOEstimateData(); // 積算見積書データ |
|
92 |
IOEstimateDataBody DB07 = new IOEstimateDataBody(); // 積算見積書ページデータ |
|
93 |
IOEstimateDataDetail DB08 = new IOEstimateDataDetail(); // 積算見積書明細データ |
|
94 |
IOEstimateBudget DB09 = new IOEstimateBudget(); // 積算予算書データ |
|
95 |
IOEstimateBudgetDetail DB10 = new IOEstimateBudgetDetail(); // 積算予算書明細データ |
|
96 |
IOConstructionBudget DB11 = new IOConstructionBudget(); // 工事予算書データ |
|
97 |
IOOrdersPriceData DB12 = new IOOrdersPriceData(); // 受注金額データ |
|
98 |
IOConstructionBudgetDetail DB13 = new IOConstructionBudgetDetail(); // 工事予算書明細データ |
|
99 |
IOConstructionLedger DB14 = new IOConstructionLedger(); // 工事詳細台帳データ |
|
100 |
IOConstructionLedgerDetail DB15 = new IOConstructionLedgerDetail(); // 工事詳細台帳明細データ |
|
101 |
IOConstructionLedgerExcute DB16 = new IOConstructionLedgerExcute(); // 工事詳細台帳実行データ |
|
102 |
IOPurchaseOrder DB17 = new IOPurchaseOrder(); // 注文書データ |
|
103 |
IOPurchaseOrderDetail DB18 = new IOPurchaseOrderDetail(); // 注文書明細データ |
|
104 |
|
|
105 |
IOProceedingsData DB19 = new IOProceedingsData(); // 発注者打ち合わせ議事録データ |
|
106 |
IOProceedingsDataAttendee DB20 = new IOProceedingsDataAttendee(); // 発注者打ち合わせ議事録データ(出席者) |
|
107 |
IOProceedingsDataDetail DB21 = new IOProceedingsDataDetail(); // 発注者打ち合わせ議事録データ(明細) |
|
108 |
IODailyDataConstruction DB22 = new IODailyDataConstruction(); // 日報データ |
|
109 |
IODailyDataDetail DB23 = new IODailyDataDetail(); // 日報データ (明細) |
|
110 |
IODailyDataVehicles DB24 = new IODailyDataVehicles(); // 日報データ (車両) |
|
111 |
IODailyDataMaterials DB25 = new IODailyDataMaterials(); // 日報データ (資材) |
|
112 |
IODailyDataSubcontractors DB26 = new IODailyDataSubcontractors(); // 日報データ (協力業者指示) |
|
113 |
IODailyDataField DB27 = new IODailyDataField(); // 日報データ (現場巡回) |
|
114 |
try |
|
115 |
{ |
|
116 |
// 工事情報存在確認 |
|
117 |
string strExists = DB01.CreatePrimarykeyString(RemoveCode); |
|
118 |
ConstructionBaseInfo BaseRec = new ConstructionBaseInfo(); |
|
119 |
if (!DB01.SelectAction(strExists, ref BaseRec)) return false; |
|
120 |
|
|
121 |
List<int> RemoveList = new List<int>(); |
|
122 |
List<int> UpdateLinkList = new List<int>(); |
|
123 |
int ParentCode = 0; |
|
124 |
int LinkCount = 0; |
|
125 |
RemoveList.Add(RemoveCode); |
|
126 |
// 増減工事親確認 |
|
127 |
if (BaseRec.TyingFlg == (int)CommonDefine.BaseInfoTyingFlg.Parent) |
|
128 |
{ |
|
129 |
GetLinkageCode(RemoveCode, DB03, ref RemoveList, false); |
|
130 |
} |
|
131 |
else if (BaseRec.TyingFlg == (int)CommonDefine.BaseInfoTyingFlg.Tying) |
|
132 |
{ |
|
133 |
LinkCount = GetLinkageCode2(RemoveCode, DB03, ref ParentCode); |
|
134 |
} |
|
135 |
// 結合工事親確認 |
|
136 |
if (BaseRec.JoinFlg == (int)CommonDefine.BaseInfoJoinFlg.JoinParent) |
|
137 |
{ |
|
138 |
GetLinkageCode(RemoveCode, DB03, ref UpdateLinkList, true); |
|
139 |
} |
|
140 |
|
|
141 |
DB01.connect(); DB02.connect(); DB03.connect(); DB04.connect(); DB05.connect(); DB06.connect(); |
|
142 |
DB07.connect(); DB08.connect(); DB09.connect(); DB10.connect(); DB11.connect(); DB12.connect(); |
|
143 |
DB13.connect(); DB14.connect(); DB15.connect(); DB16.connect(); DB17.connect(); DB18.connect(); |
|
144 |
DB19.connect(); DB20.connect(); DB21.connect(); DB22.connect(); DB23.connect(); DB24.connect(); |
|
145 |
DB25.connect(); DB26.connect(); DB27.connect(); |
|
146 |
|
|
147 |
DB01.beginTran(); DB02.beginTran(); DB03.beginTran(); DB04.beginTran(); DB05.beginTran(); DB06.beginTran(); |
|
148 |
DB07.beginTran(); DB08.beginTran(); DB09.beginTran(); DB10.beginTran(); DB11.beginTran(); DB12.beginTran(); |
|
149 |
DB13.beginTran(); DB14.beginTran(); DB15.beginTran(); DB16.beginTran(); DB17.beginTran(); DB18.beginTran(); |
|
150 |
DB19.beginTran(); DB20.beginTran(); DB21.beginTran(); DB22.beginTran(); DB23.beginTran(); DB24.beginTran(); |
|
151 |
DB25.beginTran(); DB26.beginTran(); DB27.beginTran(); |
|
152 |
|
|
153 |
bool ProcSuccess = true; |
|
154 |
string strRemove = string.Empty; |
|
155 |
string strRemove2 = string.Empty; |
|
156 |
for (int i = 0; i < RemoveList.Count; i++) |
|
157 |
{ |
|
158 |
strRemove = DB01.CreatePrimarykeyString(RemoveList[i]); |
他の形式にエクスポート: Unified diff