public void Set_RPTIDS(DataTable tmp) { DB_GetConverter DBCONVERT = new DB_GetConverter(); List <RPTID_VIDS> list = new List <RPTID_VIDS>(); foreach (DataRow row in tmp.Rows) { RPTID_VIDS Params = new RPTID_VIDS(); Params.comm_id = DBCONVERT.GetInt32(row, "comm_id"); Params.rptid = DBCONVERT.GetInt32(row, "rptid"); Params.sort_num = DBCONVERT.GetInt32(row, "sort_num"); Params.vid = DBCONVERT.GetInt32(row, "vid"); Params.description = DBCONVERT.GetString(row, "descriptions"); list.Add(Params); } c_RPTIDS = list; }
public void Set_Comms(DataTable tmp) { DB_GetConverter DBCONVERT = new DB_GetConverter(); List <Comm_Settings> list = new List <Comm_Settings>(); foreach (DataRow row in tmp.Rows) { Comm_Settings Params = new Comm_Settings(); Params.machine_id = DBCONVERT.GetInt32(row, "machine_id"); Params.comm_id = DBCONVERT.GetByte(row, "comm_id"); Params.rs232_com_no = DBCONVERT.GetInt32(row, "rs232c_com_no"); Params.local_port_no = DBCONVERT.GetInt32(row, "local_port_no"); Params.secs_device_id = DBCONVERT.GetInt32(row, "secs_device_id"); Params.recmote_ip = DBCONVERT.GetString(row, "remote_ip"); Params.remote_port_no = DBCONVERT.GetInt32(row, "remote_port"); list.Add(Params); } c_Comms = list; }