コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeioloadordtaxar(ref DataRow row, Oeioloadordtaxar entity)
 {
     row.SetField("recty", entity.recty);
     row.SetField("cLocalCode", entity.cLocalCode);
     row.SetField("cTaxSaleBase", entity.cTaxSaleBase);
     row.SetField("cTaxSaleAmt", entity.cTaxSaleAmt);
     row.SetField("taxsalert", entity.taxsalert);
     row.SetField("cTaxUseAmt", entity.cTaxUseAmt);
     row.SetField("taxusert", entity.taxusert);
     row.SetField("cTaxTransAmt", entity.cTaxTransAmt);
     row.SetField("taxtransrt", entity.taxtransrt);
     row.SetField("cTaxExcAmt", entity.cTaxExcAmt);
     row.SetField("taxexcrt", entity.taxexcrt);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Oeioloadordtaxar BuildOeioloadordtaxarFromRow(DataRow row)
        {
            Oeioloadordtaxar entity = new Oeioloadordtaxar();

            entity.recty        = row.IsNull("recty") ? 0 : row.Field <int>("recty");
            entity.cLocalCode   = row.IsNull("cLocalCode") ? string.Empty : row.Field <string>("cLocalCode");
            entity.cTaxSaleBase = row.IsNull("cTaxSaleBase") ? string.Empty : row.Field <string>("cTaxSaleBase");
            entity.cTaxSaleAmt  = row.IsNull("cTaxSaleAmt") ? string.Empty : row.Field <string>("cTaxSaleAmt");
            entity.taxsalert    = row.IsNull("taxsalert") ? decimal.Zero : row.Field <decimal>("taxsalert");
            entity.cTaxUseAmt   = row.IsNull("cTaxUseAmt") ? string.Empty : row.Field <string>("cTaxUseAmt");
            entity.taxusert     = row.IsNull("taxusert") ? decimal.Zero : row.Field <decimal>("taxusert");
            entity.cTaxTransAmt = row.IsNull("cTaxTransAmt") ? string.Empty : row.Field <string>("cTaxTransAmt");
            entity.taxtransrt   = row.IsNull("taxtransrt") ? decimal.Zero : row.Field <decimal>("taxtransrt");
            entity.cTaxExcAmt   = row.IsNull("cTaxExcAmt") ? string.Empty : row.Field <string>("cTaxExcAmt");
            entity.taxexcrt     = row.IsNull("taxexcrt") ? decimal.Zero : row.Field <decimal>("taxexcrt");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }