public void Change5()
        {
            HoaDonTCDAL dal = new HoaDonTCDAL();

            TenKH = dal.GetPrintMaKH(Convert.ToInt32(SIM));
            Sosim = dal.GetPrintSim(Convert.ToInt32(SIM));
        }
Beispiel #2
0
        public ChiTietHDTC(string idsim, string idhd)
        {
            InitializeComponent();
            HoaDonTCDAL    dal = new HoaDonTCDAL();
            ChiTietHDTCDAL dao = new ChiTietHDTCDAL();

            txtidsim.Text = dal.GetPrintSim(Convert.ToInt32(idsim));
            txtmakh.Text  = dal.GetPrintMaKH(Convert.ToInt32(idsim));
            idsim1        = idsim;
            // This line of code is generated by Data Source Configuration Wizard
            // Instantiate a new DBContext
            //Model.EFModel.QLCuocDTContext dbContext = new Model.EFModel.QLCuocDTContext();
            //// Call the Load method to get the data for the given DbSet from the database.
            //dbContext.ChitietHDTCs.Load();
            // This line of code is generated by Data Source Configuration Wizard

            // This line of code is generated by Data Source Configuration Wizard
            // Instantiate a new DBContext

            // This line of code is generated by Data Source Configuration Wizard
            var a = Convert.ToInt32(idhd);

            chiTietHDTCsBindingSource.DataSource = dao.Load(a);
        }