リビジョン 407
確認メッセージの?。を?に変更
工事種別・構成関連マスタ変更/メンテナンス画面追加
種別・構成単価マスタ変更
承認時、最高責任者が経理区分によってデータ編集できないバグを修正
製品版メニューを変更
trunk/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs | ||
---|---|---|
758 | 758 |
} |
759 | 759 |
#endregion |
760 | 760 |
|
761 |
#region 見積書入力:経費フラグ |
|
762 |
/// <summary> |
|
763 |
/// 見積書入力:Other:経費外 Expenses:経費対象 |
|
764 |
/// </summary> |
|
765 |
public enum MyExpenses |
|
766 |
{ |
|
767 |
/// <summary> |
|
768 |
/// 0:経費外 |
|
769 |
/// </summary> |
|
770 |
Other = 0, |
|
771 |
/// <summary> |
|
772 |
/// 1:自社経費 |
|
773 |
/// </summary> |
|
774 |
Expenses, |
|
775 |
} |
|
776 |
#endregion |
|
777 |
|
|
778 | 761 |
#region 見積書入力:入力フラグ |
779 | 762 |
/// <summary> |
780 | 763 |
/// 見積書入力:Protect:入力不可 Input:入力可 |
... | ... | |
792 | 775 |
} |
793 | 776 |
#endregion |
794 | 777 |
|
795 |
#region 見積書入力:下位項目フラグ |
|
796 |
/// <summary> |
|
797 |
/// 見積書入力:0:下位項目なし 1:下位項目有 |
|
798 |
/// </summary> |
|
799 |
public enum SubItems |
|
800 |
{ |
|
801 |
/// <summary> |
|
802 |
/// 0:下位項目なし |
|
803 |
/// </summary> |
|
804 |
NoItem = 0, |
|
805 |
/// <summary> |
|
806 |
/// 1:下位項目有 |
|
807 |
/// </summary> |
|
808 |
ExistItem, |
|
809 |
} |
|
810 |
#endregion |
|
811 |
|
|
812 | 778 |
#region 協力業者サブフォーム等:自社施工・自社経費使用定義 |
813 | 779 |
/// <summary> |
814 | 780 |
/// 自社系定義番号 |
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
133 | 133 |
BankBusinessDay = 130, // 130:銀行営業日マスタ |
134 | 134 |
BudgetCodeSum = 131, // 131:予算書集計コードマスタ |
135 | 135 |
AddressConvert = 132, // 132:郵便番号変換処理 |
136 |
TypeToComp = 133, // 133:工事種別・構成リンクマスタ |
|
136 | 137 |
} |
137 | 138 |
#endregion |
138 | 139 |
|
... | ... | |
223 | 224 |
{ (int)MaintenanceExecuteNo.Component, "大項目登録(構成登録)"}, // 104 |
224 | 225 |
{ (int)MaintenanceExecuteNo.ConstructionItem, "中項目登録(工種登録)"}, // 105 |
225 | 226 |
{ (int)MaintenanceExecuteNo.ConstructionWork, "小項目登録(作業登録)"}, // 106 |
226 |
{ (int)MaintenanceExecuteNo.ComponentLink, "大・中項目関連登録"}, // 107
|
|
227 |
{ (int)MaintenanceExecuteNo.ComponentLink, "大・中項目リンク登録"}, // 107
|
|
227 | 228 |
{ (int)MaintenanceExecuteNo.Unit, "単位登録"}, // 108 |
228 | 229 |
{ (int)MaintenanceExecuteNo.SubContractor, "協力会社登録"}, // 109 |
229 | 230 |
{ (int)MaintenanceExecuteNo.Orderers, "発注者登録"}, // 110 |
... | ... | |
249 | 250 |
{ (int)MaintenanceExecuteNo.BankBusinessDay, "銀行営業日登録"}, // 130 |
250 | 251 |
{ (int)MaintenanceExecuteNo.BudgetCodeSum, "予算書集計コード登録" }, // 131 |
251 | 252 |
{ (int)MaintenanceExecuteNo.AddressConvert, "住所データ変換処理" }, // 132 |
253 |
{ (int)MaintenanceExecuteNo.TypeToComp, "工事種別・大項目リンク登録" },// 132 |
|
252 | 254 |
}; |
253 | 255 |
#endregion |
254 | 256 |
|
... | ... | |
649 | 651 |
|
650 | 652 |
#region マスタメンテ |
651 | 653 |
// ----- マスタメンテ |
652 |
case (int)MaintenanceExecuteNo.System: // 1011:システム管理
|
|
654 |
case (int)MaintenanceExecuteNo.System: // 101:システム管理
|
|
653 | 655 |
MaintenanceExecuteNo_System(m_ProcControlPara[NowPoint]); |
654 | 656 |
break; |
655 |
case (int)MaintenanceExecuteNo.Department: // 1012:部署マスタ
|
|
657 |
case (int)MaintenanceExecuteNo.Department: // 102:部署マスタ
|
|
656 | 658 |
MaintenanceExecuteNo_Department(m_ProcControlPara[NowPoint]); |
657 | 659 |
break; |
658 |
case (int)MaintenanceExecuteNo.PersonInCharge: // 1013:担当者マスタ
|
|
660 |
case (int)MaintenanceExecuteNo.PersonInCharge: // 103:担当者マスタ
|
|
659 | 661 |
MaintenanceExecuteNo_PersonInCharge(m_ProcControlPara[NowPoint]); |
660 | 662 |
break; |
661 |
case (int)MaintenanceExecuteNo.Component: // 1014:大項目マスタ(構成マスタ)
|
|
663 |
case (int)MaintenanceExecuteNo.Component: // 104:大項目マスタ(構成マスタ)
|
|
662 | 664 |
MaintenanceExecuteNo_Component(m_ProcControlPara[NowPoint]); |
663 | 665 |
break; |
664 |
case (int)MaintenanceExecuteNo.ConstructionItem: // 1015:中項目マスタ(工種マスタ)
|
|
666 |
case (int)MaintenanceExecuteNo.ConstructionItem: // 105:中項目マスタ(工種マスタ)
|
|
665 | 667 |
MaintenanceExecuteNo_ConstructionItem(m_ProcControlPara[NowPoint]); |
666 | 668 |
break; |
667 |
case (int)MaintenanceExecuteNo.ConstructionWork: // 1016:小項目マスタ(作業マスタ)
|
|
669 |
case (int)MaintenanceExecuteNo.ConstructionWork: // 106:小項目マスタ(作業マスタ)
|
|
668 | 670 |
MaintenanceExecuteNo_ConstructionWork(m_ProcControlPara[NowPoint]); |
669 | 671 |
break; |
670 |
case (int)MaintenanceExecuteNo.Unit: // 1017:単位マスタ |
|
672 |
case (int)MaintenanceExecuteNo.ComponentLink: // 107:大・中項目関連マスタ |
|
673 |
MaintenanceExecuteNo_ComponentLink(m_ProcControlPara[NowPoint]); |
|
674 |
break; |
|
675 |
case (int)MaintenanceExecuteNo.Unit: // 108:単位マスタ |
|
671 | 676 |
MaintenanceExecuteNo_UnitMaster(m_ProcControlPara[NowPoint]); |
672 | 677 |
break; |
673 |
case (int)MaintenanceExecuteNo.SubContractor: // 1018:協力会社マスタ
|
|
678 |
case (int)MaintenanceExecuteNo.SubContractor: // 109:協力会社マスタ
|
|
674 | 679 |
MaintenanceExecuteNo_SubContractor(m_ProcControlPara[NowPoint]); |
675 | 680 |
break; |
676 |
case (int)MaintenanceExecuteNo.Orderers: // 1019:発注者マスタ
|
|
681 |
case (int)MaintenanceExecuteNo.Orderers: // 110:発注者マスタ
|
|
677 | 682 |
MaintenanceExecuteNo_Orderers(m_ProcControlPara[NowPoint]); |
678 | 683 |
break; |
679 |
case (int)MaintenanceExecuteNo.BusinessType: // 110:法人格マスタ
|
|
684 |
case (int)MaintenanceExecuteNo.BusinessType: // 111:法人格マスタ
|
|
680 | 685 |
MaintenanceExecuteNo_BusinessType(m_ProcControlPara[NowPoint]); |
681 | 686 |
break; |
682 |
//case (int)MaintenanceExecuteNo.Division: // 111:区分マスタ
|
|
683 |
// MaintenanceExecuteNo_Division(m_ProcControlPara[NowPoint]);
|
|
684 |
// break;
|
|
685 |
//case (int)MaintenanceExecuteNo.Expenses: // 112:経費率マスタ
|
|
687 |
case (int)MaintenanceExecuteNo.ApprovalRouteList: // 112:承認経路一覧
|
|
688 |
MaintenanceExecuteNo_ApprovalRoute(m_ProcControlPara[NowPoint]);
|
|
689 |
break; |
|
690 |
//case (int)MaintenanceExecuteNo.Expenses: // 113:経費率マスタ
|
|
686 | 691 |
// MaintenanceExecuteNo_Expenses(m_ProcControlPara[NowPoint]); |
687 | 692 |
// break; |
688 |
case (int)MaintenanceExecuteNo.SubContrItem: // 113:協力会社工種マスタ
|
|
693 |
case (int)MaintenanceExecuteNo.SubContrItem: // 114:協力会社工種マスタ
|
|
689 | 694 |
MaintenanceExecuteNo_SubContractorItem(m_ProcControlPara[NowPoint]); |
690 | 695 |
break; |
691 |
case (int)MaintenanceExecuteNo.Calender: // 114:カレンダーマスタ
|
|
696 |
case (int)MaintenanceExecuteNo.Calender: // 115:カレンダーマスタ
|
|
692 | 697 |
MaintenanceExecuteNo_Calender(m_ProcControlPara[NowPoint]); |
693 | 698 |
break; |
694 |
case (int)MaintenanceExecuteNo.VehicleMaster: // 115:車両マスタ
|
|
699 |
case (int)MaintenanceExecuteNo.VehicleMaster: // 116:車両マスタ
|
|
695 | 700 |
MaintenanceExecuteNo_VehicleMaster(m_ProcControlPara[NowPoint]); |
696 | 701 |
break; |
697 |
case (int)MaintenanceExecuteNo.TermMaster: // 116:期限マスタ
|
|
702 |
case (int)MaintenanceExecuteNo.TermMaster: // 117:期限マスタ
|
|
698 | 703 |
MaintenanceExecuteNo_TermMaster(m_ProcControlPara[NowPoint]); |
699 | 704 |
break; |
700 |
case (int)MaintenanceExecuteNo.SaleSalesGraphData: // 117:売上グラフデータ入力
|
|
705 |
case (int)MaintenanceExecuteNo.SaleSalesGraphData: // 118:売上グラフデータ入力
|
|
701 | 706 |
MaintenanceExecuteNo_SalesGraphData(m_ProcControlPara[NowPoint]); |
702 | 707 |
break; |
703 |
case (int)MaintenanceExecuteNo.ApprovalRouteList: // 118:承認経路マスタ
|
|
708 |
case (int)MaintenanceExecuteNo.ApprovalRoute: // 119:承認経路マスタ
|
|
704 | 709 |
MaintenanceExecuteNo_ApprovalRoute(m_ProcControlPara[NowPoint]); |
705 | 710 |
break; |
706 |
case (int)MaintenanceExecuteNo.ConstructionType: // 119:工事種別マスタ
|
|
711 |
case (int)MaintenanceExecuteNo.ConstructionType: // 120:工事種別マスタ
|
|
707 | 712 |
MaintenanceExecuteNo_ConstructionType(m_ProcControlPara[NowPoint]); |
708 | 713 |
break; |
709 |
case (int)MaintenanceExecuteNo.ComponentLink: // 120:大・中項目関連マスタ |
|
710 |
MaintenanceExecuteNo_ComponentLink(m_ProcControlPara[NowPoint]); |
|
711 |
break; |
|
712 | 714 |
case (int)MaintenanceExecuteNo.AlwaysEmployment: // 121:常雇者マスタ |
713 | 715 |
MaintenanceExecuteNo_AlwaysEmployment(m_ProcControlPara[NowPoint]); |
714 | 716 |
break; |
... | ... | |
742 | 744 |
case (int)MaintenanceExecuteNo.BudgetCodeSum: // 131:予算書集計コードマスタ |
743 | 745 |
MaintenanceExecuteNo_BudgetSumCode(m_ProcControlPara[NowPoint]); |
744 | 746 |
break; |
745 |
case (int)ClsExcute.MaintenanceExecuteNo.AddressConvert: |
|
747 |
case (int)ClsExcute.MaintenanceExecuteNo.AddressConvert: // 132:郵便番号変換処理
|
|
746 | 748 |
MaintenanceExecuteNo_AddressConvert(m_ProcControlPara[NowPoint]); |
747 | 749 |
break; |
750 |
case (int)ClsExcute.MaintenanceExecuteNo.TypeToComp: // 133:工事種別・構成リンクマスタ |
|
751 |
MaintenanceExecuteNo_TypeToComp(m_ProcControlPara[NowPoint]); |
|
752 |
break; |
|
748 | 753 |
|
749 | 754 |
#endregion |
750 | 755 |
|
... | ... | |
3804 | 3809 |
} |
3805 | 3810 |
#endregion |
3806 | 3811 |
|
3812 |
#region 工事種別・構成リンクマスタ |
|
3813 |
/// <summary> |
|
3814 |
/// 工事種別・構成リンクマスタ |
|
3815 |
/// </summary> |
|
3816 |
/// <returns></returns> |
|
3817 |
public static void MaintenanceExecuteNo_TypeToComp(ProcessParameter CurrentPara) |
|
3818 |
{ |
|
3819 |
// 工事種別・構成リンクマスタ |
|
3820 |
FrmCompTypeLink frm = new FrmCompTypeLink(); |
|
3821 |
try |
|
3822 |
{ |
|
3823 |
// 起動・編集フラグ |
|
3824 |
int ProcessNo = (int)MaintenanceExecuteNo.ComponentLink; |
|
3825 |
int EditFlg = (int)CommonDefine.ProcessDataEdit.Reference; |
|
3826 |
if (!ClsSecurityPermission.GetExecutePermission(ProcessNo, ref EditFlg)) |
|
3827 |
{ |
|
3828 |
BackProcess(); |
|
3829 |
return; |
|
3830 |
} |
|
3831 |
if (EditFlg == (int)CommonDefine.ProcessDataEdit.Reference) frm.EditLock = true; |
|
3832 |
|
|
3833 |
frm.ShowDialog(); |
|
3834 |
} |
|
3835 |
catch (Exception ex) |
|
3836 |
{ |
|
3837 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
3838 |
BackProcess(); |
|
3839 |
} |
|
3840 |
finally |
|
3841 |
{ |
|
3842 |
frm.Dispose(); frm = null; |
|
3843 |
} |
|
3844 |
} |
|
3807 | 3845 |
#endregion |
3808 | 3846 |
|
3847 |
#endregion |
|
3848 |
|
|
3809 | 3849 |
#region サブフォーム |
3810 | 3850 |
#region 掲示板メッセージ入力 |
3811 | 3851 |
/// <summary> |
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponentToType.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Collections; |
|
6 |
|
|
7 |
using log4net; |
|
8 |
using MySql.Data.MySqlClient; |
|
9 |
|
|
10 |
using ProcessManagement.DB.MySql; |
|
11 |
using ProcessManagement.DB.Core; |
|
12 |
using ProcessManagement.DataModel; |
|
13 |
|
|
14 |
using ProcessManagement.Common; |
|
15 |
|
|
16 |
namespace ProcessManagement.DB.IOAccess |
|
17 |
{ |
|
18 |
/// <summary> |
|
19 |
/// 工事種別・構成リンクマスタアクセスクラス |
|
20 |
/// </summary> |
|
21 |
public class IOMComponentToType : MySqlProcess |
|
22 |
{ |
|
23 |
#region 定義部 |
|
24 |
/// <summary> |
|
25 |
/// log4netログを使用する |
|
26 |
/// </summary> |
|
27 |
private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
28 |
#endregion |
|
29 |
|
|
30 |
#region 定数 |
|
31 |
/// <summary> |
|
32 |
/// 工事種別・構成リンクマスタフィールド並び |
|
33 |
/// </summary> |
|
34 |
public enum TableColumn |
|
35 |
{ |
|
36 |
TypeCode = 0, |
|
37 |
ComponentCode, |
|
38 |
DisplayOrder, |
|
39 |
EntryDate, |
|
40 |
UpdateDate, |
|
41 |
} |
|
42 |
#endregion |
|
43 |
|
|
44 |
#region コンストラクタ |
|
45 |
/// <summary> |
|
46 |
/// コンストラクタ |
|
47 |
/// </summary> |
|
48 |
/// <param name="ConnectionString"></param> |
|
49 |
public IOMComponentToType() |
|
50 |
: base(DBCommon.Instance.DBConnectString) |
|
51 |
{ |
|
52 |
} |
|
53 |
|
|
54 |
#endregion |
|
55 |
|
|
56 |
#region 工事種別・構成リンクマスタ検索文字列作成 |
|
57 |
/// <summary> |
|
58 |
/// 工事種別・構成リンクマスタ検索文字列作成 |
|
59 |
/// </summary> |
|
60 |
private string CreateSelectSQL() |
|
61 |
{ |
|
62 |
// SQL作成(DateTime型が変換できないのでCharに変換しておく) |
|
63 |
StringBuilder strcmd = new StringBuilder(); |
|
64 |
strcmd.Append("SELECT "); |
|
65 |
|
|
66 |
bool bColFirst = true; |
|
67 |
string strWork = string.Empty; |
|
68 |
foreach (var gender in Enum.GetValues(typeof(TableColumn))) |
|
69 |
{ |
|
70 |
strWork = gender.ToString(); |
|
71 |
if (!bColFirst) strcmd.Append(","); |
|
72 |
if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate")) |
|
73 |
{ |
|
74 |
strcmd.AppendFormat(" DATE_FORMAT({0}, '%Y/%m/%d %H:%i:%s')", strWork); |
|
75 |
} |
|
76 |
else |
|
77 |
{ |
|
78 |
strcmd.AppendFormat(" {0}", strWork); |
|
79 |
} |
|
80 |
bColFirst = false; |
|
81 |
} |
|
82 |
|
|
83 |
strcmd.Append(" FROM ComponentToTypeMaster"); |
|
84 |
|
|
85 |
return strcmd.ToString(); |
|
86 |
} |
|
87 |
#endregion |
|
88 |
|
|
89 |
#region 工事種別・構成リンクマスタ検索(複数) |
|
90 |
/// <summary> |
|
91 |
/// 工事種別・構成リンクマスタ検索(複数) |
|
92 |
/// </summary> |
|
93 |
/// <param name="AddSQLString"></param> |
|
94 |
/// <param name="data"></param> |
|
95 |
/// <param name="bConnect"></param> |
|
96 |
/// <returns></returns> |
|
97 |
public bool SelectAction(string AddSQLString, ref List<ComponentToTypeMaster> data, bool bConnect = true) |
|
98 |
{ |
|
99 |
// インターフェース |
|
100 |
StringBuilder strcmd = new StringBuilder(); |
|
101 |
ArrayList arData = new ArrayList(); |
|
102 |
|
|
103 |
try |
|
104 |
{ |
|
105 |
// SQL作成(DateTime型が変換できないのでCharに変換しておく) |
|
106 |
strcmd.AppendFormat("{0}{1}", CreateSelectSQL(), AddSQLString); |
|
107 |
|
|
108 |
// SQL実行 |
|
109 |
if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false; |
|
110 |
|
|
111 |
// データセット |
|
112 |
foreach (object[] objwrk in arData) |
|
113 |
{ |
|
114 |
ComponentToTypeMaster work = new ComponentToTypeMaster(); |
|
115 |
Reader2Struct(objwrk, ref work); |
|
116 |
data.Add(work); |
|
117 |
} |
|
118 |
|
|
119 |
return true; |
|
120 |
} |
|
121 |
catch (Exception ex) |
|
122 |
{ |
|
123 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
124 |
return false; |
|
125 |
} |
|
126 |
|
|
127 |
} |
|
128 |
#endregion |
|
129 |
|
|
130 |
#region 工事種別・構成リンクマスタ検索(1件) |
|
131 |
/// <summary> |
|
132 |
/// 工事種別・構成リンクマスタ検索(1件) |
|
133 |
/// </summary> |
|
134 |
/// <param name="AddSQLString"></param> |
|
135 |
/// <param name="data"></param> |
|
136 |
/// <param name="bConnect"></param> |
|
137 |
/// <returns></returns> |
|
138 |
public bool SelectAction(string AddSQLString, ref ComponentToTypeMaster data, bool bConnect = true) |
|
139 |
{ |
|
140 |
// インターフェース |
|
141 |
StringBuilder strcmd = new StringBuilder(); |
|
142 |
ArrayList arData = new ArrayList(); |
|
143 |
|
|
144 |
try |
|
145 |
{ |
|
146 |
// SQL作成(DateTime型が変換できないのでCharに変換しておく) |
|
147 |
strcmd.AppendFormat("{0}{1}", CreateSelectSQL(), AddSQLString); |
|
148 |
|
|
149 |
// SQL実行 |
|
150 |
if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false; |
|
151 |
// データ無 |
|
152 |
if (arData.Count == 0) return false; |
|
153 |
|
|
154 |
// データセット |
|
155 |
foreach (object[] objwrk in arData) |
|
156 |
{ |
|
157 |
Reader2Struct(objwrk, ref data); |
|
158 |
break; |
|
159 |
} |
|
160 |
|
|
161 |
return true; |
|
162 |
} |
|
163 |
catch (Exception ex) |
|
164 |
{ |
|
165 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
166 |
return false; |
|
167 |
} |
|
168 |
|
|
169 |
} |
|
170 |
#endregion |
|
171 |
|
|
172 |
#region 工事種別・構成リンクマスタ追加処理(1件) |
|
173 |
/// <summary> |
|
174 |
/// 工事種別・構成リンクマスタ追加(1件) |
|
175 |
/// </summary> |
|
176 |
/// <param name="data">工事種別・構成リンクマスタデータ</param> |
|
177 |
/// <returns>true:成功 false:失敗</returns> |
|
178 |
public bool InsertAction(ComponentToTypeMaster work, bool bConnect = true) |
|
179 |
{ |
|
180 |
StringBuilder strcmd = new StringBuilder(); |
|
181 |
try |
|
182 |
{ |
|
183 |
bool bColFirst = true; |
|
184 |
strcmd.Append("INSERT INTO ComponentToTypeMaster"); |
|
185 |
strcmd.Append(" ("); |
|
186 |
foreach (var gender in Enum.GetValues(typeof(TableColumn))) |
|
187 |
{ |
|
188 |
if (!bColFirst) strcmd.Append(", "); |
|
189 |
strcmd.Append(gender.ToString()); |
|
190 |
bColFirst = false; |
|
191 |
} |
|
192 |
strcmd.Append(") VALUES ("); |
|
193 |
|
|
194 |
strcmd.AppendFormat(" {0}", work.TypeCode); |
|
195 |
strcmd.AppendFormat(", {0}", work.ComponentCode); |
|
196 |
strcmd.AppendFormat(", {0}", work.DisplayOrder); |
|
197 |
|
|
198 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.EntryDate); |
|
199 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.UpdateDate); |
|
200 |
strcmd.Append(")"); |
|
201 |
|
|
202 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
203 |
|
|
204 |
return true; |
|
205 |
} |
|
206 |
catch (Exception ex) |
|
207 |
{ |
|
208 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
209 |
return false; |
|
210 |
} |
|
211 |
} |
|
212 |
#endregion |
|
213 |
|
|
214 |
#region 工事種別・構成リンクマスタ追加(複数) |
|
215 |
/// <summary> |
|
216 |
/// 工事種別・構成リンクマスタ追加(複数) |
|
217 |
/// </summary> |
|
218 |
/// <param name="data">工事種別・構成リンクマスタデータ</param> |
|
219 |
/// <returns>true:成功 false:失敗</returns> |
|
220 |
public bool InsertAction(List<ComponentToTypeMaster> data, bool bConnect = true) |
|
221 |
{ |
|
222 |
StringBuilder strcmd = new StringBuilder(); |
|
223 |
try |
|
224 |
{ |
|
225 |
bool bColFirst = true; |
|
226 |
strcmd.Append("INSERT INTO ComponentToTypeMaster"); |
|
227 |
strcmd.Append(" ("); |
|
228 |
foreach (var gender in Enum.GetValues(typeof(TableColumn))) |
|
229 |
{ |
|
230 |
if (!bColFirst) strcmd.Append(", "); |
|
231 |
strcmd.Append(gender.ToString()); |
|
232 |
bColFirst = false; |
|
233 |
} |
|
234 |
strcmd.Append(") VALUES"); |
|
235 |
|
|
236 |
bool bDataFirst = true; |
|
237 |
foreach (ComponentToTypeMaster work in data) |
|
238 |
{ |
|
239 |
if (bDataFirst) strcmd.Append(" ("); |
|
240 |
else strcmd.Append(", ("); |
|
241 |
|
|
242 |
strcmd.AppendFormat(" {0}", work.TypeCode); |
|
243 |
strcmd.AppendFormat(", {0}", work.ComponentCode); |
|
244 |
strcmd.AppendFormat(", {0}", work.DisplayOrder); |
|
245 |
|
|
246 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.EntryDate); |
|
247 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.UpdateDate); |
|
248 |
strcmd.Append(")"); |
|
249 |
|
|
250 |
bDataFirst = false; |
|
251 |
} |
|
252 |
|
|
253 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
254 |
|
|
255 |
return true; |
|
256 |
} |
|
257 |
catch (Exception ex) |
|
258 |
{ |
|
259 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
260 |
return false; |
|
261 |
} |
|
262 |
} |
|
263 |
#endregion |
|
264 |
|
|
265 |
#region 工事種別・構成リンクマスタ更新 |
|
266 |
/// <summary> |
|
267 |
/// 工事種別・構成リンクマスタ更新 |
|
268 |
/// </summary> |
|
269 |
/// <param name="AddSQLString">更新条件SQL文字列</param> |
|
270 |
/// <param name="data">工事種別・構成リンクマスタデータ</param> |
|
271 |
/// <returns>true:成功 false:失敗</returns> |
|
272 |
public bool UpdateAction(string AddSQLString, ComponentToTypeMaster data, bool bConnect = true) |
|
273 |
{ |
|
274 |
StringBuilder strcmd = new StringBuilder(); |
|
275 |
try |
|
276 |
{ |
|
277 |
strcmd.Append("UPDATE ComponentToTypeMaster"); |
|
278 |
|
|
279 |
strcmd.Append(" SET"); |
|
280 |
|
|
281 |
strcmd.AppendFormat(" ComponentCode = {0}", data.ComponentCode.ToString()); |
|
282 |
strcmd.AppendFormat(",ItemCode = {0}", data.TypeCode.ToString()); |
|
283 |
|
|
284 |
strcmd.Append(", UpdateDate = NOW()"); |
|
285 |
strcmd.Append(AddSQLString); |
|
286 |
|
|
287 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
288 |
|
|
289 |
return true; |
|
290 |
} |
|
291 |
catch (Exception ex) |
|
292 |
{ |
|
293 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
294 |
return false; |
|
295 |
} |
|
296 |
} |
|
297 |
#endregion |
|
298 |
|
|
299 |
#region 工事種別・構成リンクマスタ削除 |
|
300 |
/// <summary> |
|
301 |
/// 工事種別・構成リンクマスタ削除 |
|
302 |
/// </summary> |
|
303 |
/// <param name="AddSQLString">削除条件SQL文字列</param> |
|
304 |
/// <param name="data">工事種別・構成リンクマスタデータ</param> |
|
305 |
/// <returns>true:成功 false:失敗</returns> |
|
306 |
public bool DeleteAction(string AddSQLString, bool bConnect = true) |
|
307 |
{ |
|
308 |
// インターフェース |
|
309 |
StringBuilder strcmd = new StringBuilder(); |
|
310 |
try |
|
311 |
{ |
|
312 |
strcmd.AppendFormat("DELETE FROM ComponentToTypeMaster {0}", AddSQLString); |
|
313 |
|
|
314 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
315 |
|
|
316 |
return true; |
|
317 |
} |
|
318 |
catch (Exception ex) |
|
319 |
{ |
|
320 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
321 |
return false; |
|
322 |
} |
|
323 |
} |
|
324 |
#endregion |
|
325 |
|
|
326 |
#region データセット |
|
327 |
/// <summary> |
|
328 |
/// MySQLDataReaderより構造体へセットする |
|
329 |
/// </summary> |
|
330 |
/// <param name="reader">MySQLDataReader</param> |
|
331 |
/// <param name="wrk">構造体</param> |
|
332 |
public void Reader2Struct(object[] objwrk, ref ComponentToTypeMaster wrk) |
|
333 |
{ |
|
334 |
try |
|
335 |
{ |
|
336 |
// データ取得 |
|
337 |
wrk.TypeCode = CommonMotions.cnvInt(objwrk[(int)TableColumn.TypeCode].ToString()); |
|
338 |
wrk.ComponentCode = CommonMotions.cnvInt(objwrk[(int)TableColumn.ComponentCode].ToString()); |
|
339 |
wrk.DisplayOrder = CommonMotions.cnvInt(objwrk[(int)TableColumn.DisplayOrder].ToString()); |
|
340 |
|
|
341 |
wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString()); |
|
342 |
wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString()); |
|
343 |
} |
|
344 |
catch (MySqlException myex) |
|
345 |
{ |
|
346 |
logger.ErrorFormat("MySQLエラー:{0}:{1}", CommonMotions.GetMethodName(2), myex.Message); |
|
347 |
} |
|
348 |
catch (Exception ex) |
|
349 |
{ |
|
350 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
351 |
} |
|
352 |
} |
|
353 |
|
|
354 |
#endregion |
|
355 |
|
|
356 |
#region 検索の文字列作成 |
|
357 |
/// <summary> |
|
358 |
/// 主キー検索の文字列を返す |
|
359 |
/// </summary> |
|
360 |
/// <param name="TypeCode">大工種キー</param> |
|
361 |
/// <returns>Where文字列</returns> |
|
362 |
public string CreatePrimarykeyString(int TypeCode, int ComponentCode = 0) |
|
363 |
{ |
|
364 |
StringBuilder strWork = new StringBuilder(); |
|
365 |
try |
|
366 |
{ |
|
367 |
strWork.AppendFormat(" Where TypeCode = {0}", TypeCode); |
|
368 |
if (ComponentCode != 0) |
|
369 |
strWork.AppendFormat(" And ComponentCode = {0}", ComponentCode); |
|
370 |
} |
|
371 |
catch (Exception ex) |
|
372 |
{ |
|
373 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strWork); |
|
374 |
} |
|
375 |
|
|
376 |
return strWork.ToString(); |
|
377 |
} |
|
378 |
#endregion |
|
379 |
} |
|
380 |
} |
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpec.cs | ||
---|---|---|
378 | 378 |
} |
379 | 379 |
#endregion |
380 | 380 |
|
381 |
#region 1項目更新処理 |
|
382 |
/// <summary> |
|
383 |
/// 1項目の更新を行う |
|
384 |
/// </summary> |
|
385 |
/// <returns></returns> |
|
386 |
public bool UpdateFeild(int ItemCode, int SpecCode |
|
387 |
, int FeildNo |
|
388 |
, object value |
|
389 |
, bool bConnect = true) |
|
390 |
{ |
|
391 |
StringBuilder strcmd = new StringBuilder(); |
|
392 |
try |
|
393 |
{ |
|
394 |
strcmd.Append("UPDATE ConstructionSpecMaster"); |
|
395 |
|
|
396 |
strcmd.Append(" SET"); |
|
397 |
switch (FeildNo) |
|
398 |
{ |
|
399 |
case (int)TableColumn.ItemCode: |
|
400 |
strcmd.AppendFormat(" ItemCode = {0}", ((int)value).ToString()); |
|
401 |
break; |
|
402 |
case (int)TableColumn.SpecCode: |
|
403 |
strcmd.AppendFormat(" SpecCode = {0}", ((int)value).ToString()); |
|
404 |
break; |
|
405 |
case (int)TableColumn.DisplayOrder: |
|
406 |
strcmd.AppendFormat(" DisplayOrder = {0}", ((int)value).ToString()); |
|
407 |
break; |
|
408 |
case (int)TableColumn.ItemName: |
|
409 |
strcmd.AppendFormat(" ItemName = '{0}'", value.ToString()); |
|
410 |
break; |
|
411 |
case (int)TableColumn.SpecName: |
|
412 |
strcmd.AppendFormat(" SpecName = '{0}'", value.ToString()); |
|
413 |
break; |
|
414 |
case (int)TableColumn.UnitName: |
|
415 |
strcmd.AppendFormat(" UnitName = '{0}'", value.ToString()); |
|
416 |
break; |
|
417 |
case (int)TableColumn.UnitPrice: |
|
418 |
strcmd.AppendFormat(" UnitPrice = {0}", ((double)value).ToString()); |
|
419 |
break; |
|
420 |
case (int)TableColumn.DeleteFlg: |
|
421 |
strcmd.AppendFormat(" DeleteFlg = {0}", ((int)value).ToString()); |
|
422 |
break; |
|
423 |
} |
|
424 |
|
|
425 |
strcmd.Append(", UpdateDate = NOW()"); |
|
426 |
strcmd.Append(CreatePrimarykeyString(ItemCode, SpecCode)); |
|
427 |
|
|
428 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
429 |
|
|
430 |
return true; |
|
431 |
} |
|
432 |
catch (Exception ex) |
|
433 |
{ |
|
434 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
435 |
return false; |
|
436 |
} |
|
437 |
} |
|
438 |
#endregion |
|
439 |
|
|
381 | 440 |
#region MySQLDataReaderより構造体へセットする |
382 | 441 |
/// <summary> |
383 | 442 |
/// MySQLDataReaderより構造体へセットする |
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpecUnitPrice.cs | ||
---|---|---|
33 | 33 |
/// </summary> |
34 | 34 |
public enum TableColumn |
35 | 35 |
{ |
36 |
ComponentCode = 0, |
|
36 |
ConstructionTypeCode = 0, |
|
37 |
ComponentCode, |
|
37 | 38 |
ItemCode, |
38 | 39 |
SpecCode, |
39 |
ConstructionTypeCode, |
|
40 | 40 |
UnitPrice, |
41 | 41 |
EntryDate, |
42 | 42 |
UpdateDate, |
... | ... | |
63 | 63 |
{ |
64 | 64 |
StringBuilder strcmd = new StringBuilder(); |
65 | 65 |
strcmd.Append("SELECT"); |
66 |
strcmd.Append(" ComponentCode"); |
|
66 |
strcmd.Append(" ConstructionTypeCode"); |
|
67 |
strcmd.Append(", ComponentCode"); |
|
67 | 68 |
strcmd.Append(", ItemCode"); |
68 | 69 |
strcmd.Append(", SpecCode"); |
69 |
strcmd.Append(", ConstructionTypeCode"); |
|
70 | 70 |
strcmd.Append(", UnitPrice"); |
71 | 71 |
strcmd.Append(", DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')"); |
72 | 72 |
strcmd.Append(", DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')"); |
... | ... | |
177 | 177 |
} |
178 | 178 |
strcmd.Append(") VALUES ("); |
179 | 179 |
|
180 |
strcmd.AppendFormat(" {0}", data.ComponentCode);
|
|
181 |
strcmd.AppendFormat(",{0}", data.ItemCode);
|
|
182 |
strcmd.AppendFormat(",{0}", data.SpecCode);
|
|
183 |
strcmd.AppendFormat(",{0}", data.TypeCode);
|
|
180 |
strcmd.AppendFormat(" {0}", data.TypeCode);
|
|
181 |
strcmd.AppendFormat(",{0}", data.ComponentCode);
|
|
182 |
strcmd.AppendFormat(",{0}", data.ItemCode);
|
|
183 |
strcmd.AppendFormat(",{0}", data.SpecCode);
|
|
184 | 184 |
|
185 |
strcmd.AppendFormat(",{0}", data.UnitPrice);
|
|
185 |
strcmd.AppendFormat(",{0}", data.UnitPrice); |
|
186 | 186 |
|
187 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.EntryDate);
|
|
188 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.UpdateDate);
|
|
189 |
strcmd.Append(")");
|
|
187 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.EntryDate); |
|
188 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.UpdateDate); |
|
189 |
strcmd.Append(")"); |
|
190 | 190 |
|
191 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
|
|
191 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
192 | 192 |
|
193 | 193 |
return true; |
194 | 194 |
} |
... | ... | |
229 | 229 |
if (bDataFirst) strcmd.Append(" ("); |
230 | 230 |
else strcmd.Append(", ("); |
231 | 231 |
|
232 |
strcmd.AppendFormat(" {0}", work.ComponentCode); |
|
232 |
strcmd.AppendFormat(" {0}", work.TypeCode); |
|
233 |
strcmd.AppendFormat(",{0}", work.ComponentCode); |
|
233 | 234 |
strcmd.AppendFormat(",{0}", work.ItemCode); |
234 | 235 |
strcmd.AppendFormat(",{0}", work.SpecCode); |
235 |
strcmd.AppendFormat(",{0}", work.TypeCode); |
|
236 | 236 |
strcmd.AppendFormat(",{0}", work.UnitPrice); |
237 | 237 |
|
238 | 238 |
strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.EntryDate); |
... | ... | |
271 | 271 |
|
272 | 272 |
strcmd.Append(" SET"); |
273 | 273 |
|
274 |
strcmd.AppendFormat(" ComponentCode = {0}", data.ComponentCode); |
|
274 |
strcmd.AppendFormat(" ConstructionTypeCode = {0}", data.TypeCode); |
|
275 |
strcmd.AppendFormat(",ComponentCode = {0}", data.ComponentCode); |
|
275 | 276 |
strcmd.AppendFormat(",ItemCode = {0}", data.ItemCode); |
276 | 277 |
strcmd.AppendFormat(",SpecCode = {0}", data.SpecCode); |
277 |
strcmd.AppendFormat(",ConstructionTypeCode = {0}", data.TypeCode); |
|
278 | 278 |
|
279 | 279 |
strcmd.AppendFormat(",UnitPrice = {0}", data.UnitPrice); |
280 | 280 |
|
... | ... | |
320 | 320 |
} |
321 | 321 |
#endregion |
322 | 322 |
|
323 |
#region 1項目更新処理 |
|
324 |
/// <summary> |
|
325 |
/// 1項目の更新を行う |
|
326 |
/// </summary> |
|
327 |
/// <returns></returns> |
|
328 |
public bool UpdateFeild(int ConstructionTypeCode |
|
329 |
, int ComponentCode |
|
330 |
, int ItemCode |
|
331 |
, int SpecCode |
|
332 |
, int FeildNo |
|
333 |
, object value |
|
334 |
, bool bConnect = true) |
|
335 |
{ |
|
336 |
StringBuilder strcmd = new StringBuilder(); |
|
337 |
try |
|
338 |
{ |
|
339 |
strcmd.Append("UPDATE ConstructionSpecUnitPrice"); |
|
340 |
|
|
341 |
strcmd.Append(" SET"); |
|
342 |
switch (FeildNo) |
|
343 |
{ |
|
344 |
case (int)TableColumn.ConstructionTypeCode: |
|
345 |
strcmd.AppendFormat(" ConstructionTypeCode = {0}", ((int)value).ToString()); |
|
346 |
break; |
|
347 |
case (int)TableColumn.ComponentCode: |
|
348 |
strcmd.AppendFormat(" ComponentCode = {0}", ((int)value).ToString()); |
|
349 |
break; |
|
350 |
case (int)TableColumn.ItemCode: |
|
351 |
strcmd.AppendFormat(" ItemCode = {0}", ((int)value).ToString()); |
|
352 |
break; |
|
353 |
case (int)TableColumn.SpecCode: |
|
354 |
strcmd.AppendFormat(" SpecCode = {0}", ((int)value).ToString()); |
|
355 |
break; |
|
356 |
case (int)TableColumn.UnitPrice: |
|
357 |
strcmd.AppendFormat(" UnitPrice = {0}", ((double)value).ToString()); |
|
358 |
break; |
|
359 |
|
|
360 |
} |
|
361 |
|
|
362 |
strcmd.Append(", UpdateDate = NOW()"); |
|
363 |
strcmd.Append(CreatePrimarykeyString(ConstructionTypeCode, ComponentCode, ItemCode, SpecCode)); |
|
364 |
|
|
365 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
366 |
|
|
367 |
return true; |
|
368 |
} |
|
369 |
catch (Exception ex) |
|
370 |
{ |
|
371 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
372 |
return false; |
|
373 |
} |
|
374 |
} |
|
375 |
#endregion |
|
376 |
|
|
323 | 377 |
#region データセット |
324 | 378 |
/// <summary> |
325 | 379 |
/// MySQLDataReaderより構造体へセットする |
326 | 380 |
/// </summary> |
327 |
/// <param name="reader">MySQLDataReader</param> |
|
328 |
/// <param name="wrk">構造体</param> |
|
329 | 381 |
public void Reader2Struct(object[] objwrk, ref ConstructionSpecUnitPrice wrk) |
330 | 382 |
{ |
331 | 383 |
try |
332 | 384 |
{ |
333 | 385 |
// データ取得 |
386 |
wrk.TypeCode = int.Parse(objwrk[(int)TableColumn.ConstructionTypeCode].ToString()); |
|
334 | 387 |
wrk.ComponentCode = int.Parse(objwrk[(int)TableColumn.ComponentCode].ToString()); |
335 | 388 |
wrk.ItemCode = int.Parse(objwrk[(int)TableColumn.ItemCode].ToString()); |
336 | 389 |
wrk.SpecCode = int.Parse(objwrk[(int)TableColumn.SpecCode].ToString()); |
337 |
wrk.TypeCode = int.Parse(objwrk[(int)TableColumn.ConstructionTypeCode].ToString()); |
|
338 | 390 |
|
339 | 391 |
wrk.UnitPrice = int.Parse(objwrk[(int)TableColumn.UnitPrice].ToString()); |
340 | 392 |
|
... | ... | |
354 | 406 |
|
355 | 407 |
#endregion |
356 | 408 |
|
357 |
#region 最大値を取得する |
|
358 |
/// <summary> |
|
359 |
/// 最大値を取得する |
|
360 |
/// </summary> |
|
361 |
/// <param name="AddSQLString"></param> |
|
362 |
/// <param name="bConnect"></param> |
|
363 |
/// <returns></returns> |
|
364 |
public int GetMaxWorkCodeCount(string AddSQLString, bool bConnect = true) |
|
365 |
{ |
|
366 |
// インターフェース |
|
367 |
StringBuilder strcmd = new StringBuilder(); |
|
368 |
ArrayList arData = new ArrayList(); |
|
369 |
int iRet = 0; |
|
370 |
try |
|
371 |
{ |
|
372 |
// SQL作成 |
|
373 |
strcmd.AppendFormat("SELECT IFNULL(MAX(SpecCode), 0) FROM ConstructionSpecUnitPrice{0}", AddSQLString); |
|
374 |
|
|
375 |
// SQL実行 |
|
376 |
if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet; |
|
377 |
|
|
378 |
// データセット |
|
379 |
foreach (object[] objwrk in arData) |
|
380 |
{ |
|
381 |
if (objwrk[0].ToString().Equals("")) |
|
382 |
iRet = 0; |
|
383 |
else |
|
384 |
iRet = int.Parse(objwrk[0].ToString()); |
|
385 |
} |
|
386 |
} |
|
387 |
catch (Exception ex) |
|
388 |
{ |
|
389 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
390 |
} |
|
391 |
|
|
392 |
return iRet; |
|
393 |
} |
|
394 |
#endregion |
|
395 |
|
|
396 | 409 |
#region 主キー検索の文字列を返す |
397 | 410 |
/// <summary> |
398 | 411 |
/// 主キー検索の文字列を返す |
399 | 412 |
/// </summary> |
400 |
/// <param name="SpecCode">項目コード</param> |
|
401 |
/// <param name="History">登録履歴</param> |
|
402 |
/// <returns>Where文字列</returns> |
|
403 |
public string CreatePrimarykeyString(int ComponentCode, int ItemCode, int SpecCode, int ConstructionTypeCode = 0) |
|
413 |
public string CreatePrimarykeyString(int ConstructionTypeCode, int ComponentCode, int ItemCode = 0, int SpecCode = 0) |
|
404 | 414 |
{ |
405 | 415 |
StringBuilder strWork = new StringBuilder(); |
406 | 416 |
try |
407 | 417 |
{ |
408 |
strWork.AppendFormat(" Where ComponentCode = {0} And ItemCode = {1} And SpecCode = {2}", ComponentCode, ItemCode, SpecCode); |
|
409 |
if (ConstructionTypeCode != 0) strWork.AppendFormat(" And ConstructionTypeCode = {0}", ConstructionTypeCode); |
|
418 |
strWork.AppendFormat(" Where ConstructionTypeCode = {0}"); |
|
419 |
strWork.AppendFormat(" And ComponentCode = {0}", ComponentCode); |
|
420 |
if (ItemCode != 0) strWork.AppendFormat(" And ItemCode = {0}", ItemCode); |
|
421 |
if (SpecCode != 0) strWork.AppendFormat(" And SpecCode = {0}", SpecCode); |
|
410 | 422 |
|
411 | 423 |
} |
412 | 424 |
catch (Exception ex) |
trunk/src/ProcessManagement/ProcessManagement/DataModel/ComponentToTypeMaster.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
|
|
6 |
namespace ProcessManagement.DataModel |
|
7 |
{ |
|
8 |
/// <summary> |
|
9 |
/// 工事種別・構成リンクマスタ |
|
10 |
/// </summary> |
|
11 |
public class ComponentToTypeMaster |
|
12 |
{ |
|
13 |
#region メンバ変数 |
|
14 |
private int m_TypeCode = 0; // 工事種別コード |
|
15 |
private int m_ComponentCode = 0; // 構成キー |
|
16 |
private int m_DisplayOrder = 0; // 表示順 |
|
17 |
private DateTime m_EntryDate = DateTime.Now; // 登録日付 |
|
18 |
private DateTime m_UpdateDate = DateTime.Now; // 更新日付 |
|
19 |
#endregion |
|
20 |
|
|
21 |
#region コンストラクタ |
|
22 |
#endregion |
|
23 |
|
|
24 |
#region プロパティ |
|
25 |
/// <summary> |
|
26 |
/// 工事種別コード |
|
27 |
/// </summary> |
|
28 |
public int TypeCode |
|
29 |
{ |
|
30 |
get { return m_TypeCode; } |
|
31 |
set { m_TypeCode = value; } |
|
32 |
} |
|
33 |
/// <summary> |
|
34 |
/// 構成キー |
|
35 |
/// </summary> |
|
36 |
public int ComponentCode |
|
37 |
{ |
|
38 |
get { return m_ComponentCode; } |
|
39 |
set { m_ComponentCode = value; } |
|
40 |
} |
|
41 |
/// <summary> |
|
42 |
/// 表示順 |
|
43 |
/// </summary> |
|
44 |
public int DisplayOrder |
|
45 |
{ |
|
46 |
get { return m_DisplayOrder; } |
|
47 |
set { m_DisplayOrder = value; } |
|
48 |
} |
|
49 |
/// <summary> |
|
50 |
/// 登録日付 |
|
51 |
/// </summary> |
|
52 |
public DateTime EntryDate |
|
53 |
{ |
|
54 |
set { m_EntryDate = value; } |
|
55 |
get { return m_EntryDate; } |
|
56 |
} |
|
57 |
/// <summary> |
|
58 |
/// 更新日付 |
|
59 |
/// </summary> |
|
60 |
public DateTime UpdateDate |
|
61 |
{ |
|
62 |
set { m_UpdateDate = value; } |
|
63 |
get { return m_UpdateDate; } |
|
64 |
} |
|
65 |
#endregion |
|
66 |
} |
|
67 |
} |
trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionItemMaster.cs | ||
---|---|---|
10 | 10 |
/// </summary> |
11 | 11 |
public class ConstructionItemMaster |
12 | 12 |
{ |
13 |
#region 定数 |
|
14 |
|
|
15 |
/// <summary> |
|
16 |
/// 下位項目フラグ |
|
17 |
/// </summary> |
|
18 |
public enum SubitemsFlgDef |
|
19 |
{ |
|
20 |
/// <summary> |
|
21 |
/// 0:下位項目無 |
|
22 |
/// </summary> |
|
23 |
None = 0, |
|
24 |
/// <summary> |
|
25 |
/// 1:下位項目有 |
|
26 |
/// </summary> |
|
27 |
Exists, |
|
28 |
} |
|
29 |
|
|
30 |
/// <summary> |
|
31 |
/// 自社経費フラグ |
|
32 |
/// </summary> |
|
33 |
public enum MyExpensesFlgDef |
|
34 |
{ |
|
35 |
/// <summary> |
|
36 |
/// 0:施工費 |
|
37 |
/// </summary> |
|
38 |
Construction = 0, |
|
39 |
/// <summary> |
|
40 |
/// 1:経費 |
|
41 |
/// </summary> |
|
42 |
Expenses, |
|
43 |
} |
|
44 |
|
|
45 |
#endregion |
|
46 |
|
|
13 | 47 |
#region メンバ変数 |
14 | 48 |
private int m_ItemCode = 0; // 工種キー |
15 | 49 |
private int m_DisplayOrder = 0; // 表示順 |
trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionSpecUnitPrice.cs | ||
---|---|---|
9 | 9 |
{ |
10 | 10 |
#region メンバ変数 |
11 | 11 |
|
12 |
private int m_TypeCode = 0; // 工事種別キー |
|
12 | 13 |
private int m_ComponentCode = 0; // 構成キー |
13 | 14 |
private int m_ItemCode = 0; // 工種キー |
14 | 15 |
private int m_SpecCode = 0; // 規格・寸法キー |
15 |
private int m_TypeCode = 0; // 工事種別キー |
|
16 | 16 |
private double m_UnitPrice = 0; // 単価 |
17 | 17 |
|
18 | 18 |
private DateTime m_EntryDate = DateTime.Now; // 登録日付 |
... | ... | |
24 | 24 |
|
25 | 25 |
#region プロパティ |
26 | 26 |
/// <summary> |
27 |
/// 工事種別 |
|
28 |
/// </summary> |
|
29 |
public int TypeCode |
|
30 |
{ |
|
31 |
get { return m_TypeCode; } |
|
32 |
set { m_TypeCode = value; } |
|
33 |
} |
|
34 |
/// <summary> |
|
27 | 35 |
/// 構成キー |
28 | 36 |
/// </summary> |
29 | 37 |
public int ComponentCode |
... | ... | |
48 | 56 |
set { m_SpecCode = value; } |
49 | 57 |
} |
50 | 58 |
/// <summary> |
51 |
/// 工事種別 |
|
52 |
/// </summary> |
|
53 |
public int TypeCode |
|
54 |
{ |
|
55 |
get { return m_TypeCode; } |
|
56 |
set { m_TypeCode = value; } |
|
57 |
} |
|
58 |
/// <summary> |
|
59 | 59 |
/// 単価 |
60 | 60 |
/// </summary> |
61 | 61 |
public double UnitPrice |
trunk/src/ProcessManagement/ProcessManagement/DataModel/PurchaseOrderDetail.cs | ||
---|---|---|
11 | 11 |
public class PurchaseOrderDetail |
12 | 12 |
{ |
13 | 13 |
#region 定数 |
14 |
|
|
15 |
#region グループ番号定義 |
|
14 | 16 |
/// <summary> |
15 | 17 |
/// グループ番号定義 |
16 | 18 |
/// </summary> |
... | ... | |
51 | 53 |
StatutoryWelfare, |
52 | 54 |
} |
53 | 55 |
#endregion |
56 |
#endregion |
|
54 | 57 |
|
55 | 58 |
#region メンバ変数 |
56 | 59 |
|
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPerson.cs | ||
---|---|---|
392 | 392 |
// ???v???Z?X?????? |
393 | 393 |
if (m_bChengeAns) |
394 | 394 |
{ |
395 |
if (MessageBox.Show("?f?[?^???X?????????A?\???E???F????????I????????????????H?B", "?I???m?F"
|
|
395 |
if (MessageBox.Show("?f?[?^???X?????????A?\???E???F????????I????????????????H", "?I???m?F" |
|
396 | 396 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) |
397 | 397 |
{ |
398 | 398 |
e.Cancel = true; |
... | ... | |
459 | 459 |
// ??????`?F?b?N |
460 | 460 |
if (!DispFeildCheck()) return; |
461 | 461 |
|
462 |
if (MessageBox.Show("?\???f?[?^?????F??????A???????????H?B", "???F?m?F"
|
|
462 |
if (MessageBox.Show("?\???f?[?^?????F??????A???????????H", "???F?m?F" |
|
463 | 463 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
464 | 464 |
|
465 | 465 |
// ?\???E???F???R?[?h?X?V |
... | ... | |
499 | 499 |
// ??????`?F?b?N |
500 | 500 |
if (!DispFeildCheck()) return; |
501 | 501 |
|
502 |
if (MessageBox.Show("?\???f?[?^??s???F??????A???????????H?B", "?s???F?m?F"
|
|
502 |
if (MessageBox.Show("?\???f?[?^??s???F??????A???????????H", "?s???F?m?F" |
|
503 | 503 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
504 | 504 |
|
505 | 505 |
// ?\???E???F???R?[?h?X?V |
... | ... | |
539 | 539 |
// ??????`?F?b?N |
540 | 540 |
if (!DispFeildCheck()) return; |
541 | 541 |
|
542 |
if (MessageBox.Show("?\???f?[?^???????????A???????????H?B", "????m?F"
|
|
542 |
if (MessageBox.Show("?\???f?[?^???????????A???????????H", "????m?F" |
|
543 | 543 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
544 | 544 |
|
545 | 545 |
// ?\???E???F???R?[?h?X?V |
... | ... | |
574 | 574 |
try |
575 | 575 |
{ |
576 | 576 |
if (!DispFeildCheck()) return; |
577 |
if (MessageBox.Show("???F??\????????A???????????H?B", "???F?\???m?F"
|
|
577 |
if (MessageBox.Show("???F??\????????A???????????H", "???F?\???m?F" |
|
578 | 578 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
579 | 579 |
|
580 | 580 |
PersonApproval Rec = new PersonApproval(); |
... | ... | |
613 | 613 |
IOPersonApproval pAppDB = new IOPersonApproval(); |
614 | 614 |
try |
615 | 615 |
{ |
616 |
if (MessageBox.Show("?\???f?[?^????x?\????????A???????????H?B", "??\???m?F"
|
|
616 |
if (MessageBox.Show("?\???f?[?^????x?\????????A???????????H", "??\???m?F" |
|
617 | 617 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
618 | 618 |
|
619 | 619 |
pAppDB.connect(); pAppDB.beginTran(); |
... | ... | |
676 | 676 |
IOPersonApproval pAppDB = new IOPersonApproval(); |
677 | 677 |
try |
678 | 678 |
{ |
679 |
if (MessageBox.Show("?\???f?[?^???????????A???????????H?B", "?\??????m?F"
|
|
679 |
if (MessageBox.Show("?\???f?[?^???????????A???????????H", "?\??????m?F" |
|
680 | 680 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
681 | 681 |
|
682 | 682 |
// ?\???E???F?f?[?^????C??????? |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs | ||
---|---|---|
399 | 399 |
// ???v???Z?X?????? |
400 | 400 |
if (m_bChengeAns) |
401 | 401 |
{ |
402 |
if (MessageBox.Show("?f?[?^???X?????????A?\???E???F????????I????????????????H?B", "?I???m?F"
|
|
402 |
if (MessageBox.Show("?f?[?^???X?????????A?\???E???F????????I????????????????H", "?I???m?F" |
|
403 | 403 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) |
404 | 404 |
{ |
405 | 405 |
e.Cancel = true; |
... | ... | |
476 | 476 |
// ??????`?F?b?N |
477 | 477 |
if (!DispFeildCheck()) return; |
478 | 478 |
|
479 |
if (MessageBox.Show("????????F??????A???????????H?B", "???F?m?F"
|
|
479 |
if (MessageBox.Show("????????F??????A???????????H", "???F?m?F" |
|
480 | 480 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
481 | 481 |
|
482 | 482 |
// ?\???E???F???R?[?h?X?V |
... | ... | |
516 | 516 |
// ??????`?F?b?N |
517 | 517 |
if (!DispFeildCheck()) return; |
518 | 518 |
|
519 |
if (MessageBox.Show("?????s???F??????A???????????H?B", "?s???F?m?F"
|
|
519 |
if (MessageBox.Show("?????s???F??????A???????????H", "?s???F?m?F" |
|
520 | 520 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
521 | 521 |
|
522 | 522 |
// ?\???E???F???R?[?h?X?V |
... | ... | |
556 | 556 |
// ??????`?F?b?N |
557 | 557 |
if (!DispFeildCheck()) return; |
558 | 558 |
|
559 |
if (MessageBox.Show("??????????????A???????????H?B", "????m?F"
|
|
559 |
if (MessageBox.Show("??????????????A???????????H", "????m?F" |
|
560 | 560 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
561 | 561 |
|
562 | 562 |
// ?\???E???F???R?[?h?X?V |
... | ... | |
590 | 590 |
{ |
591 | 591 |
try |
592 | 592 |
{ |
593 |
// ??Z????E?\?Z????\??????c???????????????`?F?b?N |
|
594 |
if (!CheckEstimatePettion()) |
|
595 |
{ |
|
596 |
string strMsg = "?c??S?????\???????????????A\r\n???F???o??????????????????A?\??????????????????H"; |
|
597 |
if (MessageBox.Show(strMsg, "?\?????m?F" |
|
598 |
, MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) |
|
599 |
== DialogResult.Cancel) return; |
|
600 |
} |
|
601 |
|
|
593 | 602 |
// ?????H????H???\?Z???\??????{??????????`?F?b?N???? |
594 | 603 |
if (!CheckLedgerApproval()) |
595 | 604 |
{ |
... | ... | |
601 | 610 |
} |
602 | 611 |
|
603 | 612 |
if (!DispFeildCheck()) return; |
604 |
if (MessageBox.Show("???????F??\????????A???????????H?B"
|
|
613 |
if (MessageBox.Show("???????F??\????????A???????????H" |
|
605 | 614 |
, "???F?\???m?F" |
606 | 615 |
, MessageBoxButtons.YesNo |
607 | 616 |
, MessageBoxIcon.Information) == DialogResult.No) return; |
... | ... | |
657 | 666 |
FrmInputDate frm = new FrmInputDate(); |
658 | 667 |
try |
659 | 668 |
{ |
660 |
if (MessageBox.Show("?H????????x?\????????A???????????H?B", "??\???m?F"
|
|
669 |
if (MessageBox.Show("?H????????x?\????????A???????????H", "??\???m?F" |
|
661 | 670 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
662 | 671 |
|
663 | 672 |
if (frm.ShowDialog(this) == DialogResult.Cancel) return; |
... | ... | |
709 | 718 |
IOProcessApproval pAppDB = new IOProcessApproval(); |
710 | 719 |
try |
711 | 720 |
{ |
712 |
if (MessageBox.Show("?H???????\?????????????A???????????H?B", "?\??????m?F"
|
|
721 |
if (MessageBox.Show("?H???????\?????????????A???????????H", "?\??????m?F" |
|
713 | 722 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
714 | 723 |
|
715 | 724 |
// ?\???E???F?f?[?^????C??????? |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs | ||
---|---|---|
1512 | 1512 |
|
1513 | 1513 |
#endregion |
1514 | 1514 |
|
1515 |
#region 積算見積・予算時の申請者が営業と同じかどうかのチェック |
|
1516 |
/// <summary> |
|
1517 |
/// 積算見積・予算時の申請者が営業と同じかどうかのチェック |
|
1518 |
/// </summary> |
|
1519 |
/// <returns></returns> |
|
1520 |
private bool CheckEstimatePettion() |
|
1521 |
{ |
|
1522 |
try |
|
1523 |
{ |
|
1524 |
// 積算見積・積算予算の時のみチェック |
|
1525 |
if(m_ApprovalCode == (int)ClsExcute.ApprovalListNo.EstimateApproval |
|
1526 |
|| m_ApprovalCode == (int)ClsExcute.ApprovalListNo.EstimateBudgetApproval) |
|
1527 |
{ |
|
1528 |
|
|
1529 |
} |
|
1530 |
else |
|
1531 |
{ |
|
1532 |
return true; |
|
1533 |
} |
|
1534 |
|
|
1535 |
// 申請者が営業担当者ならばOK |
|
1536 |
if (m_ConstrBaseRec.SalesPersonCode == CommonMotions.LoginUserData.PersonCode) return true; |
|
1537 |
|
|
1538 |
// 申請者が営業副担当者ならばOK |
|
1539 |
if (m_ConstrBaseRec.SalesSubPersonCode == CommonMotions.LoginUserData.PersonCode) return true; |
|
1540 |
|
|
1541 |
// 申請者が営業担当者・営業副担当者と同じ部署ならばOK |
|
1542 |
if (m_ConstrBaseRec.SalesDepCode == CommonMotions.LoginUserData.DepartmentCode |
|
1543 |
|| m_ConstrBaseRec.SalesSubDepCode == CommonMotions.LoginUserData.DepartmentCode) return true; |
|
1544 |
|
|
1545 |
|
|
1546 |
return false; |
|
1547 |
} |
|
1548 |
catch (Exception ex) |
|
1549 |
{ |
|
1550 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1551 |
return false; |
|
1552 |
} |
|
1553 |
} |
|
1554 |
#endregion |
|
1555 |
|
|
1515 | 1556 |
#region ---------->> 指示連絡コメント処理 |
1516 | 1557 |
#region 指示連絡コメント表示処理 |
1517 | 1558 |
/// <summary> |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs | ||
---|---|---|
910 | 910 |
/// </summary> |
911 | 911 |
private bool m_EditLock = false; |
912 | 912 |
|
913 |
/// <summary> |
|
914 |
/// ?f?[?^????????H????{??? |
|
915 |
/// </summary> |
|
916 |
private ConstructionBaseInfo m_OrignalBaseInfo = new ConstructionBaseInfo(); |
|
913 | 917 |
// *-----* ?????????? *-----* |
914 | 918 |
/// <summary> |
915 | 919 |
/// ?T?u?t?H?[???t???O |
... | ... | |
1260 | 1264 |
{ |
1261 | 1265 |
if (m_bChengeAns) |
1262 | 1266 |
{ |
1263 |
if (MessageBox.Show("?f?[?^???X?????????A?o?^??????I????????????????H?B", "?I???m?F"
|
|
1267 |
if (MessageBox.Show("?f?[?^???X?????????A?o?^??????I????????????????H", "?I???m?F" |
|
1264 | 1268 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) |
1265 | 1269 |
{ |
1266 | 1270 |
e.Cancel = true; |
... | ... | |
1571 | 1575 |
|
1572 | 1576 |
// ?I??????????? |
1573 | 1577 |
if (cmbTransferConstruction.SelectedIndex == -1) return; |
1574 |
if (CommonMotions.cnvInt(cmbTransferConstruction.SelectedValue.ToString()) == 0) return; |
|
1578 |
int nSelectValue = CommonMotions.cnvInt(cmbTransferConstruction.SelectedValue); |
|
1579 |
if (nSelectValue == 0) return; |
|
1575 | 1580 |
|
1581 |
// ?I??????????????????????? |
|
1582 |
if (nSelectValue == m_OrignalBaseInfo.TransferConstruction) return; |
|
1583 |
|
|
1576 | 1584 |
// ????R???{?{?b?N?X?C?x???g?N???A |
1577 | 1585 |
SetcmbTransConstrEvent(false); |
1578 | 1586 |
|
... | ... | |
1584 | 1592 |
m_DspCtrl[(int)DspCnt.TransferConstructionDate].Text = DateTime.Now.ToShortDateString(); |
1585 | 1593 |
|
1586 | 1594 |
|
1587 |
int transferCode = CommonMotions.cnvInt(cmbTransferConstruction.SelectedValue);
|
|
1595 |
int transferCode = nSelectValue;
|
|
1588 | 1596 |
if (transferCode > 99999) |
1589 | 1597 |
{ // ??????l????H???S???????? |
1590 | 1598 |
cmbConstrPerson.SelectedValue = transferCode; |
... | ... | |
1625 | 1633 |
// ???????p???????????s?? |
1626 | 1634 |
if (!rdbStatusHikitugiFlg.Checked) return; |
1627 | 1635 |
|
1636 |
// ?I??????????????????????? |
|
1637 |
int nSelectValue = CommonMotions.cnvInt(cmbConstrPerson.SelectedValue); |
|
1638 |
if (nSelectValue == m_OrignalBaseInfo.ConstructionPersonCode) return; |
|
1639 |
|
|
1628 | 1640 |
// ???????p?t???O???N???A???? |
1629 | 1641 |
//rdbStatusHikitugiFlg.Checked = false; |
1630 | 1642 |
|
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs | ||
---|---|---|
1051 | 1051 |
|
1052 | 1052 |
return true; |
1053 | 1053 |
} |
1054 |
|
|
1055 |
// ?f?[?^???????H????{?????????? |
|
1056 |
m_OrignalBaseInfo = worklist[0]; |
|
1057 |
|
|
1054 | 1058 |
// ?f?[?^?\?? |
1055 | 1059 |
m_DspCtrl[(int)DspCnt.ConstructionCode].Text = CommonMotions.cnvStringCodeFromInt(worklist[0].ConstructionCode, "-", 8); // ?H???R?[?h |
1056 | 1060 |
m_DspCtrl[(int)DspCnt.ConstructionYear].Text = worklist[0].ConstructionYear.ToString(); // ?H???N?x |
... | ... | |
4632 | 4636 |
|
4633 | 4637 |
if (!MacthFlg) |
4634 | 4638 |
{ |
4635 |
MessageBox.Show("?c?O??????I?I\n???A??????????????????????? ??`?? (^.^)V", "???m?F", MessageBoxButtons.OK, MessageBoxIcon.Hand); |
|
4639 |
if (ProductDefine.ProductType == (int)ProductDefine.ProductTypeDef.Originals) |
|
4640 |
MessageBox.Show("?c?O??????I?I\n???A??????????????????????? ??`?? (^.^)V", "???m?F", MessageBoxButtons.OK, MessageBoxIcon.Hand); |
|
4641 |
else |
|
4642 |
MessageBox.Show("?V?X?e????????????????????[?U?[??O???????????B", "???m?F", MessageBoxButtons.OK, MessageBoxIcon.Hand); |
|
4643 |
|
|
4636 | 4644 |
return MacthFlg; |
4637 | 4645 |
} |
4638 | 4646 |
// ?????? |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs | ||
---|---|---|
639 | 639 |
{ |
640 | 640 |
if (m_bChengeAns) |
641 | 641 |
{ |
642 |
if (MessageBox.Show("?f?[?^???X?????????A?o?^??????I????????????????H?B", "?I???m?F"
|
|
642 |
if (MessageBox.Show("?f?[?^???X?????????A?o?^??????I????????????????H", "?I???m?F" |
|
643 | 643 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) |
644 | 644 |
{ |
645 | 645 |
e.Cancel = true; |
... | ... | |
795 | 795 |
new Font("?l?r ????", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
796 | 796 |
|
797 | 797 |
// ??????????????f?[?^??A?N?Z?X?????????Q????[?h // DEBUG 2016/05/19 |
798 |
if (CommonMotions.LoginUserSecurity.GeneralAffairs == (int)SecurityMaster.GeneAffDef.GeneralDep) |
|
798 |
int nSecCode = CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key; |
|
799 |
if (CommonMotions.LoginUserSecurity.GeneralAffairs == (int)SecurityMaster.GeneAffDef.GeneralDep |
|
800 |
&& CommonMotions.LoginUserData.SecurityManagement != nSecCode) |
|
799 | 801 |
{ |
800 | 802 |
m_EditLock = true; |
801 | 803 |
} |
... | ... | |
1413 | 1415 |
// ?\???E???F???F??]?E???s???z?`?F?b?N |
1414 | 1416 |
if (!CheckApprovalValue()) return; |
1415 | 1417 |
|
1416 |
if (MessageBox.Show("????????F??????A???????????H?B", "???F?m?F"
|
|
1418 |
if (MessageBox.Show("????????F??????A???????????H", "???F?m?F" |
|
1417 | 1419 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
1418 | 1420 |
|
1419 | 1421 |
// ?H????? |
... | ... | |
1465 | 1467 |
FrmApprovalScreen frm = new FrmApprovalScreen(); |
1466 | 1468 |
try |
1467 | 1469 |
{ |
1468 |
if (MessageBox.Show("??????????????A???????????H?B", "????m?F"
|
|
1470 |
if (MessageBox.Show("??????????????A???????????H", "????m?F" |
|
1469 | 1471 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
1470 | 1472 |
|
1471 | 1473 |
// ?H????? |
... | ... | |
1517 | 1519 |
FrmApprovalScreen frm = new FrmApprovalScreen(); |
1518 | 1520 |
try |
1519 | 1521 |
{ |
1520 |
if (MessageBox.Show("?????s???F??????A???????????H?B", "?s???F?m?F"
|
|
1522 |
if (MessageBox.Show("?????s???F??????A???????????H", "?s???F?m?F" |
|
1521 | 1523 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
1522 | 1524 |
|
1523 | 1525 |
// ?H????? |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs | ||
---|---|---|
1829 | 1829 |
// 外注費 |
1830 | 1830 |
case (int)FrmConstructionBudget.DataGroup.OutSourceCosts: |
1831 | 1831 |
// 行数を退避する |
1832 |
m_CostsRowCount[(int)CostsRowLine.OutSourceCostsLine] = dgv.RowCount;
|
|
1832 |
m_CostsRowCount[(int)CostsRowLine.OutSourceCostsLine] = (dgv.RowCount - 1);
|
|
1833 | 1833 |
bReturnFlg = false; |
1834 | 1834 |
break; |
1835 | 1835 |
// 自社施工 |
... | ... | |
3048 | 3048 |
CreateDataRow(RowData, true); |
3049 | 3049 |
|
3050 | 3050 |
// 行位置取得 |
3051 |
m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = dgv.RowCount - 1;
|
|
3051 |
m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = (dgv.RowCount - 1);
|
|
3052 | 3052 |
|
3053 | 3053 |
return; // 新規作成はここで抜ける |
3054 | 3054 |
} |
... | ... | |
3204 | 3204 |
CreateDataRow(RowData, true); |
3205 | 3205 |
|
3206 | 3206 |
// 行位置取得(空行を1行挿入するためここでは最終行をセット) |
3207 |
m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount;
|
|
3207 |
m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = (dgv.RowCount - 1);
|
|
3208 | 3208 |
|
3209 | 3209 |
return; // 新規作成はここで抜ける |
3210 | 3210 |
} |
... | ... | |
3295 | 3295 |
CreateDataRow(RowData, true); |
3296 | 3296 |
|
3297 | 3297 |
// 行位置取得 |
3298 |
m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine] = dgv.RowCount - 1;
|
|
3298 |
m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine] = (dgv.RowCount - 1);
|
|
3299 | 3299 |
} |
3300 | 3300 |
else |
3301 | 3301 |
{ |
... | ... | |
3514 | 3514 |
CreateDataRow(RowData, true); |
3515 | 3515 |
|
3516 | 3516 |
// 行位置取得 |
3517 |
m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine] = dgv.RowCount - 1;
|
|
3517 |
m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine] = (dgv.RowCount - 1);
|
|
3518 | 3518 |
|
3519 | 3519 |
return; // 新規作成はここで抜ける |
3520 | 3520 |
} |
... | ... | |
3649 | 3649 |
CreateDataRow(RowData, true); |
3650 | 3650 |
|
3651 | 3651 |
// 行位置取得 |
3652 |
m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine] = dgv.RowCount - 1;
|
|
3652 |
m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine] = (dgv.RowCount - 1);
|
|
3653 | 3653 |
} |
3654 | 3654 |
else |
3655 | 3655 |
{ |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs | ||
---|---|---|
967 | 967 |
|
968 | 968 |
if (m_bChengeAns) |
969 | 969 |
{ |
970 |
if (MessageBox.Show("?f?[?^???X?????????A?o?^??????I????????????????H?B", "?I???m?F" |
他の形式にエクスポート: Unified diff