プロジェクト

全般

プロフィール

リビジョン 423

堀内6年以上前に追加

工事情報:増減工事工事状態同期画面追加
オリジナルの16期以前の機能を抑止
請求取消処理追加
請求入力:一般補修工事の表示が正しく出ないバグ修正

差分を表示:

trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsProcessExist.cs
1176 1176
        }
1177 1177
        #endregion
1178 1178

  
1179
        #region 30:入金入力データ存在確認
1180
        /// <summary>
1181
        /// 30:入金入力データ存在確認
1182
        /// </summary>
1183
        /// <returns></returns>
1184
        private static bool ExistPaymentConf()
1185
        {
1186
            IORequestHead ReqHed = new IORequestHead();
1187
            try
1188
            {
1189
                StringBuilder strSQL = new StringBuilder();
1190
                strSQL.Append("Select Count(*) From RequestHead As ReqHead");
1191
                strSQL.Append(" Inner Join InvoiceData As InvData");
1192
                strSQL.Append("       On InvData.InvoiceNo = ReqHead.InvoiceNo");
1193
                strSQL.AppendFormat(" Where ReqHead.REQCONSTRUCTIONCODE = {0}", m_SearchCode);
1194

  
1195
                ArrayList ReqList = new ArrayList();
1196
                if (!ReqHed.ExecuteReader(strSQL.ToString(), ref ReqList)) return false;
1197
                if (ReqList.Count < 1) return false;
1198
                object[] ObjRec = (object[])ReqList[0];
1199
                if (CommonMotions.cnvInt(ObjRec[0]) < 1) return false;
1200

  
1201
                return true;
1202
            }
1203
            catch (Exception ex)
1204
            {
1205
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
1206
                return false;
1207
            }
1208
            finally
1209
            {
1210
                ReqHed.close(); ReqHed = null;
1211
            }
1212
        }
1213
        #endregion
1214

  
1179 1215
        #region 31:請求入力データ存在確認
1180 1216
        /// <summary>
1181 1217
        /// 31:請求入力データ存在確認
......
1271 1307
            }
1272 1308
        }
1273 1309
        #endregion
1274

  
1275
        #region 30:入金入力データ存在確認
1276
        /// <summary>
1277
        /// 30:入金入力データ存在確認
1278
        /// </summary>
1279
        /// <returns></returns>
1280
        private static bool ExistPaymentConf()
1281
        {
1282
            IORequestHead ReqHed = new IORequestHead();
1283
            try
1284
            {
1285
                StringBuilder strSQL = new StringBuilder();
1286
                strSQL.Append("Select Count(*) From RequestHead As ReqHead");
1287
                strSQL.Append(" Inner Join InvoiceData As InvData");
1288
                strSQL.Append("       On InvData.InvoiceNo = ReqHead.InvoiceNo");
1289
                strSQL.AppendFormat(" Where ReqHead.REQCONSTRUCTIONCODE = {0}", m_SearchCode);
1290

  
1291
                ArrayList ReqList = new ArrayList();
1292
                if (!ReqHed.ExecuteReader(strSQL.ToString(), ref ReqList)) return false;
1293
                if (ReqList.Count < 1) return false;
1294
                object[] ObjRec = (object[])ReqList[0];
1295
                if (CommonMotions.cnvInt(ObjRec[0]) < 1) return false;
1296

  
1297
                return true;
1298
            }
1299
            catch (Exception ex)
1300
            {
1301
                logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
1302
                return false;
1303
            }
1304
            finally
1305
            {
1306
                ReqHed.close(); ReqHed = null;
1307
            }
1308
        }
1309
        #endregion
1310 1310
    }
