リビジョン 329
発注者マスタ:発注区分変更時、関連データの変更処理追加
ToString編集"0,0"を"#.0"に変更
デバッグ行コメントアウト
請求書作成・発酵処理修正中
branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs | ||
---|---|---|
14 | 14 |
/// <summary> |
15 | 15 |
/// 本体バージョン |
16 | 16 |
/// </summary> |
17 |
public static int s_SystemVersion = 153;
|
|
17 |
public static int s_SystemVersion = 154;
|
|
18 | 18 |
|
19 | 19 |
/// <summary> |
20 | 20 |
/// コピー・環境バージョン |
branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs | ||
---|---|---|
83 | 83 |
SubConstrRegist = 36, // 36:協力会社登録申請 |
84 | 84 |
PriceOfBudget = 37, // 37:台帳状況確認画面 |
85 | 85 |
MaterialEntrylList = 38, // 38:資材選択一覧 |
86 |
BillingEntrylList = 39, // 39:請求選択一覧
|
|
86 |
RequestInputlList = 39, // 39:請求選択一覧
|
|
87 | 87 |
PurchaseStatusInput = 40, // 40:注文書状況入力 |
88 | 88 |
ReqBillingStatus = 41, // 41:請求書発給一覧 |
89 | 89 |
ReqBillingStatInput = 42, // 42:請求書状況入力 |
90 | 90 |
SafetyPatrol = 43, // 43:安全パトロール申請 |
91 | 91 |
ReqSumTotalList = 44, // 44:手間・通常業者一覧 |
92 |
RequestPrintList = 45, // 45:請求書印刷一覧 |
|
92 | 93 |
} |
93 | 94 |
#endregion |
94 | 95 |
|
... | ... | |
186 | 187 |
{ (int)ProcessExecuteNo.MaterialSelect, "資材選択-入力"}, |
187 | 188 |
{ (int)ProcessExecuteNo.RequestSummaryList, "請求まとめ-入力"}, |
188 | 189 |
{ (int)ProcessExecuteNo.PaymentConfirmation, "入金確認-入力"}, |
189 |
{ (int)ProcessExecuteNo.RequestInput, "請求データ作成-入力"},
|
|
190 |
{ (int)ProcessExecuteNo.RequestInput, "請求作成データ-入力"},
|
|
190 | 191 |
{ (int)ProcessExecuteNo.RequestPrint, "請求書-印刷"}, |
191 | 192 |
{ (int)ProcessExecuteNo.CostomerRegistList, "発注者登録申請一覧-表示"}, |
192 | 193 |
{ (int)ProcessExecuteNo.CostomerRegist, "発注者登録申請-入力"}, |
... | ... | |
194 | 195 |
{ (int)ProcessExecuteNo.SubConstrRegist, "協力会社登録申請-入力"}, |
195 | 196 |
{ (int)ProcessExecuteNo.PriceOfBudget, "工事台帳状態確認-表示"}, |
196 | 197 |
{ (int)ProcessExecuteNo.MaterialEntrylList, "資材データ一覧-表示"}, |
197 |
{ (int)ProcessExecuteNo.BillingEntrylList, "請求データ一覧-表示"},
|
|
198 |
{ (int)ProcessExecuteNo.RequestInputlList, "請求作成一覧-表示"},
|
|
198 | 199 |
{ (int)ProcessExecuteNo.PurchaseStatusInput, "注文書状況-入力"}, |
199 | 200 |
{ (int)ProcessExecuteNo.ReqBillingStatus, "請求書発給一覧-表示"}, |
200 | 201 |
{ (int)ProcessExecuteNo.ReqBillingStatInput, "請求書状況-入力"}, |
201 | 202 |
{ (int)ProcessExecuteNo.SafetyPatrol, "安全パトロール申請"}, |
202 | 203 |
{ (int)ProcessExecuteNo.ReqSumTotalList, "手間・通常業者一覧-表示"}, |
204 |
{ (int)ProcessExecuteNo.RequestPrintList, "請求書印刷一覧-表示"}, |
|
205 |
|
|
203 | 206 |
}; |
204 | 207 |
|
205 | 208 |
#endregion |
... | ... | |
655 | 658 |
ProcessExecuteNo_MaterialEntrylList(m_ProcControlPara[NowPoint]); |
656 | 659 |
break; |
657 | 660 |
|
658 |
case (int)ProcessExecuteNo.BillingEntrylList: // 39:請求選択一覧
|
|
659 |
ProcessExecuteNo_BillingEntrylList(m_ProcControlPara[NowPoint]);
|
|
661 |
case (int)ProcessExecuteNo.RequestInputlList: // 39:請求選択一覧
|
|
662 |
ProcessExecuteNo_RequestInputlList(m_ProcControlPara[NowPoint]);
|
|
660 | 663 |
break; |
661 | 664 |
|
662 | 665 |
case (int)ProcessExecuteNo.PurchaseStatusInput: // 40:注文書状況日付入力 |
... | ... | |
677 | 680 |
|
678 | 681 |
case (int)ProcessExecuteNo.ReqSumTotalList: // 44:手間・通常業者一覧 |
679 | 682 |
break; |
683 |
|
|
684 |
case (int)ProcessExecuteNo.RequestPrintList: // 45:請求書印刷一覧 |
|
685 |
ProcessExecuteNo_RequestPrintList(m_ProcControlPara[NowPoint]); |
|
686 |
break; |
|
687 |
|
|
680 | 688 |
#endregion |
681 | 689 |
|
682 | 690 |
#region マスタメンテ |
... | ... | |
2279 | 2287 |
/// <param name="CurrentPara"></param> |
2280 | 2288 |
public static void ProcessExecuteNo_RequestPrint(ProcessParameter CurrentPara) |
2281 | 2289 |
{ |
2282 |
// 入金確認
|
|
2283 |
FrmEntryReqSelOrderer frm = new FrmEntryReqSelOrderer();
|
|
2290 |
// 請求書作成
|
|
2291 |
FrmRequestPrintSel frm = new FrmRequestPrintSel();
|
|
2284 | 2292 |
try |
2285 | 2293 |
{ |
2286 |
int ProcessNo = (int)ProcessExecuteNo.PaymentConfirmation;
|
|
2294 |
int ProcessNo = (int)ProcessExecuteNo.RequestPrint;
|
|
2287 | 2295 |
|
2288 | 2296 |
// 起動・編集フラグ |
2289 | 2297 |
int EditFlg = (int)CommonDefine.ProcessDataEdit.Reference; |
... | ... | |
2293 | 2301 |
return; |
2294 | 2302 |
} |
2295 | 2303 |
|
2304 |
// 次起動プロセスセット |
|
2305 |
frm.ExecuteFlg = CurrentPara.IntExecParameter[0]; |
|
2306 |
frm.ExecuteSubFlg = CurrentPara.IntExecParameter[1]; |
|
2307 |
|
|
2308 |
frm.EditFlg = true; |
|
2309 |
frm.RequestMonth = CurrentPara.IntExecParameter[2]; |
|
2310 |
frm.OrderersDivision = CurrentPara.IntExecParameter[3]; |
|
2311 |
frm.OrderersCode = CurrentPara.IntExecParameter[4]; |
|
2312 |
frm.OrderersName = CurrentPara.StringExecParameter[0]; |
|
2313 |
|
|
2296 | 2314 |
// フォーム表示 |
2297 | 2315 |
frm.ShowDialog(); |
2298 | 2316 |
} |
... | ... | |
2503 | 2521 |
} |
2504 | 2522 |
#endregion |
2505 | 2523 |
|
2506 |
#region 請求選択一覧 |
|
2524 |
#region 請求入力選択一覧
|
|
2507 | 2525 |
/// <summary> |
2508 |
/// 請求選択一覧 |
|
2526 |
/// 請求入力選択一覧
|
|
2509 | 2527 |
/// </summary> |
2510 | 2528 |
/// <returns></returns> |
2511 |
public static void ProcessExecuteNo_BillingEntrylList(ProcessParameter CurrentPara)
|
|
2529 |
public static void ProcessExecuteNo_RequestInputlList(ProcessParameter CurrentPara)
|
|
2512 | 2530 |
{ |
2513 |
// 請求選択一覧 |
|
2514 |
FrmConstrReqList frm = new FrmConstrReqList();
|
|
2531 |
// 請求入力選択一覧
|
|
2532 |
FrmReqInputList frm = new FrmReqInputList();
|
|
2515 | 2533 |
try |
2516 | 2534 |
{ |
2517 | 2535 |
// 次起動プロセスが設定されていない場合は終了 |
... | ... | |
2670 | 2688 |
} |
2671 | 2689 |
#endregion |
2672 | 2690 |
|
2691 |
#region 請求印刷選択一覧 |
|
2692 |
/// <summary> |
|
2693 |
/// 請求印刷選択一覧 |
|
2694 |
/// </summary> |
|
2695 |
/// <param name="CurrentPara"></param> |
|
2696 |
public static void ProcessExecuteNo_RequestPrintList(ProcessParameter CurrentPara) |
|
2697 |
{ |
|
2698 |
// 請求印刷選択一覧 |
|
2699 |
//FrmEntryReqSelOrderer frm = new FrmEntryReqSelOrderer(); |
|
2700 |
FrmReqEntryList frm = new FrmReqEntryList(); |
|
2701 |
try |
|
2702 |
{ |
|
2703 |
// 次起動プロセスが設定されていない場合は終了 |
|
2704 |
if (CurrentPara.IntExecParameter[0] == 0) |
|
2705 |
{ |
|
2706 |
// 前プロセスに戻る |
|
2707 |
BackProcess(); |
|
2708 |
return; |
|
2709 |
} |
|
2710 |
|
|
2711 |
// 次起動プロセスセット |
|
2712 |
frm.ExecuteFlg = CurrentPara.IntExecParameter[0]; |
|
2713 |
frm.ExecuteSubFlg = CurrentPara.IntExecParameter[1]; |
|
2714 |
|
|
2715 |
// フォーム表示 |
|
2716 |
frm.ShowDialog(); |
|
2717 |
|
|
2718 |
} |
|
2719 |
catch (Exception ex) |
|
2720 |
{ |
|
2721 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
2722 |
BackProcess(); |
|
2723 |
} |
|
2724 |
finally |
|
2725 |
{ |
|
2726 |
frm.Dispose(); frm = null; |
|
2727 |
} |
|
2728 |
} |
|
2673 | 2729 |
#endregion |
2730 |
#endregion |
|
2674 | 2731 |
|
2675 | 2732 |
#region マスタメンテナンス |
2676 | 2733 |
// ----------------- メンテナンス起動 |
branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMOrderers.cs | ||
---|---|---|
543 | 543 |
return iRet; |
544 | 544 |
} |
545 | 545 |
#endregion |
546 |
|
|
547 |
#region 指定レコードの表示順を更新する |
|
548 |
/// <summary> |
|
549 |
/// 指定レコードの表示順を更新する |
|
550 |
/// </summary> |
|
551 |
/// <param name="AddSQLString"></param> |
|
552 |
/// <param name="bConnect"></param> |
|
553 |
/// <returns></returns> |
|
554 |
public bool SetDisplayOrder(string AddSQLString, bool bConnect = true) |
|
555 |
{ |
|
556 |
// インターフェース |
|
557 |
StringBuilder strcmd = new StringBuilder(); |
|
558 |
ArrayList arData = new ArrayList(); |
|
559 |
try |
|
560 |
{ |
|
561 |
// SQL作成 |
|
562 |
strcmd.Append("UPDATE ORDERERSMASTER SET DisplayOrder = ROWNUM"); |
|
563 |
strcmd.Append(AddSQLString); |
|
564 |
|
|
565 |
// SQL実行 |
|
566 |
if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false; |
|
567 |
|
|
568 |
return true; |
|
569 |
} |
|
570 |
catch (Exception ex) |
|
571 |
{ |
|
572 |
logger.ErrorFormat("システムエラー:{0}:{1}:{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString()); |
|
573 |
return false; |
|
574 |
} |
|
575 |
} |
|
576 |
#endregion |
|
577 | 546 |
} |
578 | 547 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs | ||
---|---|---|
1101 | 1101 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
1102 | 1102 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
1103 | 1103 |
|
1104 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
1104 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
1105 | 1105 |
DataCnt++; |
1106 | 1106 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
1107 | 1107 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs | ||
---|---|---|
4692 | 4692 |
|
4693 | 4693 |
// 空白行は処理しない |
4694 | 4694 |
if (BlankLine(wrkRow.Index)) continue; |
4695 |
if (wrkRow.Index == 40) |
|
4696 |
{ |
|
4697 |
Console.WriteLine("Debug"); |
|
4698 |
} |
|
4695 |
|
|
4699 | 4696 |
DataGridViewTextBoxCell workCell = null; |
4700 | 4697 |
// 項目名称レングスチェック |
4701 | 4698 |
workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)GridColumn.ItemName]; |
... | ... | |
7826 | 7823 |
DataGridViewRow SelectRow = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)GridColumn.CompanyCode].Value) == m_ReqSumCompany |
7827 | 7824 |
&& CommonMotions.cnvInt(x.Cells[(int)GridColumn.DetailNo].Value) == m_TargetDetailNo) |
7828 | 7825 |
.First(); |
7829 |
SelectRow.Cells[m_TargetColumn].Value = m_AddingRequestPrice.ToString("0,0");
|
|
7826 |
SelectRow.Cells[m_TargetColumn].Value = m_AddingRequestPrice.ToString("#,0");
|
|
7830 | 7827 |
|
7831 | 7828 |
// 再計算処理 |
7832 | 7829 |
RowReCalculate(SelectRow, SelectRow.Index, m_TargetColumn); |
... | ... | |
8143 | 8140 |
DataGridViewRow SelectRow = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)GridColumn.CompanyCode].Value) == DataCurRec.CompanyCode |
8144 | 8141 |
&& CommonMotions.cnvInt(x.Cells[(int)GridColumn.DetailNo].Value) == DataCurRec.ConstructionRowCnt) |
8145 | 8142 |
.First(); |
8146 |
SelectRow.Cells[nSetColumn].Value = DataCurRec.BillPrice.ToString("0,0");
|
|
8143 |
SelectRow.Cells[nSetColumn].Value = DataCurRec.BillPrice.ToString("#,0");
|
|
8147 | 8144 |
} |
8148 | 8145 |
} |
8149 | 8146 |
catch (System.Exception ex) |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs | ||
---|---|---|
713 | 713 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
714 | 714 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
715 | 715 |
|
716 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
716 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
717 | 717 |
DataCnt++; |
718 | 718 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
719 | 719 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs | ||
---|---|---|
426 | 426 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
427 | 427 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
428 | 428 |
|
429 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
429 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
430 | 430 |
DataCnt++; |
431 | 431 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
432 | 432 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.cs | ||
---|---|---|
742 | 742 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
743 | 743 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
744 | 744 |
|
745 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
745 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
746 | 746 |
DataCnt++; |
747 | 747 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
748 | 748 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudget.cs | ||
---|---|---|
328 | 328 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
329 | 329 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
330 | 330 |
|
331 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
331 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
332 | 332 |
DataCnt++; |
333 | 333 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
334 | 334 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPOConvert.cs | ||
---|---|---|
170 | 170 |
List<ConstructionLedgerDetail> DetailList = new List<ConstructionLedgerDetail>(); |
171 | 171 |
LedgerDDB.SelectAction(strSQL.ToString(), ref DetailList, false); |
172 | 172 |
if (DetailList.Count < 1) return false; |
173 |
lblCount01.Text = DetailList.Count.ToString("0,0");
|
|
173 |
lblCount01.Text = DetailList.Count.ToString("#,0");
|
|
174 | 174 |
this.Refresh(); |
175 | 175 |
|
176 | 176 |
int nDcnt = 0; |
... | ... | |
197 | 197 |
nDcnt++; |
198 | 198 |
nAllcnt++; |
199 | 199 |
} |
200 |
lblCount02.Text = nAllcnt.ToString("0,0");
|
|
200 |
lblCount02.Text = nAllcnt.ToString("#,0");
|
|
201 | 201 |
this.Refresh(); |
202 | 202 |
|
203 | 203 |
strSQL.Clear(); |
... | ... | |
233 | 233 |
OrederCnt++; |
234 | 234 |
} |
235 | 235 |
|
236 |
lblCount03.Text = OrederCnt.ToString("0,0");
|
|
236 |
lblCount03.Text = OrederCnt.ToString("#,0");
|
|
237 | 237 |
this.Refresh(); |
238 | 238 |
|
239 | 239 |
return true; |
... | ... | |
277 | 277 |
nCnt++; |
278 | 278 |
} |
279 | 279 |
|
280 |
lblCount04.Text = nCnt.ToString("0,0");
|
|
280 |
lblCount04.Text = nCnt.ToString("#,0");
|
|
281 | 281 |
this.Refresh(); |
282 | 282 |
|
283 | 283 |
strSQL.Clear(); |
... | ... | |
301 | 301 |
} |
302 | 302 |
nCnt++; |
303 | 303 |
} |
304 |
lblCount05.Text = nCnt.ToString("0,0");
|
|
304 |
lblCount05.Text = nCnt.ToString("#,0");
|
|
305 | 305 |
this.Refresh(); |
306 | 306 |
|
307 | 307 |
|
... | ... | |
326 | 326 |
} |
327 | 327 |
nCnt++; |
328 | 328 |
} |
329 |
lblCount06.Text = nCnt.ToString("0,0");
|
|
329 |
lblCount06.Text = nCnt.ToString("#,0");
|
|
330 | 330 |
this.Refresh(); |
331 | 331 |
|
332 | 332 |
return true; |
... | ... | |
392 | 392 |
} |
393 | 393 |
nCnt++; |
394 | 394 |
} |
395 |
lblCount04.Text = nCnt.ToString("0,0");
|
|
395 |
lblCount04.Text = nCnt.ToString("#,0");
|
|
396 | 396 |
this.Refresh(); |
397 | 397 |
|
398 | 398 |
strSQL.Clear(); |
... | ... | |
442 | 442 |
} |
443 | 443 |
|
444 | 444 |
|
445 |
lblCount05.Text = nCnt.ToString("0,0");
|
|
445 |
lblCount05.Text = nCnt.ToString("#,0");
|
|
446 | 446 |
this.Refresh(); |
447 | 447 |
|
448 | 448 |
return true; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInputAuxiliary.cs | ||
---|---|---|
171 | 171 |
dgv.Rows.Add(ino++, |
172 | 172 |
CommonMotions.cnvInt(objRec[InvoiceCnt + (int)IORequestHead.NameColumn.RequestNo]), |
173 | 173 |
CommonMotions.cnvString(objRec[InvoiceCnt + (int)IORequestHead.NameColumn.ReqConstructionName]), |
174 |
(TotalVal - TaxVal).ToString("0,0"),
|
|
174 |
(TotalVal - TaxVal).ToString("#,0"),
|
|
175 | 175 |
CommonMotions.cnvDate(objRec[InvoiceCnt + ReqHeadCnt + (int)IOProcessApproval.ColumnName.PetitionApprovalDate]).ToShortDateString(), |
176 | 176 |
CommonMotions.cnvInt(objRec[InvoiceCnt + (int)IORequestHead.NameColumn.ReqConstructionCode]) |
177 | 177 |
); |
... | ... | |
205 | 205 |
lblLabel03.Text = string.Format("{0}/{1}", CalYear, CalMonth.ToString("00")); |
206 | 206 |
lblLabel04.Text = HeaderRec.CretateDate.ToShortDateString(); |
207 | 207 |
lblLabel05.Text = HeaderRec.RequestDate.ToShortDateString(); |
208 |
lblLabel06.Text = (HeaderRec.TotalAmount - HeaderRec.TaxAmount).ToString("0,0");
|
|
208 |
lblLabel06.Text = (HeaderRec.TotalAmount - HeaderRec.TaxAmount).ToString("#,0");
|
|
209 | 209 |
|
210 | 210 |
textBox1.Text = ""; |
211 | 211 |
if (dtSend.Date == DateTime.MinValue) return; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatus.cs | ||
---|---|---|
415 | 415 |
if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue; |
416 | 416 |
if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue; |
417 | 417 |
|
418 |
Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex); |
|
418 |
//Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
|
|
419 | 419 |
DataCnt++; |
420 | 420 |
dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value); |
421 | 421 |
if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++; |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs | ||
---|---|---|
446 | 446 |
, CommonMotions.cnvString(objwrk[(int)GetData.PERSONNAME]) |
447 | 447 |
, strOrderName |
448 | 448 |
, strConstrName |
449 |
, CommonMotions.cnvInt(objwrk[(int)GetData.REQUESTAMOUNT]).ToString("0,0")
|
|
449 |
, CommonMotions.cnvInt(objwrk[(int)GetData.REQUESTAMOUNT]).ToString("#,0")
|
|
450 | 450 |
, CommonMotions.cnvInt(objwrk[(int)GetData.MAINCONSTRUCTIONCODE]) |
451 | 451 |
, DspDate[0] |
452 | 452 |
, DspDate[1] |
... | ... | |
498 | 498 |
, "" |
499 | 499 |
, strOrderName |
500 | 500 |
, "" |
501 |
, CommonMotions.cnvInt(objwrk[(int)GetData.TOTALAMOUNT]).ToString("0,0")
|
|
501 |
, CommonMotions.cnvInt(objwrk[(int)GetData.TOTALAMOUNT]).ToString("#,0")
|
|
502 | 502 |
, CommonMotions.cnvInt(objwrk[(int)GetData.MAINCONSTRUCTIONCODE]) |
503 | 503 |
, "" |
504 | 504 |
, DspDate[1] |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/ConstrReqList/FrmConstrReqList.designer.cs | ||
---|---|---|
1 |
namespace ProcessManagement.Forms.DataEntry |
|
2 |
{ |
|
3 |
partial class FrmConstrReqList |
|
4 |
{ |
|
5 |
/// <summary> |
|
6 |
/// 必要なデザイナ変数です。 |
|
7 |
/// </summary> |
|
8 |
private System.ComponentModel.IContainer components = null; |
|
9 |
|
|
10 |
/// <summary> |
|
11 |
/// 使用中のリソースをすべてクリーンアップします。 |
|
12 |
/// </summary> |
|
13 |
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は 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 フォーム デザイナで生成されたコード |
|
24 |
|
|
25 |
/// <summary> |
|
26 |
/// デザイナ サポートに必要なメソッドです。このメソッドの内容を |
|
27 |
/// コード エディタで変更しないでください。 |
|
28 |
/// </summary> |
|
29 |
private void InitializeComponent() |
|
30 |
{ |
|
31 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
32 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
33 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
34 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
35 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
36 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
37 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
38 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
39 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
40 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
41 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
42 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
43 |
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
44 |
this.btnEnd = new System.Windows.Forms.Button(); |
|
45 |
this.label1 = new System.Windows.Forms.Label(); |
|
46 |
this.groupBox1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx(); |
|
47 |
this.label3 = new System.Windows.Forms.Label(); |
|
48 |
this.radioButton2 = new System.Windows.Forms.RadioButton(); |
|
49 |
this.radioButton1 = new System.Windows.Forms.RadioButton(); |
|
50 |
this.label4 = new System.Windows.Forms.Label(); |
|
51 |
this.numUDConstPro = new System.Windows.Forms.NumericUpDown(); |
|
52 |
this.label5 = new System.Windows.Forms.Label(); |
|
53 |
this.label7 = new System.Windows.Forms.Label(); |
|
54 |
this.cmbConstructionPerson = new System.Windows.Forms.ComboBox(); |
|
55 |
this.cmbDepartment = new System.Windows.Forms.ComboBox(); |
|
56 |
this.label2 = new System.Windows.Forms.Label(); |
|
57 |
this.lblProcessTitil = new System.Windows.Forms.Label(); |
|
58 |
this.btnDataUpDate = new System.Windows.Forms.Button(); |
|
59 |
this.dgvEntry = new ProcessManagement.Forms.CustomControls.DataGridViewEX(); |
|
60 |
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
61 |
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
62 |
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
63 |
this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
64 |
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
65 |
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
66 |
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
67 |
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
68 |
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
69 |
this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
70 |
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
71 |
this.groupBox1.SuspendLayout(); |
|
72 |
((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit(); |
|
73 |
((System.ComponentModel.ISupportInitialize)(this.dgvEntry)).BeginInit(); |
|
74 |
this.SuspendLayout(); |
|
75 |
// |
|
76 |
// btnEnd |
|
77 |
// |
|
78 |
this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); |
|
79 |
this.btnEnd.BackColor = System.Drawing.Color.Blue; |
|
80 |
this.btnEnd.ForeColor = System.Drawing.Color.White; |
|
81 |
this.btnEnd.Location = new System.Drawing.Point(1150, 619); |
|
82 |
this.btnEnd.Name = "btnEnd"; |
|
83 |
this.btnEnd.Size = new System.Drawing.Size(120, 30); |
|
84 |
this.btnEnd.TabIndex = 8; |
|
85 |
this.btnEnd.Text = "終 了"; |
|
86 |
this.btnEnd.UseVisualStyleBackColor = false; |
|
87 |
this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click); |
|
88 |
// |
|
89 |
// label1 |
|
90 |
// |
|
91 |
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
92 |
this.label1.BackColor = System.Drawing.Color.White; |
|
93 |
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
94 |
this.label1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
95 |
this.label1.ForeColor = System.Drawing.Color.Black; |
|
96 |
this.label1.Location = new System.Drawing.Point(440, 10); |
|
97 |
this.label1.Name = "label1"; |
|
98 |
this.label1.Size = new System.Drawing.Size(400, 20); |
|
99 |
this.label1.TabIndex = 6; |
|
100 |
this.label1.Text = "工 事 情 報 一 覧"; |
|
101 |
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
102 |
// |
|
103 |
// groupBox1 |
|
104 |
// |
|
105 |
this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top; |
|
106 |
this.groupBox1.BackColor = System.Drawing.Color.Aquamarine; |
|
107 |
this.groupBox1.BorderColor = System.Drawing.Color.White; |
|
108 |
this.groupBox1.Controls.Add(this.label3); |
|
109 |
this.groupBox1.Controls.Add(this.radioButton2); |
|
110 |
this.groupBox1.Controls.Add(this.radioButton1); |
|
111 |
this.groupBox1.Controls.Add(this.label4); |
|
112 |
this.groupBox1.Controls.Add(this.numUDConstPro); |
|
113 |
this.groupBox1.Controls.Add(this.label5); |
|
114 |
this.groupBox1.Controls.Add(this.label7); |
|
115 |
this.groupBox1.Controls.Add(this.cmbConstructionPerson); |
|
116 |
this.groupBox1.Controls.Add(this.cmbDepartment); |
|
117 |
this.groupBox1.Controls.Add(this.label2); |
|
118 |
this.groupBox1.ForeColor = System.Drawing.Color.White; |
|
119 |
this.groupBox1.Location = new System.Drawing.Point(10, 40); |
|
120 |
this.groupBox1.Name = "groupBox1"; |
|
121 |
this.groupBox1.Size = new System.Drawing.Size(1260, 55); |
|
122 |
this.groupBox1.TabIndex = 0; |
|
123 |
this.groupBox1.TabStop = false; |
|
124 |
// |
|
125 |
// label3 |
|
126 |
// |
|
127 |
this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
128 |
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
129 |
this.label3.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
130 |
this.label3.ForeColor = System.Drawing.Color.Black; |
|
131 |
this.label3.Location = new System.Drawing.Point(747, 19); |
|
132 |
this.label3.Name = "label3"; |
|
133 |
this.label3.Size = new System.Drawing.Size(120, 25); |
|
134 |
this.label3.TabIndex = 4; |
|
135 |
this.label3.Text = "担 当 者"; |
|
136 |
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
137 |
// |
|
138 |
// radioButton2 |
|
139 |
// |
|
140 |
this.radioButton2.AutoSize = true; |
|
141 |
this.radioButton2.BackColor = System.Drawing.Color.Transparent; |
|
142 |
this.radioButton2.Checked = true; |
|
143 |
this.radioButton2.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
144 |
this.radioButton2.ForeColor = System.Drawing.Color.Black; |
|
145 |
this.radioButton2.Location = new System.Drawing.Point(662, 32); |
|
146 |
this.radioButton2.Name = "radioButton2"; |
|
147 |
this.radioButton2.Size = new System.Drawing.Size(77, 20); |
|
148 |
this.radioButton2.TabIndex = 44; |
|
149 |
this.radioButton2.TabStop = true; |
|
150 |
this.radioButton2.Text = "工 事"; |
|
151 |
this.radioButton2.TextAlign = System.Drawing.ContentAlignment.BottomCenter; |
|
152 |
this.radioButton2.UseVisualStyleBackColor = false; |
|
153 |
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); |
|
154 |
// |
|
155 |
// radioButton1 |
|
156 |
// |
|
157 |
this.radioButton1.AutoSize = true; |
|
158 |
this.radioButton1.BackColor = System.Drawing.Color.Transparent; |
|
159 |
this.radioButton1.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
160 |
this.radioButton1.ForeColor = System.Drawing.Color.Black; |
|
161 |
this.radioButton1.Location = new System.Drawing.Point(662, 12); |
|
162 |
this.radioButton1.Name = "radioButton1"; |
|
163 |
this.radioButton1.Size = new System.Drawing.Size(77, 20); |
|
164 |
this.radioButton1.TabIndex = 43; |
|
165 |
this.radioButton1.Text = "営 業"; |
|
166 |
this.radioButton1.TextAlign = System.Drawing.ContentAlignment.TopCenter; |
|
167 |
this.radioButton1.UseVisualStyleBackColor = false; |
|
168 |
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged); |
|
169 |
// |
|
170 |
// label4 |
|
171 |
// |
|
172 |
this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
173 |
this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
174 |
this.label4.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
175 |
this.label4.ForeColor = System.Drawing.Color.Black; |
|
176 |
this.label4.Location = new System.Drawing.Point(20, 19); |
|
177 |
this.label4.Name = "label4"; |
|
178 |
this.label4.Size = new System.Drawing.Size(120, 25); |
|
179 |
this.label4.TabIndex = 42; |
|
180 |
this.label4.Text = "営業期"; |
|
181 |
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
182 |
// |
|
183 |
// numUDConstPro |
|
184 |
// |
|
185 |
this.numUDConstPro.BackColor = System.Drawing.Color.White; |
|
186 |
this.numUDConstPro.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
187 |
this.numUDConstPro.ForeColor = System.Drawing.Color.Black; |
|
188 |
this.numUDConstPro.Location = new System.Drawing.Point(173, 20); |
|
189 |
this.numUDConstPro.Name = "numUDConstPro"; |
|
190 |
this.numUDConstPro.ReadOnly = true; |
|
191 |
this.numUDConstPro.Size = new System.Drawing.Size(80, 23); |
|
192 |
this.numUDConstPro.TabIndex = 0; |
|
193 |
this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; |
|
194 |
this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged); |
|
195 |
// |
|
196 |
// label5 |
|
197 |
// |
|
198 |
this.label5.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
199 |
this.label5.ForeColor = System.Drawing.Color.Black; |
|
200 |
this.label5.Location = new System.Drawing.Point(253, 23); |
|
201 |
this.label5.Name = "label5"; |
|
202 |
this.label5.Size = new System.Drawing.Size(25, 16); |
|
203 |
this.label5.TabIndex = 39; |
|
204 |
this.label5.Text = "期"; |
|
205 |
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
206 |
// |
|
207 |
// label7 |
|
208 |
// |
|
209 |
this.label7.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
210 |
this.label7.ForeColor = System.Drawing.Color.Black; |
|
211 |
this.label7.Location = new System.Drawing.Point(148, 23); |
|
212 |
this.label7.Name = "label7"; |
|
213 |
this.label7.Size = new System.Drawing.Size(25, 16); |
|
214 |
this.label7.TabIndex = 40; |
|
215 |
this.label7.Text = "第"; |
|
216 |
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
217 |
// |
|
218 |
// cmbConstructionPerson |
|
219 |
// |
|
220 |
this.cmbConstructionPerson.BackColor = System.Drawing.Color.White; |
|
221 |
this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|
222 |
this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
|
223 |
this.cmbConstructionPerson.FormattingEnabled = true; |
|
224 |
this.cmbConstructionPerson.Location = new System.Drawing.Point(875, 20); |
|
225 |
this.cmbConstructionPerson.Name = "cmbConstructionPerson"; |
|
226 |
this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 23); |
|
227 |
this.cmbConstructionPerson.TabIndex = 2; |
|
228 |
this.cmbConstructionPerson.TextChanged += new System.EventHandler(this.cmbConstructionPerson_TextChanged); |
|
229 |
// |
|
230 |
// cmbDepartment |
|
231 |
// |
|
232 |
this.cmbDepartment.BackColor = System.Drawing.Color.White; |
|
233 |
this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |
|
234 |
this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup; |
|
235 |
this.cmbDepartment.FormattingEnabled = true; |
|
236 |
this.cmbDepartment.Location = new System.Drawing.Point(422, 20); |
|
237 |
this.cmbDepartment.Name = "cmbDepartment"; |
|
238 |
this.cmbDepartment.Size = new System.Drawing.Size(200, 23); |
|
239 |
this.cmbDepartment.TabIndex = 1; |
|
240 |
this.cmbDepartment.TextChanged += new System.EventHandler(this.cmbDepartment_TextChanged); |
|
241 |
// |
|
242 |
// label2 |
|
243 |
// |
|
244 |
this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
245 |
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
246 |
this.label2.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
247 |
this.label2.ForeColor = System.Drawing.Color.Black; |
|
248 |
this.label2.Location = new System.Drawing.Point(294, 19); |
|
249 |
this.label2.Name = "label2"; |
|
250 |
this.label2.Size = new System.Drawing.Size(120, 25); |
|
251 |
this.label2.TabIndex = 4; |
|
252 |
this.label2.Text = "部 署"; |
|
253 |
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
254 |
// |
|
255 |
// lblProcessTitil |
|
256 |
// |
|
257 |
this.lblProcessTitil.BackColor = System.Drawing.Color.White; |
|
258 |
this.lblProcessTitil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
259 |
this.lblProcessTitil.Location = new System.Drawing.Point(10, 10); |
|
260 |
this.lblProcessTitil.Name = "lblProcessTitil"; |
|
261 |
this.lblProcessTitil.Size = new System.Drawing.Size(300, 20); |
|
262 |
this.lblProcessTitil.TabIndex = 9; |
|
263 |
this.lblProcessTitil.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; |
|
264 |
// |
|
265 |
// btnDataUpDate |
|
266 |
// |
|
267 |
this.btnDataUpDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
268 |
this.btnDataUpDate.BackColor = System.Drawing.Color.Aquamarine; |
|
269 |
this.btnDataUpDate.Font = new System.Drawing.Font("MS 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
270 |
this.btnDataUpDate.ForeColor = System.Drawing.Color.Black; |
|
271 |
this.btnDataUpDate.Location = new System.Drawing.Point(1150, 4); |
|
272 |
this.btnDataUpDate.Name = "btnDataUpDate"; |
|
273 |
this.btnDataUpDate.Size = new System.Drawing.Size(120, 30); |
|
274 |
this.btnDataUpDate.TabIndex = 7; |
|
275 |
this.btnDataUpDate.Text = "最新状態に更新"; |
|
276 |
this.btnDataUpDate.UseVisualStyleBackColor = false; |
|
277 |
this.btnDataUpDate.Click += new System.EventHandler(this.btnDataUpDate_Click); |
|
278 |
// |
|
279 |
// dgvEntry |
|
280 |
// |
|
281 |
this.dgvEntry.AllowUserToAddRows = false; |
|
282 |
this.dgvEntry.AllowUserToDeleteRows = false; |
|
283 |
this.dgvEntry.AllowUserToResizeColumns = false; |
|
284 |
this.dgvEntry.AllowUserToResizeRows = false; |
|
285 |
dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); |
|
286 |
this.dgvEntry.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle14; |
|
287 |
this.dgvEntry.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
|
288 |
| System.Windows.Forms.AnchorStyles.Left) |
|
289 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
290 |
this.dgvEntry.BackgroundColor = System.Drawing.Color.White; |
|
291 |
this.dgvEntry.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; |
|
292 |
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
293 |
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control; |
|
294 |
dataGridViewCellStyle15.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
295 |
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; |
|
296 |
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
297 |
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
298 |
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
|
299 |
this.dgvEntry.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15; |
|
300 |
this.dgvEntry.ColumnHeadersHeight = 24; |
|
301 |
this.dgvEntry.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|
302 |
this.dgvEntry.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|
303 |
this.Column1, |
|
304 |
this.Column9, |
|
305 |
this.Column5, |
|
306 |
this.Column10, |
|
307 |
this.Column6, |
|
308 |
this.Column4, |
|
309 |
this.Column7, |
|
310 |
this.Column3, |
|
311 |
this.Column2, |
|
312 |
this.Column11, |
|
313 |
this.Column8}); |
|
314 |
dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|
315 |
dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Window; |
|
316 |
dataGridViewCellStyle26.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
317 |
dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.ControlText; |
|
318 |
dataGridViewCellStyle26.SelectionBackColor = System.Drawing.Color.LightSeaGreen; |
|
319 |
dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
320 |
dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.False; |
|
321 |
this.dgvEntry.DefaultCellStyle = dataGridViewCellStyle26; |
|
322 |
this.dgvEntry.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; |
|
323 |
this.dgvEntry.EnableHeadersVisualStyles = false; |
|
324 |
this.dgvEntry.Location = new System.Drawing.Point(10, 103); |
|
325 |
this.dgvEntry.MultiSelect = false; |
|
326 |
this.dgvEntry.Name = "dgvEntry"; |
|
327 |
this.dgvEntry.RowHeadersVisible = false; |
|
328 |
this.dgvEntry.RowHeadersWidth = 20; |
|
329 |
this.dgvEntry.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; |
|
330 |
this.dgvEntry.RowTemplate.Height = 24; |
|
331 |
this.dgvEntry.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |
|
332 |
this.dgvEntry.Size = new System.Drawing.Size(1260, 508); |
|
333 |
this.dgvEntry.TabIndex = 5; |
|
334 |
this.dgvEntry.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMaster_CellDoubleClick); |
|
335 |
// |
|
336 |
// Column1 |
|
337 |
// |
|
338 |
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
339 |
this.Column1.DefaultCellStyle = dataGridViewCellStyle16; |
|
340 |
this.Column1.HeaderText = "№"; |
|
341 |
this.Column1.Name = "Column1"; |
|
342 |
this.Column1.ReadOnly = true; |
|
343 |
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
344 |
this.Column1.Width = 50; |
|
345 |
// |
|
346 |
// Column9 |
|
347 |
// |
|
348 |
dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
349 |
this.Column9.DefaultCellStyle = dataGridViewCellStyle17; |
|
350 |
this.Column9.HeaderText = "営業部署"; |
|
351 |
this.Column9.Name = "Column9"; |
|
352 |
this.Column9.ReadOnly = true; |
|
353 |
this.Column9.Width = 135; |
|
354 |
// |
|
355 |
// Column5 |
|
356 |
// |
|
357 |
dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
358 |
this.Column5.DefaultCellStyle = dataGridViewCellStyle18; |
|
359 |
this.Column5.HeaderText = "営業担当者"; |
|
360 |
this.Column5.Name = "Column5"; |
|
361 |
this.Column5.ReadOnly = true; |
|
362 |
this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
363 |
this.Column5.Width = 135; |
|
364 |
// |
|
365 |
// Column10 |
|
366 |
// |
|
367 |
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
368 |
this.Column10.DefaultCellStyle = dataGridViewCellStyle19; |
|
369 |
this.Column10.HeaderText = "工事部署"; |
|
370 |
this.Column10.Name = "Column10"; |
|
371 |
this.Column10.ReadOnly = true; |
|
372 |
this.Column10.Width = 135; |
|
373 |
// |
|
374 |
// Column6 |
|
375 |
// |
|
376 |
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
377 |
this.Column6.DefaultCellStyle = dataGridViewCellStyle20; |
|
378 |
this.Column6.HeaderText = "工事担当者"; |
|
379 |
this.Column6.Name = "Column6"; |
|
380 |
this.Column6.ReadOnly = true; |
|
381 |
this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
382 |
this.Column6.Width = 135; |
|
383 |
// |
|
384 |
// Column4 |
|
385 |
// |
|
386 |
dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; |
|
387 |
this.Column4.DefaultCellStyle = dataGridViewCellStyle21; |
|
388 |
this.Column4.HeaderText = "工 事 名 称"; |
|
389 |
this.Column4.Name = "Column4"; |
|
390 |
this.Column4.ReadOnly = true; |
|
391 |
this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
392 |
this.Column4.Width = 440; |
|
393 |
// |
|
394 |
// Column7 |
|
395 |
// |
|
396 |
dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
397 |
this.Column7.DefaultCellStyle = dataGridViewCellStyle22; |
|
398 |
this.Column7.HeaderText = "施工状態"; |
|
399 |
this.Column7.Name = "Column7"; |
|
400 |
this.Column7.ReadOnly = true; |
|
401 |
this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
402 |
this.Column7.Width = 150; |
|
403 |
// |
|
404 |
// Column3 |
|
405 |
// |
|
406 |
dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
407 |
this.Column3.DefaultCellStyle = dataGridViewCellStyle23; |
|
408 |
this.Column3.HeaderText = "営業期"; |
|
409 |
this.Column3.Name = "Column3"; |
|
410 |
this.Column3.ReadOnly = true; |
|
411 |
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
412 |
this.Column3.Visible = false; |
|
413 |
// |
|
414 |
// Column2 |
|
415 |
// |
|
416 |
dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
417 |
this.Column2.DefaultCellStyle = dataGridViewCellStyle24; |
|
418 |
this.Column2.HeaderText = "工事コード"; |
|
419 |
this.Column2.Name = "Column2"; |
|
420 |
this.Column2.ReadOnly = true; |
|
421 |
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
422 |
this.Column2.Visible = false; |
|
423 |
// |
|
424 |
// Column11 |
|
425 |
// |
|
426 |
this.Column11.HeaderText = "申請受付番号"; |
|
427 |
this.Column11.Name = "Column11"; |
|
428 |
this.Column11.ReadOnly = true; |
|
429 |
this.Column11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
430 |
this.Column11.Visible = false; |
|
431 |
// |
|
432 |
// Column8 |
|
433 |
// |
|
434 |
dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
435 |
this.Column8.DefaultCellStyle = dataGridViewCellStyle25; |
|
436 |
this.Column8.HeaderText = "作成"; |
|
437 |
this.Column8.Name = "Column8"; |
|
438 |
this.Column8.ReadOnly = true; |
|
439 |
this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; |
|
440 |
this.Column8.Width = 60; |
|
441 |
// |
|
442 |
// FrmConstrReqList |
|
443 |
// |
|
444 |
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); |
|
445 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
|
446 |
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
|
447 |
this.BackColor = System.Drawing.Color.Black; |
|
448 |
this.ClientSize = new System.Drawing.Size(1280, 657); |
|
449 |
this.Controls.Add(this.lblProcessTitil); |
|
450 |
this.Controls.Add(this.groupBox1); |
|
451 |
this.Controls.Add(this.label1); |
|
452 |
this.Controls.Add(this.btnDataUpDate); |
|
453 |
this.Controls.Add(this.btnEnd); |
|
454 |
this.Controls.Add(this.dgvEntry); |
|
455 |
this.Font = new System.Drawing.Font("MS 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); |
|
456 |
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; |
|
457 |
this.KeyPreview = true; |
|
458 |
this.MinimizeBox = false; |
|
459 |
this.Name = "FrmConstrReqList"; |
|
460 |
this.ShowIcon = false; |
|
461 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
|
462 |
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmConstructionList_FormClosing); |
|
463 |
this.Load += new System.EventHandler(this.FrmConstructionList_Load); |
|
464 |
this.SizeChanged += new System.EventHandler(this.FrmConstructionList_SizeChanged); |
|
465 |
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionBaseInfoList_KeyDown); |
|
466 |
this.groupBox1.ResumeLayout(false); |
|
467 |
this.groupBox1.PerformLayout(); |
|
468 |
((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).EndInit(); |
|
469 |
((System.ComponentModel.ISupportInitialize)(this.dgvEntry)).EndInit(); |
|
470 |
this.ResumeLayout(false); |
|
471 |
|
|
472 |
} |
|
473 |
|
|
474 |
#endregion |
|
475 |
|
|
476 |
private System.Windows.Forms.Button btnEnd; |
|
477 |
private System.Windows.Forms.Label label1; |
|
478 |
private ProcessManagement.Forms.CustomControls.GroupBoxEx groupBox1; |
|
479 |
private System.Windows.Forms.Label label2; |
|
480 |
private System.Windows.Forms.ComboBox cmbDepartment; |
|
481 |
private ProcessManagement.Forms.CustomControls.DataGridViewEX dgvEntry; |
|
482 |
private System.Windows.Forms.Label lblProcessTitil; |
|
483 |
private System.Windows.Forms.ComboBox cmbConstructionPerson; |
|
484 |
private System.Windows.Forms.Label label3; |
|
485 |
private System.Windows.Forms.Button btnDataUpDate; |
|
486 |
private System.Windows.Forms.Label label4; |
|
487 |
private System.Windows.Forms.NumericUpDown numUDConstPro; |
|
488 |
private System.Windows.Forms.Label label5; |
|
489 |
private System.Windows.Forms.Label label7; |
|
490 |
private System.Windows.Forms.RadioButton radioButton2; |
|
491 |
private System.Windows.Forms.RadioButton radioButton1; |
|
492 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column1; |
|
493 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column9; |
|
494 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; |
|
495 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column10; |
|
496 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column6; |
|
497 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column4; |
|
498 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column7; |
|
499 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column3; |
|
500 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column2; |
|
501 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column11; |
|
502 |
private System.Windows.Forms.DataGridViewTextBoxColumn Column8; |
|
503 |
} |
|
504 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/ConstrReqList/FrmConstrReqList.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.ComponentModel; |
|
4 |
using System.Data; |
|
5 |
using System.Drawing; |
|
6 |
using System.Text; |
|
7 |
using System.Windows.Forms; |
|
8 |
using System.Collections; |
|
9 |
|
|
10 |
using log4net; |
|
11 |
using log4net.Appender; |
|
12 |
using log4net.Repository.Hierarchy; |
|
13 |
|
|
14 |
using ProcessManagement.Common; |
|
15 |
using ProcessManagement.DB.IOAccess; |
|
16 |
using ProcessManagement.DataModel; |
|
17 |
using ProcessManagement.DB.Core; |
|
18 |
using ProcessManagement.Forms.CustomControls; |
|
19 |
using ProcessManagement.Forms.ControlsAction; |
|
20 |
//*---------------------------- ?????H????????? --------------------------* |
|
21 |
// 2017/05/25 Ver1.0.0.0 Create Source |
|
22 |
// |
|
23 |
// |
|
24 |
// |
|
25 |
//*----------------------------------------------------------------------------* |
|
26 |
namespace ProcessManagement.Forms.DataEntry |
|
27 |
{ |
|
28 |
public partial class FrmConstrReqList : Form |
|
29 |
{ |
|
30 |
#region ?g?p??` |
|
31 |
//log4net???O???g?p???? |
|
32 |
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
|
33 |
#endregion |
|
34 |
|
|
35 |
#region ?? |
|
36 |
/// <summary> |
|
37 |
/// ?\???J???? |
|
38 |
/// </summary> |
|
39 |
private enum DispColumn |
|
40 |
{ |
|
41 |
No = 0, |
|
42 |
SalesDepartment, |
|
43 |
SalesPerson, |
|
44 |
ConstructionDepartment, |
|
45 |
ConstructionPerson, |
|
46 |
ConstructionName, |
|
47 |
Status, |
|
48 |
ConstructionPeriod, |
|
49 |
ConstructionCode, |
|
50 |
OrderNo, |
|
51 |
BillingMark, |
|
52 |
} |
|
53 |
|
|
54 |
#endregion |
|
55 |
|
|
56 |
#region ??? |
|
57 |
|
|
58 |
/// <summary> |
|
59 |
/// ???????t???O |
|
60 |
/// </summary> |
|
61 |
private bool m_initDataLoad = true; |
|
62 |
|
|
63 |
/// <summary> |
|
64 |
/// ?N???t???O |
|
65 |
/// </summary> |
|
66 |
private int m_ExecuteFlg = 0; |
|
67 |
|
|
68 |
/// <summary> |
|
69 |
/// ?N???????t???O |
|
70 |
/// </summary> |
|
71 |
private int m_ExecuteSubFlg = 0; |
|
72 |
|
|
73 |
/// <summary> |
|
74 |
/// ?f?[?^????{?^???\???t???O |
|
75 |
/// </summary> |
|
76 |
private bool m_DataAddtionButton = false; |
|
77 |
/// <summary> |
|
78 |
/// ?I???{?^???????t???O |
|
79 |
/// </summary> |
|
80 |
private bool m_CloseingProcessOff = false; |
|
81 |
|
|
82 |
/// <summary> |
|
83 |
/// Cell???T?C?Y |
|
84 |
/// </summary> |
|
85 |
private int[] m_CellSize; |
|
86 |
|
|
87 |
#region ?t?H?[???? |
|
88 |
/// <summary> |
|
89 |
/// ?t?H?[???? |
|
90 |
/// </summary> |
|
91 |
private int m_FormWidthSize = 0; |
|
92 |
#endregion |
|
93 |
|
|
94 |
#region ?O???b?h???T?C?Y |
|
95 |
/// <summary> |
|
96 |
/// ?O???b?h???T?C?Y |
|
97 |
/// </summary> |
|
98 |
private int m_GridWidthSize = 0; |
|
99 |
#endregion |
|
100 |
|
|
101 |
/// <summary> |
|
102 |
/// ?????H????? |
|
103 |
/// </summary> |
|
104 |
private int m_ConstructionCode = 0; |
|
105 |
#endregion |
|
106 |
|
|
107 |
#region ?v???p?e?B |
|
108 |
/// <summary> |
|
109 |
/// ?N???t???O |
|
110 |
/// </summary> |
|
111 |
public int ExecuteFlg |
|
112 |
{ |
|
113 |
get { return m_ExecuteFlg; } |
|
114 |
set { m_ExecuteFlg = value; } |
|
115 |
} |
|
116 |
/// <summary> |
|
117 |
/// ?f?[?^????{?^???\?? |
|
118 |
/// </summary> |
|
119 |
public bool DataAddtionButton |
|
120 |
{ |
|
121 |
get { return m_DataAddtionButton; } |
|
122 |
set { m_DataAddtionButton = value; } |
|
123 |
} |
|
124 |
/// <summary> |
|
125 |
/// ?????H????? |
|
126 |
/// </summary> |
|
127 |
public int ConstructionCode |
|
128 |
{ |
|
129 |
get { return m_ConstructionCode; } |
|
130 |
} |
|
131 |
/// <summary> |
|
132 |
/// ?N???????t???O |
|
133 |
/// </summary> |
|
134 |
public int ExecuteSubFlg |
|
135 |
{ |
|
136 |
get { return m_ExecuteSubFlg; } |
|
137 |
set { m_ExecuteSubFlg = value; } |
|
138 |
} |
|
139 |
|
|
140 |
#endregion |
|
141 |
|
|
142 |
#region ?R???X?g???N?^ |
|
143 |
public FrmConstrReqList() |
|
144 |
{ |
|
145 |
InitializeComponent(); |
|
146 |
} |
|
147 |
#endregion |
|
148 |
#region ?f?X?g???N?^ |
|
149 |
~FrmConstrReqList() |
|
150 |
{ |
|
151 |
try |
|
152 |
{ |
|
153 |
GC.Collect(); |
|
154 |
} |
|
155 |
catch (Exception ex) |
|
156 |
{ |
|
157 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
158 |
} |
|
159 |
} |
|
160 |
#endregion |
|
161 |
|
|
162 |
#region ?~?{?^?? |
|
163 |
/// <summary> |
|
164 |
/// ?~?{?^?????????? |
|
165 |
/// </summary> |
|
166 |
/// <param name="sender"></param> |
|
167 |
/// <param name="e"></param> |
|
168 |
private void FrmConstructionList_FormClosing(object sender, FormClosingEventArgs e) |
|
169 |
{ |
|
170 |
if (m_CloseingProcessOff) return; |
|
171 |
|
|
172 |
// ?O?v???Z?X???? |
|
173 |
ClsExcute.BackProcess(); |
|
174 |
} |
|
175 |
#endregion |
|
176 |
|
|
177 |
#region ?I???{?^?? |
|
178 |
/// <summary> |
|
179 |
/// ?I???{?^???N???b?N |
|
180 |
/// </summary> |
|
181 |
/// <param name="sender"></param> |
|
182 |
/// <param name="e"></param> |
|
183 |
private void btnEnd_Click(object sender, EventArgs e) |
|
184 |
{ |
|
185 |
// ?O?v???Z?X???? |
|
186 |
ClsExcute.BackProcess(); |
|
187 |
|
|
188 |
m_CloseingProcessOff = true; |
|
189 |
|
|
190 |
this.Close(); |
|
191 |
} |
|
192 |
#endregion |
|
193 |
|
|
194 |
#region ?X?V?{?^?? |
|
195 |
/// <summary> |
|
196 |
/// ?f?[?^?X?V?{?^?????? |
|
197 |
/// </summary> |
|
198 |
/// <param name="sender"></param> |
|
199 |
/// <param name="e"></param> |
|
200 |
private void btnDataUpDate_Click(object sender, EventArgs e) |
|
201 |
{ |
|
202 |
if (m_initDataLoad) return; |
|
203 |
// ?\???f?[?^?X?V |
|
204 |
DataDisplay(); |
|
205 |
} |
|
206 |
#endregion |
|
207 |
|
|
208 |
#region ?t?H?[?????[?h |
|
209 |
/// <summary> |
|
210 |
/// ?????t?H?[?????[?h |
|
211 |
/// </summary> |
|
212 |
/// <param name="sender"></param> |
|
213 |
/// <param name="e"></param> |
|
214 |
private void FrmConstructionList_Load(object sender, EventArgs e) |
|
215 |
{ |
|
216 |
SetInitnumUDConstPro(); |
|
217 |
// ?R???{?{?b?N?X?Z?b?g |
|
218 |
SetcmbDepartment(); |
|
219 |
SetcmbPersons(); |
|
220 |
|
|
221 |
// ?R???{?{?b?N?X?????\?? |
|
222 |
InitCombBox(); |
|
223 |
|
|
224 |
// ?\???X?^?C?????X |
|
225 |
InitDisplayStyle(); |
|
226 |
|
|
227 |
// ???O?C?????Z?b?g |
|
228 |
InitDepPersonCode(); |
|
229 |
|
|
230 |
// ?????\?? |
|
231 |
InitDataLoad(); |
|
232 |
|
|
233 |
m_initDataLoad = false; |
|
234 |
} |
|
235 |
#endregion |
|
236 |
|
|
237 |
#region ?Z???_?u???N???b?N |
|
238 |
/// <summary> |
|
239 |
/// ?Z???_?u???N???b?N |
|
240 |
/// </summary> |
|
241 |
/// <param name="sender"></param> |
|
242 |
/// <param name="e"></param> |
|
243 |
private void dgvMaster_CellDoubleClick(object sender, DataGridViewCellEventArgs e) |
|
244 |
{ |
|
245 |
if (e.RowIndex < 0) return; |
|
246 |
// ?f?[?^?????????????? |
|
247 |
if (dgvEntry.RowCount == 0) return; |
|
248 |
if (CommonMotions.chkCellBlank(dgvEntry.CurrentRow.Cells[(int)DispColumn.ConstructionName].Value)) return; |
|
249 |
|
|
250 |
// ?e?????N?? |
|
251 |
int ConstrCode = CommonMotions.cnvIntFromStringCode(dgvEntry.CurrentRow.Cells[(int)DispColumn.ConstructionCode].Value.ToString(), "-"); |
|
252 |
int OrderNo = CommonMotions.cnvInt(dgvEntry.CurrentRow.Cells[(int)DispColumn.OrderNo].Value); |
|
253 |
SubProcessExecute(ConstrCode, OrderNo); |
|
254 |
} |
|
255 |
#endregion |
|
256 |
|
|
257 |
#region ?t?H?[??KeyDown |
|
258 |
/// <summary> |
|
259 |
/// Entry?L?[????????? |
|
260 |
/// </summary> |
|
261 |
/// <param name="sender"></param> |
|
262 |
/// <param name="e"></param> |
|
263 |
private void FrmConstructionBaseInfoList_KeyDown(object sender, KeyEventArgs e) |
|
264 |
{ |
|
265 |
//Enter?L?[?????????????m?F |
|
266 |
//Alt??Ctrl?L?[????????????????????? |
|
267 |
if ((e.KeyCode == Keys.Enter) && !e.Alt && !e.Control) |
|
268 |
{ |
|
269 |
//????????Tab?L?[?????????????????? |
|
270 |
//Shift??????????????O??R???g???[????t?H?[?J?X????? |
|
271 |
this.ProcessTabKey(!e.Shift); |
|
272 |
|
|
273 |
e.Handled = true; |
|
274 |
//.NET Framework 2.0??~ |
|
275 |
e.SuppressKeyPress = true; |
|
276 |
} |
|
277 |
} |
|
278 |
#endregion |
|
279 |
|
|
280 |
#region ?c????R???{?{?b?N?X??X |
|
281 |
/// <summary> |
|
282 |
/// ?c?????X |
|
283 |
/// </summary> |
|
284 |
/// <param name="sender"></param> |
|
285 |
/// <param name="e"></param> |
|
286 |
private void numUDConstPro_ValueChanged(object sender, EventArgs e) |
|
287 |
{ |
|
288 |
if (m_initDataLoad) return; |
|
289 |
|
|
290 |
// ?f?[?^?\?? |
|
291 |
DataDisplay(); |
|
292 |
} |
|
293 |
#endregion |
|
294 |
|
|
295 |
#region ?????R???{?{?b?N?X??X |
|
296 |
/// <summary> |
|
297 |
/// ?????R???{?{?b?N?X??X |
|
298 |
/// </summary> |
|
299 |
/// <param name="sender"></param> |
|
300 |
/// <param name="e"></param> |
|
301 |
private void cmbDepartment_TextChanged(object sender, EventArgs e) |
|
302 |
{ |
|
303 |
if (m_initDataLoad) return; |
|
304 |
|
|
305 |
// ?S????R???{?{?b?N?X??X |
|
306 |
SetcmbPersons(); |
|
307 |
|
|
308 |
// ?f?[?^?\?? |
|
309 |
DataDisplay(); |
|
310 |
} |
|
311 |
#endregion |
|
312 |
|
|
313 |
#region ?S????R???{?{?b?N?X??X |
|
314 |
/// <summary> |
|
315 |
/// ?S?????X |
|
316 |
/// </summary> |
|
317 |
/// <param name="sender"></param> |
|
318 |
/// <param name="e"></param> |
|
319 |
private void cmbConstructionPerson_TextChanged(object sender, EventArgs e) |
|
320 |
{ |
|
321 |
if (m_initDataLoad) return; |
|
322 |
|
|
323 |
// ?S????I?????????I???????? |
|
324 |
SetPerosonToDepartment(); |
|
325 |
|
|
326 |
// ?f?[?^?\?? |
|
327 |
DataDisplay(); |
|
328 |
} |
|
329 |
#endregion |
|
330 |
|
|
331 |
#region ?t?H?[???T?C?Y??X |
|
332 |
/// <summary> |
|
333 |
/// ?t?H?[???T?C?Y??X |
|
334 |
/// </summary> |
|
335 |
/// <param name="sender"></param> |
|
336 |
/// <param name="e"></param> |
|
337 |
private void FrmConstructionList_SizeChanged(object sender, EventArgs e) |
|
338 |
{ |
|
339 |
if (this.WindowState == FormWindowState.Minimized) |
|
340 |
{ |
|
341 |
// ????? |
|
342 |
} |
|
343 |
else if (this.WindowState == FormWindowState.Maximized) |
|
344 |
{ |
|
345 |
// ??? |
|
346 |
CellSizeChangesWhenChangingScreenSize(false); |
|
347 |
} |
|
348 |
else if (this.WindowState == FormWindowState.Normal) |
|
349 |
{ |
|
350 |
// ?W???? |
|
351 |
CellSizeChangesWhenChangingScreenSize(true); |
|
352 |
} |
|
353 |
} |
|
354 |
#endregion |
|
355 |
|
|
356 |
#region ?c??E?H???S???????? |
|
357 |
/// <summary> |
|
358 |
/// ?c??E?H???S???????? |
|
359 |
/// </summary> |
|
360 |
/// <param name="sender"></param> |
|
361 |
/// <param name="e"></param> |
|
362 |
private void radioButton_CheckedChanged(object sender, EventArgs e) |
|
363 |
{ |
|
364 |
if (m_initDataLoad) return; |
|
365 |
|
|
366 |
// ?f?[?^?\?? |
|
367 |
DataDisplay(); |
|
368 |
} |
|
369 |
#endregion |
|
370 |
} |
|
371 |
} |
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/ConstrReqList/FrmConstrReqListAuxiliary.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 |
using System.Collections; |
|
10 |
using System.Diagnostics; |
|
11 |
using System.Threading; |
|
12 |
|
|
13 |
using log4net; |
|
14 |
using log4net.Appender; |
|
15 |
using log4net.Repository.Hierarchy; |
|
16 |
|
|
17 |
using ProcessManagement.Common; |
|
18 |
using ProcessManagement.DB.IOAccess; |
|
19 |
using ProcessManagement.DataModel; |
|
20 |
using ProcessManagement.DB.Core; |
|
21 |
using ProcessManagement.Forms.CustomControls; |
|
22 |
using ProcessManagement.Forms.ControlsAction; |
|
23 |
using ProcessManagement.Forms.SubForms; |
|
24 |
|
|
25 |
namespace ProcessManagement.Forms.DataEntry |
|
26 |
{ |
|
27 |
partial class FrmConstrReqList |
|
28 |
{ |
|
29 |
#region ?? |
|
30 |
|
|
31 |
#region ?????` |
|
32 |
/// <summary> |
|
33 |
/// ?????` |
|
34 |
/// </summary> |
|
35 |
private enum GetData |
|
36 |
{ |
|
37 |
ConstructionCode, |
|
38 |
ConstructionPeriod, |
|
39 |
ConstructionName, |
|
40 |
ConstructionStatusFlg, |
|
41 |
SalesCode, |
|
42 |
SalesName, |
|
43 |
SalesDepCode, |
|
44 |
SalesDepName, |
|
45 |
SalesManDispOrder, |
|
46 |
SalesDepDispOrder, |
|
47 |
ConstCode, |
|
48 |
ConstName, |
|
49 |
ConstDepCode, |
|
50 |
ConstDepName, |
|
51 |
ConstManDispOrder, |
|
52 |
ConstDepDispOrder, |
|
53 |
MainConstructionCode, |
|
54 |
} |
|
55 |
#endregion |
|
56 |
|
|
57 |
#endregion |
|
58 |
|
|
59 |
#region ??? |
|
60 |
#endregion |
|
61 |
|
|
62 |
#region ?v???p?e?B |
|
63 |
#endregion |
|
64 |
|
|
65 |
#region ???v???Z?X?N?? |
|
66 |
/// <summary> |
|
67 |
/// ?H???????N??????v???Z?X?I?????? |
|
68 |
/// </summary> |
|
69 |
/// <param name="para_ConstructionCode"></param> |
|
70 |
private void SubProcessExecute(int para_ConstructionCode = 0, int para_OrderNo = 0) |
|
71 |
{ |
|
72 |
try |
|
73 |
{ |
|
74 |
DataGridView dgv = dgvEntry; |
|
75 |
|
|
76 |
int NowPoint = ClsExcute.GetNowProcessPoint(); |
|
77 |
// ??????l?N???A |
|
78 |
ClsExcute.ClearSaveParameter(NowPoint); |
|
79 |
// ----- ??????? |
|
80 |
// ?????N |
|
81 |
ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Add(numUDConstPro.Value.ToString()); |
|
82 |
// ?S????I??????? |
|
83 |
if (radioButton2.Checked) ClsExcute.ProcControlPara[NowPoint].BoolSaveParameter.Add(true); |
|
84 |
// ???????? |
|
85 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(CommonMotions.cnvInt(cmbDepartment.SelectedValue)); |
|
86 |
// ?????S???? |
|
87 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue)); |
|
88 |
|
|
89 |
// ?\?????s |
|
90 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(dgv.FirstDisplayedScrollingRowIndex); |
|
91 |
|
|
92 |
// ??????s |
|
93 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(dgv.CurrentRow.Index); |
|
94 |
|
|
95 |
// ?\?[?g??? |
|
96 |
if (dgv.SortedColumn != null) |
|
97 |
{ |
|
98 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgv.SortedColumn.Index); |
|
99 |
ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgv.SortOrder); |
|
100 |
} |
|
101 |
|
|
102 |
// ???N???v???Z?X?Z?b?g |
|
103 |
NowPoint = ClsExcute.NextProcess(m_ExecuteFlg); |
|
104 |
// ?I???H??????Z?b?g |
|
105 |
ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(para_ConstructionCode); |
|
106 |
// ??t????Z?b?g |
|
107 |
ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(para_OrderNo); |
|
108 |
} |
|
109 |
catch (Exception ex) |
|
110 |
{ |
|
111 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
112 |
} |
|
113 |
finally |
|
114 |
{ |
|
115 |
// ?N???[?Y??????OFF?????B |
|
116 |
m_CloseingProcessOff = true; |
|
117 |
// ???N???[?Y |
|
118 |
this.Close(); |
|
119 |
} |
|
120 |
} |
|
121 |
#endregion |
|
122 |
|
|
123 |
#region ????SQL??Z?L?????e?B?????????????? |
|
124 |
/// <summary> |
|
125 |
/// ????SQL??Z?L?????e?B?????????????? |
|
126 |
/// </summary> |
|
127 |
/// <param name="strSQL"></param> |
|
128 |
private void CreateSecuritySQL(ref StringBuilder strSQL) |
|
129 |
{ |
|
130 |
try |
|
131 |
{ |
|
132 |
// ?L?[?l?? |
|
133 |
int AllPath = (int)CommonDefine.SecurityRangePos.AllPath; // ?S???? |
|
134 |
int Multiple = (int)CommonDefine.SecurityRangePos.Multiple; // ???????? |
|
135 |
int Only = (int)CommonDefine.SecurityRangePos.Only; // ????????? |
|
136 |
int None = (int)CommonDefine.SecurityRangePos.None; // ???S?????? |
|
137 |
|
|
138 |
int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("??????")).Key; |
|
139 |
int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("???????p")).Key; |
|
140 |
|
|
141 |
// ?f?[?^?A?N?Z?X????????????????? |
|
142 |
if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode |
|
143 |
|| CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[AllPath].Key) |
|
144 |
{ |
|
145 |
// ???????i????SQL???j |
|
146 |
} |
|
147 |
else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[Multiple].Key |
|
148 |
|| CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[Only].Key) |
|
149 |
{ |
|
150 |
// ???????L |
|
151 |
// ?@???????i?????????j |
|
152 |
|
|
153 |
strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1"); |
|
154 |
strSQL.AppendFormat(" Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2 WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode); |
|
155 |
|
|
156 |
strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus); |
他の形式にエクスポート: Unified diff