プロジェクト

全般

プロフィール

リビジョン 55

堀内ほぼ8年前に追加

発注先マスタバグ等修正

差分を表示:

trunk/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
14 14
        /// <summary>
15 15
        /// 本体バージョン
16 16
        /// </summary>
17
        public static int s_SystemVersion = 11;
17
        public static int s_SystemVersion = 14;
18 18

  
19 19
        /// <summary>
20 20
        /// コピー・環境バージョン
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs
27 27
        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
28 28
        #endregion
29 29

  
30
        #region 定数
31

  
32
        #region 申請レコード番号
33
        /// <summary>
34
        /// 申請レコード枝番
35
        /// </summary>
36
        private const int s_PrimartyRecord = 1;
37
        #endregion
38
        #endregion
39

  
30 40
        #region 承認申請・承認をする(工事承認)
31 41
        /// <summary>
32 42
        /// 案件の承認申請・承認をする(工事承認)
......
124 134
                                        true,
125 135
                                        ApprovalCode,
126 136
                                        OrderNO,
127
                                        1)) return false;
137
                                        s_PrimartyRecord)) return false;
128 138

  
129 139
                return true;
130 140
            }
......
160 170
                                        Status,
161 171
                                        true,
162 172
                                        OrderNo,
163
                                        1)) return false;
173
                                        s_PrimartyRecord)) return false;
164 174

  
165 175
                return true;
166 176
            }
......
190 200
            {
191 201
                bool bPetition = false;
192 202
                // 申請データ取得
193
                string strSQL = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo, 1);
203
                string strSQL = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo, s_PrimartyRecord);
194 204
                List<ProcessApproval> PetitionList = new List<ProcessApproval>();
195 205
                if (!ApprDB.SelectAction(strSQL, ref PetitionList)) return bPetition;
196 206
                // 申請データが無い場合
......
258 268
            try
259 269
            {
260 270
                // 承認データを取得する(申請データを除く)
261
                string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, Approvalcount, 1);
271
                string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, Approvalcount, s_PrimartyRecord);
262 272
                ProcessApproval DataRec = new ProcessApproval();
263 273
                if (!ApprDB.SelectAction(strData, ref DataRec)) return false;
264 274

  
......
292 302
            try
293 303
            {
294 304
                // 承認データを取得する(申請データを除く)
295
                string strData = ApprDB.CreatePrimarykeyString(PersonCode, ApprovalCode, OrderDate, OrderNo, 1);
305
                string strData = ApprDB.CreatePrimarykeyString(PersonCode, ApprovalCode, OrderDate, OrderNo, s_PrimartyRecord);
296 306
                PersonApproval DataRec = new PersonApproval();
297 307
                if (!ApprDB.SelectAction(strData, ref DataRec)) return false;
298 308

  
......
335 345

  
336 346
                // 承認データを取得する(申請データを除く)
337 347
                string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo);
338
                strData += string.Format(" And SeqNo != 1 And ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval);
348
                strData += string.Format(" And SeqNo != {0} And ApprovalStatus = {1}", s_PrimartyRecord, (int)CommonDefine.ApprovalStatus.Approval);
339 349
                List<ProcessApproval> DataList = new List<ProcessApproval>();
340 350
                if (!ApprDB.SelectAction(strData, ref DataList)) return false;
341 351
                if (DataList.Count == 0) return false;
......
412 422
                strSQL += " FROM APPROVALMASTER A";
413 423
                strSQL += " LEFT JOIN PERSONAPPROVAL B ON B.PERSONCODEAPPROVAL = A.APPROVALPERSON AND B.APPROVALCODE = A.APPROVALCODE";
414 424
                strSQL += string.Format(" AND B.ORDERDATE = TO_DATE('{0}')", OrderDate.ToShortDateString());
415
                strSQL += string.Format(" AND B.ORDERNO = {0} AND B.SEQNO != 1", OrderNo);
425
                strSQL += string.Format(" AND B.ORDERNO = {0} AND B.SEQNO != {1}", OrderNo, s_PrimartyRecord);
416 426
                strSQL += string.Format(" WHERE A.APPROVALCODE = {0}", ApprovalCode);
417 427
                strSQL += " AND A.DEPARTMENTCODE = (SELECT C.DEPARTMENTCODE FROM PERSONINCHARGEMASTER C";
418 428
                strSQL += string.Format(" WHERE C.PERSONCODE = {0})", PersonCode);
......
575 585
            try
576 586
            {
577 587
                // 管理担当者コードを取得する
578
                string strSQL = ApprovalDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo, 1);
588
                string strSQL = ApprovalDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo, s_PrimartyRecord);
579 589
                ProcessApproval ApprovalRec = new ProcessApproval();
580 590
                int CurrentPersonCode = 0;
581 591
                if (ApprovalDB.SelectAction(strSQL, ref ApprovalRec))
......
620 630
            try
621 631
            {
622 632
                // 管理担当者コードを取得する
623
                string strSQL = ApprovalDB.CreatePrimarykeyString(PersonCode, ApprovalCode, OrderDate, OrderNo, 1);
633
                string strSQL = ApprovalDB.CreatePrimarykeyString(PersonCode, ApprovalCode, OrderDate, OrderNo, s_PrimartyRecord);
624 634
                PersonApproval ApprovalRec = new PersonApproval();
625 635
                int CurrentPersonCode = 0;
626 636
                if (ApprovalDB.SelectAction(strSQL, ref ApprovalRec))
......
734 744
            {
735 745
                // 承認データ取得
736 746
                string strSQL = paDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, ApprovalCount);
737
                strSQL += string.Format(" And SeqNo != 1 And ApprovalStatus = {0}",(int)CommonDefine.ApprovalStatus.Approval);
747
                strSQL += string.Format(" And SeqNo != {0} And ApprovalStatus = {1}", s_PrimartyRecord, (int)CommonDefine.ApprovalStatus.Approval);
738 748
                List<ProcessApproval> ApprovalList = new List<ProcessApproval>();
739 749
                if (!paDB.SelectAction(strSQL, ref ApprovalList)) return 0;
740 750

  
......
764 774
            {
765 775
                // 承認データ取得
766 776
                string strSQL = paDB.CreatePrimarykeyString(PersonCode, ApprovalCode, ApprovalDate);
767
                strSQL += string.Format(" And SeqNo != 1 And ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval);
777
                strSQL += string.Format(" And SeqNo != {0} And ApprovalStatus = {1}", s_PrimartyRecord, (int)CommonDefine.ApprovalStatus.Approval);
768 778
                List<PersonApproval> ApprovalList = new List<PersonApproval>();
769 779
                if (!paDB.SelectAction(strSQL, ref ApprovalList)) return 0;
770 780

  
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
77 77
            PaymentConfirmation = 30,           // 30:入金確認
78 78
            RequestInput = 31,                  // 31:請求入力
79 79
            RequestPrint = 32,                  // 32:請求書印刷
80
            CostomerRegist = 33,                // 33:発注者登録申請
80 81
        }
81 82
        #endregion
82 83

  
......
173 174
                                                                                { (int)ProcessExecuteNo.RequestSummaryList,     "請求まとめ"},
174 175
                                                                                { (int)ProcessExecuteNo.PaymentConfirmation,    "入金確認"},
175 176
                                                                                { (int)ProcessExecuteNo.RequestInput,           "請求入力"},
176
                                                                                { (int)ProcessExecuteNo.RequestPrint,           "請求書印刷"}
177
                                                                                { (int)ProcessExecuteNo.RequestPrint,           "請求書印刷"},
178
                                                                                { (int)ProcessExecuteNo.CostomerRegist,         "発注者登録申請"},
177 179
        };
178 180

  
179 181
        #endregion
......
257 259
            /// 8:出勤管理承認
258 260
            /// </summary>
259 261
            DRWorkApproval,
262
            /// <summary>
263
            /// 9:発注者登録承認
264
            /// </summary>
265
            CostomerRegistApproval,
260 266
        }
261 267
        #endregion
262 268

  
......
293 299
                                                                                {6, "工事日報承認"},
294 300
                                                                                {7, "議事録承認"},
295 301
                                                                                {8, "出勤管理承認"},
302
                                                                                {9, "発注者登録承認"},
296 303
                                                                                };
297 304

  
298 305
        #endregion
......
473 480
                        case (int)ProcessExecuteNo.PersonApprovalList:                  // 22:担当者承認申請一覧
474 481
                            ProcessExecuteNo_PersonAppList(m_ProcControlPara[NowPoint]);
475 482
                            break;
483
                        case (int)ProcessExecuteNo.CostomerRegist:                      // 33:発注者登録申請
484
                            ProcessExecuteNo_CostomerRegist(m_ProcControlPara[NowPoint]);
485
                            break;
486

  
476 487
                        #endregion
477 488

  
478 489
                        #region マスタメンテ
......
1674 1685
        }
1675 1686
        #endregion
1676 1687

  
1688
        #region 発注者登録申請
1689
        /// <summary>
1690
        /// 発注者登録申請
1691
        /// </summary>
1692
        /// <param name="CurrentPara"></param>
1693
        public static void ProcessExecuteNo_CostomerRegist(ProcessParameter CurrentPara)
1694
        {
1695
            // 発注者登録申請一覧
1696
            FrmCostomerRegistList frm = new FrmCostomerRegistList();
1697
            try
1698
            {
1699
                // フォーム表示
1700
                frm.ShowDialog();
1701

  
1702
            }
1703
            catch (Exception ex)
1704
            {
1705
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
1706
                BackProcess();
1707
            }
1708
            finally
1709
            {
1710
                frm.Dispose(); frm = null;
1711
            }
1712
        }
1677 1713
        #endregion
1678 1714

  
1715
        #endregion
1716

  
1679 1717
        #region マスタメンテナンス
1680 1718
        // ----------------- メンテナンス起動
1681 1719
        #region 管理マスタ
......
1734 1772
                }
1735 1773
                if (EditFlg == (int)CommonDefine.ProcessDataEdit.Reference) frm.EditLock = true;
1736 1774

  
1775
                frm.EntryMode = (int)CommonDefine.EmployeeClassFlg.Regular;
1737 1776
                frm.ShowDialog();
1738 1777
            }
1739 1778
            catch (Exception ex)
......
2309 2348
        public static void MaintenanceExecuteNo_AlwaysEmployment(ProcessParameter CurrentPara)
2310 2349
        {
2311 2350
            // 常雇者マスタ
2312
            FrmAlwaysEmployment frm = new FrmAlwaysEmployment();
2351
            //FrmAlwaysEmployment frm = new FrmAlwaysEmployment();
2352
            FrmPersonInCharge frm = new FrmPersonInCharge();
2313 2353
            try
2314 2354
            {
2315 2355
                // 起動・編集フラグ
......
2322 2362
                }
2323 2363
                if (EditFlg == (int)CommonDefine.ProcessDataEdit.Reference) frm.EditLock = true;
2324 2364

  
2365
                frm.EntryMode = (int)CommonDefine.EmployeeClassFlg.OutSource;
2325 2366
                frm.ShowDialog();
2326 2367
            }
2327 2368
            catch (Exception ex)
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs
52 52
            OrdersDecisionPrice,
53 53
            OrdersDecisionPriceInTax,
54 54
            SalesPersonCode,
55
            ConstrPersonCode,
55
            ConstructionPersonCode,
56 56
            ConstrSubPersonCode,
57 57
            ConstructionInstructor,
58 58
            TransferConstruction,
......
237 237
            string strcmd = "";
238 238
            try
239 239
            {
240
                    strcmd = "INSERT INTO ConstructionBaseInfo";
241
                    strcmd += " (ConstructionCode";
242
                    strcmd += ", TyingFlg";
243
                    strcmd += ", JoinFlg";
244
                    strcmd += ", ConstructionYear";
245
                    strcmd += ", ConstructionPeriod";
246
                    strcmd += ", RequestedDate";
247
                    strcmd += ", EstimatesSubmitDeadline";
248
                    strcmd += ", EstimatesSubmittedDate";
249
                    strcmd += ", ProvisionalOrderDate";
250
                    strcmd += ", OrderDate";
251
                    strcmd += ", OrderStartingDate";
252
                    strcmd += ", OrderCompletionDate";
253
                    strcmd += ", PreparationStartDate";
254
                    strcmd += ", ConstructionStartingDate";
255
                    strcmd += ", ConstructionCompletionDate";
256
                    strcmd += ", NonOrderDate";
257
                    strcmd += ", OrdersDecisionPrice";
258
                    strcmd += ", OrdersDecisionPriceInTax";
259
                    strcmd += ", SalesPersonCode";
260
                    strcmd += ", ConstructionPersonCode";
261
                    strcmd += ", ConstrSubPersonCode";
262
                    strcmd += ", ConstructionInstructor";
263
                    strcmd += ", TransferConstruction";
264
                    strcmd += ", TransferConstructionDate";
265
                    strcmd += ", OrderersDivision";
266
                    strcmd += ", OrderersCode";
267
                    strcmd += ", EstimatesExpirationDate";
268
                    strcmd += ", ConstructionPeriodStart";
269
                    strcmd += ", ConstructionPeriodEnd";
270
                    strcmd += ", ConstructionPeriodStart2";
271
                    strcmd += ", ConstructionPeriodEnd2";
272
                    strcmd += ", StartDate";
273
                    strcmd += ", EndDate";
274
                    strcmd += ", PurchaseOrderMailingDate";
275
                    strcmd += ", PurchaseOrderReturnDate";
276
                    strcmd += ", PurchaseOrderReturnCheckDate";
277
                    strcmd += ", ConsumptionTaxFlg";
278
                    strcmd += ", PrimeContractorFlg";
279
                    strcmd += ", SalesCostFlg";
280
                    strcmd += ", ConstructionStatusFlg";
281
                    strcmd += ", ConstructionType";
282
                    strcmd += ", EstimateType";
283
                    strcmd += ", BillingStartDate";
284
                    strcmd += ", BillingDate";
285
                    strcmd += ", BillingSplitFlg";
286
                    strcmd += ", BillingSendDate";
287
                    strcmd += ", LedgerComplateDate";
288
                    strcmd += ", EntryDate";
289
                    strcmd += ", UpdateDate";
240
                strcmd = "INSERT INTO ConstructionBaseInfo";
290 241

  
291
                    strcmd += ") VALUES (";
242
                strcmd += " (";
243
                bool bFirst = true;
244
                foreach (var gender in Enum.GetValues(typeof(TableColumn)))
245
                {
246
                    if (!bFirst) strcmd += " ,";
247
                    strcmd += gender.ToString();
248
                    bFirst = false;
249
                }
250
                strcmd += ") VALUES (";
292 251

  
293
                    strcmd += string.Format("  {0}", data.ConstructionCode);
294
                    strcmd += string.Format(", {0}", data.TyingFlg);
295
                    strcmd += string.Format(", {0}", data.JoinFlg);
296
                    strcmd += string.Format(", {0}", data.ConstructionYear);
297
                    strcmd += string.Format(", {0}", data.ConstructionPeriod);
252
                strcmd += string.Format("  {0}", data.ConstructionCode);
253
                strcmd += string.Format(", {0}", data.TyingFlg);
254
                strcmd += string.Format(", {0}", data.JoinFlg);
255
                strcmd += string.Format(", {0}", data.ConstructionYear);
256
                strcmd += string.Format(", {0}", data.ConstructionPeriod);
298 257

  
299
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.RequestedDate.ToShortDateString());
300
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EstimatesSubmitDeadline.ToShortDateString());
301
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EstimatesSubmittedDate.ToShortDateString());
302
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ProvisionalOrderDate.ToShortDateString());
303
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderDate.ToShortDateString());
304
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderStartingDate.ToShortDateString());
305
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderCompletionDate.ToShortDateString());
306
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PreparationStartDate.ToShortDateString());
307
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionStartingDate.ToShortDateString());
308
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionCompletionDate.ToShortDateString());
309
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.NonOrderDate.ToShortDateString());
258
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.RequestedDate.ToShortDateString());
259
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EstimatesSubmitDeadline.ToShortDateString());
260
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EstimatesSubmittedDate.ToShortDateString());
261
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ProvisionalOrderDate.ToShortDateString());
262
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderDate.ToShortDateString());
263
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderStartingDate.ToShortDateString());
264
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderCompletionDate.ToShortDateString());
265
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PreparationStartDate.ToShortDateString());
266
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionStartingDate.ToShortDateString());
267
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionCompletionDate.ToShortDateString());
268
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.NonOrderDate.ToShortDateString());
310 269

  
311
                    strcmd += string.Format(", {0}", data.OrdersDecisionPrice);
