public void Insert(string ParaId, string ParaName, string MeasureUnit, string Description) { TParaList 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) { TParaList item = new TParaList(); item.MarkOld(); item.IsLoaded = true; item.ParaId = ParaId; item.ParaName = ParaName; item.MeasureUnit = MeasureUnit; item.Description = Description; item.Save(UserName); }