public void Insert(string Pid, string PatientName, string Address, int?YearBirth, bool?Sex, string InsuranceNum, DateTime?Dateupdate, string Diagnostic, string IdentifyNum, short?DepartmentID, string Room, string Bed, int?ObjectType, int?HosStatus, DateTime?Dob, int?LotID, string CanLamSangId, byte?TestCount, byte?TestHasResult, byte?PrintStatus, short?HasAllResult, short?IsFinal, string UserId, string ChucVu, string NgheNghiep, string DepartmentName)
        {
            LPatientInfo item = new LPatientInfo();

            item.Pid = Pid;

            item.PatientName = PatientName;

            item.Address = Address;

            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.HosStatus = HosStatus;

            item.Dob = Dob;

            item.LotID = LotID;

            item.CanLamSangId = CanLamSangId;

            item.TestCount = TestCount;

            item.TestHasResult = TestHasResult;

            item.PrintStatus = PrintStatus;

            item.HasAllResult = HasAllResult;

            item.IsFinal = IsFinal;

            item.UserId = UserId;

            item.ChucVu = ChucVu;

            item.NgheNghiep = NgheNghiep;

            item.DepartmentName = DepartmentName;


            item.Save(UserName);
        }
 public bool Destroy(object PatientId)
 {
     return(LPatientInfo.Destroy(PatientId) == 1);
 }
 public bool Delete(object PatientId)
 {
     return(LPatientInfo.Delete(PatientId) == 1);
 }