312
                    strcmd += string.Format(", {0}", data.OrdersDecisionPriceInTax);
270
                strcmd += string.Format(", {0}", data.OrdersDecisionPrice);
271
                strcmd += string.Format(", {0}", data.OrdersDecisionPriceInTax);
313 272

  
314
                    strcmd += string.Format(", {0}", data.SalesPersonCode);
315
                    strcmd += string.Format(", {0}", data.ConstructionPersonCode);
316
                    strcmd += string.Format(", {0}", data.ConstrSubPersonCode);
317
                    strcmd += string.Format(", {0}", data.ConstructionInstructor);
273
                strcmd += string.Format(", {0}", data.SalesPersonCode);
274
                strcmd += string.Format(", {0}", data.ConstructionPersonCode);
275
                strcmd += string.Format(", {0}", data.ConstrSubPersonCode);
276
                strcmd += string.Format(", {0}", data.ConstructionInstructor);
318 277

  
319
                    strcmd += string.Format(", {0}", data.TransferConstruction);
320
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.TransferConstructionDate.ToShortDateString());
278
                strcmd += string.Format(", {0}", data.TransferConstruction);
279
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.TransferConstructionDate.ToShortDateString());
321 280

  
322
                    strcmd += string.Format(", {0}", data.OrderersDivision);
323
                    strcmd += string.Format(", {0}", data.OrderersCode);
281
                strcmd += string.Format(", {0}", data.OrderersDivision);
282
                strcmd += string.Format(", {0}", data.OrderersCode);
324 283

  
325
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EstimatesExpirationDate.ToShortDateString());
326
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodStart.ToShortDateString());
327
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodEnd.ToShortDateString());
328
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodStart2.ToShortDateString());
329
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodEnd2.ToShortDateString());
330
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.StartDate.ToShortDateString());
331
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EndDate.ToShortDateString());
332
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PurchaseOrderMailingDate.ToShortDateString());
333
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PurchaseOrderReturnDate.ToShortDateString());
334
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PurchaseOrderReturnCheckDate.ToShortDateString());
284
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EstimatesExpirationDate.ToShortDateString());
285
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodStart.ToShortDateString());
286
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodEnd.ToShortDateString());
287
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodStart2.ToShortDateString());
288
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.ConstructionPeriodEnd2.ToShortDateString());
289
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.StartDate.ToShortDateString());
290
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.EndDate.ToShortDateString());
291
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PurchaseOrderMailingDate.ToShortDateString());
292
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PurchaseOrderReturnDate.ToShortDateString());
293
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.PurchaseOrderReturnCheckDate.ToShortDateString());
335 294

  
336
                    strcmd += string.Format(", {0}", data.ConsumptionTaxFlg);
337
                    strcmd += string.Format(", {0}", data.PrimeContractorFlg);
338
                    strcmd += string.Format(", {0}", data.SalesCostFlg);
339
                    strcmd += string.Format(", {0}", data.ConstructionStatusFlg);
295
                strcmd += string.Format(", {0}", data.ConsumptionTaxFlg);
296
                strcmd += string.Format(", {0}", data.PrimeContractorFlg);
297
                strcmd += string.Format(", {0}", data.SalesCostFlg);
298
                strcmd += string.Format(", {0}", data.ConstructionStatusFlg);
340 299

  
341
                    strcmd += string.Format(", {0}", data.ConstructionType);
342
                    strcmd += string.Format(", {0}", data.EstimateType);
300
                strcmd += string.Format(", {0}", data.ConstructionType);
301
                strcmd += string.Format(", {0}", data.EstimateType);
343 302

  
344
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.BillingStartDate.ToShortDateString());
345
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.BillingDate.ToShortDateString());
346
                    strcmd += string.Format(", {0}", data.BillingSplitFlg);
347
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.BillingSendDate.ToShortDateString());
348
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.LedgerComplateDate.ToShortDateString());
303
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.BillingStartDate.ToShortDateString());
304
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.BillingDate.ToShortDateString());
305
                strcmd += string.Format(", {0}", data.BillingSplitFlg);
306
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.BillingSendDate.ToShortDateString());
307
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.LedgerComplateDate.ToShortDateString());
349 308

  
350
                    strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
351
                    strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
352
                    strcmd = strcmd + ")";
309
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
310
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
311
                strcmd = strcmd + ")";
353 312

  
354
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
313
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
355 314

  
356 315
                return true;
357 316
            }
......
537 496
                wrk.OrdersDecisionPriceInTax = double.Parse(objwrk[(int)TableColumn.OrdersDecisionPriceInTax].ToString());
538 497

  
539 498
                wrk.SalesPersonCode = int.Parse(objwrk[(int)TableColumn.SalesPersonCode].ToString());
540
                wrk.ConstructionPersonCode = int.Parse(objwrk[(int)TableColumn.ConstrPersonCode].ToString());
499
                wrk.ConstructionPersonCode = int.Parse(objwrk[(int)TableColumn.ConstructionPersonCode].ToString());
541 500
                wrk.ConstrSubPersonCode = int.Parse(objwrk[(int)TableColumn.ConstrSubPersonCode].ToString());
542 501
                wrk.ConstructionInstructor = int.Parse(objwrk[(int)TableColumn.ConstructionInstructor].ToString());
543 502

  
......
666 625
                    case (int)TableColumn.SalesPersonCode:
667 626
                        strcmd += string.Format(" SalesPersonCode = {0}", ((int)value).ToString());
668 627
                        break;
669
                    case (int)TableColumn.ConstrPersonCode:
628
                    case (int)TableColumn.ConstructionPersonCode:
670 629
                        strcmd += string.Format(" ConstructionPersonCode = {0}", ((int)value).ToString());
671 630
                        break;
