/// <summary> /// 返回检查排队列表 /// </summary> /// <param name="str_msg"></param> /// <param name="str_GroupId"></param> /// <param name="str_SchedulDate"></param> /// <param name="str_SchedulTime"></param> /// <returns></returns> public List <SchedulShowModel> SchedulInitTable(out string str_msg, string str_GroupId, string str_SchedulDate, string str_SchedulTime) { List <SchedulShowModel> arr_schedulShow = new List <SchedulShowModel>(); DataSet _DataSet = new DataSet(); if (_con.ConInit(out str_msg) && _con.SelGroupDetail(out str_msg, out _DataSet)) { DataTable _table = _DataSet.Tables[0]; for (int i = 0; i < _table.Rows.Count; i++) { if (_table.Rows[i]["groupid"] + "" == str_GroupId) { SchedulShowModel _SchedulShowModel = new SchedulShowModel(); _SchedulShowModel.macid = Int64.Parse(_table.Rows[i]["macid"] + ""); _SchedulShowModel.macname = _table.Rows[i]["macname"] + ""; arr_schedulShow.Add(_SchedulShowModel); } } _DataSet = null; } else { return(null); } if (!string.IsNullOrEmpty(str_SchedulDate) && !string.IsNullOrEmpty(str_SchedulTime)) { DataSet _DataTmp = new DataSet(); string[] arr_condition = { str_GroupId, str_SchedulDate, str_SchedulTime }; if (_con.SelViewSchedulMain(out str_msg, out _DataTmp, arr_condition)) { DataTable _table = _DataTmp.Tables[0]; for (int i = 0; i < _table.Rows.Count; i++) { Int64 str_macid = Int64.Parse(_table.Rows[i]["macid"] + ""); foreach (SchedulShowModel _schedulShowModel in arr_schedulShow) { if (_schedulShowModel.macid == str_macid) { _schedulShowModel.mainid = Int64.Parse(_table.Rows[i]["mainid"] + ""); _schedulShowModel.patid = Int64.Parse(_table.Rows[i]["patid"] + ""); _schedulShowModel.patName = (_table.Rows[i]["patName"] + ""); _schedulShowModel.remark = (_table.Rows[i]["remark"] + ""); _schedulShowModel.routeName = (_table.Rows[i]["routeName"] + ""); _schedulShowModel.SchedulDate = (_table.Rows[i]["SchedulDate"] + ""); _schedulShowModel.SchedulTime = (_table.Rows[i]["SchedulTime"] + ""); _schedulShowModel.anticoagulantName = (_table.Rows[i]["anticoagulantName"] + ""); _schedulShowModel.dialyzerName = (_table.Rows[i]["dialyzerName"] + ""); break; } } } } } return(arr_schedulShow); }