リビジョン 400
起動権限チェック:確認ロジック修正
工事承認:再承認処理に承認希望日変更を追加
データコピー処理画面微修正
請求入力:画面微修正
交通費入力:年月選択表示12か月に変更
担当者マスタ:削除一覧表示順修正
セキュリティ区分マスタ:表示プロセス酒精中
メニュー:製品版表示に人員配置を工事一覧として追加
積算見積書入力:中小項目行に空行を登録できるようにした
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs | ||
---|---|---|
1526 | 1526 |
} |
1527 | 1527 |
} |
1528 | 1528 |
#endregion |
1529 |
|
|
1530 |
#region 工事詳細台帳:請求金額更新処理 |
|
1531 |
/// <summary> |
|
1532 |
/// 工事詳細台帳:請求金額更新処理 |
|
1533 |
/// </summary> |
|
1534 |
/// <param name="LedgerDB">工事詳細台帳テーブル</param> |
|
1535 |
/// <param name="ExecDB">工事詳細台帳実行テーブル</param> |
|
1536 |
/// <param name="nConstrCode">工事番号</param> |
|
1537 |
/// <param name="TargetMonth">対象年月</param> |
|
1538 |
/// <param name="lValue">請求金額</param> |
|
1539 |
/// <param name="DspMsg">メッセージ表示フラグ</param> |
|
1540 |
/// <returns></returns> |
|
1541 |
public static bool ModifyReceiveMoney(IOConstructionLedger LedgerDB |
|
1542 |
, IOConstructionLedgerExcute ExecDB |
|
1543 |
, int nConstrCode |
|
1544 |
, string TargetMonth |
|
1545 |
, long lValue |
|
1546 |
, bool DspMsg = true) |
|
1547 |
{ |
|
1548 |
try |
|
1549 |
{ |
|
1550 |
// 詳細台帳データを取得する |
|
1551 |
StringBuilder strSQL = new StringBuilder(); |
|
1552 |
strSQL.Append(LedgerDB.CreatePrimarykeyString(nConstrCode)); |
|
1553 |
ConstructionLedger LedgerRec = new ConstructionLedger(); |
|
1554 |
if (!LedgerDB.SelectAction(strSQL.ToString(), ref LedgerRec, false)) |
|
1555 |
{ |
|
1556 |
if (DspMsg) |
|
1557 |
{ |
|
1558 |
MessageBox.Show("工事詳細台帳データ:台帳データ取得に失敗しました。" |
|
1559 |
, "データ取得エラー" |
|
1560 |
, MessageBoxButtons.OK |
|
1561 |
, MessageBoxIcon.Error); |
|
1562 |
} |
|
1563 |
return false; |
|
1564 |
} |
|
1565 |
|
|
1566 |
// 現在の処理年月をDateTime型に変換する |
|
1567 |
DateTime NowDates = CommonMotions.cnvDate(string.Format("{0}/01", TargetMonth)); |
|
1568 |
|
|
1569 |
// 経過月数より列番号取得する |
|
1570 |
int ColCnt = CalcTargetMonthToColumn(LedgerRec.ConstructionStart, NowDates); |
|
1571 |
|
|
1572 |
// 工事詳細台帳実行データ読込み |
|
1573 |
int nGroupNo = (int)FrmConstructionLedger.DataGroup.BillingAmount; |
|
1574 |
strSQL.Clear(); |
|
1575 |
strSQL.Append("Select"); |
|
1576 |
strSQL.Append(" A.ConstructionCode"); // 0 |
|
1577 |
strSQL.Append(", A.GroupCount"); // 1 |
|
1578 |
strSQL.Append(", A.LineCount"); // 2 |
|
1579 |
strSQL.Append(", ifnull(B.ColumnCount, -1)"); // 3 |
|
1580 |
strSQL.Append(", B.PaymentAmount"); // 4 |
|
1581 |
strSQL.Append(", B.TargetMonth"); // 5 |
|
1582 |
strSQL.Append(", A.FirstString"); // 6 |
|
1583 |
strSQL.Append(", A.SecondString"); // 7 |
|
1584 |
strSQL.Append(" From constructionledgerdetail As A"); |
|
1585 |
strSQL.Append(" Left Join constructionledgerexcute As B"); |
|
1586 |
strSQL.Append(" On B.ConstructionCode = A.ConstructionCode"); |
|
1587 |
strSQL.Append(" And B.GroupCount = A.GroupCount"); |
|
1588 |
strSQL.Append(" And B.LineCount = A.LineCount"); |
|
1589 |
strSQL.AppendFormat(" And B.ColumnCount = {0}", ColCnt); |
|
1590 |
strSQL.AppendFormat(" Where A.ConstructionCode = {0}", nConstrCode); |
|
1591 |
strSQL.AppendFormat(" And A.GroupCount = {0}", nGroupNo); |
|
1592 |
ArrayList ExecList = new ArrayList(); |
|
1593 |
if (!ExecDB.ExecuteReader(strSQL.ToString(), ref ExecList, false)) |
|
1594 |
{ |
|
1595 |
if (DspMsg) |
|
1596 |
{ |
|
1597 |
MessageBox.Show("工事詳細台帳明細データ:請求金額データ取得に失敗しました。" |
|
1598 |
, "データ取得エラー" |
|
1599 |
, MessageBoxButtons.OK |
|
1600 |
, MessageBoxIcon.Error); |
|
1601 |
} |
|
1602 |
return false; |
|
1603 |
} |
|
1604 |
if (ExecList.Count < 1) return false; |
|
1605 |
|
|
1606 |
object[] ObjRec = (object[])ExecList[0]; |
|
1607 |
int nLineCnt = CommonMotions.cnvInt(ObjRec[2]); |
|
1608 |
|
|
1609 |
// カラム番号がマイナス(実行データが無い時)か否かで作成・更新を判定する |
|
1610 |
if (CommonMotions.cnvInt(ObjRec[3]) >= 0) |
|
1611 |
{ |
|
1612 |
strSQL.Clear(); |
|
1613 |
strSQL.Append(ExecDB.CreatePrimarykeyString(nConstrCode |
|
1614 |
, nGroupNo |
|
1615 |
, nLineCnt |
|
1616 |
, ColCnt)); |
|
1617 |
// 金額更新 |
|
1618 |
if (!ExecDB.UpdateFeild(strSQL.ToString() |
|
1619 |
, (int)IOConstructionLedgerExcute.TableColumn.PaymentAmount |
|
1620 |
, lValue |
|
1621 |
, false)) |
|
1622 |
{ |
|
1623 |
if (DspMsg) |
|
1624 |
{ |
|
1625 |
MessageBox.Show("工事詳細台帳実行データ:請求金額更新に失敗しました。" |
|
1626 |
, "更新エラー" |
|
1627 |
, MessageBoxButtons.OK |
|
1628 |
, MessageBoxIcon.Error); |
|
1629 |
} |
|
1630 |
return false; |
|
1631 |
} |
|
1632 |
} |
|
1633 |
else |
|
1634 |
{ // 請求データがあるのでここには来ないはず |
|
1635 |
ConstructionLedgerExcute ExecRec = new ConstructionLedgerExcute(); |
|
1636 |
ExecRec.ConstructionCode = nConstrCode; // 工事コード |
|
1637 |
ExecRec.GroupCount = nGroupNo; // グループ番号 |
|
1638 |
ExecRec.LineCount = nLineCnt; // 行番号 |
|
1639 |
ExecRec.ColumnCount = ColCnt; // 列番号 |
|
1640 |
ExecRec.PaymentAmount = (double)lValue; // 支払金額 |
|
1641 |
ExecRec.TargetMonth = NowDates; // 対象年月 |
|
1642 |
if (!ExecDB.InsertAction(ExecRec, false)) |
|
1643 |
{ |
|
1644 |
if (DspMsg) |
|
1645 |
{ |
|
1646 |
MessageBox.Show("工事詳細台帳実行データ:請求金額登録に失敗しました。" |
|
1647 |
, "登録エラー" |
|
1648 |
, MessageBoxButtons.OK |
|
1649 |
, MessageBoxIcon.Error); |
|
1650 |
} |
|
1651 |
return false; |
|
1652 |
} |
|
1653 |
} |
|
1654 |
|
|
1655 |
return true; |
|
1656 |
} |
|
1657 |
catch (System.Exception ex) |
|
1658 |
{ |
|
1659 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1660 |
return false; |
|
1661 |
} |
|
1662 |
} |
|
1663 |
#endregion |
|
1529 | 1664 |
// ↑↑ ** ----- インターフェース ----- ** |
1530 | 1665 |
} |
1531 | 1666 |
} |
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
642 | 642 |
ProcessExecuteNo_DepartmentCost(m_ProcControlPara[NowPoint]); |
643 | 643 |
break; |
644 | 644 |
|
645 |
case (int)ProcessExecuteNo.ReqApprovalStatus: // 47:請求承認状況閲覧 add suzuki 2018/08/08
|
|
645 |
case (int)ProcessExecuteNo.ReqApprovalStatus: // 47:請求承認状況閲覧 add suzuki 2018/08/08 |
|
646 | 646 |
ProcessExecuteNo_ReqApprovalStatus(m_ProcControlPara[NowPoint]); |
647 | 647 |
break; |
648 | 648 |
#endregion |
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs | ||
---|---|---|
711 | 711 |
return true; |
712 | 712 |
} |
713 | 713 |
|
714 |
if (CommonMotions.LoginUserProcExe.Count < 1) |
|
715 |
{ |
|
716 |
// 読込リストが存在しない場合はテーブル読込 |
|
717 |
return GetExecutePermission(CommonMotions.LoginUserData.PersonCode, ExecCode, ref Editflg); |
|
718 |
} |
|
719 |
|
|
720 |
// 読込リストが存在した場合はリストより検索 |
|
714 | 721 |
bool bRet = false; |
715 |
if (CommonMotions.LoginUserProcExe.Count != 0)
|
|
722 |
foreach (ProcessExcute CurRec in CommonMotions.LoginUserProcExe)
|
|
716 | 723 |
{ |
717 |
foreach (ProcessExcute CurRec in CommonMotions.LoginUserProcExe) |
|
718 |
{ |
|
719 |
if (ExecCode != CurRec.ExecCode) continue; |
|
724 |
if (ExecCode != CurRec.ExecCode) continue; |
|
720 | 725 |
|
721 |
bRet = true; |
|
722 |
Editflg = CurRec.EditFlg; |
|
723 |
break; |
|
724 |
} |
|
726 |
bRet = true; |
|
727 |
Editflg = CurRec.EditFlg; |
|
728 |
break; |
|
725 | 729 |
} |
726 |
else |
|
727 |
{ |
|
728 |
bRet = GetExecutePermission(CommonMotions.LoginUserData.PersonCode, ExecCode, ref Editflg); |
|
729 |
} |
|
730 | 730 |
|
731 | 731 |
return bRet; |
732 | 732 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs | ||
---|---|---|
654 | 654 |
private void btnRePetition_Click(object sender, EventArgs e) |
655 | 655 |
{ |
656 | 656 |
IOProcessApproval pAppDB = new IOProcessApproval(); |
657 |
FrmInputDate frm = new FrmInputDate(); |
|
657 | 658 |
try |
658 | 659 |
{ |
659 | 660 |
if (MessageBox.Show("?H????????x?\????????A???????????H?B", "??\???m?F" |
660 | 661 |
, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return; |
661 | 662 |
|
663 |
if (frm.ShowDialog(this) == DialogResult.Cancel) return; |
|
664 |
|
|
662 | 665 |
pAppDB.connect(); pAppDB.beginTran(); |
663 |
|
|
664 |
// ???F?f?[?^????C??????? |
|
665 |
string strSQL = pAppDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode, m_OrderNo); |
|
666 |
strSQL += " AND SeqNo != 1"; |
|
667 |
if (!pAppDB.DeleteAction(strSQL, false)) |
|
666 |
|
|
667 |
// ??\???????f?[?^???????? |
|
668 |
if(!RePetitionExec(pAppDB, m_ApprovalCode, frm.ExcuteDate)) |
|
668 | 669 |
{ |
669 | 670 |
pAppDB.rollback(); |
670 |
MessageBox.Show("??\??????s????????B", "??\???G???[", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
671 | 671 |
return; |
672 | 672 |
} |
673 |
// ?\???f?[?^??\???????? |
|
674 |
if(!pAppDB.UpdateFeild(m_ConstructionCode, |
|
675 |
(int)IOProcessApproval.ColumnName.ApprovalStatus, |
|
676 |
(int)CommonDefine.ApprovalStatus.Petition, |
|
677 |
false, |
|
678 |
m_ApprovalCode, |
|
679 |
m_OrderNo, |
|
680 |
1)) |
|
673 |
|
|
674 |
// ??Z????E??Z?\?Z??????\?????? |
|
675 |
if(!RePetitionRequestEstimate(pAppDB, m_ApprovalCode, frm.ExcuteDate)) |
|
681 | 676 |
{ |
682 |
MessageBox.Show("??\???f?[?^???Z?b?g????s????????B", "??\???G???[", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
683 | 677 |
pAppDB.rollback(); |
684 | 678 |
return; |
685 | 679 |
} |
... | ... | |
699 | 693 |
{ |
700 | 694 |
pAppDB.commit(); |
701 | 695 |
pAppDB.close(); pAppDB = null; |
696 |
frm.Dispose(); frm = null; |
|
702 | 697 |
} |
703 | 698 |
} |
704 | 699 |
#endregion |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs | ||
---|---|---|
564 | 564 |
// 申請・承認以外は申請ボタンを表示する |
565 | 565 |
switch (ApprovalStatus) |
566 | 566 |
{ |
567 |
case (int)CommonDefine.ApprovalStatus.Petition: // 申請 |
|
568 |
case (int)CommonDefine.ApprovalStatus.Pending: // 保留 |
|
569 |
case (int)CommonDefine.ApprovalStatus.Approval: // 承認 |
|
570 |
case (int)CommonDefine.ApprovalStatus.NotApproval: // 不承認 |
|
571 |
btnPetition.Visible = false; // 申請ボタン |
|
567 |
case (int)CommonDefine.ApprovalStatus.Petition: // 申請
|
|
568 |
case (int)CommonDefine.ApprovalStatus.Pending: // 保留
|
|
569 |
case (int)CommonDefine.ApprovalStatus.Approval: // 承認
|
|
570 |
case (int)CommonDefine.ApprovalStatus.NotApproval: // 不承認
|
|
571 |
btnPetition.Visible = false; // 申請ボタン
|
|
572 | 572 |
|
573 | 573 |
// 注文書承認は承認取り消しがある |
574 | 574 |
switch (m_ApprovalCode) |
... | ... | |
589 | 589 |
break; |
590 | 590 |
} |
591 | 591 |
|
592 |
txtHoppesDate.Enabled = false; // 承認希望日 |
|
592 |
txtHoppesDate.Enabled = false; // 承認希望日
|
|
593 | 593 |
|
594 |
btnApproval.Visible = true; // 承認ボタン |
|
595 |
btnNotApproval.Visible = true; // 不承認ボタン |
|
596 |
btnOnHold.Visible = true; // 保留ボタン |
|
594 |
btnApproval.Visible = true; // 承認ボタン
|
|
595 |
btnNotApproval.Visible = true; // 不承認ボタン
|
|
596 |
btnOnHold.Visible = true; // 保留ボタン
|
|
597 | 597 |
break; |
598 |
case (int)CommonDefine.ApprovalStatus.Undecided: // 未定 |
|
599 |
case (int)CommonDefine.ApprovalStatus.Unclaimed: // 未申請 |
|
600 |
btnPetition.Visible = true; // 申請ボタン |
|
598 |
case (int)CommonDefine.ApprovalStatus.Undecided: // 未定
|
|
599 |
case (int)CommonDefine.ApprovalStatus.Unclaimed: // 未申請
|
|
600 |
btnPetition.Visible = true; // 申請ボタン
|
|
601 | 601 |
btnPetition.Left = s_ButtonPosition[2].X; |
602 | 602 |
btnPetition.Top = s_ButtonPosition[2].Y; |
603 | 603 |
|
604 |
btnRePetition.Visible = false; // 再申請ボタン |
|
605 |
btnNotPetition.Visible = false; // 申請取消ボタン |
|
604 |
btnRePetition.Visible = false; // 再申請ボタン
|
|
605 |
btnNotPetition.Visible = false; // 申請取消ボタン
|
|
606 | 606 |
|
607 |
txtHoppesDate.Enabled = true; // 承認希望日 |
|
607 |
txtHoppesDate.Enabled = true; // 承認希望日
|
|
608 | 608 |
|
609 |
btnApproval.Visible = false; // 承認ボタン |
|
610 |
btnNotApproval.Visible = false; // 不承認ボタン |
|
611 |
btnOnHold.Visible = false; // 保留ボタン |
|
609 |
btnApproval.Visible = false; // 承認ボタン
|
|
610 |
btnNotApproval.Visible = false; // 不承認ボタン
|
|
611 |
btnOnHold.Visible = false; // 保留ボタン
|
|
612 | 612 |
break; |
613 | 613 |
} |
614 | 614 |
} |
... | ... | |
1146 | 1146 |
} |
1147 | 1147 |
#endregion |
1148 | 1148 |
|
1149 |
#region 再申請処理 |
|
1150 |
/// <summary> |
|
1151 |
/// 再申請処理 |
|
1152 |
/// </summary> |
|
1153 |
/// <returns></returns> |
|
1154 |
private bool RePetitionExec(IOProcessApproval pAppDB, int CurApprovalCode, DateTime dtPetitionDate) |
|
1155 |
{ |
|
1156 |
try |
|
1157 |
{ |
|
1158 |
// 承認データを一気に削除する |
|
1159 |
StringBuilder strSQL = new StringBuilder(); |
|
1160 |
strSQL.Append("DELETE FROM ProcessApproval"); |
|
1161 |
strSQL.Append(pAppDB.CreatePrimarykeyString(m_ConstructionCode, CurApprovalCode, m_OrderNo)); |
|
1162 |
strSQL.AppendFormat(" AND (SeqNo > 1 And PersonCode != {0})", CommonMotions.LoginUserData.PersonCode); |
|
1163 |
pAppDB.ExecuteNonQuery(strSQL.ToString(), false); |
|
1164 |
|
|
1165 |
// 申請データを申請中に戻す |
|
1166 |
if (!pAppDB.UpdateFeild(m_ConstructionCode, |
|
1167 |
(int)IOProcessApproval.ColumnName.ApprovalStatus, |
|
1168 |
(int)CommonDefine.ApprovalStatus.Petition, |
|
1169 |
false, |
|
1170 |
CurApprovalCode, |
|
1171 |
m_OrderNo, |
|
1172 |
1)) |
|
1173 |
{ |
|
1174 |
MessageBox.Show("再申請データリセットに失敗しました。", "再申請エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
1175 |
return false; |
|
1176 |
} |
|
1177 |
// 承認希望日をセットする |
|
1178 |
if (!pAppDB.UpdateFeild(m_ConstructionCode, |
|
1179 |
(int)IOProcessApproval.ColumnName.ApprovalLimitDates, |
|
1180 |
dtPetitionDate, |
|
1181 |
false, |
|
1182 |
CurApprovalCode, |
|
1183 |
m_OrderNo, |
|
1184 |
1)) |
|
1185 |
{ |
|
1186 |
MessageBox.Show("再申請データリセットに失敗しました。", "再申請エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
1187 |
return false; |
|
1188 |
} |
|
1189 |
|
|
1190 |
return true; |
|
1191 |
} |
|
1192 |
catch (Exception ex) |
|
1193 |
{ |
|
1194 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1195 |
return false; |
|
1196 |
} |
|
1197 |
} |
|
1198 |
#endregion |
|
1199 |
|
|
1200 |
#region 積算見積・積算予算を同時に再申請する |
|
1201 |
/// <summary> |
|
1202 |
/// 積算見積・積算予算を同時に再申請する |
|
1203 |
/// </summary> |
|
1204 |
private bool RePetitionRequestEstimate(IOProcessApproval pAppDB, int CurApprovalCode, DateTime dtPetitionDate) |
|
1205 |
{ |
|
1206 |
try |
|
1207 |
{ |
|
1208 |
// ----- 積算見積・積算予算は同時に申請を行う |
|
1209 |
int Code1 = ClsExcute.AppovalList.First(x => x.Value.Equals("積算見積書承認")).Key; |
|
1210 |
int Code2 = ClsExcute.AppovalList.First(x => x.Value.Equals("積算予算書承認")).Key; |
|
1211 |
int NextApprovalCode = -1; |
|
1212 |
if (CurApprovalCode == Code1) |
|
1213 |
{ |
|
1214 |
// ----- 積算見積書の申請時は積算予算書も申請する |
|
1215 |
|
|
1216 |
// 積算予算データが存在しなかった場合は申請しない |
|
1217 |
if (!ExistEstimateBudget()) return true; |
|
1218 |
|
|
1219 |
// コードのセット |
|
1220 |
NextApprovalCode = Code2; |
|
1221 |
} |
|
1222 |
else if (CurApprovalCode == Code2) |
|
1223 |
{ |
|
1224 |
// ----- 積算予算書の申請時は積算見積書は必ずあるので申請する |
|
1225 |
|
|
1226 |
// コードのセット |
|
1227 |
NextApprovalCode = Code1; |
|
1228 |
} |
|
1229 |
else |
|
1230 |
{ |
|
1231 |
return true; |
|
1232 |
} |
|
1233 |
|
|
1234 |
// 再申請のためデータを作成する |
|
1235 |
if (!RePetitionExec(pAppDB, NextApprovalCode, dtPetitionDate)) return false; |
|
1236 |
|
|
1237 |
return true; |
|
1238 |
} |
|
1239 |
catch (Exception ex) |
|
1240 |
{ |
|
1241 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1242 |
return false; |
|
1243 |
} |
|
1244 |
} |
|
1245 |
#endregion |
|
1246 |
|
|
1149 | 1247 |
#region 次呼出処理パラメータセット(対象データを見る) |
1150 | 1248 |
/// <summary> |
1151 | 1249 |
/// 次呼出処理パラメータセット(対象データを見る) |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmInputDate.Designer.cs | ||
---|---|---|
1 |
namespace ProcessManagement.Forms.DataEntry |
|
2 |
{ |
|
3 |
partial class FrmInputDate |
|
4 |
{ |
|
5 |
/// <summary> |
|
6 |
/// Required designer variable. |
|
7 |
/// </summary> |
|
8 |
private System.ComponentModel.IContainer components = null; |
|
9 |
|
|
10 |
/// <summary> |
|
11 |
/// Clean up any resources being used. |
|
12 |
/// </summary> |
|
13 |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
14 |
protected override void Dispose(bool disposing) |
|
15 |
{ |
|
16 |
if (disposing && (components != null)) |
|
17 |
{ |
|
18 |
components.Dispose(); |
|
19 |
} |
|
20 |
base.Dispose(disposing); |
|
21 |
} |
|
22 |
|
|
23 |
#region Windows Form Designer generated code |
|
24 |
|
|
25 |
/// <summary> |
|
26 |
/// Required method for Designer support - do not modify |
|
27 |
/// the contents of this method with the code editor. |
|
28 |
/// </summary> |
|
29 |
private void InitializeComponent() |
|
30 |
{ |
|
31 |
this.btnExecProc = new System.Windows.Forms.Button(); |
|
32 |
this.btnCancel = new System.Windows.Forms.Button(); |
|
33 |
this.panel1 = new System.Windows.Forms.Panel(); |
|
34 |
this.panel2 = new System.Windows.Forms.Panel(); |
|
35 |
this.dtInput = new System.Windows.Forms.DateTimePicker(); |
|
36 |
this.label1 = new System.Windows.Forms.Label(); |
|
37 |
this.panel1.SuspendLayout(); |
|
38 |
this.panel2.SuspendLayout(); |
|
39 |
this.SuspendLayout(); |
|
40 |
// |
|
41 |
// btnExecProc |
|
42 |
// |
|
43 |
this.btnExecProc.BackColor = System.Drawing.Color.Green; |
|
44 |
this.btnExecProc.ForeColor = System.Drawing.Color.White; |
|
45 |
this.btnExecProc.Location = new System.Drawing.Point(98, 1); |
|
46 |
this.btnExecProc.Name = "btnExecProc"; |
|
47 |
this.btnExecProc.Size = new System.Drawing.Size(140, 40); |
|
48 |
this.btnExecProc.TabIndex = 0; |
|
49 |
this.btnExecProc.Text = "変 更"; |
|
50 |
this.btnExecProc.UseVisualStyleBackColor = false; |
|
51 |
this.btnExecProc.Click += new System.EventHandler(this.btnExecProc_Click); |
|
52 |
// |
|
53 |
// btnCancel |
|
54 |
// |
|
55 |
this.btnCancel.BackColor = System.Drawing.Color.Red; |
|
56 |
this.btnCancel.ForeColor = System.Drawing.Color.White; |
|
57 |
this.btnCancel.Location = new System.Drawing.Point(238, 1); |
|
58 |
this.btnCancel.Name = "btnCancel"; |
|
59 |
this.btnCancel.Size = new System.Drawing.Size(140, 40); |
|
60 |
this.btnCancel.TabIndex = 3; |
|
61 |
this.btnCancel.Text = "キャンセル"; |
|
62 |
this.btnCancel.UseVisualStyleBackColor = false; |
|
63 |
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); |
|
64 |
// |
|
65 |
// panel1 |
|
66 |
// |
|
67 |
this.panel1.BackColor = System.Drawing.Color.WhiteSmoke; |
|
68 |
this.panel1.Controls.Add(this.btnCancel); |
|
69 |
this.panel1.Controls.Add(this.btnExecProc); |
|
70 |
this.panel1.Location = new System.Drawing.Point(0, 116); |
|
71 |
this.panel1.Name = "panel1"; |
|
72 |
this.panel1.Size = new System.Drawing.Size(382, 42); |
|
73 |
this.panel1.TabIndex = 3; |
|
74 |
// |
|
75 |
// panel2 |
|
76 |
// |
|
77 |
this.panel2.BackColor = System.Drawing.Color.LightGray; |
|
78 |
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
79 |
this.panel2.Controls.Add(this.label1); |
|
80 |
this.panel2.Controls.Add(this.dtInput); |
|
81 |
this.panel2.Location = new System.Drawing.Point(2, 4); |
|
82 |
this.panel2.Name = "panel2"; |
|
83 |
this.panel2.Size = new System.Drawing.Size(376, 107); |
|
84 |
this.panel2.TabIndex = 16; |
|
85 |
// |
|
86 |
// dtInput |
|
87 |
// |
|
88 |
this.dtInput.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right; |
|
89 |
this.dtInput.Font = new System.Drawing.Font("Century", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
|
90 |
this.dtInput.Format = System.Windows.Forms.DateTimePickerFormat.Short; |
|
91 |
this.dtInput.ImeMode = System.Windows.Forms.ImeMode.Off; |
|
92 |
this.dtInput.Location = new System.Drawing.Point(101, 50); |
|
93 |
this.dtInput.Name = "dtInput"; |
|
94 |
this.dtInput.Size = new System.Drawing.Size(170, 33); |
|
95 |
this.dtInput.TabIndex = 17; |
|
96 |
// |
|
97 |
// label1 |
|
98 |
// |
|
99 |
this.label1.BackColor = System.Drawing.Color.White; |
|
100 |
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
101 |
this.label1.Location = new System.Drawing.Point(66, 10); |
|
102 |
this.label1.Name = "label1"; |
|
103 |
this.label1.Size = new System.Drawing.Size(240, 28); |
|
104 |
this.label1.TabIndex = 18; |
|
105 |
this.label1.Text = "再 承 認 希 望 日"; |
|
106 |
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
107 |
// |
|
108 |
// FrmInputDate |
|
109 |
// |
|
110 |
this.AcceptButton = this.btnExecProc; |
|
111 |
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
|
112 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
|
113 |
this.BackColor = System.Drawing.Color.White; |
|
114 |
this.ClientSize = new System.Drawing.Size(380, 157); |
|
115 |
this.Controls.Add(this.panel2); |
|
116 |
this.Controls.Add(this.panel1); |
|
117 |
this.Font = new System.Drawing.Font("MS 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
118 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
|
119 |
this.KeyPreview = true; |
|
120 |
this.MaximizeBox = false; |
|
121 |
this.MinimizeBox = false; |
|
122 |
this.Name = "FrmInputDate"; |
|
123 |
this.ShowIcon = false; |
|
124 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
125 |
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmInputDate_FormClosing); |
|
126 |
this.Load += new System.EventHandler(this.FrmInputDate_Load); |
|
127 |
this.panel1.ResumeLayout(false); |
|
128 |
this.panel2.ResumeLayout(false); |
|
129 |
this.ResumeLayout(false); |
|
130 |
|
|
131 |
} |
|
132 |
|
|
133 |
#endregion |
|
134 |
|
|
135 |
private System.Windows.Forms.Button btnExecProc; |
|
136 |
private System.Windows.Forms.Button btnCancel; |
|
137 |
private System.Windows.Forms.Panel panel1; |
|
138 |
private System.Windows.Forms.Panel panel2; |
|
139 |
private System.Windows.Forms.DateTimePicker dtInput; |
|
140 |
private System.Windows.Forms.Label label1; |
|
141 |
} |
|
142 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmInputDate.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.ComponentModel; |
|
4 |
using System.Data; |
|
5 |
using System.Drawing; |
|
6 |
using System.Linq; |
|
7 |
using System.Text; |
|
8 |
using System.Windows.Forms; |
|
9 |
|
|
10 |
using ProcessManagement.Common; |
|
11 |
using ProcessManagement.DB.IOAccess; |
|
12 |
using ProcessManagement.DataModel; |
|
13 |
using ProcessManagement.Forms.CustomControls; |
|
14 |
using ProcessManagement.Forms.ControlsAction; |
|
15 |
|
|
16 |
namespace ProcessManagement.Forms.DataEntry |
|
17 |
{ |
|
18 |
public partial class FrmInputDate : Form |
|
19 |
{ |
|
20 |
#region ログ使用定義 |
|
21 |
//log4netログを使用する |
|
22 |
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
23 |
#endregion |
|
24 |
|
|
25 |
#region 定数 |
|
26 |
private enum Dispcount |
|
27 |
{ |
|
28 |
ExeCuteDate = 0, |
|
29 |
ProgressStatusA, |
|
30 |
ProgressStatusB, |
|
31 |
radioButtonA1, |
|
32 |
radioButtonA2, |
|
33 |
radioButtonA3, |
|
34 |
} |
|
35 |
#endregion |
|
36 |
|
|
37 |
#region 変数 |
|
38 |
|
|
39 |
/// <summary> |
|
40 |
/// 実行時日付 |
|
41 |
/// </summary> |
|
42 |
private DateTime m_ExcuteDate = DateTime.Now; |
|
43 |
|
|
44 |
#endregion |
|
45 |
|
|
46 |
#region プロパティ |
|
47 |
/// <summary> |
|
48 |
/// 実行時時間 |
|
49 |
/// </summary> |
|
50 |
public DateTime ExcuteDate |
|
51 |
{ |
|
52 |
get { return m_ExcuteDate; } |
|
53 |
set { m_ExcuteDate = value; } |
|
54 |
} |
|
55 |
#endregion |
|
56 |
|
|
57 |
#region コンストラクタ |
|
58 |
/// <summary> |
|
59 |
/// フォーム初期化 |
|
60 |
/// </summary> |
|
61 |
public FrmInputDate() |
|
62 |
{ |
|
63 |
InitializeComponent(); |
|
64 |
} |
|
65 |
#endregion |
|
66 |
|
|
67 |
#region フォームロード |
|
68 |
/// <summary> |
|
69 |
/// フォームロード |
|
70 |
/// </summary> |
|
71 |
/// <param name="sender"></param> |
|
72 |
/// <param name="e"></param> |
|
73 |
private void FrmInputDate_Load(object sender, EventArgs e) |
|
74 |
{ |
|
75 |
// フォームサイズ固定 |
|
76 |
this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height); |
|
77 |
dtInput.Value = m_ExcuteDate; |
|
78 |
} |
|
79 |
#endregion |
|
80 |
|
|
81 |
#region フォームクロージング |
|
82 |
/// <summary> |
|
83 |
/// フォームクロージング |
|
84 |
/// </summary> |
|
85 |
/// <param name="sender"></param> |
|
86 |
/// <param name="e"></param> |
|
87 |
private void FrmInputDate_FormClosing(object sender, FormClosingEventArgs e) |
|
88 |
{ |
|
89 |
try |
|
90 |
{ |
|
91 |
if (this.DialogResult != DialogResult.OK) this.DialogResult = DialogResult.Cancel; |
|
92 |
|
|
93 |
} |
|
94 |
catch (Exception ex) |
|
95 |
{ |
|
96 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
97 |
} |
|
98 |
} |
|
99 |
#endregion |
|
100 |
|
|
101 |
#region キャンセルボタン |
|
102 |
/// <summary> |
|
103 |
/// キャンセルボタン追加 |
|
104 |
/// </summary> |
|
105 |
/// <param name="sender"></param> |
|
106 |
/// <param name="e"></param> |
|
107 |
private void btnCancel_Click(object sender, EventArgs e) |
|
108 |
{ |
|
109 |
this.DialogResult = DialogResult.Cancel; |
|
110 |
this.Close(); |
|
111 |
} |
|
112 |
#endregion |
|
113 |
|
|
114 |
#region 変更ボタン |
|
115 |
/// <summary> |
|
116 |
/// 変更ボタン押下 |
|
117 |
/// </summary> |
|
118 |
/// <param name="sender"></param> |
|
119 |
/// <param name="e"></param> |
|
120 |
private void btnExecProc_Click(object sender, EventArgs e) |
|
121 |
{ |
|
122 |
try |
|
123 |
{ |
|
124 |
if(dtInput.Value.Date < DateTime.Today.Date) |
|
125 |
{ |
|
126 |
MessageBox.Show("承認希望日が過去日付になっています。","日付選択エラー",MessageBoxButtons.OK,MessageBoxIcon.Error); |
|
127 |
return; |
|
128 |
} |
|
129 |
|
|
130 |
m_ExcuteDate = dtInput.Value; |
|
131 |
this.DialogResult = DialogResult.OK; |
|
132 |
this.Close(); |
|
133 |
} |
|
134 |
catch (Exception ex) |
|
135 |
{ |
|
136 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
137 |
} |
|
138 |
} |
|
139 |
#endregion |
|
140 |
} |
|
141 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmInputDate.resx | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<root> |
|
3 |
<!-- |
|
4 |
Microsoft ResX Schema |
|
5 |
|
|
6 |
Version 2.0 |
|
7 |
|
|
8 |
The primary goals of this format is to allow a simple XML format |
|
9 |
that is mostly human readable. The generation and parsing of the |
|
10 |
various data types are done through the TypeConverter classes |
|
11 |
associated with the data types. |
|
12 |
|
|
13 |
Example: |
|
14 |
|
|
15 |
... ado.net/XML headers & schema ... |
|
16 |
<resheader name="resmimetype">text/microsoft-resx</resheader> |
|
17 |
<resheader name="version">2.0</resheader> |
|
18 |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
|
19 |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
|
20 |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
|
21 |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
|
22 |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
|
23 |
<value>[base64 mime encoded serialized .NET Framework object]</value> |
|
24 |
</data> |
|
25 |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
26 |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
|
27 |
<comment>This is a comment</comment> |
|
28 |
</data> |
|
29 |
|
|
30 |
There are any number of "resheader" rows that contain simple |
|
31 |
name/value pairs. |
|
32 |
|
|
33 |
Each data row contains a name, and value. The row also contains a |
|
34 |
type or mimetype. Type corresponds to a .NET class that support |
|
35 |
text/value conversion through the TypeConverter architecture. |
|
36 |
Classes that don't support this are serialized and stored with the |
|
37 |
mimetype set. |
|
38 |
|
|
39 |
The mimetype is used for serialized objects, and tells the |
|
40 |
ResXResourceReader how to depersist the object. This is currently not |
|
41 |
extensible. For a given mimetype the value must be set accordingly: |
|
42 |
|
|
43 |
Note - application/x-microsoft.net.object.binary.base64 is the format |
|
44 |
that the ResXResourceWriter will generate, however the reader can |
|
45 |
read any of the formats listed below. |
|
46 |
|
|
47 |
mimetype: application/x-microsoft.net.object.binary.base64 |
|
48 |
value : The object must be serialized with |
|
49 |
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
|
50 |
: and then encoded with base64 encoding. |
|
51 |
|
|
52 |
mimetype: application/x-microsoft.net.object.soap.base64 |
|
53 |
value : The object must be serialized with |
|
54 |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
|
55 |
: and then encoded with base64 encoding. |
|
56 |
|
|
57 |
mimetype: application/x-microsoft.net.object.bytearray.base64 |
|
58 |
value : The object must be serialized into a byte array |
|
59 |
: using a System.ComponentModel.TypeConverter |
|
60 |
: and then encoded with base64 encoding. |
|
61 |
--> |
|
62 |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
|
63 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
|
64 |
<xsd:element name="root" msdata:IsDataSet="true"> |
|
65 |
<xsd:complexType> |
|
66 |
<xsd:choice maxOccurs="unbounded"> |
|
67 |
<xsd:element name="metadata"> |
|
68 |
<xsd:complexType> |
|
69 |
<xsd:sequence> |
|
70 |
<xsd:element name="value" type="xsd:string" minOccurs="0" /> |
|
71 |
</xsd:sequence> |
|
72 |
<xsd:attribute name="name" use="required" type="xsd:string" /> |
|
73 |
<xsd:attribute name="type" type="xsd:string" /> |
|
74 |
<xsd:attribute name="mimetype" type="xsd:string" /> |
|
75 |
<xsd:attribute ref="xml:space" /> |
|
76 |
</xsd:complexType> |
|
77 |
</xsd:element> |
|
78 |
<xsd:element name="assembly"> |
|
79 |
<xsd:complexType> |
|
80 |
<xsd:attribute name="alias" type="xsd:string" /> |
|
81 |
<xsd:attribute name="name" type="xsd:string" /> |
|
82 |
</xsd:complexType> |
|
83 |
</xsd:element> |
|
84 |
<xsd:element name="data"> |
|
85 |
<xsd:complexType> |
|
86 |
<xsd:sequence> |
|
87 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
88 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
|
89 |
</xsd:sequence> |
|
90 |
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
|
91 |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
|
92 |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
|
93 |
<xsd:attribute ref="xml:space" /> |
|
94 |
</xsd:complexType> |
|
95 |
</xsd:element> |
|
96 |
<xsd:element name="resheader"> |
|
97 |
<xsd:complexType> |
|
98 |
<xsd:sequence> |
|
99 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
|
100 |
</xsd:sequence> |
|
101 |
<xsd:attribute name="name" type="xsd:string" use="required" /> |
|
102 |
</xsd:complexType> |
|
103 |
</xsd:element> |
|
104 |
</xsd:choice> |
|
105 |
</xsd:complexType> |
|
106 |
</xsd:element> |
|
107 |
</xsd:schema> |
|
108 |
<resheader name="resmimetype"> |
|
109 |
<value>text/microsoft-resx</value> |
|
110 |
</resheader> |
|
111 |
<resheader name="version"> |
|
112 |
<value>2.0</value> |
|
113 |
</resheader> |
|
114 |
<resheader name="reader"> |
|
115 |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
116 |
</resheader> |
|
117 |
<resheader name="writer"> |
|
118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
|
119 |
</resheader> |
|
120 |
</root> |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs | ||
---|---|---|
1622 | 1622 |
/// <param name="e"></param> |
1623 | 1623 |
private void button2_Click(object sender, EventArgs e) |
1624 | 1624 |
{ |
1625 |
TestDataTest(); |
|
1625 | 1626 |
//RecalcalculationPersonnelExpenses(); |
1626 | 1627 |
//ReCalculation(); |
1627 | 1628 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs | ||
---|---|---|
87 | 87 |
this.btnLineDel = new System.Windows.Forms.Button(); |
88 | 88 |
this.btnLineAdd = new System.Windows.Forms.Button(); |
89 | 89 |
this.panel2 = new System.Windows.Forms.Panel(); |
90 |
this.lblCellTotal = new System.Windows.Forms.Label(); |
|
91 |
this.btnDispDown = new System.Windows.Forms.Button(); |
|
92 |
this.btnDispUp = new System.Windows.Forms.Button(); |
|
93 |
this.btnOtherProc = new System.Windows.Forms.Button(); |
|
94 |
this.button1 = new System.Windows.Forms.Button(); |
|
95 |
this.button2 = new System.Windows.Forms.Button(); |
|
96 |
this.btnSelect = new System.Windows.Forms.Button(); |
|
97 |
this.btnCreate = new System.Windows.Forms.Button(); |
|
98 | 90 |
this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX(); |
99 | 91 |
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
100 | 92 |
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
... | ... | |
125 | 117 |
this.Column25 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
126 | 118 |
this.Column26 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
127 | 119 |
this.Column28 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
120 |
this.lblCellTotal = new System.Windows.Forms.Label(); |
|
121 |
this.btnDispDown = new System.Windows.Forms.Button(); |
|
122 |
this.btnDispUp = new System.Windows.Forms.Button(); |
|
123 |
this.btnOtherProc = new System.Windows.Forms.Button(); |
|
124 |
this.button1 = new System.Windows.Forms.Button(); |
|
125 |
this.button2 = new System.Windows.Forms.Button(); |
|
126 |
this.btnSelect = new System.Windows.Forms.Button(); |
|
127 |
this.btnCreate = new System.Windows.Forms.Button(); |
|
128 | 128 |
this.grpExample1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx(); |
129 | 129 |
this.lblReqSumType03 = new System.Windows.Forms.Label(); |
130 | 130 |
this.lblReqSumType01 = new System.Windows.Forms.Label(); |
... | ... | |
794 | 794 |
this.panel2.Size = new System.Drawing.Size(1290, 450); |
795 | 795 |
this.panel2.TabIndex = 36; |
796 | 796 |
// |
797 |
// lblCellTotal |
|
798 |
// |
|
799 |
this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
800 |
this.lblCellTotal.AutoSize = true; |
|
801 |
this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke; |
|
802 |
this.lblCellTotal.Font = new System.Drawing.Font("MS P明朝", 9.75F, System.Drawing.FontStyle.Bold); |
|
803 |
this.lblCellTotal.ForeColor = System.Drawing.Color.Black; |
|
804 |
this.lblCellTotal.Location = new System.Drawing.Point(100, 430); |
|
805 |
this.lblCellTotal.Name = "lblCellTotal"; |
|
806 |
this.lblCellTotal.Size = new System.Drawing.Size(0, 13); |
|
807 |
this.lblCellTotal.TabIndex = 36; |
|
808 |
// |
|
809 |
// btnDispDown |
|
810 |
// |
|
811 |
this.btnDispDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
812 |
this.btnDispDown.Font = new System.Drawing.Font("MS 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
813 |
this.btnDispDown.Location = new System.Drawing.Point(1300, 418); |
|
814 |
this.btnDispDown.Name = "btnDispDown"; |
|
815 |
this.btnDispDown.Size = new System.Drawing.Size(40, 40); |
|
816 |
this.btnDispDown.TabIndex = 42; |
|
817 |
this.btnDispDown.TabStop = false; |
|
818 |
this.btnDispDown.Text = "▼"; |
|
819 |
this.btnDispDown.UseVisualStyleBackColor = true; |
|
820 |
this.btnDispDown.Visible = false; |
|
821 |
this.btnDispDown.Click += new System.EventHandler(this.btnDispDown_Click); |
|
822 |
// |
|
823 |
// btnDispUp |
|
824 |
// |
|
825 |
this.btnDispUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
826 |
this.btnDispUp.Font = new System.Drawing.Font("MS 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
827 |
this.btnDispUp.Location = new System.Drawing.Point(1300, 354); |
|
828 |
this.btnDispUp.Name = "btnDispUp"; |
|
829 |
this.btnDispUp.Size = new System.Drawing.Size(40, 40); |
|
830 |
this.btnDispUp.TabIndex = 41; |
|
831 |
this.btnDispUp.TabStop = false; |
|
832 |
this.btnDispUp.Text = "▲"; |
|
833 |
this.btnDispUp.UseVisualStyleBackColor = true; |
|
834 |
this.btnDispUp.Visible = false; |
|
835 |
this.btnDispUp.Click += new System.EventHandler(this.btnDispUp_Click); |
|
836 |
// |
|
837 |
// btnOtherProc |
|
838 |
// |
|
839 |
this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
840 |
this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen; |
|
841 |
this.btnOtherProc.Location = new System.Drawing.Point(7, 656); |
|
842 |
this.btnOtherProc.Name = "btnOtherProc"; |
|
843 |
this.btnOtherProc.Size = new System.Drawing.Size(160, 30); |
|
844 |
this.btnOtherProc.TabIndex = 95; |
|
845 |
this.btnOtherProc.TabStop = false; |
|
846 |
this.btnOtherProc.Text = "他の画面へ"; |
|
847 |
this.btnOtherProc.UseVisualStyleBackColor = false; |
|
848 |
this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click); |
|
849 |
// |
|
850 |
// button1 |
|
851 |
// |
|
852 |
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
853 |
this.button1.Location = new System.Drawing.Point(1300, 540); |
|
854 |
this.button1.Name = "button1"; |
|
855 |
this.button1.Size = new System.Drawing.Size(37, 35); |
|
856 |
this.button1.TabIndex = 100; |
|
857 |
this.button1.Text = "○"; |
|
858 |
this.button1.UseVisualStyleBackColor = true; |
|
859 |
this.button1.Visible = false; |
|
860 |
this.button1.Click += new System.EventHandler(this.button1_Click); |
|
861 |
// |
|
862 |
// button2 |
|
863 |
// |
|
864 |
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
865 |
this.button2.Location = new System.Drawing.Point(1300, 581); |
|
866 |
this.button2.Name = "button2"; |
|
867 |
this.button2.Size = new System.Drawing.Size(37, 35); |
|
868 |
this.button2.TabIndex = 101; |
|
869 |
this.button2.Text = "1"; |
|
870 |
this.button2.UseVisualStyleBackColor = true; |
|
871 |
this.button2.Visible = false; |
|
872 |
this.button2.Click += new System.EventHandler(this.button2_Click); |
|
873 |
// |
|
874 |
// btnSelect |
|
875 |
// |
|
876 |
this.btnSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
877 |
this.btnSelect.BackColor = System.Drawing.Color.Green; |
|
878 |
this.btnSelect.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
879 |
this.btnSelect.ForeColor = System.Drawing.Color.White; |
|
880 |
this.btnSelect.Location = new System.Drawing.Point(546, 657); |
|
881 |
this.btnSelect.Name = "btnSelect"; |
|
882 |
this.btnSelect.Size = new System.Drawing.Size(120, 30); |
|
883 |
this.btnSelect.TabIndex = 102; |
|
884 |
this.btnSelect.Text = "選 択"; |
|
885 |
this.btnSelect.UseVisualStyleBackColor = false; |
|
886 |
this.btnSelect.Visible = false; |
|
887 |
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); |
|
888 |
// |
|
889 |
// btnCreate |
|
890 |
// |
|
891 |
this.btnCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
892 |
this.btnCreate.BackColor = System.Drawing.Color.White; |
|
893 |
this.btnCreate.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
894 |
this.btnCreate.ForeColor = System.Drawing.Color.Green; |
|
895 |
this.btnCreate.Location = new System.Drawing.Point(420, 657); |
|
896 |
this.btnCreate.Name = "btnCreate"; |
|
897 |
this.btnCreate.Size = new System.Drawing.Size(120, 30); |
|
898 |
this.btnCreate.TabIndex = 103; |
|
899 |
this.btnCreate.Text = "新 規"; |
|
900 |
this.btnCreate.UseVisualStyleBackColor = false; |
|
901 |
this.btnCreate.Visible = false; |
|
902 |
this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click); |
|
903 |
// |
|
904 | 797 |
// dgvAllDisplay |
905 | 798 |
// |
906 | 799 |
this.dgvAllDisplay.AllowUserToAddRows = false; |
... | ... | |
1243 | 1136 |
this.Column28.ReadOnly = true; |
1244 | 1137 |
this.Column28.Visible = false; |
1245 | 1138 |
// |
1139 |
// lblCellTotal |
|
1140 |
// |
|
1141 |
this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
1142 |
this.lblCellTotal.AutoSize = true; |
|
1143 |
this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke; |
|
1144 |
this.lblCellTotal.Font = new System.Drawing.Font("MS P明朝", 9.75F, System.Drawing.FontStyle.Bold); |
|
1145 |
this.lblCellTotal.ForeColor = System.Drawing.Color.Black; |
|
1146 |
this.lblCellTotal.Location = new System.Drawing.Point(100, 430); |
|
1147 |
this.lblCellTotal.Name = "lblCellTotal"; |
|
1148 |
this.lblCellTotal.Size = new System.Drawing.Size(0, 13); |
|
1149 |
this.lblCellTotal.TabIndex = 36; |
|
1150 |
// |
|
1151 |
// btnDispDown |
|
1152 |
// |
|
1153 |
this.btnDispDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
1154 |
this.btnDispDown.Font = new System.Drawing.Font("MS 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
1155 |
this.btnDispDown.Location = new System.Drawing.Point(1300, 418); |
|
1156 |
this.btnDispDown.Name = "btnDispDown"; |
|
1157 |
this.btnDispDown.Size = new System.Drawing.Size(40, 40); |
|
1158 |
this.btnDispDown.TabIndex = 42; |
|
1159 |
this.btnDispDown.TabStop = false; |
|
1160 |
this.btnDispDown.Text = "▼"; |
|
1161 |
this.btnDispDown.UseVisualStyleBackColor = true; |
|
1162 |
this.btnDispDown.Visible = false; |
|
1163 |
this.btnDispDown.Click += new System.EventHandler(this.btnDispDown_Click); |
|
1164 |
// |
|
1165 |
// btnDispUp |
|
1166 |
// |
|
1167 |
this.btnDispUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
1168 |
this.btnDispUp.Font = new System.Drawing.Font("MS 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
1169 |
this.btnDispUp.Location = new System.Drawing.Point(1300, 354); |
|
1170 |
this.btnDispUp.Name = "btnDispUp"; |
|
1171 |
this.btnDispUp.Size = new System.Drawing.Size(40, 40); |
|
1172 |
this.btnDispUp.TabIndex = 41; |
|
1173 |
this.btnDispUp.TabStop = false; |
|
1174 |
this.btnDispUp.Text = "▲"; |
|
1175 |
this.btnDispUp.UseVisualStyleBackColor = true; |
|
1176 |
this.btnDispUp.Visible = false; |
|
1177 |
this.btnDispUp.Click += new System.EventHandler(this.btnDispUp_Click); |
|
1178 |
// |
|
1179 |
// btnOtherProc |
|
1180 |
// |
|
1181 |
this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
|
1182 |
this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen; |
|
1183 |
this.btnOtherProc.Location = new System.Drawing.Point(7, 656); |
|
1184 |
this.btnOtherProc.Name = "btnOtherProc"; |
|
1185 |
this.btnOtherProc.Size = new System.Drawing.Size(160, 30); |
|
1186 |
this.btnOtherProc.TabIndex = 95; |
|
1187 |
this.btnOtherProc.TabStop = false; |
|
1188 |
this.btnOtherProc.Text = "他の画面へ"; |
|
1189 |
this.btnOtherProc.UseVisualStyleBackColor = false; |
|
1190 |
this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click); |
|
1191 |
// |
|
1192 |
// button1 |
|
1193 |
// |
|
1194 |
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
1195 |
this.button1.Location = new System.Drawing.Point(1300, 540); |
|
1196 |
this.button1.Name = "button1"; |
|
1197 |
this.button1.Size = new System.Drawing.Size(37, 35); |
|
1198 |
this.button1.TabIndex = 100; |
|
1199 |
this.button1.Text = "○"; |
|
1200 |
this.button1.UseVisualStyleBackColor = true; |
|
1201 |
this.button1.Visible = false; |
|
1202 |
this.button1.Click += new System.EventHandler(this.button1_Click); |
|
1203 |
// |
|
1204 |
// button2 |
|
1205 |
// |
|
1206 |
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
1207 |
this.button2.Location = new System.Drawing.Point(1300, 581); |
|
1208 |
this.button2.Name = "button2"; |
|
1209 |
this.button2.Size = new System.Drawing.Size(37, 35); |
|
1210 |
this.button2.TabIndex = 101; |
|
1211 |
this.button2.Text = "1"; |
|
1212 |
this.button2.UseVisualStyleBackColor = true; |
|
1213 |
this.button2.Visible = false; |
|
1214 |
this.button2.Click += new System.EventHandler(this.button2_Click); |
|
1215 |
// |
|
1216 |
// btnSelect |
|
1217 |
// |
|
1218 |
this.btnSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
1219 |
this.btnSelect.BackColor = System.Drawing.Color.Green; |
|
1220 |
this.btnSelect.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
1221 |
this.btnSelect.ForeColor = System.Drawing.Color.White; |
|
1222 |
this.btnSelect.Location = new System.Drawing.Point(546, 657); |
|
1223 |
this.btnSelect.Name = "btnSelect"; |
|
1224 |
this.btnSelect.Size = new System.Drawing.Size(120, 30); |
|
1225 |
this.btnSelect.TabIndex = 102; |
|
1226 |
this.btnSelect.Text = "選 択"; |
|
1227 |
this.btnSelect.UseVisualStyleBackColor = false; |
|
1228 |
this.btnSelect.Visible = false; |
|
1229 |
this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); |
|
1230 |
// |
|
1231 |
// btnCreate |
|
1232 |
// |
|
1233 |
this.btnCreate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
1234 |
this.btnCreate.BackColor = System.Drawing.Color.White; |
|
1235 |
this.btnCreate.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
1236 |
this.btnCreate.ForeColor = System.Drawing.Color.Green; |
|
1237 |
this.btnCreate.Location = new System.Drawing.Point(420, 657); |
|
1238 |
this.btnCreate.Name = "btnCreate"; |
|
1239 |
this.btnCreate.Size = new System.Drawing.Size(120, 30); |
|
1240 |
this.btnCreate.TabIndex = 103; |
|
1241 |
this.btnCreate.Text = "新 規"; |
|
1242 |
this.btnCreate.UseVisualStyleBackColor = false; |
|
1243 |
this.btnCreate.Visible = false; |
|
1244 |
this.btnCreate.Click += new System.EventHandler(this.btnCreate_Click); |
|
1245 |
// |
|
1246 | 1246 |
// grpExample1 |
1247 | 1247 |
// |
1248 | 1248 |
this.grpExample1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs | ||
---|---|---|
9821 | 9821 |
|
9822 | 9822 |
// ---------- ※.データコンバートロジック↑↑ |
9823 | 9823 |
#endregion |
9824 |
|
|
9825 |
#region ※.テストロジック↓↓ |
|
9826 |
// ---------- ※.テストロジック↓↓ |
|
9827 |
|
|
9828 |
private void TestDataTest() |
|
9829 |
{ |
|
9830 |
IOConstructionLedger LedgerDB = new IOConstructionLedger(); |
|
9831 |
IOConstructionLedgerExcute ExecDB = new IOConstructionLedgerExcute(); |
|
9832 |
try |
|
9833 |
{ |
|
9834 |
LedgerDB.connect(); LedgerDB.beginTran(); |
|
9835 |
ExecDB.connect(); ExecDB.beginTran(); |
|
9836 |
|
|
9837 |
bool bret = ClsChangeLedgerData.ModifyReceiveMoney(LedgerDB |
|
9838 |
, ExecDB |
|
9839 |
, m_ConstructionCode |
|
9840 |
, "2018/10" |
|
9841 |
, 100000); |
|
9842 |
|
|
9843 |
if (!bret) |
|
9844 |
{ |
|
9845 |
LedgerDB.rollback(); |
|
9846 |
ExecDB.rollback(); |
|
9847 |
} |
|
9848 |
|
|
9849 |
LedgerDB.commit(); |
|
9850 |
ExecDB.commit(); |
|
9851 |
} |
|
9852 |
catch (System.Exception ex) |
|
9853 |
{ |
|
9854 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
9855 |
} |
|
9856 |
finally |
|
9857 |
{ |
|
9858 |
LedgerDB.close(); LedgerDB = null; |
|
9859 |
ExecDB.close(); ExecDB = null; |
|
9860 |
} |
|
9861 |
} |
|
9862 |
// ---------- ※.テストロジック↑↑ |
|
9863 |
#endregion |
|
9824 | 9864 |
} |
9825 | 9865 |
} |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.Designer.cs | ||
---|---|---|
117 | 117 |
// |
118 | 118 |
// groupBox2 |
119 | 119 |
// |
120 |
this.groupBox2.BackColor = System.Drawing.Color.WhiteSmoke;
|
|
120 |
this.groupBox2.BackColor = System.Drawing.Color.LightGray;
|
|
121 | 121 |
this.groupBox2.Controls.Add(this.panel5); |
122 | 122 |
this.groupBox2.Controls.Add(this.panel4); |
123 | 123 |
this.groupBox2.Controls.Add(this.panel3); |
... | ... | |
132 | 132 |
// |
133 | 133 |
// panel5 |
134 | 134 |
// |
135 |
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|
135 |
this.panel5.BackColor = System.Drawing.Color.WhiteSmoke; |
|
136 |
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
136 | 137 |
this.panel5.Controls.Add(this.label18); |
137 | 138 |
this.panel5.Controls.Add(this.label17); |
138 | 139 |
this.panel5.Controls.Add(this.radioButton4); |
... | ... | |
179 | 180 |
// |
180 | 181 |
// panel4 |
181 | 182 |
// |
182 |
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|
183 |
this.panel4.BackColor = System.Drawing.Color.WhiteSmoke; |
|
184 |
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
183 | 185 |
this.panel4.Controls.Add(this.label16); |
184 | 186 |
this.panel4.Controls.Add(this.radioButton3); |
185 | 187 |
this.panel4.Controls.Add(this.label15); |
... | ... | |
226 | 228 |
// |
227 | 229 |
// panel3 |
228 | 230 |
// |
229 |
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|
231 |
this.panel3.BackColor = System.Drawing.Color.WhiteSmoke; |
|
232 |
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
230 | 233 |
this.panel3.Controls.Add(this.label5); |
231 | 234 |
this.panel3.Controls.Add(this.label8); |
232 | 235 |
this.panel3.Controls.Add(this.radioButton2); |
... | ... | |
273 | 276 |
// |
274 | 277 |
// panel2 |
275 | 278 |
// |
276 |
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; |
|
279 |
this.panel2.BackColor = System.Drawing.Color.WhiteSmoke; |
|
280 |
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
277 | 281 |
this.panel2.Controls.Add(this.label1); |
278 | 282 |
this.panel2.Controls.Add(this.label6); |
279 | 283 |
this.panel2.Controls.Add(this.radioButton1); |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs | ||
---|---|---|
35 | 35 |
m_WindowWidth = this.Width; |
36 | 36 |
m_WindowHeight = this.Height; |
37 | 37 |
|
38 |
// 製品版は以下を処理しない |
|
39 |
if (ProductDefine.ProductType != (int)ProductDefine.ProductTypeDef.Originals) return; |
|
40 |
|
|
38 | 41 |
bool bDspFlag = false; |
39 | 42 |
// 最高管理者以外は共通費計算画面を表示しない |
40 | 43 |
int SRank = (int)CommonDefine.SecurityRankPos.SpecialAuthority; // 経営者アクセス |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs | ||
---|---|---|
657 | 657 |
if (CommonMotions.chkObjectIsNull(RowData.Cells[(int)GridItemColumn.ComponentCode].Value)) return false; |
658 | 658 |
if (!CommonMotions.chkNumeric(RowData.Cells[(int)GridItemColumn.ComponentCode].Value)) return false; |
659 | 659 |
} |
660 |
//// 名前チェック |
|
661 |
//if (ProcessCommon.chkObjectIsNull(chkFeild[0]) && ProcessCommon.chkObjectIsNull(chkFeild[1])) return false; |
|
662 |
//if (chkFeild[0].ToString().Trim() == "" && chkFeild[1].ToString().Trim() == "") return false; |
|
663 | 660 |
|
664 |
//if (bNumCheck) |
|
665 |
//{ |
|
666 |
// // 数量 |
|
667 |
// if (!ProcessCommon.chkObjectIsNull(chkFeild[4])) |
|
668 |
// { |
|
669 |
// if (!ProcessCommon.chkNumeric(chkFeild[4].ToString())) return false; |
|
670 |
// } |
|
671 |
// // 単価 |
|
672 |
// if (!ProcessCommon.chkObjectIsNull(chkFeild[5])) |
|
673 |
// { |
|
674 |
// if (!ProcessCommon.chkNumeric(chkFeild[5].ToString())) return false; |
|
675 |
// } |
|
676 |
// // 金額 |
|
677 |
// if (!ProcessCommon.chkObjectIsNull(chkFeild[6])) |
|
678 |
// { |
|
679 |
// if (!ProcessCommon.chkNumeric(chkFeild[6].ToString())) return false; |
|
680 |
// } |
|
681 |
//} |
|
682 | 661 |
return true; |
683 | 662 |
} |
684 | 663 |
catch (Exception ex) |
... | ... | |
2291 | 2270 |
// チェック有ページでも金額が無ければ処理しない |
2292 | 2271 |
if (lAmount == 0) return bRet; |
2293 | 2272 |
|
2294 |
if (dCnt > 0 && strUnitName.Length > 0)
|
|
2273 |
if (dCnt != 0 && strUnitName.Length > 0)
|
|
2295 | 2274 |
{ |
2296 | 2275 |
// 両方とも入っていれば正常 |
2297 | 2276 |
} |
... | ... | |
5425 | 5404 |
try |
5426 | 5405 |
{ |
5427 | 5406 |
// まず削除する |
5428 |
string DelSQL = edDB.CreatePrimarykeyString(CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-")); |
|
5407 |
int nConstrCode = CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-"); |
|
5408 |
string DelSQL = edDB.CreatePrimarykeyString(nConstrCode); |
|
5429 | 5409 |
// データがある場合 |
5430 | 5410 |
// データ更新 |
5431 | 5411 |
edDB.DeleteAction(DelSQL, false); |
5432 | 5412 |
|
5413 |
List<EstimateData> workList = new List<EstimateData>(); |
|
5433 | 5414 |
int iLinecount = 0; |
5434 | 5415 |
foreach (DataGridViewRow wrkRows in dgvEntryData.Rows) |
5435 | 5416 |
{ |
5436 |
List<EstimateData> workList = new List<EstimateData>(); |
|
5417 |
|
|
5437 | 5418 |
EstimateData work = new EstimateData(); |
5438 | 5419 |
|
5439 | 5420 |
// 無効行は処理しない |
5440 | 5421 |
if (!ChkGridLineEffectiveness(wrkRows)) continue; |
5441 | 5422 |
|
5442 | 5423 |
// 工事コード |
5443 |
work.ConstructionCode = CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-");
|
|
5424 |
work.ConstructionCode = nConstrCode;
|
|
5444 | 5425 |
|
5445 | 5426 |
// 行番号 |
5446 | 5427 |
work.LineCount = ++iLinecount; |
... | ... | |
5486 | 5467 |
if (!CommonMotions.chkObjectIsNull(wrkRows.Cells[(int)GridTotalColumn.InputFlg].Value)) |
5487 | 5468 |
work.InputFlg = CommonMotions.cnvInt(wrkRows.Cells[(int)GridTotalColumn.InputFlg].Value); |
5488 | 5469 |
|
5489 |
// データ登録 |
|
5490 |
if (!edDB.InsertAction(work, false)) |
|
5491 |
{ |
|
5492 |
LogicalErrorMessage("積算見積データ:登録に失敗しました。", "登録エラー", CommonMotions.GetMethodName()); |
|
5493 |
return false; |
|
5494 |
} |
|
5470 |
workList.Add(work); |
|
5495 | 5471 |
} |
5496 | 5472 |
|
5473 |
// データ登録 |
|
5474 |
if (!edDB.InsertAction(workList, false)) |
|
5475 |
{ |
|
5476 |
LogicalErrorMessage("積算見積データ:登録に失敗しました。", "登録エラー", CommonMotions.GetMethodName()); |
|
5477 |
return false; |
|
5478 |
} |
|
5479 |
|
|
5497 | 5480 |
return true; |
5498 | 5481 |
} |
5499 | 5482 |
catch (System.Exception ex) |
... | ... | |
5513 | 5496 |
try |
5514 | 5497 |
{ |
5515 | 5498 |
// まず削除する |
5516 |
string DelSQL = edbDB.CreatePrimarykeyString(CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-")); |
|
5499 |
int nConstrCode = CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-"); |
|
5500 |
string DelSQL = edbDB.CreatePrimarykeyString(nConstrCode); |
|
5517 | 5501 |
// データがある場合 |
5518 | 5502 |
// データ更新 |
5519 | 5503 |
edbDB.DeleteAction(DelSQL, false); |
5520 | 5504 |
|
5505 |
List<EstimateDataBody> workList = new List<EstimateDataBody>(); |
|
5521 | 5506 |
// タブ数分処理を行う |
5522 | 5507 |
for (int iTabs = 1; iTabs < m_EntryPage.Count; iTabs++) |
5523 | 5508 |
{ |
5524 |
|
|
5525 | 5509 |
// データ定義 |
5526 |
List<EstimateDataBody> workList = new List<EstimateDataBody>(); |
|
5527 | 5510 |
EstimateDataBody work = new EstimateDataBody(); |
5528 | 5511 |
|
5529 | 5512 |
// 工事コード |
5530 |
work.ConstructionCode = CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-");
|
|
5513 |
work.ConstructionCode = nConstrCode;
|
|
5531 | 5514 |
|
5532 | 5515 |
// ページ番号 |
5533 | 5516 |
work.PageCount = iTabs; |
... | ... | |
5549 | 5532 |
string wrkCompornent = m_EntryPage[iTabs].EntryLabel[(int)PageLabelCount.ComponentLabel].Text.ToString(); |
5550 | 5533 |
if (m_EntryPage[iTabs].Cotegory == CommonDefine.TabCotegory.Item) |
5551 | 5534 |
{ |
5552 |
//work.SelectComponent = CommonMotions.GetArrayStructureName(wrkCompornent.Substring(wrkCompornent.IndexOf(CompornentDelimiter) + 1)); |
|
5553 | 5535 |
work.SelectComponent = m_EntryPage[iTabs].BelongingToComponentCode; |
5554 | 5536 |
} |
5555 | 5537 |
|
5556 |
// ページ表示名 |
|
5557 |
//string wrkTitle = m_EntryPage[iTabs].EntryLabel[(int)PageLabelCount.ItemLabel].Text.ToString(); |
|
5558 |
//work.PageTitle = wrkTitle.Substring(wrkTitle.IndexOf(CompornentDelimiter) + 1); |
|
5559 |
|
|
5560 | 5538 |
work.PageTitle = m_EntryPage[iTabs].EntryTab.Text.Trim(); |
5561 | 5539 |
|
5562 | 5540 |
// 明細行番号 |
... | ... | |
5572 | 5550 |
} |
5573 | 5551 |
work.DetailLineCount = fromRow; |
5574 | 5552 |
|
5553 |
workList.Add(work); |
|
5554 |
} // iTabs |
|
5575 | 5555 |
|
5576 |
// データ登録
|
|
5577 |
if (!edbDB.InsertAction(work, false))
|
|
5578 |
{
|
|
5579 |
LogicalErrorMessage("登録に失敗しました。", "登録エラー", CommonMotions.GetMethodName());
|
|
5580 |
return false;
|
|
5581 |
}
|
|
5582 |
} // iTabs |
|
5556 |
// データ登録 |
|
5557 |
if (!edbDB.InsertAction(workList, false))
|
|
5558 |
{ |
|
5559 |
LogicalErrorMessage("登録に失敗しました。", "登録エラー", CommonMotions.GetMethodName()); |
|
5560 |
return false; |
|
5561 |
} |
|
5562 |
|
|
5583 | 5563 |
return true; |
5584 | 5564 |
} |
5585 | 5565 |
catch (System.Exception ex) |
... | ... | |
5599 | 5579 |
try |
5600 | 5580 |
{ |
5601 | 5581 |
// まず削除する |
5602 |
string DelSQL = eddDB.CreatePrimarykeyString(CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-")); |
|
5582 |
int nConstrCode = CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-"); |
|
5583 |
string DelSQL = eddDB.CreatePrimarykeyString(nConstrCode); |
|
5603 | 5584 |
// データがある場合 |
5604 | 5585 |
// データ更新 |
5605 | 5586 |
eddDB.DeleteAction(DelSQL, false); |
5606 | 5587 |
|
5588 |
List<EstimateDataDetail> workList = new List<EstimateDataDetail>(); |
|
5607 | 5589 |
// タブ数分処理を行う |
5608 | 5590 |
for (int iTabs = 1; iTabs < m_EntryPage.Count; iTabs++) |
5609 | 5591 |
{ |
5610 | 5592 |
DataGridViewEX wrkGrid = m_EntryPage[iTabs].EntryDGV; |
5611 |
for (int iRows = 0; iRows < wrkGrid.RowCount; iRows++) |
|
5593 |
//for (int iRows = 0; iRows < wrkGrid.RowCount; iRows++) |
|
5594 |
bool bDataOn = false; |
|
5595 |
for (int iRows = (wrkGrid.RowCount - 1); iRows >= 0; iRows--) |
|
5612 | 5596 |
{ |
5613 | 5597 |
// 行データ定義 |
5614 | 5598 |
DataGridViewRow wrkRows = wrkGrid.Rows[iRows]; |
5615 | 5599 |
|
5616 | 5600 |
// データ定義 |
5617 |
List<EstimateDataDetail> workList = new List<EstimateDataDetail>(); |
|
5618 | 5601 |
EstimateDataDetail work = new EstimateDataDetail(); |
5619 | 5602 |
|
5620 | 5603 |
// データセット |
5621 | 5604 |
// 無効行は処理しない |
5622 |
if (!ChkGridLineEffectiveness(wrkRows)) continue; |
|
5605 |
if (!bDataOn && !ChkGridLineEffectiveness(wrkRows)) continue;
|
|
5623 | 5606 |
|
5607 |
bDataOn = true; |
|
5624 | 5608 |
// 工事コード |
5625 |
work.ConstructionCode = CommonMotions.cnvIntFromStringCode(m_dispLabelControl[(int)DispLabel.ConstructionCode].Text, "-");
|
|
5609 |
work.ConstructionCode = nConstrCode;
|
|
5626 | 5610 |
|
5627 | 5611 |
// ページ番号 |
5628 | 5612 |
work.PageCount = iTabs; |
... | ... | |
5696 | 5680 |
if (!CommonMotions.chkObjectIsNull(wrkRows.Cells[(int)GridComponentColumn.InputFlg].Value)) |
5697 | 5681 |
work.InputFlg = CommonMotions.cnvInt(wrkRows.Cells[(int)GridComponentColumn.InputFlg].Value); |
5698 | 5682 |
} |
5699 |
// データ登録 |
|
5700 |
if (!eddDB.InsertAction(work, false)) |
|
5701 |
{ |
|
5702 |
LogicalErrorMessage("登録に失敗しました。", "登録エラー", CommonMotions.GetMethodName()); |
|
5703 |
return false; |
|
5704 |
} |
|
5683 |
workList.Add(work); |
|
5705 | 5684 |
} // iRows |
5706 | 5685 |
} // iTabs |
5686 |
|
|
5687 |
// データ登録 |
|
5688 |
if (!eddDB.InsertAction(workList, false)) |
|
5689 |
{ |
|
5690 |
LogicalErrorMessage("登録に失敗しました。", "登録エラー", CommonMotions.GetMethodName()); |
|
5691 |
return false; |
|
5692 |
} |
|
5707 | 5693 |
return true; |
5708 | 5694 |
} |
5709 | 5695 |
catch (System.Exception ex) |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.Designer.cs | ||
---|---|---|
28 | 28 |
/// </summary> |
29 | 29 |
private void InitializeComponent() |
30 | 30 |
{ |
31 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
32 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
40 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
41 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
42 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
43 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
44 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
45 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
46 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
47 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
48 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
49 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
50 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
51 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
31 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
32 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
40 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
41 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
42 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
43 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
44 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
45 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
46 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
47 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
48 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
49 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
50 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
51 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); |
他の形式にエクスポート: Unified diff