Ejemplo n.º 1
0
        private void Book_update()
        {
            BookTypeBLL    typeBLL    = new BookTypeBLL();
            BookTypeEntity typeEntity = new BookTypeEntity();

            typeEntity          = typeBLL.lists(int.Parse(Request["TypeId"]));
            typeEntity.ParentId = int.Parse(Request["ParentId"]);
            typeEntity.TypeName = Request["TypeName"];
            Response.Write(typeBLL.Update(typeEntity));
            Response.End();
        }
Ejemplo n.º 2
0
        private void bindate()
        {
            if (string.IsNullOrWhiteSpace(Request["TypeId"]))
            {
                return;
            }
            BookTypeBLL    bookType   = new BookTypeBLL();
            BookTypeEntity typeEntity = bookType.lists(int.Parse(Request["TypeId"]));

            ViewState["txtName"]  = typeEntity.TypeName;
            ViewState["ParentId"] = typeEntity.ParentId;
            ViewState["TypeId"]   = typeEntity.TypeId;
        }
Ejemplo n.º 3
0
        private void BookSearch_babaid()
        {
            int            typid      = int.Parse(Request["TypeId"]);
            BookTypeBLL    typeBLL    = new BookTypeBLL();
            BookTypeEntity typeEntity = typeBLL.lists(typid);

            if (typeEntity == null)
            {
                Response.Write(0);
            }
            else
            {
                Response.Write(MyJson.ToJsJson(typeEntity));
            }

            Response.End();
        }
Ejemplo n.º 4
0
        private void BookSearch_binzije()
        {
            int            typid      = int.Parse(Request["TypeId"]);
            BookTypeBLL    typeBLL    = new BookTypeBLL();
            BookTypeEntity typeEntity = typeBLL.lists(typid);

            if (typeEntity == null)
            {
                Response.Write(MyJson.ToJsJson(typeBLL.list(0)));
            }
            else
            {
                if (typeEntity.ParentId == 0)
                {
                    Response.Write(MyJson.ToJsJson(typeBLL.list(typeEntity.TypeId)));
                }
                else
                {
                    Response.Write(MyJson.ToJsJson(typeBLL.list(typeEntity.ParentId)));
                }
            }

            Response.End();
        }