プロジェクト

全般

プロフィール

リビジョン 149

堀内7年以上前に追加

IOクラスによるEntryDate・UpdateDateの更新をNOW()のみで行うように修正
DELETE句にFROM句が抜けていたのを修正
交通費入力に処分費タブ追加
工事日報の累計人数更新の修正
速度アップのためSQL修正(工事一覧・台帳まとめ)
工事詳細台帳データ更新にフォームを使用しないように修正(一部)

差分を表示:

branches/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs
1187 1187
            /// 宿泊費
1188 1188
            /// </summary>
1189 1189
            Lodging,
1190
            /// <summary>
1191
            /// 処分費
1192
            /// </summary>
1193
            DisposalCost,
1190 1194
        }
1191 1195

  
1192 1196
        /// <summary>
1193 1197
        /// データ種別
1194 1198
        /// </summary>
1195
        public static readonly string[] CostDataNoString = new string[] { "", "交 通 費", "購入品費", "車両リース代", "駐車場・資材置き場代", "宿費" };
1199
        public static readonly string[] CostDataNoString = new string[] { "", "交 通 費", "購入品費", "車両リース代", "駐車場・資材置き場代", "宿 泊 費", "処 分 費" };
1196 1200
        #endregion
1197 1201

  
1198 1202
        #region 汎用データ:コードデータ種別
branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
14 14
        /// <summary>
15 15
        /// 本体バージョン
16 16
        /// </summary>
17
        public static int s_SystemVersion = 33;
17
        public static int s_SystemVersion = 35;
18 18

  
19 19
        /// <summary>
20 20
        /// コピー・環境バージョン
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeBaseInfoData.cs
357 357
                // 結合工事表示
358 358
                string strParent = "SELECT DISTINCT(A.CONSTRUCTIONCODE), B.REQUESTEDDATE, 0, 0, 0, 0, F.DETAILSTRING, B.JOINFLG";
359 359
                strParent += " FROM CONSTRUCTIONLINK A";
360
                strParent += " LEFT OUTER JOIN CONSTRUCTIONBASEINFODETAIL F ON (F.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
361
                strParent += string.Format(" AND F.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
360
                strParent += " LEFT OUTER JOIN CONSTRUCTIONBASEINFODETAIL F ON F.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
361
                strParent += string.Format(" AND F.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
362 362
                strParent += " , CONSTRUCTIONBASEINFO B";
363 363

  
364 364
                strParent += string.Format(" WHERE A.FLUCTUATIONCODE = {0}", SearchCode);
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs
79 79
                GetLedgerColumnCount();
80 80

  
81 81
                // 対象をまず削除する(対象月で削除する)
82
                string strDelSQL = "DELETE CONSTRUCTIONLEDGEREXCUTE";
82
                string strDelSQL = "DELETE FROM CONSTRUCTIONLEDGEREXCUTE";
83 83
                strDelSQL += " WHERE CONSTRUCTIONCODE IN";
84 84
                strDelSQL += " (SELECT A1.CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO A1";
85 85
                strDelSQL += string.Format(" WHERE (A1.SALESPERSONCODE = {0} OR A1.CONSTRUCTIONPERSONCODE = {0} OR A1.CONSTRSUBPERSONCODE = {0} OR A1.CONSTRUCTIONINSTRUCTOR = {0}))", PersonCode);
......
88 88
                                                                , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Purchase)
89 89
                                                                , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lease)
90 90
                                                                , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.StoragePlace)
91
                                                                , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lodging));
91
                                                                , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lodging)
92
                                                                , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.DisposalCost));
92 93
                strDelSQL += string.Format(" AND DATE(TARGETMONTH) = STR_TO_DATE('{0}','%Y/%m/%d')", (TargetMonth + "/01"));
93 94
                LedgerExcuteDB.ExecuteNonQuery(strDelSQL, false);
94 95

  
95
                for (int i = (int)CommonDefine.CostDataNo.Transport; i <= (int)CommonDefine.CostDataNo.Lodging; i++)
96
                for (int i = (int)CommonDefine.CostDataNo.Transport; i <= (int)CommonDefine.CostDataNo.DisposalCost; i++)
96 97
                {
97 98
                    string strSQL = "SELECT CONSTRUCTIONCODE, DATATYPE, DATE_FORMAT(ACTIONDATE,'%Y/%m'), SUM(ENTRYPRICE) FROM COSTDATAOFPERSON";
98 99
                    strSQL += String.Format(" WHERE DATE_FORMAT(ACTIONDATE,'%Y/%m') = '{0}'", TargetMonth);
......
144 145
                        }
145 146
                    }
146 147
                }
147
                // DBコミット
148
                LedgerExcuteDB.commit();
149 148

  
150 149
                // 工事詳細台帳の更新
151
                foreach (int ConstrCode in ConstrCodeList)
150
                if (!LedgerRecalculate(LedgerDB, LedgerExcuteDB, ConstrCodeList))
152 151
                {
153
                    LedgerRecalculate(ConstrCode);
152
                    LedgerExcuteDB.rollback();
153
                    LedgerDB.rollback();
154
                    return false;
154 155
                }
155 156

  
157
                // DBコミット
158
                LedgerDB.commit();
159
                LedgerExcuteDB.commit();
160

  
156 161
                return true;
157 162
            }
158 163
            catch (System.Exception ex)
......
171 176
        }
172 177
        #endregion
173 178

  
174
        #region 工事詳細台帳再計算処理
179
        #region 工事詳細台帳再計算処理(総支払額・粗利・給与・純利益が対象)
175 180
        /// <summary>
176
        /// 工事詳細台帳再計算処理
181
        /// 工事詳細台帳再計算処理(総支払額・粗利・給与・純利益が対象)
177 182
        /// </summary>
178 183
        /// <param name="ConstrCode"></param>
179
        private static void LedgerRecalculate(int ConstrCode)
184
        private static bool LedgerRecalculate(IOConstructionLedger LedgerDB,
185
                                                IOConstructionLedgerExcute LedgerExcuteDB,
186
                                                List<int> ConstrCodeList)
180 187
        {
181
            FrmConstructionLedger frm = new FrmConstructionLedger();                    // 工事詳細台帳入力
182 188
            try
183 189
            {
184
                // 工事コードのセット
185
                frm.ConstructionCode = ConstrCode;
190
                string strSQL = string.Empty;
191
                bool bRet = true;
192
                foreach (int ConstrCode in ConstrCodeList)
193
                {
194
                    // 工事台帳実行データよりグループごとの合計金額を取得する
195
                    strSQL = "SELECT GROUPCOUNT, SUM(PAYMENTAMOUNT)";
196
                    strSQL += " FROM CONSTRUCTIONLEDGEREXCUTE";
197
                    strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0}",ConstrCode);
198
                    strSQL += " GROUP BY GROUPCOUNT";
199
                    strSQL += " ORDER BY GROUPCOUNT";
186 200

  
187
                // 見えない画面を出す
188
                frm.Hide();
201
                    ArrayList InData = new ArrayList();
202
                    if (!LedgerExcuteDB.ExecuteReader(strSQL, ref InData, false)) continue;
189 203

  
190
                // 再計算処理
191
                bool bret = frm.RecalculateLedger;
204
                    // データ無は次のデータ
205
                    if (InData.Count == 0) continue;
192 206

  
193
                // 画面を閉じる
194
                frm.Close();
207
                    // 対象データ取得
208
                    List<int> GroupCodeList = new List<int>();
209
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.Expenses);               // 1:経費
210

  
211
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.ConstructionCosts);      // 2:施工費
212
                    
213
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.TransportationCosts);    // 3:交通費(通行料・電車代)
214
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.PurchaseCosts);          // 4:購入品
215
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.VehicleLeaseFee);        // 5:車両リース代
216
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.ParkingCosts);           // 6:駐車場・資材置き場
217
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.RoomChargeCosts);        // 7:宿泊費
218
                    
219
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.DisposeCosts);           // 8:処分費等
220
                    int Payment = CalcGetTotal(InData, GroupCodeList);                              // ----- 支払額
221

  
222
                    GroupCodeList.Clear();
223
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.Instructor);             // 9:指導員給料行
224
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.Assistant);              // 10:副担当者給料行
225
                    int PExpenses = CalcGetTotal(InData, GroupCodeList);                            // ----- 人件費
226

  
227
                    GroupCodeList.Clear();
228
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.Payroll);                // 11:担当者給料行
229
                    int Allowance = CalcGetTotal(InData, GroupCodeList);                            // ----- 給与
230

  
231
                    GroupCodeList.Clear();
232
                    GroupCodeList.Add((int)FrmConstructionLedger.DataGroup.BillingAmount);          // 14:請求金額
233
                    int Billing = CalcGetTotal(InData, GroupCodeList);                              // ----- 請求額
234
                    
235
                    // ----- 工事詳細台帳更新
236
                    strSQL = "UPDATE CONSTRUCTIONLEDGER SET";
237
                    strSQL += string.Format(" TOTALPAYMENT = {0}", Payment);
238
                    strSQL += string.Format(" , GROSSPROFIT = {0}", (Billing - Payment));
239
                    strSQL += string.Format(" , Allowance = {0}", Allowance);
240
                    strSQL += string.Format(" , NETPROFIT = {0}", (Billing - (Payment + Allowance + PExpenses)));
241
                    strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0}", ConstrCode);
242
                    if (!LedgerExcuteDB.ExecuteNonQuery(strSQL, false))
243
                    {
244
                        bRet = false;
245
                        break;
246
                    }
247
                }
248
                return bRet;
195 249
            }
196 250
            catch (System.Exception ex)
197 251
            {
198 252
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
253
                return false;
199 254
            }
200
            finally
255
        }
256
        #endregion
257

  
258
        #region 配列リストより指定された合計を取得する
259
        /// <summary>
260
        /// 配列リストより指定された合計を取得する
261
        /// </summary>
262
        private static int CalcGetTotal(ArrayList InData, List<int> GroupCodeList)
263
        {
264
            try
201 265
            {
202
                frm.Dispose(); frm = null;
266
                int iRetVal = 0;
267

  
268
                int GrpNo = -1;
269
                foreach (int GroupCode in GroupCodeList)
270
                {
271
                    foreach (object[] CurRec in InData)
272
                    {
273
                        GrpNo = CommonMotions.cnvInt(CurRec[0]);
274

  
275
                        if (GroupCode != GrpNo) continue;
276

  
277
                        iRetVal += CommonMotions.cnvInt(CurRec[1]);
278
                    }
279
                }
280

  
281
                return iRetVal;
203 282
            }
283
            catch (System.Exception ex)
284
            {
285
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
286
                return 0;
287
            }
204 288
        }
205 289
        #endregion
206 290

  
......
279 363
                    // 宿泊費
280 364
                    GroupNo = (int)FrmConstructionLedger.DataGroup.RoomChargeCosts;
281 365
                    break;
366
                case (int)CommonDefine.CostDataNo.DisposalCost:
367
                    // 処分費
368
                    GroupNo = (int)FrmConstructionLedger.DataGroup.DisposeCosts;
369
                    break;
282 370
            }
283 371
            return GroupNo;
284 372
        }
......
290 378
        /// </summary>
291 379
        private static void GetLedgerColumnCount()
292 380
        {
293
            FrmConstructionLedger frm = new FrmConstructionLedger();
294 381
            try
295 382
            {
296
                m_LedgerColumnCount = frm.GetGridColumsCount - 1;
383
                m_LedgerColumnCount = Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1;
297 384
            }
298 385
            catch (System.Exception ex)
299 386
            {
300 387
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
301 388
            }
302
            finally
303
            {
304
                frm.Dispose(); frm = null;
305
            }
306 389
        }
307 390
        #endregion
308 391

  
......
315 398
        /// <returns></returns>
316 399
        public static bool UpdateRecalLedgerDataFromTAndPCost(int PersonCode, string TargetMonth)
317 400
        {
401
            IOConstructionLedger LedgerDB = new IOConstructionLedger();
402
            IOConstructionLedgerExcute LedgerExcuteDB = new IOConstructionLedgerExcute();
318 403
            IOCostDataOfPerson CostDB = new IOCostDataOfPerson();
319
            FrmConstructionLedger frm = new FrmConstructionLedger();
320 404
            try
321 405
            {
322 406
                string strSQL = "SELECT PERSONCODE, DATE_FORMAT(ACTIONDATE,'%Y/%m'), CONSTRUCTIONCODE FROM COSTDATAOFPERSON";
......
328 412
                if (!CostDB.ExecuteReader(strSQL, ref arList)) return false;
329 413
                if (arList.Count == 0) return true;
330 414

  
331
                bool bInit = true;
415
                List<int> ConstructionCodeList = new List<int>();
332 416
                foreach (object[] wrkobj in arList)
333 417
                {
334 418
                    int ConstructionCode = CommonMotions.cnvInt(wrkobj[2]);
335
                    // 工事番号が存在しないデータは更新にしない
336
                    if (ConstructionCode == 0) continue;
337 419

  
338
                    // 工事コードのセット
339
                    frm.ConstructionCode = ConstructionCode;
420
                }
421
                // 工事番号が存在しないデータは更新にしない
422
                if (ConstructionCodeList.Count < 1) return true;
340 423

  
341
                    if (bInit)
342
                    {
343
                        // 見えない画面を出す
344
                        frm.Hide();
345
                        // フォーム非表示
346
                        //frm.Visible = false;
347
                        bInit = false;
348
                    }
349
                    // 再計算処理
350
                    bool bret = frm.RecalculateLedger;
424
                // 工事詳細台帳の更新
425
                if (!LedgerRecalculate(LedgerDB, LedgerExcuteDB, ConstructionCodeList))
426
                {
427
                    LedgerExcuteDB.rollback();
428
                    LedgerDB.rollback();
429
                    return false;
351 430
                }
352
                
353
                // 画面を閉じる
354
                frm.Close();
431

  
432
                return true;
355 433
            }
356 434
            catch (System.Exception ex)
357 435
            {
......
361 439
            finally
362 440
            {
363 441
                CostDB.close(); CostDB = null;
364
                frm.Dispose(); frm = null;
365 442
            }
366
            return true;
367 443
        }
368 444
        #endregion
369 445

  
......
500 576
            IOConstructionLedgerDetail LedgerDeDB = new IOConstructionLedgerDetail();
501 577
            IOConstructionLedgerExcute LedgerExDB = new IOConstructionLedgerExcute();
502 578
            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
503
            FrmConstructionLedger frm = new FrmConstructionLedger();
504 579
            try
505 580
            {
506 581
                // 工事詳細台帳明細データ取得
......
594 669

  
595 670
                bool bret = true;
596 671

  
597
                // 工事コードのセット
598
                frm.ConstructionCode = LedgerRec.ConstructionCode;
599 672

  
600
                // 見えない画面を出す
601
                frm.Hide();
602
                // フォーム非表示
603
                //frm.Visible = false;
604

  
605
                // 再計算処理
606
                bret = frm.RecalculateLedger;
607

  
608
                // 画面を閉じる
609
                frm.Close();
610

  
611 673
                // データ初期セット時に振分無・日数入力は次のループをしない
612 674
                //if (bSetFlag && LoopBreak) bret = false;
613 675

  
......
623 685
                LedgerDeDB.close(); LedgerDeDB = null;
624 686
                LedgerExDB.close(); LedgerExDB = null;
625 687
                PersonDB.close(); PersonDB = null;
626

  
627
                frm.Dispose(); frm = null;
628 688
            }
629 689
        }
630 690
        #endregion
......
775 835
        /// <returns></returns>
776 836
        public static int CalcTargetMonthToColumn(DateTime StartDate, DateTime TargetMonth)
777 837
        {
778
            FrmConstructionLedger frm = new FrmConstructionLedger();
779
            int Columncnt = frm.GetGridColumsCount - 1;
838
            int Columncnt = Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1;
780 839
            try
781 840
            {
782 841
                // 処理対象年月日を対象月月初日に変換する
......
800 859
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
801 860
                return Columncnt;
802 861
            }
803
            finally
804
            {
805
                frm.Dispose(); frm = null;
806
            }
807 862
        }
808 863
        #endregion
809 864

  
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs
15 15
using ProcessManagement.Common;
16 16
using ProcessManagement.DB.IOAccess;
17 17
using ProcessManagement.DataModel;
18
using ProcessManagement.Forms.ControlsAction;
19
using ProcessManagement.Forms.CustomControls;
20 18

  
21 19
namespace ProcessManagement.Common
22 20
{
......
333 331
                else
334 332
                {
335 333
                    // 掲示板閲覧テーブルのチェック
336
                    string strSQL = "SELECT A.*, B.SHAREFLAG, C.DEPARTMENTCODE, D.SECRANK FROM MESSAGEBOARDTERGET A";
334
                    string strSQL = "SELECT";
335
                    strSQL += " A.RecordNumber";
336
                    strSQL += ", A.BranchNumber";
337
                    strSQL += ", A.SeqNum";
338
                    strSQL += ", A.ToCode";
339
                    strSQL += ", A.ToName";
340
                    strSQL += ", DATE_FORMAT(A.EntryDate, '%Y/%m/%d %H:%i:%s')";
341
                    strSQL += ", DATE_FORMAT(A.UpdateDate, '%Y/%m/%d %H:%i:%s')";
342
                    strSQL += " , B.SHAREFLAG, C.DEPARTMENTCODE, D.SECRANK FROM MESSAGEBOARDTERGET A";
337 343
                    strSQL += " LEFT JOIN PERSONINCHARGEMASTER C ON C.PERSONCODE = A.TOCODE";
338 344
                    strSQL += " LEFT JOIN SECURITYMASTER D ON D.SECCODE = C.SECCODE";
339 345
                    strSQL += " , MESSAGEBOARDDATA B";
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs
15 15
using ProcessManagement.Common;
16 16
using ProcessManagement.DB.IOAccess;
17 17
using ProcessManagement.DataModel;
18
using ProcessManagement.Forms.ControlsAction;
19
using ProcessManagement.Forms.CustomControls;
20 18

  
21 19
namespace ProcessManagement.Common
22 20
{
......
538 536
                        if (wrkRec.TyingFlg == (int)CommonDefine.BaseInfoTyingFlg.Tying) continue;
539 537
                        // 結合工事の親は処理しない
540 538
                        if (wrkRec.JoinFlg == (int)CommonDefine.BaseInfoJoinFlg.JoinParent) continue;
539
                        // 結合工事の子は処理しない
540
                        if (wrkRec.JoinFlg == (int)CommonDefine.BaseInfoJoinFlg.JoinChildren) continue;
541 541
                        // チェック
542 542
                        if (!ConstructionStatusCheck(wrkRec, CriteriaDate, ref term))
543 543
                        {
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOActionScheduleData.cs
231 231
                strcmd += string.Format(",TargetMonth = {0}", data.TargetMonth.ToString());
232 232
                strcmd += string.Format(",TargetDay = {0}", data.TargetDay.ToString());
233 233

  
234
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
234
                strcmd += ", UpdateDate = NOW()";
235 235
                strcmd += AddSQLString;
236 236

  
237 237
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOAttendanceDailyData.cs
288 288
                strcmd += string.Format(",ActionResult = '{0}'", data.ActionResult);            // 行動実績
289 289
                strcmd += string.Format(",OvertimeHours = {0}", data.OvertimeHours);            // 残業時間
290 290
                strcmd += string.Format(",WorkingComment = '{0}'", data.WorkingComment);        // コメント
291
                
292
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
291

  
292
                strcmd += ", UpdateDate = NOW()";
293 293
                strcmd += AddSQLString;
294 294

  
295 295
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
370 370
                        break;
371 371
                }
372 372

  
373
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
373
                strcmd += ", UpdateDate = NOW()";
374 374
                strcmd += CreatePrimarykeyString(PersonCode, AttendanceDate, SeqNo);
375 375

  
376 376
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOAttendanceData.cs
302 302
                                                    data.OrderDate.ToShortDateString());        // 申請日
303 303
                strcmd += string.Format(" ,OrderNo =  {0} ", data.OrderNo);                     // 申請受付番号
304 304

  
305
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
305
                strcmd += ", UpdateDate = NOW()";
306 306
                strcmd += AddSQLString;
307 307

  
308 308
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
386 386
                        break;
387 387
                }
388 388

  
389
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
389
                strcmd += ", UpdateDate = NOW()";
390 390
                strcmd += CreatePrimarykeyString(PersonCode, AttendanceMonth);
391 391

  
392 392
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBankBusinessDayMaster.cs
122 122
                    strcmd += string.Format(", '{0}'", work.Note.ToString());
123 123
                    strcmd += string.Format(", {0}", work.DeleteFlg.ToString());
124 124

  
125
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
126
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
125
                    strcmd += ", NOW()";
126
                    strcmd += ", NOW()";
127 127
                    strcmd += ")";
128 128

  
129 129
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
159 159
                strcmd += string.Format(",Note = '{0}'", data.Note);
160 160
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
161 161

  
162
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
162
                strcmd += ", UpdateDate = NOW()";
163 163
                strcmd += AddSQLString;
164 164

  
165 165
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
186 186
            try
187 187
            {
188 188
                strcmd = "Update BankBusinessDayMaster Set DeleteFlg = 1";
189
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
189
                strcmd += ", UpdateDate = NOW()";
190 190
                strcmd += AddSQLString;
191 191

  
192 192
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBillingData.cs
123 123
                    strcmd += string.Format(", {0}", work.SeqNo.ToString());
124 124
                    strcmd += string.Format(", {0}", work.BillPrice.ToString());
125 125

  
126
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
127
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
126
                    strcmd += ", NOW()";
127
                    strcmd += ", NOW()";
128 128
                    strcmd += ")";
129 129

  
130 130
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
157 157

  
158 158
                strcmd += string.Format(" BillPrice = {0}", data.BillPrice.ToString());
159 159

  
160
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
160
                strcmd += ", UpdateDate = NOW()";
161 161
                strcmd += AddSQLString;
162 162

  
163 163
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBillingDataDetail.cs
136 136
                    strcmd += string.Format(", {0}", work.IndsWasteTax.ToString());
137 137
                    strcmd += string.Format(", '{0}'", work.Note.ToString());
138 138

  
139
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
140
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
139
                    strcmd += ", NOW()";
140
                    strcmd += ", NOW()";
141 141
                    strcmd += ")";
142 142

  
143 143
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
176 176
                strcmd += string.Format(",IndsWasteTax = {0}", data.IndsWasteTax.ToString());
177 177
                strcmd += string.Format(",Note = '{0}'", data.Note);
178 178

  
179
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
179
                strcmd += ", UpdateDate = NOW()";
180 180
                strcmd += AddSQLString;
181 181

  
182 182
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBillingPaymentSummary.cs
129 129
                    strcmd += string.Format("  {0}", work.CompanyCode.ToString());
130 130
                    strcmd += string.Format(", {0}", work.TargetDate.ToString());
131 131
                    strcmd += string.Format(", {0}", work.ChargePaymentKind.ToString());
132
                    strcmd += string.Format(", STR_TO_DATE(DATE_FORMAT('{0}','%Y/%m/%d'),'%Y/%m/%d')", work.Payday.ToString());
132
                    strcmd += string.Format(", STR_TO_DATE('{0}','%Y/%m/%d')", work.Payday.ToShortDateString());
133 133
                    strcmd += string.Format(", {0}", work.BillPriceStotal.ToString());
134 134
                    strcmd += string.Format(", {0}", work.ConsumptionTaxRate.ToString());
135 135
                    strcmd += string.Format(", {0}", work.ConsumptionTaxPrice.ToString());
......
140 140
                    strcmd += string.Format(", {0}", work.CnstrPriceStotal.ToString());
141 141
                    strcmd += string.Format(", {0}", work.BillingPriceTotal.ToString());
142 142

  
143
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
144
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
143
                    strcmd += ", NOW()";
144
                    strcmd += ", NOW()";
145 145
                    strcmd += ")";
146 146

  
147 147
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
185 185
                strcmd += string.Format(",CnstrPriceStotal = {0}", data.CnstrPriceStotal.ToString());
186 186
                strcmd += string.Format(",BillingPriceTotal = {0}", data.BillingPriceTotal.ToString());
187 187

  
188
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
188
                strcmd += ", UpdateDate = NOW()";
189 189
                strcmd += AddSQLString;
190 190

  
191 191
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs
500 500
                strcmd += string.Format(", BillingSendDate = STR_TO_DATE('{0}','%Y/%m/%d')", data.BillingSendDate.ToShortDateString());
501 501
                strcmd += string.Format(", LedgerComplateDate = STR_TO_DATE('{0}','%Y/%m/%d')", data.LedgerComplateDate.ToShortDateString());
502 502

  
503
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
503
                strcmd += ", UpdateDate = NOW()";
504 504
                strcmd += AddSQLString;
505 505

  
506 506
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
790 790
                        break;
791 791
                }
792 792

  
793
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
793
                strcmd += ", UpdateDate = NOW()";
794 794
                strcmd += CreatePrimarykeyString(ConstructionCode);
795 795

  
796 796
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfoDetail.cs
261 261
                strcmd += string.Format(" ,DetailNo = {0}", data.DetailNo);
262 262
                strcmd += string.Format(" ,DetailString = '{0}'", data.DetailString);
263 263

  
264
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
264
                strcmd += ", UpdateDate = NOW()";
265 265
                strcmd += AddSQLString;
266 266

  
267 267
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
360 360
                        break;
361 361
                }
362 362

  
363
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
363
                strcmd += ", UpdateDate = NOW()";
364 364
                strcmd += CreatePrimarykeyString(ConstructionCode, DetailNo);
365 365

  
366 366
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs
393 393
                strcmd += string.Format(", I_SalaryFlg = {0}", data.I_SalaryFlg);                       // 指導員給与振分区分
394 394
                strcmd += string.Format(", I_SalaryDays = {0}", data.I_SalaryDays);                     // 指導員振分日数
395 395

  
396
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
396
                strcmd += ", UpdateDate = NOW()";
397 397
                strcmd += AddSQLString;
398 398

  
399 399
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
515 515
                        break;
516 516
                }
517 517

  
518
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
518
                strcmd += ", UpdateDate = NOW()";
519 519
                strcmd += CreatePrimarykeyString(ConstructionCode);
520 520

  
521 521
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudgetDetail.cs
331 331
                strcmd += string.Format(", NegotiateFlg = {0}", data.NegotiateFlg);                 // 協力業者交渉フラグ
332 332

  
333 333

  
334
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
334
                strcmd += ", UpdateDate = NOW()";
335 335
                strcmd += AddSQLString;
336 336

  
337 337
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
438 438
                        break;
439 439
                }
440 440

  
441
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
441
                strcmd += ", UpdateDate = NOW()";
442 442
                strcmd += CreatePrimarykeyString(ConstructionCode);
443 443

  
444 444
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedger.cs
365 365
                strcmd += string.Format(", ComplateFlg = {0}", data.ComplateFlg);                   // 入力完了フラグ
366 366
                strcmd += string.Format(", IntegrationFlg = {0}", data.IntegrationFlg);             // 受注金額積算フラグ
367 367

  
368
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
368
                strcmd += ", UpdateDate = NOW()";
369 369
                strcmd += AddSQLString;
370 370

  
371 371
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
486 486
                        break;
487 487
                }
488 488

  
489
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
489
                strcmd += ", UpdateDate = NOW()";
490 490
                strcmd += CreatePrimarykeyString(ConstructionCode);
491 491

  
492 492
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedgerDetail.cs
375 375
                strcmd += string.Format(", SalaryOnRegist = {0}", data.SalaryOnRegist);             // 登録時月額給与
376 376
                strcmd += string.Format(", PurchaseOrderFlg = {0}", data.PurchaseOrderFlg);         // 注文書発行フラグ
377 377

  
378
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
378
                strcmd += ", UpdateDate = NOW()";
379 379
                strcmd += AddSQLString;
380 380

  
381 381
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
485 485
                strcmd += " SET";
486 486

  
487 487
                UpdateFeildSQL(FeildNo, value, ref strcmd);
488
                
489
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
488

  
489
                strcmd += ", UpdateDate = NOW()";
490 490
                strcmd += CreatePrimarykeyString(ConstructionCode, GroupCount, LineCount);
491 491

  
492 492
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
517 517
                
518 518
                UpdateFeildSQL(FeildNo, value, ref strcmd);
519 519

  
520
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
520
                strcmd += ", UpdateDate = NOW()";
521 521
                strcmd += strWhere;
522 522

  
523 523
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedgerExcute.cs
302 302
                strcmd += string.Format(", PaymentAmount = {0}", data.PaymentAmount);               // 支払金額
303 303
                strcmd += string.Format(", TargetMonth = STR_TO_DATE('{0}','%Y/%m/%d')", data.TargetMonth.ToShortDateString());   // 対象年月
304 304

  
305
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
305
                strcmd += ", UpdateDate = NOW()";
306 306
                strcmd += AddSQLString;
307 307

  
308 308
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
385 385
                        break;
386 386
                }
387 387

  
388
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
388
                strcmd += ", UpdateDate = NOW()";
389 389
                strcmd += CreatePrimarykeyString(ConstructionCode);
390 390

  
391 391
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
485 485
                        break;
486 486
                }
487 487

  
488
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
488
                strcmd += ", UpdateDate = NOW()";
489 489
                strcmd += CreatePrimarykeyString(ConstructionCode, GroupCount, LineCount, ColumnCount);
490 490

  
491 491
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLink.cs
268 268
                strcmd += string.Format(", DetailNo = {0}", data.FluctuationCode);
269 269
                strcmd += string.Format(", LinkType = {0}", data.LinkType);
270 270

  
271
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
271
                strcmd += ", UpdateDate = NOW()";
272 272
                strcmd += AddSQLString;
273 273

  
274 274
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
364 364
                        break;
365 365
                }
366 366

  
367
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
367
                strcmd += ", UpdateDate = NOW()";
368 368
                strcmd += CreatePrimarykeyString(ConstructionCode);
369 369

  
370 370
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
402 402
                        break;
403 403
                }
404 404

  
405
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
405
                strcmd += ", UpdateDate = NOW()";
406 406
                strcmd += string.Format(" WHERE FluctuationCode = {0}", FluctuationCode);
407 407

  
408 408
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionProgressDate.cs
232 232
                strcmd += string.Format(",ChangeDate = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.ChangeDate.ToString());
233 233
                strcmd += string.Format(",ChangePersonCode = {0}", data.ChangePersonCode.ToString());
234 234

  
235
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
235
                strcmd += ", UpdateDate = NOW()";
236 236
                strcmd += AddSQLString;
237 237

  
238 238
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
306 306
                        break;
307 307
                }
308 308

  
309
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
309
                strcmd += ", UpdateDate = NOW()";
310 310
                strcmd += CreatePrimarykeyString(ConstructionCode);
311 311

  
312 312
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOCostDataOfPerson.cs
315 315
                strcmd += string.Format(",ComplateFlg = {0}", data.ComplateFlg);                // 引込済みフラグ
316 316
                strcmd += string.Format(",ApprovalFlg = {0}", data.ApprovalFlg);                // 承認フラグ
317 317

  
318
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
318
                strcmd += ", UpdateDate = NOW()";
319 319
                strcmd += AddSQLString;
320 320

  
321 321
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOCostomerRegist.cs
381 381
                strcmd += string.Format(", OrderDate = STR_TO_DATE('{0}','%Y/%m/%d')", data.OrderDate.ToShortDateString());
382 382
                strcmd += string.Format(", OrderNo = {0}", data.OrderNo);
383 383

  
384
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
384
                strcmd += ", UpdateDate = NOW()";
385 385
                strcmd += AddSQLString;
386 386

  
387 387
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
515 515
                        break;
516 516
                }
517 517

  
518
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
518
                strcmd += ", UpdateDate = NOW()";
519 519
                strcmd += CreatePrimarykeyString(PersonCode, CreateDate, SeqNo);
520 520

  
521 521
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyData.cs
185 185
                strcmd += string.Format(", {0}", work.ConstructionCode);                // 工事番号
