リビジョン 40
自動更新機能アップデート版
trunk/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs | ||
---|---|---|
37 | 37 |
/// <summary> |
38 | 38 |
/// パスを定数で定義する |
39 | 39 |
/// </summary> |
40 |
public const string s_UPDATE_FILE_PATH = @"Z:\52GenbaKantokuHisyo"; |
|
40 |
public const string s_UPDATE_FILE_PATH = @"D:\Work\Test"; |
|
41 |
//public const string s_UPDATE_FILE_PATH = @"Z:\52GenbaKantokuHisyo"; |
|
41 | 42 |
//public const string s_UPDATE_FILE_PATH = @"Z:\5-2現場監督秘書"; |
42 | 43 |
//private const string s_UPDATE_FILE_PATH = @"Z:\⑤IT事業部用\Debug"; |
43 | 44 |
public const string s_UPDATECOPY_NAME = "UpDateCopy.exe"; |
... | ... | |
521 | 522 |
/// <summary> |
522 | 523 |
/// 起動時日付チェックを必要とする処理のキー |
523 | 524 |
/// </summary> |
524 |
public static Dictionary<int, string> ExePrimaryCode = new Dictionary<int, string>() { { 1, "初回起動日付" } }; |
|
525 |
public static Dictionary<int, string> ExePrimaryCode = new Dictionary<int, string>() { { 1, "初回起動日付" }, |
|
526 |
{ 2, "システムバージョン" }, |
|
527 |
}; |
|
525 | 528 |
#endregion |
526 | 529 |
|
527 | 530 |
#region 管理マスタ:工事番号基準値 |
trunk/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 = 1; |
|
18 |
|
|
19 |
/// <summary> |
|
20 |
/// コピー・環境バージョン |
|
21 |
/// </summary> |
|
22 |
public static int s_UpDateCopyVersion = 1; |
|
23 |
} |
|
24 |
} |
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
66 | 66 |
PurchaseOrderStatus = 19, // 19:注文書発給一覧 |
67 | 67 |
OrderJoin = 20, // 20:工事結合 |
68 | 68 |
ConstructionSplit = 21, // 21:工事分割 |
69 |
DRTransport = 22, // 22:通勤交通費 |
|
69 | 70 |
} |
70 | 71 |
#endregion |
71 | 72 |
|
... | ... | |
145 | 146 |
{ (int)ProcessExecuteNo.DRConstruction, "工事日報-入力"}, |
146 | 147 |
{ (int)ProcessExecuteNo.Proceedings, "打合せ議事録-入力"}, |
147 | 148 |
//{ (int)ProcessExecuteNo.DailyReportList, "出勤日報-入力"}, |
148 |
}; |
|
149 |
//{ (int)ProcessExecuteNo.PurchaseOrderStatus, "注文書発給状況-一覧"}, |
|
150 |
//{ (int)ProcessExecuteNo.OrderJoin, "工事結合-入力"}, |
|
151 |
//{ (int)ProcessExecuteNo.ConstructionSplit, "工事分割-入力"}, |
|
152 |
//{ (int)ProcessExecuteNo.DRTransport, "通勤交通費-入力"}, |
|
153 |
}; |
|
149 | 154 |
|
150 | 155 |
#endregion |
151 | 156 |
|
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsUpDate.cs | ||
---|---|---|
110 | 110 |
} |
111 | 111 |
} |
112 | 112 |
#endregion |
113 |
|
|
114 |
#region ファイルをコピーする |
|
115 |
/// <summary> |
|
116 |
/// ファイルのハッシュ値と更新日付を確認する |
|
117 |
/// </summary> |
|
118 |
/// <returns></returns> |
|
119 |
public static bool UpdateAndEnvFileCopy() |
|
120 |
{ |
|
121 |
try |
|
122 |
{ |
|
123 |
bool bRet = true; // 戻り値 |
|
124 |
string srcUpdataProc = string.Empty; // コピー元ファイルパス作成エリア |
|
125 |
string destUpdataProc = string.Empty; // コピー先ファイルパス作成エリア |
|
126 |
|
|
127 |
// デバック以外は使わない |
|
128 |
//return true; |
|
129 |
// 接続できなければ処理しない |
|
130 |
if (!Directory.Exists(CommonDefine.s_UPDATE_FILE_PATH)) return true; |
|
131 |
|
|
132 |
// コピー元(サーバー)ファイルリストを取得する |
|
133 |
string[] files = Directory.GetFiles(CommonDefine.s_UPDATE_FILE_PATH); |
|
134 |
foreach (string sourceFile in files) |
|
135 |
{ |
|
136 |
// ファイル名を取得する |
|
137 |
int spoint = sourceFile.LastIndexOf("\\") + 1; |
|
138 |
string Procename = sourceFile.Substring(spoint); |
|
139 |
// コピー先(カレント)ファイル名作成 |
|
140 |
string destinationFile = System.Environment.CurrentDirectory + "\\" + Procename; |
|
141 |
|
|
142 |
// コピープロセスコピー |
|
143 |
if (!CommonDefine.s_UPDATECOPY_NAME.Equals(Procename)) continue; |
|
144 |
|
|
145 |
srcUpdataProc = @sourceFile; |
|
146 |
destUpdataProc = @destinationFile; |
|
147 |
|
|
148 |
File.Copy(@srcUpdataProc, @destUpdataProc, true); |
|
149 |
} |
|
150 |
|
|
151 |
return bRet; |
|
152 |
} |
|
153 |
catch (Exception ex) |
|
154 |
{ |
|
155 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
156 |
return false; |
|
157 |
} |
|
158 |
} |
|
159 |
#endregion |
|
113 | 160 |
} |
114 | 161 |
} |
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyData.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Data; |
|
6 |
using System.Collections; |
|
7 |
|
|
8 |
using log4net; |
|
9 |
using Oracle.ManagedDataAccess.Client; |
|
10 |
|
|
11 |
using ProcessManagement.DB.Oracle; |
|
12 |
using ProcessManagement.DB.Core; |
|
13 |
using ProcessManagement.DataModel; |
|
14 |
using ProcessManagement.Common; |
|
15 |
|
|
16 |
namespace ProcessManagement.DB.IOAccess |
|
17 |
{ |
|
18 |
/// <summary> |
|
19 |
/// 日報データDBアクセス |
|
20 |
/// </summary> |
|
21 |
public class IODailyData : OracleProcess |
|
22 |
{ |
|
23 |
#region 定義部 |
|
24 |
/// <summary> |
|
25 |
/// log4netログを使用する |
|
26 |
/// </summary> |
|
27 |
private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
28 |
#endregion |
|
29 |
|
|
30 |
#region 定数 |
|
31 |
/// <summary> |
|
32 |
/// データフィールド並び |
|
33 |
/// </summary> |
|
34 |
public enum DataColumn |
|
35 |
{ |
|
36 |
/// <summary> |
|
37 |
/// 作成者コード |
|
38 |
/// </summary> |
|
39 |
PersonCode, |
|
40 |
/// <summary> |
|
41 |
/// 日報作成日 |
|
42 |
/// </summary> |
|
43 |
DailyDataDate, |
|
44 |
/// <summary> |
|
45 |
/// 行番号 |
|
46 |
/// </summary> |
|
47 |
LineCount, |
|
48 |
/// <summary> |
|
49 |
/// 工事番号 |
|
50 |
/// </summary> |
|
51 |
ConstructionCode, |
|
52 |
/// <summary> |
|
53 |
/// 作業内容 |
|
54 |
/// </summary> |
|
55 |
WorkContentsText, |
|
56 |
/// <summary> |
|
57 |
/// 登録年月日 |
|
58 |
/// </summary> |
|
59 |
EntryDate, |
|
60 |
/// <summary> |
|
61 |
/// 更新年月日 |
|
62 |
/// </summary> |
|
63 |
UpdateDate, |
|
64 |
} |
|
65 |
#endregion |
|
66 |
|
|
67 |
#region コンストラクタ |
|
68 |
/// <summary> |
|
69 |
/// コンストラクタ |
|
70 |
/// </summary> |
|
71 |
/// <param name="ConnectionString"></param> |
|
72 |
public IODailyData() |
|
73 |
: base(DBCommon.Instance.DBConnectString) |
|
74 |
{ |
|
75 |
} |
|
76 |
|
|
77 |
#endregion |
|
78 |
|
|
79 |
#region SQL作成 |
|
80 |
/// <summary> |
|
81 |
/// SQL作成 |
|
82 |
/// </summary> |
|
83 |
private string CreateSelectSQL() |
|
84 |
{ |
|
85 |
// SQL作成(oracleのDateTime型が変換できないのでCharに変換しておく) |
|
86 |
string strcmd = "SELECT"; |
|
87 |
|
|
88 |
strcmd += " PersonCode"; // 担当者コード |
|
89 |
strcmd += " ,TO_CHAR(DailyDataDate, 'YYYY/MM/DD')"; // 日報作成日 |
|
90 |
strcmd += " ,LineCount"; // 行番号 |
|
91 |
strcmd += " ,ConstructionCode"; // 工事番号 |
|
92 |
strcmd += " ,WorkContentsText"; // 作業内容 |
|
93 |
strcmd += ", TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')"; // 登録年月日 |
|
94 |
strcmd += ", TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')"; // 更新年月日 |
|
95 |
strcmd += " FROM DailyData"; |
|
96 |
|
|
97 |
return strcmd; |
|
98 |
} |
|
99 |
#endregion |
|
100 |
|
|
101 |
#region 複数読込み処理 |
|
102 |
public bool SelectAction(string AddSQLString, ref List<DailyData> data, bool bConnect = true) |
|
103 |
{ |
|
104 |
//Oracle インターフェース |
|
105 |
string strcmd = ""; |
|
106 |
ArrayList arData = new ArrayList(); |
|
107 |
|
|
108 |
try |
|
109 |
{ |
|
110 |
// SQL作成 |
|
111 |
strcmd = CreateSelectSQL() + AddSQLString; |
|
112 |
|
|
113 |
// SQL実行 |
|
114 |
if (!ExecuteReader(strcmd, ref arData, bConnect)) return false; |
|
115 |
|
|
116 |
// データセット |
|
117 |
foreach (object[] objwrk in arData) |
|
118 |
{ |
|
119 |
DailyData work = new DailyData(); |
|
120 |
Reader2Struct(objwrk, ref work); |
|
121 |
data.Add(work); |
|
122 |
} |
|
123 |
|
|
124 |
return true; |
|
125 |
} |
|
126 |
catch (Exception ex) |
|
127 |
{ |
|
128 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd); |
|
129 |
return false; |
|
130 |
} |
|
131 |
} |
|
132 |
#endregion |
|
133 |
|
|
134 |
#region 1件読込み処理 |
|
135 |
public bool SelectAction(string AddSQLString, ref DailyData data, bool bConnect = true) |
|
136 |
{ |
|
137 |
//Oracle インターフェース |
|
138 |
string strcmd = ""; |
|
139 |
ArrayList arData = new ArrayList(); |
|
140 |
|
|
141 |
try |
|
142 |
{ |
|
143 |
strcmd = CreateSelectSQL() + AddSQLString; |
|
144 |
|
|
145 |
// SQL実行 |
|
146 |
if (!ExecuteReader(strcmd, ref arData, bConnect)) return false; |
|
147 |
if (arData.Count == 0) return false; |
|
148 |
|
|
149 |
// データセット |
|
150 |
foreach (object[] objwrk in arData) |
|
151 |
{ |
|
152 |
Reader2Struct(objwrk, ref data); |
|
153 |
break; |
|
154 |
} |
|
155 |
|
|
156 |
return true; |
|
157 |
} |
|
158 |
catch (Exception ex) |
|
159 |
{ |
|
160 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd); |
|
161 |
return false; |
|
162 |
} |
|
163 |
} |
|
164 |
#endregion |
|
165 |
|
|
166 |
#region 1件追加処理 |
|
167 |
/// <summary> |
|
168 |
/// 担当者毎経費データ追加 |
|
169 |
/// </summary> |
|
170 |
/// <param name="data">担当者毎経費データデータ</param> |
|
171 |
/// <returns>true:成功 false:失敗</returns> |
|
172 |
public bool InsertAction(DailyData work, bool bConnect = true) |
|
173 |
{ |
|
174 |
string strcmd = ""; |
|
175 |
try |
|
176 |
{ |
|
177 |
strcmd = "INSERT INTO DailyData"; |
|
178 |
|
|
179 |
strcmd += " VALUES ("; |
|
180 |
|
|
181 |
strcmd += string.Format(" {0}", work.PersonCode); // 担当者コード |
|
182 |
strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')" |
|
183 |
, work.DailyDataDate.ToShortDateString()); // 日報作成日 |
|
184 |
strcmd += string.Format(", {0}", work.LineCoount); // 行番号 |
|
185 |
strcmd += string.Format(", {0}", work.ConstructionCode); // 工事番号 |
|
186 |
strcmd += string.Format(",'{0}'", work.WorkContentsText); // 作業内容 |
|
187 |
|
|
188 |
strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
|
189 |
strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
|
190 |
strcmd = strcmd + ")"; |
|
191 |
|
|
192 |
if (!ExecuteNonQuery(strcmd, bConnect)) return false; |
|
193 |
|
|
194 |
return true; |
|
195 |
} |
|
196 |
catch (Exception ex) |
|
197 |
{ |
|
198 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd); |
|
199 |
return false; |
|
200 |
} |
|
201 |
} |
|
202 |
#endregion |
|
203 |
|
|
204 |
#region 複数追加処理 |
|
205 |
public bool InsertAction(List<DailyData> data, bool bConnect = true) |
|
206 |
{ |
|
207 |
string strcmd = ""; |
|
208 |
try |
|
209 |
{ |
|
210 |
|
|
211 |
foreach (DailyData work in data) |
|
212 |
{ |
|
213 |
if (!InsertAction(work, bConnect)) return false; |
|
214 |
} |
|
215 |
return true; |
|
216 |
} |
|
217 |
catch (Exception ex) |
|
218 |
{ |
|
219 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd); |
|
220 |
return false; |
|
221 |
} |
|
222 |
} |
|
223 |
#endregion |
|
224 |
|
|
225 |
#region 更新処理 |
|
226 |
/// <summary> |
|
227 |
/// 担当者毎経費データ更新 |
|
228 |
/// </summary> |
|
229 |
/// <param name="AddSQLString">更新条件SQL文字列</param> |
|
230 |
/// <param name="data">担当者毎経費データデータ</param> |
|
231 |
/// <returns>true:成功 false:失敗</returns> |
|
232 |
public bool UpdateAction(string AddSQLString, DailyData data, bool bConnect = true) |
|
233 |
{ |
|
234 |
string strcmd = ""; |
|
235 |
try |
|
236 |
{ |
|
237 |
|
|
238 |
strcmd = "UPDATE DailyData"; |
|
239 |
|
|
240 |
strcmd += " SET"; |
|
241 |
|
|
242 |
strcmd += string.Format(" PersonCode = {0}", data.PersonCode); // 担当者コード |
|
243 |
strcmd += string.Format(",DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')" |
|
244 |
, data.DailyDataDate.ToShortDateString()); // 日報作成日 |
|
245 |
strcmd += string.Format(",LineCoount = {0}", data.LineCoount); // 行番号 |
|
246 |
strcmd += string.Format(",ConstructionCode = {0}", data.ConstructionCode); // 工事番号 |
|
247 |
strcmd += string.Format(",WorkContentsText = '{0}'", data.WorkContentsText); // 作業内容 |
|
248 |
|
|
249 |
strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
|
250 |
strcmd += AddSQLString; |
|
251 |
|
|
252 |
if (!ExecuteNonQuery(strcmd, bConnect)) return false; |
|
253 |
|
|
254 |
return true; |
|
255 |
} |
|
256 |
catch (Exception ex) |
|
257 |
{ |
|
258 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd); |
|
259 |
return false; |
|
260 |
} |
|
261 |
} |
|
262 |
#endregion |
|
263 |
|
|
264 |
#region 削除処理 |
|
265 |
/// <summary> |
|
266 |
/// 担当者毎経費データ削除 |
|
267 |
/// </summary> |
|
268 |
/// <param name="AddSQLString">削除条件SQL文字列</param> |
|
269 |
/// <param name="data">担当者毎経費データデータ</param> |
|
270 |
/// <returns>true:成功 false:失敗</returns> |
|
271 |
public bool DeleteAction(string AddSQLString, bool bConnect = true) |
|
272 |
{ |
|
273 |
//Oracle インターフェース |
|
274 |
string strcmd = ""; |
|
275 |
try |
|
276 |
{ |
|
277 |
strcmd = string.Format("{0}{1}", "DELETE FROM DailyData", AddSQLString); |
|
278 |
|
|
279 |
if (!ExecuteNonQuery(strcmd, bConnect)) return false; |
|
280 |
|
|
281 |
return true; |
|
282 |
} |
|
283 |
catch (Exception ex) |
|
284 |
{ |
|
285 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd); |
|
286 |
return false; |
|
287 |
} |
|
288 |
} |
|
289 |
#endregion |
|
290 |
|
|
291 |
#region データセット処理 |
|
292 |
/// <summary> |
|
293 |
/// OracleDataReaderより構造体へセットする |
|
294 |
/// </summary> |
|
295 |
/// <param name="reader">OracleDataReader</param> |
|
296 |
/// <param name="wrk">構造体</param> |
|
297 |
public void Reader2Struct(object[] objwrk, ref DailyData wrk) |
|
298 |
{ |
|
299 |
try |
|
300 |
{ |
|
301 |
// データ取得 |
|
302 |
wrk.PersonCode = int.Parse(objwrk[(int)DataColumn.PersonCode].ToString()); // 担当者コード |
|
303 |
wrk.DailyDataDate = DateTime.Parse(objwrk[(int)DataColumn.DailyDataDate].ToString()); // 日報作成日 |
|
304 |
wrk.LineCoount = int.Parse(objwrk[(int)DataColumn.LineCount].ToString()); // 行番号 |
|
305 |
wrk.ConstructionCode = int.Parse(objwrk[(int)DataColumn.ConstructionCode].ToString()); // 工事番号 |
|
306 |
wrk.WorkContentsText = objwrk[(int)DataColumn.WorkContentsText].ToString(); // 作業内容 |
|
307 |
|
|
308 |
wrk.EntryDate = DateTime.Parse(objwrk[(int)DataColumn.EntryDate].ToString()); |
|
309 |
wrk.UpdateDate = DateTime.Parse(objwrk[(int)DataColumn.UpdateDate].ToString()); |
|
310 |
} |
|
311 |
catch (OracleException oraex) |
|
312 |
{ |
|
313 |
logger.ErrorFormat("オラクルエラー:{0}:{1}", CommonMotions.GetMethodName(2), oraex.Message); |
|
314 |
} |
|
315 |
catch (Exception ex) |
|
316 |
{ |
|
317 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(2), ex.Message); |
|
318 |
} |
|
319 |
} |
|
320 |
#endregion |
|
321 |
|
|
322 |
#region 検索文字列作成処理 |
|
323 |
/// <summary> |
|
324 |
/// 主キー検索の文字列を返す |
|
325 |
/// </summary> |
|
326 |
/// <param name="PersonCode"></param> |
|
327 |
/// <param name="ActionDate"></param> |
|
328 |
/// <param name="DataType"></param> |
|
329 |
/// <param name="DataAddCount"></param> |
|
330 |
/// <returns></returns> |
|
331 |
public string CreatePrimarykeyString(int PersonCode, DateTime DailyDataDate, int LineCount) |
|
332 |
{ |
|
333 |
string strWork = ""; |
|
334 |
try |
|
335 |
{ |
|
336 |
strWork = string.Format(" WHERE PersonCode = {0}", PersonCode); |
|
337 |
if (DailyDataDate != DateTime.MinValue) |
|
338 |
strWork += string.Format(" AND DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')", DailyDataDate.ToShortDateString()); |
|
339 |
if (LineCount != 0) |
|
340 |
strWork += string.Format(" AND LineCount = {0}", LineCount); |
|
341 |
} |
|
342 |
catch (Exception ex) |
|
343 |
{ |
|
344 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strWork); |
|
345 |
} |
|
346 |
|
|
347 |
return strWork; |
|
348 |
} |
|
349 |
#endregion |
|
350 |
|
|
351 |
} |
|
352 |
} |
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOSystemExecute.cs | ||
---|---|---|
35 | 35 |
{ |
36 | 36 |
PrimaryCode = 0, |
37 | 37 |
TargetDate, |
38 |
SystemVersion, |
|
39 |
UpDateCopyVersion, |
|
38 | 40 |
EntryDate, |
39 | 41 |
UpdateDate, |
40 | 42 |
} |
... | ... | |
65 | 67 |
string strcmd = "SELECT"; |
66 | 68 |
strcmd += " PrimaryCode"; |
67 | 69 |
strcmd += " ,TO_CHAR(TargetDate, 'YYYY/MM/DD HH24:MI:ss')"; |
70 |
strcmd += " ,SystemVersion"; |
|
71 |
strcmd += " ,UpDateCopyVersion"; |
|
68 | 72 |
strcmd += " ,TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')"; |
69 | 73 |
strcmd += " ,TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')"; |
70 | 74 |
strcmd += " FROM SystemExecute"; |
... | ... | |
168 | 172 |
|
169 | 173 |
strcmd += "(PrimaryCode"; |
170 | 174 |
strcmd += " ,TargetDate"; |
175 |
strcmd += " ,SystemVersion"; |
|
176 |
strcmd += " ,UpDateCopyVersion"; |
|
171 | 177 |
strcmd += " ,EntryDate"; |
172 | 178 |
strcmd += " ,UpdateDate)"; |
173 | 179 |
|
174 | 180 |
strcmd += " VALUES ("; |
175 | 181 |
strcmd += string.Format("{0}", work.PrimaryCode); |
176 | 182 |
strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", work.TargetDate.ToShortDateString()); |
183 |
strcmd += string.Format("{0}", work.SystemVersion); |
|
184 |
strcmd += string.Format("{0}", work.UpDateCopyVersion); |
|
177 | 185 |
|
178 | 186 |
strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
179 | 187 |
strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
... | ... | |
255 | 263 |
|
256 | 264 |
strcmd += string.Format(" PrimaryCode = {0}", data.PrimaryCode); |
257 | 265 |
strcmd += string.Format(", TargetDate = TO_DATE('{0}','YYYY/MM/DD')", data.TargetDate.ToShortDateString()); |
266 |
strcmd += string.Format(", SystemVersion = {0}", data.SystemVersion); |
|
267 |
strcmd += string.Format(", UpDateCopyVersion = {0}", data.UpDateCopyVersion); |
|
258 | 268 |
|
259 | 269 |
strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
260 | 270 |
strcmd += AddSQLString; |
... | ... | |
323 | 333 |
case (int)TableColumn.TargetDate: |
324 | 334 |
strcmd += string.Format(" TargetDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString()); |
325 | 335 |
break; |
336 |
case (int)TableColumn.SystemVersion: |
|
337 |
strcmd += string.Format(" SystemVersion = {0}", ((int)value).ToString()); |
|
338 |
break; |
|
339 |
case (int)TableColumn.UpDateCopyVersion: |
|
340 |
strcmd += string.Format(" UpDateCopyVersion = {0}", ((int)value).ToString()); |
|
341 |
break; |
|
326 | 342 |
} |
327 | 343 |
|
328 | 344 |
strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')"; |
... | ... | |
353 | 369 |
// データ取得 |
354 | 370 |
wrk.PrimaryCode = int.Parse(objwrk[(int)TableColumn.PrimaryCode].ToString()); |
355 | 371 |
wrk.TargetDate = DateTime.Parse(objwrk[(int)TableColumn.TargetDate].ToString()); |
372 |
wrk.SystemVersion = int.Parse(objwrk[(int)TableColumn.SystemVersion].ToString()); |
|
373 |
wrk.UpDateCopyVersion = int.Parse(objwrk[(int)TableColumn.UpDateCopyVersion].ToString()); |
|
356 | 374 |
|
357 | 375 |
wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString()); |
358 | 376 |
wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString()); |
trunk/src/ProcessManagement/ProcessManagement/DataModel/DailyData.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
|
|
6 |
namespace ProcessManagement.DataModel |
|
7 |
{ |
|
8 |
/// <summary> |
|
9 |
/// 日報データ定義クラス |
|
10 |
/// </summary> |
|
11 |
public class DailyData |
|
12 |
{ |
|
13 |
#region メンバ変数 |
|
14 |
/// <summary> |
|
15 |
/// 作成者コード |
|
16 |
/// </summary> |
|
17 |
private int m_PersonCode = 0; |
|
18 |
/// <summary> |
|
19 |
/// 日報作成日 |
|
20 |
/// </summary> |
|
21 |
private DateTime m_DailyDataDate = DateTime.MinValue; |
|
22 |
/// <summary> |
|
23 |
/// 行番号 |
|
24 |
/// </summary> |
|
25 |
private int m_LineCoount = 0; |
|
26 |
/// <summary> |
|
27 |
/// 工事番号 |
|
28 |
/// </summary> |
|
29 |
private int m_ConstructionCode = 0; |
|
30 |
/// <summary> |
|
31 |
/// 作業内容 |
|
32 |
/// </summary> |
|
33 |
private string m_WorkContentsText = string.Empty; |
|
34 |
/// <summary> |
|
35 |
/// 登録年月日 |
|
36 |
/// </summary> |
|
37 |
private DateTime m_EntryDate = DateTime.Now; |
|
38 |
/// <summary> |
|
39 |
/// 更新年月日 |
|
40 |
/// </summary> |
|
41 |
private DateTime m_UpdateDate = DateTime.Now; |
|
42 |
#endregion |
|
43 |
|
|
44 |
#region プロパティ |
|
45 |
/// <summary> |
|
46 |
/// 作成者コード |
|
47 |
/// </summary> |
|
48 |
public int PersonCode |
|
49 |
{ |
|
50 |
get { return m_PersonCode; } |
|
51 |
set { m_PersonCode = value; } |
|
52 |
} |
|
53 |
/// <summary> |
|
54 |
/// 日報作成日 |
|
55 |
/// </summary> |
|
56 |
public DateTime DailyDataDate |
|
57 |
{ |
|
58 |
get { return m_DailyDataDate; } |
|
59 |
set { m_DailyDataDate = value; } |
|
60 |
} |
|
61 |
/// <summary> |
|
62 |
/// 行番号 |
|
63 |
/// </summary> |
|
64 |
public int LineCoount |
|
65 |
{ |
|
66 |
get { return m_LineCoount; } |
|
67 |
set { m_LineCoount = value; } |
|
68 |
} |
|
69 |
/// <summary> |
|
70 |
/// 工事番号 |
|
71 |
/// </summary> |
|
72 |
public int ConstructionCode |
|
73 |
{ |
|
74 |
get { return m_ConstructionCode; } |
|
75 |
set { m_ConstructionCode = value; } |
|
76 |
} |
|
77 |
/// <summary> |
|
78 |
/// 作業内容 |
|
79 |
/// </summary> |
|
80 |
public string WorkContentsText |
|
81 |
{ |
|
82 |
get { return m_WorkContentsText; } |
|
83 |
set { m_WorkContentsText = value; } |
|
84 |
} |
|
85 |
/// <summary> |
|
86 |
/// 登録年月日 |
|
87 |
/// </summary> |
|
88 |
public DateTime EntryDate |
|
89 |
{ |
|
90 |
get { return m_EntryDate; } |
|
91 |
set { m_EntryDate = value; } |
|
92 |
} |
|
93 |
/// <summary> |
|
94 |
/// 更新年月日 |
|
95 |
/// </summary> |
|
96 |
public DateTime UpdateDate |
|
97 |
{ |
|
98 |
get { return m_UpdateDate; } |
|
99 |
set { m_UpdateDate = value; } |
|
100 |
} |
|
101 |
#endregion |
|
102 |
} |
|
103 |
} |
trunk/src/ProcessManagement/ProcessManagement/DataModel/SystemExecute.cs | ||
---|---|---|
17 | 17 |
/// キー項目 |
18 | 18 |
/// </summary> |
19 | 19 |
private int m_PrimaryCode = 0; |
20 |
|
|
20 | 21 |
/// <summary> |
21 | 22 |
/// 起動日付 |
22 | 23 |
/// </summary> |
23 | 24 |
private DateTime m_TargetDate = DateTime.MinValue; |
25 |
|
|
24 | 26 |
/// <summary> |
27 |
/// 本体バージョン |
|
28 |
/// </summary> |
|
29 |
private int m_SystemVersion = 0; |
|
30 |
/// <summary> |
|
31 |
/// コピー・環境バージョン |
|
32 |
/// </summary> |
|
33 |
private int m_UpDateCopyVersion = 0; |
|
34 |
|
|
35 |
/// <summary> |
|
25 | 36 |
/// 登録年月日 |
26 | 37 |
/// </summary> |
27 | 38 |
private DateTime m_EntryDate = DateTime.MinValue; |
... | ... | |
49 | 60 |
set { m_TargetDate = value; } |
50 | 61 |
} |
51 | 62 |
/// <summary> |
63 |
/// 本体バージョン |
|
64 |
/// </summary> |
|
65 |
public int SystemVersion |
|
66 |
{ |
|
67 |
get { return m_SystemVersion; } |
|
68 |
set { m_SystemVersion = value; } |
|
69 |
} |
|
70 |
/// <summary> |
|
71 |
/// コピー・環境バージョン |
|
72 |
/// </summary> |
|
73 |
public int UpDateCopyVersion |
|
74 |
{ |
|
75 |
get { return m_UpDateCopyVersion; } |
|
76 |
set { m_UpDateCopyVersion = value; } |
|
77 |
} |
|
78 |
/// <summary> |
|
52 | 79 |
/// 登録年月日 |
53 | 80 |
/// </summary> |
54 | 81 |
public DateTime EntryDate |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryList.cs | ||
---|---|---|
506 | 506 |
try |
507 | 507 |
{ |
508 | 508 |
dgv.Rows.Clear(); |
509 |
OrderFrm.DetailList.Clear(); |
|
509 |
m_OrderFrm.DetailList.Clear();
|
|
510 | 510 |
|
511 | 511 |
string strSQL = ""; |
512 | 512 |
int SearchCode = m_ConstructionCode; |
... | ... | |
550 | 550 |
foreach (object[] objRec in arList) |
551 | 551 |
{ |
552 | 552 |
// 親フォームデータセット |
553 |
OrderFrm.DetailList.Add(objRec); |
|
553 |
m_OrderFrm.DetailList.Add(objRec);
|
|
554 | 554 |
|
555 | 555 |
AppStat = CommonMotions.cnvInt(objRec[(int)ReadDBColumn.ApprovalStatus]); |
556 | 556 |
Orderflg = CommonMotions.cnvInt(objRec[(int)ReadDBColumn.PurchaseOrderflg]); |
... | ... | |
563 | 563 |
if (!brkConstrName.Equals(strConstrName)) brkConstrName = strConstrName; |
564 | 564 |
else strConstrName = string.Empty; |
565 | 565 |
|
566 |
if (OrderNo < 1) |
|
566 |
strCount = string.Empty; |
|
567 |
if (OrderNo < 0) |
|
567 | 568 |
{ |
568 |
strCount = string.Empty;
|
|
569 |
strCount = "一 括";
|
|
569 | 570 |
} |
570 | 571 |
else |
571 | 572 |
{ |
572 |
strCount = string.Format("{0}回目", OrderNo); |
|
573 |
if (OrderNo != 0) strCount = string.Format("{0}回目", OrderNo);
|
|
573 | 574 |
} |
574 | 575 |
int CurRowCnt = dgv.Rows.Add(iNo++, |
575 | 576 |
0, |
... | ... | |
743 | 744 |
if (CommonMotions.chkCellBlank(dgv.Rows[i].Cells[(int)GridColumn.SelectExec].Value)) continue; |
744 | 745 |
if ((bool)dgv.Rows[i].Cells[(int)GridColumn.SelectExec].Value) continue; |
745 | 746 |
|
746 |
// 内部データ削除 |
|
747 |
OrderFrm.DetailList.RemoveAt(i); |
|
747 |
// 旧処理での承認は一括でおこなっているためそれがあれば全データ対象 |
|
748 |
if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.OrderNo].Value) < 0) break; |
|
749 |
|
|
750 |
// 内部データ削除(親フォームのプロパティを編集する) |
|
751 |
m_OrderFrm.DetailList.RemoveAt(i); |
|
748 | 752 |
} |
749 | 753 |
} |
750 | 754 |
catch (Exception ex) |
... | ... | |
832 | 836 |
} |
833 | 837 |
|
834 | 838 |
// 新規データ作成フラグセット |
835 |
if (bNoCreateData) OrderFrm.CreateData = true; |
|
836 |
else OrderFrm.CreateData = false; |
|
839 |
if (bNoCreateData) m_OrderFrm.CreateData = true;
|
|
840 |
else m_OrderFrm.CreateData = false;
|
|
837 | 841 |
|
838 | 842 |
return bRet; |
839 | 843 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.cs | ||
---|---|---|
573 | 573 |
// ラベルオブジェクト取得 |
574 | 574 |
SetDisplayObject(); |
575 | 575 |
|
576 |
// 注文書データより表示方式の判定
|
|
577 |
if (!DisplayTypeCheck())
|
|
576 |
// データ選択画面表示
|
|
577 |
if (!DispOrderEntryList())
|
|
578 | 578 |
{ |
579 | 579 |
this.Close(); |
580 | 580 |
return; |
581 | 581 |
} |
582 | 582 |
|
583 |
// 直接表示の場合はデータを直接表示する |
|
584 |
if (m_DirectFlg) |
|
585 |
{ |
|
586 |
m_CreateData = false; |
|
587 |
// ダミーデータセット |
|
588 |
if (!CreateDirectData()) |
|
589 |
{ |
|
590 |
this.Close(); |
|
591 |
return; |
|
592 |
} |
|
593 |
} |
|
594 |
else |
|
595 |
{ |
|
596 |
if (m_bNewProcess) |
|
597 |
{ |
|
598 |
// データ選択画面表示 |
|
599 |
if (!DispOrderEntryList()) |
|
600 |
{ |
|
601 |
this.Close(); |
|
602 |
return; |
|
603 |
} |
|
604 |
} |
|
605 |
} |
|
606 | 583 |
// 自画面初期表示 |
607 | 584 |
InitDataLoad(); |
608 | 585 |
|
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs | ||
---|---|---|
138 | 138 |
{ |
139 | 139 |
int ConstrSearchCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode); |
140 | 140 |
string strSQL = LDetailDB.CreatePrimarykeyString(ConstrSearchCode, (int)FrmConstructionLedger.DataGroup.ConstructionCosts); |
141 |
strSQL += string.Format(" AND SOURCECODE = {0}", m_ConstructionCode); |
|
141 |
if (ConstrSearchCode != m_ConstructionCode) strSQL += string.Format(" AND SOURCECODE = {0}", m_ConstructionCode);
|
|
142 | 142 |
strSQL += " AND COMPANYCODE > 0"; |
143 | 143 |
ConstructionLedgerDetail LDetailRec = new ConstructionLedgerDetail(); |
144 | 144 |
if (!LDetailDB.SelectAction(strSQL, ref LDetailRec)) return false; |
trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs | ||
---|---|---|
1 | 1 |
using System; |
2 |
using System.IO; |
|
2 | 3 |
using System.Collections.Generic; |
3 | 4 |
using System.ComponentModel; |
4 | 5 |
using System.Data; |
... | ... | |
568 | 569 |
}; |
569 | 570 |
#endregion |
570 | 571 |
|
572 |
#region 初期時システム更新ステータス |
|
573 |
/// <summary> |
|
574 |
/// 初期時システム更新ステータス |
|
575 |
/// </summary> |
|
576 |
private enum SystemUpdate |
|
577 |
{ |
|
578 |
/// <summary> |
|
579 |
/// 更新無通常起動 |
|
580 |
/// </summary> |
|
581 |
ExecNormal = 0, |
|
582 |
/// <summary> |
|
583 |
/// 更新処理起動 |
|
584 |
/// </summary> |
|
585 |
ExecUpdate, |
|
586 |
/// <summary> |
|
587 |
/// 異常時終了 |
|
588 |
/// </summary> |
|
589 |
Abort, |
|
590 |
} |
|
571 | 591 |
#endregion |
572 | 592 |
|
593 |
#endregion |
|
594 |
|
|
573 | 595 |
#region 変数 |
574 | 596 |
/// <summary> |
575 | 597 |
/// ログイン時終了フラグ |
... | ... | |
778 | 800 |
// エラーログファイル削除 |
779 | 801 |
ClsCleanUp.CleanLogFile(); |
780 | 802 |
|
803 |
// 初期時システム更新確認処理 |
|
804 |
if (SystemUpdate.ExecNormal != InitUpdateProc()) |
|
805 |
{ |
|
806 |
m_LoginEndFlg = true; |
|
807 |
this.Close(); |
|
808 |
return; |
|
809 |
} |
|
810 |
|
|
781 | 811 |
// タブコントロールをオーナードローへ変更 |
782 | 812 |
tabMenu.DrawMode = TabDrawMode.OwnerDrawFixed; |
783 | 813 |
|
... | ... | |
811 | 841 |
} |
812 | 842 |
#endregion |
813 | 843 |
|
844 |
#region 初期時システム更新確認 |
|
845 |
/// <summary> |
|
846 |
/// 初期時システム更新確認 |
|
847 |
/// </summary> |
|
848 |
/// <returns></returns> |
|
849 |
private SystemUpdate InitUpdateProc() |
|
850 |
{ |
|
851 |
IOSystemExecute SysExecDB = new IOSystemExecute(); |
|
852 |
try |
|
853 |
{ |
|
854 |
// 本環境のみコピープロセス実行 |
|
855 |
if (!CommonMotions.ProductionExecution) return SystemUpdate.ExecNormal; |
|
856 |
|
|
857 |
// システムのバージョンをチェックする |
|
858 |
// キーを取得する |
|
859 |
int PCode = CommonDefine.ExePrimaryCode.First(x => x.Value.Equals("システムバージョン")).Key; |
|
860 |
|
|
861 |
// バージョン読込 |
|
862 |
string strSQL = SysExecDB.CreatePrimarykeyString(PCode); |
|
863 |
SystemExecute recordRec = new SystemExecute(); |
|
864 |
if (!SysExecDB.SelectAction(strSQL, ref recordRec)) |
|
865 |
{ // レコード無時はエラー |
|
866 |
logger.ErrorFormat("バージョンチェックデータ読込みエラー:{0}", CommonMotions.GetMethodName()); |
|
867 |
return SystemUpdate.Abort; |
|
868 |
} |
|
869 |
|
|
870 |
// コピー・環境の更新確認 |
|
871 |
if (recordRec.UpDateCopyVersion > CommonVersion.s_UpDateCopyVersion) |
|
872 |
{ |
|
873 |
// コピー機能の更新 |
|
874 |
ClsUpDate.UpdateAndEnvFileCopy(); |
|
875 |
|
|
876 |
// 本体更新が無い場合は再起動 |
|
877 |
if (recordRec.SystemVersion == CommonVersion.s_SystemVersion) |
|
878 |
{ |
|
879 |
m_LoginEndFlg = true; |
|
880 |
Application.Restart(); |
|
881 |
return SystemUpdate.ExecUpdate; |
|
882 |
} |
|
883 |
} |
|
884 |
|
|
885 |
// 本体更新の確認 |
|
886 |
if (recordRec.SystemVersion > CommonVersion.s_SystemVersion) |
|
887 |
{ |
|
888 |
// 本体・環境更新を起動する |
|
889 |
string ExecProc = System.Environment.CurrentDirectory + "\\" + CommonDefine.s_UPDATECOPY_NAME; |
|
890 |
if (File.Exists(ExecProc)) |
|
891 |
{ |
|
892 |
m_LoginEndFlg = true; |
|
893 |
Process p = Process.Start(ExecProc); |
|
894 |
return SystemUpdate.ExecUpdate; |
|
895 |
} |
|
896 |
} |
|
897 |
|
|
898 |
return SystemUpdate.ExecNormal; |
|
899 |
} |
|
900 |
catch (Exception ex) |
|
901 |
{ |
|
902 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
903 |
return SystemUpdate.Abort; |
|
904 |
} |
|
905 |
finally |
|
906 |
{ |
|
907 |
SysExecDB.close(); SysExecDB = null; |
|
908 |
} |
|
909 |
} |
|
910 |
#endregion |
|
911 |
|
|
814 | 912 |
#region 初期画面表示時アクション |
815 | 913 |
/// <summary> |
816 | 914 |
/// 初期画面表示時アクション |
... | ... | |
2104 | 2202 |
break; |
2105 | 2203 |
#endregion |
2106 | 2204 |
case 5: |
2107 |
//#region 各工事打合わせ議事録
|
|
2108 |
//// ----- 起動プロセス設定
|
|
2109 |
//NowPoint = ClsExcute.NextProcess((int)ClsExcute.ProcessExecuteNo.DRList);
|
|
2205 |
#region 各工事打合わせ議事録 |
|
2206 |
// ----- 起動プロセス設定 |
|
2207 |
NowPoint = ClsExcute.NextProcess((int)ClsExcute.ProcessExecuteNo.DRList); |
|
2110 | 2208 |
|
2111 |
//// 日報一覧から表示を行うため起動プロセスはパラメータの1つ目にセットする。
|
|
2112 |
//// 工事日報入力
|
|
2113 |
//ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add((int)ClsExcute.ProcessExecuteNo.Proceedings);
|
|
2114 |
//break;
|
|
2115 |
//#endregion
|
|
2209 |
// 日報一覧から表示を行うため起動プロセスはパラメータの1つ目にセットする。 |
|
2210 |
// 工事日報入力 |
|
2211 |
ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add((int)ClsExcute.ProcessExecuteNo.Proceedings); |
|
2212 |
break; |
|
2213 |
#endregion |
|
2116 | 2214 |
case 7: |
2117 | 2215 |
#region 交通費及び購入品入力 |
2118 | 2216 |
// 交通費及び購入品入力 |
trunk/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj | ||
---|---|---|
104 | 104 |
<Reference Include="System.Xml" /> |
105 | 105 |
</ItemGroup> |
106 | 106 |
<ItemGroup> |
107 |
<Compile Include="Common\CommonVersion.cs" /> |
|
107 | 108 |
<Compile Include="Common\Process\ClsCalendar.cs" /> |
108 | 109 |
<Compile Include="Common\Process\ClsChangeBaseInfoData.cs" /> |
109 | 110 |
<Compile Include="Common\Process\ClsCleanUp.cs" /> |
trunk/src/ProcessManagement/ProcessManagement/Program.cs | ||
---|---|---|
40 | 40 |
Application.SetCompatibleTextRenderingDefault(false); |
41 | 41 |
|
42 | 42 |
// 共通クラス初期化 |
43 |
//CommonAction.Instance.Initialize(); |
|
44 | 43 |
CommonMotions.Initialize(); |
45 | 44 |
|
46 |
// ファイルタイムスタンプチェック |
|
47 |
if (!ClsUpDate.ProgramTimeStampCheck()) |
|
48 |
{ |
|
49 |
// 本環境のみコピープロセス実行 |
|
50 |
if (CommonMotions.ProductionExecution) |
|
51 |
{ |
|
52 |
// ターゲットを起動する |
|
53 |
string ExecProc = System.Environment.CurrentDirectory + "\\" + CommonDefine.s_UPDATECOPY_NAME; |
|
54 |
if (File.Exists(ExecProc)) |
|
55 |
{ |
|
56 |
Application.Exit(); |
|
57 |
Process p = Process.Start(ExecProc); |
|
58 |
return; |
|
59 |
} |
|
60 |
} |
|
61 |
} |
|
45 |
//// ファイルタイムスタンプチェック
|
|
46 |
//if (!ClsUpDate.ProgramTimeStampCheck())
|
|
47 |
//{
|
|
48 |
// // 本環境のみコピープロセス実行
|
|
49 |
// if (CommonMotions.ProductionExecution)
|
|
50 |
// {
|
|
51 |
// // ターゲットを起動する
|
|
52 |
// string ExecProc = System.Environment.CurrentDirectory + "\\" + CommonDefine.s_UPDATECOPY_NAME;
|
|
53 |
// if (File.Exists(ExecProc))
|
|
54 |
// {
|
|
55 |
// Application.Exit();
|
|
56 |
// Process p = Process.Start(ExecProc);
|
|
57 |
// return;
|
|
58 |
// }
|
|
59 |
// }
|
|
60 |
//}
|
|
62 | 61 |
|
63 | 62 |
Application.Run(new FrmMenu()); |
64 | 63 |
} |
他の形式にエクスポート: Unified diff