Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlaccountlookupcriteria(ref DataRow row, Glaccountlookupcriteria entity)
 {
     row.SetField("yr", entity.yr);
     row.SetField("gldivno", entity.gldivno);
     row.SetField("gldeptno", entity.gldeptno);
     row.SetField("glacctno", entity.glacctno);
     row.SetField("glsubno", entity.glsubno);
     row.SetField("lookupnm", entity.lookupnm);
     row.SetField("gltitle", entity.gltitle);
     row.SetField("accttype", entity.accttype);
     row.SetField("keywords", entity.keywords);
     row.SetField("recordcountlimit", entity.recordcountlimit);
 }
Example #2
0
        public static Glaccountlookupcriteria BuildGlaccountlookupcriteriaFromRow(DataRow row)
        {
            Glaccountlookupcriteria entity = new Glaccountlookupcriteria();

            entity.yr               = row.IsNull("yr") ? 0 : row.Field <int>("yr");
            entity.gldivno          = row.IsNull("gldivno") ? 0 : row.Field <int>("gldivno");
            entity.gldeptno         = row.IsNull("gldeptno") ? 0 : row.Field <int>("gldeptno");
            entity.glacctno         = row.IsNull("glacctno") ? 0 : row.Field <int>("glacctno");
            entity.glsubno          = row.IsNull("glsubno") ? 0 : row.Field <int>("glsubno");
            entity.lookupnm         = row.IsNull("lookupnm") ? string.Empty : row.Field <string>("lookupnm");
            entity.gltitle          = row.IsNull("gltitle") ? string.Empty : row.Field <string>("gltitle");
            entity.accttype         = row.IsNull("accttype") ? string.Empty : row.Field <string>("accttype");
            entity.keywords         = row.IsNull("keywords") ? string.Empty : row.Field <string>("keywords");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            return(entity);
        }