Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizarddefnheader(ref DataRow row, Reptwizarddefnheader entity)
 {
     row.SetField("batchnm", entity.batchnm);
     row.SetField("faxcom1", entity.faxcom1);
     row.SetField("faxcom2", entity.faxcom2);
     row.SetField("faxcom3", entity.faxcom3);
     row.SetField("faxcom4", entity.faxcom4);
     row.SetField("faxcom5", entity.faxcom5);
     row.SetField("faxcom6", entity.faxcom6);
     row.SetField("faxcom7", entity.faxcom7);
     row.SetField("faxcom8", entity.faxcom8);
     row.SetField("faxcom9", entity.faxcom9);
     row.SetField("faxcom10", entity.faxcom10);
     row.SetField("faxfrom", entity.faxfrom);
     row.SetField("faxphoneno", entity.faxphoneno);
     row.SetField("faxpriority", entity.faxpriority);
     row.SetField("faxtag1", entity.faxtag1);
     row.SetField("faxtag2", entity.faxtag2);
     row.SetField("faxto1", entity.faxto1);
     row.SetField("faxto2", entity.faxto2);
     row.SetField("filefl", entity.filefl);
     row.SetField("printernm", entity.printernm);
     row.SetField("printoptfl", entity.printoptfl);
     row.SetField("priority", entity.priority);
     row.SetField("rpttitle", entity.rpttitle);
     row.SetField("startdt", entity.startdt);
     row.SetField("starttm", entity.starttm);
     row.SetField("starttm2", entity.starttm2);
     row.SetField("starttype", entity.starttype);
     row.SetField("queue_name", entity.queueName);
 }
Exemplo n.º 2
0
        public static Reptwizarddefnheader BuildReptwizarddefnheaderFromRow(DataRow row)
        {
            Reptwizarddefnheader entity = new Reptwizarddefnheader();

            entity.batchnm     = row.IsNull("batchnm") ? string.Empty : row.Field <string>("batchnm");
            entity.faxcom1     = row.IsNull("faxcom1") ? string.Empty : row.Field <string>("faxcom1");
            entity.faxcom2     = row.IsNull("faxcom2") ? string.Empty : row.Field <string>("faxcom2");
            entity.faxcom3     = row.IsNull("faxcom3") ? string.Empty : row.Field <string>("faxcom3");
            entity.faxcom4     = row.IsNull("faxcom4") ? string.Empty : row.Field <string>("faxcom4");
            entity.faxcom5     = row.IsNull("faxcom5") ? string.Empty : row.Field <string>("faxcom5");
            entity.faxcom6     = row.IsNull("faxcom6") ? string.Empty : row.Field <string>("faxcom6");
            entity.faxcom7     = row.IsNull("faxcom7") ? string.Empty : row.Field <string>("faxcom7");
            entity.faxcom8     = row.IsNull("faxcom8") ? string.Empty : row.Field <string>("faxcom8");
            entity.faxcom9     = row.IsNull("faxcom9") ? string.Empty : row.Field <string>("faxcom9");
            entity.faxcom10    = row.IsNull("faxcom10") ? string.Empty : row.Field <string>("faxcom10");
            entity.faxfrom     = row.IsNull("faxfrom") ? string.Empty : row.Field <string>("faxfrom");
            entity.faxphoneno  = row.IsNull("faxphoneno") ? string.Empty : row.Field <string>("faxphoneno");
            entity.faxpriority = row.Field <bool>("faxpriority");
            entity.faxtag1     = row.IsNull("faxtag1") ? string.Empty : row.Field <string>("faxtag1");
            entity.faxtag2     = row.IsNull("faxtag2") ? string.Empty : row.Field <string>("faxtag2");
            entity.faxto1      = row.IsNull("faxto1") ? string.Empty : row.Field <string>("faxto1");
            entity.faxto2      = row.IsNull("faxto2") ? string.Empty : row.Field <string>("faxto2");
            entity.filefl      = row.Field <bool>("filefl");
            entity.printernm   = row.IsNull("printernm") ? string.Empty : row.Field <string>("printernm");
            entity.printoptfl  = row.Field <bool>("printoptfl");
            entity.priority    = row.IsNull("priority") ? 0 : row.Field <int>("priority");
            entity.rpttitle    = row.IsNull("rpttitle") ? string.Empty : row.Field <string>("rpttitle");
            entity.startdt     = row.Field <DateTime?>("startdt");
            entity.starttm     = row.IsNull("starttm") ? 0 : row.Field <int>("starttm");
            entity.starttm2    = row.IsNull("starttm2") ? 0 : row.Field <int>("starttm2");
            entity.starttype   = row.IsNull("starttype") ? string.Empty : row.Field <string>("starttype");
            entity.queueName   = row.IsNull("queue_name") ? string.Empty : row.Field <string>("queue_name");
            return(entity);
        }