public void Update(BCARINVOICE Items)
        {
            var DEntity = this.GetFind(Items.DocNo);

            DEntity.DocNo           = Items.DocNo;
            DEntity.ArCode          = Items.ArCode;
            DEntity.SumOfItemAmount = Items.SumOfItemAmount;
            DEntity.DiscountWord    = Items.DiscountWord;
            DEntity.AfterDiscount   = Items.AfterDiscount;
            DEntity.BeforeTaxAmount = Items.BeforeTaxAmount;
            DEntity.TotalAmount     = Items.TotalAmount;
            DEntity.NetDebtAmount   = Items.NetDebtAmount;
            DEntity.HomeAmount      = Items.HomeAmount;
            DEntity.BillBalance     = Items.BillBalance;
            DEntity.ProjectCode     = Items.ProjectCode;
            DEntity.BillTemporary   = Items.BillTemporary;
            DEntity.PayBillAmount   = Items.PayBillAmount;
            DEntity.TaxType         = 0;
            DEntity.IsConfirm       = 0;
            DEntity.BillType        = 3;
            DEntity.DepositIncTax   = 1;
            DEntity.GLStartPosting  = 1;
            DEntity.GLFormat        = "B04";
            DEntity.IsCancel        = Items.IsCancel;
            DEntity.IsCreditNote    = 0;
            DEntity.IsDebitNote     = 0;
            DEntity.IsProcessOK     = 0;
            DEntity.IsCompleteSave  = 1;
            DEntity.IsPostGL        = 0;
            DEntity.GLTransData     = 0;
            DEntity.PayBillStatus   = 0;
            DEntity.IsReceiveMoney  = 0;
            DEntity.IsConditionSend = 0;
            DEntity.HoldingStatus   = 0;
            DEntity.RefType         = 0;
            DEntity.POSSTATUS       = 0;
            DEntity.MyDescription   = Items.MyDescription;
        }
 public void Delete(BCARINVOICE Items)
 {
     db.BCARINVOICE.Remove(Items);
 }
 public void Insert(BCARINVOICE Items)
 {
     db.BCARINVOICE.Add(Items);
 }