h-you / branches / src / ProcessManagement / ProcessManagement / DataModel / ConstructionFieldNameDetail.cs @ 51
履歴 | 表示 | アノテート | ダウンロード (3.16 KB)
| 1 |
using System; |
|---|---|
| 2 |
using System.Collections.Generic; |
| 3 |
using System.Linq; |
| 4 |
using System.Text; |
| 5 |
using System.Threading.Tasks; |
| 6 |
|
| 7 |
namespace ProcessManagement.DataModel |
| 8 |
{
|
| 9 |
/// <summary> |
| 10 |
/// 工事現場選択の受け渡し用明細クラス |
| 11 |
/// </summary> |
| 12 |
public class ConstructionFieldNameDetail |
| 13 |
{
|
| 14 |
/// <summary> |
| 15 |
/// 行番号 |
| 16 |
/// </summary> |
| 17 |
public int LineCount { get; set; }
|
| 18 |
|
| 19 |
/// <summary> |
| 20 |
/// 工事番号 |
| 21 |
/// </summary> |
| 22 |
public int ConstructionCode { get; set; }
|
| 23 |
|
| 24 |
/// <summary> |
| 25 |
/// 現場名 |
| 26 |
/// </summary> |
| 27 |
public string FieldName { get; set; }
|
| 28 |
|
| 29 |
/// <summary> |
| 30 |
/// 請求金額(明細金額) |
| 31 |
/// </summary> |
| 32 |
public int BillPrice { get; set; }
|
| 33 |
|
| 34 |
/// <summary> |
| 35 |
/// 削除フラグ |
| 36 |
/// </summary> |
| 37 |
public bool DeleteFlag { get; set; }
|
| 38 |
|
| 39 |
/// <summary> |
| 40 |
/// 読み取り専用フラグ |
| 41 |
/// </summary> |
| 42 |
public bool ReadOnly { get; set; }
|
| 43 |
|
| 44 |
|
| 45 |
/// <summary> |
| 46 |
/// 新規行フラグ |
| 47 |
/// </summary> |
| 48 |
public bool AddNew { get; set; }
|
| 49 |
|
| 50 |
/// <summary> |
| 51 |
/// デフォルトのコンストラクタ |
| 52 |
/// </summary> |
| 53 |
public ConstructionFieldNameDetail() |
| 54 |
{
|
| 55 |
LineCount = 0; |
| 56 |
ConstructionCode = -1; |
| 57 |
FieldName = ""; |
| 58 |
BillPrice = 0; |
| 59 |
DeleteFlag = false; |
| 60 |
ReadOnly = false; |
| 61 |
AddNew = false; |
| 62 |
} |
| 63 |
|
| 64 |
public ConstructionFieldNameDetail(int lineCount, int construnctionCode, string fieldName, int billPrice, bool deleteFlag, bool readOnly, bool addNew) |
| 65 |
{
|
| 66 |
LineCount = lineCount; |
| 67 |
ConstructionCode = construnctionCode; |
| 68 |
FieldName = fieldName; |
| 69 |
BillPrice = billPrice; |
| 70 |
DeleteFlag = deleteFlag; |
| 71 |
ReadOnly = readOnly; |
| 72 |
AddNew = addNew; |
| 73 |
} |
| 74 |
|
| 75 |
public ConstructionFieldNameDetail(int lineCount, int construnctionCode, string fieldName, int billPrice, bool deleteFlag, bool readOnly) |
| 76 |
{
|
| 77 |
LineCount = lineCount; |
| 78 |
ConstructionCode = construnctionCode; |
| 79 |
FieldName = fieldName; |
| 80 |
BillPrice = billPrice; |
| 81 |
DeleteFlag = deleteFlag; |
| 82 |
ReadOnly = readOnly; |
| 83 |
AddNew = false; |
| 84 |
} |
| 85 |
|
| 86 |
public ConstructionFieldNameDetail(int lineCount, int construnctionCode, string fieldName, int billPrice, bool deleteFlag) |
| 87 |
{
|
| 88 |
LineCount = lineCount; |
| 89 |
ConstructionCode = construnctionCode; |
| 90 |
FieldName = fieldName; |
| 91 |
BillPrice = billPrice; |
| 92 |
DeleteFlag = deleteFlag; |
| 93 |
ReadOnly = false; |
| 94 |
AddNew = false; |
| 95 |
} |
| 96 |
|
| 97 |
public ConstructionFieldNameDetail(int lineCount, int construnctionCode, string fieldName, int billPrice) |
| 98 |
{
|
| 99 |
LineCount = lineCount; |
| 100 |
ConstructionCode = construnctionCode; |
| 101 |
FieldName = fieldName; |
| 102 |
BillPrice = billPrice; |
| 103 |
DeleteFlag = false; |
| 104 |
ReadOnly = false; |
| 105 |
AddNew = false; |
| 106 |
} |
| 107 |
} |
| 108 |
} |