リビジョン 316
「その他の画面へ」ボタン総務部使用不可の機能修正
詳細台帳:新規行追加時ソース番号セット忘れ修正
積算見積書:見積依頼印刷追加
積算大項目・中項目関連マスタ:バグ修正
請求まとめ修正中
branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs | ||
---|---|---|
177 | 177 |
} |
178 | 178 |
#endregion |
179 | 179 |
|
180 |
#region 定義ファイル読込 |
|
181 |
/// <summary> |
|
182 |
/// 定義ファイル読込 |
|
183 |
/// </summary> |
|
184 |
private static void DefinitionFileInit() |
|
185 |
{ |
|
186 |
try |
|
187 |
{ |
|
188 |
//定義ファイル読込 |
|
189 |
System.IO.FileStream fs = new System.IO.FileStream(CommonDefine.s_DefinitionFileName, System.IO.FileMode.Open); |
|
190 |
System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(DefinitionFileRead)); |
|
191 |
m_dfr_model = (DefinitionFileRead)serializer.Deserialize(fs); |
|
192 |
} |
|
193 |
catch (Exception ex) |
|
194 |
{ |
|
195 |
logger.ErrorFormat("定義ファイル読込エラー:{0}:{1}", GetMethodName(), ex.Message); |
|
196 |
} |
|
197 |
} |
|
198 |
|
|
199 |
#endregion |
|
200 |
|
|
201 |
#region 管理マスタ取得 |
|
202 |
/// <summary> |
|
203 |
/// 管理マスタ取得 |
|
204 |
/// </summary> |
|
205 |
public static bool SetSystemMaster() |
|
206 |
{ |
|
207 |
// 管理マスタクラス |
|
208 |
IOMSystem ocDB = new IOMSystem(); |
|
209 |
try |
|
210 |
{ |
|
211 |
// 管理マスタ取得 |
|
212 |
// 1レコードだけなので取り出す |
|
213 |
string strSQL = " Where SystemCode = 1"; |
|
214 |
if (!ocDB.SelectAction(strSQL, ref m_systemMaster)) return false; |
|
215 |
|
|
216 |
return true; |
|
217 |
} |
|
218 |
catch (Exception ex) |
|
219 |
{ |
|
220 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
221 |
return false; |
|
222 |
} |
|
223 |
finally |
|
224 |
{ |
|
225 |
ocDB.close(); ocDB = null; |
|
226 |
} |
|
227 |
} |
|
228 |
#endregion |
|
229 |
|
|
230 |
#region メソッド名を取得する |
|
231 |
/// <summary> |
|
232 |
/// メソッド名を取得する |
|
233 |
/// </summary> |
|
234 |
/// <param name="StackCnt"></param> |
|
235 |
/// <returns></returns> |
|
236 |
public static string GetMethodName(int stackCnt = 1) |
|
237 |
{ |
|
238 |
try |
|
239 |
{ |
|
240 |
StringBuilder sb = new StringBuilder(); |
|
241 |
|
|
242 |
// 一つ前のスタック情報 |
|
243 |
StackFrame stackFrame = new StackFrame(stackCnt); |
|
244 |
|
|
245 |
// 呼び出し元メソッドの情報出力 |
|
246 |
System.Reflection.MethodBase method = stackFrame.GetMethod(); |
|
247 |
|
|
248 |
// Method取得失敗は戻る |
|
249 |
if (method == null) return string.Empty; |
|
250 |
|
|
251 |
// 正しく取得できているかの判定 |
|
252 |
if (method.DeclaringType != null && !string.IsNullOrEmpty(method.DeclaringType.Name)) |
|
253 |
{ |
|
254 |
// 型名 |
|
255 |
sb.AppendFormat("[TYPE]{0}", method.DeclaringType.Name); |
|
256 |
} |
|
257 |
|
|
258 |
if (!string.IsNullOrEmpty(method.Name)) |
|
259 |
{ |
|
260 |
// 編集済みの場合は区切りを入れる |
|
261 |
if (0 < sb.Length) sb.Append('/'); |
|
262 |
|
|
263 |
// メソッド名 |
|
264 |
sb.AppendFormat("[METHOD]{0}", method.Name); |
|
265 |
} |
|
266 |
return sb.ToString(); |
|
267 |
} |
|
268 |
catch (Exception ex) |
|
269 |
{ |
|
270 |
logger.ErrorFormat(ex.Message); |
|
271 |
} |
|
272 |
return string.Empty; |
|
273 |
} |
|
274 |
#endregion |
|
275 |
|
|
276 |
#region 日付より年を取得する |
|
277 |
/// <summary> |
|
278 |
/// 日付より年を取得する |
|
279 |
/// </summary> |
|
280 |
/// <returns></returns> |
|
281 |
public static int DateToPeriodYear(DateTime TargetDate) |
|
282 |
{ |
|
283 |
try |
|
284 |
{ |
|
285 |
// 今の年を取得する |
|
286 |
int iYear = DateTime.Now.Year; |
|
287 |
// 今年の期首日を取得する |
|
288 |
DateTime BeginninDate = DateTime.Parse(iYear.ToString() + "/" + CommonMotions.SystemMasterData.BusinessBeginningDate); |
|
289 |
// 日付を今年の期首日と比較して小さい場合は今の年より-1して期首年を求める |
|
290 |
if (TargetDate.Date < BeginninDate.Date) |
|
291 |
--iYear; |
|
292 |
|
|
293 |
return iYear; |
|
294 |
} |
|
295 |
catch (Exception ex) |
|
296 |
{ |
|
297 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
298 |
return 0; |
|
299 |
} |
|
300 |
} |
|
301 |
#endregion |
|
302 |
|
|
303 |
#region 期数から期の年を取得する |
|
304 |
/// <summary> |
|
305 |
/// 期数から期の年を取得する |
|
306 |
/// </summary> |
|
307 |
/// <param name="PeriodCount"></param> |
|
308 |
/// <returns></returns> |
|
309 |
public static int PeriodCountToYear(int PeriodCount) |
|
310 |
{ |
|
311 |
try |
|
312 |
{ |
|
313 |
// 今の年を取得する |
|
314 |
int iYear = DateTime.Now.Year; |
|
315 |
// 今年の期首日を取得する |
|
316 |
DateTime BeginninDate = DateTime.Parse(iYear.ToString() + "/" + CommonMotions.SystemMasterData.BusinessBeginningDate); |
|
317 |
// 今日を今年の期首日と比較して小さい場合は今の年より-1して期首年を求める |
|
318 |
if (DateTime.Now.Date < BeginninDate.Date) |
|
319 |
--iYear; |
|
320 |
|
|
321 |
// 管理マスタの期数と比較して年を計算する |
|
322 |
if (PeriodCount < CommonMotions.SystemMasterData.BusinessPeriod) |
|
323 |
{ |
|
324 |
iYear -= (CommonMotions.SystemMasterData.BusinessPeriod - PeriodCount); |
|
325 |
} |
|
326 |
else if (PeriodCount > CommonMotions.SystemMasterData.BusinessPeriod) |
|
327 |
{ |
|
328 |
iYear += (PeriodCount - CommonMotions.SystemMasterData.BusinessPeriod); |
|
329 |
} |
|
330 |
|
|
331 |
return iYear; |
|
332 |
} |
|
333 |
catch (Exception ex) |
|
334 |
{ |
|
335 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
336 |
return 0; |
|
337 |
} |
|
338 |
} |
|
339 |
#endregion |
|
340 |
|
|
341 |
#region 期の最大・最少を取得する |
|
342 |
/// <summary> |
|
343 |
/// 期の最大・最少を取得する |
|
344 |
/// </summary> |
|
345 |
/// <param name="StartDate"></param> |
|
346 |
/// <returns></returns> |
|
347 |
public static void GetPeriodYear(ref int min, ref int max) |
|
348 |
{ |
|
349 |
IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo(); |
|
350 |
try |
|
351 |
{ |
|
352 |
string strSQL = "SELECT MIN(CONSTRUCTIONPERIOD), MAX(CONSTRUCTIONPERIOD) FROM CONSTRUCTIONBASEINFO"; |
|
353 |
ArrayList arList = new ArrayList(); |
|
354 |
if (!cbiDB.ExecuteReader(strSQL, ref arList)) return; |
|
355 |
object[] wrkobj = (object[])arList[0]; |
|
356 |
min = cnvInt(wrkobj[0]); |
|
357 |
max = cnvInt(wrkobj[1]); |
|
358 |
|
|
359 |
} |
|
360 |
catch (Exception ex) |
|
361 |
{ |
|
362 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
363 |
} |
|
364 |
finally |
|
365 |
{ |
|
366 |
cbiDB.close(); cbiDB = null; |
|
367 |
} |
|
368 |
} |
|
369 |
#endregion |
|
370 |
|
|
371 |
#region 対象日より営業期・工事年度を取得する(実装途中) |
|
372 |
/// <summary> |
|
373 |
/// 対象日より営業期・工事年度を取得する(実装途中) |
|
374 |
/// </summary> |
|
375 |
/// <param name="NowDay"></param> |
|
376 |
/// <returns></returns> |
|
377 |
public static int ConvDate2YearOrPeriod(DateTime NowDay) |
|
378 |
{ |
|
379 |
int nRetVal = 0; |
|
380 |
// 初期値セット |
|
381 |
if (m_systemMaster.ConstructionNoBase == (int)SystemMaster.ConstrNoBaseDef.BusinessPeriod) |
|
382 |
nRetVal = m_systemMaster.BusinessPeriod; |
|
383 |
else |
|
384 |
nRetVal = m_systemMaster.ConstructionYear; |
|
385 |
try |
|
386 |
{ |
|
387 |
|
|
388 |
|
|
389 |
return nRetVal; |
|
390 |
} |
|
391 |
catch (Exception ex) |
|
392 |
{ |
|
393 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
394 |
return nRetVal; |
|
395 |
} |
|
396 |
} |
|
397 |
#endregion |
|
398 |
|
|
399 |
#region データ変換メソッド |
|
180 |
#region ---------- データ変換メソッド |
|
400 | 181 |
#region 西暦を和暦に変換する |
401 | 182 |
/// <summary> |
402 | 183 |
/// 西暦を和暦に変換する |
... | ... | |
1112 | 893 |
|
1113 | 894 |
#endregion |
1114 | 895 |
|
1115 |
#region データチェックメソッド |
|
896 |
#region ---------- データチェックメソッド
|
|
1116 | 897 |
#region ディレクトリの存在チェック |
1117 | 898 |
/// <summary> |
1118 | 899 |
/// ディレクトリの存在チェック |
... | ... | |
1751 | 1532 |
#endregion |
1752 | 1533 |
#endregion |
1753 | 1534 |
|
1535 |
#region ---------- 工事管理システム専用 |
|
1536 |
|
|
1537 |
#region 定義ファイル読込 |
|
1538 |
/// <summary> |
|
1539 |
/// 定義ファイル読込 |
|
1540 |
/// </summary> |
|
1541 |
private static void DefinitionFileInit() |
|
1542 |
{ |
|
1543 |
try |
|
1544 |
{ |
|
1545 |
//定義ファイル読込 |
|
1546 |
System.IO.FileStream fs = new System.IO.FileStream(CommonDefine.s_DefinitionFileName, System.IO.FileMode.Open); |
|
1547 |
System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(DefinitionFileRead)); |
|
1548 |
m_dfr_model = (DefinitionFileRead)serializer.Deserialize(fs); |
|
1549 |
} |
|
1550 |
catch (Exception ex) |
|
1551 |
{ |
|
1552 |
logger.ErrorFormat("定義ファイル読込エラー:{0}:{1}", GetMethodName(), ex.Message); |
|
1553 |
} |
|
1554 |
} |
|
1555 |
|
|
1556 |
#endregion |
|
1557 |
|
|
1558 |
#region 管理マスタ取得 |
|
1559 |
/// <summary> |
|
1560 |
/// 管理マスタ取得 |
|
1561 |
/// </summary> |
|
1562 |
public static bool SetSystemMaster() |
|
1563 |
{ |
|
1564 |
// 管理マスタクラス |
|
1565 |
IOMSystem ocDB = new IOMSystem(); |
|
1566 |
try |
|
1567 |
{ |
|
1568 |
// 管理マスタ取得 |
|
1569 |
// 1レコードだけなので取り出す |
|
1570 |
string strSQL = " Where SystemCode = 1"; |
|
1571 |
if (!ocDB.SelectAction(strSQL, ref m_systemMaster)) return false; |
|
1572 |
|
|
1573 |
return true; |
|
1574 |
} |
|
1575 |
catch (Exception ex) |
|
1576 |
{ |
|
1577 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1578 |
return false; |
|
1579 |
} |
|
1580 |
finally |
|
1581 |
{ |
|
1582 |
ocDB.close(); ocDB = null; |
|
1583 |
} |
|
1584 |
} |
|
1585 |
#endregion |
|
1586 |
|
|
1587 |
#region メソッド名を取得する |
|
1588 |
/// <summary> |
|
1589 |
/// メソッド名を取得する |
|
1590 |
/// </summary> |
|
1591 |
/// <param name="StackCnt"></param> |
|
1592 |
/// <returns></returns> |
|
1593 |
public static string GetMethodName(int stackCnt = 1) |
|
1594 |
{ |
|
1595 |
try |
|
1596 |
{ |
|
1597 |
StringBuilder sb = new StringBuilder(); |
|
1598 |
|
|
1599 |
// 一つ前のスタック情報 |
|
1600 |
StackFrame stackFrame = new StackFrame(stackCnt); |
|
1601 |
|
|
1602 |
// 呼び出し元メソッドの情報出力 |
|
1603 |
System.Reflection.MethodBase method = stackFrame.GetMethod(); |
|
1604 |
|
|
1605 |
// Method取得失敗は戻る |
|
1606 |
if (method == null) return string.Empty; |
|
1607 |
|
|
1608 |
// 正しく取得できているかの判定 |
|
1609 |
if (method.DeclaringType != null && !string.IsNullOrEmpty(method.DeclaringType.Name)) |
|
1610 |
{ |
|
1611 |
// 型名 |
|
1612 |
sb.AppendFormat("[TYPE]{0}", method.DeclaringType.Name); |
|
1613 |
} |
|
1614 |
|
|
1615 |
if (!string.IsNullOrEmpty(method.Name)) |
|
1616 |
{ |
|
1617 |
// 編集済みの場合は区切りを入れる |
|
1618 |
if (0 < sb.Length) sb.Append('/'); |
|
1619 |
|
|
1620 |
// メソッド名 |
|
1621 |
sb.AppendFormat("[METHOD]{0}", method.Name); |
|
1622 |
} |
|
1623 |
return sb.ToString(); |
|
1624 |
} |
|
1625 |
catch (Exception ex) |
|
1626 |
{ |
|
1627 |
logger.ErrorFormat(ex.Message); |
|
1628 |
} |
|
1629 |
return string.Empty; |
|
1630 |
} |
|
1631 |
#endregion |
|
1632 |
|
|
1633 |
#region 日付より年を取得する |
|
1634 |
/// <summary> |
|
1635 |
/// 日付より年を取得する |
|
1636 |
/// </summary> |
|
1637 |
/// <returns></returns> |
|
1638 |
public static int DateToPeriodYear(DateTime TargetDate) |
|
1639 |
{ |
|
1640 |
try |
|
1641 |
{ |
|
1642 |
// 今の年を取得する |
|
1643 |
int iYear = DateTime.Now.Year; |
|
1644 |
// 今年の期首日を取得する |
|
1645 |
DateTime BeginninDate = DateTime.Parse(iYear.ToString() + "/" + CommonMotions.SystemMasterData.BusinessBeginningDate); |
|
1646 |
// 日付を今年の期首日と比較して小さい場合は今の年より-1して期首年を求める |
|
1647 |
if (TargetDate.Date < BeginninDate.Date) |
|
1648 |
--iYear; |
|
1649 |
|
|
1650 |
return iYear; |
|
1651 |
} |
|
1652 |
catch (Exception ex) |
|
1653 |
{ |
|
1654 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1655 |
return 0; |
|
1656 |
} |
|
1657 |
} |
|
1658 |
#endregion |
|
1659 |
|
|
1660 |
#region 期数から期の年を取得する |
|
1661 |
/// <summary> |
|
1662 |
/// 期数から期の年を取得する |
|
1663 |
/// </summary> |
|
1664 |
/// <param name="PeriodCount"></param> |
|
1665 |
/// <returns></returns> |
|
1666 |
public static int PeriodCountToYear(int PeriodCount) |
|
1667 |
{ |
|
1668 |
try |
|
1669 |
{ |
|
1670 |
// 今の年を取得する |
|
1671 |
int iYear = DateTime.Now.Year; |
|
1672 |
// 今年の期首日を取得する |
|
1673 |
DateTime BeginninDate = DateTime.Parse(iYear.ToString() + "/" + CommonMotions.SystemMasterData.BusinessBeginningDate); |
|
1674 |
// 今日を今年の期首日と比較して小さい場合は今の年より-1して期首年を求める |
|
1675 |
if (DateTime.Now.Date < BeginninDate.Date) |
|
1676 |
--iYear; |
|
1677 |
|
|
1678 |
// 管理マスタの期数と比較して年を計算する |
|
1679 |
if (PeriodCount < CommonMotions.SystemMasterData.BusinessPeriod) |
|
1680 |
{ |
|
1681 |
iYear -= (CommonMotions.SystemMasterData.BusinessPeriod - PeriodCount); |
|
1682 |
} |
|
1683 |
else if (PeriodCount > CommonMotions.SystemMasterData.BusinessPeriod) |
|
1684 |
{ |
|
1685 |
iYear += (PeriodCount - CommonMotions.SystemMasterData.BusinessPeriod); |
|
1686 |
} |
|
1687 |
|
|
1688 |
return iYear; |
|
1689 |
} |
|
1690 |
catch (Exception ex) |
|
1691 |
{ |
|
1692 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1693 |
return 0; |
|
1694 |
} |
|
1695 |
} |
|
1696 |
#endregion |
|
1697 |
|
|
1698 |
#region 期の最大・最少を取得する |
|
1699 |
/// <summary> |
|
1700 |
/// 期の最大・最少を取得する |
|
1701 |
/// </summary> |
|
1702 |
/// <param name="StartDate"></param> |
|
1703 |
/// <returns></returns> |
|
1704 |
public static void GetPeriodYear(ref int min, ref int max) |
|
1705 |
{ |
|
1706 |
IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo(); |
|
1707 |
try |
|
1708 |
{ |
|
1709 |
string strSQL = "SELECT MIN(CONSTRUCTIONPERIOD), MAX(CONSTRUCTIONPERIOD) FROM CONSTRUCTIONBASEINFO"; |
|
1710 |
ArrayList arList = new ArrayList(); |
|
1711 |
if (!cbiDB.ExecuteReader(strSQL, ref arList)) return; |
|
1712 |
object[] wrkobj = (object[])arList[0]; |
|
1713 |
min = cnvInt(wrkobj[0]); |
|
1714 |
max = cnvInt(wrkobj[1]); |
|
1715 |
|
|
1716 |
} |
|
1717 |
catch (Exception ex) |
|
1718 |
{ |
|
1719 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1720 |
} |
|
1721 |
finally |
|
1722 |
{ |
|
1723 |
cbiDB.close(); cbiDB = null; |
|
1724 |
} |
|
1725 |
} |
|
1726 |
#endregion |
|
1727 |
|
|
1728 |
#region 対象日より営業期・工事年度を取得する(実装途中) |
|
1729 |
/// <summary> |
|
1730 |
/// 対象日より営業期・工事年度を取得する(実装途中) |
|
1731 |
/// </summary> |
|
1732 |
/// <param name="NowDay"></param> |
|
1733 |
/// <returns></returns> |
|
1734 |
public static int ConvDate2YearOrPeriod(DateTime NowDay) |
|
1735 |
{ |
|
1736 |
int nRetVal = 0; |
|
1737 |
// 初期値セット |
|
1738 |
if (m_systemMaster.ConstructionNoBase == (int)SystemMaster.ConstrNoBaseDef.BusinessPeriod) |
|
1739 |
nRetVal = m_systemMaster.BusinessPeriod; |
|
1740 |
else |
|
1741 |
nRetVal = m_systemMaster.ConstructionYear; |
|
1742 |
try |
|
1743 |
{ |
|
1744 |
|
|
1745 |
|
|
1746 |
return nRetVal; |
|
1747 |
} |
|
1748 |
catch (Exception ex) |
|
1749 |
{ |
|
1750 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1751 |
return nRetVal; |
|
1752 |
} |
|
1753 |
} |
|
1754 |
#endregion |
|
1755 |
|
|
1756 |
#region ポイントに規定値を加算して戻す |
|
1757 |
/// <summary> |
|
1758 |
/// ポイントに規定値を加算して戻す |
|
1759 |
/// </summary> |
|
1760 |
/// <param name="PosPoint"></param> |
|
1761 |
public static Point SetFormPosion(Point PosPoint) |
|
1762 |
{ |
|
1763 |
Point po = PosPoint; |
|
1764 |
try |
|
1765 |
{ |
|
1766 |
po.X += CommonDefine.s_DefalutShiftValue; |
|
1767 |
po.Y += CommonDefine.s_DefalutShiftValue; |
|
1768 |
|
|
1769 |
return po; |
|
1770 |
} |
|
1771 |
catch (Exception ex) |
|
1772 |
{ |
|
1773 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", GetMethodName(), GetMethodName(2), ex.Message); |
|
1774 |
return po; |
|
1775 |
} |
|
1776 |
} |
|
1777 |
#endregion |
|
1778 |
|
|
1754 | 1779 |
#region フィールドバックカラー変更処理 |
1755 | 1780 |
/// <summary> |
1756 | 1781 |
/// フィールドバックカラー変更処理(あまりカッコ良くない^^;) |
... | ... | |
1858 | 1883 |
} |
1859 | 1884 |
#endregion |
1860 | 1885 |
|
1861 |
#region ポイントに規定値を加算して戻す |
|
1862 |
/// <summary> |
|
1863 |
/// ポイントに規定値を加算して戻す |
|
1864 |
/// </summary> |
|
1865 |
/// <param name="PosPoint"></param> |
|
1866 |
public static Point SetFormPosion(Point PosPoint) |
|
1867 |
{ |
|
1868 |
Point po = PosPoint; |
|
1869 |
try |
|
1870 |
{ |
|
1871 |
po.X += CommonDefine.s_DefalutShiftValue; |
|
1872 |
po.Y += CommonDefine.s_DefalutShiftValue; |
|
1873 |
|
|
1874 |
return po; |
|
1875 |
} |
|
1876 |
catch (Exception ex) |
|
1877 |
{ |
|
1878 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", GetMethodName(), GetMethodName(2), ex.Message); |
|
1879 |
return po; |
|
1880 |
} |
|
1881 |
} |
|
1882 |
#endregion |
|
1883 |
|
|
1884 |
#region 工事管理システム専用 |
|
1885 | 1886 |
#region 営業期数より工事年を取得する |
1886 | 1887 |
/// <summary> |
1887 | 1888 |
/// 営業期数より工事年を取得する |
... | ... | |
2783 | 2784 |
} |
2784 | 2785 |
#endregion |
2785 | 2786 |
|
2787 |
#region グリッド行退避エリア初期化処理 |
|
2788 |
/// <summary> |
|
2789 |
/// グリッド行退避エリア初期化処理 |
|
2790 |
/// </summary> |
|
2791 |
public static void InitSavrGridRow(ref GridCellStyleMember[] BackUpStyle) |
|
2792 |
{ |
|
2793 |
try |
|
2794 |
{ |
|
2795 |
for (int i = 0; i < BackUpStyle.Length; i++) |
|
2796 |
{ |
|
2797 |
BackUpStyle[i] = new GridCellStyleMember(); |
|
2798 |
} |
|
2799 |
} |
|
2800 |
catch (Exception ex) |
|
2801 |
{ |
|
2802 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2803 |
} |
|
2804 |
} |
|
2786 | 2805 |
#endregion |
2787 | 2806 |
|
2788 |
#region Excel向け操作メソッド |
|
2807 |
#region 選択行の色を変更する |
|
2808 |
/// <summary> |
|
2809 |
/// 選択行の色を変更する |
|
2810 |
/// </summary> |
|
2811 |
public static void ChangeGridRow(DataGridView dgv |
|
2812 |
, DataGridViewRow CurRow |
|
2813 |
, ref GridCellStyleMember[] BackUpStyle |
|
2814 |
, bool bSelect = true) |
|
2815 |
{ |
|
2816 |
try |
|
2817 |
{ |
|
2818 |
// カレント行バックアップ&対象色セット |
|
2819 |
for (int i = 0; i < dgv.ColumnCount; i++) |
|
2820 |
{ |
|
2821 |
if (bSelect) |
|
2822 |
{ |
|
2823 |
BackUpStyle[i].DrowBackColor = CurRow.Cells[i].Style.BackColor; |
|
2824 |
BackUpStyle[i].DrowFont = CurRow.Cells[i].Style.Font; |
|
2825 |
BackUpStyle[i].DrowForeColor = CurRow.Cells[i].Style.ForeColor; |
|
2826 |
CurRow.Cells[i].Style.BackColor = Color.Red; |
|
2827 |
CurRow.Cells[i].Style.ForeColor = Color.White; |
|
2828 |
} |
|
2829 |
else |
|
2830 |
{ |
|
2831 |
CurRow.Cells[i].Style.BackColor = BackUpStyle[i].DrowBackColor; |
|
2832 |
CurRow.Cells[i].Style.Font = BackUpStyle[i].DrowFont; |
|
2833 |
CurRow.Cells[i].Style.ForeColor = BackUpStyle[i].DrowForeColor; |
|
2834 |
} |
|
2835 |
} |
|
2836 |
} |
|
2837 |
catch (Exception ex) |
|
2838 |
{ |
|
2839 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2840 |
} |
|
2841 |
} |
|
2842 |
#endregion |
|
2843 |
|
|
2844 |
#region フォームのコントロールを列挙する |
|
2845 |
/// <summary> |
|
2846 |
/// フォームのコントロールを列挙する |
|
2847 |
/// </summary> |
|
2848 |
/// <returns></returns> |
|
2849 |
public static Control[] GetAllControls(Control top) |
|
2850 |
{ |
|
2851 |
ArrayList buf = new ArrayList(); |
|
2852 |
foreach (Control c in top.Controls) |
|
2853 |
{ |
|
2854 |
buf.Add(c); |
|
2855 |
buf.AddRange(GetAllControls(c)); |
|
2856 |
} |
|
2857 |
return (Control[])buf.ToArray(typeof(Control)); |
|
2858 |
} |
|
2859 |
#endregion |
|
2860 |
|
|
2861 |
#endregion |
|
2862 |
|
|
2863 |
#region ---------- Excel向け操作メソッド |
|
2789 | 2864 |
#region オブジェクト開放 |
2790 | 2865 |
/// <summary> |
2791 | 2866 |
/// Com解放 |
branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs | ||
---|---|---|
14 | 14 |
/// <summary> |
15 | 15 |
/// 本体バージョン |
16 | 16 |
/// </summary> |
17 |
public static int s_SystemVersion = 134;
|
|
17 |
public static int s_SystemVersion = 137;
|
|
18 | 18 |
|
19 | 19 |
/// <summary> |
20 | 20 |
/// コピー・環境バージョン |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs | ||
---|---|---|
1431 | 1431 |
return true; |
1432 | 1432 |
} |
1433 | 1433 |
|
1434 |
// ----- 支払金額をセットする |
|
1434 | 1435 |
double SetValue = 0; |
1435 |
// 削除時は金額を0にする
|
|
1436 |
// 削除時以外は金額をセットする
|
|
1436 | 1437 |
if (!bRemove) SetValue = ExcuteRec.PaymentAmount; |
1437 | 1438 |
// データ存在時は支払金額更新 |
1438 | 1439 |
if (!ExecDB.UpdateFeild(ExcuteRec.ConstructionCode, |
... | ... | |
1446 | 1447 |
return false; |
1447 | 1448 |
} |
1448 | 1449 |
|
1450 |
// ----- 明細文字をセットする |
|
1451 |
if(!DetailDB.UpdateFeild(DetailRec.ConstructionCode, |
|
1452 |
(int)IOConstructionLedgerDetail.TableColumn.SecondString, |
|
1453 |
DetailRec.SecondString, |
|
1454 |
DetailRec.GroupCount, |
|
1455 |
DetailRec.LineCount, |
|
1456 |
false)) |
|
1457 |
{ |
|
1458 |
return false; |
|
1459 |
} |
|
1449 | 1460 |
|
1450 | 1461 |
List<int> ConstrCodeList = new List<int>(); |
1451 | 1462 |
// 更新対象リストへ追加 |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
2172 | 2172 |
} |
2173 | 2173 |
// 支払担当者コード |
2174 | 2174 |
if (CurrentPara.IntExecParameter.Count > 1) frm.PaymentPersonCode = CurrentPara.IntExecParameter[1]; |
2175 |
// 連番 |
|
2176 |
if (CurrentPara.IntExecParameter.Count > 2) frm.ParaTargetSeqNo = CurrentPara.IntExecParameter[2]; |
|
2175 | 2177 |
|
2176 | 2178 |
// フォーム表示 |
2177 | 2179 |
frm.ShowDialog(); |
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedgerExcute.cs | ||
---|---|---|
162 | 162 |
|
163 | 163 |
// SQL実行 |
164 | 164 |
if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false; |
165 |
if (arData.Count == 0) return false; |
|
165 | 166 |
|
166 | 167 |
// データセット |
167 | 168 |
foreach (object[] objwrk in arData) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs | ||
---|---|---|
1405 | 1405 |
// データ登録 |
1406 | 1406 |
if (!EntryComment()) return; |
1407 | 1407 |
|
1408 |
// データ変更フラグON |
|
1409 |
m_bChengeAns = true; |
|
1410 |
|
|
1408 | 1411 |
// 完了メッセージ |
1409 | 1412 |
CommonMotions.EntryEndMessage("コメントデータ"); |
1410 | 1413 |
} |
... | ... | |
1482 | 1485 |
// データ登録 |
1483 | 1486 |
if (!EntryComment()) return; |
1484 | 1487 |
|
1488 |
// データ変更フラグON |
|
1489 |
m_bChengeAns = true; |
|
1490 |
|
|
1485 | 1491 |
// 完了メッセージ |
1486 | 1492 |
CommonMotions.EntryEndMessage("コメントデータ"); |
1487 | 1493 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs | ||
---|---|---|
206 | 206 |
|
207 | 207 |
// 増減工事の子データのみ表示 |
208 | 208 |
StringBuilder strSQL = new StringBuilder(); |
209 |
strSQL.Append(" SELECT * FROM CONSTRUCTIONLINK A, CONSTRUCTIONLEDGER B"); |
|
209 |
strSQL.Append("SELECT"); |
|
210 |
strSQL.Append(" *"); |
|
211 |
strSQL.Append(" FROM"); |
|
212 |
strSQL.Append(" CONSTRUCTIONLINK A"); |
|
213 |
strSQL.Append(", CONSTRUCTIONLEDGER B"); |
|
210 | 214 |
strSQL.AppendFormat(" WHERE A.FLUCTUATIONCODE = {0}", m_ConstructionCode); |
211 | 215 |
strSQL.Append(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE"); |
212 | 216 |
ArrayList arList = new ArrayList(); |
... | ... | |
1468 | 1472 |
// データ登録 |
1469 | 1473 |
if (!EntryComment(m_ApprovalCode)) return; |
1470 | 1474 |
|
1475 |
// 変更フラグON |
|
1476 |
m_bChengeAns = true; |
|
1477 |
|
|
1471 | 1478 |
// 完了メッセージ |
1472 | 1479 |
CommonMotions.EntryEndMessage("コメントデータ"); |
1473 | 1480 |
} |
... | ... | |
1545 | 1552 |
// データ登録 |
1546 | 1553 |
if (!EntryComment(m_ApprovalCode)) return; |
1547 | 1554 |
|
1555 |
// 変更フラグON |
|
1556 |
m_bChengeAns = true; |
|
1557 |
|
|
1548 | 1558 |
// 完了メッセージ |
1549 | 1559 |
CommonMotions.EntryEndMessage("コメントデータ"); |
1550 | 1560 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs | ||
---|---|---|
520 | 520 |
int TargetParson2 = CommonMotions.cnvInt(((ComboBox)m_DspCtrl[(int)DspCnt.ConstrSubPersonCode]).SelectedValue); |
521 | 521 |
int TargetParson3 = CommonMotions.cnvInt(((ComboBox)m_DspCtrl[(int)DspCnt.ConstructionInstructor]).SelectedValue); |
522 | 522 |
DateTime StartDate = CommonMotions.cnvUndecidedStringToDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodStart2].Text); |
523 |
if(StartDate==DateTime.MinValue)
|
|
523 |
if (StartDate == DateTime.MinValue)
|
|
524 | 524 |
StartDate = CommonMotions.cnvUndecidedStringToDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodStart].Text); |
525 | 525 |
DateTime EndDate = CommonMotions.cnvUndecidedStringToDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodEnd2].Text); |
526 | 526 |
if (EndDate == DateTime.MinValue) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/ProcessControl.cs | ||
---|---|---|
87 | 87 |
// 自プロセスは処理しない |
88 | 88 |
if (CurRec.Key == s_CurrentProcessNo) continue; |
89 | 89 |
|
90 |
// 総務部所属者はデータ参照出来る処理がある |
|
91 |
if (CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision) |
|
92 |
{ |
|
93 |
if (!ClsSecurityPermission.PermitGeneralAffairsDevision(CurRec.Key)) continue; |
|
94 |
} |
|
95 |
|
|
96 | 90 |
//イベントの登録 |
97 | 91 |
EventHandler handle = null; |
98 | 92 |
switch (CurRec.Key) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/ProcessControl.cs | ||
---|---|---|
87 | 87 |
// 自プロセスは処理しない |
88 | 88 |
if (CurRec.Key == s_CurrentProcessNo) continue; |
89 | 89 |
|
90 |
// 総務部所属者はデータ参照出来る処理がある |
|
91 |
if (CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision) |
|
92 |
{ |
|
93 |
if (!ClsSecurityPermission.PermitGeneralAffairsDevision(CurRec.Key)) continue; |
|
94 |
} |
|
95 |
|
|
96 | 90 |
//イベントの登録 |
97 | 91 |
EventHandler handle = null; |
98 | 92 |
switch (CurRec.Key) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs | ||
---|---|---|
610 | 610 |
/// </summary> |
611 | 611 |
private DialogResult m_EndButton = DialogResult.None; |
612 | 612 |
|
613 |
/// <summary> |
|
614 |
/// ?I???{?^?????? |
|
615 |
/// </summary> |
|
616 |
public DialogResult EndButton |
|
617 |
{ |
|
618 |
get { return m_EndButton; } |
|
619 |
} |
|
620 |
|
|
621 | 613 |
// *-----* ?????????? *-----* |
622 | 614 |
/// <summary> |
623 | 615 |
/// ?T?u?t?H?[???t???O |
... | ... | |
693 | 685 |
} |
694 | 686 |
|
695 | 687 |
/// <summary> |
688 |
/// ?I???{?^?????? |
|
689 |
/// </summary> |
|
690 |
public DialogResult EndButton |
|
691 |
{ |
|
692 |
get { return m_EndButton; } |
|
693 |
} |
|
694 |
|
|
695 |
/// <summary> |
|
696 | 696 |
/// ?A?N?Z?X?????t???O |
697 | 697 |
/// </summary> |
698 | 698 |
public bool EditLock |
... | ... | |
1309 | 1309 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
1310 | 1310 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
1311 | 1311 |
|
1312 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
1312 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
1313 | 1313 |
DataCnt++; |
1314 | 1314 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
1315 | 1315 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs | ||
---|---|---|
834 | 834 |
this.dgvAllDisplay.RowHeadersWidth = 20; |
835 | 835 |
this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; |
836 | 836 |
this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; |
837 |
this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 442);
|
|
837 |
this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 420);
|
|
838 | 838 |
this.dgvAllDisplay.TabIndex = 35; |
839 | 839 |
this.dgvAllDisplay.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick); |
840 | 840 |
this.dgvAllDisplay.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs | ||
---|---|---|
1228 | 1228 |
SetBackColor = Color.White; |
1229 | 1229 |
} |
1230 | 1230 |
else |
1231 |
{ // 明細行 |
|
1231 |
{ // 明細行を請求まとめよりの起動時は分ける
|
|
1232 | 1232 |
if (m_ReqSumFlag) |
1233 | 1233 |
{ |
1234 | 1234 |
int nGroupCnt = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value); |
... | ... | |
3528 | 3528 |
SetData.Cells[(int)GridColumn.EstimatePrice].Value = ""; |
3529 | 3529 |
SetData.Cells[(int)GridColumn.ExecPrice].Value = "0"; |
3530 | 3530 |
SetData.Cells[(int)GridColumn.Percent].Value = "0.00"; |
3531 |
SetData.Cells[(int)GridColumn.SourceCode].Value = m_ConstructionCode; |
|
3531 | 3532 |
// フラグセット |
3532 | 3533 |
SetData.Cells[(int)GridColumn.TitleFlg].Value = "0"; |
3533 | 3534 |
SetData.Cells[(int)GridColumn.TotalFlg].Value = "0"; |
... | ... | |
7724 | 7725 |
SetReqSumRowColor(CurRow); |
7725 | 7726 |
} |
7726 | 7727 |
// フォームスタイルセット |
7728 |
panel1.BackColor = Color.LightGreen; |
|
7727 | 7729 |
this.BackColor = SystemColors.ControlLightLight; |
7728 | 7730 |
int nWDiff = panel2.Width - dgv.Width; |
7729 | 7731 |
panel2.Width = panel1.Width; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs | ||
---|---|---|
225 | 225 |
/// ?y?[?W?v???x???\????u |
226 | 226 |
/// </summary> |
227 | 227 |
private static int[] PageTotalLabelPoint = new int[] { 702, 942 }; |
228 |
|
|
229 |
#region ?s?I??F |
|
228 | 230 |
/// <summary> |
229 |
/// ??v???Z?X?{?^???P??????
|
|
231 |
/// ?s?I??F
|
|
230 | 232 |
/// </summary> |
231 |
private enum NextProc1No |
|
232 |
{ |
|
233 |
/// <summary> |
|
234 |
/// ?H????{??? |
|
235 |
/// </summary> |
|
236 |
ConstructionBaseInfo = 0, |
|
237 |
/// <summary> |
|
238 |
/// ??Z?\?Z?? |
|
239 |
/// </summary> |
|
240 |
EstimateBudget, |
|
241 |
} |
|
242 |
private static string[] s_NextProc1String = new string[] { "??{??????", "??Z?\?Z??????" }; |
|
233 |
private static Color s_RowBackSelectColor = SystemColors.Highlight; |
|
234 |
private static Color s_RowForeSelectColor = SystemColors.HighlightText; |
|
243 | 235 |
#endregion |
244 | 236 |
|
237 |
#endregion |
|
238 |
|
|
245 | 239 |
#region ??? |
246 | 240 |
/// <summary> |
247 | 241 |
/// ?H???R?[?h |
... | ... | |
341 | 335 |
/// ?I?????????{?^?? |
342 | 336 |
/// </summary> |
343 | 337 |
private int m_EndingButton = -1; |
338 |
|
|
339 |
|
|
340 |
/// <summary> |
|
341 |
/// ????????v???Z?X???J?E???g |
|
342 |
/// </summary> |
|
343 |
private int m_ProcessCount = 0; |
|
344 |
|
|
345 |
/// <summary> |
|
346 |
/// ?????Excel?p?X |
|
347 |
/// </summary> |
|
348 |
private string m_SelectSaveExcel = ""; |
|
349 |
/// <summary> |
|
350 |
/// ???s?_?C?A???O?I??l |
|
351 |
/// </summary> |
|
352 |
private DialogResult m_PrintresRet = DialogResult.Cancel; |
|
344 | 353 |
#endregion |
345 | 354 |
|
346 | 355 |
#region ?v???p?e?B |
... | ... | |
717 | 726 |
if (0 <= sCode.CompareTo(TotalTitleKeysList[0]) && sCode.CompareTo(TotalTitleKeysList[4]) <= 0) return; |
718 | 727 |
} |
719 | 728 |
|
729 |
// ?J?????g?s?o?b?N?A?b?v?????F?Z?b?g |
|
730 |
GridCellStyleMember[] CurRowStyle = new GridCellStyleMember[dgv.ColumnCount]; |
|
731 |
CommonMotions.InitSavrGridRow(ref CurRowStyle); |
|
732 |
CommonMotions.ChangeGridRow(dgv, dgv.CurrentRow, ref CurRowStyle); |
|
733 |
|
|
720 | 734 |
// ???b?Z?[?W?\?? |
721 | 735 |
if (MessageBox.Show(string.Format("?I??????{0}?s??????????B", dspmsg) |
722 | 736 |
, string.Format("{0}???m?F", dspmsg) |
723 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) != DialogResult.Yes) return; |
|
737 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Warning) != DialogResult.Yes) |
|
738 |
{ |
|
739 |
CommonMotions.ChangeGridRow(dgv, dgv.CurrentRow, ref CurRowStyle, false); |
|
740 |
return; |
|
741 |
} |
|
724 | 742 |
|
725 | 743 |
// ???v?s?????????????s?????? |
726 | 744 |
if (TabCnt == 0) |
... | ... | |
1905 | 1923 |
} |
1906 | 1924 |
#endregion |
1907 | 1925 |
|
1926 |
// ?Z???I???s |
|
1927 |
object m_ObjBeforeGrid = null; |
|
1928 |
int m_BeforeGridRow = -1; |
|
1929 |
#region ?Z???I???X |
|
1930 |
/// <summary> |
|
1931 |
/// ?Z????X???s??F?????? |
|
1932 |
/// </summary> |
|
1933 |
/// <param name="sender"></param> |
|
1934 |
/// <param name="e"></param> |
|
1935 |
private void dgvEntryData_SelectionChanged(object sender, EventArgs e) |
|
1936 |
{ |
|
1937 |
DataGridView dgv = (DataGridView)sender; |
|
1938 |
// ?s?I??F???????? |
|
1939 |
if (m_BeforeGridRow != -1) DefaultRowChangeColor(((DataGridView)m_ObjBeforeGrid).Rows[m_BeforeGridRow]); |
|
1940 |
|
|
1941 |
// ?I???s?????? |
|
1942 |
m_ObjBeforeGrid = sender; |
|
1943 |
m_BeforeGridRow = dgv.CurrentRow.Index; |
|
1944 |
// ?s?I??F???? |
|
1945 |
SelectRowChangeColor(dgv, m_BeforeGridRow); |
|
1946 |
} |
|
1947 |
#endregion |
|
1948 |
|
|
1908 | 1949 |
#region ?R?????g????{?^?? |
1909 | 1950 |
/// <summary> |
1910 | 1951 |
/// ?R?????g????{?^?????? |
... | ... | |
2206 | 2247 |
if (e.ScrollOrientation == ScrollOrientation.HorizontalScroll) dgv.ClearSelection(); |
2207 | 2248 |
} |
2208 | 2249 |
#endregion |
2250 |
|
|
2251 |
#region ????????? |
|
2252 |
/// <summary> |
|
2253 |
/// ????????? |
|
2254 |
/// </summary> |
|
2255 |
/// <param name="sender"></param> |
|
2256 |
/// <param name="e"></param> |
|
2257 |
private void btnRequestPrint_Click(object sender, EventArgs e) |
|
2258 |
{ |
|
2259 |
// ??????? |
|
2260 |
PrintProcess(); |
|
2261 |
} |
|
2262 |
#endregion |
|
2263 |
|
|
2264 |
#region ??????f |
|
2265 |
/// <summary> |
|
2266 |
/// ??????f |
|
2267 |
/// </summary> |
|
2268 |
/// <param name="sender"></param> |
|
2269 |
/// <param name="e"></param> |
|
2270 |
private void btnCancel_Click(object sender, EventArgs e) |
|
2271 |
{ |
|
2272 |
//?L?????Z????t???b?O???? |
|
2273 |
m_Canceled = true; |
|
2274 |
} |
|
2275 |
#endregion |
|
2209 | 2276 |
} |
2210 | 2277 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs | ||
---|---|---|
84 | 84 |
this.lblWrok = new System.Windows.Forms.Label(); |
85 | 85 |
this.btnOtherProc = new System.Windows.Forms.Button(); |
86 | 86 |
this.btnSubConstructor = new System.Windows.Forms.Button(); |
87 |
this.btnRequestPrint = new System.Windows.Forms.Button(); |
|
88 |
this.PrintProgress = new System.Windows.Forms.ProgressBar(); |
|
89 |
this.btnCancel = new System.Windows.Forms.Button(); |
|
87 | 90 |
this.TabCollections = new ProcessManagement.Forms.CustomControls.TabControlEX(); |
88 | 91 |
this.tabPage1 = new System.Windows.Forms.TabPage(); |
89 | 92 |
this.lblCellTotal = new System.Windows.Forms.Label(); |
... | ... | |
701 | 704 |
// |
702 | 705 |
this.btnSubConstructor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
703 | 706 |
this.btnSubConstructor.BackColor = System.Drawing.Color.DarkGoldenrod; |
704 |
this.btnSubConstructor.Location = new System.Drawing.Point(216, 656);
|
|
707 |
this.btnSubConstructor.Location = new System.Drawing.Point(285, 656);
|
|
705 | 708 |
this.btnSubConstructor.Name = "btnSubConstructor"; |
706 | 709 |
this.btnSubConstructor.Size = new System.Drawing.Size(120, 30); |
707 | 710 |
this.btnSubConstructor.TabIndex = 96; |
... | ... | |
709 | 712 |
this.btnSubConstructor.UseVisualStyleBackColor = false; |
710 | 713 |
this.btnSubConstructor.Click += new System.EventHandler(this.btnSubConstructor_Click); |
711 | 714 |
// |
715 |
// btnRequestPrint |
|
716 |
// |
|
717 |
this.btnRequestPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
718 |
this.btnRequestPrint.BackColor = System.Drawing.Color.DarkSeaGreen; |
|
719 |
this.btnRequestPrint.ForeColor = System.Drawing.Color.White; |
|
720 |
this.btnRequestPrint.Location = new System.Drawing.Point(174, 656); |
|
721 |
this.btnRequestPrint.Name = "btnRequestPrint"; |
|
722 |
this.btnRequestPrint.Size = new System.Drawing.Size(120, 30); |
|
723 |
this.btnRequestPrint.TabIndex = 95; |
|
724 |
this.btnRequestPrint.TabStop = false; |
|
725 |
this.btnRequestPrint.Text = "見積依頼印刷"; |
|
726 |
this.btnRequestPrint.UseVisualStyleBackColor = false; |
|
727 |
this.btnRequestPrint.Visible = false; |
|
728 |
this.btnRequestPrint.Click += new System.EventHandler(this.btnRequestPrint_Click); |
|
729 |
// |
|
730 |
// PrintProgress |
|
731 |
// |
|
732 |
this.PrintProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) |
|
733 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
734 |
this.PrintProgress.Location = new System.Drawing.Point(8, 651); |
|
735 |
this.PrintProgress.Name = "PrintProgress"; |
|
736 |
this.PrintProgress.Size = new System.Drawing.Size(1200, 36); |
|
737 |
this.PrintProgress.TabIndex = 97; |
|
738 |
this.PrintProgress.Visible = false; |
|
739 |
// |
|
740 |
// btnCancel |
|
741 |
// |
|
742 |
this.btnCancel.BackColor = System.Drawing.Color.Red; |
|
743 |
this.btnCancel.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
744 |
this.btnCancel.ForeColor = System.Drawing.Color.White; |
|
745 |
this.btnCancel.Location = new System.Drawing.Point(1052, 5); |
|
746 |
this.btnCancel.Name = "btnCancel"; |
|
747 |
this.btnCancel.Size = new System.Drawing.Size(120, 30); |
|
748 |
this.btnCancel.TabIndex = 98; |
|
749 |
this.btnCancel.Text = "印刷中止"; |
|
750 |
this.btnCancel.UseVisualStyleBackColor = false; |
|
751 |
this.btnCancel.Visible = false; |
|
752 |
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); |
|
753 |
// |
|
712 | 754 |
// TabCollections |
713 | 755 |
// |
714 | 756 |
this.TabCollections.Alignment = System.Windows.Forms.TabAlignment.Bottom; |
... | ... | |
971 | 1013 |
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
972 | 1014 |
this.BackColor = System.Drawing.Color.Black; |
973 | 1015 |
this.ClientSize = new System.Drawing.Size(1344, 692); |
1016 |
this.Controls.Add(this.btnCancel); |
|
974 | 1017 |
this.Controls.Add(this.btnSubConstructor); |
975 | 1018 |
this.Controls.Add(this.btnOtherProc); |
976 | 1019 |
this.Controls.Add(this.lblWrok); |
... | ... | |
988 | 1031 |
this.Controls.Add(this.btnDataEntry); |
989 | 1032 |
this.Controls.Add(this.btnEnd); |
990 | 1033 |
this.Controls.Add(this.label1); |
1034 |
this.Controls.Add(this.btnRequestPrint); |
|
1035 |
this.Controls.Add(this.PrintProgress); |
|
991 | 1036 |
this.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
992 | 1037 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
993 | 1038 |
this.KeyPreview = true; |
... | ... | |
1084 | 1129 |
private System.Windows.Forms.Button btnParent; |
1085 | 1130 |
private System.Windows.Forms.Label label5; |
1086 | 1131 |
private System.Windows.Forms.Label lblLabel07; |
1132 |
private System.Windows.Forms.Button btnRequestPrint; |
|
1133 |
private System.Windows.Forms.ProgressBar PrintProgress; |
|
1134 |
private System.Windows.Forms.Button btnCancel; |
|
1087 | 1135 |
} |
1088 | 1136 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs | ||
---|---|---|
270 | 270 |
newpage.EntryDGV.CellValueChanged += new DataGridViewCellEventHandler(this.dgvEntryData_CellValueChanged); |
271 | 271 |
newpage.EntryDGV.CurrentCellChanged += new System.EventHandler(this.dgvEntryData_CurrentCellChanged); |
272 | 272 |
newpage.EntryDGV.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvEntryData_Scroll); |
273 |
newpage.EntryDGV.SelectionChanged += new System.EventHandler(this.dgvEntryData_SelectionChanged); |
|
273 | 274 |
newpage.EntryDGV.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvEntryData_KeyDown); |
274 | 275 |
newpage.EntryDGV.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvEntryData_MouseUp); |
275 | 276 |
// |
... | ... | |
1865 | 1866 |
btnDispUp.Visible = false; // 行アップボタン |
1866 | 1867 |
btnDispDown.Visible = false; // 行ダウンボタン |
1867 | 1868 |
btnMasterIn.Visible = false; // 小項目マスタ追加ボタン |
1868 |
// タブ閉じるボタン非表示 |
|
1869 |
TabCollections.DrawButton = false; |
|
1869 |
btnRequestPrint.Visible = false; // 見積依頼印刷ボタン |
|
1870 |
|
|
1871 |
TabCollections.DrawButton = false; // タブ閉じるボタン非表示 |
|
1870 | 1872 |
} |
1871 | 1873 |
catch (Exception ex) |
1872 | 1874 |
{ |
... | ... | |
4419 | 4421 |
if (!MiddleSmallDataDisplay()) return false; |
4420 | 4422 |
// ++++++++++++++++++++++++++++++++++++++++ 積算見積明細データ(工種)End |
4421 | 4423 |
|
4422 |
// ***** テスト中なので管理者氏以外は使用禁止 |
|
4423 |
//if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode) |
|
4424 |
//{ |
|
4425 |
// // 指摘事項読込 |
|
4426 |
// ReadPointOutComment(); |
|
4427 |
//} |
|
4424 |
// 見積印刷 |
|
4425 |
btnRequestPrint.Visible = true; |
|
4428 | 4426 |
|
4429 | 4427 |
return true; |
4430 | 4428 |
} |
... | ... | |
6027 | 6025 |
} |
6028 | 6026 |
} |
6029 | 6027 |
#endregion |
6028 |
|
|
6029 |
#region 行選択色 |
|
6030 |
/// <summary> |
|
6031 |
/// 行を選択色にする |
|
6032 |
/// </summary> |
|
6033 |
/// <param name="CurrentRow"></param> |
|
6034 |
private void SelectRowChangeColor(DataGridView dgv, int CurrentRow) |
|
6035 |
{ |
|
6036 |
try |
|
6037 |
{ |
|
6038 |
if (bEventStopFlg) return; |
|
6039 |
|
|
6040 |
DataGridViewRow CurRow = dgv.CurrentRow; |
|
6041 |
// カレント行対象色セット |
|
6042 |
foreach (DataGridViewCell CurCell in CurRow.Cells) |
|
6043 |
{ |
|
6044 |
CurCell.Style.BackColor = s_RowBackSelectColor; |
|
6045 |
CurCell.Style.ForeColor = s_RowForeSelectColor; |
|
6046 |
} |
|
6047 |
} |
|
6048 |
catch (System.Exception ex) |
|
6049 |
{ |
|
6050 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
6051 |
} |
|
6052 |
} |
|
6053 |
#endregion |
|
6054 |
|
|
6055 |
#region 全行デフォルト色 |
|
6056 |
/// <summary> |
|
6057 |
/// 全て行をデフォルト色にする |
|
6058 |
/// </summary> |
|
6059 |
/// <param name="BeforeGridRow"></param> |
|
6060 |
private void DefaultALLRowChangeColor(DataGridView dgv) |
|
6061 |
{ |
|
6062 |
try |
|
6063 |
{ |
|
6064 |
if (bEventStopFlg) return; |
|
6065 |
|
|
6066 |
foreach (DataGridViewRow wrkRow in dgv.Rows) |
|
6067 |
{ |
|
6068 |
// 行の色をデフォルト色へ変更 |
|
6069 |
DefaultRowChangeColor(wrkRow); |
|
6070 |
} |
|
6071 |
|
|
6072 |
// 選択行色 |
|
6073 |
object sender = dgv; |
|
6074 |
m_ObjBeforeGrid = (object)dgv; |
|
6075 |
m_BeforeGridRow = dgv.CurrentRow.Index; |
|
6076 |
EventArgs e = new EventArgs(); |
|
6077 |
dgvEntryData_SelectionChanged(sender, e); |
|
6078 |
} |
|
6079 |
catch (System.Exception ex) |
|
6080 |
{ |
|
6081 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
6082 |
} |
|
6083 |
} |
|
6084 |
#endregion |
|
6085 |
|
|
6086 |
#region 行デフォルト色 |
|
6087 |
/// <summary> |
|
6088 |
/// 行をデフォルト色にする |
|
6089 |
/// </summary> |
|
6090 |
/// <param name="BeforeGridRow"></param> |
|
6091 |
private void DefaultRowChangeColor(DataGridViewRow CurRow) |
|
6092 |
{ |
|
6093 |
try |
|
6094 |
{ |
|
6095 |
if (bEventStopFlg) return; |
|
6096 |
if (CurRow == null) return; |
|
6097 |
|
|
6098 |
// カレント行対象色セット |
|
6099 |
foreach (DataGridViewCell CurCell in CurRow.Cells) |
|
6100 |
{ |
|
6101 |
CurCell.Style.BackColor = Color.White; |
|
6102 |
CurCell.Style.ForeColor = Color.Black; |
|
6103 |
} |
|
6104 |
} |
|
6105 |
catch (System.Exception ex) |
|
6106 |
{ |
|
6107 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
6108 |
} |
|
6109 |
} |
|
6110 |
#endregion |
|
6030 | 6111 |
} |
6031 | 6112 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrint.Designer.cs | ||
---|---|---|
55 | 55 |
this.label1 = new System.Windows.Forms.Label(); |
56 | 56 |
this.panel2 = new System.Windows.Forms.Panel(); |
57 | 57 |
this.PrintProgress = new System.Windows.Forms.ProgressBar(); |
58 |
this.btnPrint = new System.Windows.Forms.Button(); |
|
59 |
this.btnCancel = new System.Windows.Forms.Button(); |
|
60 |
this.btnOtherProc = new System.Windows.Forms.Button(); |
|
58 | 61 |
this.dgvEntryData = new ProcessManagement.Forms.CustomControls.DataGridViewEX(); |
59 | 62 |
this.Column03 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
60 | 63 |
this.Column01 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
... | ... | |
69 | 72 |
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
70 | 73 |
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
71 | 74 |
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
72 |
this.btnPrint = new System.Windows.Forms.Button(); |
|
73 |
this.btnCancel = new System.Windows.Forms.Button(); |
|
74 |
this.btnOtherProc = new System.Windows.Forms.Button(); |
|
75 | 75 |
this.panel1.SuspendLayout(); |
76 | 76 |
this.panel2.SuspendLayout(); |
77 | 77 |
((System.ComponentModel.ISupportInitialize)(this.dgvEntryData)).BeginInit(); |
... | ... | |
338 | 338 |
this.PrintProgress.TabIndex = 21; |
339 | 339 |
this.PrintProgress.Visible = false; |
340 | 340 |
// |
341 |
// btnPrint |
|
342 |
// |
|
343 |
this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
344 |
this.btnPrint.BackColor = System.Drawing.Color.DarkSeaGreen; |
|
345 |
this.btnPrint.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
346 |
this.btnPrint.ForeColor = System.Drawing.Color.White; |
|
347 |
this.btnPrint.Location = new System.Drawing.Point(920, 655); |
|
348 |
this.btnPrint.Name = "btnPrint"; |
|
349 |
this.btnPrint.Size = new System.Drawing.Size(120, 30); |
|
350 |
this.btnPrint.TabIndex = 19; |
|
351 |
this.btnPrint.Text = "印 刷"; |
|
352 |
this.btnPrint.UseVisualStyleBackColor = false; |
|
353 |
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); |
|
354 |
// |
|
355 |
// btnCancel |
|
356 |
// |
|
357 |
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
358 |
this.btnCancel.BackColor = System.Drawing.Color.Red; |
|
359 |
this.btnCancel.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
360 |
this.btnCancel.ForeColor = System.Drawing.Color.White; |
|
361 |
this.btnCancel.Location = new System.Drawing.Point(1048, 655); |
|
362 |
this.btnCancel.Name = "btnCancel"; |
|
363 |
this.btnCancel.Size = new System.Drawing.Size(120, 30); |
|
364 |
this.btnCancel.TabIndex = 20; |
|
365 |
this.btnCancel.Text = "印刷中止"; |
|
366 |
this.btnCancel.UseVisualStyleBackColor = false; |
|
367 |
this.btnCancel.Visible = false; |
|
368 |
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); |
|
369 |
// |
|
370 |
// btnOtherProc |
|
371 |
// |
|
372 |
this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
373 |
this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen; |
|
374 |
this.btnOtherProc.Location = new System.Drawing.Point(8, 655); |
|
375 |
this.btnOtherProc.Name = "btnOtherProc"; |
|
376 |
this.btnOtherProc.Size = new System.Drawing.Size(160, 30); |
|
377 |
this.btnOtherProc.TabIndex = 95; |
|
378 |
this.btnOtherProc.TabStop = false; |
|
379 |
this.btnOtherProc.Text = "他の画面へ"; |
|
380 |
this.btnOtherProc.UseVisualStyleBackColor = false; |
|
381 |
this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click); |
|
382 |
// |
|
341 | 383 |
// dgvEntryData |
342 | 384 |
// |
343 | 385 |
this.dgvEntryData.AllowUserToAddRows = false; |
... | ... | |
520 | 562 |
this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
521 | 563 |
this.Column13.Width = 166; |
522 | 564 |
// |
523 |
// btnPrint |
|
524 |
// |
|
525 |
this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
526 |
this.btnPrint.BackColor = System.Drawing.Color.Green; |
|
527 |
this.btnPrint.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
528 |
this.btnPrint.ForeColor = System.Drawing.Color.White; |
|
529 |
this.btnPrint.Location = new System.Drawing.Point(920, 655); |
|
530 |
this.btnPrint.Name = "btnPrint"; |
|
531 |
this.btnPrint.Size = new System.Drawing.Size(120, 30); |
|
532 |
this.btnPrint.TabIndex = 19; |
|
533 |
this.btnPrint.Text = "印 刷"; |
|
534 |
this.btnPrint.UseVisualStyleBackColor = false; |
|
535 |
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); |
|
536 |
// |
|
537 |
// btnCancel |
|
538 |
// |
|
539 |
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
540 |
this.btnCancel.BackColor = System.Drawing.Color.Red; |
|
541 |
this.btnCancel.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
542 |
this.btnCancel.ForeColor = System.Drawing.Color.White; |
|
543 |
this.btnCancel.Location = new System.Drawing.Point(1048, 655); |
|
544 |
this.btnCancel.Name = "btnCancel"; |
|
545 |
this.btnCancel.Size = new System.Drawing.Size(120, 30); |
|
546 |
this.btnCancel.TabIndex = 20; |
|
547 |
this.btnCancel.Text = "印刷中止"; |
|
548 |
this.btnCancel.UseVisualStyleBackColor = false; |
|
549 |
this.btnCancel.Visible = false; |
|
550 |
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); |
|
551 |
// |
|
552 |
// btnOtherProc |
|
553 |
// |
|
554 |
this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
555 |
this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen; |
|
556 |
this.btnOtherProc.Location = new System.Drawing.Point(8, 655); |
|
557 |
this.btnOtherProc.Name = "btnOtherProc"; |
|
558 |
this.btnOtherProc.Size = new System.Drawing.Size(160, 30); |
|
559 |
this.btnOtherProc.TabIndex = 95; |
|
560 |
this.btnOtherProc.TabStop = false; |
|
561 |
this.btnOtherProc.Text = "他の画面へ"; |
|
562 |
this.btnOtherProc.UseVisualStyleBackColor = false; |
|
563 |
this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click); |
|
564 |
// |
|
565 | 565 |
// FrmEstimatePrint |
566 | 566 |
// |
567 | 567 |
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReserveEntry/ProcessControl.cs | ||
---|---|---|
92 | 92 |
// 自プロセスは処理しない |
93 | 93 |
if (CurRec.Key == s_CurrentProcessNo) continue; |
94 | 94 |
|
95 |
// 総務部所属者はデータ参照出来る処理がある |
|
96 |
if (CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision) |
|
97 |
{ |
|
98 |
if (!ClsSecurityPermission.PermitGeneralAffairsDevision(CurRec.Key)) continue; |
|
99 |
} |
|
100 |
|
|
101 | 95 |
//イベントの登録 |
102 | 96 |
EventHandler handle = null; |
103 | 97 |
switch (CurRec.Key) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReturnEntry/ProcessControl.cs | ||
---|---|---|
92 | 92 |
// 自プロセスは処理しない |
93 | 93 |
if (CurRec.Key == s_CurrentProcessNo) continue; |
94 | 94 |
|
95 |
// 総務部所属者はデータ参照出来る処理がある |
|
96 |
if (CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision) |
|
97 |
{ |
|
98 |
if (!ClsSecurityPermission.PermitGeneralAffairsDevision(CurRec.Key)) continue; |
|
99 |
} |
|
100 |
|
|
101 | 95 |
//イベントの登録 |
102 | 96 |
EventHandler handle = null; |
103 | 97 |
switch (CurRec.Key) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/FrmPurchaseOrderPrint.Designer.cs | ||
---|---|---|
349 | 349 |
// |
350 | 350 |
// btnPrint |
351 | 351 |
// |
352 |
this.btnPrint.BackColor = System.Drawing.Color.Green; |
|
352 |
this.btnPrint.BackColor = System.Drawing.Color.DarkSeaGreen;
|
|
353 | 353 |
this.btnPrint.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
354 | 354 |
this.btnPrint.ForeColor = System.Drawing.Color.White; |
355 | 355 |
this.btnPrint.Location = new System.Drawing.Point(961, 656); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmRowDetail.cs | ||
---|---|---|
149 | 149 |
/// <param name="e"></param> |
150 | 150 |
private void btnDataEntry_Click(object sender, EventArgs e) |
151 | 151 |
{ |
152 |
if (MessageBox.Show("明細内容を反映します、よろしいでしょうか。", |
|
153 |
"登録確認", |
|
154 |
MessageBoxButtons.OKCancel, |
|
155 |
MessageBoxIcon.Question) == DialogResult.Cancel) return; |
|
156 |
|
|
157 | 152 |
GetParameter(); |
158 | 153 |
m_ResultVal = DialogResult.OK; |
159 | 154 |
this.Close(); |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/ProcessControl.cs | ||
---|---|---|
92 | 92 |
// 自プロセスは処理しない |
93 | 93 |
if (CurRec.Key == s_CurrentProcessNo) continue; |
94 | 94 |
|
95 |
// 総務部所属者はデータ参照出来る処理がある |
|
96 |
if (CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision) |
|
97 |
{ |
|
98 |
if (!ClsSecurityPermission.PermitGeneralAffairsDevision(CurRec.Key)) continue; |
|
99 |
} |
|
100 |
|
|
101 | 95 |
//イベントの登録 |
102 | 96 |
EventHandler handle = null; |
103 | 97 |
switch (CurRec.Key) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs | ||
---|---|---|
371 | 371 |
private bool m_initDataLoad = true; |
372 | 372 |
|
373 | 373 |
/// <summary> |
374 |
/// ??????????f?[?^?J?E???g |
|
375 |
/// </summary> |
|
376 |
//private int m_initDataCount = 0; |
|
377 |
|
|
378 |
/// <summary> |
|
379 | 374 |
/// ?N???t???O |
380 | 375 |
/// </summary> |
381 | 376 |
private int m_ExecuteFlg = 0; |
... | ... | |
431 | 426 |
private int m_ParaTargetMonth = 0; |
432 | 427 |
|
433 | 428 |
/// <summary> |
429 |
/// ?A?? |
|
430 |
/// </summary> |
|
431 |
private int m_ParaTargetSeqNo = 0; |
|
432 |
|
|
433 |
/// <summary> |
|
434 | 434 |
/// ?x???S????R?[?h |
435 | 435 |
/// </summary> |
436 | 436 |
private int m_PaymentPersonCode = 0; |
... | ... | |
446 | 446 |
private int m_Select_DataCount = 0; |
447 | 447 |
|
448 | 448 |
/// <summary> |
449 |
/// ?S??????F??? |
|
450 |
/// </summary> |
|
451 |
PaymentApprovalInfo m_PaInfo = null; |
|
452 |
|
|
453 |
/// <summary> |
|
454 | 449 |
/// ?I???{?^???????t???O |
455 | 450 |
/// </summary> |
456 | 451 |
private bool m_CloseingProcessOn = true; |
... | ... | |
508 | 503 |
} |
509 | 504 |
#endregion |
510 | 505 |
|
506 |
#region ?A?? |
|
507 |
/// <summary> |
|
508 |
/// ?A?? |
|
509 |
/// </summary> |
|
510 |
public int ParaTargetSeqNo |
|
511 |
{ |
|
512 |
get { return m_ParaTargetSeqNo; } |
|
513 |
set { m_ParaTargetSeqNo = value; } |
|
514 |
} |
|
515 |
#endregion |
|
516 |
|
|
511 | 517 |
#region ??t?? |
512 | 518 |
/// <summary> |
513 | 519 |
/// ??t?? |
他の形式にエクスポート: Unified diff