Exemplo n.º 1
0
 /// <summary>
 /// <see cref="TaxRoundTypeModel"/> クラスの新しいインスタンスを作成します。
 /// </summary>
 /// <param name="taxRoundType">消費税端数処理区分。</param>
 /// <param name="taxRoundTypeName">消費税端数処理区分名。</param>
 public TaxRoundTypeModel(
     TaxRoundTypeOptions taxRoundType,
     string taxRoundTypeName
     )
 {
     this.TaxRoundType     = taxRoundType;
     this.TaxRoundTypeName = taxRoundTypeName;
 }
Exemplo n.º 2
0
 /// <summary>
 /// インスタンスを得意先マスタからのロード状態で作成します。
 /// </summary>
 /// <param name="customerId">得意先コード。</param>
 /// <param name="customerName">得意先名。</param>
 /// <param name="customerKanaName">得意先名カナ。</param>
 /// <param name="customerShortName">得意先略名。</param>
 /// <param name="establishmentDate">設立年月日。</param>
 /// <param name="ceo">代表者。</param>
 /// <param name="postalCode">郵便番号。</param>
 /// <param name="address">住所。</param>
 /// <param name="tel">電話番号。</param>
 /// <param name="fax">FAX番号。</param>
 /// <param name="mail">メールアドレス。</param>
 /// <param name="hp">ホームページ。</param>
 /// <param name="cutoffDateType">締日区分。</param>
 /// <param name="cutoffDate">締日。</param>
 /// <param name="collectionDateType">支払日区分。</param>
 /// <param name="collectionDate">支払日。</param>
 /// <param name="taxType">消費税区分。</param>
 /// <param name="taxCalcType">消費税計算区分。</param>
 /// <param name="taxRoundType">消費税端数処理区分。</param>
 /// <param name="note">メモ。</param>
 /// <param name="updateDateTime">更新日時。</param>
 /// <param name="updateUserId">更新者コード。</param>
 /// <returns>
 /// 得意先マスタを返却します。
 /// </returns>
 public static CustomerEntityModel Load(
     string customerId,
     string customerName,
     string customerKanaName,
     string customerShortName,
     DateTime?establishmentDate,
     string ceo,
     string postalCode,
     string address,
     string tel,
     string fax,
     string mail,
     string hp,
     CutoffDateTypeOptions cutoffDateType,
     int cutoffDate,
     CollectionDateTypeOptions collectionDateType,
     int collectionDate,
     TaxTypeOptions taxType,
     TaxCalcTypeOptions taxCalcType,
     TaxRoundTypeOptions taxRoundType,
     string note,
     DateTime updateDateTime,
     string updateUserId
     )
 {
     return(new CustomerEntityModel(
                customerId: customerId,
                customerName: customerName,
                customerKanaName: customerKanaName,
                customerShortName: customerShortName,
                establishmentDate: establishmentDate,
                ceo: ceo,
                postalCode: postalCode,
                address: address,
                tel: tel,
                fax: fax,
                mail: mail,
                hp: hp,
                cutoffDateType: cutoffDateType,
                cutoffDate: cutoffDate,
                collectionDateType: collectionDateType,
                collectionDate: collectionDate,
                taxType: taxType,
                taxCalcType: taxCalcType,
                taxRoundType: taxRoundType,
                note: note,
                updateDateTime: updateDateTime,
                updateUserId: updateUserId,
                entityState: EntityStateOptions.UnChanged
                ));
 }
