public void Insert(string SName, string SDesc, string HisDepartmentCode, short?IntOrder)
        {
            LDepartment item = new LDepartment();

            item.SName = SName;

            item.SDesc = SDesc;

            item.HisDepartmentCode = HisDepartmentCode;

            item.IntOrder = IntOrder;


            item.Save(UserName);
        }
        public void Update(short Id, string SName, string SDesc, string HisDepartmentCode, short?IntOrder)
        {
            LDepartment item = new LDepartment();

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

            item.Id = Id;

            item.SName = SName;

            item.SDesc = SDesc;

            item.HisDepartmentCode = HisDepartmentCode;

            item.IntOrder = IntOrder;

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