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(); }
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; }
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(); }
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(); }