リビジョン 317
承認処理:申請時終了確認メッセージ追加
積算見積り衆力:不要ロジック削除
交通費・購入品入力:台帳カラム計算バグ修正
請求まとめ修正中
エクセル:シート印刷時をカラーからモノクロへ変更
| branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs | ||
|---|---|---|
| 14 | 14 |
/// <summary> |
| 15 | 15 |
/// 本体バージョン |
| 16 | 16 |
/// </summary> |
| 17 |
public static int s_SystemVersion = 137;
|
|
| 17 |
public static int s_SystemVersion = 139;
|
|
| 18 | 18 |
|
| 19 | 19 |
/// <summary> |
| 20 | 20 |
/// コピー・環境バージョン |
| branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs | ||
|---|---|---|
| 46 | 46 |
#endregion |
| 47 | 47 |
|
| 48 | 48 |
#region 変数 |
| 49 |
/// <summary> |
|
| 50 |
/// 工事施工台帳支払い実績先頭カラム数 |
|
| 51 |
/// </summary> |
|
| 52 |
private static int m_LedgerColumnCount = 0; |
|
| 53 | 49 |
#endregion |
| 54 | 50 |
|
| 55 | 51 |
#region 対象月の工事詳細台帳実行データを作成する(交通費・購入品等のみ) |
| ... | ... | |
| 516 | 512 |
/// <summary> |
| 517 | 513 |
/// 工事詳細台帳より支払金額グリッドの先頭カラム数を取得する |
| 518 | 514 |
/// </summary> |
| 519 |
private static void GetLedgerColumnCount()
|
|
| 515 |
public static int GetLedgerColumnCount()
|
|
| 520 | 516 |
{
|
| 521 | 517 |
try |
| 522 | 518 |
{
|
| 523 |
m_LedgerColumnCount = Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1;
|
|
| 519 |
return (Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1);
|
|
| 524 | 520 |
} |
| 525 | 521 |
catch (System.Exception ex) |
| 526 | 522 |
{
|
| 527 | 523 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
| 524 |
return 0; |
|
| 528 | 525 |
} |
| 529 | 526 |
} |
| 530 | 527 |
#endregion |
| ... | ... | |
| 914 | 911 |
/// <returns></returns> |
| 915 | 912 |
public static int CalcTargetMonthToColumn(DateTime StartDate, DateTime TargetMonth) |
| 916 | 913 |
{
|
| 917 |
int Columncnt = Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length;
|
|
| 914 |
int Columncnt = GetLedgerColumnCount();
|
|
| 918 | 915 |
try |
| 919 | 916 |
{
|
| 920 | 917 |
// 処理対象年月日を対象月月初日に変換する |
| ... | ... | |
| 1274 | 1271 |
try |
| 1275 | 1272 |
{
|
| 1276 | 1273 |
// 工事番号が0の場合は処理しない |
| 1277 |
if (ExcuteRec.ConstructionCode == 0) return false;
|
|
| 1274 |
if (ExcuteRec.ConstructionCode == 0) return true;
|
|
| 1278 | 1275 |
// グループ番号が0の場合は処理しない |
| 1279 |
if (ExcuteRec.GroupCount == 0) return false;
|
|
| 1276 |
if (ExcuteRec.GroupCount == 0) return true;
|
|
| 1280 | 1277 |
|
| 1281 | 1278 |
// SQL作成 |
| 1282 | 1279 |
StringBuilder strSQL = new StringBuilder(); |
| ... | ... | |
| 1425 | 1422 |
|
| 1426 | 1423 |
ExcuteRec.LineCount = CommonMotions.cnvInt(objRec[2]); |
| 1427 | 1424 |
DetailRec.LineCount = ExcuteRec.LineCount; |
| 1425 |
|
|
| 1426 |
// ----- 明細文字をセットする |
|
| 1427 |
if (!DetailDB.UpdateFeild(DetailRec.ConstructionCode, |
|
| 1428 |
(int)IOConstructionLedgerDetail.TableColumn.SecondString, |
|
| 1429 |
DetailRec.SecondString, |
|
| 1430 |
DetailRec.GroupCount, |
|
| 1431 |
DetailRec.LineCount, |
|
| 1432 |
false)) |
|
| 1433 |
{
|
|
| 1434 |
return false; |
|
| 1435 |
} |
|
| 1436 |
|
|
| 1428 | 1437 |
if (CommonMotions.cnvInt(objRec[3]) == 0) |
| 1429 | 1438 |
{
|
| 1430 | 1439 |
// 実行データが存在しない場合 |
| ... | ... | |
| 1447 | 1456 |
return false; |
| 1448 | 1457 |
} |
| 1449 | 1458 |
|
| 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 |
} |
|
| 1460 |
|
|
| 1461 | 1459 |
List<int> ConstrCodeList = new List<int>(); |
| 1462 | 1460 |
// 更新対象リストへ追加 |
| 1463 | 1461 |
ConstrCodeList.Add(ExcuteRec.ConstructionCode); |
| branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
|---|---|---|
| 1433 | 1433 |
|
| 1434 | 1434 |
// パラメータセット |
| 1435 | 1435 |
frm.ConstructionCode = CurrentPara.IntExecParameter[0]; |
| 1436 |
if (CurrentPara.BoolExecParameter.Count > 0) frm.ReqSumDspFlag = CurrentPara.BoolExecParameter[0]; |
|
| 1436 | 1437 |
|
| 1437 | 1438 |
// フォーム表示 |
| 1438 | 1439 |
frm.ShowDialog(); |
| branches/src/ProcessManagement/ProcessManagement/DataModel/PaymentDataDetail.cs | ||
|---|---|---|
| 23 | 23 |
#endregion |
| 24 | 24 |
|
| 25 | 25 |
#region メンバ変数 |
| 26 |
private int m_CompanyCode = 0; // 協力会社コード |
|
| 27 |
private int m_TargetDate = 0; // 対象年月 |
|
| 28 |
private int m_SeqNo = 0; // 連番 |
|
| 29 |
private int m_LineCount = 0; // 行番号 |
|
| 30 |
private long m_BillPrice = 0; // 請求金額 |
|
| 31 |
private long m_DiscountPrice = 0; // 値引き金額 |
|
| 32 |
private long m_OffsetPrice = 0; // 相殺金額 |
|
| 33 |
private long m_NextCoPrice = 0; // 次回繰越 |
|
| 34 |
private long m_HighwPrice = 0; // 高速代 |
|
| 35 |
private long m_HardwPrice = 0; // 金物代 |
|
| 36 |
private long m_IndsWasteTax = 0; // 産廃税 |
|
| 37 |
private long m_CnstrPrice = 0; // 協力金 |
|
| 38 |
private int m_CnstrPriceExist = -1; // 協力金有無 |
|
| 39 |
private int m_ApprovalPersonCode = 0; // 承認担当者コード |
|
| 40 |
private DateTime m_ApprovalDate = DateTime.Now; // 担当者承認日付
|
|
| 41 |
private int m_ApprovalEndFlg = 0; // 承認完了フラグ |
|
| 42 |
private DateTime m_EntryDate = DateTime.Now; // 登録日付 |
|
| 43 |
private DateTime m_UpdateDate = DateTime.Now; // 更新日付 |
|
| 26 |
private int m_CompanyCode = 0; // 協力会社コード
|
|
| 27 |
private int m_TargetDate = 0; // 対象年月
|
|
| 28 |
private int m_SeqNo = 0; // 連番
|
|
| 29 |
private int m_LineCount = 0; // 行番号
|
|
| 30 |
private long m_BillPrice = 0; // 請求金額
|
|
| 31 |
private long m_DiscountPrice = 0; // 値引き金額
|
|
| 32 |
private long m_OffsetPrice = 0; // 相殺金額
|
|
| 33 |
private long m_NextCoPrice = 0; // 次回繰越
|
|
| 34 |
private long m_HighwPrice = 0; // 高速代
|
|
| 35 |
private long m_HardwPrice = 0; // 金物代
|
|
| 36 |
private long m_IndsWasteTax = 0; // 産廃税
|
|
| 37 |
private long m_CnstrPrice = 0; // 協力金
|
|
| 38 |
private int m_CnstrPriceExist = -1; // 協力金有無
|
|
| 39 |
private int m_ApprovalPersonCode = 0; // 承認担当者コード
|
|
| 40 |
private DateTime m_ApprovalDate = DateTime.MinValue; // 担当者承認日付
|
|
| 41 |
private int m_ApprovalEndFlg = 0; // 承認完了フラグ
|
|
| 42 |
private DateTime m_EntryDate = DateTime.Now; // 登録日付
|
|
| 43 |
private DateTime m_UpdateDate = DateTime.Now; // 更新日付
|
|
| 44 | 44 |
|
| 45 | 45 |
#endregion |
| 46 | 46 |
|
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmAppManAux.cs | ||
|---|---|---|
| 669 | 669 |
bSuccess = false; |
| 670 | 670 |
break; |
| 671 | 671 |
} |
| 672 |
// 支払明細データ更新 |
|
| 673 |
if (!PaymentDataDetailUpdate(PayDetailDB, PaIWork, nAppStat)) |
|
| 674 |
{
|
|
| 675 |
bSuccess = false; |
|
| 676 |
break; |
|
| 677 |
} |
|
| 678 | 672 |
break; |
| 679 | 673 |
case (int)AppStatusDef.NoApproval: |
| 680 | 674 |
// 3:不承認・保留・取消 |
| ... | ... | |
| 794 | 788 |
{
|
| 795 | 789 |
case (int)AppStatusDef.Pettion: |
| 796 | 790 |
// 申請時 |
| 797 |
strActionSQL.AppendFormat(" APPROVALPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
|
|
| 798 |
strActionSQL.AppendFormat(", APPROVALDATE = STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString());
|
|
| 791 |
strActionSQL.AppendFormat(" APPROVALDATE = STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString());
|
|
| 799 | 792 |
break; |
| 800 | 793 |
case (int)AppStatusDef.Approval: |
| 801 | 794 |
// 承認時 |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPerson.cs | ||
|---|---|---|
| 427 | 427 |
/// <param name="e"></param> |
| 428 | 428 |
private void btnEnd_Click(object sender, EventArgs e) |
| 429 | 429 |
{
|
| 430 |
// ?I?????\???`?F?b?N |
|
| 431 |
if (txtHoppesDate.Enabled) |
|
| 432 |
{
|
|
| 433 |
|
|
| 434 |
DialogResult dtRet = MessageBox.Show("?\?????????????A?I??????????H"
|
|
| 435 |
, "?I???m?F" |
|
| 436 |
, MessageBoxButtons.OKCancel |
|
| 437 |
, MessageBoxIcon.Question); |
|
| 438 |
if (dtRet == DialogResult.Cancel) return; |
|
| 439 |
} |
|
| 440 |
|
|
| 430 | 441 |
m_bEndFlg = true; |
| 431 | 442 |
this.Close(); |
| 432 | 443 |
} |
| 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 |
|
|
| 1411 | 1408 |
// 完了メッセージ |
| 1412 | 1409 |
CommonMotions.EntryEndMessage("コメントデータ");
|
| 1413 | 1410 |
} |
| ... | ... | |
| 1485 | 1482 |
// データ登録 |
| 1486 | 1483 |
if (!EntryComment()) return; |
| 1487 | 1484 |
|
| 1488 |
// データ変更フラグON |
|
| 1489 |
m_bChengeAns = true; |
|
| 1490 |
|
|
| 1491 | 1485 |
// 完了メッセージ |
| 1492 | 1486 |
CommonMotions.EntryEndMessage("コメントデータ");
|
| 1493 | 1487 |
} |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs | ||
|---|---|---|
| 411 | 411 |
/// <param name="e"></param> |
| 412 | 412 |
private void btnEnd_Click(object sender, EventArgs e) |
| 413 | 413 |
{
|
| 414 |
// ?I?????\???`?F?b?N |
|
| 415 |
if (txtHoppesDate.Enabled) |
|
| 416 |
{
|
|
| 417 |
|
|
| 418 |
DialogResult dtRet = MessageBox.Show("?\?????????????A?I??????????H"
|
|
| 419 |
, "?I???m?F" |
|
| 420 |
, MessageBoxButtons.OKCancel |
|
| 421 |
, MessageBoxIcon.Question); |
|
| 422 |
if (dtRet == DialogResult.Cancel) return; |
|
| 423 |
} |
|
| 424 |
|
|
| 414 | 425 |
m_bEndFlg = true; |
| 415 | 426 |
this.Close(); |
| 416 | 427 |
} |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs | ||
|---|---|---|
| 1471 | 1471 |
} |
| 1472 | 1472 |
// データ登録 |
| 1473 | 1473 |
if (!EntryComment(m_ApprovalCode)) return; |
| 1474 |
|
|
| 1475 |
// 変更フラグON |
|
| 1476 |
m_bChengeAns = true; |
|
| 1477 | 1474 |
|
| 1478 | 1475 |
// 完了メッセージ |
| 1479 | 1476 |
CommonMotions.EntryEndMessage("コメントデータ");
|
| ... | ... | |
| 1552 | 1549 |
// データ登録 |
| 1553 | 1550 |
if (!EntryComment(m_ApprovalCode)) return; |
| 1554 | 1551 |
|
| 1555 |
// 変更フラグON |
|
| 1556 |
m_bChengeAns = true; |
|
| 1557 |
|
|
| 1558 | 1552 |
// 完了メッセージ |
| 1559 | 1553 |
CommonMotions.EntryEndMessage("コメントデータ");
|
| 1560 | 1554 |
} |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs | ||
|---|---|---|
| 647 | 647 |
private bool m_RollBackJoinLedger = false; |
| 648 | 648 |
|
| 649 | 649 |
// *-----* ????????????A?g *-----* |
| 650 |
|
|
| 650 | 651 |
/// <summary> |
| 651 |
/// ?????????A?g?p?e?n???h??
|
|
| 652 |
/// ????????I???g?p???t???O
|
|
| 652 | 653 |
/// </summary> |
| 653 |
private FrmRequestSummaryList m_FrmRequestSummaryList = null; |
|
| 654 |
|
|
| 654 |
private bool m_ReqSumSelFlag = false; |
|
| 655 | 655 |
/// <summary> |
| 656 |
/// ?????????A?g???z
|
|
| 656 |
/// ????????\?????t???O
|
|
| 657 | 657 |
/// </summary> |
| 658 |
private int m_AddingRequestPrice = 0;
|
|
| 658 |
private bool m_ReqSumDspFlag = false;
|
|
| 659 | 659 |
/// <summary> |
| 660 |
/// ????????I???g?p???t???O
|
|
| 660 |
/// ???????????
|
|
| 661 | 661 |
/// </summary> |
| 662 |
private bool m_ReqSumFlag = false; |
|
| 662 |
private int m_ReqSumTargetMonth = 0; |
|
| 663 |
/// <summary> |
|
| 664 |
/// ????????????R?[?h |
|
| 665 |
/// </summary> |
|
| 666 |
private int m_ReqSumCompany = 0; |
|
| 663 | 667 |
|
| 664 | 668 |
/// <summary> |
| 665 |
/// ???????????
|
|
| 669 |
/// ?????? |
|
| 666 | 670 |
/// </summary> |
| 667 |
private int m_ReqSumTargetMonth = 0; |
|
| 671 |
private int m_TargetDetailNo = -1; |
|
| 672 |
/// <summary> |
|
| 673 |
/// ??????J??????u |
|
| 674 |
/// </summary> |
|
| 675 |
private int m_TargetColumn = 0; |
|
| 676 |
/// <summary> |
|
| 677 |
/// ?????????A?g???z |
|
| 678 |
/// </summary> |
|
| 679 |
private int m_AddingRequestPrice = 0; |
|
| 668 | 680 |
|
| 669 | 681 |
/// <summary> |
| 670 |
/// ????????????R?[?h
|
|
| 682 |
/// ???????X?g
|
|
| 671 | 683 |
/// </summary> |
| 672 |
private int m_ReqSumCompany = 0; |
|
| 684 |
private List<BillingDataDetail> m_BillDetailList = new List<BillingDataDetail>(); |
|
| 685 |
|
|
| 673 | 686 |
// *-----* ????????????A?g *-----* |
| 674 | 687 |
|
| 675 | 688 |
#endregion |
| ... | ... | |
| 818 | 831 |
} |
| 819 | 832 |
|
| 820 | 833 |
// *-----* ????????????A?g *-----* |
| 821 |
/// <summary> |
|
| 822 |
/// ?????????A?g?p?e?n???h?? |
|
| 823 |
/// </summary> |
|
| 824 |
public FrmRequestSummaryList FrmRequestSummaryList |
|
| 825 |
{
|
|
| 826 |
set { m_FrmRequestSummaryList = value; }
|
|
| 827 |
} |
|
| 828 | 834 |
|
| 829 | 835 |
/// <summary> |
| 830 |
/// ?????????A?g???z
|
|
| 836 |
/// ????????I???g?p???t???O
|
|
| 831 | 837 |
/// </summary> |
| 832 |
public int AddingRequestPrice
|
|
| 838 |
public bool ReqSumSelFlag
|
|
| 833 | 839 |
{
|
| 834 |
get { return m_AddingRequestPrice; }
|
|
| 835 |
set { m_AddingRequestPrice = value; }
|
|
| 840 |
get { return m_ReqSumSelFlag; }
|
|
| 841 |
set { m_ReqSumSelFlag = value; }
|
|
| 836 | 842 |
} |
| 837 |
|
|
| 838 | 843 |
/// <summary> |
| 839 |
/// ????????I???g?p???t???O
|
|
| 844 |
/// ????????\?????t???O
|
|
| 840 | 845 |
/// </summary> |
| 841 |
public bool ReqestSummaryFlag
|
|
| 846 |
public bool ReqSumDspFlag
|
|
| 842 | 847 |
{
|
| 843 |
get { return m_ReqSumFlag; }
|
|
| 844 |
set { m_ReqSumFlag = value; }
|
|
| 848 |
get { return m_ReqSumDspFlag; }
|
|
| 849 |
set { m_ReqSumDspFlag = value; }
|
|
| 845 | 850 |
} |
| 846 | 851 |
/// <summary> |
| 847 | 852 |
/// ??????????? |
| ... | ... | |
| 860 | 865 |
set { m_ReqSumCompany = value; }
|
| 861 | 866 |
} |
| 862 | 867 |
|
| 868 |
/// <summary> |
|
| 869 |
/// ?????? |
|
| 870 |
/// </summary> |
|
| 871 |
public int TargetDetailNo |
|
| 872 |
{
|
|
| 873 |
get { return m_TargetDetailNo; }
|
|
| 874 |
set { m_TargetDetailNo = value; }
|
|
| 875 |
} |
|
| 876 |
/// <summary> |
|
| 877 |
/// ??????J??????u |
|
| 878 |
/// </summary> |
|
| 879 |
public int TargetColumn |
|
| 880 |
{
|
|
| 881 |
get { return m_TargetColumn; }
|
|
| 882 |
set { m_TargetColumn = value; }
|
|
| 883 |
} |
|
| 884 |
/// <summary> |
|
| 885 |
/// ?????????A?g???z |
|
| 886 |
/// </summary> |
|
| 887 |
public int AddingRequestPrice |
|
| 888 |
{
|
|
| 889 |
get { return m_AddingRequestPrice; }
|
|
| 890 |
set { m_AddingRequestPrice = value; }
|
|
| 891 |
} |
|
| 892 |
/// <summary> |
|
| 893 |
/// ???????X?g |
|
| 894 |
/// </summary> |
|
| 895 |
public List<BillingDataDetail> BillDetailList |
|
| 896 |
{
|
|
| 897 |
get { return m_BillDetailList; }
|
|
| 898 |
set { m_BillDetailList = value; }
|
|
| 899 |
} |
|
| 863 | 900 |
// *-----* ?????????? *-----* |
| 864 | 901 |
|
| 865 | 902 |
#endregion |
| ... | ... | |
| 932 | 969 |
{
|
| 933 | 970 |
if (!m_SubForm) m_CloseingProcessOn = true; |
| 934 | 971 |
|
| 935 |
// ?????A?g?????I?? |
|
| 936 |
if (m_FrmRequestSummaryList != null) |
|
| 937 |
{
|
|
| 938 |
m_FrmRequestSummaryList.EndLinkProc(); |
|
| 939 |
} |
|
| 940 |
|
|
| 941 | 972 |
m_EndButton = DialogResult.Cancel; |
| 942 | 973 |
|
| 943 | 974 |
this.Close(); |
| ... | ... | |
| 1018 | 1049 |
m_bChengeAns = false; |
| 1019 | 1050 |
|
| 1020 | 1051 |
// ??????????????o?? |
| 1021 |
if (m_ReqSumFlag) |
|
| 1052 |
if (m_ReqSumSelFlag)
|
|
| 1022 | 1053 |
{
|
| 1023 | 1054 |
InitReqSum(); |
| 1024 | 1055 |
} |
| ... | ... | |
| 1245 | 1276 |
if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridColumn.TitleFlg].Value) == 1) return; |
| 1246 | 1277 |
|
| 1247 | 1278 |
// ?????????A?g |
| 1248 |
if (m_ReqSumFlag) |
|
| 1279 |
if (m_ReqSumSelFlag)
|
|
| 1249 | 1280 |
{
|
| 1250 |
BillingLinkOutPut(); |
|
| 1281 |
EventArgs wkE = new EventArgs(); |
|
| 1282 |
btnSelect_Click(sender, wkE); |
|
| 1251 | 1283 |
return; |
| 1252 | 1284 |
} |
| 1253 | 1285 |
|
| ... | ... | |
| 1404 | 1436 |
|
| 1405 | 1437 |
CommonMotions.EntryEndMessage("?H???????f?[?^");
|
| 1406 | 1438 |
|
| 1407 |
// ?????A?g?????I?? |
|
| 1408 |
if (m_FrmRequestSummaryList != null) |
|
| 1409 |
{
|
|
| 1410 |
m_FrmRequestSummaryList.EndLinkProc(); |
|
| 1411 |
} |
|
| 1412 |
|
|
| 1413 | 1439 |
m_EndButton = DialogResult.OK; |
| 1414 | 1440 |
|
| 1415 | 1441 |
// ?I?? |
| ... | ... | |
| 1436 | 1462 |
|
| 1437 | 1463 |
CommonMotions.RemoveEndMessage("?H???????f?[?^");
|
| 1438 | 1464 |
|
| 1439 |
// ?????A?g?????I?? |
|
| 1440 |
if (m_FrmRequestSummaryList != null) |
|
| 1441 |
{
|
|
| 1442 |
m_FrmRequestSummaryList.EndLinkProc(); |
|
| 1443 |
} |
|
| 1444 |
|
|
| 1445 | 1465 |
// ?I?? |
| 1446 | 1466 |
this.Close(); |
| 1447 | 1467 |
} |
| ... | ... | |
| 1475 | 1495 |
} |
| 1476 | 1496 |
#endregion |
| 1477 | 1497 |
|
| 1498 |
#region ?x?????V?K????{?^??????
|
|
| 1499 |
/// <summary> |
|
| 1500 |
/// ?x?????V?K????{?^??????
|
|
| 1501 |
/// </summary> |
|
| 1502 |
/// <param name="sender"></param> |
|
| 1503 |
/// <param name="e"></param> |
|
| 1504 |
private void btnCreate_Click(object sender, EventArgs e) |
|
| 1505 |
{
|
|
| 1506 |
// ?V?K?????? |
|
| 1507 |
if (!ReqSumNewMakeOutPut()) return; |
|
| 1508 |
this.Close(); |
|
| 1509 |
} |
|
| 1510 |
#endregion |
|
| 1511 |
|
|
| 1512 |
#region ?x?????I???{?^??????
|
|
| 1513 |
/// <summary> |
|
| 1514 |
/// ?x?????I???{?^??????
|
|
| 1515 |
/// </summary> |
|
| 1516 |
/// <param name="sender"></param> |
|
| 1517 |
/// <param name="e"></param> |
|
| 1518 |
private void btnSelect_Click(object sender, EventArgs e) |
|
| 1519 |
{
|
|
| 1520 |
// ?I???s?Z?b?g |
|
| 1521 |
if (!ReqSumSelectOutPut()) return; |
|
| 1522 |
this.Close(); |
|
| 1523 |
} |
|
| 1524 |
#endregion |
|
| 1525 |
|
|
| 1478 | 1526 |
// ----------- ?f?[?^?R???o?[?g |
| 1479 | 1527 |
#region ?f?[?^?R???o?[?g |
| 1480 | 1528 |
/// <summary> |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs | ||
|---|---|---|
| 30 | 30 |
/// </summary> |
| 31 | 31 |
private void InitializeComponent() |
| 32 | 32 |
{
|
| 33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
| 40 | 40 |
this.label1 = new System.Windows.Forms.Label(); |
| 41 | 41 |
this.btnDataDelete = new System.Windows.Forms.Button(); |
| 42 | 42 |
this.btnDataEntry = new System.Windows.Forms.Button(); |
| ... | ... | |
| 790 | 790 |
| System.Windows.Forms.AnchorStyles.Right))); |
| 791 | 791 |
this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |
| 792 | 792 |
this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
| 793 |
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
| 794 |
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
|
| 795 |
dataGridViewCellStyle1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
|
|
| 796 |
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
| 797 |
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
| 798 |
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
| 799 |
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
| 800 |
this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
|
| 793 |
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
| 794 |
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
|
|
| 795 |
dataGridViewCellStyle8.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
|
|
| 796 |
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
| 797 |
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
| 798 |
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
| 799 |
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
| 800 |
this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
|
|
| 801 | 801 |
this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| 802 | 802 |
this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
| 803 | 803 |
this.Column1, |
| ... | ... | |
| 847 | 847 |
// |
| 848 | 848 |
// Column1 |
| 849 | 849 |
// |
| 850 |
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
| 851 |
this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
|
|
| 850 |
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
| 851 |
this.Column1.DefaultCellStyle = dataGridViewCellStyle9;
|
|
| 852 | 852 |
this.Column1.Frozen = true; |
| 853 | 853 |
this.Column1.HeaderText = "№"; |
| 854 | 854 |
this.Column1.Name = "Column1"; |
| ... | ... | |
| 907 | 907 |
// |
| 908 | 908 |
// Column5 |
| 909 | 909 |
// |
| 910 |
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
| 911 |
this.Column5.DefaultCellStyle = dataGridViewCellStyle3;
|
|
| 910 |
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
| 911 |
this.Column5.DefaultCellStyle = dataGridViewCellStyle10;
|
|
| 912 | 912 |
this.Column5.Frozen = true; |
| 913 | 913 |
this.Column5.HeaderText = "項 目"; |
| 914 | 914 |
this.Column5.Name = "Column5"; |
| ... | ... | |
| 919 | 919 |
// |
| 920 | 920 |
// Column6 |
| 921 | 921 |
// |
| 922 |
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
| 923 |
this.Column6.DefaultCellStyle = dataGridViewCellStyle4;
|
|
| 922 |
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
| 923 |
this.Column6.DefaultCellStyle = dataGridViewCellStyle11;
|
|
| 924 | 924 |
this.Column6.Frozen = true; |
| 925 | 925 |
this.Column6.HeaderText = "業 種"; |
| 926 | 926 |
this.Column6.Name = "Column6"; |
| ... | ... | |
| 958 | 958 |
// |
| 959 | 959 |
// Column7 |
| 960 | 960 |
// |
| 961 |
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
| 962 |
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
|
| 963 |
dataGridViewCellStyle5.Format = "N0";
|
|
| 964 |
dataGridViewCellStyle5.NullValue = null;
|
|
| 965 |
this.Column7.DefaultCellStyle = dataGridViewCellStyle5;
|
|
| 961 |
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
| 962 |
dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
|
| 963 |
dataGridViewCellStyle12.Format = "N0";
|
|
| 964 |
dataGridViewCellStyle12.NullValue = null;
|
|
| 965 |
this.Column7.DefaultCellStyle = dataGridViewCellStyle12;
|
|
| 966 | 966 |
this.Column7.Frozen = true; |
| 967 | 967 |
this.Column7.HeaderText = "予定(見積)金額"; |
| 968 | 968 |
this.Column7.Name = "Column7"; |
| ... | ... | |
| 973 | 973 |
// |
| 974 | 974 |
// Column12 |
| 975 | 975 |
// |
| 976 |
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
| 977 |
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
|
|
| 978 |
this.Column12.DefaultCellStyle = dataGridViewCellStyle6;
|
|
| 976 |
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
| 977 |
dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
|
|
| 978 |
this.Column12.DefaultCellStyle = dataGridViewCellStyle13;
|
|
| 979 | 979 |
this.Column12.Frozen = true; |
| 980 | 980 |
this.Column12.HeaderText = "実 行 金 額"; |
| 981 | 981 |
this.Column12.Name = "Column12"; |
| ... | ... | |
| 986 | 986 |
// |
| 987 | 987 |
// Column9 |
| 988 | 988 |
// |
| 989 |
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
| 990 |
this.Column9.DefaultCellStyle = dataGridViewCellStyle7;
|
|
| 989 |
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
|
| 990 |
this.Column9.DefaultCellStyle = dataGridViewCellStyle14;
|
|
| 991 | 991 |
this.Column9.Frozen = true; |
| 992 | 992 |
this.Column9.HeaderText = "比率(%)"; |
| 993 | 993 |
this.Column9.Name = "Column9"; |
| ... | ... | |
| 1219 | 1219 |
this.btnSelect.Text = "選 択"; |
| 1220 | 1220 |
this.btnSelect.UseVisualStyleBackColor = false; |
| 1221 | 1221 |
this.btnSelect.Visible = false; |
| 1222 |
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); |
|
| 1222 | 1223 |
// |
| 1223 | 1224 |
// btnCreate |
| 1224 | 1225 |
// |
| ... | ... | |
| 1233 | 1234 |
this.btnCreate.Text = "新 規"; |
| 1234 | 1235 |
this.btnCreate.UseVisualStyleBackColor = false; |
| 1235 | 1236 |
this.btnCreate.Visible = false; |
| 1237 |
this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click); |
|
| 1236 | 1238 |
// |
| 1237 | 1239 |
// grpExample1 |
| 1238 | 1240 |
// |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx | ||
|---|---|---|
| 117 | 117 |
<resheader name="writer"> |
| 118 | 118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| 119 | 119 |
</resheader> |
| 120 |
<metadata name="lblCellTotal.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
|
| 121 |
<value>True</value> |
|
| 122 |
</metadata> |
|
| 120 | 123 |
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| 121 | 124 |
<value>True</value> |
| 122 | 125 |
</metadata> |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs | ||
|---|---|---|
| 1229 | 1229 |
} |
| 1230 | 1230 |
else |
| 1231 | 1231 |
{ // 明細行を請求まとめよりの起動時は分ける
|
| 1232 |
if (m_ReqSumFlag) |
|
| 1232 |
if (m_ReqSumSelFlag)
|
|
| 1233 | 1233 |
{
|
| 1234 | 1234 |
int nGroupCnt = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value); |
| 1235 | 1235 |
if (nGroupCnt == (int)DataGroup.Empty |
| ... | ... | |
| 3480 | 3480 |
} |
| 3481 | 3481 |
#endregion |
| 3482 | 3482 |
|
| 3483 |
#region 行を追加する
|
|
| 3483 |
#region 行追加が可能な位置かを判定し、行番号をセットする
|
|
| 3484 | 3484 |
/// <summary> |
| 3485 |
/// 行を追加する
|
|
| 3485 |
/// 行追加が可能な位置かを判定し、行番号をセットする
|
|
| 3486 | 3486 |
/// </summary> |
| 3487 |
private void AddLineData()
|
|
| 3487 |
private bool CheckNewMakeRow(ref int InsertCnt)
|
|
| 3488 | 3488 |
{
|
| 3489 | 3489 |
try |
| 3490 | 3490 |
{
|
| 3491 | 3491 |
DataGridView dgv = dgvAllDisplay; |
| 3492 | 3492 |
DataGridViewRow CurRow = dgv.CurrentRow; |
| 3493 | 3493 |
|
| 3494 |
int InsertCnt = 0; |
|
| 3494 |
bool bRet = false; |
|
| 3495 |
InsertCnt = 0; |
|
| 3495 | 3496 |
// グループカウントを取得する |
| 3496 | 3497 |
int GroupCount = 0; |
| 3497 | 3498 |
GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value); |
| ... | ... | |
| 3500 | 3501 |
{
|
| 3501 | 3502 |
// 施工費グループの場合は下に追加 |
| 3502 | 3503 |
InsertCnt = CurRow.Index + 1; |
| 3504 |
bRet = true; |
|
| 3503 | 3505 |
} |
| 3504 | 3506 |
else if (GroupCount == 0) |
| 3505 |
{ // 空白行で施工費のすぐ後は対象とする
|
|
| 3507 |
{
|
|
| 3508 |
// 空白行で施工費のすぐ後は対象とする |
|
| 3506 | 3509 |
DataGridViewRow wrkRow = dgv.Rows[dgv.CurrentRow.Index - 1]; |
| 3507 |
GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value); |
|
| 3508 |
if (GroupCount == (int)DataGroup.ConstructionCosts) |
|
| 3510 |
if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)DataGroup.ConstructionCosts) |
|
| 3509 | 3511 |
{
|
| 3510 | 3512 |
// 空白行は上に追加 |
| 3511 | 3513 |
InsertCnt = CurRow.Index; |
| 3514 |
bRet = true; |
|
| 3512 | 3515 |
} |
| 3513 | 3516 |
} |
| 3514 | 3517 |
|
| 3518 |
return bRet; |
|
| 3519 |
} |
|
| 3520 |
catch (System.Exception ex) |
|
| 3521 |
{
|
|
| 3522 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 3523 |
return false; |
|
| 3524 |
} |
|
| 3525 |
} |
|
| 3526 |
#endregion |
|
| 3527 |
|
|
| 3528 |
#region 行を追加する |
|
| 3529 |
/// <summary> |
|
| 3530 |
/// 行を追加する |
|
| 3531 |
/// </summary> |
|
| 3532 |
private void AddLineData() |
|
| 3533 |
{
|
|
| 3534 |
try |
|
| 3535 |
{
|
|
| 3536 |
DataGridView dgv = dgvAllDisplay; |
|
| 3537 |
DataGridViewRow CurRow = dgv.CurrentRow; |
|
| 3538 |
|
|
| 3539 |
// 追加できるかの判定 |
|
| 3540 |
int InsertCnt = 0; |
|
| 3541 |
if(!CheckNewMakeRow(ref InsertCnt)) return; |
|
| 3542 |
|
|
| 3515 | 3543 |
// 選択行が不正ならば処理しない |
| 3516 | 3544 |
if (InsertCnt == 0) return; |
| 3517 | 3545 |
|
| 3546 |
int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value); |
|
| 3547 |
|
|
| 3518 | 3548 |
// 現在行の色をデフォルト色へ変更 |
| 3519 | 3549 |
DefaultRowChangeColor(m_BeforeGridRow); |
| 3520 | 3550 |
m_BeforeGridRow = InsertCnt; |
| ... | ... | |
| 3549 | 3579 |
.Max(y => CommonMotions.cnvInt(y.Cells[(int)GridColumn.DetailNo].Value)) + 1; |
| 3550 | 3580 |
SetData.Cells[(int)GridColumn.DetailNo].Value = MaxCount; |
| 3551 | 3581 |
|
| 3582 |
// 請求まとめ選択時 |
|
| 3583 |
if (m_ReqSumSelFlag) |
|
| 3584 |
{
|
|
| 3585 |
// 協力業者セット |
|
| 3586 |
SetCompanyData(SetData); |
|
| 3587 |
} |
|
| 3588 |
|
|
| 3552 | 3589 |
// 行番号を振りなおす |
| 3553 | 3590 |
int StLineCnt = 0; |
| 3554 | 3591 |
//if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts) |
| ... | ... | |
| 7589 | 7626 |
|
| 7590 | 7627 |
#region 4.請求まとめ選択処理↓↓ |
| 7591 | 7628 |
// ---------- 4.請求まとめ選択処理↓↓ |
| 7592 |
#region 請求処理連携時アウトプット処理
|
|
| 7629 |
#region 請求まとめ行選択処理
|
|
| 7593 | 7630 |
/// <summary> |
| 7594 |
/// 請求処理連携時アウトプット処理
|
|
| 7631 |
/// 請求まとめ行選択処理
|
|
| 7595 | 7632 |
/// </summary> |
| 7596 |
private void BillingLinkOutPut()
|
|
| 7633 |
private bool ReqSumSelectOutPut()
|
|
| 7597 | 7634 |
{
|
| 7598 | 7635 |
try |
| 7599 | 7636 |
{
|
| 7637 |
m_TargetDetailNo = -1; |
|
| 7638 |
m_TargetColumn = 0; |
|
| 7639 |
|
|
| 7600 | 7640 |
DataGridView dgv = dgvAllDisplay; |
| 7601 |
if (m_FrmRequestSummaryList != null) |
|
| 7641 |
DataGridViewRow CurRow = dgv.CurrentRow; |
|
| 7642 |
// 施工費以外の選択は処理しない |
|
| 7643 |
if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value) != (int)DataGroup.ConstructionCosts) |
|
| 7602 | 7644 |
{
|
| 7603 |
m_FrmRequestSummaryList.GetchildData(dgv.CurrentCell);
|
|
| 7645 |
return false;
|
|
| 7604 | 7646 |
} |
| 7647 |
|
|
| 7648 |
// 選択業者と同じかのチェック |
|
| 7649 |
if (m_ReqSumCompany != CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.CompanyCode].Value)) |
|
| 7650 |
{
|
|
| 7651 |
MessageBox.Show("選択された業者が違います。", "業者選択エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
| 7652 |
return false; |
|
| 7653 |
} |
|
| 7654 |
|
|
| 7655 |
// 行セット |
|
| 7656 |
m_TargetDetailNo = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.DetailNo].Value); |
|
| 7657 |
|
|
| 7658 |
// 列セット |
|
| 7659 |
DateTime dtStWork = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text); |
|
| 7660 |
DateTime dtTarGetWork = new DateTime((m_ReqSumTargetMonth / 100), (m_ReqSumTargetMonth % 100), 1); |
|
| 7661 |
m_TargetColumn = ClsChangeLedgerData.CalcTargetMonthToColumn(dtStWork, dtTarGetWork); |
|
| 7662 |
|
|
| 7663 |
return true; |
|
| 7605 | 7664 |
} |
| 7606 | 7665 |
catch (Exception ex) |
| 7607 | 7666 |
{
|
| 7608 | 7667 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
| 7668 |
return false; |
|
| 7609 | 7669 |
} |
| 7610 | 7670 |
} |
| 7611 | 7671 |
#endregion |
| 7612 | 7672 |
|
| 7673 |
#region 請求まとめ行新規作成処理 |
|
| 7674 |
/// <summary> |
|
| 7675 |
/// 請求まとめ行新規作成処理 |
|
| 7676 |
/// </summary> |
|
| 7677 |
private bool ReqSumNewMakeOutPut() |
|
| 7678 |
{
|
|
| 7679 |
try |
|
| 7680 |
{
|
|
| 7681 |
// 追加判定 |
|
| 7682 |
int nWkCnt = 0; |
|
| 7683 |
if (!CheckNewMakeRow(ref nWkCnt)) return false; |
|
| 7684 |
|
|
| 7685 |
DialogResult dtRet = MessageBox.Show("工事台帳に新規で協力会社を追加します。",
|
|
| 7686 |
"追加確認", |
|
| 7687 |
MessageBoxButtons.OKCancel, |
|
| 7688 |
MessageBoxIcon.Exclamation); |
|
| 7689 |
|
|
| 7690 |
if (dtRet == DialogResult.Cancel) return true; |
|
| 7691 |
// 行を追加する(返信パラメタ行・列もセットする) |
|
| 7692 |
AddLineData(); |
|
| 7693 |
// 行色変更 |
|
| 7694 |
SelectRowChangeColor(m_BeforeGridRow); |
|
| 7695 |
// 台帳保存 |
|
| 7696 |
if (!DataEntryProcess()) return false; |
|
| 7697 |
|
|
| 7698 |
return true; |
|
| 7699 |
} |
|
| 7700 |
catch (Exception ex) |
|
| 7701 |
{
|
|
| 7702 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 7703 |
return false; |
|
| 7704 |
} |
|
| 7705 |
} |
|
| 7706 |
#endregion |
|
| 7707 |
|
|
| 7708 |
#region 協力会社名セット |
|
| 7709 |
/// <summary> |
|
| 7710 |
/// 協力会社名セット |
|
| 7711 |
/// </summary> |
|
| 7712 |
/// <param name="SetRow"></param> |
|
| 7713 |
private void SetCompanyData(DataGridViewRow SetRow) |
|
| 7714 |
{
|
|
| 7715 |
IOMSubContractor CompDB = new IOMSubContractor(); |
|
| 7716 |
try |
|
| 7717 |
{
|
|
| 7718 |
StringBuilder strSQL = new StringBuilder(); |
|
| 7719 |
strSQL.Append(CompDB.CreatePrimarykeyString(m_ReqSumCompany)); |
|
| 7720 |
SubContractorMaster CompRec = new SubContractorMaster(); |
|
| 7721 |
if (!CompDB.SelectAction(strSQL.ToString(), ref CompRec)) return; |
|
| 7722 |
|
|
| 7723 |
SetRow.Cells[(int)GridColumn.CompanyType].Value = (int)CommonDefine.CodeDataType.Subconstractor; |
|
| 7724 |
SetRow.Cells[(int)GridColumn.CompanyCode].Value = CompRec.CompanyCode; |
|
| 7725 |
SetRow.Cells[(int)GridColumn.CompanyName].Value = CompRec.CompanyName; |
|
| 7726 |
|
|
| 7727 |
// ----- 行・列番号セット |
|
| 7728 |
// 行セット |
|
| 7729 |
m_TargetDetailNo = CommonMotions.cnvInt(SetRow.Cells[(int)GridColumn.DetailNo].Value); |
|
| 7730 |
|
|
| 7731 |
// 列セット |
|
| 7732 |
DateTime dtStWork = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text); |
|
| 7733 |
DateTime dtTarGetWork = new DateTime((m_ReqSumTargetMonth / 100), (m_ReqSumTargetMonth % 100), 1); |
|
| 7734 |
m_TargetColumn = ClsChangeLedgerData.CalcTargetMonthToColumn(dtStWork, dtTarGetWork); |
|
| 7735 |
|
|
| 7736 |
} |
|
| 7737 |
catch (Exception ex) |
|
| 7738 |
{
|
|
| 7739 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 7740 |
} |
|
| 7741 |
finally |
|
| 7742 |
{
|
|
| 7743 |
CompDB.close(); CompDB = null; |
|
| 7744 |
} |
|
| 7745 |
} |
|
| 7746 |
|
|
| 7747 |
#endregion |
|
| 7748 |
|
|
| 7613 | 7749 |
#region 請求処理連携時インプット処理 |
| 7614 | 7750 |
/// <summary> |
| 7615 | 7751 |
/// 請求処理連携時インプット処理 |
| ... | ... | |
| 7619 | 7755 |
try |
| 7620 | 7756 |
{
|
| 7621 | 7757 |
// 請求処理連携以外は処理しない |
| 7622 |
if (!m_ReqSumFlag) return; |
|
| 7758 |
if (!m_ReqSumSelFlag) return;
|
|
| 7623 | 7759 |
|
| 7624 | 7760 |
// 支払カラム以外は処理しない |
| 7625 | 7761 |
int FixColCnt = Enum.GetNames(typeof(GridColumn)).Length; |
| ... | ... | |
| 7661 | 7797 |
{
|
| 7662 | 7798 |
// 全てのコントロールロック |
| 7663 | 7799 |
SeeModeLock(); |
| 7800 |
|
|
| 7664 | 7801 |
// 請求まとめ時使用ボタン表示 |
| 7665 | 7802 |
ReqSumButton(true); |
| 7666 |
// 請求まとめ対象データ取得 |
|
| 7667 |
GetReqSumData(); |
|
| 7803 |
|
|
| 7668 | 7804 |
// 請求まとめ表示スタイルセット |
| 7669 | 7805 |
InitReqSumStyle(); |
| 7670 | 7806 |
|
| ... | ... | |
| 7730 | 7866 |
int nWDiff = panel2.Width - dgv.Width; |
| 7731 | 7867 |
panel2.Width = panel1.Width; |
| 7732 | 7868 |
dgv.Width = (panel2.Width - nWDiff); |
| 7869 |
label4.Visible = false; |
|
| 7870 |
m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate].Visible = false; |
|
| 7733 | 7871 |
} |
| 7734 | 7872 |
catch (System.Exception ex) |
| 7735 | 7873 |
{
|
| ... | ... | |
| 7738 | 7876 |
} |
| 7739 | 7877 |
#endregion |
| 7740 | 7878 |
|
| 7741 |
private List<BillingDataDetail> m_BillDetailList = new List<BillingDataDetail>(); |
|
| 7742 |
#region 請求まとめ対象データ取得 |
|
| 7743 |
/// <summary> |
|
| 7744 |
/// 請求まとめ対象データ取得 |
|
| 7745 |
/// </summary> |
|
| 7746 |
private void GetReqSumData() |
|
| 7747 |
{
|
|
| 7748 |
IOBillingDataDetail BillDB = new IOBillingDataDetail(); |
|
| 7749 |
try |
|
| 7750 |
{
|
|
| 7751 |
StringBuilder strSQL = new StringBuilder(); |
|
| 7752 |
strSQL.Append(" AS A Where");
|
|
| 7753 |
strSQL.AppendFormat(" A.COMPANYCODE = {0}", m_ReqSumCompany);
|
|
| 7754 |
strSQL.AppendFormat(" And A.TARGETDATE = {0}", m_ReqSumTargetMonth);
|
|
| 7755 |
strSQL.AppendFormat(" And A.CONSTRUCTIONCODE = {0}", m_ConstructionCode);
|
|
| 7756 |
|
|
| 7757 |
m_BillDetailList.Clear(); |
|
| 7758 |
if (!BillDB.SelectAction(strSQL.ToString(), ref m_BillDetailList)) return; |
|
| 7759 |
|
|
| 7760 |
} |
|
| 7761 |
catch (System.Exception ex) |
|
| 7762 |
{
|
|
| 7763 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 7764 |
} |
|
| 7765 |
finally |
|
| 7766 |
{
|
|
| 7767 |
BillDB.close(); BillDB = null; |
|
| 7768 |
} |
|
| 7769 |
} |
|
| 7770 |
#endregion |
|
| 7771 |
|
|
| 7772 | 7879 |
#region 請求まとめ行色変更処理 |
| 7773 | 7880 |
/// <summary> |
| 7774 | 7881 |
/// 請求まとめ行色変更処理 |
| ... | ... | |
| 7784 | 7891 |
|
| 7785 | 7892 |
int nCompanyCode = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.CompanyCode].Value); |
| 7786 | 7893 |
int nDetailNo = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.DetailNo].Value); |
| 7787 |
foreach (BillingDataDetail DataCurRec in m_BillDetailList)
|
|
| 7894 |
if (nCompanyCode == m_ReqSumCompany)
|
|
| 7788 | 7895 |
{
|
| 7789 |
if (nCompanyCode == DataCurRec.CompanyCode) |
|
| 7790 |
{ // 対象業者一致
|
|
| 7791 |
if (nDetailNo == DataCurRec.ConstructionRowCnt) |
|
| 7792 |
{ // 対象行の一致
|
|
| 7793 |
clrBack = lblReqSumType01.BackColor; |
|
| 7794 |
clrFore = lblReqSumType01.ForeColor; |
|
| 7795 |
break; |
|
| 7896 |
clrBack = lblReqSumType01.BackColor; |
|
| 7897 |
clrFore = lblReqSumType01.ForeColor; |
|
| 7898 |
foreach (BillingDataDetail DataCurRec in m_BillDetailList) |
|
| 7899 |
{
|
|
| 7900 |
if (nCompanyCode == DataCurRec.CompanyCode) |
|
| 7901 |
{ // 対象業者一致
|
|
| 7902 |
if (nDetailNo == DataCurRec.ConstructionRowCnt) |
|
| 7903 |
{ // 対象行の一致
|
|
| 7904 |
clrBack = lblReqSumType02.BackColor; |
|
| 7905 |
clrFore = lblReqSumType02.ForeColor; |
|
| 7906 |
break; |
|
| 7907 |
} |
|
| 7908 |
else |
|
| 7909 |
{ // 行が一致しない
|
|
| 7910 |
clrBack = lblReqSumType01.BackColor; |
|
| 7911 |
clrFore = lblReqSumType01.ForeColor; |
|
| 7912 |
} |
|
| 7796 | 7913 |
} |
| 7797 |
else |
|
| 7798 |
{ // 行が一致しない
|
|
| 7799 |
clrBack = lblReqSumType02.BackColor; |
|
| 7800 |
clrFore = lblReqSumType02.ForeColor; |
|
| 7801 |
} |
|
| 7802 | 7914 |
} |
| 7803 |
else |
|
| 7804 |
{
|
|
| 7805 |
clrBack = lblReqSumType03.BackColor; |
|
| 7806 |
clrFore = lblReqSumType03.ForeColor; |
|
| 7807 |
} |
|
| 7808 | 7915 |
} |
| 7809 | 7916 |
|
| 7810 | 7917 |
for (int i = 0; i < dgv.ColumnCount; i++) |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs | ||
|---|---|---|
| 1809 | 1809 |
int Seqno = 1; |
| 1810 | 1810 |
foreach (DataGridViewRow wrkRow in dgv.Rows) |
| 1811 | 1811 |
{
|
| 1812 |
string Attendee = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn4.Attendee].Value); |
|
| 1813 |
string ContentsText = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn4.ContentsText].Value); |
|
| 1812 |
string Attendee = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn4.Attendee].Value).Replace("'", "’");
|
|
| 1813 |
string ContentsText = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn4.ContentsText].Value).Replace("'", "’");
|
|
| 1814 | 1814 |
// 出席者・内容が無い場合は登録しない |
| 1815 | 1815 |
if (Attendee.Length == 0 && ContentsText.Length == 0) continue; |
| 1816 | 1816 |
|
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs | ||
|---|---|---|
| 1946 | 1946 |
} |
| 1947 | 1947 |
#endregion |
| 1948 | 1948 |
|
| 1949 |
#region ?R?????g????{?^??
|
|
| 1950 |
/// <summary> |
|
| 1951 |
/// ?R?????g????{?^??????
|
|
| 1952 |
/// </summary> |
|
| 1953 |
/// <param name="sender"></param> |
|
| 1954 |
/// <param name="e"></param> |
|
| 1955 |
private void btnAddComment_Click(object sender, EventArgs e) |
|
| 1956 |
{
|
|
| 1957 |
//try |
|
| 1958 |
//{
|
|
| 1959 |
// // ?`???u?? |
|
| 1960 |
// int TabCnt = TabCollections.SelectedIndex; |
|
| 1961 |
// DataGridView dgv = m_EntryPage[TabCnt].EntryDGV; |
|
| 1962 |
// DataGridViewCell CurCell = dgv.CurrentCell; |
|
| 1963 |
// Rectangle rect = dgv.GetCellDisplayRectangle(CurCell.ColumnIndex, CurCell.RowIndex, false); |
|
| 1964 |
|
|
| 1965 |
// // ?R?????g?{?b?N?X???
|
|
| 1966 |
// MoveTextBox NewComment = new MoveTextBox(); |
|
| 1967 |
// NewComment.ParentPoint = rect.Location; |
|
| 1968 |
// NewComment.ParentSize = rect.Size; |
|
| 1969 |
// NewComment.DrowColor = CommonMotions.getBackForeColor(CommonMotions.LoginUserData.MsgBackColor |
|
| 1970 |
// , CommonDefine.PalceOfColor.BackColor); |
|
| 1971 |
|
|
| 1972 |
// NewComment.ToolTipString = string.Format("?w?E??F{0}", CommonMotions.LoginUserData.PersonName);
|
|
| 1973 |
// NewComment.ContinerCode = CommonMotions.LoginUserData.PersonCode; |
|
| 1974 |
|
|
| 1975 |
// m_EntryPage[TabCnt].CommentShapeContainer.Controls.Add(NewComment); |
|
| 1976 |
|
|
| 1977 |
// // ??X?t???OON |
|
| 1978 |
// m_bChengeAns = true; |
|
| 1979 |
//} |
|
| 1980 |
//catch (System.Exception ex) |
|
| 1981 |
//{
|
|
| 1982 |
// logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 1983 |
//} |
|
| 1984 |
} |
|
| 1985 |
#endregion |
|
| 1986 |
|
|
| 1987 |
#region ?R?????g???{?^??
|
|
| 1988 |
/// <summary> |
|
| 1989 |
/// ?R?????g???{?^??????
|
|
| 1990 |
/// </summary> |
|
| 1991 |
/// <param name="sender"></param> |
|
| 1992 |
/// <param name="e"></param> |
|
| 1993 |
private void btnDelComment_Click(object sender, EventArgs e) |
|
| 1994 |
{
|
|
| 1995 |
//try |
|
| 1996 |
//{
|
|
| 1997 |
// int TabCnt = TabCollections.SelectedIndex; |
|
| 1998 |
// DataGridView dgv = m_EntryPage[TabCnt].EntryDGV; |
|
| 1999 |
// ShapeContainer sContaner = m_EntryPage[TabCnt].CommentShapeContainer; |
|
| 2000 |
|
|
| 2001 |
// for (int i = sContaner.Controls.Count - 1; 0 <= i; i--) |
|
| 2002 |
// {
|
|
| 2003 |
// // ?R?????g?e?L?X?g??T?? |
|
| 2004 |
// if (sContaner.Controls[i].GetType().Equals(typeof(MoveTextBox))) |
|
| 2005 |
// {
|
|
| 2006 |
// MoveTextBox wrkMove = (MoveTextBox)sContaner.Controls[i]; |
|
| 2007 |
// if (wrkMove.MyFocusFlg) |
|
| 2008 |
// {
|
|
| 2009 |
// // ?????C???O???????R?????g???????????? |
|
| 2010 |
// if (!GetCommentEditPermission(wrkMove.ContinerCode)) |
|
| 2011 |
// {
|
|
| 2012 |
// MessageBox.Show("?????R?????g??O???????????B", "???x???m?F", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
| 2013 |
// return; |
|
| 2014 |
// } |
|
| 2015 |
|
|
| 2016 |
// // ?R???g???[????? |
|
| 2017 |
// sContaner.Controls[i].Dispose(); |
|
| 2018 |
// break; |
|
| 2019 |
// } |
|
| 2020 |
// } |
|
| 2021 |
// } |
|
| 2022 |
// // ??X?t???OON |
|
| 2023 |
// m_bChengeAns = true; |
|
| 2024 |
//} |
|
| 2025 |
//catch (System.Exception ex) |
|
| 2026 |
//{
|
|
| 2027 |
// logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 2028 |
//} |
|
| 2029 |
} |
|
| 2030 |
#endregion |
|
| 2031 |
|
|
| 2032 | 1949 |
#region ???F?p?l???ipnlApproval?j???F?{?^??
|
| 2033 | 1950 |
/// <summary> |
| 2034 | 1951 |
/// ???F?p?l???ipnlApproval?j???F?{?^??
|
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs | ||
|---|---|---|
| 71 | 71 |
this.lblLabel05 = new System.Windows.Forms.Label(); |
| 72 | 72 |
this.lblLabel04 = new System.Windows.Forms.Label(); |
| 73 | 73 |
this.lblLabel01 = new System.Windows.Forms.Label(); |
| 74 |
this.pnlComent = new System.Windows.Forms.Panel(); |
|
| 75 |
this.btnDelComment = new System.Windows.Forms.Button(); |
|
| 76 |
this.btnAddComment = new System.Windows.Forms.Button(); |
|
| 77 | 74 |
this.btnTop = new System.Windows.Forms.Button(); |
| 78 | 75 |
this.btnStructure = new System.Windows.Forms.Button(); |
| 79 | 76 |
this.btnLineDel = new System.Windows.Forms.Button(); |
| ... | ... | |
| 112 | 109 |
this.pnlApproval.SuspendLayout(); |
| 113 | 110 |
this.pnlApprovalButton.SuspendLayout(); |
| 114 | 111 |
this.panel2.SuspendLayout(); |
| 115 |
this.pnlComent.SuspendLayout(); |
|
| 116 | 112 |
this.TabCollections.SuspendLayout(); |
| 117 | 113 |
this.tabPage1.SuspendLayout(); |
| 118 | 114 |
((System.ComponentModel.ISupportInitialize)(this.dgvEntryData)).BeginInit(); |
| ... | ... | |
| 547 | 543 |
this.lblLabel01.TabIndex = 1; |
| 548 | 544 |
this.lblLabel01.TextAlign = System.Drawing.ContentAlignment.MiddleRight; |
| 549 | 545 |
// |
| 550 |
// pnlComent |
|
| 551 |
// |
|
| 552 |
this.pnlComent.BackColor = System.Drawing.Color.LemonChiffon; |
|
| 553 |
this.pnlComent.Controls.Add(this.btnDelComment); |
|
| 554 |
this.pnlComent.Controls.Add(this.btnAddComment); |
|
| 555 |
this.pnlComent.Location = new System.Drawing.Point(73, 5); |
|
| 556 |
this.pnlComent.Name = "pnlComent"; |
|
| 557 |
this.pnlComent.Size = new System.Drawing.Size(272, 34); |
|
| 558 |
this.pnlComent.TabIndex = 30; |
|
| 559 |
// |
|
| 560 |
// btnDelComment |
|
| 561 |
// |
|
| 562 |
this.btnDelComment.BackColor = System.Drawing.Color.Red; |
|
| 563 |
this.btnDelComment.ForeColor = System.Drawing.Color.White; |
|
| 564 |
this.btnDelComment.Location = new System.Drawing.Point(138, 4); |
|
| 565 |
this.btnDelComment.Name = "btnDelComment"; |
|
| 566 |
this.btnDelComment.Size = new System.Drawing.Size(130, 26); |
|
| 567 |
this.btnDelComment.TabIndex = 12; |
|
| 568 |
this.btnDelComment.Text = "コメント削除"; |
|
| 569 |
this.btnDelComment.UseVisualStyleBackColor = false; |
|
| 570 |
this.btnDelComment.Click += new System.EventHandler(this.btnDelComment_Click); |
|
| 571 |
// |
|
| 572 |
// btnAddComment |
|
| 573 |
// |
|
| 574 |
this.btnAddComment.BackColor = System.Drawing.Color.DarkGreen; |
|
| 575 |
this.btnAddComment.ForeColor = System.Drawing.Color.White; |
|
| 576 |
this.btnAddComment.Location = new System.Drawing.Point(4, 4); |
|
| 577 |
this.btnAddComment.Name = "btnAddComment"; |
|
| 578 |
this.btnAddComment.Size = new System.Drawing.Size(130, 26); |
|
| 579 |
this.btnAddComment.TabIndex = 12; |
|
| 580 |
this.btnAddComment.Text = "コメント追加"; |
|
| 581 |
this.btnAddComment.UseVisualStyleBackColor = false; |
|
| 582 |
this.btnAddComment.Click += new System.EventHandler(this.btnAddComment_Click); |
|
| 583 |
// |
|
| 584 | 546 |
// btnTop |
| 585 | 547 |
// |
| 586 | 548 |
this.btnTop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
| ... | ... | |
| 716 | 678 |
// |
| 717 | 679 |
this.btnRequestPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
| 718 | 680 |
this.btnRequestPrint.BackColor = System.Drawing.Color.DarkSeaGreen; |
| 719 |
this.btnRequestPrint.ForeColor = System.Drawing.Color.White;
|
|
| 681 |
this.btnRequestPrint.ForeColor = System.Drawing.Color.Black;
|
|
| 720 | 682 |
this.btnRequestPrint.Location = new System.Drawing.Point(174, 656); |
| 721 | 683 |
this.btnRequestPrint.Name = "btnRequestPrint"; |
| 722 | 684 |
this.btnRequestPrint.Size = new System.Drawing.Size(120, 30); |
| ... | ... | |
| 1019 | 981 |
this.Controls.Add(this.lblWrok); |
| 1020 | 982 |
this.Controls.Add(this.btnDispDown); |
| 1021 | 983 |
this.Controls.Add(this.btnDispUp); |
| 1022 |
this.Controls.Add(this.pnlComent); |
|
| 1023 | 984 |
this.Controls.Add(this.btnLineDel); |
| 1024 | 985 |
this.Controls.Add(this.btnLineAdd); |
| 1025 | 986 |
this.Controls.Add(this.btnStructure); |
| ... | ... | |
| 1050 | 1011 |
this.pnlApproval.ResumeLayout(false); |
| 1051 | 1012 |
this.pnlApprovalButton.ResumeLayout(false); |
| 1052 | 1013 |
this.panel2.ResumeLayout(false); |
| 1053 |
this.pnlComent.ResumeLayout(false); |
|
| 1054 | 1014 |
this.TabCollections.ResumeLayout(false); |
| 1055 | 1015 |
this.tabPage1.ResumeLayout(false); |
| 1056 | 1016 |
this.tabPage1.PerformLayout(); |
| ... | ... | |
| 1096 | 1056 |
private System.Windows.Forms.Label lblCellTotal; |
| 1097 | 1057 |
private System.Windows.Forms.Button btnAmountList; |
| 1098 | 1058 |
private System.Windows.Forms.Label lblWrok; |
| 1099 |
private System.Windows.Forms.Panel pnlComent; |
|
| 1100 |
private System.Windows.Forms.Button btnDelComment; |
|
| 1101 |
private System.Windows.Forms.Button btnAddComment; |
|
| 1102 | 1059 |
private System.Windows.Forms.Panel panel2; |
| 1103 | 1060 |
private System.Windows.Forms.Button btnOtherProc; |
| 1104 | 1061 |
private System.Windows.Forms.Panel pnlApprovalButton; |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs | ||
|---|---|---|
| 1789 | 1789 |
pnlApproval.Visible = false; |
| 1790 | 1790 |
} |
| 1791 | 1791 |
|
| 1792 |
// コメントボタンを非表示にする |
|
| 1793 |
pnlComent.Visible = false; |
|
| 1794 |
// ----- ログインユーザーが一般使用者以外はボタン表示 |
|
| 1795 |
// ***** テスト中なので管理者氏以外は使用禁止 |
|
| 1796 |
//if (CommonMotions.LoginUserData.SecurityManagement != CommonDefine.SecurityManagementDivision[3].Key) |
|
| 1797 |
//if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode) |
|
| 1798 |
//{
|
|
| 1799 |
// pnlComent.Visible = true; |
|
| 1800 |
//} |
|
| 1801 |
|
|
| 1802 | 1792 |
// 承認ボタン・件数の非表示 |
| 1803 | 1793 |
btnApproval.Visible = false; |
| 1804 | 1794 |
lblApprovalCount.Visible = false; |
| 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(); |
|
| 61 | 58 |
this.dgvEntryData = new ProcessManagement.Forms.CustomControls.DataGridViewEX(); |
| 62 | 59 |
this.Column03 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
| 63 | 60 |
this.Column01 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
| ... | ... | |
| 72 | 69 |
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
| 73 | 70 |
this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
| 74 | 71 |
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 |
// |
|
| 383 | 341 |
// dgvEntryData |
| 384 | 342 |
// |
| 385 | 343 |
this.dgvEntryData.AllowUserToAddRows = false; |
| ... | ... | |
| 562 | 520 |
this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
| 563 | 521 |
this.Column13.Width = 166; |
| 564 | 522 |
// |
| 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.DarkSeaGreen; |
|
| 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.Black; |
|
| 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/PurchaseOrderPrint/FrmPurchaseOrderPrint.Designer.cs | ||
|---|---|---|
| 351 | 351 |
// |
| 352 | 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 |
this.btnPrint.ForeColor = System.Drawing.Color.White;
|
|
| 354 |
this.btnPrint.ForeColor = System.Drawing.Color.Black;
|
|
| 355 | 355 |
this.btnPrint.Location = new System.Drawing.Point(961, 656); |
| 356 | 356 |
this.btnPrint.Name = "btnPrint"; |
| 357 | 357 |
this.btnPrint.Size = new System.Drawing.Size(120, 30); |
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs | ||
|---|---|---|
| 3170 | 3170 |
|
| 3171 | 3171 |
try |
| 3172 | 3172 |
{
|
| 3173 |
string sql = ioExcute.CreatePrimarykeyString(m_nLeaderConstructionCode); |
|
| 3174 |
sql += " AND ColumnCount = 27"; |
|
| 3173 |
StringBuilder sql = new StringBuilder(); |
|
| 3174 |
sql.Append(ioExcute.CreatePrimarykeyString(m_nLeaderConstructionCode)); |
|
| 3175 |
sql.AppendFormat(" AND ColumnCount = {0}", ClsChangeLedgerData.GetLedgerColumnCount());
|
|
| 3175 | 3176 |
|
| 3176 |
List<ConstructionLedgerExcute> lstExcute = new List<ConstructionLedgerExcute>(); |
|
| 3177 |
ConstructionLedgerExcute lstExcute = new ConstructionLedgerExcute(); |
|
| 3178 |
if (!ioExcute.SelectAction(sql.ToString(), ref lstExcute)) return tcol; |
|
| 3177 | 3179 |
|
| 3178 |
if (ioExcute.SelectAction(sql, ref lstExcute) == false) |
|
| 3179 |
{
|
|
| 3180 |
return tcol; |
|
| 3181 |
} |
|
| 3180 |
tcol = ClsChangeLedgerData.CalcTargetMonthToColumn(lstExcute.TargetMonth, dtTarget); |
|
| 3182 | 3181 |
|
| 3183 |
tcol = ClsChangeLedgerData.CalcTargetMonthToColumn(lstExcute[0].TargetMonth, dtTarget); |
|
| 3184 |
|
|
| 3185 | 3182 |
} |
| 3186 | 3183 |
catch (Exception ex) |
| 3187 | 3184 |
{
|
| branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs | ||
|---|---|---|
| 633 | 633 |
int DepCode = 0; |
| 634 | 634 |
int PersonCode = 0; |
| 635 | 635 |
// ?p?????[?^?????Z?b?g |
| 636 |
SetInitParametar(ref DepCode, ref PersonCode); |
|
| 636 |
SetApprovalInitParametar(ref DepCode, ref PersonCode);
|
|
| 637 | 637 |
|
| 638 | 638 |
// ?R???{?{?b?N?X?????\??
|
| 639 | 639 |
InitCombBox(DepCode, PersonCode); |
| ... | ... | |
| 708 | 708 |
//IME????[?h???X???? |
| 709 | 709 |
switch (e.ColumnIndex) |
| 710 | 710 |
{
|
| 711 |
case (int)DispColumn.Bikou: // ?R?????g |
|
| 711 |
case (int)DispColumn.DetailName: // ???????? |
|
| 712 |
case (int)DispColumn.Bikou: // ?R?????g |
|
| 712 | 713 |
dgv.ImeMode = ImeMode.On; |
| 713 | 714 |
break; |
| 714 | 715 |
default: |
| ... | ... | |
| 743 | 744 |
{
|
| 744 | 745 |
if (CurRow == null) return; |
| 745 | 746 |
|
| 746 |
int CurVal = 0; |
|
| 747 | 747 |
// ?Z???l??`?F?b?N |
| 748 | 748 |
switch (e.ColumnIndex) |
| 749 | 749 |
{
|
| 750 |
case (int)DispColumn.DetailName: // ???????? |
|
| 751 |
case (int)DispColumn.Bikou: // ?R?????g |
|
| 752 |
// ?l??`?F?b?N?i?????????X?t???O??ON???????j |
|
| 753 |
string sCurVal = CommonMotions.cnvString(CurRow.Cells[e.ColumnIndex].Value); |
|
| 754 |
if (CommonMotions.cnvString(m_BeforeValue) == sCurVal) return; |
|
| 755 |
break; |
|
| 750 | 756 |
case (int)DispColumn.KyoryokuKinRitu: |
| 751 | 757 |
break; |
| 752 | 758 |
default: |
| 753 | 759 |
if (m_CheckCol != e.ColumnIndex || m_CheckRow != e.RowIndex) return; |
| 754 |
CurVal = CommonMotions.cnvInt(CurRow.Cells[e.ColumnIndex].Value); |
|
| 760 |
int nCurVal = CommonMotions.cnvInt(CurRow.Cells[e.ColumnIndex].Value); |
|
| 761 |
// ?l??`?F?b?N?i?????????X?t???O??ON???????j |
|
| 762 |
if (CommonMotions.cnvInt(m_BeforeValue) == nCurVal) return; |
|
| 755 | 763 |
break; |
| 756 | 764 |
} |
| 757 |
// ?l??`?F?b?N?i?????????X?t???O??ON???????j |
|
| 758 |
if (CommonMotions.cnvInt(m_BeforeValue) == CurVal) return; |
|
| 759 | 765 |
|
| 760 | 766 |
// ??X?t???O |
| 761 | 767 |
if (DataRowState.Unchanged == (DataRowState)CurRow.Cells[(int)DispColumn.RowState].Value) |
| 762 | 768 |
CurRow.Cells[(int)DispColumn.RowState].Value = DataRowState.Modified; |
| 763 | 769 |
|
| 770 |
// ?x???????????????????l???\???S???? |
|
| 771 |
switch (e.ColumnIndex) |
|
| 772 |
{
|
|
| 773 |
case (int)DispColumn.KojiSeikyu: |
|
| 774 |
case (int)DispColumn.KojiNebiki: |
|
| 775 |
case (int)DispColumn.KojiSousai: |
|
| 776 |
case (int)DispColumn.KojiKosoku: |
|
| 777 |
case (int)DispColumn.KojiKanamono: |
|
| 778 |
case (int)DispColumn.KyoryokuUmu: |
|
| 779 |
// ?\???O???????S????????Z?b?g???? |
|
| 780 |
if (CommonMotions.cnvDate(CurRow.Cells[(int)DispColumn.RowType].Value) == DateTime.MinValue.Date) |
|
| 781 |
{
|
|
| 782 |
CurRow.Cells[(int)DispColumn.TantoShoninCode].Value = CommonMotions.LoginUserData.PersonCode; // ?\???S???? |
|
| 783 |
CurRow.Cells[(int)DispColumn.TantoShonin].Value = CommonMotions.LoginUserData.PersonName; // ?\???S????? |
|
| 784 |
} |
|
| 785 |
break; |
|
| 786 |
default: |
|
| 787 |
break; |
|
| 788 |
} |
|
| 789 |
|
|
| 764 | 790 |
// ???v???????????????????s???? |
| 765 | 791 |
if (dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == (int)RowsTypeDef.???v) |
| 766 | 792 |
.ToArray() |
| ... | ... | |
| 870 | 896 |
{
|
| 871 | 897 |
|
| 872 | 898 |
DataGridView dgv = (DataGridView)sender; |
| 899 |
try |
|
| 900 |
{
|
|
| 901 |
// ????J??????O?????????? |
|
| 902 |
if (e.ColumnIndex != (int)DispColumn.DetailName && e.ColumnIndex < (int)DispColumn.SomuSeikyu) return; |
|
| 903 |
if ((int)DispColumn.KyoryokuUmu <= e.ColumnIndex) return; |
|
| 873 | 904 |
|
| 874 |
// ????J??????O?????????? |
|
| 875 |
if (e.ColumnIndex < (int)DispColumn.SomuSeikyu) return; |
|
他の形式にエクスポート: Unified diff