public PoctItemDetail GetPoctNumDetail(string sn, string num, string lot) { List <PoctItemDetail> list = dal.GetPoctNumDetail(sn, num, lot); if (list != null && list.Count > 0) { return(list[0]); } return(null); }