Пример #1
0
        public void Insert(string RecipeDetailID, string RecipeHeaderID, string ItemNo, double Qty, string Uom)
        {
            RecipeDetail item = new RecipeDetail();

            item.RecipeDetailID = RecipeDetailID;

            item.RecipeHeaderID = RecipeHeaderID;

            item.ItemNo = ItemNo;

            item.Qty = Qty;

            item.Uom = Uom;


            item.Save(UserName);
        }
Пример #2
0
        public void Update(string RecipeDetailID, string RecipeHeaderID, string ItemNo, double Qty, string Uom)
        {
            RecipeDetail item = new RecipeDetail();

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

            item.RecipeDetailID = RecipeDetailID;

            item.RecipeHeaderID = RecipeHeaderID;

            item.ItemNo = ItemNo;

            item.Qty = Qty;

            item.Uom = Uom;

            item.Save(UserName);
        }
Пример #3
0
 public bool Destroy(object RecipeDetailID)
 {
     return(RecipeDetail.Destroy(RecipeDetailID) == 1);
 }
Пример #4
0
 public bool Delete(object RecipeDetailID)
 {
     return(RecipeDetail.Delete(RecipeDetailID) == 1);
 }