1311 1311
}
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemoveRequest.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.Collections;
7

  
8
using log4net;
9
using MySql.Data.MySqlClient;
10

  
11
using ProcessManagement.DB.MySql;
12
using ProcessManagement.DB.Core;
13
using ProcessManagement.DataModel;
14

  
15
using ProcessManagement.Common;
16

  
17
namespace ProcessManagement.DB.IOAccess
18
{
19
    /// <summary>
20
    /// 請求取消データアクセスクラス
21
    /// </summary>
22
    public class IORemoveRequest : MySqlProcess
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 NameColumn
36
        {
37
            RemoveNo = 0,
38
            RemoveDate,
39
            RemovePersonCode,
40
            RemoveComment,
41
            RequestNo,
42
            ReqConstructionCode,
43
            OrderNo,
44
            RequestMonth,
45
            OrderersDivision,
46
            OrderersCode,
47
            OrderersName,
48
            ReqConstructionName,
49
            RequestTotalAmount,
50
            RequestAmount,
51
            TaxAmount,
52
            UnpaidAmount,
53
            Note,
54
            AssignedFlg,
55
            InvoiceNo,
56
            ENTRYDATE,
57
            UPDATEDATE,
58
        }
59
        #endregion
60

  
61
        #region コンストラクタ
62
        /// <summary>
63
        /// コンストラクタ
64
        /// </summary>
65
        /// <param name="connectionString"></param>
66
        public IORemoveRequest()
67
            : base(DBCommon.Instance.DBConnectString)
68
        {
69
        }
70

  
71
        #endregion
72

  
73
        #region SELECT SQL作成
74
        /// <summary>
75
        /// SQL作成
76
        /// </summary>
77
        private string CreateSelectSQL()
78
        {
79
            StringBuilder strcmd = new StringBuilder();
80
            try
81
            {
82
                strcmd.Append("SELECT ");
83

  
84
                bool bColFirst = true;
85
                string strWork = string.Empty;
86
                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
87
                {
88
                    strWork = gender.ToString();
89

  
90
                    if (!bColFirst) strcmd.Append(",");
91

  
92
                    if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
93
                    {
94
                        strcmd.AppendFormat(" DATE_FORMAT({0}, '%Y/%m/%d %H:%i:%s')", strWork);
95
                    }
96
                    else
97
                    {
98
                        strcmd.AppendFormat(" {0}", strWork);
99
                    }
100
                    bColFirst = false;
101
                }
102

  
103
                strcmd.Append(" FROM RemoveRequest");
104

  
105
                return strcmd.ToString();
106
            }
107
            catch (Exception ex)
108
            {
109
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
110
                return string.Empty;
111
            }
112
        }
113
        #endregion
114

  
115
        #region 請求取消データ検索
116
        /// <summary>
117
        /// 請求取消データ検索
118
        /// </summary>
119
        public bool SelectAction(string AddSQLString, ref List<RemoveRequest> data, bool bConnect = true)
120
        {
121
            // インターフェース
122
            StringBuilder strcmd = new StringBuilder();
123
            ArrayList arData = new ArrayList();
124

  
125
            try
126
            {
127
                strcmd.Append(CreateSelectSQL());
128
                strcmd.Append(AddSQLString);
129

  
130
                // SQL実行
131
                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
132

  
133
                // データセット
134
                foreach (object[] objwrk in arData)
135
                {
136
                    RemoveRequest work = new RemoveRequest();
137
                    Reader2Struct(objwrk, ref work);
138
                    data.Add(work);
139
                }
140

  
141
                return true;
142
            }
143
            catch (Exception ex)
144
            {
145
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
146
                return false;
147
            }
148
        }
149
        #endregion
150

  
151
        #region 請求取消データ1件追加
152
        /// <summary>
153
        /// 請求取消データ1件追加
154
        /// </summary>
155
        public bool InsertAction(RemoveRequest data, bool bConnect = true)
156
        {
157
            StringBuilder strcmd = new StringBuilder();
158
            try
159
            {
160
                bool bColFirst = true;
161
                strcmd.Append("INSERT INTO RemoveRequest");
162
                strcmd.Append(" (");
163
                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
164
                {
165
                    if (!bColFirst) strcmd.Append(", ");
166
                    strcmd.Append(gender.ToString());
167
                    bColFirst = false;
168
                }
169
                strcmd.Append(") VALUES (");
170

  
171
                strcmd.AppendFormat(" {0}", data.RemoveNo);
172
                strcmd.AppendFormat(", {0}", data.RemoveDate);
173
                strcmd.AppendFormat(", {0}", data.RemovePersonCode);
174
                strcmd.AppendFormat(",'{0}'", data.RemoveComment);
175

  
176
                strcmd.AppendFormat(", {0}", data.RequestNo);
177
                strcmd.AppendFormat(", {0}", data.ReqConstructionCode);
178
                strcmd.AppendFormat(", {0}", data.OrderNo);
179

  
180
                strcmd.AppendFormat(", {0}", data.RequestMonth);
181
                strcmd.AppendFormat(", {0}", data.OrderersDivision);
182
                strcmd.AppendFormat(", {0}", data.OrderersCode);
183
                strcmd.AppendFormat(",'{0}'", data.OrderersName);
184
                strcmd.AppendFormat(",'{0}'", data.ReqConstructionName);
185
                strcmd.AppendFormat(", {0}", data.RequestTotalAmount);
186
                strcmd.AppendFormat(", {0}", data.RequestAmount);
187
                strcmd.AppendFormat(", {0}", data.TaxAmount);
188
                strcmd.AppendFormat(", {0}", data.UnpaidAmount);
189
                strcmd.AppendFormat(",'{0}'", data.Note);    
190
                strcmd.AppendFormat(", {0}", data.AssignedFlg);
191
                strcmd.AppendFormat(", {0}", data.InvoiceNo);
192

  
193
                strcmd.Append(", NOW()");
194
                strcmd.Append(", NOW()");
195
                strcmd.Append(")");
196

  
197
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
198

  
199
                return true;
200
            }
201
            catch (Exception ex)
202
            {
203
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
204
                return false;
205
            }
206
        }
207
        #endregion
208

  
209
        #region 請求取消データ更新(1件更新)
210
        /// <summary>
211
        /// 請求データ更新(1件更新)
212
        /// </summary>
213
        public bool UpdateAction(string AddSQLString, RemoveRequest data, bool bConnect = true)
214
        {
215
            StringBuilder strcmd = new StringBuilder();
216
            try
217
            {
218

  
219
                strcmd.Append("UPDATE RemoveRequest");
220

  
221
                strcmd.Append(" SET");
222

  
223
                strcmd.AppendFormat(" RemoveNo = {0}", data.RemoveNo);
224
                strcmd.AppendFormat(", RemoveDate = {0}", data.RemoveDate);
225
                strcmd.AppendFormat(", RemovePersonCode = {0}", data.RemovePersonCode);
226
                strcmd.AppendFormat(", RemoveComment = '{0}'", data.RemoveComment);
227

  
228
                strcmd.AppendFormat(", ReqConstructionCode = {0}", data.ReqConstructionCode);
229
                strcmd.AppendFormat(", OrderNo = {0}", data.OrderNo);
230
                strcmd.AppendFormat(", RequestMonth = {0}", data.RequestMonth);
231

  
232
                strcmd.AppendFormat(", OrderersDivision = {0}", data.OrderersDivision);
233
                strcmd.AppendFormat(", OrderersCode = {0}", data.OrderersCode);
234
                strcmd.AppendFormat(", OrderersName = '{0}'", data.OrderersName);
235

  
236

  
237
                strcmd.AppendFormat(", ReqConstructionName = '{0}'", data.ReqConstructionName);
238
                strcmd.AppendFormat(", RequestTotalAmount = {0}", data.RequestTotalAmount);
239
                strcmd.AppendFormat(", RequestAmount = {0}", data.RequestAmount);
240
                strcmd.AppendFormat(", TaxAmount = {0}", data.TaxAmount);
241
                strcmd.AppendFormat(", UnpaidAmount = {0}", data.UnpaidAmount);
242
                strcmd.AppendFormat(", Note = '{0}'", data.Note);
243
                
244
                strcmd.AppendFormat(", AssignedFlg = {0}", data.AssignedFlg);
245
                strcmd.AppendFormat(", InvoiceNo = {0}", data.InvoiceNo);
246

  
247
                strcmd.Append(", UpdateDate = NOW()");
248

  
249
                //strcmd.AppendFormat(" Where RequestNo = {0}", data.RequestNo.ToString());
250
                strcmd.Append(AddSQLString);
251

  
252
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
253

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

  
264
        #region 請求取消データ削除
265
        /// <summary>
266
        /// 請求データ削除
267
        /// </summary>
268
        public bool DeleteAction(string AddSQLString, bool bConnect = true)
269
        {
270
            // インターフェース
271
            StringBuilder strcmd = new StringBuilder();
272
            try
273
            {
274
                strcmd.AppendFormat("{0}{1}", "DELETE FROM RemoveRequest", AddSQLString);
275

  
276
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
277

  
278
                return true;
279
            }
280
            catch (Exception ex)
281
            {
282
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
283
                return false;
284
            }
285
        }
286
        #endregion
287

  
288
        #region MySQLDataReaderより構造体へセットする
289
        /// <summary>
290
        /// MySQLDataReaderより構造体へセットする
291
        /// </summary>
292
        public void Reader2Struct(object[] objwrk, ref RemoveRequest wrk)
293
        {
294
            try
295
            {
296
                // データ取得
297
                wrk.RemoveNo = int.Parse(objwrk[(int)NameColumn.RemoveNo].ToString());
298
                wrk.RemoveDate = int.Parse(objwrk[(int)NameColumn.RemoveDate].ToString());
299
                wrk.RemovePersonCode = int.Parse(objwrk[(int)NameColumn.RemovePersonCode].ToString());
300
                wrk.RemoveComment = objwrk[(int)NameColumn.RemoveComment].ToString();
301

  
302
                wrk.RequestNo = int.Parse(objwrk[(int)NameColumn.RequestNo].ToString());
303
                
304
                wrk.ReqConstructionCode = int.Parse(objwrk[(int)NameColumn.ReqConstructionCode].ToString());
305
                wrk.OrderNo = int.Parse(objwrk[(int)NameColumn.OrderNo].ToString());
306

  
307
                wrk.RequestMonth = int.Parse(objwrk[(int)NameColumn.RequestMonth].ToString());
308
                wrk.OrderersDivision = int.Parse(objwrk[(int)NameColumn.OrderersDivision].ToString());
309
                wrk.OrderersCode = int.Parse(objwrk[(int)NameColumn.OrderersCode].ToString());
310
                wrk.OrderersName = objwrk[(int)NameColumn.OrderersName].ToString();
311

  
312
                wrk.ReqConstructionName = objwrk[(int)NameColumn.ReqConstructionName].ToString();
313

  
314
                wrk.RequestTotalAmount = long.Parse(objwrk[(int)NameColumn.RequestTotalAmount].ToString());
315
                wrk.RequestAmount = long.Parse(objwrk[(int)NameColumn.RequestAmount].ToString());
316
                wrk.TaxAmount = long.Parse(objwrk[(int)NameColumn.TaxAmount].ToString());
317
                wrk.UnpaidAmount = long.Parse(objwrk[(int)NameColumn.UnpaidAmount].ToString());
318

  
319
                wrk.Note = objwrk[(int)NameColumn.Note].ToString();
320

  
321
                wrk.AssignedFlg = int.Parse(objwrk[(int)NameColumn.AssignedFlg].ToString());
322
                wrk.InvoiceNo = int.Parse(objwrk[(int)NameColumn.InvoiceNo].ToString());
323

  
324
                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.ENTRYDATE].ToString());
325
                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UPDATEDATE].ToString());
326
            }
