コード例 #1
0
        public bool DeleteClient()
        {
            bool x = Company.DeleteCompany(this.ID);

            BllGlobal.UpdateAllCompany();
            return(x);
        }
コード例 #2
0
        public static bool DeleteStore(int ido)
        {
            bool x = myRealProvider.DeleteStore(ido);

            BllGlobal.UpdateAllStore();
            return(x);
        }
コード例 #3
0
        public bool UpdateType()
        {
            bool x = Types.UpdateType(ID, Name, BusinessPrice, ClientPrice, BusinessClientPrice, AllCompanyId, this.TheUnit, BaraCode);

            BllGlobal.UpdateAllType();
            return(x);
        }
コード例 #4
0
        public bool DeleteType()
        {
            bool x = Types.DeleteType(this.ID);

            BllGlobal.UpdateAllType();
            return(x);
        }
コード例 #5
0
        public static bool DeleteClient(int ido)
        {
            bool x = myRealProvider.DeleteClient(ido);

            BllGlobal.UpdateAllClients();
            return(x);
        }
コード例 #6
0
        public bool DeleteClient()
        {
            bool x = Client.DeleteClient(this.ID);;

            BllGlobal.UpdateAllClients();
            return(x);
        }
コード例 #7
0
        public static int InsertStoreFromCompany(int typeid, double amount, DateTime addedDatecompany, string typename, bool decrment)
        {
            StoreDetails tb1 = new StoreDetails(0, typeid, amount, addedDatecompany, addedDatecompany, typename);
            int          x   = myRealProvider.InsertStoreFromCompany(tb1, decrment);

            BllGlobal.UpdateAllStore();
            return(x);
        }
コード例 #8
0
        public static bool UpdateType(int id, string name, double businessprice, double clientprice, double businessclientprice, TheUnito theUnit, string baracode)
        {
            TypeDetails tb1 = new TypeDetails(id, name, businessprice, clientprice, businessclientprice, MyDateTime.Now, "", theUnit, baracode);
            bool        x   = myRealProvider.UpdateType(tb1);

            BllGlobal.UpdateAllType();
            return(x);
        }
コード例 #9
0
        public static bool UpdateClient(int id, string name, string details)
        {
            ClientDetails tb1 = new ClientDetails(id, name, details, MyDateTime.Now);
            bool          x   = myRealProvider.UpdateClient(tb1);

            BllGlobal.UpdateAllClients();
            return(x);
        }
コード例 #10
0
        internal static void SaleNow(double myprice)
        {
            //MessageBox.Show("price param "+myprice.ToString());
            bool x = false;

            x = !(all[0].ClientId == Globals.Globals.UnknownClient);
            ///عملية الادخال
            SalePointDal.InsertClientDeal(all, x, Price - myprice);
            EMpty();
            BllGlobal.UpdateAllStore();
            BllGlobal.UpdateAllClients();
        }