public void Update(BCARINVOICESUB Items) { var DEntity = this.GetFind(Items.DocNo); DEntity.DocNo = Items.DocNo; DEntity.ItemCode = Items.ItemCode; DEntity.DocDate = Items.DocDate; DEntity.ArCode = Items.ArCode; DEntity.CNQty = Items.CNQty; DEntity.Qty = Items.Qty; DEntity.Price = Items.Price; DEntity.Amount = Items.Amount; DEntity.NetAmount = Items.NetAmount; DEntity.HomeAmount = Items.HomeAmount; DEntity.BalanceAmount = Items.BalanceAmount; DEntity.UnitCode = Items.UnitCode; DEntity.SORefNo = Items.SORefNo; DEntity.LineNumber = Items.LineNumber; DEntity.ProjectCode = Items.ProjectCode; DEntity.TaxType = 0; DEntity.MyType = 4; DEntity.StockType = 1; DEntity.TransState = 0; DEntity.IsCancel = 0; DEntity.RefType = 1; DEntity.IsProcess = 1; DEntity.IsLockCost = 0; DEntity.POSSTATUS = 0; }
public void Delete(BCARINVOICESUB Items) { db.BCARINVOICESUB.Remove(Items); }
public void Insert(BCARINVOICESUB Items) { db.BCARINVOICESUB.Add(Items); }