672 631
                    case (int)TableColumn.ConstrSubPersonCode:
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOCostomerRegist.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

  
15
using ProcessManagement.Common;
16

  
17
namespace ProcessManagement.DB.IOAccess
18
{
19
    /// <summary>
20
    /// 発注者登録申請データDBアクセス
21
    /// </summary>
22
    public class IOCostomerRegist : OracleProcess
23
    {
24
        #region 定義部
25
        /// <summary>
26
        /// log4netログを使用する
27
        /// </summary>
28
        private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
29
        #endregion
30

  
31
        #region 定数
32
        /// <summary>
33
        /// 発注者登録申請データフィールド並び
34
        /// </summary>
35
        public enum DataColumn
36
        {
37
            PetitionNo = 0,
38
            SeqNo,
39
            PetitionPeriod,
40
            PersonCode,
41
            PetitionDate,
42
            OrderFlg,
43
            CorporateStatusName,
44
            CorporateStatusPoint,
45
            OrderersName1,
46
            OrderersName2,
47
            DepartmentName,
48
            ChargePersonName,
49
            ZipCode,
50
            Address1,
51
            Address2,
52
            Address3,
53
            PhoneNumber,
54
            FaxNumber,
55
            MailAddress,
56
            Note,
57
            OrderCotegory,
58
            OrderNo,
59
            EntryDate,
60
            UpdateDate,
61
        }
62
        #endregion
63

  
64
        #region コンストラクタ
65
        /// <summary>
66
        /// コンストラクタ
67
        /// </summary>
68
        /// <param name="ConnectionString"></param>
69
        public IOCostomerRegist()
70
            : base(DBCommon.Instance.DBConnectString)
71
        {
72
        }
73

  
74
        #endregion
75

  
76
        #region 発注者登録申請データ検索SQL作成
77
        /// <summary>
78
        /// 発注者登録申請データ検索作成
79
        /// </summary>
80
        /// <param name="AddSQLString">検索条件SQL文字列</param>
81
        /// <param name="data">発注者登録申請データデータ</param>
82
        /// <returns>true:成功 false:失敗</returns>
83
        private string CreateSelectSQL()
84
        {
85
            string strcmd = "SELECT";
86
            strcmd += " PetitionNo";
87
            strcmd += " ,SeqNo";
88
            strcmd += " ,PetitionPeriod";
89
            strcmd += " ,PersonCode";
90
            strcmd += " ,TO_CHAR(PetitionDate, 'YYYY/MM/DD')";
91
            strcmd += " ,OrderFlg";
92
            strcmd += " ,CorporateStatusName";
93
            strcmd += " ,CorporateStatusPoint";
94
            strcmd += " ,OrderersName1";
95
            strcmd += " ,OrderersName2";
96
            strcmd += " ,DepartmentName";
97
            strcmd += " ,ChargePersonName";
98
            strcmd += " ,ZipCode";
99
            strcmd += " ,Address1";
100
            strcmd += " ,Address2";
101
            strcmd += " ,Address3";
102
            strcmd += " ,PhoneNumber";
103
            strcmd += " ,FaxNumber";
104
            strcmd += " ,MailAddress";
105
            strcmd += " ,Note";
106
            strcmd += " ,OrderCotegory";
107
            strcmd += " ,OrderNo";
108

  
109
            strcmd += " ,TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')";
110
            strcmd += " ,TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')";
111
            strcmd += " FROM CostomerRegist";
112

  
113
            return strcmd;
114
        }
115
        #endregion
116

  
117
        #region 発注者登録申請データ検索(複数)
118
        /// <summary>
119
        /// 発注者登録申請データ検索(複数)
120
        /// </summary>
121
        /// <param name="AddSQLString"></param>
122
        /// <param name="data"></param>
123
        /// <param name="bConnect"></param>
124
        /// <returns></returns>
125
        public bool SelectAction(string AddSQLString, ref List<CostomerRegist> data, bool bConnect = true)
126
        {
127
            //Oracle インターフェース
128
            string strcmd = "";
129
            ArrayList arData = new ArrayList();
130

  
131
            try
132
            {
133
                strcmd = CreateSelectSQL() + AddSQLString;
134

  
135
                // SQL実行
136
                if (!ExecuteReader(strcmd, ref arData, bConnect)) return false;
137

  
138
                // データセット
139
                foreach (object[] objwrk in arData)
140
                {
141
                    CostomerRegist work = new CostomerRegist();
142
                    Reader2Struct(objwrk, ref work);
143
                    data.Add(work);
144
                }
145

  
146
                return true;
147
            }
148
            catch (Exception ex)
149
            {
150
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
151
                return false;
152
            }
153
        }
154
        #endregion
155

  
156
        #region 発注者登録申請データ検索(1件)
157
        /// <summary>
158
        /// 発注者登録申請データ検索(1件)
159
        /// </summary>
160
        /// <param name="AddSQLString"></param>
161
        /// <param name="data"></param>
162
        /// <param name="bConnect"></param>
163
        /// <returns></returns>
164
        public bool SelectAction(string AddSQLString, ref CostomerRegist data, bool bConnect = true)
165
        {
166
            //Oracle インターフェース
167
            string strcmd = "";
168
            ArrayList arData = new ArrayList();
169

  
170
            try
171
            {
172
                strcmd = CreateSelectSQL() + AddSQLString;
173

  
174
                // SQL実行
175
                if (!ExecuteReader(strcmd, ref arData, bConnect)) return false;
176
                if (arData.Count == 0) return false;
177

  
178
                // データセット
179
                foreach (object[] objwrk in arData)
180
                {
181
                    Reader2Struct(objwrk, ref data);
182
                    break;
183
                }
184

  
185
                return true;
186
            }
187
            catch (Exception ex)
188
            {
189
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
190
                return false;
191
            }
192
        }
193
        #endregion
194

  
195
        #region 発注者登録申請データ追加(1件)
196
        /// <summary>
197
        /// 発注者登録申請データ追加(1件)
198
        /// </summary>
199
        /// <param name="data"></param>
200
        /// <param name="bConnect"></param>
201
        /// <returns></returns>
202
        public bool InsertAction(CostomerRegist work, bool bConnect = true)
203
        {
204
            string strcmd = "";
205
            try
206
            {
207

  
208
                strcmd = "INSERT INTO CostomerRegist";
209
                strcmd += " (";
210

  
211
                bool bFirst = true;
212
                foreach (var gender in Enum.GetValues(typeof(DataColumn)))
213
                {
214
                    if (!bFirst) strcmd += " ,";
215
                    strcmd += gender.ToString();
216
                    bFirst = false;
217
                }
218

  
219
                strcmd += ") VALUES (";
220

  
221
                strcmd += string.Format("  {0}", work.PetitionNo);
222
                strcmd += string.Format(", {0}", work.SeqNo);
223
                strcmd += string.Format(", {0}", work.PetitionPeriod);
224
                strcmd += string.Format(", {0}", work.PersonCode);
225
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", work.PetitionDate.ToShortDateString());
226
                strcmd += string.Format(", {0}", work.OrderFlg);
227
                strcmd += string.Format(", '{0}'", work.CorporateStatusName);
228
                strcmd += string.Format(", {0}", work.CorporateStatusPoint);
229
                strcmd += string.Format(", '{0}'", work.OrderersName1);
230
                strcmd += string.Format(", '{0}'", work.OrderersName2);
231
                strcmd += string.Format(", '{0}'", work.DepartmentName);
232
                strcmd += string.Format(", '{0}'", work.ChargePersonName);
233
                strcmd += string.Format(", '{0}'", work.ZipCode);
234
                strcmd += string.Format(", '{0}'", work.Address1);
235
                strcmd += string.Format(", '{0}'", work.Address2);
236
                strcmd += string.Format(", '{0}'", work.Address3);
237
                strcmd += string.Format(", '{0}'", work.PhoneNumber);
238
                strcmd += string.Format(", '{0}'", work.FaxNumber);
239
                strcmd += string.Format(", '{0}'", work.MailAddress);
240
                strcmd += string.Format(", '{0}'", work.Note);
241
                strcmd += string.Format(", {0}", work.OrderCotegory);
242
                strcmd += string.Format(", {0}", work.OrderNo);
243

  
244
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
245
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
246
                strcmd = strcmd + ")";
247

  
248
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
249

  
250
                return true;
251
            }
252
            catch (Exception ex)
253
            {
254
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
255
                return false;
256
            }
257
        }
258
        #endregion
259

  
260
        #region 発注者登録申請データ追加(複数)
261
        /// <summary>
262
        /// 発注者登録申請データ追加(複数)
263
        /// </summary>
264
        /// <param name="data">発注者登録申請データデータ</param>
265
        /// <returns>true:成功 false:失敗</returns>
266
        public bool InsertAction(List<CostomerRegist> data, bool bConnect = true)
267
        {
268
            string strcmd = "";
269
            try
270
            {
271
                foreach (CostomerRegist work in data)
272
                {
273
                    if (!InsertAction(work, bConnect)) return false;
274
                }
275
                return true;
276
            }
277
            catch (Exception ex)
278
            {
279
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
280
                return false;
281
            }
282
        }
283
        #endregion
284

  
285
        #region 発注者登録申請データ更新
286
        /// <summary>
287
        /// 発注者登録申請データ更新
288
        /// </summary>
289
        /// <param name="AddSQLString">更新条件SQL文字列</param>
290
        /// <param name="data">発注者登録申請データデータ</param>
291
        /// <returns>true:成功 false:失敗</returns>
292
        public bool UpdateAction(string AddSQLString, CostomerRegist data, bool bConnect = true)
293
        {
294
            string strcmd = "";
295
            try
296
            {
297

  
298
                strcmd = "UPDATE CostomerRegist";
299

  
300
                strcmd += " SET";
301

  
302
                strcmd += string.Format(" PetitionNo = {0}", data.PetitionNo);
303
                strcmd += string.Format(", SeqNo = {0}", data.SeqNo);
304
                strcmd += string.Format(", PetitionPeriod = {0}", data.PetitionPeriod);
305
                strcmd += string.Format(", PersonCode = {0}", data.PersonCode);
306
                strcmd += string.Format(", PetitionDate = TO_DATE('{0}','YYYY/MM/DD')", data.PetitionDate.ToShortDateString());
307
                strcmd += string.Format(", OrderFlg = {0}", data.OrderFlg);
308
                strcmd += string.Format(", CorporateStatusName = '{0}'", data.CorporateStatusName);
309
                strcmd += string.Format(", CorporateStatusPoint = {0}", data.CorporateStatusPoint);
310
                strcmd += string.Format(", OrderersName1 = '{0}'", data.OrderersName1);
311
                strcmd += string.Format(", OrderersName2 = '{0}'", data.OrderersName2);
312
                strcmd += string.Format(", DepartmentName = '{0}'", data.DepartmentName);
313
                strcmd += string.Format(", ChargePersonName = '{0}'", data.ChargePersonName);
314
                strcmd += string.Format(", ZipCode = '{0}'", data.ZipCode);
315
                strcmd += string.Format(", Address1 = '{0}'", data.Address1);
316
                strcmd += string.Format(", Address2 = '{0}'", data.Address2);
317
                strcmd += string.Format(", Address3 = '{0}'", data.Address3);
318
                strcmd += string.Format(", PhoneNumber = '{0}'", data.PhoneNumber);
319
                strcmd += string.Format(", FaxNumber = '{0}'", data.FaxNumber);
320
                strcmd += string.Format(", MailAddress = '{0}'", data.MailAddress);
321
                strcmd += string.Format(", Note = '{0}'", data.Note);
322
                strcmd += string.Format(", OrderCotegory = {0}", data.OrderCotegory);
323
                strcmd += string.Format(", OrderNo = {0}", data.OrderNo);
324

  
325
                strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
326
                strcmd += AddSQLString;
327

  
328
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
329

  
330
                return true;
331
            }
332
            catch (Exception ex)
333
            {
334
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
335
                return false;
336
            }
337
        }
338
        #endregion
339

  
340
        #region 発注者登録申請データ削除
341
        /// <summary>
342
        /// 発注者登録申請データ削除
343
        /// </summary>
344
        /// <param name="AddSQLString">削除条件SQL文字列</param>
345
        /// <param name="data">発注者登録申請データデータ</param>
346
        /// <returns>true:成功 false:失敗</returns>
347
        public bool DeleteAction(string AddSQLString, bool bConnect = true)
348
        {
349
            //Oracle インターフェース
350
            string strcmd = "";
351
            try
352
            {
353
                strcmd = string.Format("{0}{1}", "DELETE FROM CostomerRegist", AddSQLString);
354

  
355
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
356

  
357
                return true;
358
            }
359
            catch (Exception ex)
360
            {
361
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
362
                return false;
363
            }
364
        }
365
        #endregion
366

  
367
        #region 1項目の更新を行う
368
        /// <summary>
369
        /// 1項目の更新を行う
370
        /// </summary>
371
        /// <returns></returns>
372
        public bool UpdateFeild(int PetitionNo, int SeqNo, int FeildNo, object value, bool bConnect = true)
373
        {
374
            string strcmd = "";
375
            try
376
            {
377
                strcmd = "UPDATE CostomerRegist";
378

  
379
                strcmd += " SET";
380
                switch (FeildNo)
381
                {
382
                    case (int)DataColumn.PetitionNo:
383
                        strcmd += string.Format(" PetitionNo = {0}", ((int)value).ToString());
384
                        break;
385
                    case (int)DataColumn.SeqNo:
386
                        strcmd += string.Format(" SeqNo = {0}", ((int)value).ToString());
387
                        break;
388
                    case (int)DataColumn.PetitionPeriod:
389
                        strcmd += string.Format(" PetitionPeriod = {0}", ((int)value).ToString());
390
                        break;
391
                    case (int)DataColumn.PersonCode:
392
                        strcmd += string.Format(" PersonCode = {0}", ((int)value).ToString());
393
                        break;
394
                    case (int)DataColumn.PetitionDate:
395
                        strcmd += string.Format(" PetitionDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
396
                        break;
397
                    case (int)DataColumn.OrderFlg:
398
                        strcmd += string.Format(" OrderFlg = {0}", ((int)value).ToString());
399
                        break;
400
                    case (int)DataColumn.CorporateStatusName:
401
                        strcmd += string.Format(" CorporateStatusName = '{0}'", value.ToString());
402
                        break;
403
                    case (int)DataColumn.CorporateStatusPoint:
404
                        strcmd += string.Format(" CorporateStatusPoint = '{0}'", value.ToString());
405
                        break;
406
                    case (int)DataColumn.OrderersName1:
407
                        strcmd += string.Format(" OrderersName1 = '{0}'", value.ToString());
408
                        break;
409
                    case (int)DataColumn.OrderersName2:
410
                        strcmd += string.Format(" OrderersName2 = '{0}'", value.ToString());
411
                        break;
412
                    case (int)DataColumn.DepartmentName:
413
                        strcmd += string.Format(" DepartmentName = '{0}'", value.ToString());
414
                        break;
415
                    case (int)DataColumn.ChargePersonName:
416
                        strcmd += string.Format(" ChargePersonName = '{0}'", value.ToString());
417
                        break;
418
                    case (int)DataColumn.ZipCode:
419
                        strcmd += string.Format(" ZipCode = '{0}'", value.ToString());
420
                        break;
421
                    case (int)DataColumn.Address1:
422
                        strcmd += string.Format(" Address1 = '{0}'", value.ToString());
423
                        break;
424
                    case (int)DataColumn.Address2:
425
                        strcmd += string.Format(" Address2 = '{0}'", value.ToString());
426
                        break;
427
                    case (int)DataColumn.Address3:
428
                        strcmd += string.Format(" Address3 = '{0}'", value.ToString());
429
                        break;
430
                    case (int)DataColumn.PhoneNumber:
431
                        strcmd += string.Format(" PhoneNumber = '{0}'", value.ToString());
432
                        break;
433
                    case (int)DataColumn.FaxNumber:
434
                        strcmd += string.Format(" FaxNumber = '{0}'", value.ToString());
435
                        break;
436
                    case (int)DataColumn.MailAddress:
437
                        strcmd += string.Format(" MailAddress = '{0}'", value.ToString());
438
                        break;
439
                    case (int)DataColumn.Note:
440
                        strcmd += string.Format(" Note = '{0}'", value.ToString());
441
                        break;
442
                    case (int)DataColumn.OrderCotegory:
443
                        strcmd += string.Format(" OrderCotegory = {0}", ((int)value).ToString());
444
                        break;
445
                    case (int)DataColumn.OrderNo:
446
                        strcmd += string.Format(" OrderNo = {0}", ((int)value).ToString());
447
                        break;
448
                }
449

  
450
                strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
451
                strcmd += CreatePrimarykeyString(PetitionNo, SeqNo);
452

  
453
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
454

  
455
                return true;
456
            }
457
            catch (OracleException oraex)
458
            {
459
                logger.ErrorFormat("オラクルエラー:{0}:{1}", CommonMotions.GetMethodName(2), oraex.Message);
460
                return false;
461
            }
462
        }
463
        #endregion
464

  
465
        #region OracleDataReaderより構造体へセットする
466
        /// <summary>
467
        /// OracleDataReaderより構造体へセットする
468
        /// </summary>
469
        /// <param name="reader">OracleDataReader</param>
470
        /// <param name="wrk">構造体</param>
471
        public void Reader2Struct(object[] objwrk, ref CostomerRegist wrk)
472
        {
473
            try
474
            {
475
                // データ取得
476
                wrk.PetitionNo = int.Parse(objwrk[(int)DataColumn.PetitionNo].ToString());
477
                wrk.SeqNo = int.Parse(objwrk[(int)DataColumn.SeqNo].ToString());
478
                wrk.PetitionPeriod = int.Parse(objwrk[(int)DataColumn.PetitionPeriod].ToString());
479
                wrk.PersonCode = int.Parse(objwrk[(int)DataColumn.PersonCode].ToString());
480
                wrk.OrderFlg = int.Parse(objwrk[(int)DataColumn.OrderFlg].ToString());
481
                wrk.PetitionDate = DateTime.Parse(objwrk[(int)DataColumn.PetitionDate].ToString());
482
                wrk.CorporateStatusName = objwrk[(int)DataColumn.CorporateStatusName].ToString();
483
                wrk.CorporateStatusPoint = int.Parse(objwrk[(int)DataColumn.CorporateStatusPoint].ToString());
484

  
485
                wrk.OrderersName1 = objwrk[(int)DataColumn.OrderersName1].ToString();
486
                wrk.OrderersName2 = objwrk[(int)DataColumn.OrderersName2].ToString();
487
                wrk.DepartmentName = objwrk[(int)DataColumn.DepartmentName].ToString();
488
                wrk.ChargePersonName = objwrk[(int)DataColumn.ChargePersonName].ToString();
489
                wrk.ZipCode = objwrk[(int)DataColumn.ZipCode].ToString();
490
                wrk.Address1 = objwrk[(int)DataColumn.Address1].ToString();
491
                wrk.Address2 = objwrk[(int)DataColumn.Address2].ToString();
492
                wrk.Address3 = objwrk[(int)DataColumn.Address3].ToString();
493
                wrk.PhoneNumber = objwrk[(int)DataColumn.PhoneNumber].ToString();
494
                wrk.FaxNumber = objwrk[(int)DataColumn.FaxNumber].ToString();
495
                wrk.MailAddress = objwrk[(int)DataColumn.MailAddress].ToString();
496
                wrk.Note = objwrk[(int)DataColumn.Note].ToString();
497
                wrk.OrderCotegory = int.Parse(objwrk[(int)DataColumn.OrderCotegory].ToString());
498
                wrk.OrderNo = int.Parse(objwrk[(int)DataColumn.OrderNo].ToString());
499

  
500
                wrk.EntryDate = DateTime.Parse(objwrk[(int)DataColumn.EntryDate].ToString());
501
                wrk.UpdateDate = DateTime.Parse(objwrk[(int)DataColumn.UpdateDate].ToString());
502
            }
503
            catch (OracleException oraex)
504
            {
505
                logger.ErrorFormat("オラクルエラー:{0}:{1}", CommonMotions.GetMethodName(2), oraex.Message);
506
            }
507
            catch (Exception ex)
508
            {
509
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(2), ex.Message);
510
            }
511
        }
512
        #endregion
513

  
514
        #region 登録申請コードの最大値を取得する
515
        /// <summary>
516
        /// 登録申請コードの最大値を取得する
517
        /// </summary>
518
        /// <param name="AddSQLString"></param>
519
        /// <param name="bConnect"></param>
520
        /// <returns></returns>
521
        public int SelectMaxSeqNo(string AddSQLString, bool bConnect = true)
522
        {
523
            //Oracle インターフェース
524
            string strcmd = "";
525
            ArrayList arData = new ArrayList();
526
            int iRet = 0;
527
            try
528
            {
529
                // SQL作成
530
                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM CostomerRegist" + AddSQLString;
531

  
532
                // SQL実行
533
                if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
534

  
535
                // データセット
536
                foreach (object[] objwrk in arData)
537
                {
538
                    if (objwrk[0].ToString().Equals("null"))
539
                        iRet = 0;
540
                    else
541
                        iRet = int.Parse(objwrk[0].ToString());
542
                }
543
            }
544
            catch (Exception ex)
545
            {
546
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
547
            }
548

  
549
            return iRet;
550
        }
551
        #endregion
552

  
553
        #region 主キー検索の文字列を返す
554
        /// <summary>
555
        /// 主キー検索の文字列を返す
556
        /// </summary>
557
        /// <param name="ItemCode">大工種キー</param>
558
        /// <returns>Where文字列</returns>
559
        public string CreatePrimarykeyString(int PetitionNo, int SeqNo = 0)
560
        {
561
            string strWork = "";
562
            try
563
            {
564
                strWork = string.Format(" WHERE PetitionNo = {0}", PetitionNo);
565
                if (SeqNo != 0)
566
                    strWork += string.Format(" AND SeqNo = {0}", SeqNo);
567
            }
568
            catch (Exception ex)
569
            {
570
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strWork);
571
            }
572

  
573
            return strWork;
574
        }
575
        #endregion
576
    }
