Exemplo n.º 1
0
        private void LoadProductType()
        {
            ProductType pt = productTypeRepo.GetById(ToSQL.SQLToInt(Request.QueryString["ID"]));

            if (pt != null)
            {
                txtName.Text = ToSQL.EmptyNull(pt.Name);
                txtNote.Text = ToSQL.EmptyNull(pt.Note);
                CKEditorControlDescriptionType.Text = ToSQL.EmptyNull(pt.DescriptionTemplate);
                chkActive.Checked = ToSQL.SQLToBool(pt.IsActive);
            }
            else
            {
                Response.Redirect("~/Admincp/Management-ProductType.aspx");
            }
        }