Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAreceupdatescrncriteria(ref DataRow row, Areceupdatescrncriteria entity)
 {
     row.SetField("de-unapplied", entity.deUnapplied);
     row.SetField("l-split", entity.lSplit);
     row.SetField("i-divno", entity.iDivno);
     row.SetField("cApplyText", entity.cApplyText);
     row.SetField("c-groupno", entity.cGroupno);
     row.SetField("d-custno", entity.dCustno);
     row.SetField("m-custno", entity.mCustno);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Areceupdatescrncriteria BuildAreceupdatescrncriteriaFromRow(DataRow row)
        {
            Areceupdatescrncriteria entity = new Areceupdatescrncriteria();

            entity.deUnapplied = row.IsNull("de-unapplied") ? decimal.Zero : row.Field <decimal>("de-unapplied");
            entity.lSplit      = row.Field <bool>("l-split");
            entity.iDivno      = row.IsNull("i-divno") ? 0 : row.Field <int>("i-divno");
            entity.cApplyText  = row.IsNull("cApplyText") ? string.Empty : row.Field <string>("cApplyText");
            entity.cGroupno    = row.IsNull("c-groupno") ? string.Empty : row.Field <string>("c-groupno");
            entity.dCustno     = row.IsNull("d-custno") ? decimal.Zero : row.Field <decimal>("d-custno");
            entity.mCustno     = row.IsNull("m-custno") ? decimal.Zero : row.Field <decimal>("m-custno");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }