public void Update(decimal Id, decimal?PatientId, string Pid, string PatientName, string Address, short?Age, int?YearBirth, byte?Sex, string InsuranceNum, DateTime?Dateupdate, string Diagnostic, string IdentifyNum, short?DepartmentID, string Room, string Bed, short?ObjectType) { var item = new LPatientInfoDeleted(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.PatientId = PatientId; item.Pid = Pid; item.PatientName = PatientName; item.Address = Address; item.Age = Age; item.YearBirth = YearBirth; item.Sex = Sex; item.InsuranceNum = InsuranceNum; item.Dateupdate = Dateupdate; item.Diagnostic = Diagnostic; item.IdentifyNum = IdentifyNum; item.DepartmentID = DepartmentID; item.Room = Room; item.Bed = Bed; item.ObjectType = ObjectType; item.Save(UserName); }
public bool Destroy(object Id) { return(LPatientInfoDeleted.Destroy(Id) == 1); }