Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromInvdisclistcriteria(ref DataRow row, Invdisclistcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("problem_type", entity.problemType);
     row.SetField("emp_num", entity.empNum);
     row.SetField("abs_num", entity.absNum);
     row.SetField("bin_num", entity.binNum);
     row.SetField("trans_type", entity.transType);
     row.SetField("record_type", entity.recordType);
     row.SetField("show_zero_neg_inventory", entity.showZeroNegInventory);
     row.SetField("ccinvdiscuserfield", entity.ccinvdiscuserfield);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Invdisclistcriteria BuildInvdisclistcriteriaFromRow(DataRow row)
        {
            Invdisclistcriteria entity = new Invdisclistcriteria();

            entity.coNum                = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum                = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.problemType          = row.IsNull("problem_type") ? string.Empty : row.Field <string>("problem_type");
            entity.empNum               = row.IsNull("emp_num") ? string.Empty : row.Field <string>("emp_num");
            entity.absNum               = row.IsNull("abs_num") ? string.Empty : row.Field <string>("abs_num");
            entity.binNum               = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num");
            entity.transType            = row.IsNull("trans_type") ? string.Empty : row.Field <string>("trans_type");
            entity.recordType           = row.IsNull("record_type") ? 0 : row.Field <int>("record_type");
            entity.showZeroNegInventory = row.Field <bool>("show_zero_neg_inventory");
            entity.ccinvdiscuserfield   = row.IsNull("ccinvdiscuserfield") ? string.Empty : row.Field <string>("ccinvdiscuserfield");
            entity.recordcountlimit     = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield            = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }