public void Insert(string ParaId, string ParaName, string MeasureUnit, string Description) { var item = new TParaList(); item.ParaId = ParaId; item.ParaName = ParaName; item.MeasureUnit = MeasureUnit; item.Description = Description; item.Save(UserName); }
public void Update(string ParaId, string ParaName, string MeasureUnit, string Description) { var item = new TParaList(); item.MarkOld(); item.IsLoaded = true; item.ParaId = ParaId; item.ParaName = ParaName; item.MeasureUnit = MeasureUnit; item.Description = Description; item.Save(UserName); }
public bool Destroy(object ParaId) { return(TParaList.Destroy(ParaId) == 1); }
public bool Delete(object ParaId) { return(TParaList.Delete(ParaId) == 1); }