577
}
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMOrderers.cs
37 37
            OrderCotegory = 0,
38 38
            OrderersCode,
39 39
            DisplayOrder,
40
            OrderFlg,
40 41
            CorporateStatusName,
41 42
            CorporateStatusPoint,
42 43
            OrderersName1,
43 44
            OrderersName2,
45
            DepartmentName,
46
            ChargePersonName,
44 47
            ZipCode,
45 48
            Address1,
46 49
            Address2,
47 50
            Address3,
48 51
            PhoneNumber,
49 52
            FaxNumber,
53
            MailAddress,
50 54
            Note,
51 55
            DeleteFlg,
52 56
            EntryDate,
......
66 70

  
67 71
        #endregion
68 72

  
69
        #region パブリックメソッド
70

  
73
        #region 発注者マスタ検索SQL作成
71 74
        /// <summary>
72
        /// 発注者マスタ検索
75
        /// 発注者マスタ検索SQL作成
73 76
        /// </summary>
74 77
        /// <param name="AddSQLString">検索条件SQL文字列</param>
75 78
        /// <param name="data">発注者マスタデータ</param>
......
80 83
            strcmd += "  OrderCotegory";
81 84
            strcmd += " ,OrderersCode";
82 85
            strcmd += " ,DisplayOrder";