327
            catch (MySqlException myex)
328
            {
329
                logger.ErrorFormat("MySQLエラー:{0}:{1}", CommonMotions.GetMethodName(2), myex.Message);
330
            }
331
            catch (Exception ex)
332
            {
333
                logger.ErrorFormat("システムエラー::{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
334
            }
335
        }
336
        #endregion
337

  
338
        #region 主キー検索の文字列を返す
339
        /// <summary>
340
        /// 主キー検索の文字列を返す
341
        /// </summary>
342
        /// <param name="RequestNo">請求No</param>
343
        /// <returns>Where文字列</returns>
344
        public string CreatePrimarykeyString(int RemoveNo, int RemoveDate = 0)
345
        {
346
            StringBuilder strWork = new StringBuilder();
347
            try
348
            {
349
                strWork.AppendFormat(" Where RemoveNo = {0}", RemoveNo);
350
                if (RemoveDate != 0)
351
                    strWork.AppendFormat(" And RemoveDate = {0}", RemoveDate);
352
            }
353
            catch (Exception ex)
354
            {
355
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strWork.ToString());
356
            }
357

  
358
            return strWork.ToString();
359
        }
360
        #endregion
361

  
362
        #region 請求取消Noの採番
363
        /// <summary>
364
        /// 請求取消Noの採番
365
        /// </summary>
366
        /// <returns></returns>
367
        public int NumberingRemoveNo(int RemoveDate, bool bConnect = true)
368
        {
369
            int ret = -1;
370

  
371
            StringBuilder sql = new StringBuilder();
372
            ArrayList arData = new ArrayList();
373

  
374
            try
375
            {
376
                sql.AppendFormat("SELECT IFNULL(MAX(RemoveNo),0) FROM RemoveRequest WHERE RemoveDate = {0}", RemoveDate) ;
377

  
378
                // SQL実行
379
                if (!ExecuteReader(sql.ToString(), ref arData, bConnect)) return -1;
380

  
381
                // データセット
382
                foreach (object[] objwrk in arData)
383
                {
384
                    ret = int.Parse(objwrk[0].ToString());
385
                    break;
386
                }
387

  
388
                if (ret > 0)
389
                {
390
                    ret++;
391
                }
392
                else
393
                {
394
                    ret = (RemoveDate * 100) + 1;
395
                }
396

  
397
            }
398
            catch (Exception ex)
399
            {
400
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, sql.ToString());
401
            }
402
            return ret;
403

  
404
        }
405
        #endregion
406

  
407
    }
