public CostsForm()
        {
            InitializeComponent();
            costTableAdapter                = new JSManagementDataSetTableAdapters.CostTableAdapter();
            costTableAdapter.Connection     = CommonHelper.GetSQLConnection();
            costTypeTableAdapter.Connection = CommonHelper.GetSQLConnection();

            bankAccountTableAdapter            = new JSManagementDataSetTableAdapters.BankAccountTableAdapter();
            bankAccountTableAdapter.Connection = CommonHelper.GetSQLConnection();
        }
Exemple #2
0
        public IncomeForm()
        {
            InitializeComponent();

            incomeTableAdapter            = new JSManagementDataSetTableAdapters.IncomeTableAdapter();
            incomeTableAdapter.Connection = CommonHelper.GetSQLConnection();

            bankAccountTableAdapter            = new JSManagementDataSetTableAdapters.BankAccountTableAdapter();
            bankAccountTableAdapter.Connection = CommonHelper.GetSQLConnection();

            cul = CultureInfo.GetCultureInfo(Constant.VN_CULTURE_FORMAT);
        }
        public ReceivableFromCustomersForm()
        {
            InitializeComponent();
            orderTableAdapter            = new JSManagementDataSetTableAdapters.OrdersTableAdapter();
            orderTableAdapter.Connection = CommonHelper.GetSQLConnection();

            receivableCustomerAdapter            = new JSManagementDataSetTableAdapters.ReceivableFromCustomersTableAdapter();
            receivableCustomerAdapter.Connection = CommonHelper.GetSQLConnection();

            bankAccountTableAdapter            = new JSManagementDataSetTableAdapters.BankAccountTableAdapter();
            bankAccountTableAdapter.Connection = CommonHelper.GetSQLConnection();

            purchaseReceipOrderAdapter            = new JSManagementDataSetTableAdapters.PurchaseReceiptOrderTableAdapter();
            purchaseReceipOrderAdapter.Connection = CommonHelper.GetSQLConnection();

            incomeTableAdapter            = new JSManagementDataSetTableAdapters.IncomeTableAdapter();
            incomeTableAdapter.Connection = CommonHelper.GetSQLConnection();
        }