86
            strcmd += " ,OrderFlg";
83 87
            strcmd += " ,CorporateStatusName";
84 88
            strcmd += " ,CorporateStatusPoint";
85 89
            strcmd += " ,OrderersName1";
86 90
            strcmd += " ,OrderersName2";
91
            strcmd += " ,DepartmentName";
92
            strcmd += " ,ChargePersonName";
87 93
            strcmd += " ,ZipCode";
88 94
            strcmd += " ,Address1";
89 95
            strcmd += " ,Address2";
90 96
            strcmd += " ,Address3";
91 97
            strcmd += " ,PhoneNumber";
92 98
            strcmd += " ,FaxNumber";
99
            strcmd += " ,MailAddress";
93 100
            strcmd += " ,Note";
94 101
            strcmd += " ,DeleteFlg";
95 102

  
......
99 106

  
100 107
            return strcmd;
101 108
        }
109
        #endregion
110

  
111
        #region 発注者マスタ検索(複数)
112
        /// <summary>
113
        /// 発注者マスタ検索(複数)
114
        /// </summary>
115
        /// <returns></returns>
102 116
        public bool SelectAction(string AddSQLString, ref List<OrderersMaster> data, bool bConnect = true)
103 117
        {
104 118
            //Oracle インターフェース
......
129 143
                return false;
130 144
            }
131 145
        }
146
        #endregion
147

  
148
        #region 発注者マスタ検索(1件)
149
        /// <summary>
150
        /// 発注者マスタ検索(1件)
151
        /// </summary>
152
        /// <returns></returns>
132 153
        public bool SelectAction(string AddSQLString, ref OrderersMaster data, bool bConnect = true)
133 154
        {
134 155
            //Oracle インターフェース
......
159 180
                return false;
160 181
            }
161 182
        }
183
        #endregion
162 184

  
185
        #region 発注者マスタ追加(複数)
163 186
        /// <summary>
164
        /// 発注者マスタ追加
187
        /// 発注者マスタ追加(複数)
165 188
        /// </summary>
166 189
        /// <param name="data">発注者マスタデータ</param>
167 190
        /// <returns>true:成功 false:失敗</returns>
......
170 193
            string strcmd = "";
171 194
            try