186 186
                strcmd += string.Format(",'{0}'", work.WorkContentsText);               // 作業内容
187 187

  
188
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
189
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
188
                strcmd += ", NOW()";
189
                strcmd += ", NOW()";
190 190
                strcmd += ")";
191 191

  
192 192
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
246 246
                strcmd += string.Format(",ConstructionCode = {0}", data.ConstructionCode);      // 工事番号
247 247
                strcmd += string.Format(",WorkContentsText = '{0}'", data.WorkContentsText);    // 作業内容
248 248

  
249
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
249
                strcmd += ", UpdateDate = NOW()";
250 250
                strcmd += AddSQLString;
251 251

  
252 252
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataConstruction.cs
272 272
                                        , data.DailyDataDate.ToShortDateString());              // 日報作成日
273 273
                strcmd += string.Format(",ConstructionCode = {0}", data.ConstructionCode);      // 工事番号
274 274
                strcmd += string.Format(",Weather = '{0}'", data.Weather);                      // 天気
275
                
276
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
275

  
276
                strcmd += ", UpdateDate = NOW()";
277 277
                strcmd += AddSQLString;
278 278

  
279 279
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
321 321
                        break;
322 322
                }
323 323

  
324
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
324
                strcmd += ", UpdateDate = NOW()";
325 325
                strcmd += CreatePrimarykeyString(PersonCode, DailyDataDate, ConstructionCode);
326 326

  
327 327
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataDetail.cs
328 328
                strcmd += string.Format(",TodayWork = '{0}'", data.TodayWork);                  // 当日作業内容
329 329
                strcmd += string.Format(",NextdayWork = '{0}'", data.NextdayWork);              // 翌日作業内容
330 330
                strcmd += string.Format(",NextdayHeadCount =  {0} ", data.NextdayHeadCount);    // 翌日人員数
331
                
332
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
331

  
332
                strcmd += ", UpdateDate = NOW()";
333 333
                strcmd += AddSQLString;
334 334

  
335 335
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
425 425
                        break;
426 426
                }
427 427

  
428
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
428
                strcmd += ", UpdateDate = NOW()";
429 429
                strcmd += CreatePrimarykeyString(PersonCode, DailyDataDate, ConstructionCode, SeqNo);
430 430

  
431 431
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataField.cs
297 297
                                        , data.PatrolTime.ToShortDateString());                 // 巡回時間
298 298
                strcmd += string.Format(",ContentsText = '{0}'", data.ContentsText);            // 内容
299 299

  
300
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
300
                strcmd += ", UpdateDate = NOW()";
301 301
                strcmd += AddSQLString;
302 302

  
303 303
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataMaterials.cs
316 316
                strcmd += string.Format(",Delivery = '{0}'", data.Delivery);                    // 納入業者
317 317
                strcmd += string.Format(",QualityControl = '{0}'", data.QualityControl);        // 品質管理事項
318 318

  
319
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
319
                strcmd += ", UpdateDate = NOW()";
320 320
                strcmd += AddSQLString;
321 321

  
322 322
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataSubcontractors.cs
294 294
                strcmd += string.Format(",Attendee = '{0}'", data.Attendee);                    // 出席者
295 295
                strcmd += string.Format(",ContentsText = '{0}'", data.ContentsText);                    // 内容
296 296

  
297
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
297
                strcmd += ", UpdateDate = NOW()";
298 298
                strcmd += AddSQLString;
299 299

  
300 300
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataVehicles.cs
329 329
                                        , data.StartWorkingTime.ToString());                    // 作業時間開始
330 330
                strcmd += string.Format(",DailyDataDate = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')"
331 331
                                        , data.EndWorkingTime.ToString());                      // 作業時間終了
332
                
333
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
332

  
333
                strcmd += ", UpdateDate = NOW()";
334 334
                strcmd += AddSQLString;
335 335

  
336 336
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODeadLineMaster.cs
125 125
                    strcmd += string.Format(", '{0}'", work.Note.ToString());
126 126
                    strcmd += string.Format(", {0}", work.DeleteFlg.ToString());
127 127

  
128
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
129
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
128
                    strcmd += ", NOW()";
129
                    strcmd += ", NOW()";
130 130
                    strcmd += ")";
131 131

  
132 132
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
163 163
                strcmd += string.Format(",Note = '{0}'", data.Note);
164 164
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
165 165

  
166
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
166
                strcmd += ", UpdateDate = NOW()";
167 167
                strcmd += AddSQLString;
168 168

  
169 169
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
190 190
            try
191 191
            {
192 192
                strcmd = "Update DeadLineMaster Set DeleteFlg = 1";
193
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
193
                strcmd += ", UpdateDate = NOW()";
194 194
                strcmd += AddSQLString;
195 195

  
196 196
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositApprovalInfo.cs
221 221
                    strcmd += string.Format(", '{0}'", data.ApprovalPersonName.ToString());
222 222
                    strcmd += string.Format(", {0}", data.ApprovalAuthority.ToString());
223 223
                    strcmd += string.Format(", DATE_FORMAT('{0}','%Y%m%d')", data.ApprovalDate.ToString());
224
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
225
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
224
                    strcmd += ", NOW()";
225
                    strcmd += ", NOW()";
226 226
                    strcmd += ")";
227 227

  
228 228
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
264 264
                strcmd += string.Format(",ApprovalPersonName = '{0}'", data.ApprovalPersonName.ToString());
265 265
                strcmd += string.Format(",ApprovalAuthority = {0}", data.ApprovalAuthority.ToString());
266 266
                strcmd += string.Format(",ApprovalDate = DATE_FORMAT('{0}','%Y%m%d')", data.ApprovalDate.ToString());
267
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
267
                strcmd += ", UpdateDate = NOW()";
268 268
                strcmd += AddSQLString;
269 269

  
270 270
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositData.cs
218 218
                    strcmd += string.Format(", {0}", data.DepositAmount.ToString());
219 219
                    strcmd += string.Format(", {0}", data.DepositAmountCash.ToString());
220 220
                    strcmd += string.Format(", {0}", data.DepositAmountBill.ToString());
221
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
222
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
221
                    strcmd += ", NOW()";
222
                    strcmd += ", NOW()";
223 223
                    strcmd += ")";
224 224

  
225 225
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
260 260
                strcmd += string.Format(",DepositAmount = {0}", data.DepositAmount.ToString());
261 261
                strcmd += string.Format(",DepositAmountCash = {0}", data.DepositAmountCash.ToString());
262 262
                strcmd += string.Format(",DepositAmountBill = {0}", data.DepositAmountBill.ToString());
263
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
263
                strcmd += ", UpdateDate = NOW()";
264 264
                strcmd += AddSQLString;
265 265

  
266 266
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODepositDataDetail.cs
187 187
                strcmd += string.Format(", DATE_FORMAT('{0}','%Y/%m/%d')", data.ApprovalDate.ToShortDateString());
188 188
                strcmd += string.Format(", {0}", data.ApprovalEndFlg ? 1 : 0);
189 189

  
190
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
191
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
190
                strcmd += ", NOW()";
191
                strcmd += ", NOW()";
192 192
                strcmd += ")";
193 193

  
194 194
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
237 237
                strcmd += string.Format(",ApprovalDate = DATE_FORMAT('{0}','%Y/%m/%d')", data.ApprovalDate.ToShortDateString());
238 238
                strcmd += string.Format(",ApprovalEndFlg = {0}", data.ApprovalEndFlg ? 1 : 0);
239 239

  
240
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
240
                strcmd += ", UpdateDate = NOW()";
241 241
                strcmd += string.Format(" where OrderersDivision = {0} and OrderersCode = {1} and TargetDate = {2} and SeqNo = {3} and LineCount = {4} ",
242 242
                    data.OrderersDivision, data.OrderersCode, data.TargetDate, data.SeqNo, data.LineCount);
243 243
                strcmd += AddSQLString;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateBudget.cs
295 295
                strcmd += string.Format(",ConstructionTime = {0}", data.ConstructionTime);                      // 工期
296 296
                strcmd += string.Format(",IntegratedCode = {0}", data.IntegratedCode);                          // 積算者
297 297
                strcmd += string.Format(",DataCreateDate = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')",
298
                                                                    data.DataCreateDate.ToShortDateString());   // データ引込日
298
                                                                    data.DataCreateDate.ToString());            // データ引込日
