Beispiel #1
0
        private void ShowData()
        {
            SE_12Entities db = new SE_12Entities();

            this.Text = "ADD Category";

            if (ID_Category != "")
            {
                txtCtg_ID.Enabled = false;
                this.Text         = "EDIT Category";
                Category ctg = BLL.QL_Items_BLL.Instance.getCtg_byID_BLL(ID_Category);
                txtCtg_ID.Text   = ctg.ID_Category;
                txtCtg_Name.Text = ctg.Category_Name;
            }
        }
Beispiel #2
0
        private void ShowData()
        {
            SE_12Entities db = new SE_12Entities();

            this.Text = "ADD Items";

            if (ID_Items != "")
            {
                txt_IDItems.Enabled = false;
                this.Text           = "EDIT Items";
                Item item = BLL.QL_Items_BLL.Instance.getItems_byID_BLL(ID_Items);
                txt_IDItems.Text           = item.ID_Items;
                txt_ItemsName.Text         = item.Items_Name;
                txt_Price.Text             = item.Price.ToString();
                txt_Number.Text            = item.Reserve.ToString();
                cbb_LoaiHang.SelectedIndex = Convert.ToInt32(item.ID_Category) - 1;
            }
        }
Beispiel #3
0
        private void ShowData()
        {
            SE_12Entities db = new SE_12Entities();

            this.Text = "ADD Items";

            if (ID_Items != "")
            {
                txt_IDItems.Enabled = false;
                this.Text           = "EDIT Items";
                Item item = BLL.QL_Items_BLL.Instance.getItems_byID_BLL(ID_Items);
                txt_IDItems.Text   = item.ID_Items;
                txt_ItemsName.Text = item.Items_Name;
                txt_CtgName.Text   = item.ID_Category;
                txt_Price.Text     = item.Price.ToString();
                txt_State.Text     = item.Status;
            }
        }