コード例 #1
0
        public void Insert(string Name, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn)
        {
            ProductStatusDescriptor item = new ProductStatusDescriptor();

            item.Name = Name;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }
コード例 #2
0
        public void Update(int ProductStatusDescriptorId, string Name, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn)
        {
            ProductStatusDescriptor item = new ProductStatusDescriptor();

            item.ProductStatusDescriptorId = ProductStatusDescriptorId;

            item.Name = Name;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.MarkOld();
            item.Save(UserName);
        }
コード例 #3
0
 public bool Destroy(object ProductStatusDescriptorId)
 {
     return(ProductStatusDescriptor.Destroy(ProductStatusDescriptorId) == 1);
 }