プロジェクト

全般

プロフィール

リビジョン 30

山内約8年前に追加

システムエラー(double⇒int不正)及びMySql対応(update分での副問合せ方法修正)

差分を表示:

branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs
601 601
                // 対象データが存在すれば更新する
602 602
                strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO SET CONSTRUCTIONSTATUSFLG = {0}", iCode1);
603 603
                strSQL += " WHERE CONSTRUCTIONCODE IN";
604
                strSQL += " (SELECT CONSTRUCTIONCODE from ("; // MySql対応(Updateの副問合せ対応)
604 605
                strSQL += " (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO WHERE DATE(ESTIMATESSUBMITTEDDATE) != DATE_FORMAT('0001/01/01','%Y/%m/%d')";
605 606
                strSQL += string.Format(" AND DATE(ESTIMATESSUBMITTEDDATE + {0})", s_NonOrderDay);
606 607
                strSQL += string.Format(" < DATE_FORMAT('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString());
607 608
                strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3);
608 609
                strSQL += string.Format(" AND ESTIMATETYPE IN ({0}, {1}))", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget);
610
                strSQL += " ) AS TMP"; // MySql対応(Updateの副問合せ対応)
609 611
                if (!BaseDB.ExecuteNonQuery(strSQL))
610 612
                {
611 613
                    logger.ErrorFormat("工事基本情報更新エラー 非受注案件移行処理失敗:{0}:{1}", CommonMotions.GetMethodName(), strSQL);
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs
419 419
                wrk.CreatorCosts = double.Parse(objwrk[(int)ConstructionBudgetColumn.CreatorCosts].ToString());             // 作成者給与
420 420
                wrk.AssistantCode = int.Parse(objwrk[(int)ConstructionBudgetColumn.AssistantCode].ToString());              // 副担当者コード
421 421
                wrk.AssistantName = objwrk[(int)ConstructionBudgetColumn.AssistantName].ToString();                         // 副担当者名
422
                wrk.AssistantCosts = int.Parse(objwrk[(int)ConstructionBudgetColumn.AssistantCosts].ToString());            // 副担当者給与
422
                //wrk.AssistantCosts = int.Parse(objwrk[(int)ConstructionBudgetColumn.AssistantCosts].ToString());            // 副担当者給与
423
                wrk.AssistantCosts = double.Parse(objwrk[(int)ConstructionBudgetColumn.AssistantCosts].ToString());            // 副担当者給与
423 424
                wrk.InstructorCode = int.Parse(objwrk[(int)ConstructionBudgetColumn.InstructorCode].ToString());            // 工事指導員コード
424 425
                wrk.InstructorName = objwrk[(int)ConstructionBudgetColumn.InstructorName].ToString();                       // 工事指導員名
425 426
                wrk.InstructorCosts = double.Parse(objwrk[(int)ConstructionBudgetColumn.InstructorCosts].ToString());       // 工事指導員給与
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrder.cs
418 418

  
419 419
                wrk.PrePayments = int.Parse(objwrk[(int)PurchaseOrderColumn.PrePayments].ToString());                       // 前金払
420 420
                wrk.PrePaymentsDays = int.Parse(objwrk[(int)PurchaseOrderColumn.PrePaymentsDays].ToString());               // 前金払日数
421
                wrk.PrePaymentsPrice = int.Parse(objwrk[(int)PurchaseOrderColumn.PrePaymentsPrice].ToString());             // 前金払金額
421
                //wrk.PrePaymentsPrice = int.Parse(objwrk[(int)PurchaseOrderColumn.PrePaymentsPrice].ToString());             // 前金払金額
422
                wrk.PrePaymentsPrice = double.Parse(objwrk[(int)PurchaseOrderColumn.PrePaymentsPrice].ToString());             // 前金払金額
422 423
                wrk.PartialPayment = int.Parse(objwrk[(int)PurchaseOrderColumn.PartialPayment].ToString());                 // 部分払
423 424
                wrk.PartialPaymentMounth = int.Parse(objwrk[(int)PurchaseOrderColumn.PartialPaymentMounth].ToString());     // 部分払締切月
424 425
                wrk.PartialPaymentDay1 = int.Parse(objwrk[(int)PurchaseOrderColumn.PartialPaymentDay1].ToString());         // 部分払締切日
425 426
                wrk.PartialPaymentDay2 = int.Parse(objwrk[(int)PurchaseOrderColumn.PartialPaymentDay2].ToString());         // 部分払支払日
426
                wrk.PartialPaymentPrice = int.Parse(objwrk[(int)PurchaseOrderColumn.PartialPaymentPrice].ToString());       // 部分払金額
427
                //wrk.PartialPaymentPrice = int.Parse(objwrk[(int)PurchaseOrderColumn.PartialPaymentPrice].ToString());       // 部分払金額
428
                wrk.PartialPaymentPrice = double.Parse(objwrk[(int)PurchaseOrderColumn.PartialPaymentPrice].ToString());       // 部分払金額
427 429
                wrk.CompletionPayment = int.Parse(objwrk[(int)PurchaseOrderColumn.CompletionPayment].ToString());           // 引渡し時の支払
428 430
                wrk.CompletionPaymentDays = int.Parse(objwrk[(int)PurchaseOrderColumn.CompletionPaymentDays].ToString());   // 引渡し時の支払日数
429
                wrk.CompletionPaymentPrice = int.Parse(objwrk[(int)PurchaseOrderColumn.CompletionPaymentPrice].ToString()); // 引渡し時の支払金額
431
                //wrk.CompletionPaymentPrice = int.Parse(objwrk[(int)PurchaseOrderColumn.CompletionPaymentPrice].ToString()); // 引渡し時の支払金額
432
                wrk.CompletionPaymentPrice = double.Parse(objwrk[(int)PurchaseOrderColumn.CompletionPaymentPrice].ToString()); // 引渡し時の支払金額
430 433

  
431 434
                wrk.LeadEngineerCode = int.Parse(objwrk[(int)PurchaseOrderColumn.LeadEngineerCode].ToString());             // 主任技術者コード
432 435
                wrk.LeadEngineerName = objwrk[(int)PurchaseOrderColumn.LeadEngineerName].ToString();                        // 主任技術者名

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