Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsbreqrecalcresults(ref DataRow row, Glsbreqrecalcresults entity)
 {
     row.SetField("annbud", entity.annbud);
     row.SetField("peramt1", entity.peramt1);
     row.SetField("peramt2", entity.peramt2);
     row.SetField("peramt3", entity.peramt3);
     row.SetField("peramt4", entity.peramt4);
     row.SetField("peramt5", entity.peramt5);
     row.SetField("peramt6", entity.peramt6);
     row.SetField("peramt7", entity.peramt7);
     row.SetField("peramt8", entity.peramt8);
     row.SetField("peramt9", entity.peramt9);
     row.SetField("peramt10", entity.peramt10);
     row.SetField("peramt11", entity.peramt11);
     row.SetField("peramt12", entity.peramt12);
     row.SetField("peramt13", entity.peramt13);
     row.SetField("budpct1", entity.budpct1);
     row.SetField("budpct2", entity.budpct2);
     row.SetField("budpct3", entity.budpct3);
     row.SetField("budpct4", entity.budpct4);
     row.SetField("budpct5", entity.budpct5);
     row.SetField("budpct6", entity.budpct6);
     row.SetField("budpct7", entity.budpct7);
     row.SetField("budpct8", entity.budpct8);
     row.SetField("budpct9", entity.budpct9);
     row.SetField("budpct10", entity.budpct10);
     row.SetField("budpct11", entity.budpct11);
     row.SetField("budpct12", entity.budpct12);
     row.SetField("budpct13", entity.budpct13);
     row.SetField("budytd1", entity.budytd1);
     row.SetField("budytd2", entity.budytd2);
     row.SetField("budytd3", entity.budytd3);
     row.SetField("budytd4", entity.budytd4);
     row.SetField("budytd5", entity.budytd5);
     row.SetField("budytd6", entity.budytd6);
     row.SetField("budytd7", entity.budytd7);
     row.SetField("budytd8", entity.budytd8);
     row.SetField("budytd9", entity.budytd9);
     row.SetField("budytd10", entity.budytd10);
     row.SetField("budytd11", entity.budytd11);
     row.SetField("budytd12", entity.budytd12);
     row.SetField("budytd13", entity.budytd13);
     row.SetField("pctytd1", entity.pctytd1);
     row.SetField("pctytd2", entity.pctytd2);
     row.SetField("pctytd3", entity.pctytd3);
     row.SetField("pctytd4", entity.pctytd4);
     row.SetField("pctytd5", entity.pctytd5);
     row.SetField("pctytd6", entity.pctytd6);
     row.SetField("pctytd7", entity.pctytd7);
     row.SetField("pctytd8", entity.pctytd8);
     row.SetField("pctytd9", entity.pctytd9);
     row.SetField("pctytd10", entity.pctytd10);
     row.SetField("pctytd11", entity.pctytd11);
     row.SetField("pctytd12", entity.pctytd12);
     row.SetField("pctytd13", entity.pctytd13);
     row.SetField("gl13perfl", entity.gl13perfl);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Glsbreqrecalcresults BuildGlsbreqrecalcresultsFromRow(DataRow row)
        {
            Glsbreqrecalcresults entity = new Glsbreqrecalcresults();

            entity.annbud    = row.IsNull("annbud") ? decimal.Zero : row.Field <decimal>("annbud");
            entity.peramt1   = row.IsNull("peramt1") ? decimal.Zero : row.Field <decimal>("peramt1");
            entity.peramt2   = row.IsNull("peramt2") ? decimal.Zero : row.Field <decimal>("peramt2");
            entity.peramt3   = row.IsNull("peramt3") ? decimal.Zero : row.Field <decimal>("peramt3");
            entity.peramt4   = row.IsNull("peramt4") ? decimal.Zero : row.Field <decimal>("peramt4");
            entity.peramt5   = row.IsNull("peramt5") ? decimal.Zero : row.Field <decimal>("peramt5");
            entity.peramt6   = row.IsNull("peramt6") ? decimal.Zero : row.Field <decimal>("peramt6");
            entity.peramt7   = row.IsNull("peramt7") ? decimal.Zero : row.Field <decimal>("peramt7");
            entity.peramt8   = row.IsNull("peramt8") ? decimal.Zero : row.Field <decimal>("peramt8");
            entity.peramt9   = row.IsNull("peramt9") ? decimal.Zero : row.Field <decimal>("peramt9");
            entity.peramt10  = row.IsNull("peramt10") ? decimal.Zero : row.Field <decimal>("peramt10");
            entity.peramt11  = row.IsNull("peramt11") ? decimal.Zero : row.Field <decimal>("peramt11");
            entity.peramt12  = row.IsNull("peramt12") ? decimal.Zero : row.Field <decimal>("peramt12");
            entity.peramt13  = row.IsNull("peramt13") ? decimal.Zero : row.Field <decimal>("peramt13");
            entity.budpct1   = row.IsNull("budpct1") ? decimal.Zero : row.Field <decimal>("budpct1");
            entity.budpct2   = row.IsNull("budpct2") ? decimal.Zero : row.Field <decimal>("budpct2");
            entity.budpct3   = row.IsNull("budpct3") ? decimal.Zero : row.Field <decimal>("budpct3");
            entity.budpct4   = row.IsNull("budpct4") ? decimal.Zero : row.Field <decimal>("budpct4");
            entity.budpct5   = row.IsNull("budpct5") ? decimal.Zero : row.Field <decimal>("budpct5");
            entity.budpct6   = row.IsNull("budpct6") ? decimal.Zero : row.Field <decimal>("budpct6");
            entity.budpct7   = row.IsNull("budpct7") ? decimal.Zero : row.Field <decimal>("budpct7");
            entity.budpct8   = row.IsNull("budpct8") ? decimal.Zero : row.Field <decimal>("budpct8");
            entity.budpct9   = row.IsNull("budpct9") ? decimal.Zero : row.Field <decimal>("budpct9");
            entity.budpct10  = row.IsNull("budpct10") ? decimal.Zero : row.Field <decimal>("budpct10");
            entity.budpct11  = row.IsNull("budpct11") ? decimal.Zero : row.Field <decimal>("budpct11");
            entity.budpct12  = row.IsNull("budpct12") ? decimal.Zero : row.Field <decimal>("budpct12");
            entity.budpct13  = row.IsNull("budpct13") ? decimal.Zero : row.Field <decimal>("budpct13");
            entity.budytd1   = row.IsNull("budytd1") ? decimal.Zero : row.Field <decimal>("budytd1");
            entity.budytd2   = row.IsNull("budytd2") ? decimal.Zero : row.Field <decimal>("budytd2");
            entity.budytd3   = row.IsNull("budytd3") ? decimal.Zero : row.Field <decimal>("budytd3");
            entity.budytd4   = row.IsNull("budytd4") ? decimal.Zero : row.Field <decimal>("budytd4");
            entity.budytd5   = row.IsNull("budytd5") ? decimal.Zero : row.Field <decimal>("budytd5");
            entity.budytd6   = row.IsNull("budytd6") ? decimal.Zero : row.Field <decimal>("budytd6");
            entity.budytd7   = row.IsNull("budytd7") ? decimal.Zero : row.Field <decimal>("budytd7");
            entity.budytd8   = row.IsNull("budytd8") ? decimal.Zero : row.Field <decimal>("budytd8");
            entity.budytd9   = row.IsNull("budytd9") ? decimal.Zero : row.Field <decimal>("budytd9");
            entity.budytd10  = row.IsNull("budytd10") ? decimal.Zero : row.Field <decimal>("budytd10");
            entity.budytd11  = row.IsNull("budytd11") ? decimal.Zero : row.Field <decimal>("budytd11");
            entity.budytd12  = row.IsNull("budytd12") ? decimal.Zero : row.Field <decimal>("budytd12");
            entity.budytd13  = row.IsNull("budytd13") ? decimal.Zero : row.Field <decimal>("budytd13");
            entity.pctytd1   = row.IsNull("pctytd1") ? decimal.Zero : row.Field <decimal>("pctytd1");
            entity.pctytd2   = row.IsNull("pctytd2") ? decimal.Zero : row.Field <decimal>("pctytd2");
            entity.pctytd3   = row.IsNull("pctytd3") ? decimal.Zero : row.Field <decimal>("pctytd3");
            entity.pctytd4   = row.IsNull("pctytd4") ? decimal.Zero : row.Field <decimal>("pctytd4");
            entity.pctytd5   = row.IsNull("pctytd5") ? decimal.Zero : row.Field <decimal>("pctytd5");
            entity.pctytd6   = row.IsNull("pctytd6") ? decimal.Zero : row.Field <decimal>("pctytd6");
            entity.pctytd7   = row.IsNull("pctytd7") ? decimal.Zero : row.Field <decimal>("pctytd7");
            entity.pctytd8   = row.IsNull("pctytd8") ? decimal.Zero : row.Field <decimal>("pctytd8");
            entity.pctytd9   = row.IsNull("pctytd9") ? decimal.Zero : row.Field <decimal>("pctytd9");
            entity.pctytd10  = row.IsNull("pctytd10") ? decimal.Zero : row.Field <decimal>("pctytd10");
            entity.pctytd11  = row.IsNull("pctytd11") ? decimal.Zero : row.Field <decimal>("pctytd11");
            entity.pctytd12  = row.IsNull("pctytd12") ? decimal.Zero : row.Field <decimal>("pctytd12");
            entity.pctytd13  = row.IsNull("pctytd13") ? decimal.Zero : row.Field <decimal>("pctytd13");
            entity.gl13perfl = row.Field <bool>("gl13perfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }