コード例 #1
0
 public InvoiceItemStatus(InvoiceStatusData invoiceStatusData)
 {
     InvoiceItemStatusKey  = invoiceStatusData.InvoiceStatusKey;
     InvoiceItemStatusCode = invoiceStatusData.InvoiceStatusCode;
     InvoiceItemStatusName = invoiceStatusData.InvoiceStatusName;
     InvoiceItemStatusType = invoiceStatusData.InvoiceStatusType;
     InvoiceItemStatusDesc = invoiceStatusData.InvoiceStatusDesc;
     AddedUserID           = invoiceStatusData.AuditAddUserId;
     AddedDateTime         = invoiceStatusData.AuditAddDatetime;
     UpdateUserID          = invoiceStatusData.AuditUpdateUserId;
     UpdateDateTime        = invoiceStatusData.AuditUpdateDatetime;
 }
コード例 #2
0
        } // Map function closer

        public List <SqlParameter> MapParamsForUpsert(InvoiceStatusData entity)
        {
            var sql_params = new List <SqlParameter>();

            sql_params.Add(new SqlParameter("@invoice_status_key", entity.InvoiceStatusKey));
            sql_params.Add(new SqlParameter("@invoice_status_code", entity.InvoiceStatusCode));
            sql_params.Add(new SqlParameter("@invoice_status_name", entity.InvoiceStatusName));
            sql_params.Add(new SqlParameter("@invoice_status_type", entity.InvoiceStatusType));
            sql_params.Add(new SqlParameter("@invoice_status_desc", entity.InvoiceStatusDesc));
            sql_params.Add(GetOutParam());
            return(sql_params);
        }
 public InvoiceStatus Map(InvoiceStatusData invoice_status_data)
 {
     return(new InvoiceStatus()
     {
         InvoiceStatusKey = invoice_status_data.InvoiceStatusKey,
         InvoiceStatusCode = invoice_status_data.InvoiceStatusCode,
         InvoiceStatusName = invoice_status_data.InvoiceStatusName,
         InvoiceStatusType = invoice_status_data.InvoiceStatusType,
         InvoiceStatusDesc = invoice_status_data.InvoiceStatusDesc,
         AddedUserID = invoice_status_data.AuditAddUserId,
         AddedDateTime = invoice_status_data.AuditAddDatetime,
         UpdateUserID = invoice_status_data.AuditUpdateUserId,
         UpdateDateTime = invoice_status_data.AuditUpdateDatetime,
     });
 }
コード例 #4
0
 public List <SqlParameter> MapParamsForDelete(InvoiceStatusData entity)
 {
     return(MapParamsForDelete(entity.InvoiceStatusKey));
 }