Exemplo n.º 3
0
 /// <summary>
 /// インスタンスを得意先マスタからの新規状態で作成します。
 /// </summary>
 /// <param name="customerId">得意先コード。</param>
 /// <param name="customerName">得意先名。</param>
 /// <param name="customerKanaName">得意先名カナ。</param>
 /// <param name="customerShortName">得意先略名。</param>
 /// <param name="establishmentDate">設立年月日。</param>
 /// <param name="ceo">代表者。</param>
 /// <param name="postalCode">郵便番号。</param>
 /// <param name="address">住所。</param>
 /// <param name="tel">電話番号。</param>
 /// <param name="fax">FAX番号。</param>
 /// <param name="mail">メールアドレス。</param>
 /// <param name="hp">ホームページ。</param>
 /// <param name="cutoffDateType">締日区分。</param>
 /// <param name="cutoffDate">締日。</param>
 /// <param name="collectionDateType">支払日区分。</param>
 /// <param name="collectionDate">支払日。</param>
 /// <param name="taxType">消費税区分。</param>
 /// <param name="taxCalcType">消費税計算区分。</param>
 /// <param name="taxRoundType">消費税端数処理区分。</param>
 /// <param name="note">メモ。</param>
 /// <returns>
 /// 得意先マスタを返却します。
 /// </returns>
 public static CustomerEntityModel Create(
     string customerId,
     string customerName        = default,
     string customerKanaName    = default,
     string customerShortName   = default,
     DateTime?establishmentDate = default,
     string ceo        = default,
     string postalCode = default,
     string address    = default,
     string tel        = default,
     string fax        = default,
     string mail       = default,
     string hp         = default,
     CutoffDateTypeOptions cutoffDateType = CutoffDateTypeOptions.None,
     int cutoffDate = default,
     CollectionDateTypeOptions collectionDateType = CollectionDateTypeOptions.None,
     int collectionDate               = default,
     TaxTypeOptions taxType           = TaxTypeOptions.None,
     TaxCalcTypeOptions taxCalcType   = TaxCalcTypeOptions.None,
     TaxRoundTypeOptions taxRoundType = TaxRoundTypeOptions.None,
     string note             = default,
     DateTime updateDateTime = default,
     string updateUserId     = default
     )
 {
     return(new CustomerEntityModel(
                customerId: customerId,
                customerName: customerName,
                customerKanaName: customerKanaName,
                customerShortName: customerShortName,
                establishmentDate: establishmentDate,
                ceo: ceo,
                postalCode: postalCode,
                address: address,
                tel: tel,
                fax: fax,
                mail: mail,
                hp: hp,
                cutoffDateType: cutoffDateType,
                cutoffDate: cutoffDate,
                collectionDateType: collectionDateType,
                collectionDate: collectionDate,
                taxType: taxType,
                taxCalcType: taxCalcType,
                taxRoundType: taxRoundType,
                note: note,
                updateDateTime: updateDateTime,
                updateUserId: updateUserId,
                entityState: EntityStateOptions.Added
                ));
 }
Exemplo n.º 4
0
 /// <summary>
 /// <see cref="CustomerEntityModel"/> クラスの新しいインスタンスを作成します。
 /// </summary>
 /// <param name="customerId">得意先コード。</param>
 /// <param name="customerName">得意先名。</param>
 /// <param name="customerKanaName">得意先名カナ。</param>
 /// <param name="customerShortName">得意先略名。</param>
 /// <param name="establishmentDate">設立年月日。</param>
 /// <param name="ceo">代表者。</param>
 /// <param name="postalCode">郵便番号。</param>
 /// <param name="address">住所。</param>
 /// <param name="tel">電話番号。</param>
 /// <param name="fax">FAX番号。</param>
 /// <param name="mail">メールアドレス。</param>
 /// <param name="hp">ホームページ。</param>
 /// <param name="cutoffDateType">締日区分。</param>
 /// <param name="cutoffDate">締日。</param>
 /// <param name="collectionDateType">支払日区分。</param>
 /// <param name="collectionDate">支払日。</param>
 /// <param name="taxType">消費税区分。</param>
 /// <param name="taxCalcType">消費税計算区分。</param>
 /// <param name="taxRoundType">消費税端数処理区分。</param>
 /// <param name="note">メモ。</param>
 /// <param name="updateDateTime">更新日時。</param>
 /// <param name="updateUserId">更新者コード。</param>
 /// <param name="entityState">エンティティ状態。</param>
 public CustomerEntityModel(
     string customerId,
     string customerName,
     string customerKanaName,
     string customerShortName,
     DateTime?establishmentDate,
     string ceo,
     string postalCode,
     string address,
     string tel,
     string fax,
     string mail,
     string hp,
     CutoffDateTypeOptions cutoffDateType,
     int cutoffDate,
     CollectionDateTypeOptions collectionDateType,
     int collectionDate,
     TaxTypeOptions taxType,
     TaxCalcTypeOptions taxCalcType,
     TaxRoundTypeOptions taxRoundType,
     string note,
     DateTime updateDateTime,
     string updateUserId,
     EntityStateOptions entityState = EntityStateOptions.None
     )
 {
     this.CustomerId        = customerId;
     this.CustomerName      = customerName;
     this.CustomerKanaName  = customerKanaName;
     this.CustomerShortName = customerShortName;
     this.EstablishmentDate = establishmentDate;
     this.Ceo                = ceo;
     this.PostalCode         = postalCode;
     this.Address            = address;
     this.Tel                = tel;
     this.Fax                = fax;
     this.Mail               = mail;
     this.Hp                 = hp;
     this.CutoffDateType     = cutoffDateType;
     this.CutoffDate         = cutoffDate;
     this.CollectionDateType = collectionDateType;
     this.CollectionDate     = collectionDate;
     this.TaxType            = taxType;
     this.TaxCalcType        = taxCalcType;
     this.TaxRoundType       = taxRoundType;
     this.Note               = note;
     this.UpdateDateTime     = updateDateTime;
     this.UpdateUserId       = updateUserId;
     this.EntityState        = entityState;
 }