299 299
                strcmd += string.Format(",RetValue1 = {0}", data.RetValue1);                                    // 予定価格
300 300
                strcmd += string.Format(",RetValue2 = {0}", data.RetValue2);                                    // 直接工事費
301 301
                strcmd += string.Format(",RetValue3 = {0}", data.RetValue3);                                    // 積み上げ共通仮設費
302 302
                strcmd += string.Format(",RetValue4 = {0}", data.RetValue4);                                    // 積み上げ現場管理費
303 303
                strcmd += string.Format(",RetPercent = {0}", data.RetPercent);                                  // 一般管理費率
304 304

  
305
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
305
                strcmd += ", UpdateDate = NOW()";
306 306
                strcmd += AddSQLString;
307 307

  
308 308
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateBudgetDetail.cs
307 307
                strcmd += string.Format(", NegotiationPrice = {0}", data.NegotiationPrice);         // 交渉時金額
308 308
                strcmd += string.Format(", Notes = '{0}'", data.Notes);                             // 注意事項
309 309

  
310
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
310
                strcmd += ", UpdateDate = NOW()";
311 311
                strcmd += AddSQLString;
312 312

  
313 313
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
399 399
                        break;
400 400
                }
401 401

  
402
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
402
                strcmd += ", UpdateDate = NOW()";
403 403
                strcmd += CreatePrimarykeyString(ConstructionCode);
404 404

  
405 405
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateData.cs
283 283
                strcmd += string.Format(", Note = '{0}'", data.Note.Replace(",", ","));			    // 備考
284 284
                strcmd += string.Format(", MyExpensesFlg = {0}", data.MyExpensesFlg);       // 自社経費フラグ
285 285
                strcmd += string.Format(", InputFlg = {0}", data.InputFlg);                 // 入力フラグ
286
                
287
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
286

  
287
                strcmd += ", UpdateDate = NOW()";
288 288
                strcmd += AddSQLString;
289 289

  
290 290
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
373 373
                        break;
374 374
                }
375 375

  
376
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
376
                strcmd += ", UpdateDate = NOW()";
377 377
                strcmd += CreatePrimarykeyString(ConstructionCode);
378 378

  
379 379
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataBody.cs
286 286
                strcmd += string.Format(",PageTitle ='{0}'", data.PageTitle);                // ページ表示名
287 287
                strcmd += string.Format(",DetailLineCount = {0}", data.DetailLineCount);    // 明細行番号
288 288

  
289
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
289
                strcmd += ", UpdateDate = NOW()";
290 290
                strcmd += AddSQLString;
291 291

  
292 292
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
372 372
                        break;
373 373
                }
374 374

  
375
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
375
                strcmd += ", UpdateDate = NOW()";
376 376
                strcmd += CreatePrimarykeyString(ConstructionCode);
377 377

  
378 378
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataDetail.cs
332 332
                strcmd += string.Format(",MyExpensesFlg = {0}", data.MyExpensesFlg);        // 自社経費フラグ
333 333
                strcmd += string.Format(",InputFlg = {0}", data.InputFlg);                  // 入力フラグ
334 334

  
335
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
335
                strcmd += ", UpdateDate = NOW()";
336 336
                strcmd += AddSQLString;
337 337

  
338 338
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
442 442
                        break;
443 443
                }
444 444

  
445
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
445
                strcmd += ", UpdateDate = NOW()";
446 446
                strcmd += CreatePrimarykeyString(ConstructionCode);
447 447

  
448 448
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOInvoiceData.cs
206 206
                strcmd += string.Format(", '{0}'", data.Comment4.ToString());
207 207
                strcmd += string.Format(", '{0}'", data.Comment5.ToString());
208 208
                strcmd += string.Format(", {0}", data.CompleteFlg.ToString());
209
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
210
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
209
                strcmd += ", NOW()";
210
                strcmd += ", NOW()";
211 211
                strcmd += ")";
212 212

  
213 213
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
254 254
                strcmd += string.Format(", Comment4 = '{0}'", data.Comment4.ToString());
255 255
                strcmd += string.Format(", Comment5 = '{0}'", data.Comment5.ToString());
256 256
                strcmd += string.Format(", CompleteFlg = {0}", data.CompleteFlg.ToString());
257
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
257
                strcmd += ", UpdateDate = NOW()";
258 258

  
259 259
                strcmd += AddSQLString;
260 260

  
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMBusinessType.cs
167 167
                strcmd += string.Format(",DisplayOrder = {0}", data.DisplayOrder.ToString());
168 168
                strcmd += string.Format(",BusinessTypeName = '{0}'", data.BusinessTypeName);
169 169

  
170
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
170
                strcmd += ", UpdateDate = NOW()";
