Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoeicancelwork(ref DataRow row, Poeicancelwork entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("correctionfl", entity.correctionfl);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("stagecdx", entity.stagecdx);
     row.SetField("statusinfo", entity.statusinfo);
     row.SetField("amounti", entity.amounti);
     row.SetField("batchdatcd", entity.batchdatcd);
     row.SetField("receiverfl", entity.receiverfl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Poeicancelwork BuildPoeicancelworkFromRow(DataRow row)
        {
            Poeicancelwork entity = new Poeicancelwork();

            entity.pono         = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf        = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.jrnlno       = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.correctionfl = row.Field <bool>("correctionfl");
            entity.stagecd      = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.stagecdx     = row.IsNull("stagecdx") ? string.Empty : row.Field <string>("stagecdx");
            entity.statusinfo   = row.IsNull("statusinfo") ? string.Empty : row.Field <string>("statusinfo");
            entity.amounti      = row.IsNull("amounti") ? 0 : row.Field <int>("amounti");
            entity.batchdatcd   = row.IsNull("batchdatcd") ? string.Empty : row.Field <string>("batchdatcd");
            entity.receiverfl   = row.Field <bool>("receiverfl");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }