Пример #1
0
        public NhanLichChuyenBay()
        {
            InitializeComponent();
            dc                  = new DataConnection();
            busQuyDinh          = new BLL.QuydinhBLL();
            busChuyenbay        = new ChuyenbayBLL();
            busChitietchuyenbay = new BLL.ChitietchuyenbayBLL();
            busTinhtrangve      = new BLL.TinhtrangveBLL();
            busHangve           = new BLL.HangveBLL();

            dtoQuyDinh          = new DTO.Quydinh(0, 0, 0, 0, 0, 0, 0, 0);
            dtoChuyenBay        = new DTO.Chuyenbay("0", "0", DateTime.Now, 1, "0");
            dtoChitietchuyenbay = new DTO.Chitietchuyenbay("", "", "", 0, "");
            dtoTinhtrangve      = new DTO.Tinhtrangve("", "", "", 0, 0, 0);


            busQuyDinh.Get_Infor(dtoQuyDinh);
        }
Пример #2
0
        public void Thaydoiquydinh_Load(object sender, EventArgs e)
        {
            busQuydinh = new BLL.QuydinhBLL();
            busSanbay  = new SanbayBLL();
            busHangve  = new BLL.HangveBLL();
            DataTable chitiet = busQuydinh.GetAllQuydinh();

            if (chitiet.Rows.Count > 0)
            {
                DataRow row = chitiet.Rows[0];

                this.textBox_tgbaytt.Text      = row["TGBAYTOITHIEU"].ToString();
                this.textBox_sbtgtd.Text       = row["SOSBTRUNGGIANTOIDA"].ToString();
                this.textBox_tgdungtt.Text     = row["TGDUNGTOITHIEU"].ToString();
                this.textBox_ttdungtd.Text     = row["TGDUNGTOIDA"].ToString();
                this.textBox_tghuydv.Text      = row["TGCHAMNHATHUYVE"].ToString();
                this.textBox_tgchamnhatdv.Text = row["TGCHAMNHATDATVE"].ToString();
                this.label_sbtd.Text           = row["SLSANBAYTOIDA"].ToString();
                //this.label_slhv.Text = row["SLHANGVE"].ToString();

                this.textBox_changeslsb.Text = "";
                this.label_slhv.Text         = RefreshSoluongHV();
            }
        }