172 195
            {
173

  
174 196
                foreach (OrderersMaster work in data)
175 197
                {
176
                    strcmd = "INSERT INTO OrderersMaster";
198
                    if (!InsertAction(work, bConnect)) return false;
199
                }
200
                return true;
201
            }
202
            catch (Exception ex)
203
            {
204
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
205
                return false;
206
            }
207
        }
208
        #endregion
177 209

  
178
                    strcmd += " VALUES (";
210
        #region 発注者マスタ追加(1件)
211
        /// <summary>
212
        /// 発注者マスタ追加(1件)
213
        /// </summary>
214
        /// <param name="data">発注者マスタデータ</param>
215
        /// <returns>true:成功 false:失敗</returns>
216
        public bool InsertAction(OrderersMaster work, bool bConnect = true)
217
        {
218
            string strcmd = "";
219
            try
220
            {
179 221

  
180
                    strcmd += string.Format("  {0}", work.OrderCotegory);
181
                    strcmd += string.Format(", {0}", work.OrderersCode);
182
                    strcmd += string.Format(", {0}", work.DisplayOrder);
183
                    strcmd += ", '" + work.CorporateStatusName + "'";
184
                    strcmd += string.Format(", {0}", work.CorporateStatusPoint);
185
                    strcmd += ", '" + work.OrderersName1 + "'";
186
                    strcmd += ", '" + work.OrderersName2 + "'";
187
                    strcmd += ", '" + work.ZipCode + "'";
188
                    strcmd += ", '" + work.Address1 + "'";
189
                    strcmd += ", '" + work.Address2 + "'";
190
                    strcmd += ", '" + work.Address3 + "'";
191
                    strcmd += ", '" + work.PhoneNumber + "'";
192
                    strcmd += ", '" + work.FaxNumber + "'";
193
                    strcmd += ", '" + work.Note + "'";
194
                    strcmd += string.Format(", {0}", work.DeleteFlg);
222
                strcmd = "INSERT INTO OrderersMaster";
223
                strcmd += " (";
195 224

  
196
                    strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
197
                    strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
198
                    strcmd = strcmd + ")";
225
                bool bFirst = true;
226
                foreach (var gender in Enum.GetValues(typeof(OrderersColumn)))
227
                {
228
                    if (!bFirst) strcmd += " ,";
229
                    strcmd += gender.ToString();
230
                    bFirst = false;
231
                }
199 232

  
200
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
201
                }
233
                strcmd += ") VALUES (";
234

  
235
                strcmd += string.Format("  {0}", work.OrderCotegory);
236
                strcmd += string.Format(", {0}", work.OrderersCode);
237
                strcmd += string.Format(", {0}", work.DisplayOrder);
238
                strcmd += string.Format(", {0}", work.OrderFlg);
239
                strcmd += string.Format(",'{0}'", work.CorporateStatusName);
240
                strcmd += string.Format(", {0}", work.CorporateStatusPoint);
241
                strcmd += string.Format(",'{0}'", work.OrderersName1);
242
                strcmd += string.Format(",'{0}'", work.OrderersName2);
243
                strcmd += string.Format(",'{0}'", work.DepartmentName);
244
                strcmd += string.Format(",'{0}'", work.ChargePersonName);
245
                strcmd += string.Format(",'{0}'", work.ZipCode);
246
                strcmd += string.Format(",'{0}'", work.Address1);
247
                strcmd += string.Format(",'{0}'", work.Address2);
248
                strcmd += string.Format(",'{0}'", work.Address3);
249
                strcmd += string.Format(",'{0}'", work.PhoneNumber);
250
                strcmd += string.Format(",'{0}'", work.FaxNumber);
251
                strcmd += string.Format(",'{0}'", work.Note);
252
                strcmd += string.Format(",'{0}'", work.MailAddress);
253
                strcmd += string.Format(", {0}", work.DeleteFlg);
254

  
255
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
256
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
257
                strcmd = strcmd + ")";
258

  
259
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
260

  
202 261
                return true;
203 262
            }
204 263
            catch (Exception ex)
......
207 266
                return false;
208 267
            }
209 268
        }
269
        #endregion
210 270

  
271
        #region 発注者マスタ更新
211 272
        /// <summary>
212 273
        /// 発注者マスタ更新
213 274
        /// </summary>
......
225 286
                strcmd += " SET";
226 287

  
227 288
                strcmd += string.Format("  OrderCotegory = {0}", data.OrderCotegory);
228
                strcmd += string.Format(" ,OrderersCode = {0}", data.OrderersCode);
229
                strcmd += string.Format(" ,DisplayOrder = {0}", data.DisplayOrder);
230
                strcmd += " ,CorporateStatusName = '" + data.CorporateStatusName + "'";
231
                strcmd += string.Format(" ,CorporateStatusPoint = {0}", data.CorporateStatusPoint);
232
                strcmd += " ,OrderersName1 = '" + data.OrderersName1 + "'";
233
                strcmd += " ,OrderersName2 = '" + data.OrderersName2 + "'";
234
                strcmd += " ,ZipCode = '" + data.ZipCode + "'";
235
                strcmd += " ,Address1 = '" + data.Address1 + "'";
236
                strcmd += " ,Address2 = '" + data.Address2 + "'";
237
                strcmd += " ,Address3 = '" + data.Address3 + "'";
238
                strcmd += " ,PhoneNumber = '" + data.PhoneNumber + "'";
239
                strcmd += " ,FaxNumber = '" + data.FaxNumber + "'";
240
                strcmd += " ,Note = '" + data.Note + "'";
241
                strcmd += string.Format(" ,DeleteFlg = {0}", data.DeleteFlg);
289
                strcmd += string.Format(", OrderersCode = {0}", data.OrderersCode);
290
                strcmd += string.Format(", DisplayOrder = {0}", data.DisplayOrder);
291
                strcmd += string.Format(", OrderFlg = {0}", data.OrderFlg);
292
                strcmd += string.Format(", CorporateStatusName = '{0}'", data.CorporateStatusName);
293
                strcmd += string.Format(", CorporateStatusPoint = {0}", data.CorporateStatusPoint);
294
                strcmd += string.Format(", OrderersName1 = '{0}'", data.OrderersName1);
295
                strcmd += string.Format(", OrderersName2 = '{0}'", data.OrderersName2);
296
                strcmd += string.Format(", DepartmentName = '{0}'", data.DepartmentName);
297
                strcmd += string.Format(", ChargePersonName = '{0}'", data.ChargePersonName);
298
                strcmd += string.Format(", ZipCode = '{0}'", data.ZipCode);
299
                strcmd += string.Format(", Address1 = '{0}'", data.Address1);
300
                strcmd += string.Format(", Address2 = '{0}'", data.Address2);
301
                strcmd += string.Format(", Address3 = '{0}'", data.Address3);
302
                strcmd += string.Format(", PhoneNumber = '{0}'", data.PhoneNumber);
303
                strcmd += string.Format(", FaxNumber = '{0}'", data.FaxNumber);
304
                strcmd += string.Format(", Note = '{0}'", data.Note);
305
                strcmd += string.Format(", MailAddress = '{0}'", data.MailAddress);
306
                strcmd += string.Format(", DeleteFlg = {0}", data.DeleteFlg);
242 307

  
243 308
                strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
244 309
                strcmd += AddSQLString;
......
253 318
                return false;
254 319
            }
255 320
        }
321
        #endregion
256 322

  
257

  
323
        #region 発注者マスタ削除
258 324
        /// <summary>
259 325
        /// 発注者マスタ削除
260 326
        /// </summary>
......
279 345
                return false;
280 346
            }
281 347
        }
348
        #endregion
282 349

  
350
        #region OracleDataReaderより構造体へセットする
283 351
        /// <summary>
284 352
        /// OracleDataReaderより構造体へセットする
285 353
        /// </summary>
......
293 361
                wrk.OrderCotegory = int.Parse(objwrk[(int)OrderersColumn.OrderCotegory].ToString());
294 362
                wrk.OrderersCode = int.Parse(objwrk[(int)OrderersColumn.OrderersCode].ToString());