408

  
409
}
410

  
trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemoveRequestDetail.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.Collections;
7

  
8
using log4net;
9
using MySql.Data.MySqlClient;
10

  
11
using ProcessManagement.DB.MySql;
12
using ProcessManagement.DB.Core;
13
using ProcessManagement.DataModel;
14

  
15
using ProcessManagement.Common;
16

  
17
namespace ProcessManagement.DB.IOAccess
18
{
19
    /// <summary>
20
    /// 請求取消データ明細アクセスクラス
21
    /// </summary>
22
    public class IORemoveRequestDetail : MySqlProcess
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 NameColumn
36
        {
37
            RemoveNo = 0,
38
            SeqNo,
39
            RequestNo,
40
            MainConstructionCode,
41
            ConstructionCode,
42
            ConstructionKind,
43
            RequestAmount,
44
            TaxAmount,
45
            ENTRYDATE,
46
            UPDATEDATE,
47
        }
48
        #endregion
49

  
50
        #region コンストラクタ
51
        /// <summary>
52
        /// コンストラクタ
53
        /// </summary>
54
        /// <param name="connectionString"></param>
55
        public IORemoveRequestDetail()
56
            : base(DBCommon.Instance.DBConnectString)
57
        {
58
        }
59

  
60
        #endregion
61

  
62
        #region SELECT SQL作成
63
        /// <summary>
64
        /// SQL作成
65
        /// </summary>
66
        private string CreateSelectSQL()
67
        {
68
            StringBuilder strcmd = new StringBuilder();
69
            try
70
            {
71
                strcmd.Append("SELECT ");
72

  
73
                bool bColFirst = true;
74
                string strWork = string.Empty;
75
                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
76
                {
77
                    strWork = gender.ToString();
78

  
79
                    if (!bColFirst) strcmd.Append(",");
80

  
81
                    if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
82
                    {
83
                        strcmd.AppendFormat(" DATE_FORMAT({0}, '%Y/%m/%d %H:%i:%s')", strWork);
84
                    }
85
                    else
86
                    {
87
                        strcmd.AppendFormat(" {0}", strWork);
88
                    }
89
                    bColFirst = false;
90
                }
91

  
92
                strcmd.Append(" FROM RemoveRequestDetail");
93

  
94
                return strcmd.ToString();
95
            }
96
            catch (Exception ex)
97
            {
98
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
99
                return string.Empty;
100
            }
101
        }
102
        #endregion
103

  
104
        #region 請求取消データ明細検索
105
        /// <summary>
106
        /// 請求取消データ明細検索
107
        /// </summary>
108
        /// <param name="AddSQLString"></param>
109
        /// <param name="data"></param>
110
        /// <param name="bConnect"></param>
111
        /// <returns></returns>
112
        public bool SelectAction(string AddSQLString, ref List<RemoveRequestDetail> data, bool bConnect = true)
113
        {
114
            // インターフェース
115
            StringBuilder strcmd = new StringBuilder();
116
            ArrayList arData = new ArrayList();
117

  
118
            try
119
            {
120
                strcmd.Append(CreateSelectSQL());
121
                strcmd.Append(AddSQLString);
122

  
123
                // SQL実行
124
                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
125

  
126
                // データセット
127
                foreach (object[] objwrk in arData)
128
                {
129
                    RemoveRequestDetail work = new RemoveRequestDetail();
130
                    Reader2Struct(objwrk, ref work);
131
                    data.Add(work);
132
                }
133

  
134
                return true;
135
            }
136
            catch (Exception ex)
137
            {
138
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
139
                return false;
140
            }
141
        }
142
        #endregion
143

  
144
        #region 請求取消データ明細複数追加
145
        /// <summary>
146
        /// 請求取消データ明細複数追加
147
        /// </summary>
148
        /// <param name="data">請求取消データ明細</param>
149
        /// <returns>true:成功 false:失敗</returns>
150
        public bool InsertAction(List<RemoveRequestDetail> data, bool bConnect = true)
151
        {
152
            StringBuilder strcmd = new StringBuilder();
153
            try
154
            {
155

  
156
                bool bColFirst = true;
157
                strcmd.Append("INSERT INTO RemoveRequestDetail");
158
                strcmd.Append(" (");
159
                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
160
                {
161
                    if (!bColFirst) strcmd.Append(", ");
162
                    strcmd.Append(gender.ToString());
163
                    bColFirst = false;
164
                }
165
                strcmd.Append(") VALUES");
166

  
167
                bool bDataFirst = true;
168
                foreach (RemoveRequestDetail work in data)
169
                {
170
                    if (bDataFirst) strcmd.Append(" (");
171
                    else strcmd.Append(", (");
172

  
173
                    strcmd.AppendFormat(" {0}", work.RemoveNo);
174
                    strcmd.AppendFormat(", {0}", work.SeqNo);
175
                    strcmd.AppendFormat(", {0}", work.RequestNo);
176
                    strcmd.AppendFormat(", {0}", work.MainConstructionCode);
177
                    strcmd.AppendFormat(", {0}", work.ConstructionCode);
178

  
179
                    strcmd.AppendFormat(", {0}", work.ConstructionKind);
180
                    strcmd.AppendFormat(", {0}", work.RequestAmount);
181
                    strcmd.AppendFormat(", {0}", work.TaxAmount);
182

  
183
                    strcmd.Append(", NOW()");
184
                    strcmd.Append(", NOW()");
185
                    strcmd.Append(")");
186
                }
187
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
188

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

  
199
        #region 請求取消データ明細1件追加
200
        /// <summary>
201
        /// 請求取消データ明細1件追加
202
        /// </summary>
203
        /// <param name="data"></param>
204
        /// <param name="bConnect"></param>
205
        /// <returns></returns>
206
        public bool InsertAction(RemoveRequestDetail data, bool bConnect = true)
207
        {
208
            StringBuilder strcmd = new StringBuilder();
209
            try
210
            {
211
                bool bColFirst = true;
212
                strcmd.Append("INSERT INTO RemoveRequestDetail");
213
                strcmd.Append(" (");
214
                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
215
                {
216
                    if (!bColFirst) strcmd.Append(", ");
217
                    strcmd.Append(gender.ToString());
218
                    bColFirst = false;
219
                }
220
                strcmd.Append(") VALUES (");
221

  
222
                strcmd.AppendFormat(" {0}", data.RemoveNo);
223
                strcmd.AppendFormat(", {0}", data.SeqNo);
224
                strcmd.AppendFormat(", {0}", data.RequestNo);
225
                strcmd.AppendFormat(", {0}", data.MainConstructionCode);
226
                strcmd.AppendFormat(", {0}", data.ConstructionCode);
227

  
228
                strcmd.AppendFormat(", {0}", data.ConstructionKind);
229
                strcmd.AppendFormat(", {0}", data.RequestAmount);
230
                strcmd.AppendFormat(", {0}", data.TaxAmount);
231

  
232
                strcmd.Append(", NOW()");
233
                strcmd.Append(", NOW()");
234
                strcmd.Append(")");
235

  
236
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
237

  
238
                return true;
239
            }
240
            catch (Exception ex)
241
            {
242
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
243
                return false;
244
            }
245
        }
246
        #endregion
247

  
248
        #region 請求取消データ明細更新
249
        /// <summary>
250
        /// 請求取消データ明細更新
251
        /// </summary>
252
        /// <param name="AddSQLString">更新条件SQL文字列</param>
253
        /// <param name="data">請求取消データ明細</param>
254
        /// <returns>true:成功 false:失敗</returns>
255
        public bool UpdateAction(string AddSQLString, RemoveRequestDetail data, bool bConnect = true)
256
        {
257
            StringBuilder strcmd = new StringBuilder();
258
            try
259
            {
260

  
261
                strcmd.Append("UPDATE RemoveRequestDetail");
262

  
263
                strcmd.Append(" SET");
264

  
265
                strcmd.AppendFormat(" RemoveNo = {0}", data.RemoveNo);
266
                strcmd.AppendFormat(", SeqNo = {0}", data.SeqNo);
267
                strcmd.AppendFormat(", RequestNo = {0}", data.RequestNo);
268
                strcmd.AppendFormat(", MainConstructionCode = {0}", data.MainConstructionCode);
269
                strcmd.AppendFormat(", ConstructionCode = {0}", data.ConstructionCode);
270

  
271
                strcmd.AppendFormat(", ConstructionKind = {0}", data.ConstructionKind);
272
                strcmd.AppendFormat(", RequestAmount = {0}", data.RequestAmount);
273
                strcmd.AppendFormat(", TaxAmount = {0}", data.TaxAmount);
274

  
275
                strcmd.Append(", UpdateDate = NOW()");
276

  
277
                strcmd.Append(AddSQLString);
278

  
279
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
280

  
281
                return true;
282
            }
283
            catch (Exception ex)
284
            {
285
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
286
                return false;
287
            }
288
        }
289
        #endregion
290

  
291
        #region 請求取消データ明細削除
292
        /// <summary>
293
        /// 請求取消データ明細削除
294
        /// </summary>
295
        /// <param name="AddSQLString">削除条件SQL文字列</param>
296
        /// <param name="bConnect"></param>
297
        /// <returns></returns>
298
        public bool DeleteAction(string AddSQLString, bool bConnect = true)
299
        {
300
            // インターフェース
301
            StringBuilder strcmd = new StringBuilder();
302
            try
303
            {
304
                strcmd.AppendFormat("{0}{1}", "DELETE FROM RemoveRequestDetail", AddSQLString);
305

  
306
                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
307

  
308
                return true;
309
            }
310
            catch (Exception ex)
311
            {
312
                logger.ErrorFormat("システムエラー::{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
313
                return false;
314
            }
315
        }
316
        #endregion
317

  
318
        #region MySQLDataReaderより構造体へセットする
319
        /// <summary>
320
        /// MySQLDataReaderより構造体へセットする
321
        /// </summary>
322
        /// <param name="reader">MySQLDataReader</param>
323
        /// <param name="wrk">構造体</param>
324
        public void Reader2Struct(object[] objwrk, ref RemoveRequestDetail wrk)
325
        {
326
            try
327
            {
328
                // データ取得
329
                wrk.RemoveNo = int.Parse(objwrk[(int)NameColumn.RemoveNo].ToString());
330
                wrk.SeqNo = int.Parse(objwrk[(int)NameColumn.SeqNo].ToString());
331

  
332
                wrk.RequestNo = int.Parse(objwrk[(int)NameColumn.RequestNo].ToString());
333
                wrk.MainConstructionCode = int.Parse(objwrk[(int)NameColumn.MainConstructionCode].ToString());
334
                wrk.ConstructionCode = int.Parse(objwrk[(int)NameColumn.ConstructionCode].ToString());
335

  
336
                wrk.ConstructionKind = int.Parse(objwrk[(int)NameColumn.ConstructionKind].ToString());
337
                wrk.RequestAmount = long.Parse(objwrk[(int)NameColumn.RequestAmount].ToString());
338
                wrk.TaxAmount = long.Parse(objwrk[(int)NameColumn.TaxAmount].ToString());
339

  
340
                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.ENTRYDATE].ToString());
341
                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UPDATEDATE].ToString());
342
            }
343
            catch (MySqlException myex)
344
            {
345
                logger.ErrorFormat("MySQLエラー:{0}:{1}", CommonMotions.GetMethodName(2), myex.Message);
346
            }
347
            catch (Exception ex)
348
            {
349
                logger.ErrorFormat("システムエラー::{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
350
            }
351
        }
352
        #endregion
353

  
354
        #region 主キー検索の文字列を返す
355
        /// <summary>
356
        /// 主キー検索の文字列を返す
357
        /// </summary>
358
        public string CreatePrimarykeyString(int RemoveNo, int SeqNo = 0)
359
        {
360
            StringBuilder strWork = new StringBuilder();
361
            try
362
            {
363
                strWork.AppendFormat(" Where RemoveNo = {0}", RemoveNo.ToString());
364
                if(SeqNo != 0)
365
                    strWork.AppendFormat(" And SeqNo = {0}", SeqNo.ToString());
366
            }
367
            catch (Exception ex)
368
            {
369
                logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strWork.ToString());
370
            }
371

  
372
            return strWork.ToString();
373
        }
