/// <summary> /// 通过编号获取安灯编号 /// </summary> /// <param name="andonNo">安灯编号</param> public void GetAdnByNo(string andonNo) { List <Model.TableModel.Adn> List = DataLoadCtrl.LoadAdn(string.Format("andon_no='{0}';", andonNo)); if (List != null && List.Count > 0) { Adn = List[0]; } else { Adn = new Model.TableModel.Adn(); } }
/// <summary> /// 通过工站获取安灯编号 /// </summary> /// <param name="eqmNo">工位编号</param> public void GetAdn(string eqmNo) { List <Model.TableModel.Adn> List = DataLoadCtrl.LoadAdn(string.Format("eqm_no='{0}' and is_finished='false' order by call_time asc;", eqmNo)); if (List != null && List.Count > 0) { Adn = List[0]; } else { Adn = new Model.TableModel.Adn(); } }