示例#1
0
        public long InsertCostCenter(BOCostCenter boCostCenter)
        {
            try
            {
                Hashtable ht = new Hashtable();
                ht.Add("CostCenterCode", boCostCenter.CostCenterCode);
                ht.Add("CostCenterName", boCostCenter.CostCenterName);
                ht.Add("Transfered ", boCostCenter.Transfered1);
                ht.Add("AddedBy", boCostCenter.AddedBy1);
                ht.Add("DateAdded ", boCostCenter.DateAdded1);
                ht.Add("UpdatedBy", boCostCenter.UpdatedBy1);
                ht.Add("DateUpdated", boCostCenter.DateUpdated1);
                ht.Add("CompanyId", boCostCenter.CompanyID);

                return(Convert.ToInt64(iDBUtility.InsertData(ht, "dbo.spInsertCostCenter")));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static long insertCostCenter(BOCostCenter boCostCenter)
        {
            DACostCenter objDA = new DACostCenter();

            return(Convert.ToInt64(objDA.InsertCostCenter(boCostCenter)));
        }