374
        #endregion
375
    }
376
}
377

  
trunk/src/ProcessManagement/ProcessManagement/DataModel/RemoveRequest.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace ProcessManagement.DataModel
8
{
9
    /// <summary>
10
    /// 請求取消データ
11
    /// </summary>
12
    public class RemoveRequest
13
    {
14
        #region メンバ変数
15
        private int         m_RemoveNo = 0;                     // 取消No
16
        private int         m_RemoveDate = 0;                   // 請求取消日
17
        private int         m_RemovePersonCode = 0;             // 請求取消担当者コード
18
        private string      m_RemoveComment = string.Empty;     // 明細内容
19

  
20
        private int         m_RequestNo = 0;                    // 請求No
21
        private int         m_ReqConstructionCode = 0;          // 請求工事番号
22
        private int         m_OrderNo = 0;                      // 受付番号
23
        private int         m_RequestMonth = 0;                 // 請求月
24
        private int         m_OrderersDivision = 0;             // 発注者区分
25
        private int         m_OrderersCode = 0;                 // 発注者コード
26
        private string      m_OrderersName = "";                // 発注者名
27
        private string      m_ReqConstructionName = "";         // 請求工事件名
28
        private long        m_RequestTotalAmount = 0;           // 請求金額合計
29
        private long        m_RequestAmount = 0;                // 請求金額
30
        private long        m_TaxAmount = 0;                    // 消費税
31
        private long        m_UnpaidAmount = 0;                 // 未入金
32
        private string      m_Note ="";                         // 備考
33
        private int         m_AssignedFlg = 0;                  // 割当済フラグ
34
        private int         m_InvoiceNo = 0;                    // 請求書No
35
        private DateTime    m_EntryDate = DateTime.Now;         // 登録日付
36
        private DateTime    m_UpdateDate = DateTime.Now;        // 更新日付
37
        #endregion
38

  
39
        #region コンストラクタ
40
        #endregion
41

  
42
        #region プロパティ
43
        /// <summary>
44
        /// 取消No
45
        /// </summary>
46
        public int RemoveNo
47
        {
48
            get { return m_RemoveNo; }
49
            set { m_RemoveNo = value; }
50
        }
51
        /// <summary>
52
        /// 請求取消日
53
        /// </summary>
54
        public int RemoveDate
55
        {
56
            get { return m_RemoveDate; }
57
            set { m_RemoveDate = value; }
58
        }
59
        /// <summary>
60
        /// 請求取消担当者コード
61
        /// </summary>
62
        public int RemovePersonCode
63
        {
64
            get { return m_RemovePersonCode; }
65
            set { m_RemovePersonCode = value; }
66
        }
67
        /// <summary>
68
        /// 明細内容
69
        /// </summary>
70
        public string RemoveComment
71
        {
72
            get { return m_RemoveComment; }
73
            set { m_RemoveComment = value; }
74
        }
75

  
76
        /// <summary>
77
        /// 請求No
78
        /// </summary>
79
        public int RequestNo
80
        {
81
            get { return m_RequestNo; }
82
            set { m_RequestNo = value; }
83
        }
84

  
85
        /// <summary>
86
        /// 請求工事番号
87
        /// </summary>
88
        public int ReqConstructionCode
89
        {
90
            get { return m_ReqConstructionCode; }
91
            set { m_ReqConstructionCode = value; }
92
        }
93

  
94
        /// <summary>
95
        /// 受付番号
96
        /// </summary>
97
        public int OrderNo
98
        {
99
            get { return m_OrderNo; }
100
            set { m_OrderNo = value; }
101
        }
102

  
103
        /// <summary>
104
        /// 請求月
105
        /// </summary>
106
        public int RequestMonth
107
        {
108
            get { return m_RequestMonth; }
109
            set { m_RequestMonth = value; }
110
        }
111

  
112
        /// <summary>
113
        /// 発注者区分
114
        /// </summary>
115
        public int OrderersDivision
116
        {
117
            get { return m_OrderersDivision; }
118
            set { m_OrderersDivision = value; }
119
        }
120

  
121
        /// <summary>
122
        /// 発注者コード
123
        /// </summary>
124
        public int OrderersCode
125
        {
126
            get { return m_OrderersCode; }
127
            set { m_OrderersCode = value; }
128
        }
129

  
130
        /// <summary>
131
        /// 発注者名
132
        /// </summary>
133
        public string OrderersName
134
        {
135
            get { return m_OrderersName; }
136
            set { m_OrderersName = value; }
137
        }
138

  
139
        /// <summary>
140
        /// 請求工事件名
141
        /// </summary>
142
        public string ReqConstructionName
143
        {
144
            get { return m_ReqConstructionName; }
145
            set { m_ReqConstructionName = value; }
146
        }
147
        
148
        /// <summary>
149
        /// 請求金額合計
150
        /// </summary>
151
        public long RequestTotalAmount
152
        {
153
            get { return m_RequestTotalAmount; }
154
            set { m_RequestTotalAmount = value; }
155
        }
156

  
157
        /// <summary>
158
        /// 請求金額
159
        /// </summary>
160
        public long RequestAmount
161
        {
162
            get { return m_RequestAmount; }
163
            set { m_RequestAmount = value; }
164
        }
165

  
166
        /// <summary>
167
        /// 消費税
168
        /// </summary>
169
        public long TaxAmount
170
        {
171
            get { return m_TaxAmount; }
172
            set { m_TaxAmount = value; }
173
        }
174

  
175
        /// <summary>
176
        /// 未入金
177
        /// </summary>
178
        public long UnpaidAmount
179
        {
180
            get { return m_UnpaidAmount; }
181
            set { m_UnpaidAmount = value; }
182
        }
183

  
184
        /// <summary>
185
        /// 備考
186
        /// </summary>
187
        public string Note
188
        {
189
            get { return m_Note; }
190
            set { m_Note = value; }
191
        }
192

  
193
        /// <summary>
194
        /// 割当済フラグ
195
        /// </summary>
196
        public int AssignedFlg
197
        {
198
            get { return m_AssignedFlg; }
199
            set { m_AssignedFlg = value; }
200
        }
201

  
202
        /// <summary>
203
        /// 請求書No
204
        /// </summary>
205
        public int InvoiceNo
206
        {
207
            get { return m_InvoiceNo; }
208
            set { m_InvoiceNo = value; }
209
        }
210

  
211
        /// <summary>
212
        /// 登録日付
213
        /// </summary>
214
        public DateTime EntryDate
215
        {
216
            get { return m_EntryDate; }
217
            set { m_EntryDate = value; }
218
        }
219

  
220
        /// <summary>
221
        /// 更新日付
222
        /// </summary>
223
        public DateTime UpdateDate
224
        {
225
            get { return m_UpdateDate; }
226
            set { m_UpdateDate = value; }
227
        }
228
        #endregion
229

  
230
    }
231
}
trunk/src/ProcessManagement/ProcessManagement/DataModel/RemoveRequestDetail.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace ProcessManagement.DataModel
8
{
9
    /// <summary>
10
    /// 請求取消データ明細
11
    /// </summary>
12
    public class RemoveRequestDetail
13
    {
14
        #region 定数
15
        /// <summary>
16
        /// 工事区分定義
17
        /// </summary>
18
        public enum ConstructionKindDef
19
        {
20
            /// <summary>
21
            /// 0:本工事
22
            /// </summary>
23
            Original = 0,
24
            /// <summary>
25
            /// 1:追加工事(増減工事)
26
            /// </summary>
27
            Additional,
28
        }
29
        #endregion
30

  
31
        #region メンバ変数
32
        private int         m_RemoveNo = 0;                     // 取消No
33
        private int         m_SeqNo = 0;                        // 受付No
34
        private int         m_RequestNo = 0;                    // 請求No
35
        private int         m_MainConstructionCode = 0;         // 本工事番号
36
        private int         m_ConstructionCode = 0;             // 工事番号
37
        private int         m_ConstructionKind = 0;             // 工事区分
38
        private long        m_RequestAmount = 0;                // 請求金額
39
        private long        m_TaxAmount = 0;                    // 消費税
40
        private DateTime    m_EntryDate = DateTime.Now;         // 登録日付
41
        private DateTime    m_UpdateDate = DateTime.Now;        // 更新日付
42
        #endregion
43

  
44
        #region コンストラクタ
45
        #endregion
46

  
47
        #region プロパティ
48
        /// <summary>
49
        /// 取消No
50
        /// </summary>
51
        public int RemoveNo
52
        {
53
            get { return m_RemoveNo; }
54
            set { m_RemoveNo = value; }
55
        }
56
        /// <summary>
57
        /// 受付No
58
        /// </summary>
59
        public int SeqNo
60
        {
61
            get { return m_SeqNo; }
62
            set { m_SeqNo = value; }
63
        }
64
        /// <summary>
65
        /// 請求No
66
        /// </summary>
67
        public int RequestNo
68
        {
69
            get { return m_RequestNo; }
70
            set { m_RequestNo = value; }
71
        }
72

  
73
        /// <summary>
74
        /// 本工事番号
75
        /// </summary>
76
        public int MainConstructionCode
77
        {
78
            get { return m_MainConstructionCode; }
79
            set { m_MainConstructionCode = value; }
80
        }
81
        
82

  
83
        /// <summary>
84
        /// 工事番号
85
        /// </summary>
86
        public int ConstructionCode
87
        {
88
            get { return m_ConstructionCode; }
89
            set { m_ConstructionCode = value; }
90
        }
91

  
92
        /// <summary>
93
        /// 工事区分
94
        /// </summary>
95
        public int ConstructionKind
96
        {
97
            get { return m_ConstructionKind; }
98
            set { m_ConstructionKind = value; }
99
        }
100

  
101
        /// <summary>
102
        /// 請求金額
103
        /// </summary>
104
        public long RequestAmount
105
        {
106
            get { return m_RequestAmount; }
107
            set { m_RequestAmount = value; }
108
        }
109

  
110
        /// <summary>
111
        /// 消費税
112
        /// </summary>
113
        public long TaxAmount
114
        {
115
            get { return m_TaxAmount; }
116
            set { m_TaxAmount = value; }
117
        }
118

  
119
        /// <summary>
120
        /// 登録日付
121
        /// </summary>
122
        public DateTime EntryDate
123
        {
124
            get { return m_EntryDate; }
125
            set { m_EntryDate = value; }
126
        }
127

  
128
        /// <summary>
129
        /// 更新日付
130
        /// </summary>
131
        public DateTime UpdateDate
132
        {
133
            get { return m_UpdateDate; }
134
            set { m_UpdateDate = value; }
135
        }
136
        #endregion
137

  
138
    }
139
}
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
3236 3236
        /// <param name="cpdDB"></param>
