示例#1
0
        public static bool UpdateClientDeal(int id, int typeid, int clid, double amount, double price, double paidmoney, string details, double busprice, string clname, string typename)
        {
            // if ((Globals.Globals.gram==1)) amount = amount * 1000;
            ClientDealDetails tb1 = new ClientDealDetails(id, typeid, clid, amount, price, paidmoney, details, MyDateTime.Now, TheUnito.Kilo, busprice, clname, typename);

            return(myRealProvider.UpdateClientDealy(tb1));
        }
示例#2
0
        public static ClientDeal GetClientDealByID(int ido)
        {
            ClientDealDetails tbdt = myRealProvider.GetClientDealByID(ido);

            if (tbdt != null)
            {
                return(new ClientDeal(tbdt.ID, tbdt.TypeId, tbdt.ClientId, tbdt.Amount, tbdt.Price, tbdt.PaidMoney, tbdt.Details, tbdt.AddedDate, tbdt.TheUnit, tbdt.BusinessPrice, tbdt.ClientName, tbdt.TypeName));
            }
            else
            {
                return(null);
            }
        }
示例#3
0
        public static int InsertClientDeal(int id, int typeid, int clid, double amount, double price, double paidmoney, string details, MyDateTime dayandtime, TheUnito theUnit, double busprice, string clname, string typename)
        {
            ClientDealDetails tb1 = new ClientDealDetails(id, typeid, clid, amount, price, paidmoney, details, dayandtime, theUnit, busprice, clname, typename);

            return(myRealProvider.InsertClientDeal(tb1));
        }
示例#4
0
        public static int InsertClientDeal(int id, int typeid, int clid, double amount, double price, double paidmoney, string details, TheUnito theUnit, double busprice, string clname, string typename, bool opencon)
        {
            ClientDealDetails tb1 = new ClientDealDetails(id, typeid, clid, amount, price, paidmoney, details, new MyDateTime(DateTime.Now), theUnit, busprice, clname, typename);

            return(myRealProvider.InsertClientDeal(tb1, opencon));
        }