コード例 #1
0
        public void Insert(int IdMedicamento, int IdControl, int Cantidad, string Unidad)
        {
            TabRelMedicamentoTab item = new TabRelMedicamentoTab();

            item.IdMedicamento = IdMedicamento;

            item.IdControl = IdControl;

            item.Cantidad = Cantidad;

            item.Unidad = Unidad;


            item.Save(UserName);
        }
コード例 #2
0
        public void Update(int IdRelMedicamentoTab, int IdMedicamento, int IdControl, int Cantidad, string Unidad)
        {
            TabRelMedicamentoTab item = new TabRelMedicamentoTab();

            item.MarkOld();
            item.IsLoaded = true;

            item.IdRelMedicamentoTab = IdRelMedicamentoTab;

            item.IdMedicamento = IdMedicamento;

            item.IdControl = IdControl;

            item.Cantidad = Cantidad;

            item.Unidad = Unidad;

            item.Save(UserName);
        }
コード例 #3
0
 public bool Destroy(object IdRelMedicamentoTab)
 {
     return(TabRelMedicamentoTab.Destroy(IdRelMedicamentoTab) == 1);
 }
コード例 #4
0
 public bool Delete(object IdRelMedicamentoTab)
 {
     return(TabRelMedicamentoTab.Delete(IdRelMedicamentoTab) == 1);
 }