Ejemplo n.º 1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            if (Islogin())
            {
                UserTools._UserID   = ((KeyValuePair <string, string>)cmbUserName.SelectedItem).Key.ToString();
                UserTools._UserName = ((KeyValuePair <string, string>)cmbUserName.SelectedItem).Value.ToString();
                FinancialYearTools.GetFinancialYearDetails();
                UserTools.GetEditDeletePermision();

                flag = true;
                this.Close();
            }
            else
            {
                flag = false;
                toolTip1.Show("SORRY!INVALID PASSWORD", cmbUserName, 10, cmbUserName.Height - 100, 1000);
                // MessageBox.Show("SORRY! INVALID PASSWORD", "Wrong Password", MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
        }
Ejemplo n.º 2
0
        public DefaultClass()
        {
            INVOICE_TOOLS.InitDetails();
            //OtherSettingTools.InitEstimateDetails();
            //OtherSettingTools.InitChallanDetails();
            //OtherSettingTools.InitCreditNoteDetails();
            //OtherSettingTools.InitPurchaseOrderDetails();
            //OtherSettingTools.InitAdvanceReceiptVoucherDetails();
            //OtherSettingTools.InitRefundVoucherDetails();
            //OtherSettingTools.InitReceiptVoucherDetails();
            //OtherSettingTools.InitAdvancePaymentVoucherDetails();
            //OtherSettingTools.InitPaymentVoucherDetails();
            //OtherSettingTools.InitDebitNoteDetails();
            OtherSettingTools.CallAllFunctionOfOtherSettingTools();

            UnitTools.GetUnit();
            ComodityCodeTools.GetHSNCode();
            ComodityCodeTools.GetSACCode();

            BillingTermTools.GetBillingTerms();
            EmployeeDesignationTools.GetDesignation();
            BAnkTools.GetBank();
            UserTools.GetUserName();
            StateTool.GetState();

            FinancialYearTools.GetYear();
            SubGroupTools.GetIncomeExpenseGroup();
            SubGroupTools.GetUnder();

            CashOrBankAccountTools.GetCashAccount();
            CashOrBankAccountTools.GetBankAcHead();

            Supplier.GetSuppliers();
            BillClas.GetAccountHeadForExpense();
            ExpenseTools.GetExpenseAccountHead();
            AccountHeadTools.SetCategory();

            ItemTools.GetItem();
            ItemTools.GetItemCategory();
            ItemTools.GetSubCategory();
            ItemTools.GetItemCompany();

            AccountHeadTools.GetSalesLedgerID();
            AccountHeadTools.GetSalesReturnLedgerID();
            AccountHeadTools.GetPurchaseLedgerID();
            AccountHeadTools.GetPurchaseReturnLedgerID();
            Customertools.GetCustomers();
            ///ledgers
            LedgerTools.GetAllLedgers();
            LedgerTools.GetAccountLedgers();
            LedgerTools.GetPartyLedgers();
            LedgerTools.GetBankLedgers();
            LedgerTools.GetCashLedgers();
            LedgerTools.GetCash_BankLedgers();
            LedgerTools.GetCustomerLedgers();
            LedgerTools.GetSupplierLedgers();
            LedgerTools.GetOtherLedgers();
            LedgerTools.GetReceivableAccountHeadID();

            SubAccountTools.GetSubAccountForExpense();

            CashCustomersTools.GetCashCustomers();
        }