295 363
                wrk.DisplayOrder = int.Parse(objwrk[(int)OrderersColumn.DisplayOrder].ToString());
364
                wrk.OrderFlg = int.Parse(objwrk[(int)OrderersColumn.OrderFlg].ToString());
296 365
                wrk.CorporateStatusName = objwrk[(int)OrderersColumn.CorporateStatusName].ToString();
297 366
                wrk.CorporateStatusPoint = int.Parse(objwrk[(int)OrderersColumn.CorporateStatusPoint].ToString());
298 367

  
299 368
                wrk.OrderersName1 = objwrk[(int)OrderersColumn.OrderersName1].ToString();
300 369
                wrk.OrderersName2 = objwrk[(int)OrderersColumn.OrderersName2].ToString();
370
                wrk.DepartmentName = objwrk[(int)OrderersColumn.DepartmentName].ToString();
371
                wrk.ChargePersonName = objwrk[(int)OrderersColumn.ChargePersonName].ToString();
301 372
                wrk.ZipCode = objwrk[(int)OrderersColumn.ZipCode].ToString();
302 373
                wrk.Address1 = objwrk[(int)OrderersColumn.Address1].ToString();
303 374
                wrk.Address2 = objwrk[(int)OrderersColumn.Address2].ToString();
304 375
                wrk.Address3 = objwrk[(int)OrderersColumn.Address3].ToString();
305 376
                wrk.PhoneNumber = objwrk[(int)OrderersColumn.PhoneNumber].ToString();
306 377
                wrk.FaxNumber = objwrk[(int)OrderersColumn.FaxNumber].ToString();
378
                wrk.MailAddress = objwrk[(int)OrderersColumn.MailAddress].ToString();
307 379
                wrk.Note = objwrk[(int)OrderersColumn.Note].ToString();
308 380
                wrk.DeleteFlg = int.Parse(objwrk[(int)OrderersColumn.DeleteFlg].ToString());
309 381

  
......
319 391
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(2), ex.Message);
320 392
            }
321 393
        }
322

  
323

  
324 394
        #endregion
325 395

  
326
        #region パブリックメソッド(特殊処理)
327

  
396
        #region 発注者コードの最大値を取得する
328 397
        /// <summary>
329 398
        /// 発注者コードの最大値を取得する
330 399
        /// </summary>
......
362 431

  
363 432
            return iRet;
364 433
        }
434
        #endregion
365 435

  
436
        #region 主キー検索の文字列を返す
366 437
        /// <summary>
367 438
        /// 主キー検索の文字列を返す
368 439
        /// </summary>
......
384 455

  
385 456
            return strWork;
386 457
        }
458
        #endregion
459

  
460
        #region 指定表示順の最大値を取得する
387 461
        /// <summary>
388 462
        /// 指定表示順の最大値を取得する
389 463
        /// </summary>
......
421 495

  
422 496
            return iRet;
423 497
        }
498
        #endregion
499

  
500
        #region 指定レコードの表示順を更新する
424 501
        /// <summary>
425 502
        /// 指定レコードの表示順を更新する
426 503
        /// </summary>
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPersonApproval.cs
42 42
            PetitionApprovalDate,
43 43
            ApprovalLimitDates,
44 44
            ApprovalStatus,
45
            ENTRYDATE,
46
            UPDATEDATE
45
            EntryDate,
46
            UpdateDate
47 47
        }
48 48
        #endregion
49 49

  
......
205 205
            {
206 206

  
207 207
                strcmd = "INSERT INTO PersonApproval";
208
                strcmd += " (PersonCode";
209
                strcmd += ",ApprovalCode";
210
                strcmd += ",OrderDate";
211
                strcmd += ",OrderNo";
212
                strcmd += ",SeqNo";
213
                strcmd += ",PersonCodeApproval";
214
                strcmd += ",PetitionApprovalDate";
215
                strcmd += ",ApprovalLimitDates";
216
                strcmd += ",ApprovalStatus";
217
                strcmd += ",EntryDate";
218
                strcmd += ",UpdateDate)";
219 208

  
220
                strcmd += " VALUES (";
209
                strcmd += " (";
210
                bool bFirst = true;
211
                foreach (var gender in Enum.GetValues(typeof(ColumnName)))
212
                {
213
                    if (!bFirst) strcmd += " ,";
214
                    strcmd += gender.ToString();
215
                    bFirst = false;
216
                }
217
                strcmd += ") VALUES (";
221 218

  
222 219
                strcmd += string.Format("  {0}", data.PersonCode.ToString());
223 220
                strcmd += string.Format(", {0}", data.ApprovalCode.ToString());
......
395 392
                wrk.ApprovalLimitDates = DateTime.Parse(objwrk[(int)ColumnName.ApprovalLimitDates].ToString());
396 393
                wrk.ApprovalStatus = int.Parse(objwrk[(int)ColumnName.ApprovalStatus].ToString());
397 394

  
398
                wrk.EntryDate = DateTime.Parse(objwrk[(int)ColumnName.ENTRYDATE].ToString());
399
                wrk.UpdateDate = DateTime.Parse(objwrk[(int)ColumnName.UPDATEDATE].ToString());
395
                wrk.EntryDate = DateTime.Parse(objwrk[(int)ColumnName.EntryDate].ToString());
396
                wrk.UpdateDate = DateTime.Parse(objwrk[(int)ColumnName.UpdateDate].ToString());
400 397
            }
401 398
            catch (OracleException oraex)
402 399
            {
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPersonApprovalCommnet.cs
199 199
            string strcmd = "";
200 200
            try
201 201
            {
202
                    strcmd = "INSERT INTO PersonApprovalComment";
203
                    strcmd += " (PersonCode";
204
                    strcmd += ",ApprovalCode";
205
                    strcmd += ",OrderDate";
206
                    strcmd += ",OrderNo";
207
                    strcmd += ",CommentNo";
208
                    strcmd += ",ParentNo";
209
                    strcmd += ",ApproValComment";
210
                    strcmd += ",EntryDate";
211
                    strcmd += ",UpdateDate)";
202
                strcmd = "INSERT INTO PersonApprovalComment";
212 203

  
213
                    strcmd += " VALUES (";
204
                strcmd += " (";
205
                bool bFirst = true;
206
                foreach (var gender in Enum.GetValues(typeof(ColumnName)))
207
                {
208
                    if (!bFirst) strcmd += " ,";
209
                    strcmd += gender.ToString();
210
                    bFirst = false;
211
                }
214 212

  
215
                    strcmd += string.Format("  {0}", data.PersonCode.ToString());
216
                    strcmd += string.Format(", {0}", data.ApprovalCode.ToString());
217
                    strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderDate.ToShortDateString());
218
                    strcmd += string.Format(", {0}", data.OrderNo.ToString());
219
                    strcmd += string.Format(", {0}", data.CommentNo.ToString());
220
                    strcmd += string.Format(", {0}", data.ParentNo.ToString());
221
                    strcmd += string.Format(", '{0}'", data.ApproValComment.ToString());
213
                strcmd += ") VALUES (";
222 214

  
223
                    strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
224
                    strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
225
                    strcmd = strcmd + ")";
215
                strcmd += string.Format("  {0}", data.PersonCode.ToString());
216
                strcmd += string.Format(", {0}", data.ApprovalCode.ToString());
217
                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')", data.OrderDate.ToShortDateString());
218
                strcmd += string.Format(", {0}", data.OrderNo.ToString());
219
                strcmd += string.Format(", {0}", data.CommentNo.ToString());
220
                strcmd += string.Format(", {0}", data.ParentNo.ToString());
221
                strcmd += string.Format(", '{0}'", data.ApproValComment.ToString());
226 222

  
227
                    if (!ExecuteNonQuery(strcmd, bConnect)) return false;
223
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
224
                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
225
                strcmd = strcmd + ")";
228 226

  
227
                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
228

  
229 229
                return true;
230 230
            }
231 231
            catch (Exception ex)
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProcessApproval.cs
42 42
            ApprovalLimitDates,
43 43
            ApprovalStatus,
44 44
            InputComment,
45
            ENTRY_DATE,
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

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