3237 3237
        /// <returns></returns>
3238 3238
        private bool ConstructionBaseInfoDataEntry(IOConstructionBaseInfo cbiDB,
3239
                                                    IOConstructionProgressDate cpdDB)
3239
                                                    IOConstructionProgressDate cpdDB,
3240
                                                    bool MsgOn)
3240 3241
        {
3241 3242
            try
3242 3243
            {
......
3484 3485

  
3485 3486
                // ????i?????t?f?[?^?o?^
3486 3487
                if (BeforeStatus != work.ConstructionStatusFlg)
3487
                {
3488
                    if (!ConstructionProgressDateEntry(cpdDB, BeforeStatus, work.ConstructionStatusFlg))
3489
                        return false;
3488
                {   // ?????????X?V
3489
                    if (!ConstructionProgressDateEntry(cpdDB
3490
                                                        , BeforeStatus
3491
                                                        , work.ConstructionStatusFlg)) return false;
3492
                    // ?????????X?e?[?^?X??X?????????i????????????????????j
3493
                    if (MsgOn)
3494
                    {
3495
                        if (!SyncFluctuationData(cbiDB, iStatus)) return false;
3496
                    }
3490 3497
                }
3491 3498
                else
3492
                {
3499
                {   // ?V?K?o?^????o?^
3493 3500
                    if (BeforeStatus == 0)
3494
                        if (!ConstructionProgressDateEntry(cpdDB, BeforeStatus, work.ConstructionStatusFlg))
3495
                            return false;
3501
                        if (!ConstructionProgressDateEntry(cpdDB
3502
                                                            , BeforeStatus
3503
                                                            , work.ConstructionStatusFlg)) return false;
3496 3504
                }
3497 3505

  
3498 3506
                // ?R?[?h?Z?b?g
......
3508 3516
        }
3509 3517
        #endregion
3510 3518

  
3519
        #region ?????????X?e?[?^?X??X????????
3520
        /// <summary>
3521
        /// ?????????X?e?[?^?X??X????????
3522
        /// </summary>
3523
        /// <returns></returns>
3524
        private bool SyncFluctuationData(IOConstructionBaseInfo cbiDB, int nStatus)
3525
        {
3526
            FrmConstrProgDiag frm = new FrmConstrProgDiag();
3527
            try
3528
            {
3529
                int[] nStatArrary = new int[] {CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?{?H????")).Key,
3530
                                                CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?{?H????")).Key,
3531
                                                CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?{?H?J?n")).Key,
3532
                                                CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?{?H????")).Key,
3533
                                                CommonDefine.ProjectsStatus.First(x => x.Value.Equals("????????")).Key,
3534
                                                CommonDefine.ProjectsStatus.First(x => x.Value.Equals("?????m?F")).Key};
3535

  
3536
                bool bAns = false;
3537
                for (int i = 0; i < nStatArrary.Length; i++)
3538
                {
3539
                    if (nStatArrary[i] != nStatus) continue;
3540

  
3541
                    bAns = true;
3542
                    break;
3543
                }
3544
                if (!bAns) return true;
3545

  
3546
                // ?????f?[?^?I??
3547
                frm.ConstructionCode = m_ConstructionCode;
3548
                DialogResult drRwt = frm.ShowDialog();
3549
                if (drRwt == DialogResult.Cancel) return true;
3550

  
3551
                bool bRet = true;
3552
                for(int i = 0; i < frm.TergetList.Count; i++)
3553
                {
3554
                    int nCode = frm.TergetList[i];
3555
                    if (!cbiDB.UpdateFeild(nCode
3556
                                            , (int)IOConstructionBaseInfo.TableColumn.ConstructionStatusFlg
3557
                                            , nStatus
3558
                                            , false))
3559
                    {
3560
                        bRet = false;
3561
                        break;
3562
                    }
3563
                }
3564

  
3565
                return bRet;
3566
            }
3567
            catch (System.Exception ex)
3568
            {
3569
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
3570
                return false;
3571
            }
3572
            finally
3573
            {
3574
                frm.Dispose(); frm = null;
3575
            }
3576
        }
3577
        #endregion
3578

  
3511 3579
        #region ?????H????e?q??H???I??????????????T??
3512 3580
        /// <summary>
3513 3581
        /// ?????H????e?q??H???I??????????????T??
......
3949 4017
                            ChgMenDB, LinkDB);
3950 4018

  
3951 4019
                // ?f?[?^?o?^
3952
                if (!ConstructionBaseInfoDataEntry(cbiDB, cpdDB))
4020
                if (!ConstructionBaseInfoDataEntry(cbiDB, cpdDB, MsgOn))
3953 4021
                {
3954 4022
                    MessageBox.Show("?H????{???f?[?^?o?^?G???[????B", "?o?^?G???[", MessageBoxButtons.OK, MessageBoxIcon.Error);
3955 4023
                    RollBackCommitProc(true,
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmCancelDisplay.Designer.cs
1
namespace ProcessManagement.Forms.DataEntry
2
{
3
    partial class FrmCancelDisplay
4
    {
5
        /// <summary>
6
        /// Required designer variable.
7
        /// </summary>
8
        private System.ComponentModel.IContainer components = null;
9

  
10
        /// <summary>
11
        /// Clean up any resources being used.
12
        /// </summary>
13
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
        protected override void Dispose(bool disposing)
15
        {
16
            if (disposing && (components != null))
17
            {
18
                components.Dispose();
19
            }
20
            base.Dispose(disposing);
21
        }
22

  
23
        #region Windows Form Designer generated code
24

  
25
        /// <summary>
26
        /// Required method for Designer support - do not modify
27
        /// the contents of this method with the code editor.
28
        /// </summary>
29
        private void InitializeComponent()
30
        {
31
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
32
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
33
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
34
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
35
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
36
            this.btnEnd = new System.Windows.Forms.Button();
37
            this.dgvMain = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
38
            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
39
            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
40
            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
41
            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
42
            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
43
            ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit();
44
            this.SuspendLayout();
45
            // 
46
            // btnEnd
47
            // 
48
            this.btnEnd.BackColor = System.Drawing.Color.Blue;
49
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
50
            this.btnEnd.ForeColor = System.Drawing.Color.White;
51
            this.btnEnd.Location = new System.Drawing.Point(872, 176);
52
            this.btnEnd.Name = "btnEnd";
53
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
54
            this.btnEnd.TabIndex = 3;
55
            this.btnEnd.Text = "終 了";
56
            this.btnEnd.UseVisualStyleBackColor = false;
57
            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
58
            // 
59
            // dgvMain
60
            // 
61
            this.dgvMain.AllowUserToAddRows = false;
62
            this.dgvMain.AllowUserToDeleteRows = false;
63
            this.dgvMain.AllowUserToResizeColumns = false;
64
            this.dgvMain.AllowUserToResizeRows = false;
65
            this.dgvMain.BackgroundColor = System.Drawing.Color.White;
66
            this.dgvMain.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
67
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
68
            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
69
            dataGridViewCellStyle1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold);
70
            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
71
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
72
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
73
            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
74
            this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
75
            this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
76
            this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
77
            this.Column1,
78
            this.Column2,
79
            this.Column3,
80
            this.Column4,
81
            this.Column5});
82
            this.dgvMain.EnableHeadersVisualStyles = false;
83
            this.dgvMain.Location = new System.Drawing.Point(2, 2);
84
            this.dgvMain.Name = "dgvMain";
85
            this.dgvMain.RowHeadersVisible = false;
86
            this.dgvMain.RowHeadersWidth = 20;
87
            this.dgvMain.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
88
            this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
89
            this.dgvMain.Size = new System.Drawing.Size(990, 172);
90
            this.dgvMain.TabIndex = 0;
91
            // 
92
            // Column1
93
            // 
94
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
95
            dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
96
            dataGridViewCellStyle2.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
97
            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
98
            dataGridViewCellStyle2.Format = "N0";
99
            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
100
            this.Column1.HeaderText = "№";
101
            this.Column1.Name = "Column1";
102
            this.Column1.ReadOnly = true;
103
            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
104
            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
105
            this.Column1.Width = 50;
106
            // 
107
            // Column2
108
            // 
109
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
110
            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
111
            dataGridViewCellStyle3.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

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