171 171
                strcmd += AddSQLString;
172 172

  
173 173
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCategoryName.cs
128 128
                    strcmd += string.Format(",'{0}'", work.CategoryName.ToString());
129 129
                    strcmd += string.Format(", {0}", work.DeleteFlg.ToString());
130 130

  
131
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
132
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
131
                    strcmd += ", NOW()";
132
                    strcmd += ", NOW()";
133 133
                    strcmd += ")";
134 134

  
135 135
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
165 165
                strcmd += string.Format(",CategoryName ='{0}'", data.CategoryName.ToString());
166 166
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
167 167

  
168
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
168
                strcmd += ", UpdateDate = NOW()";
169 169
                strcmd += AddSQLString;
170 170

  
171 171
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLarge.cs
213 213
                strcmd += string.Format(",CommentText = '{0}'", data.CommentText);
214 214
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
215 215

  
216
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
216
                strcmd += ", UpdateDate = NOW()";
217 217
                strcmd += AddSQLString;
218 218

  
219 219
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLinkMS.cs
249 249
                strcmd += string.Format(",MiddleCode = {0}", data.MiddleCode.ToString());
250 250
                strcmd += string.Format(",ItemCode = {0}", data.ItemCode.ToString());
251 251

  
252
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
252
                strcmd += ", UpdateDate = NOW()";
253 253
                strcmd += AddSQLString;
254 254

  
255 255
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostMiddle.cs
217 217
                strcmd += string.Format(",CommentText = '{0}'", data.CommentText);
218 218
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
219 219

  
220
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
220
                strcmd += ", UpdateDate = NOW()";
221 221
                strcmd += AddSQLString;
222 222

  
223 223
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostMiddleSearchWord.cs
251 251
                strcmd += string.Format(",SeqNo = {0}", data.SeqNo.ToString());
252 252
                strcmd += string.Format(",SearchWord = '{0}'", data.SearchWord);
253 253

  
254
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
254
                strcmd += ", UpdateDate = NOW()";
255 255
                strcmd += AddSQLString;
256 256

  
257 257
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponent.cs
292 292
                strcmd += string.Format(",MyExpensesFlg = {0}", data.MyExpensesFlg.ToString());
293 293
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
294 294

  
295
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
295
                strcmd += ", UpdateDate = NOW()";
296 296
                strcmd += AddSQLString;
297 297

  
298 298
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
542 542
                        break;
543 543
                }
544 544

  
545
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
545
                strcmd += ", UpdateDate = NOW()";
546 546
                strcmd += CreatePrimarykeyString(ComponentCode);
547 547

  
548 548
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponentLink.cs
249 249
                strcmd += string.Format(",ItemCode = {0}", data.ItemCode.ToString());
250 250
                strcmd += string.Format(",DisplayOrder = {0}", data.DisplayOrder.ToString());
251 251

  
252
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
252
                strcmd += ", UpdateDate = NOW()";
253 253
                strcmd += AddSQLString;
254 254

  
255 255
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponentToTypeMaster.cs
176 176
                strcmd += string.Format("  {0}", work.ComponentCode.ToString());
177 177
                strcmd += string.Format(", {0}", work.TypeCode.ToString());
178 178

  
179
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
180
                strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
179
                strcmd += ", NOW()";
180
                strcmd += ", NOW()";
181 181
                strcmd += ")";
182 182

  
183 183
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
238 238
                strcmd += string.Format(" ComponentCode = {0}", data.ComponentCode.ToString());
239 239
                strcmd += string.Format(",ItemCode = {0}", data.TypeCode.ToString());
240 240

  
241
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
241
                strcmd += ", UpdateDate = NOW()";
242 242
                strcmd += AddSQLString;
243 243

  
244 244
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionItem.cs
264 264
                strcmd += string.Format(",MyExpensesFlg = {0}", data.MyExpensesFlg.ToString());
265 265
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
266 266

  
267
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
267
                strcmd += ", UpdateDate = NOW()";
268 268
                strcmd += AddSQLString;
269 269

  
270 270
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpec.cs
274 274
                strcmd += string.Format(",UnitPrice = {0}", data.UnitPrice);
275 275
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg);
276 276

  
277
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
277
                strcmd += ", UpdateDate = NOW()";
278 278
                strcmd += AddSQLString;
279 279

  
280 280
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpecUnitPrice.cs
267 267

  
268 268
                strcmd += string.Format(",UnitPrice = {0}", data.UnitPrice);
269 269

  
270
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
270
                strcmd += ", UpdateDate = NOW()";
271 271
                strcmd += AddSQLString;
272 272

  
273 273
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionTypeMaster.cs
296 296
                strcmd += string.Format(",ExpensesLink = {0}", data.ExpensesLink);
297 297
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg);
298 298

  
299
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
299
                strcmd += ", UpdateDate = NOW()";
300 300
                strcmd += AddSQLString;
301 301

  
302 302
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs
239 239
                strcmd += string.Format(",StaffAssignFlg = {0}", data.StaffAssignFlg.ToString());
240 240
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
241 241

  
242
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
242
                strcmd += ", UpdateDate = NOW()";
243 243
                strcmd += AddSQLString;
244 244

  
245 245
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs
312 312
                strcmd += string.Format(",EXPENSESRAITO = {0}", data.ExpensesRaito.ToString());
313 313
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
314 314

  
315
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
315
                strcmd += ", UpdateDate = NOW()";
316 316
                strcmd += AddSQLString;
317 317

  
318 318
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs
214 214
                strcmd += string.Format(",NameString = '{0}'", data.NameString.ToString());
215 215
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
216 216

  
217
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
217
                strcmd += ", UpdateDate = NOW()";
218 218
                strcmd += AddSQLString;
219 219

  
220 220
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMExpenses.cs
164 164
                    strcmd += string.Format(", {0}", work.ExpensesRaito.ToString());
165 165
                    strcmd += string.Format(", {0}", work.DeleteFlg.ToString());
166 166

  
167
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
168
                    strcmd += ", STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
167
                    strcmd += ", NOW()";
168
                    strcmd += ", NOW()";
169 169
                    strcmd += ")";
170 170

  
171 171
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
......
201 201
                strcmd += string.Format(",ExpensesRaito = {0}", data.ExpensesRaito.ToString());
202 202
                strcmd += string.Format(",DeleteFlg = {0}", data.DeleteFlg.ToString());
203 203

  
204
                strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')";
204
                strcmd += ", UpdateDate = NOW()";
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

他の形式にエクスポート: Unified diff