private void initConfig() { lFrl = new List <FRelation>(); frl = new FRelation(); frl.f_patient_relation_id = "f_patient_relation_id"; frl.patient_relation_description = "patient_relation_description"; frl.active = "active"; frl.pkField = "f_patient_relation_id"; frl.table = "f_patient_relation"; }
public void getlFRelation() { //lDept = new List<Position>(); lFrl.Clear(); DataTable dt = new DataTable(); dt = selectAll(); foreach (DataRow row in dt.Rows) { FRelation itm1 = new FRelation(); itm1.f_patient_relation_id = row[frl.f_patient_relation_id].ToString(); itm1.patient_relation_description = row[frl.patient_relation_description].ToString(); lFrl.Add(itm1); } }