//get Talao ID public static List <TalaoItens> GetTalaoItemId(Int16 Talaoitemid) { List <TalaoItens> lst = new List <TalaoItens>(); TalaoItensRepository tprep = new TalaoItensRepository(); lst = tprep.Search(x => x.talaoitensid == Talaoitemid).ToList(); return(lst); }
//get item ID public static List <TalaoItens> GetItemByNumeroList(Int16 repreid, Int16 numero) { List <TalaoItens> lst = new List <TalaoItens>(); TalaoItensRepository tprep = new TalaoItensRepository(); lst = tprep.Search(x => x.Numero == numero & x.representanteid == repreid).ToList(); return(lst); }
//get Talao ID public static List <TalaoItens> GetTalaoItens(Int16 Talaoid, Int16 representanteid) { List <TalaoItens> lst = new List <TalaoItens>(); TalaoItensRepository tprep = new TalaoItensRepository(); lst = tprep.Search(x => x.talaoid == Talaoid & x.representanteid == representanteid).OrderBy(x => x.Numero).ToList(); return(lst); }
//get item ID public static Int16 GetItemByNumero(Int16 repreid, Int16 numero) { Int16 RetItem = 0; List <TalaoItens> lst = new List <TalaoItens>(); TalaoItensRepository tprep = new TalaoItensRepository(); lst = tprep.Search(x => x.Numero == numero & x.representanteid == repreid).ToList(); foreach (var item in lst) { RetItem = item.talaoitensid; } return(RetItem); }
public static List <TalaoItens> GetTalaoItensCombo(Int16 Talaoid) { List <TalaoItens> lst = new List <TalaoItens>(); TalaoItensRepository tprep = new TalaoItensRepository(); lst = tprep.Search(x => x.talaoid == Talaoid & x.Status == 1 & x.talaoitensstatusid == 1).ToList(); TalaoItens obj = new TalaoItens(); obj.Numero = 0; obj.talaoitensid = 0; lst.Add(obj); var lstorder = lst.OrderBy(s => s.Numero).ToList(); return(lstorder); }