示例#1
0
        internal bool UpdateRow(UserInfo uinfo, string doenten, string tdoente, string deslocCod, string numCons)
        {
            DALDeslocacoes infDAL = new DALDeslocacoes();
            VwDeslocProd   doente = infDAL.GetDeslocProdUser(tdoente, doenten, numCons);

            return(infDAL.InsertDeslocProd(PreencheTable(uinfo, doente.T_DOENTE, doente.DOENTE, doente.N_CONS, doente.T_EPISODIO, doente.EPISODIO, doente.PRODUTO, doente.COD_SERV_ORIG, deslocCod)));
        }
        public bool HasProduct(string doente, string episodio)
        {
            DBDeslocacoesContext efInt = new DBDeslocacoesContext();
            VwDeslocProd         d     = efInt.vwDeslocProd.Where(q => q.DOENTE == doente && q.EPISODIO == episodio).FirstOrDefault();

            if (d != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }