Ejemplo n.º 1
0
 /// <summary>
 /// Update a InvoiceHCDetail.
 /// </summary>
 public void Update(Model.InvoiceHCDetail invoiceHCDetail)
 {
     //
     // todo: add other logic here.
     //
     accessor.Update(invoiceHCDetail);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Insert a InvoiceHCDetail.
 /// </summary>
 public void Insert(Model.InvoiceHCDetail invoiceHCDetail)
 {
     //
     // todo:add other logic here
     //
     accessor.Insert(invoiceHCDetail);
 }
Ejemplo n.º 3
0
 private void gridView1_CellValueChanging(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
 {
     if (e.Column == this.gridColumn2)
     {
         Model.InvoiceHCDetail detail = this.gridView1.GetRow(e.RowHandle) as Model.InvoiceHCDetail;
         if (detail != null)
         {
             Model.Product p = this._productManager.Get(e.Value.ToString());
             //detail.DepotInDetailId = Guid.NewGuid().ToString();
             detail.InvoiceHCDetailQuantity = 1;
             detail.Product            = p;
             detail.ProductId          = p.ProductId;
             detail.InvoiceProductUnit = p.DepotUnit.CnName;
             //this.bindingSourceDetail.Position = this.bindingSourceDetail.IndexOf(detail);
         }
         this.gridControl1.RefreshDataSource();
     }
 }
Ejemplo n.º 4
0
 public void Update(Model.InvoiceHCDetail e)
 {
     this.Update <Model.InvoiceHCDetail>(e);
 }
Ejemplo n.º 5
0
 public void Insert(Model.InvoiceHCDetail e)
 {
     this.Insert <Model.InvoiceHCDetail>(e);
 }