示例#1
0
 public QL_Sanbay()
 {
     InitializeComponent();
     bllSB = new SanbayBLL();
     label_realslcanxoa.Visible = false;
     label_slcanxoa.Visible     = false;
     trigger   = true;
     sl_canxoa = -1;
 }
示例#2
0
 public QL_Sanbay(int slcanxoa)
 {
     InitializeComponent();
     bllSB                 = new SanbayBLL();
     this.sl_canxoa        = slcanxoa;
     button_Add.Visible    = false;
     button_Add.Enabled    = false;
     button_Update.Visible = false;
     button_Update.Enabled = false;
 }
示例#3
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();
            }
        }
示例#4
0
 public QL_Sanbay()
 {
     InitializeComponent();
     bllSB = new SanbayBLL();
 }