public string EditPurchaseInvoice(string purchaseInvoice)
        {
            var pl = BL_Common.Deserialize <BO_PurchaseInvoice>(purchaseInvoice);

            pl.empID = UserAprosysAccounting.id;
            return(BL_Common.Serialize(BL_PurchaseInvoice.EditPurchases(pl)));
        }
        public string EditSubscriptionCustomer(string paramcustomer)
        {
            //try catch
            var _customer = BL_Common.Deserialize <BO_SubCustomer>(paramcustomer);

            return(BL_Common.Serialize((BL_Subscription.EditSubscriptionCustomer(_customer, UserAprosysAccounting.id))));
        }
        public string EditPaymentVoucher(string pvoucher)
        {
            var Pvoucher = BL_Common.Deserialize <BO_PaymentVoucher>(pvoucher);

            Pvoucher.empID = UserAprosysAccounting.id;
            return(BL_Common.Serialize((BL_PaymentVoucher.EditPaymentVoucher(Pvoucher))));
        }
Exemple #4
0
        public string EditReceiptVoucher(string rvoucher)
        {
            var _rvoucher = BL_Common.Deserialize <BO_ReceiptVoucher>(rvoucher);

            _rvoucher.empID = UserAprosysAccounting.id;
            return(BL_Common.Serialize((BL_ReceiptVoucher.EditReceiptVoucher(_rvoucher))));
        }
        public string EditSaleInvoice(string paramSales)
        {
            var pl = BL_Common.Deserialize <BO_SaleInvoice>(paramSales);

            pl.empID = UserAprosysAccounting.id;

            return(BL_Common.Serialize(BL_SaleInvoice.UpdateSaleInvoice(pl)));
        }
Exemple #6
0
        public string UpdateUnPaidCreditSales(string paramcustomer)
        {
            var obj = BL_Common.Deserialize <BO_CreditSalesUpdate>(paramcustomer);

            if (!Config.AllowEditDate)
            {
                obj.creditPaidDate = DateTime.Now;
            }
            return(BL_Common.Serialize((BL_CreditSales.UpdateUnPaidCreditSales(obj, UserAprosysAccounting.id))));
        }
        public string SavePaymentVoucher(string pvoucher)
        {
            var Pvoucher = BL_Common.Deserialize <BO_PaymentVoucher>(pvoucher);

            Pvoucher.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                Pvoucher.activityDate = DateTime.Now;
            }
            return(BL_Common.Serialize((BL_PaymentVoucher.SavePaymentVoucher(Pvoucher))));
        }
Exemple #8
0
        public string SaveReceiptVoucher(string rvoucher)
        {
            var _rvoucher = BL_Common.Deserialize <BO_ReceiptVoucher>(rvoucher);

            _rvoucher.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                _rvoucher.rActivityDate = DateTime.Now;
            }
            return(BL_Common.Serialize((BL_ReceiptVoucher.SaveReceiptVoucher(_rvoucher))));
        }
        public string SavePurchaseInvoice(string purchaseInvoice)
        {
            var pl = BL_Common.Deserialize <BO_PurchaseInvoice>(purchaseInvoice);

            pl.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                pl.purchaseDate = DateTime.Now;
            }
            return(BL_Common.Serialize(BL_PurchaseInvoice.SavePurchase(pl)));
        }
        public string SaveSaleInvoice(string paramSales)
        {
            var pl = BL_Common.Deserialize <BO_SaleInvoice>(paramSales);

            pl.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                pl.saleDate = DateTime.Now;
            }
            return(BL_Common.Serialize(BL_SaleInvoice.SaveSales(pl)));
        }
        public string InsertBankTransfer(string param)
        {
            var obj = BL_Common.Deserialize <BO_Banks>(param);

            obj.empID = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                obj.transDate = DateTime.Now;
            }
            return(BL_Common.Serialize(BL_Banks.InsertBankTransfer(obj)));
        }
        public string InsertEquityInfo(string param)
        {
            var obj = BL_Common.Deserialize <BO_Equity>(param);

            obj.userId = UserAprosysAccounting.id;
            if (!Config.AllowEditDate)
            {
                obj.activityTime = DateTime.Now;
            }

            return(BL_Common.Serialize(BL_Equity.InsertEquityInfo(obj)));
        }
        public string SaveVendor(string paramVendor)
        {
            var _vendor = BL_Common.Deserialize <BO_Vendor>(paramVendor);

            return(BL_Common.Serialize((BL_Vendor.SaveVendor(_vendor, UserAprosysAccounting.id))));
        }
Exemple #14
0
        public string SaveUser(string paramuser)
        {
            var _user = BL_Common.Deserialize <BO_Users>(paramuser);

            return(BL_Common.Serialize(BL_Users.SaveUser(_user, UserAprosysAccounting.id)));
        }
Exemple #15
0
        public string SaveCustomer(string paramcustomer)
        {
            var _customer = BL_Common.Deserialize <BO_Customers>(paramcustomer);

            return(BL_Common.Serialize((BL_Customer.SaveCustomer(_customer, UserAprosysAccounting.id))));
        }
        public string SaveInvestor(string paraminvestor)
        {
            var des = BL_Common.Deserialize <BO_CapitalManagement>(paraminvestor);

            return(BL_Common.Serialize(BL_Equity.SaveInvestor(des.investorId, des.investorName, des.amount)));;
        }
        public string SaveSalesPerson(string paramcustomer)
        {
            var _customer = BL_Common.Deserialize <BO_SalesPersonManagement>(paramcustomer);

            return(BL_Common.Serialize((BL_SalesPersonManagement.SaveSalesPerson(_customer, UserAprosysAccounting.id))));
        }
Exemple #18
0
        public string SaveItem(string paramitem)
        {
            var _item = BL_Common.Deserialize <BO_Item>(paramitem);

            return(BL_Common.Serialize(BL_Item.SaveItem(_item, UserAprosysAccounting.id)));
        }
        public string SaveReceiptVoucher(string rvoucher)
        {
            var _rvoucher = BL_Common.Deserialize <BO_ReceiptVoucher>(rvoucher);

            return(BL_Common.Serialize((BL_ReceiptVoucher.SaveReceiptVoucher(_rvoucher))));
        }