示例#1
0
文件: FormVT.cs 项目: dttr278/qlvt
        private void FormVT_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataSetDS.Vattu' table. You can move, or remove it, as needed.
            this.vattuTableAdapter.Connection = DBmanager.connection;
            this.vattuTableAdapter.Fill(this.dataSetDS.Vattu);

            DBmanager.bindingCN.CurrentChanged += OnCurrentChangedBindingCN;
            log = new DataTableLog(dataSetDS.Vattu);
        }
示例#2
0
文件: FormKho.cs 项目: dttr278/qlvt
        private void FormKho_Load(object sender, EventArgs e)
        {
            if (tableAdapterManager.ChiNhanhTableAdapter == null)
            {
                tableAdapterManager.ChiNhanhTableAdapter = new DataSetDSTableAdapters.ChiNhanhTableAdapter();
            }
            tableAdapterManager.ChiNhanhTableAdapter.Connection.Close();
            tableAdapterManager.ChiNhanhTableAdapter.Connection = DBmanager.connection;;
            tableAdapterManager.ChiNhanhTableAdapter.Fill(this.dataSetDS.ChiNhanh);

            // TODO: This line of code loads data into the 'dataSetDS.Kho' table. You can move, or remove it, as needed.
            khoTableAdapter.Connection.Close();
            khoTableAdapter.Connection = DBmanager.connection;
            this.khoTableAdapter.Fill(this.dataSetDS.Kho);

            DBmanager.bindingCN.CurrentChanged += OnCurrentChangedBindingCN;

            log = new DataTableLog(dataSetDS.Kho);
        }
示例#3
0
文件: FormNV.cs 项目: dttr278/qlvt
 public FormNV()
 {
     InitializeComponent();
     ur = new DataTableLog(dataSetDS.NhanVien);
 }