Esempio n. 1
0
        public static int InsertBusinesDeal(int id, int typeid, int manid, double amount, double businessprice, double clientprice, double paidmoney, string details, string manname, string typename)
        {
            BusinesDealDetails tb1 = new BusinesDealDetails(id, typeid, manid, amount, businessprice, clientprice, paidmoney, details, MyDateTime.Now, manname, typename);
            int x = myRealProvider.InsertBusinesDeal(tb1);

            return(x);
        }
Esempio n. 2
0
        public static BusinesDeal GetBusinesDealByID(int ido)
        {
            BusinesDealDetails tbdt = myRealProvider.GetBusinesDealByID(ido);

            if (tbdt != null)
            {
                return(new BusinesDeal(tbdt.ID, tbdt.TypeId, tbdt.ManId, tbdt.Amount, tbdt.BusinessPrice, tbdt.ClientPrice, tbdt.PaidMoney, tbdt.Details, tbdt.AddedDate, tbdt.ManName, tbdt.TypeName));
            }
            else
            {
                return(null);
            }
        }