public string SaveDocument(out long ret) { ret = 0; string DocName = ""; try { ArrayList al = new ArrayList(); al.Add(this.DocID); al.Add(this.DocName); al.Add(Convert.ToDateTime(this.DocDate)); al.Add(this.WareHouseId); al.Add(this.IsExpected); al.Add(this.CustomerId); al.Add(this.IsExpected ? this.EffectiveDate : null); al.Add(this.GridData); al.Add(this.Comments); al.Add(Convert.ToInt32(_LookUps.GetSessionObject("UserID"))); DocName = _General.Set(al, "sp_InsertUpdateOutwardDoc", out ret, 0); } catch (Exception ex) { PLog.Error("Error::Class > OutwardDocument, Method > SaveDocument(out int ret)", ex); } return(DocName); }
public string SaveDocument(out long ret) { ret = 0; string DocName = ""; try { ArrayList al = new ArrayList(); al.Add(this.DocID); al.Add(this.DocName); al.Add(Convert.ToDateTime(this.DocDate)); al.Add(this.ToWareHouseId); al.Add(this.FromWareHouseId); al.Add(this.Comments); al.Add(this.GridData); al.Add(Convert.ToInt32(_LookUps.GetSessionObject("UserID"))); DocName = _General.Set(al, "sp_InsertUpdateStockTransfer", out ret, 0); } catch (Exception ex) { PLog.Error("Error::Class > StockTransfer, Method >SaveDocument(out int ret)", ex); } return(DocName); }